:root {
    --blue-black: #07111f;
    --blue-deep: #0b2f58;
    --blue-mid: #123e6f;
    --blue-electric: #2f80ed;
    --gold: #d8a84f;
    --gold-soft: #f1dba7;
    --cream: #f8f6f1;
    --card: #fefdfc;
    --text: #182231;
    --muted: #6d7480;
    --line: rgba(11, 47, 88, .14);
    --white: #ffffff;
    --shadow: 0 24px 70px rgba(7, 17, 31, .13);
    --radius-sm: 14px;
    --radius-md: 22px;
    --radius-lg: 34px;
    --font-title: 'Space Grotesk', 'Inter', system-ui, sans-serif;
    --font-text: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-text);
    color: var(--text);
    background: var(--cream);
    line-height: 1.65;
    text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue-electric); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }

.container { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.narrow { width: min(860px, calc(100% - 40px)); }
.centered { text-align: center; }

.skip-link {
    position: absolute;
    left: 16px;
    top: -100px;
    z-index: 999;
    background: var(--gold);
    color: var(--blue-black);
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 800;
}
.skip-link:focus { top: 16px; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(7, 17, 31, .88);
    border-bottom: 1px solid rgba(255,255,255,.08);
    backdrop-filter: blur(18px);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 78px;
    gap: 24px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
}
.brand:hover { color: var(--white); }
.brand-mark {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(216,168,79,.7);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(216,168,79,.22), rgba(47,128,237,.14));
    font-family: var(--font-mono);
    font-weight: 800;
    letter-spacing: -.08em;
    color: var(--gold);
}
.brand-mark span { color: #fff; letter-spacing: -.1em; }
.brand-text { display: grid; line-height: 1.15; }
.brand-text strong { font-family: var(--font-title); font-size: 1.38rem; letter-spacing: -.02em; }
.brand-text small { color: rgba(255,255,255,.68); font-size: .76rem; }
.primary-nav { display: flex; align-items: center; gap: 4px; }
.primary-nav a {
    color: rgba(255,255,255,.82);
    font-weight: 700;
    font-size: .94rem;
    padding: 10px 12px;
    border-radius: 999px;
}
.primary-nav a:hover, .primary-nav a.is-active { background: rgba(255,255,255,.08); color: var(--white); }
.primary-nav .nav-cta {
    margin-left: 6px;
    background: var(--gold);
    color: var(--blue-black);
    box-shadow: 0 12px 30px rgba(216,168,79,.24);
}
.primary-nav .nav-cta:hover, .primary-nav .nav-cta.is-active { background: #e4b963; color: var(--blue-black); }
.nav-toggle { display: none; }

.section { padding: 92px 0; }
.section-dark {
    color: var(--white);
    background:
        radial-gradient(circle at 15% 15%, rgba(47,128,237,.32), transparent 32%),
        radial-gradient(circle at 80% 20%, rgba(216,168,79,.24), transparent 28%),
        linear-gradient(135deg, #07111f 0%, #0b2f58 100%);
}
.section-dark-soft {
    color: var(--white);
    background:
        linear-gradient(135deg, rgba(7,17,31,.96), rgba(11,47,88,.98)),
        repeating-linear-gradient(90deg, rgba(255,255,255,.08) 0 1px, transparent 1px 80px);
}
.section-light { background: #fff; }
.section-cream { background: var(--cream); }

.hero { position: relative; overflow: hidden; padding: 98px 0 108px; }
.hero::after, .page-hero::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(216,168,79,.8), transparent);
}
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
    align-items: center;
    gap: 56px;
}
.eyebrow {
    margin: 0 0 14px;
    font-family: var(--font-mono);
    color: var(--gold);
    font-weight: 800;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .13em;
}
.eyebrow-dark { color: var(--blue-mid); }
h1, h2, h3 {
    font-family: var(--font-title);
    line-height: 1.06;
    letter-spacing: -.035em;
    margin-top: 0;
}
h1 { font-size: clamp(2.8rem, 6vw, 5.7rem); margin-bottom: 24px; }
h2 { font-size: clamp(2rem, 3.6vw, 3.55rem); margin-bottom: 18px; }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); margin-bottom: 10px; }
p { margin-top: 0; }
.hero-lead, .page-hero p, .section-heading p, .narrow p { font-size: 1.12rem; color: inherit; }
.hero-lead { color: rgba(255,255,255,.82); max-width: 700px; }
.microcopy { color: rgba(255,255,255,.72); font-weight: 600; margin-top: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 28px; }
.center-actions { justify-content: center; }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 20px;
    border-radius: 999px;
    font-weight: 800;
    border: 1px solid transparent;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gold); color: var(--blue-black); box-shadow: 0 14px 34px rgba(216,168,79,.25); }
