/* ══════════════════════════════════════════════════════════════════
   Home Page — Dark Theme
   #050A12 bg | #C9A84C gold | #0ED4A8 teal | #E8E0D0 warm white
   ══════════════════════════════════════════════════════════════════ */

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

:root {
    --bg: #050A12;
    --surface: #0A1120;
    --surface-2: #0F1830;
    --gold: #C9A84C;
    --gold-dim: #A68A3A;
    --gold-glow: rgba(201, 168, 76, 0.15);
    --teal: #0ED4A8;
    --teal-dim: #0AAE8A;
    --teal-glow: rgba(14, 212, 168, 0.1);
    --warm: #E8E0D0;
    --warm-dim: rgba(232, 224, 208, 0.6);
    --warm-muted: rgba(232, 224, 208, 0.35);
    --border: rgba(232, 224, 208, 0.08);
    --border-hover: rgba(232, 224, 208, 0.15);
    --radius: 6px;
    --radius-lg: 10px;
    --max-w: 1100px;
    --max-w-narrow: 760px;
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--warm);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── NAV ─────────────────────────────────────────────────────────── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.1rem 0;
    transition: all 0.3s ease;
}

.nav.scrolled {
    background: rgba(5, 10, 18, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    color: var(--warm);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.25rem;
}

.nav-links a {
    color: var(--warm-muted);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--warm); }

.nav-cta {
    color: var(--gold) !important;
    border: 1px solid var(--gold-dim);
    padding: 0.35rem 1.15rem;
    border-radius: 20px;
    font-weight: 600 !important;
    transition: all 0.2s !important;
}

.nav-cta:hover {
    background: var(--gold-glow);
    border-color: var(--gold);
}

.nav-mobile {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    width: 28px;
    height: 20px;
    position: relative;
}

.nav-mobile span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--warm);
    position: absolute;
    left: 0;
    transition: all 0.2s;
}

.nav-mobile span:nth-child(1) { top: 0; }
.nav-mobile span:nth-child(2) { top: 9px; }
.nav-mobile span:nth-child(3) { top: 18px; }

.nav-mobile.open span:nth-child(1) { top: 9px; transform: rotate(45deg); }
.nav-mobile.open span:nth-child(2) { opacity: 0; }
.nav-mobile.open span:nth-child(3) { top: 9px; transform: rotate(-45deg); }

/* ── HERO ────────────────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 2rem;
    overflow: hidden;
}

.hero-canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 60% 50% at 65% 45%, rgba(201, 168, 76, 0.04) 0%, transparent 100%),
        radial-gradient(ellipse 40% 60% at 30% 60%, rgba(14, 212, 168, 0.03) 0%, transparent 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: var(--max-w);
    margin: 0 auto;
    width: 100%;
    padding: 6rem 0;
}

.hero-eyebrow {
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero-headline {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.035em;
    color: var(--warm);
    margin-bottom: 1.75rem;
    max-width: 700px;
}

.hero-sub {
    color: var(--warm-dim);
    font-size: 1.1rem;
    line-height: 1.75;
    max-width: 580px;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-block;
    background: var(--gold);
    color: var(--bg);
    padding: 0.8rem 2rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 0.01em;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: #D4B45A;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(201, 168, 76, 0.25);
}

.btn-ghost {
    display: inline-block;
    color: var(--warm-dim);
    padding: 0.8rem 2rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    border: 1px solid var(--border-hover);
    transition: all 0.2s ease;
}

.btn-ghost:hover {
    border-color: var(--warm-muted);
    color: var(--warm);
}

/* ── SECTIONS ────────────────────────────────────────────────────── */
.section {
    padding: 6rem 2rem;
}

.section-inner {
    max-width: var(--max-w);
    margin: 0 auto;
}

.section-narrow {
    max-width: var(--max-w-narrow);
}

.eyebrow {
    color: var(--teal);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-headline {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.025em;
    color: var(--warm);
    margin-bottom: 1.5rem;
    max-width: 640px;
}

.section-body {
    color: var(--warm-dim);
    font-size: 0.95rem;
    line-height: 1.8;
    max-width: 600px;
    margin-bottom: 1rem;
}

.section-body em {
    color: var(--gold);
    font-style: normal;
    font-weight: 600;
}

/* ── SECTION 2: THE PARADIGM ────────────────────────────────────── */
.paradigm-layout {
    display: grid;
    grid-template-columns: 1fr 40%;
    gap: 4rem;
    align-items: start;
}

.paradigm-copy .section-body {
    max-width: none;
}

.section-body-accent {
    color: var(--warm) !important;
    font-weight: 600;
    font-size: 1.05rem;
    margin-top: 0.5rem;
    margin-bottom: 1.25rem;
}

/* Framework Nameplates */
.framework-nameplates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.framework-nameplate {
    padding-top: 0.75rem;
    border-top: 2px solid var(--gold-dim);
}

.framework-name {
    display: block;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--warm);
    letter-spacing: -0.02em;
    line-height: 1.3;
    text-decoration: none;
    transition: color 0.2s;
    margin-bottom: 0.5rem;
}

