/* osir.co.uk: site styles. Plain CSS, no frameworks. */

/* ---------- Tokens ---------- */
:root {
  --brand-1: #7c5cff;
  --brand-2: #1ec8ff;
  --brand-3: #ff5fa2;
  --grad: linear-gradient(120deg, var(--brand-1), var(--brand-2));

  --bg: #f6f7fb;
  --bg-2: #eef0f7;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #ffffff;
  --surface-2: #f2f4fa;
  --text: #0c1020;
  --text-2: #3b4258;
  --muted: #646d84;
  --border: rgba(16, 24, 48, 0.09);
  --border-strong: rgba(16, 24, 48, 0.16);
  --shadow: 0 1px 2px rgba(16, 24, 48, 0.05), 0 8px 24px -8px rgba(16, 24, 48, 0.12);
  --shadow-lg: 0 2px 4px rgba(16, 24, 48, 0.04), 0 24px 48px -16px rgba(40, 30, 120, 0.22);
  --blob-op: 0.45;
  --grid-line: rgba(16, 24, 48, 0.05);
  --tint-l: 55%;
  --tint-bg-l: 95%;

  --radius: 18px;
  --radius-sm: 12px;
  --wrap: 1180px;
  --header-h: 68px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

:root { color-scheme: light; }
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #07090f;
  --bg-2: #0b0e18;
  --surface: rgba(20, 24, 40, 0.62);
  --surface-solid: #11152a;
  --surface-2: #161b30;
  --text: #eef1fb;
  --text-2: #c3c9dc;
  --muted: #8d95ad;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px -8px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.3), 0 30px 60px -20px rgba(0, 0, 0, 0.7);
  --blob-op: 0.32;
  --grid-line: rgba(255, 255, 255, 0.045);
  --tint-l: 70%;
  --tint-bg-l: 18%;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
::selection { background: color-mix(in srgb, var(--brand-1) 30%, transparent); }
:focus-visible { outline: 2px solid var(--brand-1); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { flex: none; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--text); color: var(--bg); border-radius: 10px; }
.skip:focus { top: 12px; }

/* ---------- Ambient background ---------- */
.ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: var(--blob-op); will-change: transform; }
.blob-1 { width: 620px; height: 620px; left: -160px; top: -220px; background: var(--brand-1); animation: drift1 22s ease-in-out infinite alternate; }
.blob-2 { width: 520px; height: 520px; right: -140px; top: -120px; background: var(--brand-2); animation: drift2 26s ease-in-out infinite alternate; }
.blob-3 { width: 420px; height: 420px; left: 40%; top: 340px; background: var(--brand-3); opacity: calc(var(--blob-op) * 0.55); animation: drift3 30s ease-in-out infinite alternate; }
.grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}
@keyframes drift1 { to { transform: translate(120px, 80px) scale(1.1); } }
@keyframes drift2 { to { transform: translate(-100px, 140px) scale(0.92); } }
@keyframes drift3 { to { transform: translate(-160px, -60px) scale(1.15); } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 20px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
}
.btn-sm { height: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn-primary { color: #fff; background: var(--grad); box-shadow: 0 6px 20px -6px color-mix(in srgb, var(--brand-1) 70%, transparent); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 28px -8px color-mix(in srgb, var(--brand-1) 80%, transparent); }
.btn-ghost { background: var(--surface); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--brand-1); }
.icon-btn {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  background: transparent; border: 1px solid var(--border); cursor: pointer; color: var(--text-2);
  transition: background .2s, color .2s, border-color .2s;
}
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); background: var(--surface); }

/* Theme toggle icons */
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
          backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--border); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 100%; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 21px; letter-spacing: -0.03em; }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--brand-1) 70%, transparent); }
.logo-tld { color: var(--muted); font-weight: 600; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 8px 12px; border-radius: 10px; color: var(--text-2); font-size: 15px; font-weight: 500; transition: color .2s, background .2s; }
.nav a:hover { color: var(--text); background: var(--surface); }
.header-actions { display: flex; align-items: center; gap: 10px; }

/* ---------- Hero ---------- */
.hero { padding: 88px 0 56px; text-align: center; }
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 12px;
  border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface);
  font-size: 14px; font-weight: 500; color: var(--text-2);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
