/* ─── TOKENS ─── */
:root {
    --bg:           #080C18;
    --bg-surface:   #0D1223;
    --bg-elevated:  #131828;
    --gold:         #C8A951;
    --gold-light:   #DEC272;
    --gold-dim:     rgba(200, 169, 81, 0.12);
    --red:          #B84444;
    --text:         #EDE8DC;
    --text-muted:   #C4BDB4;
    --text-dim:     #948E85;
    --border:       rgba(200, 169, 81, 0.18);
    --border-sub:   rgba(255, 255, 255, 0.06);

    --serif:  'Cormorant Garamond', Georgia, serif;
    --sans:   'Jost', system-ui, sans-serif;

    --max: 1080px;
    --pad: clamp(20px, 5vw, 60px);
    --section: clamp(80px, 10vw, 140px);
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-weight: 400;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ─── NAV ─── */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 0 var(--pad);
    height: 68px;
    display: flex;
    align-items: center;
    transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
    border-bottom: 1px solid transparent;
}
.nav.scrolled {
    background: rgba(8, 12, 24, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom-color: var(--border-sub);
}
.nav-inner {
    max-width: var(--max);
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    font-family: var(--serif);
    font-size: 26px;
    font-weight: 600;
    color: var(--gold);
    text-decoration: none;
    letter-spacing: 0.02em;
}
.nav-cta {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}
.nav-cta:hover { color: var(--gold); }

/* ─── HERO ─── */
.hero {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 120px var(--pad) 80px;
}
.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.hero-dots {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.hero-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 900px 700px at 55% 45%, rgba(200,169,81,0.055) 0%, transparent 65%),
        radial-gradient(ellipse 600px 500px at 10% 80%, rgba(80,100,180,0.04) 0%, transparent 60%);
}
.hero-inner {
    max-width: var(--max);
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
}
.hero-quote {
    font-family: var(--serif);
    font-size: clamp(22px, 2.8vw, 34px);
    font-style: italic;
    font-weight: 600;
    color: var(--text);
    border-left: 2px solid var(--border);
    padding-left: 24px;
    margin-bottom: 40px;
    max-width: 620px;
    opacity: 0;
    animation: fadeUp 0.9s ease 0.2s forwards;
}
.hero-quote cite {
    display: block;
    font-style: normal;
    font-size: 13px;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-top: 8px;
}
.hero-headline {
    font-family: var(--serif);
    font-size: clamp(44px, 7vw, 92px);
    font-weight: 600;
    line-height: 1.06;
    letter-spacing: -0.01em;
    color: var(--text);
    margin-bottom: 28px;
    max-width: 860px;
    opacity: 0;
    animation: fadeUp 0.9s ease 0.4s forwards;
}
.hero-headline em {
    font-style: italic;
    font-weight: 400;
    color: var(--gold-light);
}
.hero-sub {
    font-size: clamp(16px, 1.8vw, 19px);
    font-weight: 400;
    line-height: 1.75;
    color: var(--text-muted);
    max-width: 540px;
    margin-bottom: 52px;
    opacity: 0;
    animation: fadeUp 0.9s ease 0.6s forwards;
}
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold);
    text-decoration: none;
    opacity: 0;
    animation: fadeUp 0.9s ease 0.8s forwards;
    transition: gap 0.25s;
}
.hero-cta::after { content: '↓'; }
.hero-cta:hover { gap: 14px; }

.hero-scroll {
    position: absolute;
    bottom: 44px;
    left: var(--pad);
    opacity: 0;
    animation: fadeIn 1s ease 1.6s forwards;
}
.hero-scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    animation: pulse 2.4s ease-in-out infinite;
}

/* ─── KEYFRAMES ─── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    to { opacity: 0.45; }
}
@keyframes pulse {
    0%, 100% { transform: scaleY(1);   opacity: 1; }
    50%       { transform: scaleY(0.6); opacity: 0.3; }
}

/* ─── REVEAL ─── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }

/* ─── SHARED SECTION ─── */
.section { padding: var(--section) var(--pad); }
.section-inner { max-width: var(--max); margin: 0 auto; }

.section-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
}
.section h2 {
    font-family: var(--serif);
    font-size: clamp(34px, 4.5vw, 62px);
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--text);
}
.section-intro {
    font-size: clamp(15px, 1.5vw, 18px);
    line-height: 1.75;
    color: var(--text-muted);
    max-width: 620px;
    margin-bottom: 60px;
}
.section-intro em { color: var(--text); font-style: italic; }

