/* ═══════════════════════════════════════════════════════════════
   AURUM KAIROS — Landing v0
   Tono: cinematográfico, disciplinado, premium, restringido.
   ═══════════════════════════════════════════════════════════════ */

/* ─────────── TEMA OSCURO (default) ─────────── */
:root,
[data-theme="dark"] {
    --bg: #050505;
    --bg-alt: #080808;
    --text: #F2F0E8;
    --text-secondary: #9A968C;
    --text-tertiary: #6A6760;
    --gold: #D4AF37;
    --gold-bright: #E5C457;
    --gold-soft: rgba(212, 175, 55, 0.28);
    --gold-faint: rgba(212, 175, 55, 0.10);
    --gold-trace: rgba(212, 175, 55, 0.04);
    --input-bg: rgba(242, 240, 232, 0.04);
    --input-bg-focus: rgba(242, 240, 232, 0.07);
    --button-text: #050505;
}

/* ─────────── TEMA CLARO ─────────── */
[data-theme="light"] {
    --bg: #FAFAF7;
    --bg-alt: #F4F2EC;
    --text: #1a1a1a;
    --text-secondary: #555555;
    --text-tertiary: #888888;
    --gold: #9C7A1A;
    --gold-bright: #B8941F;
    --gold-soft: rgba(156, 122, 26, 0.38);
    --gold-faint: rgba(156, 122, 26, 0.14);
    --gold-trace: rgba(156, 122, 26, 0.06);
    --input-bg: rgba(0, 0, 0, 0.025);
    --input-bg-focus: rgba(0, 0, 0, 0.05);
    --button-text: #FAFAF7;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    transition: background 0.4s ease, color 0.4s ease;
}

/* ───────────────────── TOP BAR ───────────────────── */

.top-bar {
    position: fixed;
    top: 1.4rem;
    right: 1.75rem;
    display: flex;
    align-items: center;
    gap: 1.3rem;
    z-index: 50;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.12em;
}

.lang-option {
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    padding: 0.2rem 0.1rem;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    transition: color 0.25s ease;
}

.lang-option:hover {
    color: var(--text-secondary);
}

.lang-option.active {
    color: var(--gold);
}

.lang-divider {
    color: var(--text-tertiary);
    opacity: 0.4;
}

.theme-toggle {
    background: none;
    border: 1px solid var(--gold-soft);
    color: var(--gold);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.25s ease, color 0.25s ease, transform 0.3s ease;
}

.theme-toggle:hover {
    border-color: var(--gold);
    transform: rotate(20deg);
}

.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* ───────────────────── HERO ───────────────────── */

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 17vh 1.5rem 5rem;
    text-align: center;
    position: relative;
}

/* Stagger fade-in para cada elemento del hero */
.hero > * {
    opacity: 0;
    animation: fadeInUp 0.95s ease-out forwards;
}
.hero > *:nth-child(1) { animation-delay: 0.10s; }
.hero > *:nth-child(2) { animation-delay: 0.28s; }
.hero > *:nth-child(3) { animation-delay: 0.46s; }
.hero > *:nth-child(4) { animation-delay: 0.62s; }
.hero > *:nth-child(5) { animation-delay: 0.76s; }
.hero > *:nth-child(6) { animation-delay: 0.90s; }
.hero > *:nth-child(7) { animation-delay: 1.02s; }
.hero > *:nth-child(8) { animation-delay: 1.14s; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Wordmark — brand mark, restringido */
.wordmark-block {
    margin-bottom: 2.5rem;
}

.wordmark {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    font-size: clamp(1.5rem, 3.2vw, 2.1rem);
    color: var(--gold);
    letter-spacing: 0.22em;
    line-height: 1.1;
    transition: color 0.4s ease;
}

.diamond {
    color: var(--gold);
    font-weight: 400;
    padding: 0 0.2em;
    opacity: 0.8;
}

.brand-tagline {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 400;
    font-size: clamp(0.78rem, 1.1vw, 0.88rem);
    color: var(--gold);
    opacity: 0.62;
    letter-spacing: 0.06em;
    margin-top: 0.65rem;
}

.thanks-tagline {
    margin-top: 0.5rem;
    margin-bottom: 2.5rem;
}

.rule {
    width: 90px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 1.4rem auto 0;
    opacity: 0.45;
    animation: ruleGlow 5.5s ease-in-out infinite;
}

@keyframes ruleGlow {
    0%, 100% { opacity: 0.25; }
    50%      { opacity: 0.65; }
}

/* Headline principal — el hook */
.main-headline {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 400;
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    color: var(--text);
    line-height: 1.15;
    margin-bottom: 1.4rem;
    max-width: 820px;
    letter-spacing: -0.005em;
}

/* Sub-headline — 2 líneas en serif */
.sub-headline {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-size: clamp(1.05rem, 1.8vw, 1.3rem);
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 2.5rem;
    max-width: 640px;
}

/* Línea de apoyo — Inter, descriptiva */
.supporting-line {
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.4rem;
    max-width: 540px;
    letter-spacing: 0.005em;
}

/* Acceso privado — micro-label en oro */
.private-access {
    font-family: 'Inter', sans-serif;
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--gold);
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.28em;
    margin-bottom: 2.75rem;
}