.hero-title { margin-top: 24px; font-size: clamp(42px, 7.4vw, 84px); font-weight: 800; letter-spacing: -0.045em; line-height: 1.02; }
.grad-text {
  background: linear-gradient(100deg, var(--brand-1) 10%, var(--brand-2) 55%, var(--brand-3) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 8s ease-in-out infinite alternate;
}
@keyframes shimmer { to { background-position: 100% 0; } }
.hero-sub { margin-top: 22px; max-width: 640px; font-size: clamp(17px, 2vw, 20px); color: var(--muted); }

.hero-search {
  position: relative; display: flex; align-items: center; gap: 10px;
  width: 100%; max-width: 640px; margin-top: 36px; padding: 8px 8px 8px 18px;
  background: var(--surface-solid); border: 1px solid var(--border-strong); border-radius: 16px;
  box-shadow: var(--shadow-lg); transition: border-color .2s, box-shadow .2s;
}
.hero-search:focus-within { border-color: color-mix(in srgb, var(--brand-1) 60%, transparent); box-shadow: var(--shadow-lg), 0 0 0 4px color-mix(in srgb, var(--brand-1) 18%, transparent); }
.hero-search .search-icon { color: var(--muted); }
.hero-search input { flex: 1; min-width: 0; height: 46px; border: 0; background: none; outline: none; font-size: 17px; }
.hero-search input::placeholder { color: var(--muted); opacity: .8; }
input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
.kbd {
  display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px;
  font-family: var(--mono); font-size: 13px; color: var(--muted);
  border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 7px;
}

.hero-quick { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 20px; }
.hero-quick a {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px;
  font-size: 14px; color: var(--text-2); background: var(--surface); border: 1px solid var(--border);
  transition: border-color .2s, color .2s, transform .2s var(--ease);
}
.hero-quick a:hover { color: var(--text); border-color: var(--brand-1); transform: translateY(-1px); }
.hero-quick .icon { color: var(--brand-1); }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 56px 0 0;
  width: 100%; max-width: 720px; border-radius: var(--radius); overflow: hidden;
  background: var(--border); border: 1px solid var(--border);
}
.stats > div { padding: 18px 12px; background: var(--surface-solid); }
.stats dt { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.stats dd { margin: 2px 0 0; font-size: 28px; font-weight: 800; letter-spacing: -0.03em; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-head { max-width: 680px; margin-bottom: 36px; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-head h2 { margin-top: 8px; font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -0.035em; }
.section-sub { margin-top: 12px; color: var(--muted); font-size: 18px; }

/* ---------- Shared bits ---------- */
.tool-icon {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; flex: none;
  color: hsl(var(--h, 260) 80% var(--tint-l));
  background: hsl(var(--h, 260) 90% var(--tint-bg-l));
  border: 1px solid hsl(var(--h, 260) 80% var(--tint-l) / .22);
}
.badge-soon {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--muted);
  border: 1px dashed var(--border-strong); white-space: nowrap;
}
.tag { display: inline-flex; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--text-2); background: var(--surface-2); white-space: nowrap; }
.tag-local { color: #15803d; background: rgba(34, 197, 94, .12); }
:root[data-theme="dark"] .tag-local { color: #4ade80; }

/* ---------- Bento spotlight ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.spot {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  padding: 28px; border-radius: 24px; min-height: 360px;
  background: var(--surface); border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
  isolation: isolate;
}
.spot::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .9;
  background: radial-gradient(500px circle at var(--mx, 80%) var(--my, 0%), hsl(var(--h) 90% 60% / .14), transparent 45%);
}
.spot:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: hsl(var(--h) 80% 60% / .35); }
.spot-wide { grid-column: span 2; }
.spot-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.spot-title { margin-top: 18px; font-size: 24px; font-weight: 750; letter-spacing: -0.025em; }
.spot-desc { margin-top: 8px; color: var(--muted); max-width: 46ch; }
.spot-cta { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; color: hsl(var(--h) 80% var(--tint-l)); }
.spot-visual { flex: 1; display: grid; place-items: center; margin-top: 22px; min-height: 150px; }

/* Clipboard art */
.spot-clip { flex-direction: row; gap: 24px; align-items: stretch; }
.spot-clip .spot-body { flex: 0 1 42%; display: flex; flex-direction: column; }
.spot-clip .spot-visual { flex: 1; margin-top: 0; }
.clip-art { width: 100%; max-width: 440px; }
.clip-art .dev { fill: var(--surface-2); stroke: var(--border-strong); stroke-width: 1.5; }
.clip-art .dev-screen { fill: var(--surface-solid); stroke: var(--border-strong); }
.clip-art .line { fill: color-mix(in srgb, var(--brand-1) 45%, var(--border-strong)); }
.clip-art .chan { fill: none; stroke: var(--border-strong); stroke-width: 2; stroke-dasharray: 5 7; animation: dash 1.2s linear infinite; }
.clip-art .lock-halo { fill: color-mix(in srgb, var(--brand-1) 14%, transparent); animation: halo 2.4s ease-in-out infinite; transform-origin: 20px 20px; }
.clip-art .cipher { font: 600 12px var(--mono); fill: var(--muted); }
@keyframes dash { to { stroke-dashoffset: -24; } }
@keyframes halo { 50% { transform: scale(1.18); opacity: .5; } }

/* QR art */
.qr-frame {
  position: relative; width: min(190px, 100%); aspect-ratio: 1; padding: 14px; border-radius: 20px;
  background: #fff; box-shadow: 0 12px 32px -12px rgba(40, 30, 120, .35);
  transition: transform .5s var(--ease);
}
.spot-qr:hover .qr-frame { transform: rotate(-3deg) scale(1.04); }
.qr-art { width: 100%; height: 100%; }
.qr-scan {
  position: absolute; left: 8px; right: 8px; top: 10%; height: 3px; border-radius: 3px;
  background: var(--brand-2); box-shadow: 0 0 16px 3px var(--brand-2);
  animation: scan 2.8s ease-in-out infinite;
}
@keyframes scan { 0%, 100% { top: 10%; } 50% { top: 88%; } }

/* Cyber Essentials checklist */
.ce-list { display: grid; gap: 10px; width: 100%; }
.ce-list li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 500; color: var(--text-2); }
.ce-tick {
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; flex: none;
  background: var(--surface-2); border: 1px solid var(--border-strong);
  animation: tickbg 6s calc(var(--i) * .5s) infinite;
}
.ce-tick svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 20; stroke-dashoffset: 20; animation: tick 6s calc(var(--i) * .5s) infinite; }
@keyframes tickbg { 0%, 8% { background: var(--surface-2); border-color: var(--border-strong); } 14%, 85% { background: #22c55e; border-color: #22c55e; } 100% { background: var(--surface-2); border-color: var(--border-strong); } }
@keyframes tick { 0%, 8% { stroke-dashoffset: 20; } 16%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 20; } }
.ce-bar { width: 100%; height: 8px; margin-top: 18px; border-radius: 99px; background: var(--border); overflow: hidden; }
.ce-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #22c55e, #4ade80); animation: cebar 6s infinite; }
@keyframes cebar { 0% { width: 0; } 10% { width: 4%; } 40%, 85% { width: 100%; } 100% { width: 0; } }

/* Speed gauge */
.spot-speed { flex-direction: row; gap: 24px; align-items: stretch; }
.spot-speed .spot-body { flex: 0 1 42%; display: flex; flex-direction: column; }
.speed-visual { flex: 1; margin-top: 0; grid-template-columns: 1.2fr 1fr; gap: 20px; align-items: center; }
.gauge svg { width: 100%; max-width: 260px; }
.gauge-track { fill: none; stroke: var(--border-strong); stroke-width: 14; stroke-linecap: round; }
.gauge-fill { fill: none; stroke-width: 14; stroke-linecap: round; stroke-dasharray: 252; stroke-dashoffset: 252; animation: gaugefill 5s var(--ease) infinite; }
.gauge-ticks line { stroke: var(--border-strong); stroke-width: 2; stroke-linecap: round; }
.needle { transform-origin: 100px 105px; animation: needle 5s var(--ease) infinite; }
.needle line { stroke: var(--text); stroke-width: 4; stroke-linecap: round; }
.needle circle { fill: var(--text); }
@keyframes needle { 0% { transform: rotate(-90deg); } 45% { transform: rotate(62deg); } 55% { transform: rotate(54deg); } 65%, 85% { transform: rotate(60deg); } 100% { transform: rotate(-90deg); } }
@keyframes gaugefill { 0% { stroke-dashoffset: 252; } 45% { stroke-dashoffset: 40; } 55% { stroke-dashoffset: 52; } 65%, 85% { stroke-dashoffset: 44; } 100% { stroke-dashoffset: 252; } }
.speed-metrics { display: grid; gap: 12px; }
.speed-metrics li { display: grid; gap: 5px; font-size: 13px; font-weight: 600; color: var(--muted); }
.bars { display: block; height: 7px; border-radius: 99px; background: var(--border); position: relative; overflow: hidden; }
.bars::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--grad); transform-origin: left; transform: scaleX(.1); animation: bars 5s var(--d) var(--ease) infinite; }
@keyframes bars { 0% { transform: scaleX(.05); } 45%, 85% { transform: scaleX(.92); } 100% { transform: scaleX(.05); } }

