:root {
    --night: #07130f;
    --forest: #0d221c;
    --ink: #132820;
    --cream: #f3eee4;
    --paper: #e8e0d1;
    --mint: #6ee7c5;
    --mint-deep: #2bb886;
    --gold: #c9a56a;
    --sage: #8eaea0;
    --fog: rgba(243, 238, 228, .72);
    --line: rgba(243, 238, 228, .14);
    --shadow: 0 30px 80px rgba(4, 12, 9, .45);
    --sans: "Trebuchet MS", "Segoe UI", Tahoma, sans-serif;
    --serif: "Trebuchet MS", "Segoe UI", Tahoma, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.site {
    margin: 0;
    background: var(--night);
    color: var(--cream);
    font: 16px/1.6 var(--sans);
    overflow-x: hidden;
}
body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
.sr-only, .skip {
    position: absolute;
    left: -999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.skip:focus {
    left: 16px;
    top: 16px;
    width: auto;
    height: auto;
    z-index: 80;
    padding: 10px 14px;
    background: var(--mint);
    color: var(--night);
}
:focus-visible {
    outline: 2px solid var(--mint);
    outline-offset: 3px;
}

.wrap {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 84px;
    padding: 0 28px;
    background: transparent;
    transition: background .25s, border-color .25s, backdrop-filter .25s;
}
.site-header.is-scrolled {
    background: rgba(7, 19, 15, .86);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: .18em;
    font-size: 13px;
    font-weight: 600;
}
.logo img { width: 36px; height: 36px; }
.logo span { display: flex; align-items: baseline; gap: 6px; }
.logo b { color: var(--mint); font-weight: 600; }
.logo small {
    color: var(--sage);
    font-size: 9px;
    letter-spacing: .32em;
}

.desk-nav { display: flex; gap: 6px; }
.desk-nav a {
    padding: 8px 14px;
    color: var(--fog);
    font-size: 13px;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.desk-nav a:hover { color: var(--mint); }

.header-tools { display: flex; align-items: center; gap: 12px; }
.lang-switch {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(255,255,255,.04);
}
.lang-option {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 0 8px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--fog);
    cursor: pointer;
}
.lang-option img {
    width: 22px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(255,255,255,.18);
}
.lang-option span {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
}
.lang-option:hover { color: var(--cream); background: rgba(255,255,255,.06); }
.lang-option.is-active {
    color: var(--cream);
    background: rgba(110, 231, 197, .18);
}
.header-auth { display: flex; align-items: center; gap: 8px; }
.header-auth .btn {
    min-height: 38px;
    padding: 0 15px;
    font-size: 13px;
}
.header-auth .btn-ghost {
    border-color: rgba(243, 238, 228, .28);
    background: rgba(255,255,255,.05);
}
.header-auth .btn-ghost:hover {
    border-color: var(--mint);
    background: rgba(110, 231, 197, .1);
}
.header-auth .btn-primary {
    box-shadow: 0 8px 18px rgba(46, 160, 122, .22);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 6px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .04em;
    transition: transform .2s, background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--mint); color: #06231b; }
.btn-primary:hover { background: #8af3d4; color: #06231b; }
.btn-ghost {
    background: transparent;
    border-color: var(--line);
    color: var(--cream);
}
.btn-ghost:hover { border-color: var(--mint); color: var(--mint); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 13px; }
.text-link {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    color: var(--gold);
    font-size: 14px;
    letter-spacing: .06em;
}
.text-link:hover { color: var(--mint); }

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: transparent;
    padding: 0;
    cursor: pointer;
}
.nav-toggle i {
    display: block;
    width: 16px;
    height: 1.5px;
    margin: 5px auto;
    background: var(--cream);
    transition: transform .2s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] i:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] i:last-child { transform: translateY(-3.25px) rotate(-45deg); }

.mobile-nav {
    display: none;
    position: fixed;
    inset: 84px 16px auto;
    z-index: 39;
    padding: 18px;
    background: #10261f;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow);
}
.mobile-nav.is-open { display: grid; gap: 8px; }
.mobile-nav a {
    padding: 12px 10px;
    border-radius: 6px;
    color: var(--cream);
}
.mobile-nav a:hover { background: rgba(110, 231, 197, .08); }
.mobile-nav .header-auth {
    display: grid;
    gap: 8px;
    margin-top: 6px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}
.mobile-nav .header-auth .btn { width: 100%; min-height: 44px; }
.mobile-nav .header-auth .btn-primary:hover { color: #06231b; background: #8af3d4; }

.flash {
    width: min(1180px, calc(100% - 48px));
    margin: 12px auto 0;
    padding: 14px 18px;
    border-radius: 8px;
    background: #16352b;
    border: 1px solid var(--line);
}
.flash.error { background: #3a1c1c; }

.hero {
    position: relative;
    min-height: calc(100vh - 84px);
    padding: 28px 28px 0;
    overflow: hidden;
}
#features, #modules, #flow, #faq { scroll-margin-top: 96px; }
.hero-glow {
    position: absolute;
    inset: -10% -20% auto auto;
    width: 70vw;
    height: 70vw;
    background: radial-gradient(circle, rgba(46, 160, 122, .28), transparent 62%);
    pointer-events: none;
}
.side-label {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: left center;
    margin: 0;
    color: var(--sage);
    letter-spacing: .46em;
    font-size: 11px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
    gap: 40px;
    align-items: center;
    width: min(1180px, 100%);
    margin: 0 auto;
    min-height: 640px;
}
.hero-copy { max-width: 640px; }
.pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 28px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--mint);
    font-size: 12px;
    letter-spacing: .08em;
}
.pill i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--mint);
    box-shadow: 0 0 0 5px rgba(110, 231, 197, .16);
}
.hero h1 {
    max-width: 18ch;
    margin: 0 0 16px;
    font-family: var(--serif);
    font-size: clamp(28px, 3.4vw, 42px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.02em;
}
.hero h1 em {
    display: block;
    font-style: italic;
    color: var(--mint);
}
.lead {
    max-width: 52ch;
    margin: 0 0 32px;
    color: var(--fog);
    font-size: 18px;
    font-weight: 300;
    line-height: 1.75;
}
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
    color: var(--sage);
    font-size: 13px;
}
.trust li { display: flex; align-items: center; gap: 8px; }
.trust li::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
}

