/* ==========================================================================
   GC Tools — GoldenComm brand: gold #F9BD15, navy #112337, blue #204CE5
   ========================================================================== */

:root {
  --gold: #f9bd15;
  --gold-ink: #f9bd15;           /* gold used as text */
  --gold-soft: rgba(249, 189, 21, .14);
  --blue: #527eff;
  --blue-soft: rgba(82, 126, 255, .14);
  --navy: #112337;

  --bg: #070d17;
  --bg-2: #0b1524;
  --surface: rgba(17, 35, 55, .55);
  --surface-2: rgba(17, 35, 55, .8);
  --surface-solid: #0e1c2e;
  --border: rgba(255, 255, 255, .08);
  --border-strong: rgba(255, 255, 255, .16);
  --text: #e9eef6;
  --text-2: #b5c0d0;
  --muted: #8593a8;
  --ok: #22c55e;
  --ok-soft: rgba(34, 197, 94, .14);
  --warn: #f59e0b;
  --warn-soft: rgba(245, 158, 11, .14);
  --bad: #f43f5e;
  --bad-soft: rgba(244, 63, 94, .14);
  --info: #38bdf8;
  --info-soft: rgba(56, 189, 248, .12);

  --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 20px 50px -20px rgba(0,0,0,.6);
  --shadow-lg: 0 30px 80px -20px rgba(0,0,0,.7);
  --radius: 18px;
  --radius-sm: 12px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --max: 1200px;
  --globe-land: rgba(249, 189, 21, .55);
  --globe-ocean: rgba(82, 126, 255, .06);
  --globe-line: rgba(255, 255, 255, .06);
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --gold-ink: #a87800;
    --gold-soft: rgba(249, 189, 21, .2);
    --blue: #204ce5;
    --blue-soft: rgba(32, 76, 229, .1);
    --bg: #f5f7fb;
    --bg-2: #eef1f7;
    --surface: rgba(255, 255, 255, .72);
    --surface-2: rgba(255, 255, 255, .92);
    --surface-solid: #ffffff;
    --border: rgba(17, 35, 55, .1);
    --border-strong: rgba(17, 35, 55, .2);
    --text: #0f1b2d;
    --text-2: #334155;
    --muted: #5d6a7e;
    --ok: #15803d; --ok-soft: rgba(21, 128, 61, .1);
    --warn: #b45309; --warn-soft: rgba(180, 83, 9, .1);
    --bad: #be123c; --bad-soft: rgba(190, 18, 60, .08);
    --info: #0369a1; --info-soft: rgba(3, 105, 161, .08);
    --shadow: 0 1px 2px rgba(17,35,55,.06), 0 12px 32px -12px rgba(17,35,55,.18);
    --shadow-lg: 0 30px 80px -24px rgba(17,35,55,.35);
    --globe-land: rgba(17, 35, 55, .55);
    --globe-ocean: rgba(32, 76, 229, .05);
    --globe-line: rgba(17, 35, 55, .08);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --gold-ink: #a87800;
  --gold-soft: rgba(249, 189, 21, .2);
  --blue: #204ce5;
  --blue-soft: rgba(32, 76, 229, .1);
  --bg: #f5f7fb;
  --bg-2: #eef1f7;
  --surface: rgba(255, 255, 255, .72);
  --surface-2: rgba(255, 255, 255, .92);
  --surface-solid: #ffffff;
  --border: rgba(17, 35, 55, .1);
  --border-strong: rgba(17, 35, 55, .2);
  --text: #0f1b2d;
  --text-2: #334155;
  --muted: #5d6a7e;
  --ok: #15803d; --ok-soft: rgba(21, 128, 61, .1);
  --warn: #b45309; --warn-soft: rgba(180, 83, 9, .1);
  --bad: #be123c; --bad-soft: rgba(190, 18, 60, .08);
  --info: #0369a1; --info-soft: rgba(3, 105, 161, .08);
  --shadow: 0 1px 2px rgba(17,35,55,.06), 0 12px 32px -12px rgba(17,35,55,.18);
  --shadow-lg: 0 30px 80px -24px rgba(17,35,55,.35);
  --globe-land: rgba(17, 35, 55, .55);
  --globe-ocean: rgba(32, 76, 229, .05);
  --globe-line: rgba(17, 35, 55, .08);
  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  font: 15px/1.6 var(--font); letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
main { flex: 1; outline: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
svg { flex-shrink: 0; }
code, .mono { font-family: var(--mono); font-size: .92em; }
::selection { background: var(--gold); color: #112337; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 8px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--gold); color: #112337; padding: 8px 14px; border-radius: 8px; font-weight: 600; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

[hidden] { display: none !important; }

/* stroke icon default: any 24-grid icon gets a sane size unless a component overrides it */
:where(svg[viewBox="0 0 24 24"]) { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card-head h3 svg { width: 18px; height: 18px; color: var(--gold-ink); }
.check .ci svg { stroke-width: 2.2; }

/* stroke icon default */
.topbar svg, .ico, .kbd-btn svg, .palette svg, .btn svg, .chip svg, .tool-card svg, .icon-btn svg {
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.ico { width: 18px; height: 18px; }

/* ---------- animated background ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-grid {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  opacity: .55;
}
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; will-change: transform; }
.blob-gold { width: 520px; height: 520px; background: radial-gradient(circle, rgba(249,189,21,.55), transparent 65%); top: -180px; left: -120px; animation: drift1 22s ease-in-out infinite alternate; }
.blob-blue { width: 620px; height: 620px; background: radial-gradient(circle, rgba(32,76,229,.55), transparent 65%); top: -120px; right: -200px; animation: drift2 26s ease-in-out infinite alternate; }
.blob-navy { width: 700px; height: 700px; background: radial-gradient(circle, rgba(17,35,55,.9), transparent 70%); bottom: -300px; left: 30%; animation: drift3 30s ease-in-out infinite alternate; }
:root[data-theme="light"] .blob { opacity: .28; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .blob { opacity: .28; } }
.noise { position: absolute; inset: 0; opacity: .035; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@keyframes drift1 { to { transform: translate(180px, 120px) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-160px, 160px) scale(.9); } }
@keyframes drift3 { to { transform: translate(-200px, -80px) scale(1.1); } }

.progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 90; background: linear-gradient(90deg, var(--gold), var(--blue)); box-shadow: 0 0 12px var(--gold); transition: width .3s var(--ease), opacity .4s; opacity: 0; }
.progress.on { opacity: 1; }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 50; transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.topbar.scrolled { background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border-bottom-color: var(--border); }
.topbar-inner { max-width: var(--max); margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--text); }
.brand-logo { height: 32px; width: auto; display: block; color: var(--text); }
.brand-logo path { stroke: none; }
.brand-divider { width: 1px; height: 26px; background: var(--border-strong); }
.brand-product { font-weight: 600; letter-spacing: -.01em; font-size: 16px; white-space: nowrap; color: var(--text-2); }
.brand-product b { color: var(--gold-ink); font-weight: 800; }

.nav { display: flex; align-items: center; gap: 2px; margin-left: 8px; }
.nav-link { white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px; border-radius: 10px; color: var(--text-2); font-weight: 500; font-size: 14px; transition: color .2s, background .2s; }
.nav-link:hover, .nav-link[aria-expanded="true"] { color: var(--text); background: var(--surface); }
.nav-link.active { color: var(--text); }
.nav-link.active::after { content: ""; display: block; }
.nav-link .chev { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.nav-link[aria-expanded="true"] .chev { transform: rotate(180deg); }
.nav-item { position: relative; }

.mega {
  position: absolute; top: calc(100% + 10px); left: -20px; width: min(720px, 90vw);
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 10px;
  background: var(--surface-2); backdrop-filter: blur(24px) saturate(160%); -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(-6px) scale(.98); pointer-events: none; transform-origin: top left;
  transition: opacity .2s var(--ease), transform .25s var(--ease);
}
.mega.open { opacity: 1; transform: none; pointer-events: auto; }
.mega a { display: flex; gap: 12px; padding: 12px; border-radius: 12px; transition: background .15s; }
.mega a:hover, .mega a:focus-visible { background: var(--surface); }
.mega .mi { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-ink); }
.mega .mi svg { width: 20px; height: 20px; }
.mega b { display: block; font-size: 14px; font-weight: 600; }
.mega span { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.45; }

.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.kbd-btn { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 8px 0 12px; border-radius: 11px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); font-size: 13.5px; transition: border-color .2s, color .2s; }
.kbd-btn:hover { border-color: var(--border-strong); color: var(--text); }
.kbd-btn svg { width: 16px; height: 16px; }
kbd { font-family: var(--mono); font-size: 11px; padding: 2px 6px; border-radius: 6px; background: var(--bg-2); border: 1px solid var(--border); color: var(--muted); }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); transition: color .2s, border-color .2s, transform .2s; }
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); }
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 18px; height: 18px; }
.i-moon { display: none; }
:root[data-theme="light"] .i-sun { display: none; }
:root[data-theme="light"] .i-moon { display: block; }
@media (prefers-color-scheme: light) { :root:not([data-theme]) .i-sun { display: none; } :root:not([data-theme]) .i-moon { display: block; } }
.menu-btn { display: none; }

/* drawer */
.drawer { position: fixed; inset: 0; z-index: 60; background: rgba(3, 8, 15, .55); backdrop-filter: blur(6px); }
.drawer-panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(360px, 88vw); background: var(--surface-solid); border-left: 1px solid var(--border); padding: 20px; overflow-y: auto; animation: slideIn .3s var(--ease); }
.drawer-panel a { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 12px; font-weight: 500; }
.drawer-panel a:hover, .drawer-panel a.active { background: var(--surface); }
.drawer-panel .mi { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-ink); }
.drawer-panel .mi svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-weight: 700; }
@keyframes slideIn { from { transform: translateX(100%); } }

/* ---------- layout ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
h1, h2, h3 { letter-spacing: -.025em; line-height: 1.1; margin: 0; }
h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 750; }
h3 { font-size: 17px; font-weight: 650; letter-spacing: -.01em; }
.lead { color: var(--text-2); font-size: 17px; max-width: 620px; margin: 10px 0 0; }
.muted { color: var(--muted); }
.grad { background: linear-gradient(100deg, var(--gold) 10%, #ffd96a 40%, var(--blue) 95%); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root[data-theme="light"] .grad { background-image: linear-gradient(100deg, #c89200 5%, #e0a800 35%, #204ce5 90%); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .grad { background-image: linear-gradient(100deg, #c89200 5%, #e0a800 35%, #204ce5 90%); } }

/* view transitions / reveal */
.view { animation: viewIn .5s var(--ease); }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 56px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.6vw, 68px); font-weight: 800; letter-spacing: -.04em; line-height: 1.02; }
.hero .lead { font-size: 18px; margin-top: 18px; }
.badge-live { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 13px; color: var(--text-2); margin-bottom: 22px; }
.badge-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 var(--ok); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent); } 70%, 100% { box-shadow: 0 0 0 8px transparent; } }