/* ---------- Tools toolbar ---------- */
.toolbar {
  position: sticky; top: calc(var(--header-h) + 8px); z-index: 20;
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  padding: 12px; border-radius: 18px;
  background: color-mix(in srgb, var(--surface-solid) 82%, transparent);
  border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}
.tool-search { position: relative; display: flex; align-items: center; flex: 1 1 260px; min-width: 0; }
.tool-search .search-icon { position: absolute; left: 14px; color: var(--muted); pointer-events: none; }
.tool-search input {
  width: 100%; height: 44px; padding: 0 40px 0 42px; border-radius: 12px;
  border: 1px solid var(--border-strong); background: var(--bg); outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.tool-search input:focus { border-color: var(--brand-1); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-1) 18%, transparent); }
.clear-btn { position: absolute; right: 8px; display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 8px; background: var(--surface-2); cursor: pointer; color: var(--muted); }
.clear-btn:hover { color: var(--text); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 13px;
  border-radius: 11px; font-size: 14px; font-weight: 600; color: var(--text-2);
  border: 1px solid var(--border); background: transparent; transition: all .2s;
}
.chip:hover { border-color: var(--border-strong); color: var(--text); }
.chip.is-active { color: var(--bg); background: var(--text); border-color: var(--text); }
.chip-dot { width: 8px; height: 8px; border-radius: 50%; background: hsl(var(--h) 80% 58%); }
.chip-n { font-size: 12px; font-weight: 600; opacity: .6; }
.result-count { margin: 18px 4px 14px; font-size: 14px; color: var(--muted); }

