/* KaiLu — marketing site. Same identity as the app: paper, ink and one sea-blue accent. */

:root {
    --font-ui: "Inter Variable", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    --font-serif: "Source Serif 4 Variable", "Iowan Old Style", Charter, Georgia, serif;
    --font-mono: "JetBrains Mono Variable", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

    --paper: #f8f7f3;
    --paper-2: #f1efe8;
    --surface: #ffffff;
    --ink: #1d1c1a;
    --ink-2: #55524c;
    --ink-3: #8b877e;
    --line: rgba(30, 28, 24, 0.1);
    --line-strong: rgba(30, 28, 24, 0.16);
    --accent: #2c59e0;
    --accent-ink: #1f46bd;
    --accent-soft: rgba(44, 89, 224, 0.09);
    --good: #2e7a4d;
    --button: #1d1c1a;
    --on-button: #ffffff;
    --term-bg: #141417;
    --shadow-sm: 0 1px 2px rgba(30, 28, 24, 0.05), 0 2px 8px -2px rgba(30, 28, 24, 0.06);
    --shadow-lg: 0 2px 4px rgba(30, 28, 24, 0.04), 0 30px 80px -24px rgba(30, 28, 24, 0.28);
    --wave-top: rgba(44, 89, 224, 0.16);
    --wave-bottom: rgba(44, 89, 224, 0.02);
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root {
        --paper: #1c1b19;
        --paper-2: #222120;
        --surface: #262523;
        --ink: #ecebe6;
        --ink-2: #b4b0a7;
        --ink-3: #85817a;
        --line: rgba(255, 252, 245, 0.09);
        --line-strong: rgba(255, 252, 245, 0.15);
        --accent: #7d9cff;
        --accent-ink: #a3b8ff;
        --accent-soft: rgba(125, 156, 255, 0.13);
        --good: #7fc79a;
        --button: #ecebe6;
        --on-button: #1c1b19;
        --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
        --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.3), 0 30px 80px -24px rgba(0, 0, 0, 0.7);
        --wave-top: rgba(125, 156, 255, 0.16);
        --wave-bottom: rgba(125, 156, 255, 0.02);
        color-scheme: dark;
    }
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    margin: 0;
    font-family: var(--font-ui);
    font-size: 17px;
    line-height: 1.6;
    font-feature-settings: "cv11", "ss03";
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
code, kbd, pre, .mono { font-family: var(--font-mono); }
code { font-size: 0.88em; padding: 0.12em 0.38em; border-radius: 5px; background: var(--accent-soft); color: var(--ink); }
kbd { font-size: 0.85em; padding: 0.1em 0.45em; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 6px; background: var(--surface); }
::selection { background: var(--accent-soft); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.muted { color: var(--ink-3); }

.skip { position: absolute; left: -9999px; top: 8px; padding: 8px 14px; background: var(--button); color: var(--on-button); border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }

/* ---------------------------------------------------------------- buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: -0.005em;
    white-space: nowrap;
    transition: transform 0.15s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-ink { background: var(--button); color: var(--on-button); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), 0 8px 24px -10px rgba(30, 28, 24, 0.5); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--ink); background: color-mix(in srgb, var(--surface) 60%, transparent); }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn-small { height: 36px; padding: 0 16px; font-size: 14px; }
.btn-large { height: 52px; padding: 0 26px; font-size: 16px; }
.btn .mono { color: var(--ink-3); font-weight: 500; }

/* ---------------------------------------------------------------- nav */

.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--paper) 90%, transparent);
    backdrop-filter: saturate(1.4) blur(14px);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { height: 64px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
picture { display: contents; }
.brand:hover { text-decoration: none; }
.brand span { font-family: var(--font-serif); font-size: 21px; font-weight: 560; letter-spacing: -0.02em; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { color: var(--ink-2); font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }

/* ---------------------------------------------------------------- hero */

.hero { position: relative; padding-top: 72px; overflow: hidden; }
.hero-copy { display: flex; flex-direction: column; align-items: center; text-align: center; }

.pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 10px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink-2);
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
}
.pill:hover { text-decoration: none; color: var(--ink); }
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.pill-arrow { color: var(--ink-3); transition: transform 0.2s; }
.pill:hover .pill-arrow { transform: translateX(3px); }

h1, h2, h3 { margin: 0; font-weight: 400; }
h1 {
    margin-top: 28px;
    font-family: var(--font-serif);
    font-size: clamp(48px, 7.6vw, 104px);
    font-weight: 380;
    line-height: 0.98;
    letter-spacing: -0.035em;
    font-variation-settings: "opsz" 72;
    max-width: 12ch;
}
h1 em { font-style: italic; color: var(--accent); font-weight: 400; }