.omni { position: relative; margin-top: 30px; max-width: 620px; }
.omni-box {
  display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 18px;
  background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: 16px;
  box-shadow: var(--shadow); backdrop-filter: blur(12px);
  transition: border-color .2s, box-shadow .25s;
}
.omni-box:focus-within { border-color: color-mix(in srgb, var(--gold) 70%, transparent); box-shadow: 0 0 0 5px var(--gold-soft), var(--shadow); }
.omni-box > svg { width: 20px; height: 20px; color: var(--muted); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.omni-box input { flex: 1; min-width: 0; height: 46px; border: 0; background: none; outline: none; font-size: 16.5px; font-family: var(--mono); }
.omni-box input::placeholder { color: var(--muted); font-family: var(--font); }
.omni-detect { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); white-space: nowrap; transition: opacity .2s; }
.omni-detect:empty { display: none; }
.omni-hints { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; font-size: 13px; color: var(--muted); align-items: center; }

/* ---------- buttons, chips, inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 12px; font-weight: 600; font-size: 14.5px; white-space: nowrap; transition: transform .15s, box-shadow .2s, background .2s, border-color .2s, color .2s; }
.btn svg { width: 17px; height: 17px; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--gold); color: #112337; box-shadow: 0 8px 24px -8px rgba(249,189,21,.6), inset 0 1px 0 rgba(255,255,255,.4); }
.btn-primary:hover { background: #ffc933; box-shadow: 0 12px 30px -8px rgba(249,189,21,.75), inset 0 1px 0 rgba(255,255,255,.4); }
.btn-primary[disabled] { opacity: .6; cursor: progress; }
.btn-ghost { background: var(--surface); border: 1px solid var(--border); color: var(--text-2); }
.btn-ghost:hover { color: var(--text); border-color: var(--border-strong); }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn-sm svg { width: 15px; height: 15px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: 12.5px; color: var(--text-2); transition: border-color .2s, color .2s, background .2s; font-family: var(--mono); }
.chip:hover { border-color: var(--gold); color: var(--text); }
.chip svg { width: 13px; height: 13px; }

.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- cards ---------- */
.card {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.card-pad { padding: 22px; }
.spot { overflow: hidden; }
.spot::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--gold) 12%, transparent), transparent 45%);
}
.spot:hover::before { opacity: 1; }
.spot::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--gold) 70%, transparent), transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.spot:hover::after { opacity: 1; }

