/* Testomatica — landing page styles. No inline styles anywhere (strict CSP). */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --night: #0b1724;
  --night-2: #102a43;
  --night-3: #17375e;
  --ink: #0f1f30;
  --text: #2b3d50;
  --muted: #5f7488;
  --line: #e1e8ef;
  --soft: #f4f7fa;
  --blue: #2f6fd6;
  --blue-2: #1f55b0;
  --green: #3ebd61;
  --green-2: #2fa451;
  --amber: #f0b429;
  --red: #e5484d;
  --radius: 14px;
  --max: 1200px;
  --shadow: 0 18px 50px rgba(11, 23, 36, .12);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; color: var(--text); background: #fff;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--ink); letter-spacing: -0.012em; line-height: 1.14; margin: 0; word-spacing: 0.04em; }
h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 780; }
h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid #7fb2ff; outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 650; font-size: 16px;
  padding: 12px 20px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; line-height: 1;
  transition: transform .12s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease; font-family: inherit; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-sm { padding: 9px 15px; font-size: 15px; }
.btn-lg { padding: 15px 24px; font-size: 17px; }
.btn-primary { background: var(--green); color: #052b14; box-shadow: 0 8px 24px rgba(62, 189, 97, .28); }
.btn-primary:hover { background: #4fd273; }
.btn-glass { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.22); backdrop-filter: blur(6px); }
.btn-glass:hover { background: rgba(255,255,255,.16); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: #b7c6d4; }

/* ---------- Announcement ---------- */
.announce { background: var(--night); color: #c9d6e3; font-size: 14px; border-bottom: 1px solid rgba(255,255,255,.07); }
.announce-inner { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 9px 24px; flex-wrap: wrap; text-align: center; }
.announce a { color: #8fd3a3; font-weight: 600; }
.pill-new { background: rgba(62,189,97,.16); color: #8fd3a3; font-weight: 700; font-size: 12px; padding: 2px 9px; border-radius: 999px; letter-spacing: .04em; text-transform: uppercase; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(11, 23, 36, .82); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.06); transition: background .2s ease, box-shadow .2s ease; }
.nav.is-scrolled { background: rgba(11, 23, 36, .95); box-shadow: 0 8px 30px rgba(0,0,0,.25); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.logo:hover { text-decoration: none; }
.logo-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(62,189,97,.22); }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: #c9d6e3; font-size: 15px; font-weight: 550; }
.nav-links a:hover { color: #fff; text-decoration: none; }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; width: 42px; height: 40px; border-radius: 8px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); cursor: pointer; padding: 0; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav-toggle .bar { width: 18px; height: 2px; background: #fff; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #dbe6f0; padding: 84px 0 40px; overflow: hidden; background-color: var(--night);
  background-image: linear-gradient(100deg, rgba(11,23,36,.97) 0%, rgba(11,23,36,.9) 45%, rgba(11,23,36,.72) 100%), url("/assets/img/hero-code.jpg");
  background-size: cover; background-position: center; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 140px; background: linear-gradient(180deg, rgba(11,23,36,0), var(--night)); pointer-events: none; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.kicker { display: inline-block; color: #8fd3a3; font-weight: 650; font-size: 14px; letter-spacing: .02em; padding: 6px 12px; border-radius: 999px;
  border: 1px solid rgba(143,211,163,.3); background: rgba(62,189,97,.08); margin-bottom: 22px; }
.hero h1 { color: #fff; font-size: clamp(38px, 5vw, 60px); font-weight: 800; letter-spacing: -0.022em; line-height: 1.06; margin-bottom: 22px; }
.grad { background: linear-gradient(90deg, #6ee7a0, #7fb2ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: clamp(17px, 1.6vw, 20px); color: #b5c5d4; max-width: 560px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: #9fb3c6; }
.hero-points li { position: relative; padding-left: 16px; }
.hero-points li::before { content: ""; position: absolute; left: 0; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

/* Live console */
.console { position: relative; background: rgba(13, 27, 42, .88); border: 1px solid rgba(255,255,255,.1); border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0,0,0,.45); overflow: hidden; backdrop-filter: blur(8px); font-size: 14px; }
.console-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.03); }
.win-dots { display: inline-flex; gap: 6px; }
.win-dots i { width: 10px; height: 10px; border-radius: 50%; background: #3a4b5d; }
.console-title { color: #9fb3c6; font-size: 13px; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.console-title b { color: #e6eef6; font-weight: 650; }
.live { display: inline-flex; align-items: center; gap: 6px; color: #ff8a8f; font-weight: 750; font-size: 12px; letter-spacing: .08em; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff5a60; animation: pulse 1.4s ease-in-out infinite; display: inline-block; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(255,90,96,.6); } 50% { box-shadow: 0 0 0 6px rgba(255,90,96,0); } }
.console-progress { height: 3px; background: rgba(255,255,255,.06); }
.console-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--green), #7fb2ff); transition: width .6s ease; }
.stages { list-style: none; margin: 0; padding: 10px 8px; }
.stages li { display: grid; grid-template-columns: 14px 1fr auto 56px; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 8px; color: #8aa0b5; transition: background .3s ease, color .3s ease; }
.st-dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid #3a4b5d; }
.st-name { font-weight: 600; }
.st-meta { font-size: 12.5px; color: #6f869c; font-variant-numeric: tabular-nums; }
.st-state { font-size: 11px; font-weight: 750; letter-spacing: .08em; text-align: right; color: #5c7288; }
.stages li.is-run { background: rgba(127,178,255,.08); color: #e6eef6; }
.stages li.is-run .st-dot { border-color: #7fb2ff; border-top-color: transparent; animation: spin .8s linear infinite; }
.stages li.is-run .st-state { color: #7fb2ff; }
.stages li.is-done { color: #cfdbe6; }
.stages li.is-done .st-dot { background: var(--green); border-color: var(--green); }
.stages li.is-done .st-state { color: #6ee7a0; }
.stages li.is-flag .st-state { color: var(--amber); }
.stages li.is-flag .st-dot { background: var(--amber); border-color: var(--amber); }
@keyframes spin { to { transform: rotate(360deg); } }
.log { height: 128px; overflow: hidden; padding: 10px 18px; border-top: 1px solid rgba(255,255,255,.06); font: 12.5px/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #8aa0b5; display: flex; flex-direction: column; justify-content: flex-end; }
.log div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: logIn .35s ease; }
.log .lg-t { color: #5c7288; margin-right: 8px; }
.log .lg-ok { color: #6ee7a0; } .log .lg-warn { color: #f7c75e; } .log .lg-info { color: #9cc3ff; }
@keyframes logIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.verdict { display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: rgba(62,189,97,.12); border-top: 1px solid rgba(62,189,97,.3); animation: logIn .4s ease; }
.verdict-badge { background: var(--green); color: #052b14; font-weight: 850; padding: 6px 12px; border-radius: 8px; letter-spacing: .06em; }
.verdict-text { color: #cfe9d8; font-size: 13.5px; }
.verdict-text b { color: #fff; }

.stack { position: relative; z-index: 1; margin-top: 64px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.stack-label { color: #7f95aa; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; font-weight: 650; }
.stack-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 30px; }
.stack-list li { color: #c9d6e3; font-weight: 700; font-size: 17px; letter-spacing: -0.01em; opacity: .75; }

/* ---------- Numbers ---------- */
.numbers { background: var(--night); padding: 8px 0 72px; }
.numbers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.08); border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255,255,255,.08); }
.num { background: #0e1d2d; padding: 28px 26px; }
.num b { display: block; color: #fff; font-size: clamp(30px, 3.4vw, 42px); font-weight: 850; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.num span { display: block; color: #8aa0b5; font-size: 14.5px; margin-top: 6px; }

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section-soft { background: var(--soft); }
.section-dark { background: var(--night); color: #b5c5d4; }
.section-dark h2, .section-dark h3 { color: #fff; }
.head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.head-row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; text-align: left; }
.eyebrow { color: var(--blue); font-weight: 750; font-size: 13.5px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.eyebrow-light { color: #8fd3a3; }
.lead { font-size: 19px; color: var(--muted); margin-top: 18px; }
.lead-light { color: #a9bbcc; }

/* Split layouts */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-rev .split-copy { order: 0; }
.photo { position: relative; margin: 0; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.photo-tall img { aspect-ratio: 4 / 4.4; }
.photo-chip { position: absolute; left: 18px; bottom: 18px; display: inline-flex; align-items: center; gap: 8px; background: rgba(11,23,36,.86); color: #e6eef6;
  padding: 10px 14px; border-radius: 10px; font-size: 14px; font-weight: 600; backdrop-filter: blur(6px); }
.photo-chip .live-dot { background: var(--green); animation-name: pulseG; }
@keyframes pulseG { 0%,100% { box-shadow: 0 0 0 0 rgba(62,189,97,.6); } 50% { box-shadow: 0 0 0 6px rgba(62,189,97,0); } }

.pain { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.pain li { padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--amber); border-radius: 10px; color: var(--muted); font-size: 16px; }
.pain b { color: var(--ink); }

/* ---------- Demo ---------- */
.demo { background: #0e1d2d; border: 1px solid rgba(255,255,255,.08); border-radius: 18px; overflow: hidden; box-shadow: 0 40px 90px rgba(0,0,0,.35); }
.demo-tabs { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid rgba(255,255,255,.08); }
.demo-tab { position: relative; text-align: left; background: transparent; border: 0; color: #8aa0b5; padding: 20px 22px; cursor: pointer; font-family: inherit;
  display: grid; grid-template-columns: auto 1fr; column-gap: 12px; border-right: 1px solid rgba(255,255,255,.06); transition: background .2s ease, color .2s ease; }
.demo-tab:last-child { border-right: 0; }
.demo-tab:hover { background: rgba(255,255,255,.03); color: #cfdbe6; }
.tab-no { grid-row: span 2; font-weight: 800; font-size: 14px; color: #5c7288; padding-top: 2px; }
.tab-name { font-weight: 750; font-size: 17px; color: inherit; }
.tab-sub { font-size: 13px; color: #6f869c; }
.tab-timer { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--green); }
.demo-tab.is-active { background: rgba(255,255,255,.04); color: #fff; }
.demo-tab.is-active .tab-no { color: var(--green); }
.demo-panel { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; padding: 40px; align-items: center; min-height: 400px; animation: logIn .45s ease; }
.panel-copy h3 { font-size: 26px; margin-bottom: 14px; }
.panel-copy p { color: #a9bbcc; font-size: 16.5px; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; font-size: 15px; color: #8aa0b5; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 8px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
#easier .ticks li, .section:not(.section-dark) .ticks li { color: var(--muted); }
.ticks-light li { color: #a9bbcc; }

.term { background: #08121d; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; overflow: hidden; }
.term-bar { padding: 10px 14px; font: 12px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #6f869c; border-bottom: 1px solid rgba(255,255,255,.06); background: rgba(255,255,255,.02); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.term-body { margin: 0; padding: 18px; font: 13.5px/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #cfdbe6; white-space: pre; overflow-x: auto; min-height: 260px; }
.term-code .term-body { min-height: 320px; }
.t-dim { color: #5c7288; } .t-warn { color: #f7c75e; } .t-note { color: #9cc3ff; } .t-key { color: #6ee7a0; } .t-prompt { color: #f7c75e; font-weight: 700; }
.tk-k { color: #c792ea; } .tk-s { color: #c3e88d; } .tk-f { color: #82aaff; } .tk-c { color: #5c7288; } .tk-n { color: #f78c6c; }
.caret { display: inline-block; width: 8px; height: 17px; background: var(--green); vertical-align: -3px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.replays { display: grid; gap: 12px; }
.replay { display: grid; grid-template-columns: 90px 1fr 100px 50px; align-items: center; gap: 14px; background: #08121d; border: 1px solid rgba(255,255,255,.08); padding: 14px 16px; border-radius: 10px; font-size: 14px; }
.rp-n { color: #cfdbe6; font-weight: 600; }
.rp-bar { height: 6px; background: rgba(255,255,255,.07); border-radius: 6px; overflow: hidden; }
.rp-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #7fb2ff, var(--amber)); transition: width 1s ease; }
.rp-res { font-weight: 700; font-size: 13px; color: var(--amber); opacity: 0; transition: opacity .3s ease; }
.rp-res.is-on { opacity: 1; }
.rp-t { color: #6f869c; font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; }
.ticket { margin-top: 6px; background: #fff; border-radius: 12px; padding: 18px; color: var(--text); opacity: 0; transform: translateY(8px); transition: opacity .4s ease, transform .4s ease; }
.ticket.is-on { opacity: 1; transform: none; }
.ticket-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.ticket-key { font-weight: 800; color: var(--blue); font-size: 14px; }
.ticket-tag { font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: #fff3c4; color: #8d6200; }
.ticket-auto { background: #e3f9e5; color: #1f7a2e; }
.ticket-title { font-weight: 700; color: var(--ink); font-size: 16px; }
.ticket-meta { color: var(--muted); font-size: 13.5px; margin-top: 4px; }

/* ---------- Compare ---------- */
.compare { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 10px 40px rgba(11,23,36,.05); }
.cmp-row { display: grid; grid-template-columns: 1fr 1.25fr 1.35fr; border-top: 1px solid var(--line); }
.cmp-row:first-child { border-top: 0; }
.cmp-row > span { padding: 18px 22px; font-size: 15.5px; }
.cmp-head > span { background: var(--soft); font-weight: 750; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.cmp-head > span:last-child { background: #e9f8ee; color: #1f7a2e; }
.cmp-job { font-weight: 700; color: var(--ink); }
.cmp-old { color: #8a6d6d; position: relative; padding-left: 44px !important; }
.cmp-old::before, .cmp-old::after { content: ""; position: absolute; left: 22px; top: 30px; width: 12px; height: 2px; background: #d9787c; }
.cmp-old::before { transform: rotate(45deg); } .cmp-old::after { transform: rotate(-45deg); }
.cmp-new { background: #f6fcf8; color: #1d4f2f; font-weight: 600; position: relative; padding-left: 46px !important; }
.cmp-new::before { content: ""; position: absolute; left: 22px; top: 25px; width: 12px; height: 6px; border-left: 2px solid var(--green-2); border-bottom: 2px solid var(--green-2); transform: rotate(-45deg); }

/* ---------- Timeline ---------- */
.timeline { list-style: none; padding: 0; margin: 30px 0 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 58px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { display: grid; grid-template-columns: 50px 1fr; gap: 28px; padding: 10px 0; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 53px; top: 18px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid #9fb3c6; }
.timeline li.tl-done::before { background: var(--green); border-color: var(--green); box-shadow: 0 0 0 5px rgba(62,189,97,.18); }
.tl-time { font-weight: 750; color: var(--blue); font-size: 14px; font-variant-numeric: tabular-nums; padding-top: 2px; }
.timeline b { color: var(--ink); font-size: 16.5px; }
.timeline p { color: var(--muted); font-size: 15px; }

/* ---------- Calculator ---------- */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.calc-inputs { padding: 40px; display: grid; gap: 28px; background: #fff; }
.field label { display: flex; justify-content: space-between; align-items: baseline; font-weight: 650; color: var(--ink); font-size: 15.5px; margin-bottom: 12px; gap: 12px; }
.field output { font-weight: 800; color: var(--blue); font-size: 18px; font-variant-numeric: tabular-nums; min-width: 44px; text-align: right; }
input[type=range] { width: 100%; appearance: none; -webkit-appearance: none; height: 6px; border-radius: 6px; background: #e1e8ef; outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--blue); cursor: pointer; box-shadow: 0 2px 8px rgba(11,23,36,.2); }
input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--blue); cursor: pointer; }
.calc-out { background: var(--night); color: #b5c5d4; padding: 40px; display: flex; flex-direction: column; gap: 24px; }
.out-label { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: #7f95aa; font-weight: 650; }
.out-main b { display: block; font-size: clamp(56px, 7vw, 84px); font-weight: 850; color: #fff; letter-spacing: -0.04em; line-height: 1; margin-top: 8px; font-variant-numeric: tabular-nums; }
.out-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); }
.out-row b { display: block; color: #6ee7a0; font-size: 26px; font-weight: 800; margin-top: 6px; font-variant-numeric: tabular-nums; }
.calc-note { font-size: 13px; color: #7f95aa; }
.calc-out .btn { align-self: flex-start; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cfdbe6; }
.card-no { display: inline-block; font-weight: 800; color: var(--green-2); font-size: 14px; margin-bottom: 18px; letter-spacing: .04em; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15.5px; }

.term-wide .term-body { min-height: 0; font-size: 13.5px; }

/* ---------- Heatmap ---------- */
.heat-wrap { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 30px; box-shadow: 0 10px 40px rgba(11,23,36,.05); overflow-x: auto; }
.heat { display: grid; grid-template-columns: 150px repeat(9, minmax(64px, 1fr)); gap: 6px; min-width: 820px; }
.heat .hh { font-size: 12px; font-weight: 700; color: var(--muted); text-align: center; text-transform: uppercase; letter-spacing: .04em; padding-bottom: 6px; align-self: end; }
.heat .hr { font-size: 14px; font-weight: 650; color: var(--ink); display: flex; align-items: center; }
.heat .hc { height: 38px; border-radius: 6px; background: #eef2f6; transition: background .5s ease, transform .2s ease; position: relative; }
.heat .hc:hover { transform: scale(1.08); }
.heat .hc.lv0, .heat-legend .lv0 { background: #eef2f6; }
.heat .hc.lv1, .heat-legend .lv1 { background: #d6e6fb; }
.heat .hc.lv2, .heat-legend .lv2 { background: #9cc3ff; }
.heat .hc.lv3, .heat-legend .lv3 { background: #6ccf8c; }
.heat .hc.lv4, .heat-legend .lv4 { background: #2fa451; }
.heat-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; font-size: 13.5px; color: var(--muted); }
.heat-legend span { display: inline-flex; align-items: center; gap: 8px; }
.heat-legend i { width: 16px; height: 16px; border-radius: 4px; display: inline-block; }

/* ---------- Findings ---------- */
.findings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.finding { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.finding p { color: var(--muted); font-size: 15px; flex: 1; }
.sev { align-self: flex-start; font-size: 12px; font-weight: 750; padding: 3px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; }
.sev-major { background: #fff3c4; color: #8d6200; }
.sev-minor { background: #e0ecff; color: #1d4ed8; }
.f-foot { font-size: 13px; font-weight: 650; color: var(--green-2); border-top: 1px solid var(--line); padding-top: 12px; }
.pilot-stats { margin-top: 28px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pilot-stats div { background: var(--night); border-radius: var(--radius); padding: 24px; }
.pilot-stats b { display: block; color: #fff; font-size: 30px; font-weight: 850; letter-spacing: -0.03em; }
.pilot-stats span { display: block; color: #8aa0b5; font-size: 14px; margin-top: 6px; }

/* ---------- Who ---------- */
.who { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 30px; }
.who h3 { font-size: 17px; margin-bottom: 6px; padding-top: 14px; border-top: 2px solid var(--green); }
.who p { color: var(--muted); font-size: 15px; }

/* ---------- Safety ---------- */
.safety { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.safety div { background: #fff; padding: 30px; }
.safety h3 { font-size: 17px; margin-bottom: 8px; }
.safety p { color: var(--muted); font-size: 15px; }

/* ---------- Posts ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; color: var(--text); transition: transform .2s ease, box-shadow .2s ease; }
.post:hover { text-decoration: none; transform: translateY(-4px); box-shadow: var(--shadow); }
.post img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.post-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-tag { align-self: flex-start; font-size: 12px; font-weight: 750; color: var(--blue); background: #e7f0ff; padding: 3px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; }
.post h3 { font-size: 19px; line-height: 1.3; }
.post p { color: var(--muted); font-size: 15px; flex: 1; }
.post-meta { font-size: 13px; color: #8aa0b5; font-weight: 650; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; transition: border-color .2s ease; }
.faq details[open] { border-color: #b7c6d4; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; font-weight: 700; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 14px; height: 2px; background: var(--blue); transition: transform .25s ease; }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq details p { padding: 0 22px 22px; color: var(--muted); font-size: 15.5px; }

/* ---------- CTA ---------- */
.cta { position: relative; padding: 130px 0; text-align: center; color: #dbe6f0; background-color: var(--night);
  background-image: linear-gradient(180deg, rgba(11,23,36,.86), rgba(11,23,36,.94)), url("/assets/img/release-win.jpg");
  background-size: cover; background-position: center 30%; }
.cta-inner { max-width: 760px; }
.cta h2 { color: #fff; font-size: clamp(38px, 5vw, 60px); font-weight: 800; letter-spacing: -0.022em; }
.cta-form { display: flex; gap: 12px; max-width: 540px; margin: 34px auto 0; flex-wrap: wrap; }
.cta-form input { flex: 1 1 260px; padding: 15px 18px; font: inherit; font-size: 16px; border-radius: 10px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.96); color: var(--ink); }
.form-msg { min-height: 24px; margin-top: 14px; font-weight: 600; color: #8fd3a3; }
.form-msg.is-error { color: #ffb3b6; }
.cta-points { list-style: none; padding: 0; margin: 8px 0 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 26px; color: #a9bbcc; font-size: 14.5px; }
.cta-points li { position: relative; padding-left: 16px; }
.cta-points li::before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

/* ---------- Footer ---------- */
.footer { background: #07111b; color: #8aa0b5; padding: 70px 0 30px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.07); }
.footer h4 { color: #fff; font-size: 14px; margin: 0 0 14px; letter-spacing: .02em; }
.footer-grid a:not(.logo) { display: block; color: #8aa0b5; margin-bottom: 10px; }
.footer-grid a:not(.logo):hover { color: #fff; text-decoration: none; }
.footer-tag { margin-top: 14px; max-width: 280px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 24px; font-size: 13.5px; color: #5f7488; }
.footer-bottom a { color: #8aa0b5; }

/* ---------- Reveal on scroll ---------- */
.reveal { transition: opacity .7s ease, transform .7s ease; }
.js .reveal:not(.is-in) { opacity: 0; transform: translateY(24px); }

/* ============ Blog ============ */
.blog-hero { background: var(--night); color: #b5c5d4; padding: 90px 0 70px; }
.blog-hero h1 { color: #fff; font-size: clamp(36px, 5vw, 56px); font-weight: 850; letter-spacing: -0.03em; margin-bottom: 14px; }
.blog-hero p { font-size: 19px; max-width: 640px; }
.blog-list { padding: 80px 0 110px; }
.article-hero { position: relative; height: 380px; background: var(--night); overflow: hidden; }
.article-hero img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.article { padding: 0 0 100px; }
.article-wrap { max-width: 760px; margin: -140px auto 0; position: relative; background: #fff; border-radius: 18px; padding: 48px 52px; box-shadow: var(--shadow); }
.article .back { display: inline-block; color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.article h1 { font-size: clamp(30px, 4.4vw, 44px); font-weight: 850; letter-spacing: -0.03em; margin: 14px 0 12px; }
.byline { color: var(--muted); font-size: 14px; padding-bottom: 22px; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
.article h2 { font-size: 26px; margin: 38px 0 14px; }
.article p, .article li { font-size: 18px; color: var(--text); }
.article p { margin-bottom: 18px; }
.article ul, .article ol { padding-left: 24px; margin: 0 0 18px; }
.article li { margin-bottom: 8px; }
.article blockquote { margin: 28px 0; padding: 18px 22px; border-left: 4px solid var(--green); background: var(--soft); border-radius: 0 10px 10px 0; }
.article blockquote p { margin: 0; font-weight: 600; color: var(--ink); }
.article code { background: #eef2f6; padding: 2px 6px; border-radius: 5px; font-size: 15px; }
.article-cta { margin-top: 44px; padding: 32px; border-radius: 14px; background: var(--night); text-align: center; }
.article-cta h3 { color: #fff; font-size: 22px; margin-bottom: 8px; }
.article-cta p { color: #a9bbcc !important; font-size: 16px !important; margin-bottom: 18px !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-links { gap: 20px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .demo-panel { grid-template-columns: 1fr; padding: 30px; }
  .cards, .findings, .posts { grid-template-columns: repeat(2, 1fr); }
  .pilot-stats, .numbers-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav-links { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--night); border-bottom: 1px solid rgba(255,255,255,.08); padding: 8px 24px 18px; display: none; }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
  .nav-toggle { display: inline-flex; }
  .split, .faq-grid, .calc { grid-template-columns: 1fr; gap: 40px; }
  .calc { gap: 0; }
  .split-rev .photo { order: -1; }
  .demo-tabs { grid-template-columns: repeat(2, 1fr); }
  .demo-tab:nth-child(2) { border-right: 0; }
  .cmp-row { grid-template-columns: 1fr; }
  .cmp-head { display: none; }
  .cmp-job { background: var(--soft); }
  .safety { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .head-row { flex-direction: column; align-items: flex-start; }
  .article-wrap { padding: 34px 24px; margin-top: -100px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .section { padding: 76px 0; }
  .hero { padding-top: 56px; }
  .nav-cta .btn { display: none; }
  .cards, .findings, .posts, .pilot-stats, .numbers-grid, .safety, .who, .out-row { grid-template-columns: 1fr; }
  .stages li { grid-template-columns: 14px 1fr 50px; }
  .st-meta { display: none; }
  .replay { grid-template-columns: 76px 1fr 86px; }
  .rp-t { display: none; }
  .calc-inputs, .calc-out { padding: 28px; }
  .footer-grid { grid-template-columns: 1fr; }
  .announce-inner span:not(.pill-new) { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Inter switches to its tighter display cut at large sizes; open headings back up a little. */
h1, h2, .hero h1, .cta h2, .article h1, .blog-hero h1 { letter-spacing: 0; word-spacing: 0.06em; }

/* ============ Blog v2: index, cards, article extras ============ */
.post-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.post-occasion { font-size: 12px; font-weight: 700; color: #a3470a; background: #fff1e6; padding: 3px 10px; border-radius: 999px; letter-spacing: .02em; }
.post-meta time { color: inherit; }

.blog-hero-grid { display: grid; grid-template-columns: 1.4fr .9fr; gap: 48px; align-items: end; }
.blog-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 0; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; overflow: hidden; }
.blog-stats div { background: #0e1d2d; padding: 18px 20px; }
.blog-stats dt { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #7f95aa; font-weight: 650; }
.blog-stats dd { margin: 6px 0 0; color: #fff; font-size: 32px; font-weight: 800; font-variant-numeric: tabular-nums; }

.post-featured { flex-direction: row; margin-bottom: 44px; }
.post-featured img { width: 52%; height: 400px; aspect-ratio: auto; object-fit: cover; }
.post-featured .post-body { padding: 40px; justify-content: center; }
.post-featured h3 { font-size: clamp(24px, 2.6vw, 32px); }
.post-featured p { flex: 0; font-size: 17px; }

.blog-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 40px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.chip { font: inherit; font-size: 14px; font-weight: 650; color: var(--text); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; cursor: pointer; transition: background .15s ease, border-color .15s ease, color .15s ease; }
.chip span { color: var(--muted); font-weight: 600; margin-left: 4px; }
.chip:hover { border-color: #b7c6d4; }
.chip.is-on { background: var(--night); border-color: var(--night); color: #fff; }
.chip.is-on span { color: #8fd3a3; }

.month { margin-bottom: 52px; }
.month-title { font-size: 15px; font-weight: 750; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 18px; display: flex; align-items: center; gap: 14px; word-spacing: 0; }
.month-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.blog-empty { color: var(--muted); text-align: center; padding: 40px 0; }

.article .post-tags { margin: 6px 0 0; }
.byline b { color: var(--ink); font-weight: 700; }
.prose h3 { font-size: 20px; margin: 28px 0 10px; }
.prose pre { background: #0e1d2d; color: #cfdbe6; border-radius: 10px; padding: 18px; overflow-x: auto; margin: 0 0 20px; font: 14px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.prose pre code { background: none; padding: 0; font-size: inherit; color: inherit; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.signature { display: flex; align-items: center; gap: 14px; margin-top: 40px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); }
.signature .logo-dot { width: 14px; height: 14px; flex: none; }
.signature b { display: block; color: var(--ink); font-size: 17px; }
.signature span:not(.logo-dot) { display: block; color: var(--muted); font-size: 14px; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 36px; }
.post-nav a { display: block; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); transition: border-color .15s ease, transform .15s ease; }
.post-nav a:hover { text-decoration: none; border-color: #b7c6d4; transform: translateY(-2px); }
.post-nav span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin-bottom: 6px; }
.post-nav b { font-size: 15.5px; line-height: 1.35; }
.pn-next { text-align: right; }
.related { padding: 20px 24px 100px; }
.related h2 { font-size: 28px; margin-bottom: 24px; }

@media (max-width: 900px) {
  .blog-hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .post-featured { flex-direction: column; }
  .post-featured img { width: 100%; height: auto; aspect-ratio: 16 / 9; }
  .post-featured .post-body { padding: 26px; }
}
@media (max-width: 620px) {
  .post-nav { grid-template-columns: 1fr; }
  .pn-next { text-align: left; }
  .blog-stats dd { font-size: 26px; }
}

/* ============ Sign-up form: consent, honeypot, Turnstile ============ */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.consent { flex: 1 1 100%; display: flex; gap: 10px; align-items: flex-start; text-align: left; color: #a9bbcc; font-size: 14px; line-height: 1.5; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--green); }
.consent a { color: #8fd3a3; text-decoration: underline; }
.turnstile { flex: 1 1 100%; display: flex; justify-content: center; min-height: 0; }
.turnstile:not(:empty) { min-height: 66px; }

/* ============ Legal pages ============ */
.legal { padding: 70px 0 100px; }
.legal .article-wrap { margin-top: 0; }
.legal h2 { font-size: 22px; margin: 32px 0 10px; }
.legal p, .legal li { font-size: 16.5px; }

/* ============ 404 ============ */
.notfound { background: var(--night); min-height: calc(100vh - 68px); display: flex; align-items: center; padding: 80px 0; }
.notfound h1 { color: #fff; font-size: clamp(34px, 5vw, 56px); font-weight: 800; margin-bottom: 8px; }
.notfound .lead { max-width: 620px; margin-bottom: 30px; }