/* ---------- Tool grid ---------- */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.tool { animation: cardin .45s var(--ease) both; }
.tool-inner {
  position: relative; display: flex; flex-direction: column; height: 100%;
  padding: 22px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
  isolation: isolate; overflow: hidden;
}
.tool-inner::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), hsl(var(--h) 90% 60% / .13), transparent 50%);
}
.tool-inner:hover { transform: translateY(-3px); border-color: hsl(var(--h) 80% 60% / .4); box-shadow: var(--shadow-lg); }
.tool-inner:hover::before { opacity: 1; }
.tool-name { margin-top: 16px; font-size: 17.5px; font-weight: 700; letter-spacing: -0.015em; }
.tool-desc { margin-top: 6px; font-size: 14.5px; color: var(--muted); line-height: 1.55; }
.tool-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: auto; padding-top: 18px; }
.tool-meta .badge-soon, .tool-go { margin-left: auto; }
.tool-go { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--surface-2); transition: transform .3s var(--ease), background .3s, color .3s; }
.is-live .tool-inner:hover .tool-go { background: var(--grad); color: #fff; transform: translateX(3px); }
@keyframes cardin { from { opacity: 0; transform: translateY(10px); } }

.empty { padding: 56px 24px; text-align: center; border: 1px dashed var(--border-strong); border-radius: var(--radius); }
.empty-icon { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 16px; background: var(--surface-2); color: var(--muted); }
.empty h3 { margin-top: 16px; font-size: 20px; }
.empty p { margin: 8px auto 20px; color: var(--muted); max-width: 420px; }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.feature-icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; color: #fff;
  background: var(--grad); box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--brand-1) 80%, transparent);
}
.feature h3 { margin-top: 18px; font-size: 18px; font-weight: 700; }
.feature p { margin-top: 6px; color: var(--muted); font-size: 15px; }