/* "your connection" hero card */
.conn { padding: 0; overflow: hidden; }
.conn-globe { position: relative; height: 320px; display: grid; place-items: center; background: radial-gradient(circle at 50% 55%, var(--blue-soft), transparent 60%); cursor: grab; }
.conn-globe:active { cursor: grabbing; }
.conn-globe canvas { width: 100%; height: 100%; display: block; }
.conn-globe .globe-label { position: absolute; top: 14px; left: 16px; font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.conn-body { padding: 18px 22px 22px; border-top: 1px solid var(--border); }
.conn-ip { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.conn-ip .ipv { font-family: var(--mono); font-size: clamp(20px, 2.6vw, 26px); font-weight: 600; letter-spacing: -.02em; word-break: break-all; }
.conn-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin-top: 14px; }
.kv small { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.kv span { display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* stats strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-top: 48px; }
.stat { background: var(--surface-2); padding: 20px 22px; backdrop-filter: blur(12px); }
.stat b { display: block; font-size: 30px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 13.5px; }

/* tool bento */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tool-card { display: flex; flex-direction: column; gap: 12px; padding: 22px; min-height: 190px; transition: transform .3s var(--ease), border-color .3s; }
.tool-card:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.tool-card.wide { grid-column: span 2; }
.tool-card .ti { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-ink); border: 1px solid color-mix(in srgb, var(--gold) 25%, transparent); }
.tool-card .ti svg { width: 22px; height: 22px; }
.tool-card.alt .ti { background: var(--blue-soft); color: var(--blue); border-color: color-mix(in srgb, var(--blue) 25%, transparent); }
.tool-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.tool-card .go { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--gold-ink); }
.tool-card .go svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.tool-card:hover .go svg { transform: translateX(4px); }
.tool-card .tag { position: absolute; top: 18px; right: 18px; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); }

