/* 5090Ai website. Light theme on :root, dark on [data-theme="dark"]; the hero and the "navy" sections are dark in both. */

/* Josefin Sans and Mulish draw × (and Josefin ~) tiny: take just those signs from the system font, scaled up */
@font-face { font-family: "Title Signs"; src: local("Segoe UI Bold"), local("SegoeUI-Bold"), local("Arial Bold"), local("Arial-BoldMT"); font-weight: 600 900; unicode-range: U+00D7; size-adjust: 135%; }
@font-face { font-family: "Title Signs"; src: local("Segoe UI"), local("SegoeUI"), local("Arial"), local("ArialMT"); font-weight: 100 599; unicode-range: U+00D7; size-adjust: 135%; }
@font-face { font-family: "Title Signs"; src: local("Segoe UI Bold"), local("SegoeUI-Bold"), local("Arial Bold"), local("Arial-BoldMT"); font-weight: 600 900; unicode-range: U+007E; size-adjust: 110%; }
@font-face { font-family: "Title Signs"; src: local("Segoe UI"), local("SegoeUI"), local("Arial"), local("ArialMT"); font-weight: 100 599; unicode-range: U+007E; size-adjust: 110%; }
@font-face { font-family: "Body Signs"; src: local("Segoe UI Semibold"), local("SegoeUI-Semibold"), local("Arial"); font-weight: 500 900; unicode-range: U+00D7; size-adjust: 125%; }
@font-face { font-family: "Body Signs"; src: local("Segoe UI"), local("SegoeUI"), local("Arial"); font-weight: 100 499; unicode-range: U+00D7; size-adjust: 125%; }
:root {
    --orange: #ff5926;
    --orange-2: #ff8a3d;
    --orange-deep: #e5370c;
    --orange-ink: #c83a0c;          /* orange text on light backgrounds (5.2:1) */
    --grad: linear-gradient(135deg, #ff4419 0%, #ff5926 45%, #ff8a3d 100%);
    --grad-fill: linear-gradient(135deg, #e5370c 0%, #f44a19 50%, #ff5926 100%);
    --blue: #2f74d0;                /* llama.cpp in the charts (validated pair with the orange) */
    --bg: #ffffff;
    --bg-alt: #f4f4f6;
    --card: #ffffff;
    --text: #1b1e31;
    --text-2: #3d4057;
    --muted: #6e6e6e;
    --border: #e6e6ec;
    --navy: #1b1e31;
    --navy-2: #232741;
    --navy-card: #252a45;
    --on-navy: #ffffff;
    --on-navy-2: #a8a9b3;
    --shadow: 0 10px 40px rgba(27, 30, 49, .08);
    --shadow-lg: 0 30px 80px rgba(27, 30, 49, .16);
    --accent-text: var(--orange-ink);
    --title: "Title Signs", "Josefin Sans", "Segoe UI", system-ui, sans-serif;
    --body: "Body Signs", "Mulish", "Segoe UI", system-ui, sans-serif;
    --mono: "Cascadia Code", "JetBrains Mono", Consolas, monospace;
    --ease: cubic-bezier(.2, .8, .2, 1);
    color-scheme: light;
}
[data-theme="dark"] {
    --bg: #0b0c13;
    --bg-alt: #10121c;
    --card: #151827;
    --text: #f2f2f6;
    --text-2: #c9cad6;
    --muted: #9a9cab;
    --border: rgba(255, 255, 255, .08);
    --navy: #07080f;
    --navy-2: #0e1020;
    --navy-card: #151a30;
    --shadow: 0 10px 40px rgba(0, 0, 0, .35);
    --shadow-lg: 0 30px 80px rgba(0, 0, 0, .55);
    --accent-text: var(--orange);
    --blue: #4688e3;
    color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--muted); font: 16px/1.7 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, h4 { font-family: var(--title); color: var(--text); margin: 0; line-height: 1.15; letter-spacing: -.01em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.hl { color: var(--orange); }
.container { width: min(1240px, 100% - 48px); margin: 0 auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 15px var(--title); color: var(--muted); margin-bottom: 12px; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--orange); }
.section { padding: 110px 0; }
.section.alt { background: var(--bg-alt); }
.section.navy { background: var(--navy); color: var(--on-navy-2); }
.section.navy h2, .section.navy h3, .section.navy h4 { color: var(--on-navy); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 60px; }
.section-head h2 { font-size: clamp(32px, 4vw, 48px); }
.section-head p { margin: 18px 0 0; font-size: 17px; }
.arrow { display: inline-block; transform: rotate(45deg); font-weight: 800; }

/* buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; padding: 0 30px; border-radius: 4px;
    font: 700 16px var(--title); border: 1px solid transparent; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s, background .2s, color .2s;
    white-space: nowrap;
}
.btn.primary { background: var(--grad-fill); color: #fff; box-shadow: 0 12px 30px rgba(255, 89, 38, .35); text-shadow: 0 1px 1px rgba(90, 20, 0, .3); }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(255, 89, 38, .45); }
.btn.outline { border-color: var(--orange); color: var(--on-navy); background: transparent; }
.btn.outline:hover { background: var(--orange); color: #fff; }
.btn.ghost { border-color: var(--border); color: var(--text); background: var(--card); }
.btn.ghost:hover { border-color: var(--orange); color: var(--accent-text); }
.btn.sm { height: 44px; padding: 0 20px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; }

/* top bar + header */
.topbar { background: var(--navy); color: var(--on-navy-2); font-size: 14px; }
.topbar .container { display: flex; align-items: center; gap: 26px; height: 48px; }
.topbar .item { display: inline-flex; align-items: center; gap: 8px; }
.topbar .item svg { width: 15px; height: 15px; color: var(--orange); }
.topbar .item b { color: #fff; font-weight: 700; }
.topbar .spacer { flex: 1; }
.topbar a:hover { color: #fff; }
.header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.header .container { display: flex; align-items: center; gap: 36px; height: 92px; }
.brand-logo { height: 44px; width: auto; }
.brand-logo.dark-only { display: none; }
[data-theme="dark"] .brand-logo.light-only { display: none; }
[data-theme="dark"] .brand-logo.dark-only { display: block; }
.nav { display: flex; gap: 34px; margin-left: 20px; }
.nav a { font: 600 16px var(--title); color: var(--text); position: relative; padding: 6px 0; white-space: nowrap; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--orange); transition: right .25s var(--ease); }
.nav a:hover { color: var(--accent-text); }
.nav a:hover::after { right: 0; }
.header .spacer { flex: 1; }
.theme-toggle {
    width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--border); background: var(--card); color: var(--text); cursor: pointer;
    display: grid; place-items: center; transition: border-color .2s, transform .3s var(--ease);
}
.theme-toggle:hover { border-color: var(--orange); transform: rotate(-20deg); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .moon, [data-theme="dark"] .theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .moon { display: block; }
.menu-btn { display: none; }

/* hero */
.hero { position: relative; overflow: hidden; background: #0d0f1c; color: var(--on-navy-2); }
.hero::before {   /* circuit traces + orange glow */
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(900px 600px at 78% 40%, rgba(255, 89, 38, .20), transparent 62%),
        radial-gradient(700px 500px at 0% 100%, rgba(47, 116, 208, .12), transparent 60%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='280' fill='none' stroke='%23ffffff' stroke-opacity='.045' stroke-width='1.4'%3E%3Cpath d='M0 40h70l20 20h60M0 70h40l30 30h90l20-20h60M150 0v30l20 20v70M210 0v50l-20 20M0 200h50l20-20h70l20 20h120M90 280v-40l20-20h40M230 280v-50l-30-30v-40l20-20h60'/%3E%3Ccircle cx='150' cy='60' r='4'/%3E%3Ccircle cx='170' cy='120' r='4'/%3E%3Ccircle cx='140' cy='180' r='4'/%3E%3Ccircle cx='200' cy='140' r='4'/%3E%3C/svg%3E");
}
.hero .container { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 50px; align-items: center; padding: 90px 0 120px; }
.hero h1 { color: #fff; font-size: clamp(38px, 4.3vw, 62px); font-weight: 700; letter-spacing: -.015em; line-height: 1.08; }
.hero h1 .x { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 19px; line-height: 1.65; margin: 26px 0 36px; max-width: 560px; color: #c3c5d4; }
.hero .lead b { color: #fff; }
.hero .cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero .fine { margin-top: 18px; font-size: 13px; color: #8d8fa3; }
.hero-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 46px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 6px; background: rgba(255, 255, 255, .03); }
.hero-stats div { padding: 18px 20px; border-left: 1px solid rgba(255, 255, 255, .08); }
.hero-stats div:first-child { border-left: 0; }
.hero-stats b { display: block; font: 700 28px var(--title); color: #fff; line-height: 1.1; }
.hero-stats b .o { color: var(--orange); font-size: inherit; }
.hero-stats span { font-size: 13px; color: #9fa1b4; }

/* hero animation stage */
.stage {
    position: relative; aspect-ratio: 1 / 1.04; border-radius: 14px; overflow: hidden; isolation: isolate;
    background: radial-gradient(120% 90% at 50% 30%, #181b30 0%, #090a12 72%); border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 40px 100px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .06); transition: box-shadow .6s, border-color .6s;
}
.stage.boost { border-color: rgba(255, 89, 38, .4); box-shadow: 0 40px 140px rgba(255, 89, 38, .3), 0 0 0 1px rgba(255, 89, 38, .15), inset 0 1px 0 rgba(255, 255, 255, .06); }
.stage canvas.fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.stage .grid-floor {
    position: absolute; left: -20%; right: -20%; bottom: -10%; height: 55%; z-index: 0; opacity: .45; pointer-events: none;
    background: linear-gradient(transparent, rgba(255, 89, 38, .07)), repeating-linear-gradient(90deg, rgba(255, 255, 255, .06) 0 1px, transparent 1px 60px),
                repeating-linear-gradient(0deg, rgba(255, 255, 255, .06) 0 1px, transparent 1px 60px);
    transform: perspective(500px) rotateX(62deg); transform-origin: bottom;
}
.stage.boost .grid-floor { opacity: .7; }
.stage .hud { position: absolute; left: 18px; right: 18px; top: 16px; z-index: 4; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.stage .chips { display: grid; gap: 8px; justify-items: start; }
.stage .chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; font: 700 12px var(--title); letter-spacing: .06em;
    text-transform: uppercase; color: #fff; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .1); backdrop-filter: blur(6px); }
.stage .chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 10px var(--blue); }
.stage.boost .chip.engine { border-color: rgba(255, 89, 38, .6); background: rgba(255, 89, 38, .16); }
.stage.boost .chip.engine i { background: var(--orange); box-shadow: 0 0 12px var(--orange); }
.stage .meter { text-align: right; }
.stage .meter .num { font: 700 56px/1 var(--title); color: #fff; font-variant-numeric: tabular-nums; }
.stage.boost .meter .num { background: linear-gradient(90deg, #ffd166, #ff8a3d 40%, #ff5926); -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 0 22px rgba(255, 89, 38, .55)); }
.stage .meter .unit { font: 700 14px var(--title); color: #9fa1b4; letter-spacing: .08em; }
.stage .leds { display: flex; gap: 3px; justify-content: flex-end; margin-top: 8px; }
.stage .leds i { width: 6px; height: 13px; border-radius: 2px; background: rgba(255, 255, 255, .08); transition: background .12s, box-shadow .12s; }
.stage .leds i.on { background: #4688e3; box-shadow: 0 0 8px rgba(70, 136, 227, .7); }
.stage.boost .leds i.on { background: var(--orange); box-shadow: 0 0 8px rgba(255, 89, 38, .85); }
.stage.boost .leds i.on.hot { background: #ffd166; box-shadow: 0 0 10px rgba(255, 209, 102, .95); }
.stage .meter .sub { font-size: 12.5px; color: #9fa1b4; margin-top: 6px; min-height: 18px; }
.stage .badge {
    position: absolute; z-index: 5; right: 18px; top: 136px; padding: 8px 14px; border-radius: 6px; font: 700 17px var(--title); color: #fff;
    background: var(--grad-fill); box-shadow: 0 12px 34px rgba(255, 89, 38, .55); transform: scale(.4) rotate(-6deg); opacity: 0;
    transition: transform .5s cubic-bezier(.2, 1.6, .4, 1), opacity .3s; text-shadow: 0 1px 1px rgba(90, 20, 0, .35);
}
.stage .badge.show { transform: scale(1) rotate(-3deg); opacity: 1; }
.stage .logo-slam { position: absolute; z-index: 7; left: 50%; top: var(--mid-y, 43%); width: 62%; transform: translate(-50%, -50%) scale(2.4); opacity: 0; filter: blur(12px); pointer-events: none; }
/* slams in at the centre, then settles just below the cards and stays, glowing, until the next scene */
.stage .logo-slam.in { animation: slamDock 2.3s cubic-bezier(.2, .9, .2, 1) forwards, logoGlow 2.4s ease-in-out 2.3s infinite; }
.stage .logo-slam.docked { opacity: 1; top: var(--dock-y); transform: translate(-50%, -50%) scale(var(--dock-s)); filter: drop-shadow(0 0 16px rgba(255, 89, 38, .55)); }
.stage .feats { position: absolute; z-index: 6; left: 18px; right: 18px; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 9px; pointer-events: none; }
.stage .feat.free { grid-column: 1 / -1; justify-content: center; }
.stage .feat { position: relative; overflow: hidden; display: flex; align-items: center; gap: 11px; padding: 8px 12px; border-radius: 10px; opacity: 0;
    background: rgba(10, 11, 20, .84); border: 1px solid rgba(255, 89, 38, .55); backdrop-filter: blur(8px);
    box-shadow: 0 0 34px -6px rgba(255, 89, 38, .6), inset 0 1px 0 rgba(255, 255, 255, .07); }
.stage .feat::after { content: ""; position: absolute; inset: 0; transform: translateX(-120%);
    background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .32) 50%, transparent 65%); }
.stage .feat .ic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff;
    background: radial-gradient(circle at 30% 25%, #ff9a52, #e5370c 70%); box-shadow: 0 0 20px rgba(255, 89, 38, .75), inset 0 1px 0 rgba(255, 255, 255, .35); }
.stage .feat .ic svg { width: 23px; height: 23px; }
.stage .feat b { display: block; font: 700 19px/1.1 var(--title); color: #fff; white-space: nowrap; }
.stage .feat small { display: block; font-size: 11.5px; color: #b4b6c6; margin-top: 3px; white-space: nowrap; }
.stage .feat.free { background: var(--grad-fill); border-color: #ffc29a; box-shadow: 0 0 60px -4px rgba(255, 89, 38, .9), inset 0 1px 0 rgba(255, 255, 255, .3); }
.stage .feat.free .ic { background: rgba(255, 255, 255, .2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4); }
.stage .feat.free b { font-size: 30px; letter-spacing: .08em; text-shadow: 0 2px 10px rgba(120, 30, 0, .45); }
.stage .feat.free small { color: rgba(255, 255, 255, .9); }
.stage .feat.in { animation: featIn .75s cubic-bezier(.2, .9, .2, 1) forwards; }
.stage .feat.in::after { animation: glint .9s ease-out .5s; }
.stage .feat.free.in { animation: featIn .75s cubic-bezier(.2, .9, .2, 1) forwards, freePulse 1.6s ease-in-out .9s infinite; }
.stage .feat.shown { opacity: 1; }
.stage .value-slam {
    position: absolute; z-index: 6; left: 50%; top: calc(var(--mid-y, 45%) - 14px); transform: translate(-50%, -50%) scale(.5); opacity: 0; text-align: center; pointer-events: none;
    padding: 18px 30px 20px; border-radius: 14px; background: rgba(8, 9, 16, .8); border: 1px solid rgba(255, 89, 38, .65); backdrop-filter: blur(10px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 90px -10px rgba(255, 89, 38, .7); transition: transform .55s cubic-bezier(.2, 1.5, .4, 1), opacity .3s;
    white-space: nowrap;
}
.stage .value-slam.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.stage .value-slam .k { display: block; font: 700 13px var(--title); letter-spacing: .14em; text-transform: uppercase; color: #c3c5d4; }
.stage .value-slam b { display: block; font: 700 clamp(48px, 7vw, 82px)/1.05 var(--title); margin: 8px 0 2px; letter-spacing: -.01em;
    background: linear-gradient(90deg, #ffd166, #ff8a3d 45%, #ff5926); -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 0 26px rgba(255, 120, 40, .55)); }
.stage .value-slam .k2 { font-size: 14px; color: #c3c5d4; }
.stage .value-slam em { font-style: normal; font-weight: 800; color: #fff; }
.stage .dock { position: absolute; z-index: 4; left: 16px; right: 16px; bottom: 16px; display: grid; gap: 10px; }
.stage .term {
    height: 66px; padding: 9px 14px; border-radius: 8px; background: rgba(5, 6, 12, .78); border: 1px solid rgba(255, 255, 255, .08);
    font: 12px/1.5 var(--mono); color: #cfd2e2; overflow: hidden; white-space: pre-wrap; backdrop-filter: blur(6px);
}
.stage .term .who { color: #7d8099; }
.stage .term .caret { display: inline-block; width: 7px; height: 13px; vertical-align: -2px; background: var(--orange); animation: blink 1s steps(2) infinite; }
.stage .tiles { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 10px; }
.stage .tile { padding: 11px 14px 12px; border-radius: 8px; background: rgba(5, 6, 12, .78); border: 1px solid rgba(255, 255, 255, .08); backdrop-filter: blur(6px);
    transition: border-color .5s, box-shadow .5s; }
.stage .tile .k { display: block; font: 700 11px var(--title); letter-spacing: .12em; text-transform: uppercase; color: #8d8fa3; }
.stage .tile b { display: block; font: 700 30px/1.1 var(--title); color: #fff; font-variant-numeric: tabular-nums; margin-top: 5px; }
.stage .tile .s { display: block; font-size: 12px; color: #9fa1b4; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stage.boost .tile.val { border-color: rgba(255, 89, 38, .6); box-shadow: 0 0 34px -6px rgba(255, 89, 38, .65), inset 0 0 24px rgba(255, 89, 38, .1); }
.stage.boost .tile.val b, .stage.boost #stPow { background: linear-gradient(90deg, #ffd166, #ff8a3d 50%, #ff5926); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stage .tile b.pop { animation: pop .35s ease-out; transform-origin: left center; }
.stage .minis { display: flex; gap: 4px; margin-top: 7px; }
.stage .minis i { flex: 1; max-width: 22px; height: 8px; border-radius: 2px; background: rgba(255, 255, 255, .1); transition: background .25s, box-shadow .25s; }
.stage .minis i.on { background: #4688e3; }
.stage.boost .minis i.on { background: var(--orange); box-shadow: 0 0 8px rgba(255, 89, 38, .85); }
.stage-tabs { display: flex; gap: 8px; margin-top: 16px; justify-content: center; }
.stage-tabs button { border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .04); color: #c3c5d4; font: 700 13px var(--title);
                     padding: 8px 16px; border-radius: 99px; cursor: pointer; transition: all .2s; }
.stage-tabs button.on { background: var(--orange); border-color: var(--orange); color: #fff; }
.stage-note { text-align: center; font-size: 11.5px; color: #6f7290; margin: 10px 0 0; }

/* numbered strip (overlaps the hero) */
.strip { position: relative; z-index: 3; margin-top: -60px; }
.strip .row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--card); box-shadow: var(--shadow-lg); border-radius: 6px; overflow: hidden; }
.strip .cell { display: flex; gap: 20px; padding: 32px 34px; border-left: 1px solid var(--border); }
.strip .cell:first-child { border-left: 0; }
.strip .n { font: 800 34px/1 var(--title); color: var(--orange); }
.strip h3 { font-size: 21px; margin-bottom: 6px; }
.strip p { margin: 0; font-size: 15px; }

/* speed section */
.model-tabs { display: inline-flex; gap: 6px; padding: 6px; border-radius: 8px; background: var(--card); border: 1px solid var(--border); margin-bottom: 30px; }
.model-tabs button { border: 0; background: none; padding: 12px 22px; border-radius: 5px; font: 700 15px var(--title); color: var(--muted); cursor: pointer; }
.model-tabs button.on { background: var(--navy); color: #fff; }
[data-theme="dark"] .model-tabs button.on { background: var(--orange); }
.speed-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 30px; }
.panel { background: var(--card); border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow); padding: 30px; }
.panel h3 { font-size: 22px; }
.panel .sub { font-size: 14px; margin: 6px 0 18px; }
.legend { display: flex; gap: 20px; font: 600 14px var(--body); color: var(--text-2); margin-bottom: 8px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 8px; vertical-align: -1px; }
.legend .l i { background: var(--blue); }
.legend .e i { background: var(--grad); }
.chart { position: relative; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .gridline { stroke: var(--border); stroke-width: 1; }
.chart .axis-t { fill: var(--muted); font: 12px var(--body); }
.chart .cat { fill: var(--text); font: 700 14px var(--title); }
.chart .val { fill: var(--text-2); font: 700 12px var(--body); }
.chart .mult { fill: var(--accent-text); font: 800 18px var(--title); }
.chart .bar { transition: height 1.1s var(--ease), y 1.1s var(--ease); }
.chart .bar.l { fill: var(--blue); }
.chart .bar.e { fill: url(#engGrad); }
.chart .hit { fill: transparent; cursor: default; }
.chart .tip { position: absolute; pointer-events: none; padding: 10px 14px; border-radius: 6px; background: var(--card); border: 1px solid var(--border);
              box-shadow: var(--shadow-lg); font-size: 13px; color: var(--text-2); transform: translate(-50%, calc(-100% - 12px)); white-space: nowrap; opacity: 0; transition: opacity .15s; }
.chart .tip.show { opacity: 1; }
.chart .tip b { color: var(--text); }
.big-x { display: flex; flex-direction: column; gap: 18px; }
.big-x .x { font: 700 92px/.9 var(--title); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: -.03em; }
.big-x .x small { font-size: 64px; margin-left: 4px; }
.big-x .lbl { font: 700 16px var(--title); color: var(--text); margin-top: 6px; }
.race { display: grid; grid-template-columns: 90px 1fr 92px; gap: 10px 14px; align-items: center; font-size: 14px; }
.race .lane { height: 12px; border-radius: 99px; background: var(--bg-alt); overflow: hidden; }
.race .lane i { display: block; height: 100%; width: 0; border-radius: 99px; transition: width 1.4s var(--ease); }
.race .lane i.l { background: var(--blue); }
.race .lane i.e { background: var(--grad); box-shadow: 0 0 14px rgba(255, 89, 38, .5); }
.race b { color: var(--text); font-variant-numeric: tabular-nums; text-align: right; }
.table-wrap { margin-top: 30px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); }
table.speed { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--card); }
table.speed th { background: var(--navy); color: #fff; font: 700 15px var(--title); text-align: left; padding: 18px 24px; }
table.speed td { padding: 16px 24px; border-top: 1px solid var(--border); color: var(--text-2); font-variant-numeric: tabular-nums; }
table.speed tr:nth-child(even) td { background: var(--bg-alt); }
table.speed td.x { color: var(--accent-text); font-weight: 800; font-family: var(--title); font-size: 17px; }
table.speed td.e { color: var(--text); font-weight: 700; }
.method { font-size: 13px; margin-top: 16px; }

/* exact output section (navy) */
.exact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 60px; align-items: center; }
.exact h2 { font-size: clamp(32px, 4vw, 48px); }
.exact .points { display: grid; gap: 16px; margin-top: 30px; }
.exact .pt { display: flex; gap: 16px; padding: 20px 22px; border-radius: 6px; background: var(--navy-card); }
.exact .pt .ic { width: 44px; height: 44px; border-radius: 8px; display: grid; place-items: center; background: rgba(255, 89, 38, .14); color: var(--orange); flex: none; }
.exact .pt h4 { font-size: 18px; margin-bottom: 4px; }
.exact .pt p { margin: 0; font-size: 15px; }
.flow { background: var(--navy-card); border-radius: 10px; padding: 30px; border: 1px solid rgba(255, 255, 255, .06); }
.flow .step-l { font: 700 13px var(--title); text-transform: uppercase; letter-spacing: .08em; color: #8d8fa3; margin: 0 0 10px; }
.duel .lane-box { background: rgba(0, 0, 0, .22); border: 1px solid rgba(255, 255, 255, .07); border-radius: 8px; padding: 14px 16px 12px; margin-bottom: 14px; transition: border-color .4s, box-shadow .4s; }
.duel .lane-box.done { border-color: rgba(52, 211, 153, .45); }
.duel .lane-box.e.done { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange), 0 10px 40px -12px rgba(255, 89, 38, .55); }
.duel .hd { display: flex; justify-content: space-between; align-items: center; font: 700 14px var(--title); color: #d7d9e6; margin-bottom: 10px; }
.duel .hd i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; background: #4688e3; }
.duel .e .hd i { background: var(--orange); box-shadow: 0 0 10px var(--orange); }
.duel .hd b { font: 600 14px var(--mono); color: #a8a9b3; }
.duel .e .hd b { color: #fff; }
.duel .txt { height: 118px; overflow: hidden; -webkit-mask-image: linear-gradient(transparent, #000 22%); mask-image: linear-gradient(transparent, #000 22%); white-space: pre-wrap; font: 500 12.5px/1.5 var(--mono); color: #c9cbd8; }
.duel .bar { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .08); margin-top: 10px; overflow: hidden; }
.duel .bar i { display: block; height: 100%; width: 0; border-radius: 2px; background: #4688e3; }
.duel .e .bar i { background: linear-gradient(90deg, #ff8a3d, #ff5926); }
.duel .same { display: flex; align-items: center; gap: 8px; justify-content: center; padding: 10px 14px; border-radius: 6px; font: 700 15px var(--title);
    color: #8ff0c8; background: rgba(52, 211, 153, .12); border: 1px solid rgba(52, 211, 153, .4); opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s; }
.duel .same.show { opacity: 1; transform: none; }
.duel .same span { color: #fff; margin-left: 4px; }

/* features with real screenshots */
.feature { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 70px; align-items: center; padding: 50px 0; }
.feature.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.feature.flip .shot-wrap { order: 2; }
.shot-wrap { position: relative; min-width: 0; }
.shot-wrap::before { content: ""; position: absolute; inset: 30px -24px -24px 30px; border-radius: 10px; background: var(--grad); opacity: .14; }
.shot { position: relative; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--border); background: var(--card); }
.shot img { width: 100%; height: auto; }
.shot .s-dark { display: none; }
[data-theme="dark"] .shot .s-light { display: none; }
[data-theme="dark"] .shot .s-dark { display: block; }
.feature h3 { font-size: clamp(28px, 3vw, 40px); }
.feature p { margin: 18px 0 22px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); font-weight: 600; }
.ticks li::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 5px; margin-top: 2px;
    background: rgba(255, 89, 38, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff5926' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center/14px no-repeat; }
.callout-box { display: inline-flex; gap: 12px; align-items: center; margin-top: 26px; padding: 16px 22px; border-left: 4px solid var(--orange); background: var(--navy); color: #fff;
               font: 700 16px var(--title); border-radius: 0 6px 6px 0; }

/* models */
.models { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
.mcard { background: var(--card); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s; }
.mcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.mcard .top { padding: 30px 32px; background: var(--navy); color: #c3c5d4; position: relative; }
.mcard .tag { display: inline-block; font: 700 12px var(--title); letter-spacing: .1em; text-transform: uppercase; color: var(--orange); margin-bottom: 8px; }
.mcard h3 { color: #fff; font-size: 30px; }
.mcard .top p { margin: 8px 0 0; font-size: 15px; }
.mcard .nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--border); }
.mcard .nums div { padding: 22px 26px; border-left: 1px solid var(--border); }
.mcard .nums div:first-child { border-left: 0; }
.mcard .nums b { display: block; font: 800 30px/1.1 var(--title); color: var(--text); }
.mcard .nums b.o { color: var(--accent-text); }
.mcard .nums span { font-size: 13px; }
.mcard .body { padding: 26px 32px 30px; }
.mcard .body .ticks { margin-bottom: 22px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: step; }
.step { position: relative; padding: 34px 28px; background: var(--navy-card); border-radius: 8px; border: 1px solid rgba(255, 255, 255, .06); transition: transform .3s var(--ease), border-color .3s; }
.step:hover { transform: translateY(-6px); border-color: rgba(255, 89, 38, .5); }
.step .n { font: 700 14px var(--title); color: var(--orange); letter-spacing: .08em; text-transform: uppercase; }
.step h4 { font-size: 21px; margin: 14px 0 10px; }
.step p { margin: 0; font-size: 15px; }
.step .ic { position: absolute; right: 24px; top: 28px; width: 42px; height: 42px; color: rgba(255, 255, 255, .16); }

/* pricing */
.plans { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 26px; align-items: stretch; }
.plans.single { grid-template-columns: minmax(0, 620px); justify-content: center; }
.plans.single .plan { padding: 44px 48px; }
.plans.single .ticks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.plans-note { max-width: 620px; margin: 26px auto 0; text-align: center; font-size: 15px; color: var(--muted); }
@media (max-width: 600px) { .plans.single .plan { padding: 32px 24px; } .plans.single .ticks { grid-template-columns: 1fr; } }
.plan { padding: 36px 34px; background: var(--card); border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.plan.free { background: var(--navy); border-color: transparent; color: #c3c5d4; position: relative; overflow: hidden; }
.plan.free::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 89, 38, .35), transparent 70%); }
.plan .kind { font: 700 13px var(--title); letter-spacing: .1em; text-transform: uppercase; color: var(--orange); }
.plan h3 { font-size: 26px; margin: 10px 0 6px; }
.plan.free h3 { color: #fff; }
.plan .price { font: 800 72px/1 var(--title); color: var(--text); margin: 18px 0 10px; }
.plan.free .price { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.plan .price small { display: block; margin-top: 8px; font: 600 15px var(--body); color: var(--muted); }
.plan .fine { font-size: 12px; color: #8d8fa3; margin-bottom: 18px; }
.plan .ticks { margin: 10px 0 26px; }
.plan.free .ticks li { color: #e6e7ef; }
.plan .grow { flex: 1; }

/* requirements */
.reqs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.req { padding: 26px; border-radius: 8px; background: var(--card); border: 1px solid var(--border); }
.req .k { font: 700 13px var(--title); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.req .v { font: 800 20px/1.2 var(--title); white-space: nowrap; color: var(--text); margin-top: 6px; }
.req p { margin: 6px 0 0; font-size: 14px; }

/* FAQ */
.faq { max-width: 900px; margin: 0 auto; display: grid; gap: 14px; }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 0 28px; transition: border-color .2s; }
.faq details[open] { border-color: var(--orange); box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 18px; padding: 24px 0; font: 700 18px var(--title); color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .n { color: var(--orange); font-size: 15px; }
.faq summary::after { content: "+"; margin-left: auto; font-size: 26px; color: var(--orange); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 24px; }

/* CTA band + footer */
.cta-band { position: relative; overflow: hidden; background: var(--grad-fill); color: #fff; padding: 70px 0; }
.cta-band::after { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='280' fill='none' stroke='%23ffffff' stroke-opacity='.12' stroke-width='1.4'%3E%3Cpath d='M0 40h70l20 20h60M0 70h40l30 30h90l20-20h60M150 0v30l20 20v70M0 200h50l20-20h70l20 20h120'/%3E%3C/svg%3E"); }
.cta-band .container { position: relative; z-index: 1; display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: clamp(30px, 3.6vw, 44px); flex: 1; min-width: 300px; }
.cta-band .btn { background: #fff; color: #1b1e31; text-shadow: none; }
.cta-band .btn:hover { transform: translateY(-2px); }
.footer { background: #0d0f1c; color: #9fa1b4; padding: 80px 0 0; font-size: 15px; }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 { color: #fff; font-size: 18px; margin-bottom: 18px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a:hover { color: var(--orange); }
.footer .logo { height: 46px; width: auto; margin-bottom: 18px; }
.footer .bottom { margin-top: 60px; padding: 26px 0; border-top: 1px solid rgba(255, 255, 255, .08); display: flex; gap: 20px; flex-wrap: wrap; font-size: 14px; }
.footer .bottom .spacer { flex: 1; }
.footer .tm { font-size: 12px; color: #6d6f82; padding-bottom: 30px; }

/* legal pages */
.page-hero { background: #0d0f1c; color: #c3c5d4; padding: 80px 0 70px; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 400px at 85% 30%, rgba(255, 89, 38, .22), transparent 60%); }
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; font-size: clamp(38px, 5vw, 60px); }
.page-hero p { margin: 14px 0 0; }
.legal { max-width: 860px; margin: 0 auto; padding: 70px 0 100px; color: var(--text-2); }
.legal h2 { font-size: 26px; margin: 42px 0 14px; }
.legal h3 { font-size: 19px; margin: 26px 0 10px; }
.legal p, .legal li { line-height: 1.8; }
.legal .note { padding: 16px 20px; border-left: 4px solid var(--orange); background: var(--bg-alt); border-radius: 0 6px 6px 0; font-size: 14px; }
.legal a { color: var(--accent-text); text-decoration: underline; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes slamDock {
    0% { opacity: 0; top: var(--mid-y); transform: translate(-50%, -50%) scale(2.4); filter: blur(14px); }
    22% { opacity: 1; top: var(--mid-y); transform: translate(-50%, -50%) scale(.94); filter: blur(0); }
    30% { top: var(--mid-y); transform: translate(-50%, -50%) scale(1.04); }
    52% { opacity: 1; top: var(--mid-y); transform: translate(-50%, -50%) scale(1); filter: drop-shadow(0 0 30px rgba(255, 89, 38, .85)); }
    100% { opacity: 1; top: var(--dock-y); transform: translate(-50%, -50%) scale(var(--dock-s)); filter: drop-shadow(0 0 16px rgba(255, 89, 38, .55)); }
}
@keyframes logoGlow { 0%, 100% { filter: drop-shadow(0 0 12px rgba(255, 89, 38, .45)); } 50% { filter: drop-shadow(0 0 30px rgba(255, 110, 50, .95)); } }
@keyframes featIn {
    0% { opacity: 0; transform: perspective(700px) translateZ(520px) rotateX(22deg) rotate(-7deg); filter: blur(12px) brightness(2.2); }
    42% { opacity: 1; transform: perspective(700px) translateZ(-30px) rotate(0); filter: blur(0) brightness(1.8); }
    62% { transform: perspective(700px) translateZ(10px); filter: brightness(1.2); }
    100% { opacity: 1; transform: none; filter: none; }
}
@keyframes glint { to { transform: translateX(120%); } }
@keyframes freePulse { 0%, 100% { box-shadow: 0 0 50px -6px rgba(255, 89, 38, .8), inset 0 1px 0 rgba(255, 255, 255, .3); }
    50% { box-shadow: 0 0 80px 4px rgba(255, 120, 50, 1), inset 0 1px 0 rgba(255, 255, 255, .3); } }
@keyframes shock { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(22); border-width: 1px; } }
@keyframes flash { 0% { opacity: 0; } 25% { opacity: 1; } 100% { opacity: 0; } }
@keyframes pop { 0% { transform: scale(1.4); } 100% { transform: none; } }
@keyframes shake { 0%, 100% { transform: none; } 20% { transform: translate(-4px, 2px); } 40% { transform: translate(4px, -2px); } 60% { transform: translate(-3px, -1px); } 80% { transform: translate(2px, 2px); } }
.stage.shake { animation: shake .45s ease-out; }

@media (max-width: 1100px) {
    .hero .container, .exact, .feature, .feature.flip, .speed-grid { grid-template-columns: minmax(0, 1fr); }
    .feature.flip .shot-wrap { order: 0; }
    .models, .plans { grid-template-columns: minmax(0, 1fr); }
    .steps, .reqs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer .cols { grid-template-columns: 1fr 1fr; }
    .nav { display: none; }
}
@media (max-width: 720px) {
    .container { width: min(1240px, 100% - 32px); }
    .topbar .hide-sm, .header .btn.primary { display: none; }
    .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero-stats div:nth-child(3) { border-left: 0; }
    .strip .row { grid-template-columns: 1fr; }
    .strip .cell { border-left: 0; border-top: 1px solid var(--border); }
    .steps, .reqs, .footer .cols { grid-template-columns: 1fr; }
    .shot-wrap::before { inset: 16px -8px -10px 16px; }   /* the glow stays inside the 16px page margin */
    .stage .meter .num { font-size: 44px; }
    .section { padding: 80px 0; }
    .big-x .x { font-size: 72px; }
}
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; }
    .stage .term .caret, .receipt .rack .fan { animation: none; }
}


/* phones: no top bar, model-card figures and table values fit the width */
@media (max-width: 600px) {
    .topbar { display: none; }
    .mcard .nums b { font-size: 22px; }
    .mcard .nums span { font-size: 11px; }
    table.speed td, table.speed th { padding: 12px 8px; font-size: 13px; }
    table.speed td { white-space: nowrap; }
    .table-wrap { overflow-x: auto; }
}

/* value: what the speed-up is worth in RTX 5090s */
.value-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 60px; align-items: center; }
.value h2 { font-size: clamp(32px, 4vw, 50px); }
.eqs { display: grid; gap: 12px; margin-top: 30px; }
.eq { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 22px; padding: 16px 20px; border-radius: 8px; background: var(--navy-card); }
.eq .m { font-size: 14px; color: #a8a9b3; }
.eq .m b { display: block; font: 700 17px var(--title); color: #fff; margin-bottom: 2px; }
.eq .f { font: 600 16px var(--title); color: #c3c5d4; white-space: nowrap; }
.eq strong { font: 700 28px var(--title); color: var(--orange); min-width: 120px; text-align: right; }
.receipt { position: relative; padding: 34px 34px 30px; border-radius: 14px; overflow: hidden; background: linear-gradient(160deg, #1d2036, #0c0d18);
    border: 1px solid rgba(255, 89, 38, .4); box-shadow: 0 40px 100px rgba(0, 0, 0, .45), 0 0 90px -20px rgba(255, 89, 38, .5); }
.receipt::before { content: ""; position: absolute; right: -120px; top: -120px; width: 320px; height: 320px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 89, 38, .3), transparent 70%); pointer-events: none; }
.receipt .rack { position: relative; display: flex; gap: 6px; margin-bottom: 22px; }
.receipt .rack svg { flex: 1; min-width: 0; fill: rgba(255, 89, 38, .18); stroke: #ff5926; stroke-width: 1.4; filter: drop-shadow(0 0 6px rgba(255, 89, 38, .6)); }
.receipt .rack svg.own { fill: rgba(255, 255, 255, .08); stroke: #c3c5d4; filter: none; }
.receipt .rack circle { fill: #0c0d18; }
.receipt .rack .fan { animation: spin .45s linear infinite; }
.receipt .rack .fan path { fill: #ff8a4d; stroke: none; }
.receipt .rack svg.own .fan { animation-duration: 1.6s; }   /* the stock card: slower */
.receipt .rack svg.own .fan path { fill: #c3c5d4; }
.receipt .row { position: relative; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 13px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, .14); color: #c3c5d4; font-size: 15px; }
.receipt .row b { font: 700 20px var(--title); color: #fff; white-space: nowrap; }
.receipt .total { position: relative; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 20px 0 8px; }
.receipt .total span { font: 700 13px var(--title); letter-spacing: .12em; text-transform: uppercase; color: #a8a9b3; }
.receipt .total b { font: 700 clamp(42px, 5vw, 64px)/1 var(--title); background: linear-gradient(90deg, #ffd166, #ff8a3d 45%, #ff5926);
    -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 22px rgba(255, 120, 40, .45)); }
.receipt .you { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 16px; padding: 16px 20px;
    border-radius: 8px; background: var(--grad-fill); box-shadow: 0 14px 40px -10px rgba(255, 89, 38, .7); }
.receipt .you span { color: #fff; font-weight: 700; }
.receipt .you b { font: 700 32px/1 var(--title); color: #fff; white-space: nowrap; }
.receipt .you s { font-size: 17px; font-weight: 600; color: rgba(255, 255, 255, .65); margin-right: 12px; }
.value-note { font-size: 12.5px; color: #8d8fa3; margin: 34px 0 0; max-width: 900px; }
@media (max-width: 980px) { .value-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
    .eq { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; }
    .eq .f { grid-column: 1; grid-row: 2; font-size: 14px; }
    .eq strong { grid-column: 2; grid-row: 1 / 3; font-size: 24px; min-width: 0; }
    .receipt { padding: 26px 20px 22px; }
    .receipt .row { font-size: 14px; }
    .stage .meter { white-space: nowrap; }
    .stage .meter .num { font-size: 34px; }
    .stage .meter .unit { font-size: 11px; }
    .stage .leds { gap: 2px; }
    .stage .leds i { width: 3px; height: 10px; }
    .stage .badge { top: 118px; font-size: 14px; }
    .stage .tile b { font-size: 24px; }
    .stage .term { height: 52px; font-size: 11px; }
    .stage .value-slam { padding: 14px 18px 16px; }
    .stage .value-slam .k2 { font-size: 12px; }
}
@media (max-width: 600px) {
    .stage { aspect-ratio: 1 / 1.42; }
    .stage .chip { font-size: 10px; padding: 5px 10px; white-space: nowrap; }
    .stage .meter .sub, .stage .badge { display: none; }
    .stage .tile { padding: 9px 11px 10px; }
    .stage .tile .k { font-size: 10px; letter-spacing: .08em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .stage .value-slam b { font-size: 42px; }
    .stage .value-slam .k { font-size: 10.5px; }
    .stage .feats { left: 12px; right: 12px; gap: 6px; }
    .stage .feat { gap: 8px; padding: 4px 8px; border-radius: 7px; }
    .stage .feat .ic { width: 26px; height: 26px; border-radius: 7px; }
    .stage .feat .ic svg { width: 15px; height: 15px; }
    .stage .feat b { font-size: 13px; }
    .stage .feat small { display: none; }
    .stage .feat b { white-space: nowrap; }
    .stage .feat.free b { font-size: 19px; }
}

/* the feature tiles follow the stage's own width (narrow laptops as well as phones) */
.stage { container-type: inline-size; }
@container (max-width: 520px) {
    .stage .feat b { font-size: 15px; }
    .stage .feat small { font-size: 10px; }
    .stage .feat .ic { width: 32px; height: 32px; }
}
/* stacked hero (tablets): keep the animation a sensible size, centred */
@media (max-width: 1100px) { .hero .container > div:last-child { width: 100%; max-width: 620px; margin: 0 auto; } }
/* the docked logo steps down while the feature tiles are on stage (translate composes with the slam animation's transform) */
.stage .logo-slam { transition: translate .6s cubic-bezier(.2, .9, .2, 1); }
.stage .logo-slam.low { translate: 0 var(--low-shift, 0px); }
@container (max-width: 420px) {
    .stage .feat b { font-size: 13px; }
    .stage .feat.free b { font-size: 19px; }
    .stage .feat .ic { width: 26px; height: 26px; }
}
@container (max-width: 360px) { .stage .feat b { white-space: normal; font-size: 12.5px; } }

/* ------------------------------------------------------------------ how-to guides (guides.html) */
.guides-hero { position: relative; overflow: hidden; background: #0d0f1c; color: #c3c5d4; padding: 80px 0 70px; }
.guides-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(800px 420px at 85% 10%, rgba(255, 89, 38, .22), transparent 60%), radial-gradient(600px 400px at 0% 100%, rgba(47, 116, 208, .12), transparent 60%); }
.guides-hero .container { position: relative; }
.guides-hero h1 { color: #fff; font-size: clamp(36px, 4.6vw, 60px); margin: 10px 0 14px; }
.guides-hero p { font-size: 18px; max-width: 680px; margin: 0; }
.guide-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin-top: 40px; }
.guide-card { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 10px; background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .09); color: #c3c5d4; transition: border-color .2s, transform .2s, background .2s; }
.guide-card:hover { border-color: var(--orange); background: rgba(255, 89, 38, .08); transform: translateY(-2px); }
.guide-card .ic { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: #fff;
    background: radial-gradient(circle at 30% 25%, #ff9a52, #e5370c 70%); box-shadow: 0 0 16px rgba(255, 89, 38, .45); }
.guide-card .ic svg { width: 21px; height: 21px; }
.guide-card b { display: block; color: #fff; font: 700 16px/1.25 var(--title); }
.guide-card small { display: block; font-size: 13px; margin-top: 3px; color: #9fa1b4; }

.guides-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; padding: 60px 0 90px; }
.toc { position: sticky; top: 110px; align-self: start; max-height: calc(100vh - 130px); overflow: auto; }
.toc .k { font: 700 12px var(--title); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.toc a { display: flex; gap: 10px; padding: 8px 12px; border-radius: 6px; color: var(--text-2); font-size: 14.5px; line-height: 1.35; border-left: 2px solid transparent; }
.toc a span { color: var(--accent-text); font: 700 13px var(--title); min-width: 20px; }
.toc a:hover { background: var(--bg-alt); color: var(--text); }
.toc a.on { border-left-color: var(--orange); background: var(--bg-alt); color: var(--text); font-weight: 700; }

.guide { padding-bottom: 70px; margin-bottom: 70px; border-bottom: 1px solid var(--border); scroll-margin-top: 100px; }
.guide:last-child { border-bottom: 0; margin-bottom: 0; }
.guide-head { display: flex; gap: 18px; align-items: center; margin-bottom: 14px; }
.guide-head .num { flex: none; width: 54px; height: 54px; border-radius: 12px; display: grid; place-items: center; font: 700 22px var(--title); color: #fff;
    background: var(--grad-fill); box-shadow: 0 10px 26px -8px rgba(255, 89, 38, .7); }
.guide-head h2 { font-size: clamp(26px, 3vw, 36px); margin: 0; }
.guide-head .meta { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.guide > p.intro { font-size: 17px; max-width: 760px; }
.need { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 14px 18px; border-radius: 8px; background: var(--bg-alt); border: 1px solid var(--border);
    font-size: 14.5px; margin: 18px 0 30px; }
.need b { font-family: var(--title); color: var(--text); margin-right: 4px; }
.need span::before { content: "✓"; color: var(--accent-text); font-weight: 800; margin-right: 6px; }

.gsteps { list-style: none; margin: 0; padding: 0; counter-reset: gs; }
.gstep { position: relative; padding: 0 0 34px 64px; counter-increment: gs; }
.gstep::before { content: counter(gs); position: absolute; left: 0; top: -4px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
    font: 700 17px var(--title); color: var(--accent-text); background: var(--card); border: 2px solid var(--orange); }
.gstep::after { content: ""; position: absolute; left: 19px; top: 42px; bottom: 6px; width: 2px; background: var(--border); }
.gstep:last-child::after { display: none; }
.gstep h3 { font-size: 20px; margin: 4px 0 8px; }
.gstep p { margin: 0 0 12px; max-width: 760px; }
.gstep ul { margin: 0 0 12px; padding-left: 20px; max-width: 760px; }
.gstep li { margin: 4px 0; }
.ui { display: inline-block; padding: 1px 8px; border-radius: 5px; font: 700 .86em var(--title); color: var(--text); background: var(--bg-alt);
    border: 1px solid var(--border); white-space: nowrap; }
kbd { display: inline-block; padding: 1px 7px; border-radius: 5px; font: 600 .82em var(--mono); color: var(--text); background: var(--card);
    border: 1px solid var(--border); border-bottom-width: 2px; }
code.inl { overflow-wrap: anywhere; font: .9em var(--mono); padding: 1px 6px; border-radius: 4px; background: var(--bg-alt); border: 1px solid var(--border); }
pre.code { margin: 6px 0 14px; padding: 14px 16px; border-radius: 8px; background: #0d0f1c; color: #d7d9e6; font: 13px/1.6 var(--mono); overflow-x: auto; max-width: 760px; }

.gshot { margin: 14px 0 6px; max-width: 900px; }
.gshot .frame { border-radius: 10px; overflow: hidden; border: 1px solid var(--border); box-shadow: 0 24px 60px -24px rgba(13, 15, 28, .45); background: var(--card); }
.gshot .bar { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; background: var(--bg-alt); border-bottom: 1px solid var(--border);
    font: 600 12px var(--body); color: var(--muted); }
.gshot .bar img { width: 16px; height: 16px; }
.gshot .bar i { margin-left: auto; width: 46px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--border) 0 30%, transparent 30% 35%, var(--border) 35% 65%, transparent 65% 70%, var(--border) 70%); }
.gshot img.s { display: block; width: 100%; height: auto; }
.gshot.part { max-width: 620px; }
.gshot figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
[data-theme="dark"] .gshot img.s-light, :root:not([data-theme="dark"]) .gshot img.s-dark { display: none; }

.callout { display: flex; gap: 12px; padding: 14px 16px; border-radius: 8px; margin: 10px 0 14px; max-width: 760px; font-size: 15px;
    background: rgba(255, 89, 38, .07); border: 1px solid rgba(255, 89, 38, .3); }
.callout svg { flex: none; width: 20px; height: 20px; color: var(--accent-text); margin-top: 2px; }
.callout.info { background: rgba(70, 136, 227, .08); border-color: rgba(70, 136, 227, .35); }
.callout.info svg { color: #4688e3; }
.callout p { margin: 0; }

@media (max-width: 980px) {
    .guides-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 30px; }
    .toc { display: none; }
}
@media (max-width: 600px) {
    .gstep { padding-left: 50px; }
    .gstep::before { width: 34px; height: 34px; font-size: 15px; }
    .gstep::after { left: 16px; top: 36px; }
    .guide-head .num { width: 44px; height: 44px; font-size: 18px; }
}

.gstep p, .gstep li, .guide > p.intro { color: var(--text-2); }
.guides-layout > div { min-width: 0; }
.gshot a.zoom { display: block; cursor: zoom-in; }
[data-theme="dark"] .gshot a.s-light, :root:not([data-theme="dark"]) .gshot a.s-dark { display: none; }

/* guides grid (guides.html): one card per guide, with a screenshot */
.gcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 26px; padding: 60px 0 90px; }
.gcard { display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; background: var(--card); border: 1px solid var(--border);
    box-shadow: var(--shadow); transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.gcard:hover { transform: translateY(-4px); border-color: var(--orange); box-shadow: 0 24px 60px -20px rgba(255, 89, 38, .35); }
.gthumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.gthumb img.t { width: 100%; height: 100%; object-fit: cover; object-position: left top; transition: transform .5s var(--ease); }
.gcard:hover .gthumb img.t { transform: scale(1.04); }
[data-theme="dark"] .gthumb img.s-light, :root:not([data-theme="dark"]) .gthumb img.s-dark { display: none; }
.gnum { position: absolute; left: 14px; top: 14px; padding: 4px 10px; border-radius: 6px; font: 700 14px var(--title); color: #fff;
    background: var(--grad-fill); box-shadow: 0 6px 18px -4px rgba(255, 89, 38, .7); }
.gbody { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.gmeta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.gmeta .ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: #fff; background: radial-gradient(circle at 30% 25%, #ff9a52, #e5370c 70%); }
.gmeta .ic svg { width: 16px; height: 16px; }
.gbody h2 { font-size: 21px; margin: 12px 0 6px; }
.gbody p { margin: 0 0 16px; font-size: 15px; color: var(--text-2); }
.gbody .more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font: 700 14px var(--title); color: var(--accent-text); }
.gbody .more svg { width: 16px; height: 16px; transition: transform .2s; }
.gcard:hover .more svg { transform: translateX(4px); }

/* a guide page (guides/<id>.html) */
.guides-hero.slim { padding: 46px 0 40px; }
.guides-hero .crumbs { font-size: 14px; color: #9fa1b4; margin-bottom: 18px; }
.guides-hero .crumbs a { color: #fff; font-weight: 700; }
.guides-hero .crumbs a:hover { color: var(--orange); }
.guides-hero .crumbs span { margin: 0 8px; color: #6f7290; }
.guides-hero .guide-head { margin: 0; }
.guides-hero .guide-head h1 { font-size: clamp(28px, 3.6vw, 44px); margin: 0; }
.guides-hero .guide-head .meta { color: #9fa1b4; }
.guides-layout .guide { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }
.gpn { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 30px; padding-top: 30px; border-top: 1px solid var(--border); }
.gpn a { display: block; padding: 16px 20px; border-radius: 10px; border: 1px solid var(--border); background: var(--card); transition: border-color .2s, transform .2s; }
.gpn a:hover { border-color: var(--orange); transform: translateY(-2px); }
.gpn a.next { text-align: right; grid-column: 2; }
.gpn small { display: block; font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.gpn b { font: 700 17px var(--title); color: var(--text); }
@media (max-width: 600px) {
    .gcards { grid-template-columns: 1fr; padding-top: 30px; }
    .gpn { grid-template-columns: 1fr; }
    .gpn a.next { grid-column: 1; }
}
.nav a[aria-current="page"] { color: var(--accent-text); }
.nav a[aria-current="page"]::after { right: 0; }

/* ------------------------------------------------------------------ contact (homepage) */
.contact { position: relative; overflow: hidden; background: var(--bg-alt); }
.contact::before { content: ""; position: absolute; right: -200px; top: -160px; width: 620px; height: 620px; border-radius: 50%; pointer-events: none;
    background: radial-gradient(circle, rgba(255, 89, 38, .13), transparent 65%); }
.contact-grid { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
.contact h2 { font-size: clamp(32px, 4vw, 50px); margin-bottom: 16px; }
.contact-info > p { font-size: 17px; color: var(--text-2); max-width: 480px; }
.mail-card { display: flex; align-items: center; gap: 16px; margin: 30px 0 26px; padding: 16px 18px; border-radius: 12px; max-width: 460px;
    background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow); }
.mail-card .ic { flex: none; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; color: #fff;
    background: radial-gradient(circle at 30% 25%, #ff9a52, #e5370c 70%); box-shadow: 0 8px 20px -6px rgba(255, 89, 38, .7); }
.mail-card .ic svg { width: 24px; height: 24px; }
.mail-card small { display: block; font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.mail-card a { font: 700 19px var(--title); color: var(--text); }
.mail-card a:hover { color: var(--accent-text); }
.mail-card .copy { margin-left: auto; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-alt); color: var(--text-2);
    display: grid; place-items: center; cursor: pointer; transition: border-color .2s, color .2s; }
.mail-card .copy:hover { border-color: var(--orange); color: var(--accent-text); }
.mail-card .copy svg { width: 18px; height: 18px; }
.mail-card .copy.done { border-color: #2fae7a; color: #2fae7a; }
.contact-points { list-style: none; padding: 0; margin: 0; max-width: 480px; }
.contact-points li { position: relative; padding-left: 22px; margin: 10px 0; font-size: 15px; color: var(--text-2); }
.contact-points li::before { content: ""; position: absolute; left: 0; top: 10px; width: 8px; height: 8px; border-radius: 2px; background: var(--orange); transform: rotate(45deg); }
.contact-points b { color: var(--text); }
.contact-points a { color: var(--accent-text); font-weight: 700; }

.contact-form { position: relative; padding: 40px; border-radius: 16px; background: var(--card); border: 1px solid var(--border);
    box-shadow: var(--shadow-lg); display: grid; gap: 22px; }
.contact-form::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; border-radius: 16px 16px 0 0; background: var(--grad); }
.contact-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

/* floating labels: the label sits inside the field like a placeholder and glides to the top edge on focus or once filled */
.fl { position: relative; }
.fl input, .fl textarea, .fl select {
    width: 100%; padding: 26px 18px 10px; border-radius: 10px; border: 1.5px solid var(--border); background: var(--bg-alt);
    font: 500 16px var(--body); color: var(--text); outline: none; appearance: none; -webkit-appearance: none;
    transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
.fl textarea { resize: vertical; min-height: 150px; line-height: 1.55; padding-top: 30px; }
.fl select { cursor: pointer; padding-right: 46px; }
.fl select option { color: var(--text); background: var(--card); }
.fl label {
    position: absolute; left: 19px; top: 19px; font: 500 16px var(--body); color: var(--muted); pointer-events: none;
    transform-origin: left top; transition: transform .28s var(--ease), color .28s var(--ease);
}
.fl input:focus, .fl textarea:focus, .fl select:focus { border-color: var(--orange); background: var(--card); box-shadow: 0 0 0 4px rgba(255, 89, 38, .14); }
.fl input:focus + label, .fl input:not(:placeholder-shown) + label,
.fl textarea:focus + label, .fl textarea:not(:placeholder-shown) + label,
.fl select:focus + label, .fl select:valid + label {
    transform: translateY(-11px) scale(.76); color: var(--accent-text); font-weight: 700; letter-spacing: .02em;
}
.fl input:not(:focus):not(:placeholder-shown) + label, .fl textarea:not(:focus):not(:placeholder-shown) + label, .fl select:not(:focus):valid + label { color: var(--muted); }
.fl .chev { position: absolute; right: 16px; top: 22px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; transition: transform .25s var(--ease), color .25s; }
.fl select:focus ~ .chev { color: var(--accent-text); transform: rotate(180deg); }
.fl .err { display: block; max-height: 0; overflow: hidden; opacity: 0; font-size: 13px; color: #e5484d; transition: max-height .25s, opacity .25s, margin .25s; }
.fl.bad input, .fl.bad textarea, .fl.bad select { border-color: #e5484d; }
.fl.bad label { color: #e5484d !important; }
.fl.bad .err { max-height: 24px; opacity: 1; margin-top: 6px; }
.fl .count { position: absolute; right: 14px; bottom: 12px; font-size: 12px; color: var(--muted); pointer-events: none; }
.fl.bad .count { bottom: 34px; }
.form-foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form-foot .btn { gap: 10px; }
.form-foot .btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.form-foot .btn:hover svg { transform: translate(3px, -3px); }
.form-foot p { flex: 1; min-width: 200px; margin: 0; font-size: 13px; color: var(--muted); }
.contact-form .sent { display: none; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 10px; font-size: 15px; color: var(--text-2);
    background: rgba(47, 174, 122, .1); border: 1px solid rgba(47, 174, 122, .4); }
.contact-form .sent.show { display: flex; animation: sentIn .45s var(--ease); }
.contact-form .sent .ic { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: #2fae7a; }
.contact-form .sent .ic svg { width: 16px; height: 16px; }
.contact-form .sent b { color: var(--text); }
.contact-form .sent a { color: var(--accent-text); font-weight: 700; }
@keyframes sentIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 980px) { .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; } }
@media (max-width: 600px) {
    .contact-form { padding: 28px 20px; }
    .contact-form .row2 { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .fl label, .fl input, .fl textarea, .fl select { transition: none; } }

/* ------------------------------------------------------------------ phone / tablet menu: hamburger + slide-in drawer */
.menu-toggle { display: none; position: relative; flex: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--border);
    background: var(--card); color: var(--text); cursor: pointer; transition: border-color .2s; }
.menu-toggle:hover { border-color: var(--orange); }
.menu-toggle span { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease), opacity .2s, right .3s var(--ease); }
.menu-toggle span:nth-child(1) { top: 16px; }
.menu-toggle span:nth-child(2) { top: 22px; right: 18px; }
.menu-toggle span:nth-child(3) { top: 28px; }
.menu-toggle:hover span:nth-child(2) { right: 13px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mnav { position: fixed; inset: 0; z-index: 200; visibility: hidden; pointer-events: none; transition: visibility 0s .4s; }
.mnav.open { visibility: visible; pointer-events: auto; transition: none; }
.mnav .scrim { position: absolute; inset: 0; background: rgba(6, 7, 14, .6); backdrop-filter: blur(6px); opacity: 0; transition: opacity .35s; }
.mnav.open .scrim { opacity: 1; }
.mnav .panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%); display: flex; flex-direction: column; overflow-y: auto;
    padding: 14px 20px calc(22px + env(safe-area-inset-bottom)); background: #0d0f1c; color: #c3c5d4;
    box-shadow: -30px 0 80px rgba(0, 0, 0, .45); transform: translateX(104%); transition: transform .4s var(--ease); overscroll-behavior: contain; }
.mnav .panel::before { content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(420px 300px at 100% 0%, rgba(255, 89, 38, .22), transparent 65%), radial-gradient(360px 300px at 0% 100%, rgba(47, 116, 208, .14), transparent 60%); }
.mnav.open .panel { transform: none; }
.mnav .panel > * { position: relative; }
.mnav .top { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.mnav .top img { height: 36px; width: auto; }
.mnav .close { width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .04);
    color: #fff; display: grid; place-items: center; cursor: pointer; transition: border-color .2s, transform .3s var(--ease); }
.mnav .close:hover { border-color: var(--orange); transform: rotate(90deg); }
.mnav .close svg { width: 20px; height: 20px; }
.mnav .k { font: 700 11.5px var(--title); letter-spacing: .14em; text-transform: uppercase; color: #6f7290; margin: 22px 6px 8px; }
.mnav .links { display: grid; gap: 4px; }
.mnav .links a { display: flex; align-items: center; gap: 14px; padding: 11px 12px; border-radius: 12px; font: 700 18px/1.2 var(--title); color: #fff;
    opacity: 0; transform: translateX(18px); transition: opacity .35s, transform .4s var(--ease), background .2s; transition-delay: calc(var(--i, 0) * 30ms + 90ms); }
.mnav.open .links a { opacity: 1; transform: none; }
.mnav .links a small { display: block; font: 500 12.5px var(--body); color: #8d90a6; margin-top: 2px; }
.mnav .links .ic { flex: none; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; color: var(--orange-2);
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .07); transition: background .2s, color .2s; }
.mnav .links .ic svg { width: 20px; height: 20px; }
.mnav .links .chev { margin-left: auto; width: 18px; height: 18px; color: #4e5170; transition: transform .2s, color .2s; }
.mnav .links a:hover, .mnav .links a:focus-visible { background: rgba(255, 255, 255, .05); outline: none; }
.mnav .links a:hover .chev { transform: translateX(3px); color: var(--orange); }
.mnav .links a[aria-current] { background: rgba(255, 89, 38, .12); }
.mnav .links a[aria-current] .ic { background: var(--grad-fill); color: #fff; border-color: transparent; box-shadow: 0 8px 20px -6px rgba(255, 89, 38, .7); }
.mnav .links.two { grid-template-columns: 1fr 1fr; }
.mnav .links.two a { font-size: 16px; padding: 10px; gap: 10px; }
.mnav .links.two .ic { width: 34px; height: 34px; border-radius: 9px; }
.mnav .links.two .ic svg { width: 17px; height: 17px; }
.mnav .cta { margin-top: auto; padding-top: 24px; display: grid; gap: 10px; text-align: center; font-size: 13px; color: #8d90a6; }
.mnav .cta .btn { width: 100%; }
.mnav .sec { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-top: 14px; font-size: 13.5px; }
.mnav .sec a { color: #a8abc0; }
.mnav .sec a:hover { color: var(--orange); }
body.menu-open { overflow: hidden; }
@media (max-width: 1240px) {
    .menu-toggle { display: inline-block; }
    .nav { display: none; }
}
@media (min-width: 1241px) { .mnav { display: none; } }
@media (max-width: 720px) {
    .header .container { height: 72px; gap: 14px; }
    .brand-logo { height: 38px; }
    .theme-toggle { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
    .mnav .panel, .mnav .scrim, .mnav .links a, .menu-toggle span { transition: none; }
}

/* footer: a fifth column (Developers) */
.footer .cols.five { grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .footer .cols.five { grid-template-columns: 1fr 1fr; } .footer .cols.five > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 720px) { .footer .cols.five { grid-template-columns: 1fr 1fr; gap: 32px 20px; } }

/* ------------------------------------------------------------------ API Guide (api.html, api/<endpoint>.html) */
.api-hero .hero-ep { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 4px; }
.api-hero .hero-ep code { font: 600 clamp(18px, 2.6vw, 26px) var(--mono); color: #fff; overflow-wrap: anywhere; }
.api-hero .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; font: 700 12.5px var(--title); letter-spacing: .02em;
    background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); color: #d7d9e6; }
.chip svg { width: 14px; height: 14px; }
.chip.yes { background: rgba(255, 89, 38, .14); border-color: rgba(255, 89, 38, .4); color: #ffb08f; }
.chip.no { background: rgba(48, 196, 132, .12); border-color: rgba(48, 196, 132, .35); color: #7fe0b4; }
.api-hero .btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.m { display: inline-grid; place-items: center; min-width: 46px; padding: 3px 7px; border-radius: 6px; font: 800 11px/1.3 var(--mono); letter-spacing: .04em; }
.m.get { color: #13865a; background: rgba(19, 134, 90, .12); }
.m.post { color: var(--orange-ink); background: rgba(255, 89, 38, .12); }
[data-theme="dark"] .m.get, .api-hero .m.get { color: #5fe0a8; background: rgba(48, 196, 132, .16); }
[data-theme="dark"] .m.post, .api-hero .m.post { color: #ff9a6b; background: rgba(255, 89, 38, .18); }
.api-hero .m { font-size: 14px; padding: 6px 12px; min-width: 64px; }

.toc .grp { margin-top: 22px; }
.toc a .m { min-width: 40px; font-size: 9.5px; padding: 2px 4px; align-self: center; }
.toc a code { font: 12.5px var(--mono); overflow-wrap: anywhere; }

.doc { min-width: 0; }
.doc > section { scroll-margin-top: 110px; }
.doc h2 { font-size: clamp(24px, 2.6vw, 30px); margin: 54px 0 14px; scroll-margin-top: 110px; }
.doc > section:first-child h2, .doc > details + section h2 { margin-top: 0; }
.doc h3 { font-size: 19px; margin: 30px 0 10px; scroll-margin-top: 110px; }
.doc p, .doc li { color: var(--text-2); max-width: 820px; }
.doc p { margin: 0 0 14px; }
.doc ul { padding-left: 20px; margin: 0 0 14px; }
.doc li { margin: 5px 0; }
.doc p a, .doc li a, .tbl a { color: var(--accent-text); font-weight: 700; }
.doc p a:hover, .doc li a:hover, .tbl a:hover { text-decoration: underline; }
.doc .lead { font-size: 18px; color: var(--text-2); max-width: 820px; }
.doc .gsteps { margin-top: 18px; }
.doc .gstep p, .doc .gstep li { max-width: 820px; }

.tbl { width: 100%; overflow-x: auto; margin: 6px 0 20px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); }
.tbl table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tbl th { text-align: left; font: 700 12px var(--title); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 12px 16px;
    background: var(--bg-alt); border-bottom: 1px solid var(--border); white-space: nowrap; }
.tbl td { padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: top; color: var(--text-2); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td:first-child { white-space: nowrap; }
.tbl td:first-child code { font: 700 13.5px var(--mono); color: var(--text); }
.tbl td .t { display: block; font: 12.5px var(--mono); color: var(--muted); margin-top: 3px; }
.tbl td .req { display: inline-block; margin-top: 4px; padding: 0 6px; border-radius: 4px; font: 700 10.5px var(--title); letter-spacing: .06em;
    text-transform: uppercase; color: var(--orange-ink); background: rgba(255, 89, 38, .1); }
[data-theme="dark"] .tbl td .req { color: #ff9a6b; }
.tbl td p { margin: 6px 0 0; font-size: 14px; }
.tbl code, .doc p code, .doc li code { font: .9em var(--mono); padding: 1px 5px; border-radius: 4px; background: var(--bg-alt); border: 1px solid var(--border); overflow-wrap: anywhere; }
.tbl td:first-child code { padding: 0; background: none; border: 0; }
.tbl .st { font: 800 13.5px var(--mono); color: var(--text); }

.codetabs { position: relative; margin: 8px 0 22px; max-width: 900px; border-radius: 12px; overflow: hidden; background: #0d0f1c;
    border: 1px solid rgba(255, 255, 255, .06); box-shadow: 0 24px 60px -30px rgba(13, 15, 28, .6); }
.codetabs .bar { display: flex; align-items: center; gap: 2px; padding: 6px 6px 0; background: #131628; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.codetabs .bar button { border: 0; background: none; color: #8d90a6; font: 700 13px var(--title); padding: 9px 14px 10px; border-radius: 8px 8px 0 0; cursor: pointer;
    border-bottom: 2px solid transparent; }
.codetabs .bar button:hover { color: #fff; }
.codetabs .bar button.on { color: #fff; background: #0d0f1c; border-bottom-color: var(--orange); }
.codetabs .bar .lbl { color: #8d90a6; font: 700 12px var(--title); letter-spacing: .1em; text-transform: uppercase; padding: 9px 10px 11px; }
.codetabs pre { margin: 0; padding: 16px 18px; color: #d7d9e6; font: 13px/1.65 var(--mono); overflow-x: auto; tab-size: 4; }
.codetabs pre[hidden] { display: none; }
.codetabs .copy { position: absolute; top: 6px; right: 8px; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .05); color: #c3c5d4; font: 700 12px var(--title); cursor: pointer; }
.codetabs .copy:hover { border-color: var(--orange); color: #fff; }
.codetabs .copy svg { width: 14px; height: 14px; }
.codetabs .copy.done { border-color: #30c484; color: #7fe0b4; }
.codetabs .s { color: #a5e3a1; } .codetabs .c { color: #6f7393; font-style: italic; } .codetabs .k { color: #8ab4ff; }
.codetabs .n { color: #fdba74; } .codetabs .b { color: #c4a5ff; } .codetabs .p { color: #ff9a6b; }

.ep-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; margin: 10px 0 24px; }
.ep-card { display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 16px; border-radius: 12px; background: var(--card); border: 1px solid var(--border);
    box-shadow: var(--shadow); transition: transform .2s var(--ease), border-color .2s, box-shadow .2s; }
.ep-card:hover { transform: translateY(-3px); border-color: var(--orange); box-shadow: 0 20px 50px -24px rgba(255, 89, 38, .45); }
.ep-card .p { display: flex; align-items: center; gap: 10px; }
.ep-card code { font: 700 13.5px var(--mono); color: var(--text); overflow-wrap: anywhere; }
.ep-card b { font: 700 17px var(--title); color: var(--text); }
.ep-card span.d { font-size: 14px; color: var(--text-2); line-height: 1.5; }
.ep-card .f { margin-top: auto; padding-top: 6px; font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.ep-card .f i { width: 7px; height: 7px; border-radius: 50%; background: #30c484; }
.ep-card .f i.y { background: var(--orange); }

.doc-m { display: none; margin: 0 0 24px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); }
.doc-m summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; cursor: pointer; list-style: none;
    font: 700 15px var(--title); color: var(--text); }
.doc-m summary::-webkit-details-marker { display: none; }
.doc-m summary svg { width: 18px; height: 18px; transition: transform .25s var(--ease); color: var(--accent-text); }
.doc-m[open] summary svg { transform: rotate(180deg); }
.doc-m .toc { position: static; max-height: none; display: block; padding: 0 8px 12px; }
@media (max-width: 980px) { .doc-m { display: block; } }
.toc { scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
@media (max-width: 640px) {   /* tables: one stacked card per row */
    .tbl { overflow: visible; }
    .tbl table, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
    .tbl thead { display: none; }
    .tbl tr { padding: 12px 14px; border-bottom: 1px solid var(--border); }
    .tbl tr:last-child { border-bottom: 0; }
    .tbl td { padding: 0; border: 0; white-space: normal; }
    .tbl td + td { margin-top: 6px; }
    .tbl td:first-child { white-space: normal; }
    .tbl.labels td + td::before { content: attr(data-label); display: block; font: 700 11px var(--title); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 1px; }
}
@media (max-width: 600px) {
    .codetabs pre { font-size: 12.5px; padding: 14px; }
    .codetabs .bar button { padding: 9px 10px 10px; }
    .ep-grid { grid-template-columns: 1fr; }
}

/* lossless section (homepage) */
.lossless-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.lcard { padding: 28px 26px; border-radius: 8px; background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow); }
.lcard .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: var(--grad-fill);
    box-shadow: 0 10px 24px -8px rgba(255, 89, 38, .6); margin-bottom: 18px; }
.lcard .ic svg { width: 22px; height: 22px; }
.lcard h3 { font-size: 20px; }
.lcard p { margin: 8px 0 0; font-size: 15px; }
.lossless-table { max-width: 940px; margin: 40px auto 0; }
.lossless-table td b { color: var(--text); }
.lossless-table .ok { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 8px; border-radius: 50%;
    background: var(--grad-fill); color: #fff; font-size: 12px; font-weight: 800; vertical-align: -3px; }
@media (max-width: 1100px) { .lossless-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
    .lossless-grid { grid-template-columns: minmax(0, 1fr); }
    .lossless-table table { table-layout: fixed; }
    .lossless-table th:first-child, .lossless-table td:first-child { width: 34%; }
    .lossless-table td, .lossless-table th { white-space: normal; overflow-wrap: anywhere; }
    .lossless-table .ok { width: 16px; height: 16px; margin-right: 4px; font-size: 10px; }
}

/* benchmarks page */
.bench-hero { padding-bottom: 56px; }
.bench-hero .hero-stats { max-width: 860px; margin-top: 36px; }
.bench-jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.bench-jump a { padding: 8px 16px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .04);
    font: 600 14px var(--title); color: #fff; transition: border-color .2s, background .2s; }
.bench-jump a:hover { border-color: var(--orange); background: rgba(255, 89, 38, .1); }
.bench .section-head { margin-bottom: 44px; }
.bench-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
.bench-wide { max-width: 900px; margin: 0 auto; }
.bench .legend { flex-wrap: wrap; margin-bottom: 14px; }
.bench .note { font-size: 14px; margin: 18px 0 0; }
.bench .note b { color: var(--text); }
.hbars { display: grid; gap: 18px; }
.hb-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.hb-head b { font: 700 16px var(--title); color: var(--text); }
.hb-head .x { font: 800 17px var(--title); color: var(--accent-text); }
.hb-row { display: grid; grid-template-columns: 74px minmax(0, 1fr) 96px; gap: 12px; align-items: center; font-size: 13px; margin-top: 4px; }
.hb-row .who { color: var(--muted); }
.hb-row .lane { height: 14px; border-radius: 4px; background: var(--bg-alt); overflow: hidden; }
.hb-row .lane i { display: block; height: 100%; width: 0; border-radius: 4px; transition: width 1.2s var(--ease); }
.hb-row .lane i.l { background: var(--blue); }
.hb-row .lane i.e { background: var(--grad); }
.hb-row .v { text-align: right; font-variant-numeric: tabular-nums; color: var(--text-2); font-weight: 600; white-space: nowrap; }
.hb-row .v.e { color: var(--text); font-weight: 800; }
.hbars.time .hb-group + .hb-group { padding-top: 18px; border-top: 1px solid var(--border); }
.bench-table td small { display: block; font-size: 13px; color: var(--muted); font-weight: 400; white-space: normal; }
.bench-table td b { color: var(--text); }
.bench-table thead tr + tr th { padding-top: 0; font-size: 13px; color: #c3c5d4; }
.bench-table th[colspan] { text-align: left; border-left: 1px solid rgba(255, 255, 255, .1); }
.bench-table tr.total td { border-top: 2px solid var(--border); background: var(--card); }
.bench-table.specs td:first-child { color: var(--text); font-weight: 700; width: 30%; }
.table-wrap.flat { margin-top: 0; box-shadow: none; }
.bench-sub { font-size: 22px; margin: 44px 0 16px; }
.bench-sub:first-of-type { margin-top: 0; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 70px minmax(0, 1fr); column-gap: 18px; padding: 14px 0 14px; border-top: 1px solid var(--border); }
.timeline li:first-child { border-top: 0; padding-top: 0; }
.timeline .t { grid-row: span 2; font: 800 18px var(--title); color: var(--accent-text); white-space: nowrap; }
.timeline b { font: 700 16px var(--title); color: var(--text); }
.timeline small { font-size: 14px; }
.bench-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 44px; }
@media (max-width: 980px) { .bench-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) {
    .bench .panel { padding: 22px 16px; }
    .hb-row { grid-template-columns: 62px minmax(0, 1fr) 84px; gap: 8px; }
    .bench-table td small { white-space: normal; min-width: 140px; }
    .bench-table.specs td { white-space: normal; }
    .timeline li { grid-template-columns: 56px minmax(0, 1fr); column-gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { .hb-row .lane i { transition: none; } }

/* home: parallel API section */
.parallel .par-stats { margin: 0 auto 56px; max-width: 980px; }
.par-grid { align-items: start; }
.par-k { font: 700 13px var(--title); letter-spacing: .08em; text-transform: uppercase; color: var(--orange) !important; margin: 0; }
.par-uses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 30px; }
.par-uses .req { padding: 20px 22px; }
.par-uses .req .k { color: var(--text); }
.par-cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 46px; }
.parallel .value-note { margin-left: auto; margin-right: auto; text-align: center; }
@media (max-width: 760px) { .parallel .par-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .par-uses { grid-template-columns: 1fr; } }
