/*
 * DojiDeck marketing page.
 * shadcn/ui (new-york style, neutral base) design tokens and component recipes, written as plain CSS so the page is a
 * single static file, the same approach the app takes in wwwroot/css/shadcn.css. Tokens use the app's --ui- prefix and
 * values, so the page and the product look like one thing. Dark is the default; [data-theme="light"] switches.
 */
@font-face { font-family: "Geist"; src: url("fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
    --ui-radius: 0.625rem;
    --ui-radius-sm: calc(var(--ui-radius) - 4px);
    --ui-radius-md: calc(var(--ui-radius) - 2px);
    --ui-radius-lg: var(--ui-radius);
    --ui-radius-xl: calc(var(--ui-radius) + 4px);
    --ui-font: "Geist", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --ui-font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;

    --ui-background: #0a0a0a;
    --ui-foreground: #fafafa;
    --ui-card: #171717;
    --ui-card-foreground: #fafafa;
    --ui-primary: #e5e5e5;
    --ui-primary-foreground: #171717;
    --ui-secondary: #262626;
    --ui-secondary-foreground: #fafafa;
    --ui-muted: #262626;
    --ui-muted-foreground: #a1a1a1;
    --ui-accent: #262626;
    --ui-accent-foreground: #fafafa;
    --ui-destructive: #ff6467;
    --ui-border: rgba(255, 255, 255, 0.1);
    --ui-input: rgba(255, 255, 255, 0.15);
    --ui-ring: #737373;
    --ui-success: #22c55e;
    --ui-warning: #f59e0b;
    --ui-shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --ui-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --ui-ring-shadow: 0 0 0 3px rgba(115, 115, 115, 0.5);

    /* the app's chart palette (ChartPage CHART_COLORS) */
    --chart-bg: #131722;
    --chart-up: #26a69a;
    --chart-down: #ef5350;
    /* the brand accent from the ad's teal / amber palette */
    --brand: #2dd4bf;
    --brand-2: #f59e0b;
    color-scheme: dark;
}
:root[data-theme="light"] {
    --ui-background: #ffffff;
    --ui-foreground: #0a0a0a;
    --ui-card: #ffffff;
    --ui-card-foreground: #0a0a0a;
    --ui-primary: #171717;
    --ui-primary-foreground: #fafafa;
    --ui-secondary: #f5f5f5;
    --ui-secondary-foreground: #171717;
    --ui-muted: #f5f5f5;
    --ui-muted-foreground: #737373;
    --ui-accent: #f5f5f5;
    --ui-accent-foreground: #171717;
    --ui-destructive: #e7000b;
    --ui-border: #e5e5e5;
    --ui-input: #e5e5e5;
    --ui-ring: #a1a1a1;
    --ui-success: #16a34a;
    --ui-warning: #d97706;
    --ui-ring-shadow: 0 0 0 3px rgba(161, 161, 161, 0.5);
    --chart-bg: #ffffff;
    --brand: #0d9488;
    --brand-2: #d97706;
    color-scheme: light;
}
@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) {
        --ui-background: #ffffff;
        --ui-foreground: #0a0a0a;
        --ui-card: #ffffff;
        --ui-card-foreground: #0a0a0a;
        --ui-primary: #171717;
        --ui-primary-foreground: #fafafa;
        --ui-secondary: #f5f5f5;
        --ui-secondary-foreground: #171717;
        --ui-muted: #f5f5f5;
        --ui-muted-foreground: #737373;
        --ui-accent: #f5f5f5;
        --ui-accent-foreground: #171717;
        --ui-destructive: #e7000b;
        --ui-border: #e5e5e5;
        --ui-input: #e5e5e5;
        --ui-ring: #a1a1a1;
        --ui-success: #16a34a;
        --ui-warning: #d97706;
        --ui-ring-shadow: 0 0 0 3px rgba(161, 161, 161, 0.5);
        --chart-bg: #ffffff;
        --brand: #0d9488;
        --brand-2: #d97706;
        color-scheme: light;
    }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
    margin: 0; background: var(--ui-background); color: var(--ui-foreground);
    font: 16px/1.6 var(--ui-font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "rlig" 1, "calt" 1;
}
code, kbd, pre { font-family: var(--ui-font-mono); }
a { color: inherit; }
img { display: block; }
::selection { background: color-mix(in srgb, var(--brand) 30%, transparent); }
* { scrollbar-width: thin; scrollbar-color: var(--ui-border) transparent; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding-left: max(1.5rem, env(safe-area-inset-left, 0px)); padding-right: max(1.5rem, env(safe-area-inset-right, 0px)); }
.muted { color: var(--ui-muted-foreground); }
.mono { font-family: var(--ui-font-mono); font-variant-numeric: tabular-nums; }
.up { color: var(--chart-up); }
.down { color: var(--chart-down); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.site-header {
    position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
    border-bottom: 1px solid var(--ui-border);
    background: color-mix(in srgb, var(--ui-background) 80%, transparent);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.site-header .container { display: flex; align-items: center; gap: 1.5rem; height: 60px; }
.logo { display: inline-flex; align-items: center; gap: .55rem; font-weight: 600; letter-spacing: -.01em; text-decoration: none; }
.logo svg { width: 26px; height: 26px; }
.nav { display: flex; gap: .25rem; margin-left: .5rem; }
.nav a {
    font-size: 14px; color: var(--ui-muted-foreground); text-decoration: none;
    padding: .35rem .65rem; border-radius: var(--ui-radius-md); transition: color .15s, background-color .15s;
}
.nav a:hover { color: var(--ui-foreground); background: var(--ui-accent); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: .5rem; }

/* ---------- button (shadcn Button) ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem; white-space: nowrap;
    height: 2.25rem; padding: 0 1rem; border-radius: var(--ui-radius-md);
    font: 500 14px/1 var(--ui-font); text-decoration: none; cursor: pointer;
    border: 1px solid transparent; transition: background-color .15s, color .15s, border-color .15s, box-shadow .15s;
    box-shadow: var(--ui-shadow-sm);
}
.btn:focus-visible { outline: none; box-shadow: var(--ui-ring-shadow); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-default { background: var(--ui-primary); color: var(--ui-primary-foreground); }
.btn-default:hover { background: color-mix(in srgb, var(--ui-primary) 90%, transparent); }
.btn-outline { background: transparent; border-color: var(--ui-input); color: var(--ui-foreground); }
.btn-outline:hover { background: var(--ui-accent); }
.btn-secondary { background: var(--ui-secondary); color: var(--ui-secondary-foreground); }
.btn-secondary:hover { background: color-mix(in srgb, var(--ui-secondary) 80%, var(--ui-foreground) 6%); }
.btn-ghost { background: transparent; color: var(--ui-foreground); box-shadow: none; }
.btn-ghost:hover { background: var(--ui-accent); }
.btn-lg { height: 2.75rem; padding: 0 1.5rem; font-size: 15px; }
.btn-icon { width: 2.25rem; padding: 0; }

/* ---------- badge ---------- */
.badge {
    display: inline-flex; align-items: center; gap: .35rem; border-radius: var(--ui-radius-md);
    border: 1px solid var(--ui-border); padding: .15rem .55rem; font-size: 12px; font-weight: 500; line-height: 1.4;
    color: var(--ui-foreground); background: transparent; white-space: nowrap;
}
.badge-secondary { background: var(--ui-secondary); border-color: transparent; }
.badge-success { color: var(--ui-success); border-color: color-mix(in srgb, var(--ui-success) 35%, transparent); background: color-mix(in srgb, var(--ui-success) 10%, transparent); }
.badge-destructive { color: var(--ui-destructive); border-color: color-mix(in srgb, var(--ui-destructive) 35%, transparent); background: color-mix(in srgb, var(--ui-destructive) 10%, transparent); }
.badge-warning { color: var(--ui-warning); border-color: color-mix(in srgb, var(--ui-warning) 35%, transparent); background: color-mix(in srgb, var(--ui-warning) 10%, transparent); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.dot.live { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* ---------- card ---------- */
.card {
    background: var(--ui-card); color: var(--ui-card-foreground);
    border: 1px solid var(--ui-border); border-radius: var(--ui-radius-xl); box-shadow: var(--ui-shadow-sm);
}
.card-header { padding: 1.25rem 1.25rem 0; }
.card-title { font-weight: 600; font-size: 16px; line-height: 1.3; margin: 0; letter-spacing: -.005em; }
.card-description { color: var(--ui-muted-foreground); font-size: 14px; margin: .35rem 0 0; }
.card-content { padding: 1.25rem; }
.card-footer { padding: 0 1.25rem 1.25rem; display: flex; align-items: center; gap: .5rem; }

/* ---------- tabs ---------- */
.tabs-list {
    display: inline-flex; align-items: center; gap: 2px; padding: 3px; height: 2.25rem;
    background: var(--ui-muted); border-radius: var(--ui-radius-lg); color: var(--ui-muted-foreground);
}
.tabs-trigger {
    height: 100%; padding: 0 .75rem; border: 1px solid transparent; border-radius: var(--ui-radius-md);
    background: transparent; color: inherit; font: 500 13px/1 var(--ui-font); cursor: pointer; white-space: nowrap;
    transition: color .15s, background-color .15s;
}
.tabs-trigger:hover { color: var(--ui-foreground); }
.tabs-trigger[aria-selected="true"] { background: var(--ui-background); color: var(--ui-foreground); border-color: var(--ui-border); box-shadow: var(--ui-shadow-sm); }
.tabs-trigger:focus-visible { outline: none; box-shadow: var(--ui-ring-shadow); }
.tab-panel[hidden] { display: none; }

/* ---------- table ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; font-weight: 500; color: var(--ui-muted-foreground); height: 2.25rem; padding: 0 .6rem; border-bottom: 1px solid var(--ui-border); white-space: nowrap; }
.table td { padding: .5rem .6rem; border-bottom: 1px solid var(--ui-border); white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background-color .15s; }
.table tbody tr:hover { background: color-mix(in srgb, var(--ui-muted) 50%, transparent); }
.table .num { text-align: right; font-family: var(--ui-font-mono); font-variant-numeric: tabular-nums; }
.table tr.sub td { color: var(--ui-muted-foreground); font-size: 12px; }
.table tr.sub td:first-child { padding-left: 1.6rem; }
.table tr.best { background: color-mix(in srgb, var(--brand) 12%, transparent); }
.table tr.atm td { border-bottom-color: color-mix(in srgb, var(--brand-2) 60%, transparent); }

/* ---------- input ---------- */
.input {
    height: 2.25rem; width: 100%; padding: 0 .75rem; border-radius: var(--ui-radius-md);
    border: 1px solid var(--ui-input); background: transparent; color: var(--ui-foreground);
    font: 14px var(--ui-font); box-shadow: var(--ui-shadow-sm); transition: box-shadow .15s, border-color .15s;
}
:root:not([data-theme="light"]) .input { background: color-mix(in srgb, var(--ui-input) 30%, transparent); }
.input::placeholder { color: var(--ui-muted-foreground); }
.input:focus-visible { outline: none; border-color: var(--ui-ring); box-shadow: var(--ui-ring-shadow); }

/* ---------- switch ---------- */
.switch { position: relative; display: inline-block; width: 32px; height: 18px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--ui-input); transition: background-color .15s; cursor: pointer; }
.switch span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--ui-background); transition: transform .15s; }
.switch input:checked + span { background: var(--ui-primary); }
.switch input:checked + span::after { transform: translateX(14px); }
.switch input:focus-visible + span { box-shadow: var(--ui-ring-shadow); }

/* ---------- accordion ---------- */
.accordion details { border-bottom: 1px solid var(--ui-border); }
.accordion summary {
    list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 1rem 0; font-weight: 500; font-size: 15px;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary:hover { text-decoration: underline; text-underline-offset: 4px; }
.accordion summary svg { width: 16px; height: 16px; color: var(--ui-muted-foreground); transition: transform .2s; flex: none; }
.accordion details[open] summary svg { transform: rotate(180deg); }
.accordion details p { margin: 0 0 1rem; color: var(--ui-muted-foreground); font-size: 14px; max-width: 70ch; }

/* ---------- separator, kbd, alert ---------- */
.separator { height: 1px; background: var(--ui-border); border: 0; margin: 0; }
kbd {
    display: inline-flex; align-items: center; height: 1.25rem; padding: 0 .35rem; border-radius: var(--ui-radius-sm);
    background: var(--ui-muted); color: var(--ui-muted-foreground); font-size: 11px; font-weight: 500; border: 1px solid var(--ui-border);
}
.alert {
    display: grid; grid-template-columns: auto 1fr; gap: .25rem .75rem; align-items: start;
    border: 1px solid var(--ui-border); border-radius: var(--ui-radius-lg); padding: .8rem 1rem; font-size: 14px;
    background: var(--ui-card);
}
.alert svg { width: 16px; height: 16px; margin-top: 3px; }
.alert-title { font-weight: 500; }
.alert-description { grid-column: 2; color: var(--ui-muted-foreground); font-size: 13px; }
.alert-destructive { color: var(--ui-destructive); border-color: color-mix(in srgb, var(--ui-destructive) 40%, transparent); background: color-mix(in srgb, var(--ui-destructive) 8%, var(--ui-card)); }
.alert-destructive .alert-description { color: color-mix(in srgb, var(--ui-destructive) 75%, var(--ui-foreground)); }

/* ---------- toast (sonner-like) ---------- */
.toast {
    position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 100; max-width: 360px;
    background: var(--ui-card); border: 1px solid var(--ui-border); border-radius: var(--ui-radius-lg); box-shadow: var(--ui-shadow-lg);
    padding: .85rem 1rem; font-size: 14px; transform: translateY(20px); opacity: 0; pointer-events: none; transition: transform .25s, opacity .25s;
}
.toast.show { transform: none; opacity: 1; }
.toast strong { display: block; font-weight: 500; }
.toast span { color: var(--ui-muted-foreground); font-size: 13px; }

/* ---------- sections ---------- */
section { padding: 6rem 0; }
.section-head { max-width: 720px; margin: 0 0 3rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: .4rem; font-size: 13px; font-weight: 500; color: var(--brand); margin-bottom: .75rem; }
h1, h2, h3 { letter-spacing: -.025em; margin: 0; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); line-height: 1.15; font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em; }
.lede { font-size: 1.1rem; color: var(--ui-muted-foreground); margin: 1rem 0 0; }
.band { background: color-mix(in srgb, var(--ui-muted) 35%, var(--ui-background)); border-block: 1px solid var(--ui-border); }

/* hero */
.hero { padding: 5rem 0 4rem; position: relative; overflow: hidden; }
.hero::before {
    content: ""; position: absolute; inset: -30% -10% auto; height: 640px; pointer-events: none;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 18%, transparent), transparent 70%);
    opacity: .7;
}
.hero .container { position: relative; }
.hero-copy { max-width: 760px; margin: 0 auto; text-align: center; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.25rem); line-height: 1.04; font-weight: 650; letter-spacing: -.04em; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 620px; margin: 1.25rem auto 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 2rem; }
.hero-note { margin-top: 1rem; font-size: 13px; color: var(--ui-muted-foreground); }