/* ---------- Partners ---------- */
.partners-panel {
  position: relative; overflow: hidden; padding: 48px; border-radius: 28px;
  background: var(--surface); border: 1px solid var(--border);
  isolation: isolate;
}
.partners-panel::before {
  content: ""; position: absolute; inset: -1px; z-index: -1;
  background:
    radial-gradient(600px circle at 0% 0%, color-mix(in srgb, var(--brand-1) 16%, transparent), transparent 60%),
    radial-gradient(600px circle at 100% 100%, color-mix(in srgb, var(--brand-2) 16%, transparent), transparent 60%);
}
.partners { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.partner {
  display: flex; align-items: center; gap: 14px; padding: 20px; border-radius: var(--radius);
  background: var(--surface-solid); border: 1px solid var(--border);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.partner:hover { transform: translateY(-3px); border-color: var(--brand-1); box-shadow: var(--shadow-lg); }
.partner-mono {
  display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; flex: none;
  font-size: 22px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, hsl(calc(250 + var(--i) * 45) 85% 62%), hsl(calc(200 + var(--i) * 45) 90% 55%));
}
.partner-text { display: grid; line-height: 1.3; min-width: 0; }
.partner-text strong { font-size: 17px; }
.partner-text span { font-size: 14px; color: var(--muted); }
.partner-arrow { margin-left: auto; color: var(--muted); transition: transform .3s var(--ease), color .3s; }
.partner:hover .partner-arrow { color: var(--brand-1); transform: translate(2px, -2px); }

/* ---------- Footer ---------- */
.site-footer { margin-top: 40px; padding: 56px 0 32px; border-top: 1px solid var(--border); background: color-mix(in srgb, var(--bg-2) 70%, transparent); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.footer-brand p { margin-top: 12px; color: var(--muted); max-width: 300px; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-cols h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.footer-cols ul { display: grid; gap: 8px; margin-top: 14px; }
.footer-cols a { color: var(--text-2); font-size: 15px; }
.footer-cols a:hover { color: var(--brand-1); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 14px; color: var(--muted); }

/* ---------- Scroll reveal (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .spot-wide { grid-column: span 2; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .header-actions { margin-left: auto; }
  .partners { grid-template-columns: 1fr; }
  .partners-panel { padding: 32px 24px; }
}
@media (max-width: 720px) {
  .wrap { padding-inline: 16px; }
  .hero { padding: 56px 0 32px; }
  .hero-search { padding-left: 14px; }
  .hero-search .kbd { display: none; }
  .hero-search .btn { padding: 0 14px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 52px 0; }
  .bento { grid-template-columns: 1fr; }
  .spot-wide { grid-column: auto; }
  .spot { padding: 22px; min-height: 0; }
  .spot-clip, .spot-speed { flex-direction: column; }
  .speed-visual { margin-top: 20px; }
  .spot-clip .spot-visual { margin-top: 12px; }
  .features { grid-template-columns: 1fr; }
  .toolbar { position: static; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -12px; padding: 0 12px; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .footer-cols { gap: 40px; }
}
@media (max-width: 420px) {
  .header-cta { display: none; }
  .hero-search .btn { display: none; }
  .speed-visual { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  /* Show each illustration in its "finished" state instead of mid-animation. */
  .needle { animation: none !important; transform: rotate(58deg); }
  .gauge-fill { animation: none !important; stroke-dashoffset: 46; }
  .ce-tick { animation: none !important; background: #22c55e; border-color: #22c55e; }
  .ce-tick svg { animation: none !important; stroke-dashoffset: 0; }
  .ce-bar span { animation: none !important; width: 100%; }
  .bars::after { animation: none !important; transform: scaleX(.82); }
  .speed-metrics li:nth-child(3) .bars::after { transform: scaleX(.18); }
  .speed-metrics li:nth-child(4) .bars::after { transform: scaleX(.08); }
  .qr-scan, .blob { animation: none !important; }
  .qr-scan { top: 46%; }
}

/* ---------- Tool pages (shared) ---------- */
.tool-main { padding-bottom: 40px; }
.tool-hero { padding-top: 40px; padding-bottom: 28px; }
.crumbs { display: flex; gap: 8px; font-size: 14px; color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.tool-hero-row { display: flex; gap: 18px; align-items: flex-start; margin-top: 14px; }
.tool-icon-lg { width: 60px; height: 60px; border-radius: 17px; }
.tool-hero h1 { font-size: clamp(28px, 4.2vw, 44px); font-weight: 800; letter-spacing: -0.035em; }
.tool-lede { margin-top: 10px; max-width: 720px; color: var(--muted); font-size: 18px; }
.tool-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tool-badges li { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--text-2); background: var(--surface); border: 1px solid var(--border); }
.tool-badges .icon { color: var(--brand-1); }
.tool-info { margin-top: 56px; }
.tool-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tool-info-grid > div { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.tool-info h2 { font-size: 20px; font-weight: 750; }
.tool-info ol, .tool-info ul { margin-top: 12px; padding-left: 20px; color: var(--text-2); display: grid; gap: 8px; }
.tool-info ul { list-style: disc; }
.tool-info code { font-family: var(--mono); font-size: .9em; padding: 1px 6px; border-radius: 6px; background: var(--surface-2); }
.prose { max-width: 760px; }
.prose h2 { margin-top: 34px; font-size: 22px; font-weight: 750; }
.prose p, .prose li { color: var(--text-2); }
.prose p { margin-top: 12px; }
.prose ul { margin-top: 12px; padding-left: 20px; list-style: disc; display: grid; gap: 6px; }
.prose a { color: var(--brand-1); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 720px) {
  .tool-hero { padding-top: 24px; }
  .tool-hero-row { gap: 14px; }
  .tool-icon-lg { width: 48px; height: 48px; }
  .tool-info-grid { grid-template-columns: 1fr; }
  .tool-info-grid > div { padding: 22px; }
}