/* ─── BRIDGE LINKS ─── */
.bridge-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 52px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--gold);
    text-decoration: none;
    transition: gap 0.25s;
}
.bridge-link:hover { gap: 14px; }

/* ─── NOBODY CHOSE THIS ─── */
.nobody-section {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-sub);
    border-bottom: 1px solid var(--border-sub);
}
.nobody-body {
    max-width: 680px;
}
.nobody-body p {
    font-size: clamp(16px, 1.6vw, 18px);
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 20px;
}
.nobody-pull {
    font-family: var(--serif);
    font-size: clamp(20px, 2.2vw, 26px) !important;
    font-style: italic;
    color: var(--text) !important;
    margin-top: 8px;
}

/* ─── WHY NOW ─── */
.why-section {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-sub);
    border-bottom: 1px solid var(--border-sub);
}
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 48px;
    border: 1px solid rgba(255,255,255,0.2);
}
.why-card {
    padding: 36px 32px;
    border-right: 1px solid rgba(255,255,255,0.2);
}
.why-card:last-child {
    border-right: none;
}
.why-number {
    font-family: var(--serif);
    font-size: 48px;
    font-weight: 300;
    color: var(--gold);
    opacity: 0.5;
    line-height: 1;
    margin-bottom: 16px;
}
.why-card h3 {
    font-family: var(--serif);
    font-size: 21px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text);
    line-height: 1.25;
}
.why-card p {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ─── MAYA ─── */
.maya-section {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-sub);
    border-bottom: 1px solid var(--border-sub);
}
.maya-body {
    max-width: 720px;
}
.maya-body > p {
    font-size: clamp(16px, 1.6vw, 18px);
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 20px;
}
.maya-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 40px 0;
    border: 1px solid rgba(255,255,255,0.2);
}
.maya-stat {
    padding: 28px 24px;
    border-right: 1px solid rgba(255,255,255,0.2);
}
.maya-stat:last-child {
    border-right: none;
}
.maya-stat-value {
    font-family: var(--serif);
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 600;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 10px;
}
.maya-stat-label {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}
.maya-pull {
    font-family: var(--serif);
    font-size: clamp(19px, 2vw, 24px) !important;
    font-style: italic;
    color: var(--text) !important;
    border-left: 2px solid var(--border);
    padding-left: 24px;
    margin-top: 8px;
}

/* ─── PROBLEM ─── */
.problem-section {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-sub);
    border-bottom: 1px solid var(--border-sub);
}

