/* ==========================================================================
   DAMMIT landing page. Built from fuk-ai.io's landing.css: same structure,
   spacing and type scale, slate neutrals and a teal accent (the app's own
   colours, see dammit/ui/src/styles/variables.css).
   ========================================================================== */

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

:root {
    --bg: #080b10;
    --bg-raise: #0c1016;
    --panel: #11161d;
    --panel-2: #171d26;
    --line: #232b36;
    --line-soft: #19202a;
    --line-hi: #344052;
    --text: #f1f5f9;
    --muted: #9aa6b8;
    --dim: #6b7a8f;
    --accent: #2dd4bf;          /* brand teal: fills, borders */
    --accent-hi: #5eead4;
    --accent-ink: #042f2e;      /* text on a teal fill */
    --accent-text: #5eead4;     /* teal for text on dark */
    --accent-glow: rgba(45, 212, 191, 0.32);
    --accent-a: 45, 212, 191;   /* for rgba() */
    --amber: #f59e0b;           /* best-match window, as in the app */
    --red: #f87171;
    --green: #22c55e;
    --fuk: #8120d6;             /* the sister's purple */
    --max: 1200px;
    --gutter: clamp(1rem, 4vw, 2rem);
    --radius: 10px;
    --sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
    color-scheme: dark;
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img, svg, canvas, video { max-width: 100%; display: block; }
a { color: inherit; }
code, kbd { font-family: var(--mono); }
[hidden] { display: none !important; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; gap: .55rem;
    font: 600 .95rem/1 var(--sans);
    padding: .85rem 1.25rem; border-radius: 8px;
    text-decoration: none; white-space: nowrap; cursor: pointer;
    border: 1px solid transparent;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary {
    background: var(--accent); color: var(--accent-ink);
    box-shadow: 0 0 0 1px rgba(255,255,255,.1) inset, 0 8px 30px -8px var(--accent-glow);
}
.btn-primary:hover { background: var(--accent-hi); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); color: var(--text); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: var(--line-hi); background: rgba(255,255,255,.05); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + clamp(3.5rem, 9vw, 7rem));
    padding-bottom: clamp(3rem, 6vw, 5rem);
    overflow: hidden;
}
.hero::before {                         /* soft teal bloom */
    content: ""; position: absolute; z-index: -1;
    left: 50%; top: -280px; width: 1100px; height: 700px; transform: translateX(-50%);
    background: radial-gradient(closest-side, rgba(var(--accent-a),.20), rgba(var(--accent-a),.06) 55%, transparent 75%);
    pointer-events: none;
}
.hero::after {                          /* faint waveform lanes instead of FUK's viewport grid */
    content: ""; position: absolute; inset: 0; z-index: -2;
    background-image:
        linear-gradient(to bottom, rgba(255,255,255,.04) 1px, transparent 1px),
        repeating-linear-gradient(to right, rgba(255,255,255,.025) 0 1px, transparent 1px 16px);
    background-size: 100% 48px, auto;
    -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 20%, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 55% at 50% 20%, #000 30%, transparent 75%);
    pointer-events: none;
}
.hero-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }

.pill {
    display: inline-flex; align-items: center; gap: .6rem;
    font: 500 .8rem/1 var(--mono); letter-spacing: .02em;
    color: var(--muted);
    padding: .45rem .8rem .45rem .5rem; border-radius: 999px;
    border: 1px solid var(--line); background: rgba(255,255,255,.025);
    text-decoration: none;
    transition: border-color .15s ease, color .15s ease;
}
.pill:hover { border-color: var(--line-hi); color: var(--text); }
.pill b {
    font-weight: 700; color: var(--accent-ink); background: var(--accent);
    padding: .25rem .5rem; border-radius: 999px; font-size: .7rem; letter-spacing: .06em;
}

.hero h1 {
    margin-top: 1.75rem;
    font-size: clamp(2.6rem, 7.2vw, 5.6rem);
    line-height: .98; letter-spacing: -0.045em; font-weight: 750;
    max-width: 15ch;
    text-wrap: balance;
}
.hero h1 em {
    font-style: normal;
    background: linear-gradient(100deg, #ccfbf1 0%, var(--accent-text) 40%, #14b8a6 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub {
    margin-top: 1.5rem; max-width: 46rem;
    font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); line-height: 1.6;
    text-wrap: pretty;
}
.hero-cta { margin-top: 2.25rem; display: flex; gap: .75rem; flex-wrap: wrap; justify-content: center; }
.hero-meta {
    margin-top: 1.25rem; display: flex; gap: .4rem 1.25rem; flex-wrap: wrap; justify-content: center;
    font: .8rem/1.4 var(--mono); color: var(--dim);
}
.hero-meta span::before { content: "▸ "; color: var(--accent-text); }