.lede { max-width: 640px; margin: 28px auto 0; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.hero-meta { margin-top: 16px; font-size: 14px; color: var(--ink-3); }

.hero-stage { position: relative; margin-top: 64px; padding-bottom: 40px; }
.stage-inner { position: relative; }

.waves { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 72%; }
.wave-stop-top { stop-color: var(--wave-top); }
.wave-stop-bottom { stop-color: var(--wave-bottom); }
.wave path { fill: url(#sea-fade); }
.wave-back { opacity: 0.55; animation: drift 26s linear infinite; }
.wave-mid { opacity: 0.8; animation: drift 19s linear infinite reverse; }
.wave-front { animation: drift 14s linear infinite; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-1200px); } }

.window {
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
}
.window-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 34px;
    padding: 0 14px;
    background: var(--paper-2);
    border-bottom: 1px solid var(--line);
    font-size: 12px;
    color: var(--ink-3);
}
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.window-bar i:nth-child(2) { background: #febc2e; }
.window-bar i:nth-child(3) { background: #28c840; }
.window-bar span { flex: 1; text-align: center; margin-right: 46px; }
.window-bar.dark { background: #1f1f23; border-bottom-color: rgba(255, 255, 255, 0.06); color: #8b8b95; }

.window-app { position: relative; z-index: 1; width: 88%; margin: 0 auto; will-change: transform; }
.window-term {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: -28px;
    width: min(470px, 44%);
    background: var(--term-bg);
    border-color: rgba(255, 255, 255, 0.08);
    will-change: transform;
}
.float-chip {
    position: absolute;
    z-index: 2;
    left: 2%;
    bottom: 18%;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    font-size: 14px;
    font-weight: 500;
    will-change: transform;
}
.float-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 4px color-mix(in srgb, var(--good) 20%, transparent); }
.float-chip .mono { font-size: 12px; }

/* ---------------------------------------------------------------- terminal */

.term {
    margin: 0;
    padding: 18px 20px 20px;
    overflow: hidden;
    background: var(--term-bg);
    color: #e6e6ea;
    font-size: 12.5px;
    line-height: 1.5;
    white-space: pre;
    font-variant-ligatures: none;
}
.term-mini { font-size: 10.5px; padding: 14px 16px 16px; }
.term .tl { display: block; min-height: 1.5em; }
.term[data-animate] .tl:not(.shown) { display: none; }
.term[data-animate] .tl.shown { animation: line-in 0.18s ease-out; }
.no-js .term .tl { display: block !important; }
.term-live { height: 560px; overflow-y: auto; scrollbar-width: none; }
.term-live::-webkit-scrollbar { display: none; }
.term .cursor { display: inline-block; width: 0.6em; height: 1.1em; vertical-align: -0.2em; background: #7d9cff; animation: blink 1s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
@keyframes line-in { from { opacity: 0; transform: translateY(3px); } }

/* ---------------------------------------------------------------- proof */

.proof { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); position: relative; z-index: 3; }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof-item { display: flex; flex-direction: column; gap: 4px; padding: 30px 24px; border-left: 1px solid var(--line); }
.proof-item:first-child { border-left: 0; padding-left: 0; }
.proof-item strong { font-family: var(--font-serif); font-size: 32px; font-weight: 450; letter-spacing: -0.02em; line-height: 1.1; }
.proof-item span { font-size: 14.5px; color: var(--ink-3); }

/* ---------------------------------------------------------------- sections */

.section { padding: 120px 0; }
.section-tint { background: var(--paper-2); }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
h2 { font-family: var(--font-serif); font-size: clamp(36px, 4.6vw, 58px); font-weight: 400; line-height: 1.04; letter-spacing: -0.03em; font-variation-settings: "opsz" 60; }
.section-head p:not(.kicker) { margin: 20px 0 0; font-size: 18px; color: var(--ink-2); }
h3 { font-family: var(--font-serif); font-size: 24px; font-weight: 500; letter-spacing: -0.015em; line-height: 1.2; }

/* ---------------------------------------------------------------- bento */

.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card p { margin: 0; color: var(--ink-2); font-size: 16px; }
.card-wide { grid-column: span 2; flex-direction: row; align-items: center; gap: 36px; }
.card-copy { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.big-figure { margin-bottom: 18px; font-family: var(--font-serif); font-size: 64px; line-height: 1; letter-spacing: -0.03em; color: var(--accent); }
.big-figure small { margin-left: 6px; font-family: var(--font-ui); font-size: 16px; letter-spacing: 0; color: var(--ink-3); }

.mock { font-size: 13px; }
.mock-menu {
    flex: 1.15;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--paper);
    overflow: hidden;
}
.mock-input { padding: 12px 16px; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 14px; }
.caret { display: inline-block; width: 2px; height: 1em; margin-left: 1px; vertical-align: -0.15em; background: var(--accent); animation: blink 1s steps(2, start) infinite; }
.mock-menu ul { list-style: none; margin: 0; padding: 6px; }
.mock-menu li { display: grid; grid-template-columns: 11rem 1fr; gap: 10px; padding: 7px 10px; border-radius: 9px; color: var(--ink-2); }
.mock-menu li.on { background: var(--accent-soft); }
.mock-menu li b { font-family: var(--font-mono); font-weight: 600; color: var(--ink); grid-column: 1; }
.mock-menu li.on b { color: var(--accent-ink); }
.mock-menu li i { display: none; }
.mock-menu li span { grid-column: 2; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

.mock-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.mock-chips span { padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--paper); color: var(--ink-2); }
.mock-chips b { margin-right: 4px; font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--accent-ink); }

.mock-drop { display: grid; place-items: center; height: 96px; margin-bottom: 14px; border: 2px dashed color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 16px; background: var(--accent-soft); }
.mock-drop .file { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow-sm); font-weight: 500; }
.mock-drop svg { color: var(--accent); }
.mock-drop em { font-style: normal; color: var(--ink-3); }