.hero-stage { display: grid; place-items: center; min-height: 520px; }
.radar {
    position: relative;
    width: min(460px, 100%);
    aspect-ratio: 1;
}
.ring {
    position: absolute;
    inset: 18%;
    border: 1px solid rgba(110, 231, 197, .18);
    border-radius: 50%;
}
.ring:nth-child(1) { inset: 8%; }
.ring:nth-child(2) { inset: 22%; }
.ring:nth-child(3) { inset: 36%; border-color: rgba(201, 165, 106, .28); }
.sweep {
    position: absolute;
    inset: 8%;
    border-radius: 50%;
    background: conic-gradient(from 200deg, transparent 0 78%, rgba(110, 231, 197, .22) 88%, transparent 100%);
    animation: sweep 8s linear infinite;
    mask: radial-gradient(circle, transparent 42%, #000 43%);
}
.core {
    position: absolute;
    inset: 34%;
    display: grid;
    place-content: center;
    text-align: center;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 30%, #1c4a3c, #0b241c 68%);
    border: 1px solid rgba(110, 231, 197, .28);
    box-shadow: 0 0 80px rgba(46, 160, 122, .25);
}
.core small {
    color: var(--gold);
    letter-spacing: .28em;
    font-size: 10px;
}
.core strong {
    font-family: var(--serif);
    font-size: 52px;
    font-weight: 700;
    line-height: 1;
}
.core span {
    max-width: 14ch;
    margin: 6px auto 0;
    color: var(--sage);
    font-size: 11px;
}
.nodes { position: absolute; inset: 0; pointer-events: none; }
.node {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    justify-items: center;
    gap: 2px;
    width: 108px;
    margin: -28px 0 0 -54px;
    transform: rotate(calc(var(--i) * 72deg - 90deg)) translate(198px) rotate(calc(90deg - var(--i) * 72deg));
    text-align: center;
}
.node b {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 600;
    color: var(--mint);
}
.node span { color: var(--fog); font-size: 11px; letter-spacing: .04em; }

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: min(1180px, 100%);
    margin: 0 auto;
    border-top: 1px solid var(--line);
}
.hero-stats div { padding: 28px 8px 36px; }
.hero-stats div + div { border-left: 1px solid var(--line); }
.hero-stats span {
    display: block;
    margin-bottom: 6px;
    color: var(--sage);
    font-size: 12px;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.hero-stats strong {
    font-family: var(--serif);
    font-size: 36px;
    font-weight: 700;
}

.paper {
    background: var(--cream);
    color: var(--ink);
    padding: 96px 0;
}
.heading { max-width: 720px; margin-bottom: 56px; }
.heading.compact { margin-bottom: 40px; }
.heading.light h2, .heading.light p { color: var(--cream); }
.eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--mint-deep);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
}
.heading.light .eyebrow, .resident .eyebrow, .finale .eyebrow { color: var(--gold); }
h2 {
    margin: 0 0 16px;
    font-family: var(--serif);
    font-size: clamp(34px, 5vw, 58px);
    font-weight: 700;
    line-height: 1.05;
}
.heading p, .resident p, .finale p {
    margin: 0;
    color: #31463d;
    font-size: 18px;
    font-weight: 300;
    line-height: 1.7;
}
.heading.light p, .resident p, .finale p { color: #d5e6dc; }

.stories { display: grid; gap: 0; }
.story {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 28px;
    padding: 36px 0;
    border-top: 1px solid #d7cfc0;
}
.story:last-child { border-bottom: 1px solid #d7cfc0; }
.story-tag {
    color: #0f6b54;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.story h3 {
    margin: 0 0 10px;
    font-family: var(--serif);
    font-size: 34px;
    font-weight: 700;
    color: #12241e;
}
.story p { margin: 0 0 18px; color: #31463d; }
.story ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.story li {
    padding: 8px 12px;
    border: 1px solid #c9d4cc;
    border-radius: 6px;
    background: #fff;
    color: #1d332b;
    font-size: 13px;
}

.ink { background: var(--forest); padding: 96px 0; }
.bento {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 14px;
}
.bento article {
    grid-column: span 4;
    min-height: 210px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
    transition: border-color .2s, transform .2s;
}
.bento article:hover { border-color: rgba(110, 231, 197, .35); transform: translateY(-2px); }
.bento article:nth-child(1) { grid-column: span 7; background: linear-gradient(160deg, #1a4a3c, #10261f); }
.bento article:nth-child(2) { grid-column: span 5; }
.bento span, .audience article span, .timeline span {
    color: var(--gold);
    font-family: var(--serif);
    font-size: 22px;
}
.bento h3, .audience h3, .timeline h3, .resident h2 {
    margin: 12px 0 10px;
    font-family: var(--serif);
    font-size: 28px;
    font-weight: 700;
    color: var(--cream);
}
.bento p, .audience p, .bento .copy-html, .audience .copy-html { margin: 0; color: #d5e6dc; font-weight: 300; }
.timeline p, .timeline .copy-html { margin: 0; color: #31463d; font-weight: 300; }

.audience {
    background: var(--night);
    padding: 88px 0;
    border-top: 1px solid var(--line);
}
.audience h2 { max-width: 16ch; }
.audience-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}
.audience article {
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.resident { background: #10261f; padding: 96px 0; }
.resident-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 64px;
    align-items: center;
}
.resident-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 36px;
}
.resident-meta small { display: block; color: var(--sage); font-size: 12px; }
.resident-meta strong { font-family: var(--serif); font-size: 28px; font-weight: 700; }

.device {
    position: relative;
    padding: 22px 18px 28px;
    border-radius: 18px;
    background: linear-gradient(180deg, #16352b, #0b1d18);
    border: 8px solid #07130f;
    box-shadow: var(--shadow), inset 0 0 0 1px var(--line);
}
.device-notch {
    width: 84px;
    height: 8px;
    margin: 0 auto 18px;
    border-radius: 6px;
    background: #07130f;
}
.device-head { display: flex; justify-content: space-between; color: var(--sage); font-size: 12px; letter-spacing: .18em; }
.device-score {
    margin: 22px 0 4px;
    font-family: var(--serif);
    font-size: 64px;
    line-height: .9;
}
.device > p { margin: 0 0 22px; color: var(--sage); font-size: 13px; }
.device-bars { display: grid; gap: 10px; }
.device-bars div { display: grid; gap: 6px; }
.device-bars span { color: var(--fog); font-size: 11px; letter-spacing: .08em; }
.device-bars i {
    display: block;
    height: 4px;
    border-radius: 6px;
    background: linear-gradient(90deg, var(--mint), var(--gold));
}

.timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: none;
}
.timeline li {
    position: relative;
    padding: 8px 28px 8px 0;
}
.timeline li:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 18px;
    top: 18px;
    width: calc(100% - 48px);
    height: 1px;
    background: #d7cfc0;
    transform: translateX(100%);
}
.timeline span {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--mint);
    font-size: 18px;
}
.timeline h3 { color: var(--ink); }

.faq-band {
    background: var(--paper);
    color: var(--ink);
    padding: 88px 0;
}
.faq-grid {
    display: grid;
    grid-template-columns: minmax(220px, .7fr) 1fr;
    gap: 48px;
    align-items: start;
}
.faq-list details {
    border-top: 1px solid #d0c6b4;
    padding: 18px 0;
}
.faq-list details:last-child { border-bottom: 1px solid #d0c6b4; }
.faq-list summary {
    cursor: pointer;
    color: #12241e;
    font-family: var(--serif);
    font-size: 26px;
    list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
    content: "+";
    float: right;
    color: var(--mint-deep);
    font-family: var(--sans);
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list p { margin: 12px 0 0; color: #31463d; max-width: 62ch; }

.finale { padding: 110px 0; background: radial-gradient(circle at 50% 0%, #1a4a3c, var(--night) 58%); }
.finale-inner { max-width: 760px; text-align: center; }
.finale-inner .actions { justify-content: center; margin-top: 32px; }

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    padding: 28px;
    border-top: 1px solid var(--line);
    color: var(--sage);
    font-size: 13px;
}
.site-footer p { margin: 0; max-width: 62ch; }

.toast {
    position: fixed;
    right: 24px;
    top: 100px;
    z-index: 50;
    display: flex;
    gap: 12px;
    max-width: 360px;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}
.toast button {
    border: 0;
    background: transparent;
    cursor: pointer;
}
.toast p { margin: 4px 0 0; color: var(--fog); }

[data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .7s ease, transform .7s ease;
}
[data-reveal].is-in { opacity: 1; transform: none; }

@keyframes sweep {
    to { transform: rotate(360deg); }
}

@media (max-width: 1050px) {
    .desk-nav { display: none; }
    .nav-toggle { display: block; }
    .hero-grid, .resident-grid, .faq-grid, .audience-grid, .timeline { grid-template-columns: 1fr; }
    .hero { padding: 12px 18px 0; min-height: 0; }
    .hero-grid { min-height: 0; gap: 12px; }
    .hero-stage { min-height: 420px; }
    .side-label { display: none; }
    .story { grid-template-columns: 1fr; gap: 10px; }
    .bento article, .bento article:nth-child(1), .bento article:nth-child(2) { grid-column: span 12; }
    .timeline li:not(:last-child)::after { display: none; }
    .site-footer { flex-direction: column; align-items: flex-start; }
    .device { max-width: 320px; }
}

@media (max-width: 820px) {
    .lang-option span { display: none; }
    .lang-option { padding: 0 6px; }
}

@media (max-width: 720px) {
    .site-header .header-auth { display: none; }
}

@media (max-width: 640px) {
    .wrap { width: min(1180px, calc(100% - 32px)); }
    .site-header { padding: 0 16px; min-height: 72px; }
    .hero h1 { font-size: 30px; }
    .lead, .heading p, .heading .copy-html { font-size: 16px; }
    .actions { align-items: stretch; flex-direction: column; }
    .actions .btn { width: 100%; }
    .hero-stats { grid-template-columns: 1fr; }
    .hero-stats div { padding: 16px 0; border-top: 1px solid var(--line); }
    .hero-stats div + div { border-left: 0; }
    .paper, .ink, .resident, .faq-band, .finale { padding: 64px 0; }
    .story h3, .bento h3 { font-size: 26px; }
    .core strong { font-size: 40px; }
    .radar { width: 300px; }
    .node { width: 88px; margin-left: -44px; transform: rotate(calc(var(--i) * 72deg - 90deg)) translate(128px) rotate(calc(90deg - var(--i) * 72deg)); }
    .logo small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .sweep, [data-reveal] { animation: none; transition: none; }
    [data-reveal] { opacity: 1; transform: none; }
}

.copy-html { overflow-wrap: anywhere; }
.lead.copy-html p { color: inherit; }
.copy-html p:last-child { margin-bottom: 0; }
.copy-html ul, .copy-html ol { margin: 0 0 .75em; padding-left: 1.2em; }
.copy-html li { margin: .35em 0; }
.copy-html a { text-decoration: underline; color: inherit; }
.copy-html strong, .copy-html b { font-weight: 700; }
.copy-html em, .copy-html i { font-style: italic; }
.copy-html blockquote { margin: .75em 0; padding: .4em 0 .4em 1em; border-left: 3px solid currentColor; opacity: .92; }
.heading .copy-html, .resident > .wrap > div > .copy-html, .finale .copy-html {
    margin: 0;
    color: #31463d;
    font-size: 18px;
    font-weight: 300;
    line-height: 1.7;
}
.heading.light .copy-html, .heading.light .copy-html p { color: #d5e6dc; }
.resident .copy-html, .finale .copy-html, .resident .copy-html p, .finale .copy-html p { color: #d5e6dc; }
.story .copy-html { margin: 0 0 18px; color: #31463d; }
.bento .copy-html, .audience-grid .copy-html, .timeline .copy-html { color: inherit; }
.bento .copy-html p, .audience-grid .copy-html p, .timeline .copy-html p { color: inherit; }
.faq-list .copy-html { margin: 12px 0 0; color: #31463d; max-width: 62ch; }