/* App window frame around the hero player */
.window {
    margin-top: clamp(3rem, 6vw, 4.5rem);
    width: 100%; text-align: left;
    border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
    background: var(--panel);
    box-shadow:
        0 0 0 1px rgba(255,255,255,.02),
        0 40px 120px -30px rgba(var(--accent-a),.22),
        0 30px 60px -30px rgba(0,0,0,.8);
}
.window-bar {
    height: 38px; display: flex; align-items: center; gap: .75rem; padding: 0 .9rem;
    border-bottom: 1px solid var(--line); background: var(--panel-2);
    font: .75rem/1 var(--mono); color: var(--dim);
}
.window-dots { display: flex; gap: 6px; }
.window-dots i { width: 10px; height: 10px; border-radius: 50%; background: #2a3340; }
.window-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.window-title b { color: var(--muted); font-weight: 500; }
.window-tag { color: var(--accent-text); white-space: nowrap; }
.window-tag::before { content: "● "; }

/* --------------------------------------------------------------------------
   Players: timeline canvas, playhead, transport
   -------------------------------------------------------------------------- */
.timeline {
    position: relative; background: #070a0e; cursor: pointer;
    touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.timeline canvas { width: 100%; height: 100%; }
.timeline.tall { height: clamp(200px, 30vw, 320px); }
.timeline.short { height: 170px; }
.playhead {
    position: absolute; top: 0; bottom: 0; left: 0; width: 2px; margin-left: -1px;
    background: #fff; box-shadow: 0 0 10px rgba(255,255,255,.5);
    pointer-events: none; opacity: 0; transition: opacity .2s ease;
}
.playing .playhead, .playhead.parked { opacity: 1; }

.transport {
    display: flex; align-items: center; gap: .75rem 1rem; flex-wrap: wrap;
    padding: .75rem .9rem; border-top: 1px solid var(--line); background: var(--panel-2);
}
.play {
    display: inline-grid; place-items: center; flex-shrink: 0;
    width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
    background: var(--accent); color: var(--accent-ink); border: 0;
    box-shadow: 0 6px 20px -6px var(--accent-glow);
    transition: background-color .15s ease, transform .15s ease;
}
.play:hover { background: var(--accent-hi); transform: scale(1.05); }
.play svg { width: 16px; height: 16px; }
.play .i-pause { display: none; }
.playing .play .i-play { display: none; }
.playing .play .i-pause { display: block; }
.play.sm { width: 32px; height: 32px; }
.play.sm svg { width: 13px; height: 13px; }
.time { font: 500 .8rem/1 var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.transport-note { margin-left: auto; font: .72rem/1.3 var(--mono); color: var(--dim); }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding-block: clamp(4.5rem, 10vw, 8rem); border-top: 1px solid var(--line-soft); }
.section-head { max-width: 46rem; margin-bottom: clamp(2.25rem, 5vw, 3.5rem); }
.eyebrow {
    display: flex; align-items: center; gap: .6rem;
    font: 500 .78rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
    color: var(--accent-text);
}
.eyebrow::before { content: attr(data-n); color: var(--dim); }
.eyebrow:not([data-n])::before { display: none; }
.section h2 {
    margin-top: 1rem;
    font-size: clamp(2rem, 4.6vw, 3.4rem);
    line-height: 1.04; letter-spacing: -0.035em; font-weight: 720;
    text-wrap: balance;
}
.section-head p { margin-top: 1.1rem; color: var(--muted); font-size: 1.1rem; line-height: 1.65; text-wrap: pretty; }
.section-head p a, .fine a { color: var(--accent-text); text-decoration: none; }
.section-head p a:hover, .fine a:hover { text-decoration: underline; }

.fine { font-size: .85rem; color: var(--dim); line-height: 1.6; }
.fine code { font-size: .8rem; color: var(--muted); }

/* Two-column feature layout: copy + demo */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split.flip > .split-copy { order: 2; }
.split .section-head { margin-bottom: 0; }
.ticks { list-style: none; margin-top: 1.75rem; display: grid; gap: .7rem; }
.ticks li { display: flex; gap: .75rem; color: var(--muted); font-size: .98rem; line-height: 1.5; }
.ticks li::before {
    content: ""; flex-shrink: 0; width: 18px; height: 18px; margin-top: .1rem; border-radius: 5px;
    background: rgba(var(--accent-a),.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235eead4' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
    border: 1px solid rgba(var(--accent-a),.32);
}
.ticks li b { color: var(--text); font-weight: 600; }

/* Measured numbers under a section's copy */
.stats {
    margin-top: 1.75rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.stat { background: var(--panel); padding: .9rem 1rem; }
.stat b { display: block; font-size: 1.55rem; letter-spacing: -0.03em; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: .3rem; font: .7rem/1.35 var(--mono); color: var(--dim); }

/* --------------------------------------------------------------------------
   Demo panels
   -------------------------------------------------------------------------- */
.demo {
    border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
    background: var(--panel);
    box-shadow: 0 30px 80px -40px rgba(0,0,0,.9);
}
.demo-bar {
    display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap;
    padding: .6rem .75rem; border-bottom: 1px solid var(--line); background: var(--panel-2);
}
.demo-file { font: .75rem/1 var(--mono); color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-file b { color: var(--muted); font-weight: 500; }

.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); flex-wrap: wrap; }
.seg button {
    font: 500 .75rem/1 var(--mono); color: var(--muted);
    background: none; border: 0; border-radius: 6px; padding: .45rem .6rem; cursor: pointer;
    transition: color .15s ease, background-color .15s ease;
}
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--panel-2); color: var(--text); box-shadow: 0 0 0 1px var(--line) inset; }
.seg button[aria-pressed="true"].hot { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.seg button[aria-pressed="true"].warm { background: rgba(248,113,113,.16); color: var(--red); box-shadow: 0 0 0 1px rgba(248,113,113,.35) inset; }
.seg.sm button { padding: .38rem .5rem; font-size: .7rem; }

.readout {
    display: flex; gap: .4rem 1.25rem; flex-wrap: wrap; align-items: center;
    padding: .65rem .85rem; border-top: 1px solid var(--line); background: var(--bg-raise);
    font: .75rem/1.4 var(--mono); color: var(--dim); min-height: 2.6rem;
}
.readout b { color: var(--text); font-weight: 500; }
.readout .warn { color: var(--amber); }
.readout .ok { color: var(--accent-text); }

.slider-row { display: flex; align-items: center; gap: .85rem; padding: .85rem; border-top: 1px solid var(--line); background: var(--panel); }
.slider-row label { font: 500 .75rem/1 var(--mono); color: var(--muted); white-space: nowrap; }
.slider-row output { font: 500 .8rem/1 var(--mono); color: var(--text); min-width: 8ch; text-align: right; white-space: nowrap; }
input[type="range"] {
    flex: 1; min-width: 0; -webkit-appearance: none; appearance: none; height: 28px; background: transparent; cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(to right, #1b222c, #3a4658 60%, var(--amber)); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: linear-gradient(to right, #1b222c, #3a4658 60%, var(--amber)); }
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none; width: 18px; height: 18px; margin-top: -7px; border-radius: 50%;
    background: #fff; border: 3px solid var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-a),.22);
}
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); }
input[type="range"]:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; border-radius: 4px; }

