/* FONTS */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Poppins:wght@300;400;500;600&display=swap');

:root {
    /* PREMIUM COLOR PALETTE */
    --bg-deep: #020f0d;
    --bg-dark-emerald: #051a16;
    --card-glass: rgba(5, 26, 22, 0.75);

    /* GOLD GRADIENTS */
    --gold-gradient: linear-gradient(135deg, #bf953f, #fcf6ba 50%, #b38728, #fbf5b7, #aa771c);
    --gold-text: linear-gradient(to right, #fbf5b7, #bf953f, #fbf5b7);
    --gold: #d4af37;
    --gold-dim: rgba(212, 175, 55, 0.3);

    /* TEXT */
    --text-main: #f0f0f0;
    --text-muted: rgba(240, 240, 240, 0.7);

    /* SIZING */
    --max-width: 1200px;
    --border-radius: 4px;
    /* Sharper, more elegant corners */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Poppins', sans-serif;
    background-color: var(--bg-deep);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

/* BACKGROUND LAYERS */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(5, 26, 22, 0.6) 0%, var(--bg-deep) 100%);
    z-index: -5;
    pointer-events: none;
}

.watermark {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -10;
    pointer-events: none;
    opacity: 0.3;
    /* Adjusted for better blend with deep background */
}

.watermark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* WRAPPER & ORNAMENTS */
.main-wrapper {
    width: 100%;
    min-height: 100vh;
    padding: 1rem;
    position: relative;
    border: 1px solid var(--gold-dim);
    margin: 1rem;
    max-width: calc(100% - 2rem);
    display: flex;
    justify-content: center;
}

.ornament-corner {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 2px solid var(--gold);
    z-index: 10;
}

.top-left {
    top: -1px;
    left: -1px;
    border-right: none;
    border-bottom: none;
}

.top-right {
    top: -1px;
    right: -1px;
    border-left: none;
    border-bottom: none;
}

.bottom-left {
    bottom: -1px;
    left: -1px;
    border-right: none;
    border-top: none;
}

.bottom-right {
    bottom: -1px;
    right: -1px;
    border-left: none;
    border-top: none;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

/* HERO SECTION */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 2rem;
}

/* Avatar Ring */
.avatar-ring {
    padding: 5px;
    border-radius: 50%;
    background: var(--gold-gradient);
    margin-bottom: 2rem;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
    opacity: 0;
}

/* Avatar Rays / Lens Effect */
.avatar-ring::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 250px;
    background: repeating-conic-gradient(from 0deg,
            rgba(212, 175, 55, 0) 0deg,
            rgba(212, 175, 55, 0.15) 10deg,
            rgba(212, 175, 55, 0) 20deg);
    border-radius: 50%;
    z-index: -1;
    animation: rotateRays 20s linear infinite;
    opacity: 0.7;
    filter: blur(8px);
}

.avatar-ring::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 223, 128, 0.15) 0%, transparent 70%);
    z-index: -1;
    border-radius: 50%;
    animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes rotateRays {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes pulseGlow {

    0%,
    100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.avatar-container {
    width: 140px;
    /* Slightly smaller avatar */
    height: 140px;
    border-radius: 50%;
    border: 4px solid var(--bg-deep);
    overflow: hidden;
    background: var(--bg-deep);
    position: relative;
    z-index: 2;
}

.avatar-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Typography */
h1 {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    /* Slightly smaller on desktop */
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: var(--gold-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    /* Reduced margin */
    opacity: 0;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
    /* Prevent badge from wrapping separately */
}

.subtitle {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: 'Playfair Display', serif;
    color: var(--gold);
    font-size: 1rem;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    /* Reduced margin */
    opacity: 0;
}

.line {
    height: 1px;
    width: 50px;
    background: var(--gold-gradient);
}

.description {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    /* Smaller description text */
    color: var(--text-muted);
    max-width: 600px;
    line-height: 1.6;
    margin-bottom: 2rem;
    /* Reduced margin */
    opacity: 0;
    font-weight: 300;
}

/* CTA Button */
.btn-cta {
    position: relative;
    padding: 2px;
    /* For gradient border */
    background: var(--gold-gradient);
    border-radius: 50px;
    text-decoration: none;
    opacity: 0;
    transition: transform 0.3s ease;
}

.btn-cta .btn-text {
    display: block;
    background: #09221d;
    padding: 1rem 3rem;
    border-radius: 48px;
    color: #fff;
    font-family: 'Cinzel', serif;
    font-weight: 600;
    letter-spacing: 1px;
    transition: background 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(191, 149, 63, 0.4);
}

.btn-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: radial-gradient(circle, rgba(191, 149, 63, 0.4) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.btn-cta:hover .btn-glow {
    opacity: 1;
}

/* CARDS */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.card {
    position: relative;
    background: var(--card-glass);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.1);
    padding: 3rem 2rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease;
}

/* Card Ornament Borders */
.card-border {
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 1px solid var(--gold-dim);
    pointer-events: none;
}

.card:hover {
    transform: translateY(-5px);
    background: rgba(5, 26, 22, 0.85);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.card-title {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    color: var(--gold);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-text {
    font-family: 'Inter', sans-serif;
    color: var(--text-muted);
    font-weight: 300;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Full Width Card */
.card-full {
    grid-column: 1 / -1;
    text-align: center;
    background: linear-gradient(to bottom, var(--card-glass), rgba(10, 20, 18, 0.9));
}

.card-full .card-text {
    max-width: 600px;
    margin: 0 auto;
}

.card::before {
    content: attr(data-number);
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    opacity: 0.05;
    color: var(--gold);
    line-height: 1;
}

/* ANIMATIONS */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2rem;
        letter-spacing: 2px;
    }

    .subtitle {
        flex-direction: column;
        gap: 0.5rem;
    }

    .line {
        width: 30px;
    }

    .main-wrapper {
        margin: 0;
        max-width: 100%;
        border: none;
        padding: 0;
    }

    .ornament-corner {
        display: none;
    }

    .watermark {
        opacity: 0.2;
        /* Even lower on mobile */
    }
}