/* resources */
.res-group { margin-bottom: 36px; }
.res-group h3 { margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.res-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.res { display: flex; align-items: center; gap: 14px; padding: 16px 18px; transition: transform .25s var(--ease), border-color .25s; }
.res:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.res img { width: 28px; height: 28px; border-radius: 8px; background: #fff; padding: 3px; }
.res b { display: block; font-size: 14.5px; }
.res span { display: block; font-size: 12.5px; color: var(--muted); }
.res .ext { margin-left: auto; width: 16px; height: 16px; color: var(--muted); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* CTA */
.cta { padding: 40px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; overflow: hidden; }
.cta::before { content: ""; position: absolute; right: -80px; top: -120px; width: 420px; height: 420px; background: url("/assets/img/gc-mark.svg") no-repeat center / contain; opacity: .35; pointer-events: none; }
.cta > * { position: relative; }

/* ---------- tool page ---------- */
.tool-head { padding: 40px 0 8px; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.crumbs a:hover { color: var(--text); }
.tool-title { display: flex; gap: 16px; align-items: center; }
.tool-title .ti { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-ink); border: 1px solid color-mix(in srgb, var(--gold) 25%, transparent); }
.tool-title .ti svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tool-title h1 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; }
.tool-title p { margin: 4px 0 0; color: var(--muted); }

.switcher { display: flex; gap: 6px; overflow-x: auto; padding: 18px 0 4px; scrollbar-width: none; }
.switcher::-webkit-scrollbar { display: none; }
.switcher a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; font-size: 13.5px; font-weight: 500; color: var(--muted); border: 1px solid transparent; white-space: nowrap; transition: color .2s, background .2s, border-color .2s; }
.switcher a svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.switcher a:hover { color: var(--text); background: var(--surface); }
.switcher a.active { color: var(--text); background: var(--surface-2); border-color: var(--border); box-shadow: var(--shadow); }
.switcher a.active svg { color: var(--gold-ink); }

.form-card { padding: 16px; margin-top: 18px; }
.form-row { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; }
.field { flex: 1; min-width: 220px; display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 48px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--border); transition: border-color .2s, box-shadow .2s; }
.field:focus-within { border-color: color-mix(in srgb, var(--gold) 70%, transparent); box-shadow: 0 0 0 4px var(--gold-soft); }
.field svg { width: 18px; height: 18px; color: var(--muted); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.field input { flex: 1; min-width: 0; border: 0; background: none; outline: none; height: 100%; font-family: var(--mono); font-size: 15px; }
.field input::placeholder { font-family: var(--font); color: var(--muted); }
.select { height: 48px; padding: 0 36px 0 14px; border-radius: 12px; background: var(--bg-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238593a8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px; border: 1px solid var(--border); appearance: none; font-weight: 500; outline: none; }
.select:focus { border-color: var(--gold); }
.form-row .btn { height: 48px; }
.form-foot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; font-size: 13px; color: var(--muted); }
textarea.bulk { width: 100%; min-height: 140px; resize: vertical; padding: 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--border); font-family: var(--mono); font-size: 14px; outline: none; }
textarea.bulk:focus { border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }

.seg { display: inline-flex; padding: 3px; border-radius: 11px; background: var(--bg-2); border: 1px solid var(--border); }
.seg button { padding: 6px 14px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--muted); transition: background .2s, color .2s; }
.seg button.on { background: var(--surface-2); color: var(--text); box-shadow: var(--shadow); }

.results { margin-top: 22px; display: grid; gap: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.card-head h3 { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.card-head .tools { display: flex; gap: 6px; }

.facts { display: grid; grid-template-columns: repeat(2, 1fr); }
.fact { padding: 14px 20px; border-bottom: 1px solid var(--border); min-width: 0; }
.fact:nth-child(odd) { border-right: 1px solid var(--border); }
.fact small { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.fact div { font-weight: 500; overflow-wrap: anywhere; display: flex; align-items: center; gap: 8px; }
.fact .mono { font-size: 14px; }
.flag { width: 22px; height: 16px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px var(--border); }

.map { height: 100%; min-height: 360px; border-radius: 0 0 var(--radius) var(--radius); z-index: 0; }
.map-card { display: flex; flex-direction: column; overflow: hidden; }
.map-card .map { flex: 1; }
.leaflet-container { background: var(--bg-2); font-family: var(--font); }
.leaflet-control-attribution { background: color-mix(in srgb, var(--surface-solid) 80%, transparent) !important; color: var(--muted) !important; font-size: 10px; }
.leaflet-control-attribution a { color: var(--text-2) !important; }
.leaflet-bar a { background: var(--surface-solid) !important; color: var(--text) !important; border-color: var(--border) !important; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--surface-solid); color: var(--text); box-shadow: var(--shadow-lg); }
.leaflet-popup-content { margin: 12px 14px; font-size: 13px; }
.pin { position: relative; width: 18px; height: 18px; }
.pin i { position: absolute; inset: 0; border-radius: 50%; background: var(--gold); border: 3px solid #112337; box-shadow: 0 0 0 2px var(--gold); }
.pin::before, .pin::after { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 2px solid var(--gold); animation: pulse 2.4s var(--ease) infinite; opacity: 0; }
.pin::after { animation-delay: 1.2s; }
@keyframes pulse { 0% { transform: scale(.3); opacity: .9; } 100% { transform: scale(1.4); opacity: 0; } }

/* status pills */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.ok { color: var(--ok); background: var(--ok-soft); }
.pill.warn { color: var(--warn); background: var(--warn-soft); }
.pill.bad { color: var(--bad); background: var(--bad-soft); }
.pill.info { color: var(--info); background: var(--info-soft); }
.pill.dim { color: var(--muted); background: var(--surface); }
.pill.gold { color: var(--gold-ink); background: var(--gold-soft); }

/* tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 12px 20px; border-bottom: 1px solid var(--border); white-space: nowrap; }
td { padding: 12px 20px; border-bottom: 1px solid var(--border); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .15s; }
tbody tr:hover { background: color-mix(in srgb, var(--surface) 60%, transparent); }
td.mono, td .mono { font-family: var(--mono); font-size: 13.5px; overflow-wrap: anywhere; }
.type-badge { display: inline-block; min-width: 54px; text-align: center; font-family: var(--mono); font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 7px; background: var(--blue-soft); color: var(--blue); }
.rowin { animation: rowIn .4s var(--ease) both; }
@keyframes rowIn { from { opacity: 0; transform: translateY(6px); } }

/* score ring */
.score { display: flex; gap: 22px; align-items: center; padding: 22px; }
.ring { position: relative; width: 120px; height: 120px; flex-shrink: 0; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; }
.ring .track { stroke: var(--border); }
.ring .val { stroke: var(--gold); stroke-linecap: round; transition: stroke-dashoffset 1.2s var(--ease), stroke .3s; }
.ring .lbl { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.ring .lbl b { display: block; font-size: 34px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.ring .lbl span { display: block; font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.score h3 { font-size: 20px; }
.score p { margin: 6px 0 0; color: var(--muted); }

/* DNSBL grid */
.bl-summary { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center; padding: 22px; }
.bl-counts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.bl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; padding: 16px; }
.bl { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-2); min-width: 0; transition: border-color .3s, background .3s; }
.bl .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); flex-shrink: 0; opacity: .4; }
.bl.pending .dot { animation: blink 1s ease-in-out infinite; }
.bl.clean .dot { background: var(--ok); opacity: 1; }
.bl.listed { border-color: color-mix(in srgb, var(--bad) 50%, transparent); background: var(--bad-soft); }
.bl.listed .dot { background: var(--bad); opacity: 1; box-shadow: 0 0 10px var(--bad); }
.bl.error .dot { background: var(--warn); opacity: 1; }
.bl .bln { min-width: 0; flex: 1; }
.bl b { display: block; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bl span { display: block; font-size: 11.5px; color: var(--muted); font-family: var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bl .ms { font-size: 11px; color: var(--muted); font-family: var(--mono); }
.bl a.del { font-size: 11.5px; color: var(--bad); font-weight: 600; text-decoration: underline; }
@keyframes blink { 50% { opacity: .9; } }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }

/* checks list */
.checks { display: grid; }
.check { display: grid; grid-template-columns: 34px 1fr auto; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--border); align-items: start; }
.check:last-child { border-bottom: 0; }
.check .ci { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; }
.check .ci svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.check.pass .ci { background: var(--ok-soft); color: var(--ok); }
.check.warn .ci { background: var(--warn-soft); color: var(--warn); }
.check.fail .ci { background: var(--bad-soft); color: var(--bad); }
.check.info .ci { background: var(--info-soft); color: var(--info); }
.check b { display: block; font-size: 14.5px; }
.check p { margin: 2px 0 0; color: var(--text-2); font-size: 14px; }
.check pre, .raw { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--border); font-family: var(--mono); font-size: 12.5px; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text-2); max-height: 220px; overflow: auto; }
.raw { max-height: 520px; margin: 0; border: 0; border-radius: 0 0 var(--radius) var(--radius); padding: 18px 20px; }