/* --------------------------------------------------------------------------
   01 Search demo
   -------------------------------------------------------------------------- */
.search-box {
    display: flex; align-items: center; gap: .65rem;
    margin: .85rem .85rem 0; padding: .7rem .8rem;
    border: 1px solid var(--line); border-radius: 8px; background: var(--bg);
    font-size: .95rem;
}
.search-box:focus-within { border-color: rgba(var(--accent-a),.5); }
.search-box svg { width: 17px; height: 17px; color: var(--dim); flex-shrink: 0; }
.search-q { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-q .by-example { font-family: var(--mono); font-size: .85rem; color: var(--amber); }
.search-box kbd {
    font-size: .7rem; color: var(--dim); padding: .15rem .4rem; border-radius: 4px; border: 1px solid var(--line);
}
.chips { display: flex; flex-wrap: wrap; gap: .4rem; padding: .7rem .85rem .2rem; }
.chips button {
    font: 500 .72rem/1 var(--mono); color: var(--muted); cursor: pointer;
    padding: .42rem .6rem; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.02);
    transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}
.chips button:hover { color: var(--text); border-color: var(--line-hi); }
.chips button[aria-pressed="true"] { color: var(--accent-text); border-color: rgba(var(--accent-a),.45); background: rgba(var(--accent-a),.08); }