/* app frame around the hero chart */
.app-frame { margin-top: 3.5rem; overflow: hidden; border-radius: var(--ui-radius-xl); box-shadow: 0 30px 80px -20px rgba(0,0,0,.55); }
.frame-bar { display: flex; align-items: center; gap: .75rem; padding: .6rem .9rem; border-bottom: 1px solid var(--ui-border); font-size: 13px; }
.frame-dots { display: flex; gap: 6px; }
.frame-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--ui-muted); }
.frame-sym { font-weight: 600; }
.frame-price { font-family: var(--ui-font-mono); font-variant-numeric: tabular-nums; }
.frame-bar .spacer { flex: 1; }
.frame-body { display: grid; grid-template-columns: 1fr 280px; }
.chart-host { height: 440px; background: var(--chart-bg); }
.chart-host.sm { height: 260px; }
.chart-host.xs { height: 200px; }
.frame-side { border-left: 1px solid var(--ui-border); padding: 1rem; display: flex; flex-direction: column; gap: .85rem; font-size: 13px; }
.ticket-row { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.ticket-row label { display: grid; gap: .25rem; font-size: 12px; color: var(--ui-muted-foreground); }
.ticket-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.btn-buy { background: var(--chart-up); color: #fff; }
.btn-buy:hover { background: color-mix(in srgb, var(--chart-up) 85%, #000); }
.btn-sell { background: var(--chart-down); color: #fff; }
.btn-sell:hover { background: color-mix(in srgb, var(--chart-down) 85%, #000); }
.kv { display: flex; justify-content: space-between; gap: .5rem; }
.kv span:first-child { color: var(--ui-muted-foreground); }

/* broker strip */
.brokers { padding: 2.5rem 0; }
.brokers .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 2.5rem; color: var(--ui-muted-foreground); font-size: 14px; }
.broker { display: inline-flex; align-items: center; gap: .6rem; color: var(--ui-foreground); font-weight: 500; }
.broker img { width: 24px; height: 24px; border-radius: 5px; }

/* feature grid */
.grid { display: grid; gap: 1rem; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature-icon {
    width: 36px; height: 36px; border-radius: var(--ui-radius-md); display: grid; place-items: center;
    background: var(--ui-muted); border: 1px solid var(--ui-border); margin-bottom: 1rem;
}
.feature-icon svg { width: 18px; height: 18px; }
.feature p { margin: .5rem 0 0; color: var(--ui-muted-foreground); font-size: 14px; }

/* split rows: copy on one side, demo on the other */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem; align-items: center; }
.split.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split.flip > .split-copy { order: 2; }
.split + .split { margin-top: 6rem; }
.checks { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .65rem; font-size: 15px; }
.checks li { display: flex; gap: .65rem; align-items: start; }
.checks svg { width: 18px; height: 18px; color: var(--brand); flex: none; margin-top: 3px; }
.demo { overflow: hidden; }
.demo-head { display: flex; align-items: center; gap: .6rem; padding: .75rem 1rem; border-bottom: 1px solid var(--ui-border); font-size: 13px; }
.demo-head .spacer { flex: 1; }
.demo-foot { padding: .75rem 1rem; border-top: 1px solid var(--ui-border); font-size: 12px; color: var(--ui-muted-foreground); }

/* target window */
.voice { display: flex; align-items: center; gap: .75rem; padding: .85rem 1rem; border-bottom: 1px solid var(--ui-border); }
.mic {
    width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none;
    background: color-mix(in srgb, var(--chart-down) 15%, transparent); color: var(--chart-down);
}
.mic svg { width: 18px; height: 18px; }
.mic.listening { animation: ring 1.4s ease-out infinite; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--chart-down) 45%, transparent); } 100% { box-shadow: 0 0 0 12px transparent; } }
.voice-text { font-size: 15px; font-weight: 500; min-height: 1.5em; }
.voice-text .caret { display: inline-block; width: 2px; height: 1em; background: currentColor; vertical-align: -2px; margin-left: 2px; animation: pulse 1s steps(2) infinite; }
.rr-bar { display: inline-block; height: 6px; border-radius: 3px; background: var(--brand); vertical-align: middle; margin-right: .4rem; }

/* risk */
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; padding: 1rem; }
.stat { border: 1px solid var(--ui-border); border-radius: var(--ui-radius-lg); padding: .7rem .8rem; }
.stat .label { font-size: 12px; color: var(--ui-muted-foreground); }
.stat .value { font-family: var(--ui-font-mono); font-variant-numeric: tabular-nums; font-size: 18px; font-weight: 600; margin-top: .15rem; }
.meter { height: 4px; border-radius: 2px; background: var(--ui-muted); margin-top: .5rem; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--ui-warning); border-radius: inherit; transition: width .3s; }
.meter i.full { background: var(--ui-destructive); }
.limit-list { display: grid; gap: .6rem; padding: 0 1rem 1rem; font-size: 13px; }
.limit { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.lock-overlay {
    position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none;
    background: color-mix(in srgb, var(--chart-bg) 55%, transparent); opacity: 0; transition: opacity .4s;
}
.lock-overlay.show { opacity: 1; }
.lock-overlay .alert { pointer-events: auto; max-width: 340px; }

/* algo code */
.code {
    margin: 0; padding: 1rem 1.1rem; font-size: 12.5px; line-height: 1.65; overflow-x: auto;
    background: color-mix(in srgb, var(--ui-muted) 45%, var(--ui-card)); border-bottom: 1px solid var(--ui-border);
}
.code .k { color: #c792ea; } .code .f { color: #82aaff; } .code .s { color: #c3e88d; } .code .n { color: #f78c6c; } .code .c { color: var(--ui-muted-foreground); }
:root[data-theme="light"] .code .k { color: #7c3aed; } :root[data-theme="light"] .code .f { color: #2563eb; }
:root[data-theme="light"] .code .s { color: #15803d; } :root[data-theme="light"] .code .n { color: #c2410c; }

/* performance calendar */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; padding: 1rem; }
.cal .dow { font-size: 11px; color: var(--ui-muted-foreground); text-align: center; }
.cal .day { aspect-ratio: 1.35; border-radius: var(--ui-radius-sm); font-size: 11px; padding: 3px 5px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--ui-border); }
.cal .day b { font-weight: 500; font-family: var(--ui-font-mono); font-size: 10.5px; }
.cal .day.empty { border-color: transparent; }

/* AI chat */
.chat { padding: 1rem; display: grid; gap: .75rem; font-size: 14px; }
.msg { max-width: 88%; padding: .6rem .85rem; border-radius: var(--ui-radius-lg); }
.msg.user { justify-self: end; background: var(--ui-primary); color: var(--ui-primary-foreground); }
.msg.ai { background: var(--ui-muted); }
.msg.ai ul { margin: .35rem 0 0; padding-left: 1.1rem; }
.tool-chips { display: flex; flex-wrap: wrap; gap: .35rem; }

/* security */
.flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; counter-reset: step; }
.flow .card { position: relative; }
.flow .step { font-family: var(--ui-font-mono); font-size: 12px; color: var(--brand); }

/* CTA */
.cta { text-align: center; }
.cta-card { padding: 3.5rem 2rem; background: radial-gradient(120% 140% at 50% 0%, color-mix(in srgb, var(--brand) 14%, var(--ui-card)), var(--ui-card) 60%); }
.cta form { display: flex; gap: .5rem; max-width: 440px; margin: 2rem auto 0; }

/* footer */
.site-footer { border-top: 1px solid var(--ui-border); padding: 2.5rem 0 3rem; font-size: 13px; color: var(--ui-muted-foreground); }
.site-footer .container { display: grid; gap: 1rem; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.disclaimer { max-width: 90ch; font-size: 12px; line-height: 1.6; }

@media (max-width: 960px) {
    .nav { display: none; }
    .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .split, .split.flip { grid-template-columns: 1fr; gap: 2rem; }
    .split.flip > .split-copy { order: 0; }
    .frame-body { grid-template-columns: 1fr; }
    .frame-side { border-left: 0; border-top: 1px solid var(--ui-border); }
    .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .flow { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    section { padding: 4rem 0; }
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .chart-host { height: 320px; }
    .cta form { flex-direction: column; }
    .header-actions .btn-outline { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* the build's version, after the copyright */
.version { font-family: var(--ui-font-mono); font-size: 11px; }