/* ssl */
.expiry { padding: 22px; }
.bar { height: 10px; border-radius: 999px; background: var(--border); overflow: hidden; margin: 14px 0 8px; }
.bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--ok), var(--gold)); transition: width 1.2s var(--ease); width: 0; }
.bar.warn i { background: linear-gradient(90deg, var(--warn), var(--gold)); }
.bar.bad i { background: var(--bad); }
.chain { display: grid; gap: 0; padding: 12px 20px 20px; }
.chain-item { position: relative; padding: 12px 0 12px 30px; }
.chain-item::before { content: ""; position: absolute; left: 8px; top: 20px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--gold); background: var(--surface-solid); }
.chain-item:not(:last-child)::after { content: ""; position: absolute; left: 13px; top: 34px; bottom: -12px; width: 2px; background: var(--border-strong); }
.chain-item b { display: block; font-size: 14px; }
.chain-item span { display: block; font-size: 12.5px; color: var(--muted); }
.sans { display: flex; flex-wrap: wrap; gap: 6px; padding: 16px 20px; }

/* headers */
.hops { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 16px 20px; }
.hop { display: inline-flex; gap: 8px; align-items: center; padding: 6px 12px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--border); font-family: var(--mono); font-size: 12.5px; max-width: 100%; overflow-wrap: anywhere; }
.hop-arrow { color: var(--muted); }
.hdr-name { font-family: var(--mono); font-size: 13px; color: var(--gold-ink); white-space: nowrap; }

/* empty / error / skeleton */
.empty { padding: 50px 24px; text-align: center; color: var(--muted); }
.empty svg { width: 44px; height: 44px; margin-bottom: 10px; color: var(--muted); opacity: .6; fill: none; stroke: currentColor; stroke-width: 1.5; }
.empty h3 { color: var(--text); margin-bottom: 6px; }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius-sm); border: 1px solid color-mix(in srgb, var(--bad) 35%, transparent); background: var(--bad-soft); color: var(--text); }
.alert svg { width: 20px; height: 20px; color: var(--bad); flex-shrink: 0; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.alert.info { border-color: color-mix(in srgb, var(--info) 35%, transparent); background: var(--info-soft); }
.alert.info svg { color: var(--info); }
.skel { position: relative; overflow: hidden; background: var(--border); border-radius: 8px; height: 14px; }
.skel::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--text) 8%, transparent), transparent); animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }

/* history */
.history { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.history .chip b { font-family: var(--font); font-weight: 600; color: var(--gold-ink); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }

/* ---------- palette ---------- */
.palette { position: fixed; inset: 0; z-index: 80; display: grid; place-items: start center; padding-top: 12vh; }
.palette-backdrop { position: absolute; inset: 0; background: rgba(3, 8, 15, .6); backdrop-filter: blur(6px); animation: fade .2s; }
.palette-box { position: relative; width: min(640px, calc(100vw - 32px)); background: var(--surface-solid); border: 1px solid var(--border-strong); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; animation: pop .25s var(--ease); }
.palette-input { display: flex; align-items: center; gap: 12px; padding: 0 16px; border-bottom: 1px solid var(--border); }
.palette-input svg { width: 20px; height: 20px; color: var(--muted); }
.palette-input input { flex: 1; height: 58px; border: 0; background: none; outline: none; font-size: 16px; }
.palette-list { list-style: none; margin: 0; padding: 8px; max-height: 50vh; overflow-y: auto; }
.palette-list .grp { padding: 10px 10px 4px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.palette-list li[role="option"] { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 10px; cursor: pointer; }
.palette-list li[aria-selected="true"] { background: var(--surface); box-shadow: inset 2px 0 0 var(--gold); }
.palette-list .mi { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-ink); }
.palette-list .mi svg { width: 17px; height: 17px; color: currentColor; }
.palette-list b { font-size: 14px; font-weight: 600; display: block; }
.palette-list small { color: var(--muted); font-size: 12.5px; display: block; font-family: var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 440px; }
.palette-list .enter { margin-left: auto; opacity: 0; }
.palette-list li[aria-selected="true"] .enter { opacity: 1; }
.palette-foot { display: flex; gap: 18px; padding: 10px 16px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); }
.palette-foot kbd { margin-right: 3px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(-10px) scale(.98); } }

/* ---------- toasts ---------- */
.toasts { position: fixed; bottom: 20px; right: 20px; z-index: 90; display: grid; gap: 8px; }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; background: var(--surface-solid); border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg); font-size: 14px; animation: toastIn .35s var(--ease); }
.toast.out { animation: toastOut .3s var(--ease) forwards; }
.toast svg { width: 18px; height: 18px; color: var(--ok); fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px) scale(.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px); } }

/* ---------- footer ---------- */
.footer { margin-top: 80px; border-top: 1px solid var(--border); background: color-mix(in srgb, var(--bg-2) 70%, transparent); }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 48px 20px 28px; display: grid; grid-template-columns: 1.2fr 2fr; gap: 40px; }
.footer-brand .brand-logo { height: 34px; color: var(--text); }
.footer-brand p { color: var(--muted); font-size: 14px; max-width: 340px; margin-top: 14px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-cols h4 { margin: 0 0 12px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.footer-cols a { display: block; padding: 4px 0; font-size: 14px; color: var(--text-2); transition: color .2s; }
.footer-cols a:hover { color: var(--gold-ink); }
.footer-bottom { max-width: var(--max); margin: 0 auto; padding: 18px 20px 28px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--muted); border-top: 1px solid var(--border); }
.footer-you { font-family: var(--mono); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav .nav-link:not(#tools-trigger) { display: none; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .res-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero-grid, .split, .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
  .kbd-btn span, .kbd-btn kbd { display: none; }
  .kbd-btn { width: 38px; padding: 0; justify-content: center; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .menu-btn { display: grid; }
  .brand-logo { height: 26px; }
  .brand-product { font-size: 14px; }
  .topbar-inner { padding: 12px 16px; gap: 12px; }
  .wrap { padding: 0 16px; }
  .section { padding: 52px 0; }
  .bento, .res-grid { grid-template-columns: 1fr; }
  .tool-card.wide { grid-column: auto; }
  .facts { grid-template-columns: 1fr; }
  .fact:nth-child(odd) { border-right: 0; }
  .cta { grid-template-columns: 1fr; padding: 28px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .bl-summary { grid-template-columns: 1fr; justify-items: start; }
  .score { flex-direction: column; align-items: flex-start; }
  .form-row .btn { flex: 1; }
  th, td { padding: 10px 14px; }
  .conn-globe { height: 260px; }
}
@media (max-width: 420px) {
  .brand-divider, .brand-product { display: none; }
}

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

/* Grid children must be allowed to shrink below their content width, or long IPs/headings overflow on phones. */
.hero-grid > *, .split > *, .grid-2 > *, .grid-3 > *, .bento > *, .res-grid > *, .results > * { min-width: 0; }
.results { grid-template-columns: minmax(0, 1fr); }
.seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { white-space: nowrap; flex-shrink: 0; }
@media (max-width: 900px) {
  .hero-grid, .split, .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .hide-sm { display: none; }
  .omni-box { padding-left: 14px; }
  .omni-box .btn span { display: none; }
  .omni-box .btn { width: 46px; padding: 0; }
  .omni-detect { display: none; }
  .hero h1 { font-size: clamp(34px, 10vw, 44px); }
}

/* ---------- speed test ---------- */
.speed-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 16px; margin-top: 22px; }
.speed-grid > * { min-width: 0; }
.speed-main { padding: 22px 22px 18px; display: flex; flex-direction: column; align-items: center; }
.gauge { position: relative; width: min(420px, 100%); aspect-ratio: 320 / 300; }
.gauge-svg { width: 100%; height: 100%; overflow: visible; }
.g-track { fill: none; stroke: var(--border-strong); stroke-width: 16; stroke-linecap: round; }
.g-value { fill: none; stroke-width: 16; stroke-linecap: round; transition: stroke .3s; }
.g-tick { stroke: var(--muted); stroke-width: 2; stroke-linecap: round; opacity: .6; }
.g-label { fill: var(--muted); font: 600 11px var(--mono); }
.g-needle { stroke: var(--text); stroke-width: 3.5; stroke-linecap: round; }
#g-needle { transition: transform .08s linear; }
.g-hub { fill: var(--surface-solid); stroke: var(--text); stroke-width: 3; }
.gauge-read { position: absolute; left: 0; right: 0; top: 62%; text-align: center; pointer-events: none; }
.gauge-read b { display: block; font-size: clamp(40px, 7vw, 58px); font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.gauge-read > span { font-size: 13px; color: var(--muted); font-weight: 600; letter-spacing: .08em; }
.g-phase { margin-top: 6px; font-size: 13.5px; color: var(--gold-ink); font-weight: 600; min-height: 1.4em; }
.go-btn {
  position: absolute; left: 50%; top: 53%; width: 132px; height: 132px; margin: -66px 0 0 -66px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffd96a, var(--gold) 55%, #d99e00); color: #112337;
  font-weight: 800; font-size: 26px; letter-spacing: .06em; box-shadow: 0 16px 40px -12px rgba(249,189,21,.7), inset 0 2px 0 rgba(255,255,255,.45);
  transition: transform .2s var(--ease), opacity .3s, box-shadow .2s; z-index: 2;
}
.go-btn::before, .go-btn::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid var(--gold); opacity: 0; animation: goPulse 2.4s var(--ease) infinite; }
.go-btn::after { animation-delay: 1.2s; }
.go-btn:hover { transform: scale(1.05); }
.go-btn:active { transform: scale(.96); }
.go-btn.hidden { opacity: 0; transform: scale(.6); pointer-events: none; }
.go-btn span { position: relative; }
@keyframes goPulse { 0% { transform: scale(.9); opacity: .8; } 100% { transform: scale(1.35); opacity: 0; } }
.go-btn:not(.hidden) ~ .gauge-read { opacity: 0; }
.again-btn { margin-top: 12px; }
.gauge-read { transition: opacity .3s; }

.steps { list-style: none; display: flex; gap: 6px; margin: 10px 0 0; padding: 0; flex-wrap: wrap; justify-content: center; }
.steps li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--muted); border: 1px solid var(--border); background: var(--bg-2); transition: all .3s; }
.steps li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .5; }
.steps li.on { color: var(--gold-ink); border-color: color-mix(in srgb, var(--gold) 50%, transparent); }
.steps li.on::before { opacity: 1; animation: blink 1s ease-in-out infinite; }
.steps li.done { color: var(--ok); }
.steps li.done::before { opacity: 1; }