/* ───────────────────── FORM ───────────────────── */

.waitlist {
    display: flex;
    gap: 0.6rem;
    width: 100%;
    max-width: 500px;
    margin-bottom: 0.85rem;
}

.waitlist input[type="email"] {
    flex: 1;
    background: var(--input-bg);
    border: 1px solid var(--gold-soft);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    padding: 0.95rem 1.1rem;
    border-radius: 1px;
    outline: none;
    letter-spacing: 0.01em;
    transition: border-color 0.25s ease, background 0.25s ease;
}

.waitlist input[type="email"]::placeholder {
    color: var(--text-tertiary);
    opacity: 0.8;
}

.waitlist input[type="email"]:focus {
    border-color: var(--gold);
    background: var(--input-bg-focus);
}

.waitlist button {
    background: var(--gold);
    color: var(--button-text);
    border: 1px solid var(--gold);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    padding: 0.95rem 1.6rem;
    border-radius: 1px;
    cursor: pointer;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: background 0.25s ease, transform 0.12s ease, box-shadow 0.3s ease;
    white-space: nowrap;
}

.waitlist button:hover {
    background: var(--gold-bright);
    box-shadow: 0 0 24px -4px rgba(212, 175, 55, 0.35);
}

.waitlist button:active {
    transform: translateY(1px);
}

/* Honeypot — invisible para humanos */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.microcopy {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    color: var(--text-tertiary);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 3.5rem;
}

.post-form-divider {
    width: 1px;
    height: 60px;
    background: linear-gradient(180deg, var(--gold-soft), transparent);
    opacity: 0.5;
}

/* ───────────────────── PHILOSOPHY ───────────────────── */

.philosophy {
    padding: 9rem 1.5rem 7rem;
    text-align: center;
    position: relative;
    border-top: 1px solid var(--gold-faint);
}

.section-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--gold);
    opacity: 0.8;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    margin-bottom: 4rem;
}

.philosophy-block {
    margin-bottom: 3.5rem;
}

.philosophy-block p {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1.35rem, 2.6vw, 1.85rem);
    color: var(--text);
    line-height: 1.5;
    margin-bottom: 0.5rem;
    opacity: 0.96;
}

.philosophy-divider {
    width: 1px;
    height: 50px;
    background: linear-gradient(180deg, var(--gold-soft), transparent);
    margin: 0 auto 3rem;
    opacity: 0.5;
}

.philosophy-closer p {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 400;
    font-size: clamp(0.98rem, 1.5vw, 1.15rem);
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto;
}

/* ───────────────────── FOOTER ───────────────────── */

.site-footer {
    padding: 3rem 1.5rem 2.5rem;
    text-align: center;
    border-top: 1px solid var(--gold-trace);
}

.footer-rule {
    width: 1px;
    height: 36px;
    background: linear-gradient(180deg, var(--gold-soft), transparent);
    margin: 0 auto 2rem;
    opacity: 0.5;
}

.site-footer p {
    font-family: 'Inter', sans-serif;
    font-size: 0.68rem;
    color: var(--text-tertiary);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.55rem;
}

.site-footer a {
    color: var(--text-tertiary);
    text-decoration: none;
    transition: color 0.25s ease;
    letter-spacing: 0.05em;
    text-transform: none;
}