.math-display {
    padding: 48px;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    position: relative;
    overflow: hidden;
    margin-bottom: 64px;
}
.math-display::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--red) 40%, var(--red) 60%, transparent 100%);
    opacity: 0.6;
}
.math-label {
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 28px;
}
.math-equation {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}
.math-block { display: flex; flex-direction: column; gap: 8px; }
.math-value {
    font-family: var(--serif);
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 600;
    line-height: 1;
    color: var(--text);
}
.math-block--bad .math-value  { color: var(--red); }
.math-block--loss .math-value { color: var(--red); }
.math-desc {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.math-block--loss .math-desc { color: var(--red); opacity: 0.7; }
.math-op {
    font-family: var(--serif);
    font-size: 48px;
    font-weight: 300;
    color: var(--red);
    line-height: 1;
    padding-bottom: 20px;
}
.math-op--dim { color: var(--text-dim); }
.math-footnote {
    font-size: 14px;
    color: var(--text-muted);
    font-style: italic;
    border-top: 1px solid var(--border-sub);
    padding-top: 20px;
    line-height: 1.6;
}

.problem-aside {
    border-left: 2px solid var(--border);
    padding: 4px 0 4px 28px;
    margin-top: 0;
}
.problem-aside p {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 16px;
    max-width: 660px;
}
.problem-aside p:last-child {
    margin-bottom: 0;
    color: var(--text);
    font-style: italic;
    font-family: var(--serif);
    font-size: 18px;
}

/* ─── FOUNDING ─── */
.founding-section {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-sub);
    border-bottom: 1px solid var(--border-sub);
}
.founding-card {
    position: relative;
    border: 1px solid var(--gold);
    padding: clamp(36px, 5vw, 64px);
    background: linear-gradient(135deg, rgba(200,169,81,0.05) 0%, transparent 55%);
    overflow: hidden;
}
.founding-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 600px 400px at 0% 0%, rgba(200,169,81,0.04) 0%, transparent 60%);
    pointer-events: none;
}
.founding-badge {
    position: absolute;
    top: -1px; right: 48px;
    background: var(--gold);
    color: var(--bg);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 6px 14px;
}
.founding-card .section-label { margin-top: 8px; }
.founding-intro {
    font-size: clamp(15px, 1.4vw, 17px);
    color: var(--text-muted);
    line-height: 1.75;
    max-width: 680px;
    margin-bottom: 20px;
}
.founding-coda {
    font-family: var(--serif);
    font-size: clamp(18px, 2vw, 22px);
    font-style: italic;
    color: var(--text);
    line-height: 1.5;
    max-width: 620px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

/* ─── SIGNUP ─── */
.signup-inner { max-width: 520px; }
.signup-intro {
    font-size: clamp(15px, 1.4vw, 17px);
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 44px;
}
#signup-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
#signup-form input:not([type="checkbox"]) {
    background: var(--bg-surface);
    border: 1px solid var(--border-sub);
    padding: 15px 18px;
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 400;
    color: var(--text);
    width: 100%;
    outline: none;
    transition: border-color 0.2s;
    border-radius: 0;
    -webkit-appearance: none;
}
#signup-form input:not([type="checkbox"])::placeholder { color: var(--text-dim); }
#signup-form input:not([type="checkbox"]):focus { border-color: var(--gold); }
.signup-role {
    border: 1px solid var(--border-sub);
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.signup-role legend {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
    padding: 0 6px;
}
.signup-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
    color: var(--text-muted);
    cursor: pointer;
    user-select: none;
}
.signup-checkbox strong {
    display: block;
    color: var(--text);
    font-weight: 500;
    margin-bottom: 2px;
}
.signup-checkbox-desc {
    display: block;
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.55;
}
.signup-checkbox input[type="checkbox"] {
    accent-color: var(--gold);
    cursor: pointer;
    margin-top: 3px;
    flex-shrink: 0;
}
#signup-form textarea {
    background: var(--bg-surface);
    border: 1px solid var(--border-sub);
    padding: 15px 18px;
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 400;
    color: var(--text);
    width: 100%;
    outline: none;
    resize: vertical;
    transition: border-color 0.2s;
    border-radius: 0;
    -webkit-appearance: none;
}
#signup-form textarea::placeholder { color: var(--text-dim); }
#signup-form textarea:focus { border-color: var(--gold); }
#signup-form button {
    background: var(--gold);
    border: none;
    padding: 15px 28px;
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--bg);
    cursor: pointer;
    transition: background 0.2s;
    align-self: flex-start;
    border-radius: 0;
}
#signup-form button:hover { background: var(--gold-light); }
#success-message {
    color: var(--gold-light);
    font-family: var(--serif);
    font-size: 19px;
    font-style: italic;
    padding: 24px 0;
    line-height: 1.5;
}

/* ─── FOOTER ─── */
.footer {
    border-top: 1px solid var(--border-sub);
    padding: 44px var(--pad);
}
.footer-inner {
    max-width: var(--max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-logo {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 600;
    color: var(--gold);
    opacity: 0.4;
}
.footer-links {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
}
.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold); }
.footer-links span { color: var(--text-dim); }
.footer-sep { color: var(--text-dim); }
.footer-copy {
    width: 100%;
    font-size: 14px;
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
    margin-top: 8px;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
    .why-grid { grid-template-columns: 1fr; }
    .why-card { border-right: none; border-bottom: 1px solid var(--border-sub); }
    .why-card:last-child { border-bottom: none; }
    .maya-stats { grid-template-columns: 1fr; }
    .maya-stat { border-right: none; border-bottom: 1px solid var(--border-sub); }
    .maya-stat:last-child { border-bottom: none; }
}
@media (max-width: 640px) {
    .founding-badge { right: 24px; }
    .founding-benefits { grid-template-columns: 1fr; }
    .math-display { padding: 28px 20px; }
    .math-op { font-size: 32px; padding-bottom: 16px; }
    .footer-inner { flex-direction: column; text-align: center; }
    .footer-links { justify-content: center; }
    .nav-cta { display: none; }
}