.results { list-style: none; padding: .5rem .5rem .6rem; counter-reset: r; }
.result {
    display: grid; grid-template-columns: 1.6rem minmax(0, 1fr) 96px auto; gap: .75rem; align-items: center;
    padding: .55rem .4rem; border-radius: 7px;
    animation: rise .35s ease both;
}
.result + .result { border-top: 1px solid var(--line-soft); }
.result:hover { background: rgba(255,255,255,.025); }
.result::before { counter-increment: r; content: counter(r); font: 500 .72rem/1 var(--mono); color: var(--dim); text-align: right; }
.result-name { min-width: 0; }
.result-name b { display: block; font-weight: 550; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.result-name b mark { background: none; color: var(--accent-text); }
.result-name span { display: flex; gap: .5rem; margin-top: .25rem; font: .7rem/1.3 var(--mono); color: var(--dim); }
.ucs {
    font: 600 .65rem/1 var(--mono); letter-spacing: .03em; color: var(--muted);
    padding: .22rem .38rem; border-radius: 4px; background: var(--panel-2); border: 1px solid var(--line);
}
.mini-wave { height: 26px; width: 96px; }
.why { font: 500 .66rem/1 var(--mono); color: var(--dim); text-align: right; white-space: nowrap; min-width: 4.5rem; }
.why .t { color: var(--accent-text); }
.why .a { color: var(--amber); }
@keyframes rise { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------------------
   02 Match demo
   -------------------------------------------------------------------------- */
.events { list-style: none; }
.event {
    display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: .8rem; align-items: center;
    padding: .7rem .85rem; border-top: 1px solid var(--line-soft); cursor: pointer;
    transition: background-color .15s ease;
}
.event:hover { background: rgba(255,255,255,.02); }
.event[aria-current="true"] { background: rgba(var(--accent-a),.05); box-shadow: inset 2px 0 0 var(--accent); }
.event-dot { width: 10px; height: 10px; border-radius: 3px; background: var(--dim); }
.event-main { min-width: 0; }
.event-main b { font-size: .9rem; font-weight: 600; }
.event-main .span { margin-left: .5rem; font: .7rem/1 var(--mono); color: var(--dim); }
.event-cand { display: flex; gap: .45rem; align-items: center; margin-top: .3rem; font-size: .8rem; color: var(--muted); min-width: 0; }
.event-cand > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.event.mode-keep .event-cand { opacity: .55; }
.event.mode-mute .event-cand { opacity: .35; text-decoration: line-through; }

.cands { list-style: none; display: grid; gap: .3rem; width: 100%; }
.cands li { display: grid; grid-template-columns: auto minmax(0,1fr) 70px; gap: .6rem; align-items: center; }
.cands li > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.cands li.top > span:nth-child(2) { color: var(--text); }
.bar { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.cands-head { display: flex; justify-content: space-between; gap: 1rem; width: 100%; color: var(--dim); }
.cands-head b { color: var(--text); }

/* --------------------------------------------------------------------------
   03 Mix demo
   -------------------------------------------------------------------------- */
.lufs { padding: 1.7rem .9rem .6rem; border-top: 1px solid var(--line); background: var(--panel); }
.lufs-track {
    position: relative; height: 10px; border-radius: 5px;
    background: linear-gradient(to right, #121820, #1f2935 55%, #2c3a4a 80%, rgba(245,158,11,.5));
}
.lufs-fill {
    position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px;
    background: linear-gradient(to right, rgba(var(--accent-a),.25), var(--accent));
    transition: width .35s cubic-bezier(.2,.7,.2,1);
}
.lufs-mk { position: absolute; top: -5px; bottom: -5px; width: 2px; margin-left: -1px; transition: left .35s cubic-bezier(.2,.7,.2,1); }
.lufs-mk.target { background: #fff; }
.lufs-mk.src { background: var(--dim); }
.lufs-lbl {
    position: absolute; bottom: calc(100% + 7px); transform: translateX(-50%);
    font: 500 .62rem/1 var(--mono); letter-spacing: .04em; color: var(--dim); white-space: nowrap;
    transition: left .35s cubic-bezier(.2,.7,.2,1);
}
.lufs-lbl.target { color: var(--text); }
.lufs-scale { position: relative; height: 1.4rem; margin-top: .35rem; font: .65rem/1 var(--mono); color: var(--dim); }
.lufs-scale span { position: absolute; top: .35rem; transform: translateX(-50%); white-space: nowrap; }

/* --------------------------------------------------------------------------
   Integrations
   -------------------------------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1rem; }
.card {
    position: relative; display: flex; flex-direction: column;
    padding: 1.5rem; border-radius: var(--radius);
    border: 1px solid var(--line); background: linear-gradient(180deg, var(--panel), var(--bg-raise));
    text-decoration: none;
    transition: border-color .2s ease, transform .2s ease;
}
a.card:hover { border-color: var(--line-hi); transform: translateY(-2px); }
.card-icon {
    width: 40px; height: 40px; border-radius: 9px; display: grid; place-items: center;
    background: rgba(var(--accent-a),.1); border: 1px solid rgba(var(--accent-a),.28); color: var(--accent-text);
    margin-bottom: 1.1rem;
}
.card-icon svg { width: 20px; height: 20px; }
.card-icon.fuk { background: rgba(129,32,214,.14); border-color: rgba(129,32,214,.4); color: #b98bff; }
.card h3 { font-size: 1.1rem; font-weight: 650; letter-spacing: -0.01em; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.card p { margin-top: .55rem; color: var(--muted); font-size: .93rem; line-height: 1.6; flex: 1; }
.card .more { margin-top: 1.1rem; font: 500 .8rem/1 var(--mono); color: var(--accent-text); }
.card .more.fuk { color: #b98bff; }

.tag {
    font: 600 .62rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
    padding: .3rem .45rem; border-radius: 4px; border: 1px solid;
}
.tag.live { color: var(--accent-text); border-color: rgba(var(--accent-a),.35); background: rgba(var(--accent-a),.08); }
.tag.beta { color: var(--amber); border-color: rgba(245,158,11,.35); background: rgba(245,158,11,.08); }
.tag.next { color: var(--muted); border-color: var(--line); background: rgba(255,255,255,.03); }
.tag.sister { color: #fff; border-color: transparent; background: var(--fuk); }

/* --------------------------------------------------------------------------
   Engine lineup
   -------------------------------------------------------------------------- */
.lineup { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.lane { background: var(--panel); padding: 1.4rem 1.25rem 1.5rem; }
.lane h3 { font: 600 .72rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); display: flex; justify-content: space-between; }
.lane h3 span { color: var(--accent-text); }
.lane ul { list-style: none; margin-top: 1rem; display: grid; gap: .15rem; }
.lane li { display: flex; flex-direction: column; gap: .2rem; padding: .55rem 0; border-bottom: 1px dashed var(--line-soft); }
.lane li:last-child { border-bottom: 0; }
.lane li b { font-weight: 550; font-size: .95rem; }
.lane li span { font: .72rem/1.4 var(--mono); color: var(--dim); }
.lineup-foot { margin-top: 1rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   Principles
   -------------------------------------------------------------------------- */
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1rem; counter-reset: p; }
.principle { padding: 1.6rem 1.5rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-raise); }
.principle::before {
    counter-increment: p; content: counter(p, decimal-leading-zero);
    display: block; font: 500 .8rem/1 var(--mono); color: var(--accent-text); margin-bottom: 1.25rem;
}
.principle h3 { font-size: 1.15rem; font-weight: 650; letter-spacing: -0.015em; }
.principle p { margin-top: .5rem; color: var(--muted); font-size: .93rem; line-height: 1.6; }

/* --------------------------------------------------------------------------
   Status + roadmap
   -------------------------------------------------------------------------- */
.status {
    display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap;
    padding: 1.25rem 1.5rem; border-radius: var(--radius); margin-bottom: 1.25rem;
    border: 1px solid rgba(245,158,11,.3);
    background: linear-gradient(100deg, rgba(245,158,11,.09), rgba(255,69,0,.04));
}
.milestones { display: flex; gap: .35rem; flex-shrink: 0; }
.milestones span {
    font: 600 .72rem/1 var(--mono); color: var(--accent-ink); background: var(--accent);
    padding: .45rem .5rem; border-radius: 5px;
}
.status div { flex: 1; min-width: min(100%, 280px); }
.status p { color: var(--muted); font-size: .95rem; line-height: 1.6; }
.status p:first-child { color: var(--text); font-weight: 550; margin-bottom: .3rem; }

.roadmap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1rem; }
.col { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.col h3 {
    display: flex; align-items: center; gap: .55rem;
    padding: .9rem 1.1rem; border-bottom: 1px solid var(--line);
    font: 600 .72rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
}
.col h3::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.col.now h3 { color: var(--amber); }
.col.next h3 { color: var(--accent-text); }
.col.later h3 { color: var(--dim); }
.col ul { list-style: none; padding: .6rem 0; }
.col li { padding: .5rem 1.1rem; color: var(--muted); font-size: .93rem; }

/* --------------------------------------------------------------------------
   Install
   -------------------------------------------------------------------------- */
.terminal { border: 1px solid var(--line); border-radius: var(--radius); background: #090c11; overflow: hidden; }
.terminal .window-bar { justify-content: space-between; }
.terminal .window-title { text-align: center; }
.copy {
    font: 500 .72rem/1 var(--mono); color: var(--muted); background: none; cursor: pointer;
    border: 1px solid var(--line); border-radius: 5px; padding: .35rem .55rem;
}
.copy:hover { color: var(--text); border-color: var(--line-hi); }
.terminal pre { padding: 1.25rem; overflow-x: auto; font: .88rem/1.9 var(--mono); color: var(--text); }
.terminal .c { color: var(--dim); }
.terminal .p { color: var(--accent-text); user-select: none; -webkit-user-select: none; }

.reqs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 1rem; }
.req { background: var(--panel); padding: 1rem 1.1rem; }
.req dt { font: 600 .68rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.req dd { margin-top: .5rem; font-size: .92rem; color: var(--text); line-height: 1.5; }
.req dd small { display: block; color: var(--dim); font-size: .8rem; margin-top: .15rem; }

/* --------------------------------------------------------------------------
   Closing CTA + footer
   -------------------------------------------------------------------------- */
.closer {
    position: relative; text-align: center; overflow: hidden;
    padding: clamp(3rem, 8vw, 5.5rem) var(--gutter);
    border: 1px solid var(--line); border-radius: 18px;
    background: radial-gradient(ellipse 60% 90% at 50% 0%, rgba(var(--accent-a),.2), transparent 70%), var(--panel);
}
.closer h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.04; letter-spacing: -0.035em; font-weight: 720; text-wrap: balance; }
.closer p { margin: 1rem auto 0; max-width: 34rem; color: var(--muted); font-size: 1.1rem; }
.closer .hero-cta { margin-top: 2rem; }

.site-footer { border-top: 1px solid var(--line-soft); padding-block: 3.5rem calc(2.5rem + env(safe-area-inset-bottom, 0px)); margin-top: clamp(4rem, 8vw, 6rem); }
.foot { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 2rem; }
.foot-brand .brandline { display: flex; align-items: center; gap: .6rem; }
.foot-brand img { height: 28px; width: 28px; }
.foot-brand .brandline b { font-weight: 800; letter-spacing: .06em; }
.foot-brand p { margin-top: 1rem; color: var(--dim); font-size: .9rem; max-width: 22rem; }
.foot h4 { font: 600 .7rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-bottom: 1rem; }
.foot ul { list-style: none; display: grid; gap: .55rem; }
.foot a { color: var(--muted); text-decoration: none; font-size: .9rem; }
.foot a:hover { color: var(--text); }
.foot a.sis { display: inline-flex; align-items: center; gap: .45rem; }
.foot a.sis::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--fuk); }
.foot-base { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: var(--dim); font-size: .8rem; }

/* --------------------------------------------------------------------------
   Reveal on scroll (only when JS has run and motion is allowed)
   -------------------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .js .reveal { opacity: 1; transform: none; transition: none; }
    .btn, .card, .result { transition: none; animation: none; }
}

:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
    .split, .split.flip { grid-template-columns: minmax(0, 1fr); }
    .split.flip > .split-copy { order: 0; }
    .foot { grid-template-columns: repeat(4, 1fr); }
    .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
    .reqs { grid-template-columns: minmax(0, 1fr); }
    .foot { grid-template-columns: repeat(2, 1fr); }
    .window-bar .window-tag { display: none; }
    .demo-bar { padding: .5rem; }
    .transport-note { display: none; }
    .result { grid-template-columns: 1.2rem minmax(0, 1fr) auto; }
    .mini-wave { display: none; }
    .stat b { font-size: 1.25rem; }
    .event { grid-template-columns: 10px minmax(0, 1fr); }
    .event .seg { grid-column: 2; justify-self: start; }
}