/* ---------------------------------------------------------------- tour */

.tabs { display: flex; justify-content: center; gap: 6px; margin: -24px auto 28px; padding: 5px; width: max-content; max-width: 100%; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-sm); }
.tabs button { padding: 8px 18px; border: 0; border-radius: 999px; background: none; color: var(--ink-2); font: inherit; font-size: 14.5px; font-weight: 550; cursor: pointer; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--button); color: var(--on-button); }
.window-tour { max-width: 1040px; margin: 0 auto; }
.window-tour img { transition: opacity 0.25s; }
.window-tour img.fading { opacity: 0.15; }

/* ---------------------------------------------------------------- KaiLu Code band (always dark) */

.section-ink { background: #141417; color: #e6e6ea; --ink: #ecebe6; --ink-2: #b4b0a7; --ink-3: #85817a; --line: rgba(255, 255, 255, 0.09); --line-strong: rgba(255, 255, 255, 0.16); --surface: #1f1f23; --accent: #7d9cff; --accent-ink: #a3b8ff; --accent-soft: rgba(125, 156, 255, 0.14); }
.code-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.code-copy p { color: #b4b0a7; font-size: 17.5px; }
.code-copy h2 { margin-bottom: 18px; }
.install {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 26px 0;
    padding: 6px 6px 6px 18px;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    background: var(--surface);
}
/* Long install commands (a full download URL) wrap rather than hide the part people should see. */
.install code { flex: 1; min-width: 0; padding: 0; background: none; font-size: 14.5px; line-height: 1.5; overflow-wrap: anywhere; }
.copy { height: 36px; padding: 0 14px; border: 0; border-radius: 10px; background: var(--button); color: var(--on-button); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.section-ink .copy { background: #ecebe6; color: #141417; }
.copy.done { background: var(--good); color: #fff; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; color: #b4b0a7; }
.ticks li { padding-left: 26px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 12px; height: 7px; border-left: 2px solid #7d9cff; border-bottom: 2px solid #7d9cff; transform: rotate(-45deg); }
.ticks code { background: rgba(125, 156, 255, 0.12); color: #e6e6ea; }
.window-terminal { background: var(--term-bg); border-color: rgba(255, 255, 255, 0.08); }

.replay { margin-left: auto; padding: 2px 10px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 999px; background: none; color: #b4b0a7; font: inherit; font-size: 11.5px; cursor: pointer; }

/* ---------------------------------------------------------------- models */

.model-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.model-card {
    display: flex;
    flex-direction: column;
    padding: 26px 24px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}
.model-card.featured { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow-sm); }
.model-badge { align-self: flex-start; margin-bottom: 18px; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: 12px; font-weight: 600; }
.model-badge.plain { background: var(--paper-2); color: var(--ink-3); }
.model-card h3 { font-size: 26px; }
.model-card p { flex: 1; margin: 10px 0 18px; color: var(--ink-2); font-size: 15px; }
.model-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 18px; padding: 14px 0 0; border-top: 1px solid var(--line); }
.model-specs dt { font-size: 12px; color: var(--ink-3); }
.model-specs dd { margin: 0; font-size: 15px; font-weight: 600; }
.model-card a { font-size: 14px; font-weight: 550; }
.note { max-width: 680px; margin: 32px 0 0; color: var(--ink-3); font-size: 15px; }
.note.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------------------------------------------------------------- steps */

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.steps li { position: relative; padding: 30px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.step-num { display: block; margin-bottom: 26px; font-family: var(--font-serif); font-size: 64px; line-height: 1; font-weight: 300; color: var(--accent); font-style: italic; }
.steps p { margin: 10px 0 0; color: var(--ink-2); font-size: 16px; }

/* ---------------------------------------------------------------- download */

.download-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.dl-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 26px 24px 22px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.dl-card.yours { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow-sm); }
.dl-os { display: flex; align-items: center; gap: 10px; }
.dl-os svg { width: 26px; height: 26px; color: var(--ink); }
.dl-yours { margin-left: auto; padding: 2px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: 11.5px; font-weight: 600; }
.dl-card h3 { margin-top: 14px; font-size: 22px; }
.dl-card .dl-sub { margin: 0 0 16px; color: var(--ink-3); font-size: 14px; }
.dl-card .btn { width: 100%; height: 44px; font-size: 15px; margin-top: auto; }
.dl-card.yours .btn { background: var(--button); color: var(--on-button); border-color: transparent; }
.dl-meta { display: flex; justify-content: space-between; margin-top: 12px; font-size: 12.5px; color: var(--ink-3); }
.dl-meta button { padding: 0; border: 0; background: none; color: var(--ink-3); font: inherit; text-decoration: underline dotted; text-underline-offset: 3px; cursor: pointer; }
.dl-meta button:hover { color: var(--ink); }
.dl-sha { display: none; margin-top: 8px; padding: 8px 10px; border-radius: 8px; background: var(--paper-2); font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-2); word-break: break-all; }
.dl-sha.open { display: block; }
.dl-unavailable { margin-top: auto; padding: 12px; border-radius: 12px; background: var(--paper-2); color: var(--ink-3); font-size: 13.5px; text-align: center; }

.cli-card {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    align-items: center;
    gap: 6px 28px;
    margin-top: 18px;
    padding: 26px 28px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
}
.cli-card h3 { font-size: 22px; }
.cli-card p { margin: 6px 0 0; color: var(--ink-3); font-size: 14.5px; }
.cli-card .install { margin: 0; background: var(--paper); }
.cli-card .small-link { grid-column: 2; font-size: 13.5px; text-align: right; }

/* ---------------------------------------------------------------- faq */

.faq-wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }
.faq-wrap .section-head { margin-bottom: 0; position: sticky; top: 100px; }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq details:first-child { border-top: 1px solid var(--line-strong); }
.faq summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 22px 0;
    font-family: var(--font-serif);
    font-size: 21px;
    font-weight: 500;
    letter-spacing: -0.01em;
    cursor: pointer;
    list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-ui); font-size: 24px; font-weight: 300; color: var(--ink-3); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: -6px 0 24px; color: var(--ink-2); font-size: 16.5px; max-width: 620px; }

/* ---------------------------------------------------------------- final call */

.final { position: relative; overflow: hidden; padding: 140px 0; text-align: center; }
.final::before {
    content: "";
    position: absolute;
    inset: auto -10% -60% -10%;
    height: 120%;
    background: radial-gradient(closest-side, var(--accent-soft), transparent);
    pointer-events: none;
}
.final-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.final h2 { font-size: clamp(40px, 6vw, 80px); max-width: 14ch; }

/* ---------------------------------------------------------------- footer */

.footer { border-top: 1px solid var(--line); padding: 40px 0 56px; }
.footer-inner { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.footer nav { display: flex; gap: 22px; margin-left: auto; }
.footer nav a { color: var(--ink-2); font-size: 14.5px; }
.footer p { margin: 0; font-size: 14px; }
.footer .brand span { font-size: 18px; }

/* ---------------------------------------------------------------- motion */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------- responsive */

@media (max-width: 1080px) {
    .model-grid, .download-grid { grid-template-columns: repeat(2, 1fr); }
    .code-grid { grid-template-columns: 1fr; }
    .faq-wrap { grid-template-columns: 1fr; gap: 24px; }
    .faq-wrap .section-head { position: static; }
}

@media (max-width: 820px) {
    .nav-links { display: none; }
    .nav .btn { margin-left: auto; }
    .proof-grid { grid-template-columns: repeat(2, 1fr); }
    .proof-item:nth-child(3) { border-left: 0; padding-left: 0; }
    .bento, .steps { grid-template-columns: 1fr; }
    .card-wide { grid-column: auto; flex-direction: column; align-items: stretch; }
    .window-app { width: 100%; }
    .window-term { position: relative; width: 92%; margin: -40px 0 0 auto; bottom: 0; }
    .float-chip { display: none; }
    .section { padding: 84px 0; }
    .cli-card { grid-template-columns: 1fr; }
    .cli-card .small-link { grid-column: 1; text-align: left; }
}

@media (max-width: 560px) {
    .wrap { padding: 0 20px; }
    .model-grid, .download-grid { grid-template-columns: 1fr; }
    .hero { padding-top: 48px; }
    .btn-large { width: 100%; }
    .tabs { width: 100%; overflow-x: auto; justify-content: flex-start; }
    .term-live { font-size: 9.5px; height: 420px; }
}