.btn-primary:hover { color: var(--blue-black); background: #e6ba61; }
.btn-outline { border-color: rgba(255,255,255,.28); color: var(--white); background: rgba(255,255,255,.06); }
.btn-outline:hover { color: var(--white); border-color: var(--gold); }

.hero-visual { min-height: 480px; position: relative; display: grid; place-items: center; }
.terminal-card {
    width: min(430px, 100%);
    border-radius: 28px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(7,17,31,.72);
    box-shadow: 0 34px 90px rgba(0,0,0,.34);
    padding: 26px;
    position: relative;
    z-index: 2;
}
.terminal-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; background: rgba(255,255,255,.32); }
.terminal-card pre { margin: 22px 0 0; white-space: pre-wrap; color: #dfe9ff; font-family: var(--font-mono); font-size: .98rem; line-height: 1.8; }
.orbit-card {
    position: absolute;
    z-index: 3;
    padding: 16px 18px;
    border-radius: 20px;
    background: rgba(255,255,255,.9);
    color: var(--blue-black);
    box-shadow: var(--shadow);
    font-family: var(--font-mono);
    font-weight: 800;
}
.orbit-card span { display: block; font-family: var(--font-text); font-weight: 700; font-size: .78rem; color: var(--muted); }
.card-1969 { top: 46px; left: 0; }
.card-now { right: 8px; bottom: 70px; }
.chip-lines {
    position: absolute;
    width: 360px;
    height: 360px;
    border: 1px solid rgba(216,168,79,.28);
    border-radius: 50%;
    background:
        linear-gradient(90deg, transparent 49%, rgba(216,168,79,.18) 50%, transparent 51%),
        linear-gradient(0deg, transparent 49%, rgba(47,128,237,.18) 50%, transparent 51%);
}

.page-hero { position: relative; overflow: hidden; padding: 86px 0; }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 390px); gap: 44px; align-items: center; }
.page-hero h1 { font-size: clamp(2.5rem, 5vw, 4.7rem); }
.page-hero p { color: rgba(255,255,255,.82); }
.quote-card {
    padding: 30px;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.13);
}
.quote-card p { font-family: var(--font-title); font-size: 1.35rem; color: var(--white); }
.quote-card span { color: var(--gold-soft); font-weight: 800; }

.section-heading { text-align: center; max-width: 790px; margin: 0 auto 42px; }
.section-heading.align-left { text-align: left; margin-left: 0; }
.section-heading.with-action { display: flex; align-items: end; justify-content: space-between; gap: 30px; max-width: none; text-align: left; }
.section-heading p, .narrow p, .timeline-intro p, .story-grid p, .two-col p { color: var(--muted); }
.light-heading p { color: rgba(255,255,255,.78); }
.cards-grid, .article-grid, .proof-grid, .topic-grid, .ecosystem-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}
.cards-grid.six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature-card, .article-card, .proof-card, .project-card, .topic-grid article, .family-card, .contact-cards article, .guide-steps article {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 28px;
    box-shadow: 0 16px 42px rgba(7,17,31,.06);
}
.feature-card h3, .feature-card h2, .project-card h3, .project-card h2, .topic-grid h2 { color: var(--blue-black); }
.feature-card p, .article-card p, .project-card p, .topic-grid p, .family-card p, .guide-steps p { color: var(--muted); }
.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(216,168,79,.18);
    color: var(--blue-mid);
    font-family: var(--font-mono);
    font-weight: 900;
    margin-bottom: 18px;
}
.text-link, .article-card a, .project-card a, .article-row a, .feature-card a {
    display: inline-flex;
    margin-top: 10px;
    color: var(--blue-mid);
    font-weight: 900;
}
.text-link::after, .article-card a::after, .project-card a::after, .article-row a::after, .feature-card a::after { content: ' →'; }

.compare-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.compare-card {
    border-radius: var(--radius-lg);
    padding: 34px;
    border: 1px solid rgba(255,255,255,.13);
    background: rgba(255,255,255,.06);
}
.grandpai-mode { background: linear-gradient(145deg, rgba(216,168,79,.18), rgba(47,128,237,.12)); border-color: rgba(216,168,79,.32); }
.check-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.check-list li { padding-left: 28px; position: relative; color: rgba(255,255,255,.82); font-weight: 700; }
.check-list li::before { position: absolute; left: 0; }
.muted-list li::before { content: '•'; color: rgba(255,255,255,.42); }
.gold-list li::before { content: '✓'; color: var(--gold); }

.article-card span, .article-row span {
    display: inline-flex;
    color: var(--blue-mid);
    background: rgba(47,128,237,.08);
    font-weight: 900;
    font-size: .76rem;
    padding: 6px 10px;
    border-radius: 999px;
    margin-bottom: 14px;
}
.article-card h3, .article-card h2 { font-size: 1.25rem; line-height: 1.18; }
.proof-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.proof-card strong, .stat-stack strong {
    display: block;
    font-family: var(--font-title);
    font-size: 3.35rem;
    line-height: 1;
    color: var(--blue-mid);
    letter-spacing: -.06em;
}
.proof-card p { color: var(--muted); }