.site-footer a:hover {
    color: var(--gold);
}

.disclaimer {
    font-style: italic;
    opacity: 0.7;
    margin-top: 1.25rem !important;
    letter-spacing: 0.05em !important;
    text-transform: none !important;
}

/* ───────────────────── THANKS PAGE ───────────────────── */

.thanks-main {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20vh 1.5rem 4rem;
    text-align: center;
}

.thanks-main > * {
    opacity: 0;
    animation: fadeInUp 0.95s ease-out forwards;
}
.thanks-main > *:nth-child(1) { animation-delay: 0.10s; }
.thanks-main > *:nth-child(2) { animation-delay: 0.30s; }
.thanks-main > *:nth-child(3) { animation-delay: 0.50s; }
.thanks-main > *:nth-child(4) { animation-delay: 0.66s; }
.thanks-main > *:nth-child(5) { animation-delay: 0.82s; }
.thanks-main > *:nth-child(6) { animation-delay: 0.96s; }
.thanks-main > *:nth-child(7) { animation-delay: 1.08s; }

.success-mark {
    width: 64px;
    height: 64px;
    border: 1px solid var(--gold-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2.5rem;
    animation: successPulse 4s ease-in-out infinite;
    position: relative;
}

.success-mark svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: var(--gold);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 30;
    stroke-dashoffset: 30;
    animation: drawCheck 0.9s 0.7s ease-out forwards;
}

@keyframes drawCheck {
    to { stroke-dashoffset: 0; }
}

@keyframes successPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); border-color: var(--gold-soft); }
    50%      { box-shadow: 0 0 20px 3px rgba(212, 175, 55, 0.18); border-color: var(--gold); }
}

.thanks-mark {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    font-size: clamp(1.2rem, 2.8vw, 1.7rem);
    color: var(--gold);
    letter-spacing: 0.22em;
    margin-bottom: 0;
}

.thanks-headline {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    color: var(--text);
    line-height: 1.2;
    margin-bottom: 1.2rem;
    max-width: 720px;
}

.thanks-body {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 480px;
    margin-bottom: 2rem;
    line-height: 1.65;
}

.thanks-micro {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    color: var(--gold);
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.28em;
    margin-bottom: 3rem;
}

.thanks-divider {
    width: 1px;
    height: 50px;
    background: linear-gradient(180deg, var(--gold-soft), transparent);
    opacity: 0.5;
    margin-bottom: 2.5rem;
}

.rotating-phrase {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1.05rem, 1.8vw, 1.3rem);
    color: var(--text);
    opacity: 0.85;
    margin-bottom: 3.5rem;
    max-width: 480px;
    line-height: 1.55;
}

.thanks-back {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    color: var(--gold);
    text-decoration: none;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--gold-soft);
    padding-bottom: 4px;
    transition: border-color 0.25s ease, color 0.25s ease;
}

.thanks-back:hover {
    border-color: var(--gold);
    color: var(--gold-bright);
}

/* ───────────────────── MOBILE ───────────────────── */

@media (max-width: 640px) {
    .top-bar {
        top: 1rem;
        right: 1rem;
        gap: 0.9rem;
    }

    .lang-toggle {
        font-size: 0.7rem;
    }

    .theme-toggle {
        width: 30px;
        height: 30px;
    }

    .hero {
        padding: 13vh 1.25rem 3.5rem;
    }

    .wordmark {
        letter-spacing: 0.18em;
    }

    .main-headline {
        margin-bottom: 1.1rem;
    }

    .sub-headline {
        margin-bottom: 2rem;
    }

    .private-access {
        font-size: 0.62rem;
        letter-spacing: 0.22em;
        margin-bottom: 2.25rem;
    }

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

    .waitlist button {
        width: 100%;
    }

    .microcopy {
        margin-bottom: 2.5rem;
    }

    .philosophy {
        padding: 6rem 1.25rem 5rem;
    }

    .section-label {
        letter-spacing: 0.32em;
        margin-bottom: 3rem;
    }

    .philosophy-block {
        margin-bottom: 2.5rem;
    }

    .thanks-main {
        padding: 14vh 1.25rem 3rem;
    }
}