.speed-side { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: start; }
.metric { display: flex; gap: 12px; align-items: center; padding: 16px; transition: border-color .3s, box-shadow .3s; }
.metric.live { border-color: color-mix(in srgb, var(--gold) 55%, transparent); box-shadow: 0 0 0 4px var(--gold-soft), var(--shadow); }
.metric .m-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-2); border: 1px solid var(--border); flex-shrink: 0; }
.metric .m-ico svg { width: 20px; height: 20px; }
.metric small { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.metric b { font-size: 28px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.metric em { font-style: normal; color: var(--muted); font-size: 13px; margin-left: 4px; }
.conn-route { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 70px 1fr; gap: 12px; align-items: center; }
.conn-route small { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.conn-route > div { min-width: 0; overflow-wrap: anywhere; }
.route-line { position: relative; height: 2px; background: var(--border-strong); overflow: hidden; border-radius: 2px; }
.route-line i { position: absolute; inset: 0; width: 40%; background: linear-gradient(90deg, transparent, var(--gold), transparent); animation: routeFlow 1.6s linear infinite; }
@keyframes routeFlow { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.sp-chart { width: 100%; height: 200px; display: block; }
.activities { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; }
.act { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-2); font-size: 14px; }
.act svg { width: 18px; height: 18px; stroke-width: 2.4; }
.act.ok svg { color: var(--ok); }
.act.no { color: var(--muted); }
.act.no svg { color: var(--bad); }

@media (max-width: 900px) {
  .speed-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .speed-side { grid-template-columns: 1fr 1fr; }
  .metric { padding: 12px; gap: 10px; }
  .metric .m-ico { display: none; }
  .metric b { font-size: 24px; }
  .conn-route { grid-template-columns: 1fr; }
  .route-line { display: none; }
  .go-btn { width: 108px; height: 108px; margin: -54px 0 0 -54px; font-size: 22px; }
}