.timeline-layout { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.timeline-intro { position: sticky; top: 112px; }
.timeline { position: relative; display: grid; gap: 18px; }
.timeline::before { content: ''; position: absolute; left: 24px; top: 0; bottom: 0; width: 2px; background: linear-gradient(var(--gold), var(--blue-electric)); }
.timeline article {
    position: relative;
    margin-left: 58px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: 0 12px 30px rgba(7,17,31,.05);
}
.timeline article::before {
    content: '';
    position: absolute;
    left: -45px;
    top: 28px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--gold);
    border: 4px solid var(--cream);
    box-shadow: 0 0 0 2px var(--gold);
}
.timeline time { display: inline-block; font-family: var(--font-mono); font-weight: 900; color: var(--blue-mid); margin-bottom: 8px; }
.timeline h3 { margin-bottom: 8px; }
.timeline p { margin-bottom: 0; color: var(--muted); }

.story-grid, .two-col, .contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr); gap: 44px; align-items: start; }
.stat-stack { display: grid; gap: 16px; }
.stat-stack article, .glass-panel, .contact-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 26px;
    box-shadow: 0 16px 44px rgba(7,17,31,.06);
}
.stat-stack span { font-weight: 900; color: var(--blue-black); }
.stat-stack p { margin-bottom: 0; font-size: .94rem; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.tag-cloud span { padding: 8px 11px; border-radius: 999px; background: rgba(11,47,88,.08); color: var(--blue-mid); font-weight: 800; font-size: .88rem; }
.family-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.article-list { display: grid; gap: 14px; }
.article-row {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 18px 22px;
}
.article-row span { margin: 0; justify-self: start; }
.article-row h3 { margin: 0; font-size: 1.1rem; }
.guide-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.guide-steps span { font-family: var(--font-mono); color: var(--gold); font-weight: 900; }
.contact-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.small-note { margin-top: 18px; color: var(--muted); font-size: .92rem; }
code { font-family: var(--font-mono); background: rgba(11,47,88,.08); padding: .1em .35em; border-radius: 6px; }
.legal-content { max-width: 860px; }
.legal-content h2 { font-size: 1.55rem; margin-top: 32px; }
.not-found { min-height: 62vh; display: grid; place-items: center; }

.site-footer {
    background: var(--blue-black);
    color: rgba(255,255,255,.78);
    padding: 64px 0 26px;
}
.footer-grid { display: grid; grid-template-columns: 1.45fr repeat(3, 1fr); gap: 34px; }
.footer-brand p { max-width: 330px; }
.footer-place { color: var(--gold-soft); }
.site-footer h2 { font-size: .95rem; color: #fff; letter-spacing: .02em; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: rgba(255,255,255,.78); }
.site-footer a:hover { color: var(--gold); }
.footer-logo { margin-bottom: 18px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.09); margin-top: 42px; padding-top: 22px; font-size: .92rem; }
.footer-bottom p { margin: 0; }

@media (max-width: 980px) {
    .nav-toggle {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 46px;
        height: 46px;
        border: 1px solid rgba(255,255,255,.16);
        border-radius: 14px;
        background: rgba(255,255,255,.07);
        cursor: pointer;
    }
    .nav-toggle span:not(.sr-only) { display: block; width: 20px; height: 2px; background: #fff; margin-inline: auto; }
    .primary-nav {
        position: absolute;
        inset: 78px 20px auto;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        background: rgba(7,17,31,.98);
        border: 1px solid rgba(255,255,255,.12);
        border-radius: 20px;
        box-shadow: var(--shadow);
    }
    .primary-nav.is-open { display: flex; }
    .primary-nav a { border-radius: 12px; }
    .primary-nav .nav-cta { margin-left: 0; text-align: center; }
    .hero-grid, .page-hero-grid, .timeline-layout, .story-grid, .two-col, .contact-grid { grid-template-columns: 1fr; }
    .hero-visual { min-height: 360px; }
    .timeline-intro { position: static; }
    .cards-grid, .cards-grid.six, .article-grid, .topic-grid, .ecosystem-grid, .proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .family-grid { grid-template-columns: 1fr 1fr; }
    .section-heading.with-action { display: block; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
    .container, .narrow { width: min(100% - 28px, 1160px); }
    .header-inner { min-height: 70px; }
    .brand-text small { display: none; }
    .primary-nav { inset: 70px 14px auto; }
    .section { padding: 64px 0; }
    .hero { padding: 72px 0; }
    h1 { font-size: clamp(2.3rem, 15vw, 3.4rem); }
    h2 { font-size: clamp(1.85rem, 10vw, 2.6rem); }
    .hero-actions { align-items: stretch; }
    .btn { width: 100%; }
    .cards-grid, .cards-grid.six, .article-grid, .topic-grid, .ecosystem-grid, .proof-grid, .compare-grid, .guide-steps, .contact-cards, .family-grid { grid-template-columns: 1fr; }
    .article-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .terminal-card { padding: 20px; }
    .orbit-card { position: static; margin: 10px; justify-self: start; }
    .hero-visual { display: flex; flex-direction: column; align-items: stretch; min-height: auto; }
    .chip-lines { display: none; }
}