.framework-name:hover {
    color: var(--gold);
}

.framework-name .tm {
    font-size: 0.6em;
    vertical-align: super;
    line-height: 0;
    color: var(--warm-muted);
}

.framework-desc {
    font-size: 0.88rem;
    color: var(--warm-dim);
    line-height: 1.6;
}

.framework-tagline {
    margin-top: 2rem;
    font-size: 0.95rem;
    color: var(--warm-muted);
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* Paradigm Visualization */
.paradigm-viz {
    position: sticky;
    top: calc(50vh - 260px);
    height: 520px;
    align-self: start;
}

.paradigm-viz canvas {
    width: 100%;
    height: 520px;
    display: block;
}

/* ── SECTION 3: THE ARCHITECTURE ────────────────────────────────── */
.section-architecture {
    border-top: 1px solid var(--border);
}

.section-architecture .section-body {
    max-width: none;
}

/* Explore Links */
.explore-links {
    display: flex;
    gap: 2.5rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
}

.explore-link {
    color: var(--warm-dim);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
    letter-spacing: 0.01em;
}

.explore-link:hover {
    color: var(--gold);
}

.explore-link .arrow {
    display: inline-block;
    transition: transform 0.2s;
    margin-left: 0.25rem;
}

.explore-link:hover .arrow {
    transform: translateX(3px);
}

/* ── SECTION 4: CTA ─────────────────────────────────────────────── */
.section-cta {
    padding-top: 4rem;
    padding-bottom: 8rem;
}

.cta-center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-body {
    max-width: 560px;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.cta-link {
    color: var(--warm-dim);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: color 0.2s;
}

.cta-link:hover {
    color: var(--gold);
}

.cta-link .arrow {
    display: inline-block;
    transition: transform 0.2s;
    margin-left: 0.25rem;
}

.cta-link:hover .arrow {
    transform: translateX(3px);
}

/* ── FOOTER ──────────────────────────────────────────────────────── */
.footer {
    border-top: 1px solid var(--border);
    padding: 2.5rem 2rem;
    text-align: center;
}

.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.25rem;
}

.footer-nav a {
    color: var(--warm-muted);
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 0.03em;
    transition: color 0.2s;
}

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

.footer-trademarks {
    font-size: 0.68rem;
    color: var(--warm-muted);
    opacity: 0.5;
    letter-spacing: 0.02em;
    margin-bottom: 0.5rem;
}

.footer-copy {
    font-size: 0.7rem;
    color: var(--warm-muted);
    opacity: 0.6;
    letter-spacing: 0.03em;
}

/* ── RESPONSIVE ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .paradigm-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .paradigm-viz {
        position: static;
        padding-top: 0;
    }

    .framework-nameplates {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .explore-links {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links { display: none; }
    .nav-mobile { display: block; }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(5, 10, 18, 0.97);
        backdrop-filter: blur(12px);
        padding: 1.5rem 2rem;
        gap: 1.25rem;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.open .nav-cta {
        align-self: flex-start;
    }
}

@media (max-width: 600px) {
    .hero { min-height: 90vh; padding: 0 1.5rem; }
    .hero-content { padding: 5rem 0; }
    .section { padding: 4rem 1.5rem; }

    .footer-nav {
        flex-wrap: wrap;
        gap: 1rem 1.5rem;
    }
}

/* ── SCROLL REVEAL ───────────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
    .section-headline,
    .section-body,
    .framework-nameplates,
    .explore-links,
    .cta-center,
    .paradigm-viz {
        opacity: 0;
        transform: translateY(16px);
        transition: opacity 0.5s ease, transform 0.5s ease;
    }

    .section-headline.in,
    .section-body.in,
    .framework-nameplates.in,
    .explore-links.in,
    .cta-center.in,
    .paradigm-viz.in {
        opacity: 1;
        transform: translateY(0);
    }
}
