/* =========================================================
   ImperialHost.cc: monochrome, Apple-style, dark & light
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, system-ui, sans-serif;
  --mono: "SF Mono", "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;

  --ease: cubic-bezier(.22, 1, .36, 1);        /* soft, springy out */
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --r-sm: 10px; --r: 18px; --r-lg: 28px;
  --wrap: 1180px;
  --nav-h: 64px;

  /* light */
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --surface: #ffffff;
  --surface-2: #f5f5f7;
  --text: #1d1d1f;          /* 16.8:1 on #fff */
  --text-2: #5e5e63;        /* 6.3:1 on #fff, 5.8:1 on #f5f5f7 */
  --text-3: #86868b;        /* decorative/meta only */
  --line: rgba(0, 0, 0, .09);
  --line-2: rgba(0, 0, 0, .16);
  --btn-bg: #1d1d1f;
  --btn-fg: #ffffff;
  --glass: rgba(255, 255, 255, .72);
  --glass-line: rgba(0, 0, 0, .08);
  --ok: #1f8f3a;            /* 4.6:1 on #fff */
  --ok-dot: #34c759;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 12px 40px -12px rgba(0,0,0,.12);
  --logo-a: #1d1d1f;
  --logo-b: #6e6e73;
  --glow: rgba(0, 0, 0, .06);
  --spot: rgba(0, 0, 0, .035);
  --bar-mute: #c7c7cc;
  --floor: rgba(0, 0, 0, .2);
  --drop: rgba(0, 0, 0, .16);
  --core-off: #e8e8ed;
  --core-on: #1d1d1f;
  --console-bg: #0b0b0c;
  --map-fill: #e4e4ea;
  --map-line: #ffffff;
  --map-hi: #c6c6cf;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000;
    --bg-alt: #0b0b0c;
    --surface: #111113;
    --surface-2: #1a1a1d;
    --text: #f5f5f7;        /* 19.3:1 on #000 */
    --text-2: #a1a1a6;      /* 8.3:1 on #000, 7.3:1 on #111113 */
    --text-3: #6e6e73;
    --line: rgba(255, 255, 255, .09);
    --line-2: rgba(255, 255, 255, .18);
    --btn-bg: #f5f5f7;
    --btn-fg: #000000;
    --glass: rgba(18, 18, 20, .62);
    --glass-line: rgba(255, 255, 255, .1);
    --ok: #30d158;
    --ok-dot: #30d158;
    --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 20px 60px -20px rgba(0,0,0,.8);
    --logo-a: #ffffff;
    --logo-b: #8e8e93;
    --glow: rgba(255, 255, 255, .09);
    --spot: rgba(255, 255, 255, .11);
    --bar-mute: #48484d;
    --floor: rgba(255, 255, 255, .1);
    --drop: rgba(0, 0, 0, .6);
    --core-off: #1c1c1f;
    --core-on: #f5f5f7;
    --console-bg: #0b0b0c;
    --map-fill: #1b1b1f;
    --map-line: #5a5a62;
    --map-hi: #3a3a40;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --spot: rgba(255, 255, 255, .11);
  --bar-mute: #48484d;
  --floor: rgba(255, 255, 255, .1);
  --drop: rgba(0, 0, 0, .6);
  --bg: #000000;
  --bg-alt: #0b0b0c;
  --surface: #111113;
  --surface-2: #1a1a1d;
  --text: #f5f5f7;
  --text-2: #a1a1a6;
  --text-3: #6e6e73;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .18);
  --btn-bg: #f5f5f7;
  --btn-fg: #000000;
  --glass: rgba(18, 18, 20, .62);
  --glass-line: rgba(255, 255, 255, .1);
  --ok: #30d158;
  --ok-dot: #30d158;
  --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 20px 60px -20px rgba(0,0,0,.8);
  --logo-a: #ffffff;
  --logo-b: #8e8e93;
  --glow: rgba(255, 255, 255, .09);
  --core-off: #1c1c1f;
  --core-on: #f5f5f7;
  --console-bg: #0b0b0c;
  --map-fill: #1b1b1f;
  --map-line: #5a5a62;
  --map-hi: #3a3a40;
  color-scheme: dark;
}

@media (prefers-contrast: more) {
  :root { --text-2: var(--text); --line: var(--line-2); }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 24px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.55 var(--font);
  letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color .5s var(--ease), color .5s var(--ease);
}
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.03em; line-height: 1.08; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--text); color: var(--bg); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: max(20px, env(safe-area-inset-left)); }
.wrap--narrow { max-width: 820px; }

.skip {
  position: fixed; top: 10px; left: 10px; z-index: 100;
  padding: 10px 16px; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  transform: translateY(-160%); transition: transform .3s var(--ease);
}
.skip:focus { transform: none; }

.dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--ok-dot); position: relative; flex: none;
}
.dot::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: inherit; animation: ping 2.2s var(--ease) infinite;
}
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(2.8); opacity: 0; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  min-height: 44px; padding: 0 22px; border-radius: 999px;
  font-weight: 600; font-size: 16px; letter-spacing: -.01em; white-space: nowrap;
  transition: transform .35s var(--ease), background-color .3s, color .3s, box-shadow .35s var(--ease), border-color .3s;
  will-change: transform;
}
.btn:active { transform: scale(.97); }
.btn--sm { min-height: 36px; padding: 0 16px; font-size: 14px; }
.btn--lg { min-height: 52px; padding: 0 28px; font-size: 17px; }
.btn--primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn--primary:hover { box-shadow: 0 8px 30px -8px var(--glow), 0 0 0 4px var(--glow); }
.btn--ghost { border: 1px solid var(--line-2); }
.btn--ghost:hover { background: var(--surface-2); }
.btn--block { width: 100%; }

.icon-btn {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  transition: background-color .25s;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.i-moon { fill: currentColor !important; stroke: none !important; }
/* show the icon for the appearance you'll switch TO */
.i-sun { display: none; }
:root[data-theme="dark"] .i-sun { display: block; }
:root[data-theme="dark"] .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .i-sun { display: block; }
  :root:not([data-theme="light"]) .i-moon { display: none; }
}

/* ---------- Segmented control ---------- */
.seg {
  position: relative; display: inline-flex; padding: 3px; gap: 2px;
  border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line);
}
.seg button {
  position: relative; z-index: 1; border-radius: 999px;
  font-weight: 600; color: var(--text-2); transition: color .3s var(--ease);
}
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { color: var(--text); }
.seg--sm button { min-width: 36px; height: 30px; font-size: 12.5px; letter-spacing: .02em; }
.seg--sm button[aria-pressed="true"] { background: var(--bg); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.seg--lg { padding: 4px; }
.seg--lg button { height: 44px; padding: 0 22px; font-size: 15px; white-space: nowrap; }
.seg__thumb {
  position: absolute; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 999px;
  background: var(--bg); box-shadow: 0 2px 8px rgba(0,0,0,.14), 0 0 0 1px var(--line);
  transition: transform .5s var(--ease), width .5s var(--ease);
}

/* ---------- Nav (the page's one glass surface) ---------- */
.nav {
  position: fixed; inset: 12px 0 auto; z-index: 50;
  padding-inline: 12px; pointer-events: none;
}
.nav__inner {
  pointer-events: auto;
  max-width: calc(var(--wrap) + 24px); margin: 0 auto; height: var(--nav-h);
  display: flex; align-items: center; gap: 20px; padding: 0 12px 0 18px;
  border-radius: 999px; border: 1px solid transparent;
  transition: background-color .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease), backdrop-filter .5s;
}
.nav.is-scrolled .nav__inner {
  background: var(--glass); border-color: var(--glass-line);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 10px 40px -16px rgba(0,0,0,.35);
}
@media (prefers-reduced-transparency: reduce) {
  .nav.is-scrolled .nav__inner { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.02em; font-size: 17px; }
.brand__mark { width: 14px; height: 25px; color: var(--text); transition: transform .6s var(--ease); }
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.08); }
.brand__tld { color: var(--text-2); font-weight: 500; }

.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a {
  padding: 8px 12px; border-radius: 999px; font-size: 14px; color: var(--text-2);
  transition: color .25s, background-color .25s;
}
.nav__links a:hover { color: var(--text); background: var(--surface-2); }
.nav__tools { display: flex; align-items: center; gap: 8px; }
.nav__burger { display: none; }
.nav__burger span { position: absolute; width: 18px; height: 1.6px; border-radius: 2px; background: currentColor; transition: transform .45s var(--ease); }
.nav__burger { position: relative; }
.nav__burger span:first-child { transform: translateY(-4px); }
.nav__burger span:last-child { transform: translateY(4px); }
.nav__burger[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

.sheet {
  pointer-events: auto;
  max-width: 560px; margin: 8px auto 0; padding: 12px;
  display: grid; gap: 2px;
  border-radius: 24px; background: var(--glass); border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.5);
  transform-origin: top center;
  animation: sheetIn .45s var(--ease);
}
.sheet[hidden] { display: none; }
.sheet a:not(.btn) { padding: 14px 14px; border-radius: 14px; font-size: 18px; font-weight: 600; }
.sheet a:not(.btn):hover { background: var(--surface-2); }
.sheet .btn { margin-top: 8px; }
@keyframes sheetIn { from { opacity: 0; transform: translateY(-8px) scale(.98); } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: calc(var(--nav-h) + 32px) 0 32px;
  min-height: min(100svh, 1000px);
  display: flex; flex-direction: column; justify-content: center;
  text-align: center;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__glow {
  position: absolute; left: 50%; top: 0; translate: -50% -45%;
  width: min(1200px, 160vw); aspect-ratio: 1.6; border-radius: 50%;
  background: radial-gradient(closest-side, var(--spot), transparent 75%);
}
.hero__inner { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; }


.status-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  font-size: 13.5px; font-weight: 500; color: var(--text-2);
  transition: border-color .3s;
}
.status-pill:hover { border-color: var(--line-2); }
.status-pill__sep { color: var(--text-3); }

.hero__copy { display: flex; flex-direction: column; align-items: center; }
/* Inter at display size: bold, not black; tracking per Inter's dynamic metrics (about -0.025em at 100px) */
.hero__title {
  margin: 22px 0 24px;
  font-size: clamp(46px, 7.4vw, 112px);
  font-weight: 700; letter-spacing: -.032em; line-height: 1.02;
  text-wrap: balance;
}
.hero__title .line { display: inline-block; white-space: nowrap; }
.hero__title .line > span { display: inline-block; }
.grad { color: var(--text-2); }
.js .is-ready .hero__title .line > span { animation: wordIn 1.1s var(--ease) both; }
.js .is-ready .hero__title .line + .line > span { animation-delay: .12s; }
@keyframes wordIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.hero__lead { max-width: 640px; font-size: clamp(17px, 1.5vw, 20px); color: var(--text-2); line-height: 1.5; }
.hero__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.hero__stats { display: flex; justify-content: center; margin: 44px 0 0; }
.hero__stats > div { display: flex; flex-direction: column-reverse; gap: 4px; padding: 0 clamp(18px, 3vw, 40px); }
.hero__stats > div + div { border-left: 1px solid var(--line-2); }
.hero__stats dt { font-size: 13px; color: var(--text-2); white-space: nowrap; }
.hero__stats dd { margin: 0; font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; letter-spacing: -.025em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hero__stats dd > span { font-size: .55em; font-weight: 500; color: var(--text-2); letter-spacing: 0; margin-right: .15em; }
.hero__stats small { font-size: .55em; font-weight: 500; color: var(--text-2); letter-spacing: 0; }

/* hero copy entrance */
.js .hero__copy > * { opacity: 0; transform: translateY(18px); }
.js .is-ready .hero__copy > * { animation: rise .9s var(--ease) .25s forwards; }
.js .is-ready .hero__copy > :nth-child(2) { animation-delay: .33s; }
.js .is-ready .hero__copy > :nth-child(3) { animation-delay: .43s; }
.js .is-ready .hero__copy > :nth-child(4) { animation-delay: .51s; }
.js .is-ready .hero__copy > :nth-child(5) { animation-delay: .59s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* marquee */
.marquee {
  margin-top: 44px; overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee__track span {
  padding: 0 28px; font-family: var(--mono); font-size: 13px; color: var(--text-2);
  text-transform: uppercase; letter-spacing: .08em; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 28px;
}
.marquee__track span::after { content: ""; width: 5px; height: 9px; background: var(--text-3); transform: skewX(-30deg); margin-left: 28px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(88px, 12vw, 160px) 0; position: relative; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 760px; margin-bottom: 56px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 7px; height: 13px; background: var(--text); transform: skewX(-30deg); }
.section h2 { font-size: clamp(36px, 5.4vw, 64px); letter-spacing: -.045em; }
.section__lead { margin-top: 20px; font-size: clamp(17px, 1.5vw, 20px); color: var(--text-2); max-width: 640px; }

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

/* ---------- Plans ---------- */
.plans__controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.billing { display: inline-flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; color: var(--text-2); }
.billing .save { font-style: normal; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 999px; margin-left: 4px; background: var(--surface-2); color: var(--text); border: 1px solid var(--line); }
.switch {
  position: relative; width: 51px; height: 31px; border-radius: 999px;
  background: var(--line-2); transition: background-color .3s var(--ease);
}
.switch span {
  position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%;
  background: #fff; box-shadow: 0 3px 8px rgba(0,0,0,.2), 0 1px 1px rgba(0,0,0,.1);
  transition: transform .45s var(--ease);
}
.switch[aria-checked="true"] { background: var(--ok-dot); }
.switch[aria-checked="true"] span { transform: translateX(20px); }

.plans__desc { color: var(--text-2); margin-bottom: 32px; max-width: 700px; min-height: 3.1em; }
.plans { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 16px; }
.plan {
  position: relative; display: flex; flex-direction: column;
  padding: 28px 24px 24px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform .5s var(--ease), border-color .3s, box-shadow .5s var(--ease);
  animation: planIn .7s var(--ease) both; animation-delay: calc(var(--i) * 60ms);
  overflow: hidden;
}
.plan:hover { transform: translateY(-4px); border-color: var(--line-2); }
@keyframes planIn { from { opacity: 0; transform: translateY(16px) scale(.985); } }
.plan--pop { border-color: var(--text); }
.plan__badge {
  position: absolute; top: 18px; right: 18px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .02em;
  padding: 5px 10px; border-radius: 999px; background: var(--btn-bg); color: var(--btn-fg);
}
.plan__name { font-size: 22px; letter-spacing: -.02em; }
.plan__price { display: flex; align-items: baseline; gap: 6px; margin: 18px 0 2px; }
.plan__amount { font-size: 44px; font-weight: 800; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.plan__per { color: var(--text-2); font-size: 15px; }
.plan__billed { font-size: 13px; color: var(--text-2); min-height: 1.4em; }
.plan__list { list-style: none; margin: 22px 0 26px; padding: 22px 0 0; border-top: 1px solid var(--line); display: grid; gap: 11px; font-size: 15px; }
.plan__list li { display: flex; gap: 10px; align-items: baseline; }
.plan__list li::before { content: ""; flex: none; width: 5px; height: 9px; background: var(--text-2); transform: skewX(-30deg) translateY(1px); }
.plan__list b { font-weight: 700; font-family: var(--mono); font-size: 14px; }
.plan .btn { margin-top: auto; }
.plans__note { margin-top: 28px; font-size: 14px; color: var(--text-2); text-align: center; }

/* ---------- Hardware ---------- */
.hw { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.spec { list-style: none; padding: 0; margin: 36px 0 0; border-top: 1px solid var(--line); }
.spec li { display: flex; justify-content: space-between; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.spec li span { color: var(--text-2); }
.spec li strong { font-family: var(--mono); font-weight: 500; font-size: 14px; text-align: right; }

/* single-thread benchmark: ours in ink, others muted; bars grow in on reveal */
.bench { margin: 0; }
.bench__frame {
  position: relative; max-width: 540px; margin-inline: auto;
  padding: 30px 30px 24px; border-radius: 26px;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(145deg, var(--line-2), transparent 40%, transparent 60%, var(--line-2)) border-box;
  border: 1px solid transparent;
  box-shadow: var(--shadow);
}
.bench__kicker { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.bench__hero { margin: 10px 0 28px; font-size: 17px; line-height: 1.35; color: var(--text-2); max-width: 400px; }
.bench__x {
  display: block; margin-bottom: 4px;
  font-size: clamp(56px, 7vw, 76px); font-weight: 800; letter-spacing: -.05em; line-height: 1;
  background: linear-gradient(180deg, var(--text) 35%, var(--text-2) 120%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.bench__rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.bench__row { --bar: var(--bar-mute); position: relative; }
.bench__row.is-ours { --bar: var(--text); }
.bench__label { display: flex; align-items: baseline; gap: 8px; margin-bottom: 7px; font-size: 14px; }
.bench__name { font-weight: 600; color: var(--text); }
.bench__row:not(.is-ours) .bench__name { font-weight: 500; color: var(--text-2); }
.bench__tag {
  padding: 1px 7px; border-radius: 999px; border: 1px solid var(--line-2);
  font-size: 11px; font-weight: 600; color: var(--text); letter-spacing: .02em;
}
.bench__meta { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--text-2); white-space: nowrap; }
.bench__track { display: flex; align-items: center; gap: 10px; height: 20px; }
.bench__bar {
  width: calc(var(--v) * (100% - 64px)); height: 18px; flex: none;
  background: var(--bar); border-radius: 0 4px 4px 0;
  transition: width 1.1s var(--ease) var(--d2, 0s), opacity .25s;
}
.bench__val { font-family: var(--mono); font-size: 14px; font-weight: 500; color: var(--text-2); font-variant-numeric: tabular-nums; transition: opacity .6s var(--ease) var(--d2, 0s); }
.bench__row.is-ours .bench__val { color: var(--text); font-weight: 600; }
.js .bench:not(.in) .bench__bar { width: 0; }
.js .bench:not(.in) .bench__val { opacity: 0; }
/* hovering one row calms the others */
.bench__rows:hover .bench__row:not(:hover) .bench__bar { opacity: .45; }
.bench__row::before { content: ""; position: absolute; inset: -9px -10px; } /* larger hit area */
.bench__axis { margin: 22px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--text-2); }
.bench__tip {
  position: absolute; z-index: 5; left: 0; top: 0; pointer-events: none;
  padding: 8px 11px; border-radius: 10px; min-width: 150px;
  background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  font-size: 12.5px; color: var(--text-2); line-height: 1.4;
  translate: -50% calc(-100% - 10px);
}
.bench__tip[data-side="right"] { translate: 0 -50%; }
.bench__tip b { display: block; color: var(--text); font-size: 13px; }
.bench__tip .mono { color: var(--text); }
.bench__cap { margin: 22px auto 0; max-width: 460px; text-align: center; font-size: 13px; color: var(--text-2); line-height: 1.5; }
.bench__cap a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; white-space: nowrap; }
.bench__cap a:hover { text-decoration-color: currentColor; }
@media (max-width: 480px) {
  .bench__frame { padding: 22px 18px 18px; }
  .bench__label { flex-wrap: wrap; row-gap: 2px; }
  .bench__meta { margin-left: 0; flex-basis: 100%; order: 3; }
}

/* ---------- Braille glyphs (unicode animations) ---------- */
.br { font-family: "DejaVu Sans Mono", "Segoe UI Symbol", "Apple Braille", var(--mono); letter-spacing: 0; line-height: 1; display: inline-block; white-space: pre; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.status-pill .br { width: 10px; font-size: 13px; color: var(--ok); }

/* ---------- Games ---------- */
.games { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; align-items: start; }
.games > * { min-width: 0; }
.games__list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.games__count { margin-top: 14px; font-size: 13px; color: var(--text-2); }
.gtile {
  --accent: #666;
  display: flex; flex-direction: column; text-align: left; width: 100%; min-width: 0;
  border-radius: var(--r); overflow: hidden; background: var(--surface); border: 1px solid var(--line);
  transition: transform .45s var(--ease), border-color .3s, box-shadow .45s var(--ease);
}
.gtile:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: var(--shadow); }
.gtile[aria-checked="true"] { border-color: var(--text); box-shadow: 0 0 0 1px var(--text), var(--shadow); }
.gtile__art {
  position: relative; aspect-ratio: 460 / 215; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(120% 120% at 20% 0%, color-mix(in srgb, var(--accent) 70%, #fff 0%), #0b0b0c 75%);
}
.gtile__art img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0;
  filter: grayscale(1) contrast(1.05) brightness(.9);
  transition: filter .6s var(--ease), transform .8s var(--ease), opacity .4s;
}
.gtile__art img.ok { opacity: 1; }
.gtile:hover .gtile__art img, .gtile[aria-checked="true"] .gtile__art img { filter: none; transform: scale(1.05); }
.gtile__icon { color: #fff; width: 38px; height: 38px; display: grid; place-items: center; filter: drop-shadow(0 4px 12px rgba(0,0,0,.4)); }
.gtile__icon svg { width: 100%; height: 100%; }
.gtile__icon b { font-size: 22px; font-weight: 800; letter-spacing: -.04em; }
.gtile__body { display: grid; gap: 2px; padding: 12px 14px 14px; min-width: 0; }
.gtile__name { font-weight: 700; font-size: 15px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gtile__sub { font-size: 12.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gtile__meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: 12px; color: var(--text-2); flex-wrap: wrap; }
.gtile__meta b { color: var(--text); }

/* panel preview: an always-dark "app window" */
.panel {
  --accent: #666;
  --p-bg: #0c0c0e; --p-bg2: #151518; --p-line: rgba(255,255,255,.08); --p-t: #ededf0; --p-t2: #9a9aa2;
  position: sticky; top: calc(var(--nav-h) + 28px);
  border-radius: var(--r-lg); overflow: hidden; background: var(--p-bg); color: var(--p-t);
  border: 1px solid rgba(255,255,255,.1); box-shadow: 0 40px 90px -40px rgba(0,0,0,.7);
  display: flex; flex-direction: column;
}
.panel__banner { position: relative; min-height: 196px; padding: 12px 16px 16px; display: flex; flex-direction: column; justify-content: space-between; isolation: isolate; }
.panel__art { position: absolute; inset: 0; z-index: -2; background: radial-gradient(120% 140% at 85% 0%, var(--accent), #0c0c0e 70%); }
.panel__art img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s; }
.panel__art img.ok { opacity: 1; }
.panel__banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgba(12,12,14,.35), rgba(12,12,14,.2) 30%, var(--p-bg) 100%); }
.panel__logo { position: absolute; right: 18px; top: 48px; max-width: 42%; max-height: 72px; object-fit: contain; filter: drop-shadow(0 6px 18px rgba(0,0,0,.6)); }
.panel__chrome { display: flex; align-items: center; gap: 12px; }
.panel__dots { display: flex; gap: 7px; }
.panel__dots i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.28); }
.panel__url { font: 12px var(--mono); color: rgba(255,255,255,.75); padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,.35); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.panel__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 48px; }
.panel__id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.panel__icon { flex: none; width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; }
.panel__icon svg { width: 28px; height: 28px; }
.panel__icon b { font-weight: 800; font-size: 17px; }
.panel__id h3 { font-size: 21px; letter-spacing: -.02em; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.panel__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 4px; font-size: 12.5px; color: var(--p-t2); }
.panel__meta code { font: 12px var(--mono); color: var(--p-t); }
.panel__state { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: #30d158; }
.panel__state.is-starting { color: #ffd60a; }
.panel__state.is-offline { color: #ff453a; }
.panel__state .br { font-size: 13px; }
.chip-btn {
  font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; min-height: 28px;
  background: rgba(255,255,255,.1); color: var(--p-t); border: 1px solid rgba(255,255,255,.12);
  transition: background-color .2s;
}
.chip-btn:hover { background: rgba(255,255,255,.2); }
.panel__power { display: flex; gap: 8px; flex: none; }
.pw { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); color: #fff; transition: background-color .2s, transform .3s var(--ease); }
.pw:hover { background: rgba(255,255,255,.2); }
.pw:active { transform: scale(.94); }
.pw svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pw path[d^="M8 5.5"] { fill: currentColor; }
.panel__tabs { display: flex; gap: 4px; padding: 0 12px; border-bottom: 1px solid var(--p-line); overflow-x: auto; scrollbar-width: none; }
.panel__tabs button {
  position: relative; padding: 12px 12px; font-size: 13.5px; font-weight: 600; color: var(--p-t2); white-space: nowrap;
  transition: color .2s;
}
.panel__tabs button::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: #fff; transform: scaleX(0); transition: transform .4s var(--ease); }
.panel__tabs button[aria-selected="true"] { color: #fff; }
.panel__tabs button[aria-selected="true"]::after { transform: scaleX(1); }
.panel__tabs button:focus-visible { outline-color: #fff; }
.panel__body { height: 300px; overflow: hidden; position: relative; }
.panel__body > [role="tabpanel"] { height: 100%; overflow-y: auto; padding: 14px 16px; animation: tabIn .45s var(--ease); scrollbar-width: thin; scrollbar-color: #333 transparent; }
@keyframes tabIn { from { opacity: 0; transform: translateY(6px); } }
.term { margin: 0; font: 12.5px/1.75 var(--mono); white-space: pre-wrap; word-break: break-word; }
.term .ln { display: block; animation: lnIn .3s var(--ease); }
@keyframes lnIn { from { opacity: 0; transform: translateX(-4px); } }
.term .t { color: #6e6e73; }
.term .ok { color: #30d158; }
.term .hl { color: #fff; font-weight: 500; }
.term .br { color: #ffd60a; }
.search { display: flex; align-items: center; gap: 8px; padding: 0 12px; height: 38px; border-radius: 10px; background: var(--p-bg2); border: 1px solid var(--p-line); }
.search:focus-within { border-color: rgba(255,255,255,.35); }
.search svg { width: 16px; height: 16px; fill: none; stroke: var(--p-t2); stroke-width: 1.8; stroke-linecap: round; }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--p-t); font: 14px var(--font); }
.search input::placeholder { color: #75757d; }
.panel__src { margin: 10px 0 6px; font-size: 12px; color: var(--p-t2); }
.panel__src b { color: var(--p-t); font-weight: 600; }
.mods, .files, .players { list-style: none; margin: 0; padding: 0; }
.mods li, .files li, .players li { display: flex; align-items: center; gap: 12px; padding: 9px 4px; border-bottom: 1px solid var(--p-line); font-size: 13.5px; }
.mods li:last-child, .files li:last-child, .players li:last-child { border-bottom: 0; }
.mods__ic { flex: none; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: color-mix(in srgb, var(--accent) 40%, #1c1c1f); color: #fff; }
.mods__txt { display: grid; min-width: 0; flex: 1; }
.mods__txt b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mods__txt small { font-size: 11.5px; color: var(--p-t2); }
.mods__act { flex: none; }
.mods__ok { font-size: 12px; font-weight: 600; color: #30d158; }
.mods__prog { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--p-t2); }
.mods__prog .bar { color: #fff; font-size: 13px; }
.mods__prog b { font: 500 11.5px var(--mono); color: var(--p-t); min-width: 36px; text-align: right; }
.mods__empty { color: var(--p-t2); justify-content: center; }
.files__ic svg { width: 18px; height: 18px; fill: none; stroke: var(--p-t2); stroke-width: 1.6; stroke-linejoin: round; display: block; }
.files code { flex: 1; min-width: 0; font: 12.5px var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.files__meta { flex: none; font: 11.5px var(--mono); color: var(--p-t2); }
.players b { flex: 1; font-weight: 600; }
.players__av { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #fff; background: hsl(var(--h) 35% 32%); }
.panel__stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding: 14px 16px; border-top: 1px solid var(--p-line); font-size: 11px; color: var(--p-t2); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.panel__stats > div { min-width: 0; }
.panel__stats strong { color: #fff; font: 500 12.5px var(--mono); letter-spacing: 0; text-transform: none; }
.panel__stats .meter { margin-top: 10px; height: 5px; border-radius: 3px; background: #2c2c2e; overflow: hidden; }
.panel__stats .meter i { display: block; height: 100%; width: 0; background: #f5f5f7; border-radius: inherit; transition: width 1s var(--ease); }
.spark { display: block; margin-top: 6px; font-size: 12px; color: #d8d8dc; overflow: hidden; max-width: 100%; }
.panel__demo { padding: 0 16px 12px; font-size: 11px; color: #6e6e73; }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card {
  position: relative; overflow: hidden; min-width: 0;
  padding: 30px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .6s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-3px); border-color: var(--line-2); }
.card--wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; align-items: center; }
.card--wide .card__icon, .card--wide h3, .card--wide p { grid-column: 1; }
.card--wide .chat { grid-column: 2; grid-row: 1 / span 3; }
.card__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 22px; }
.card__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 21px; letter-spacing: -.02em; margin-bottom: 10px; }
.card p { color: var(--text-2); font-size: 15.5px; }

/* DDoS card */
.card--ddos { grid-column: span 2; grid-row: span 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 28px; }
.card--ddos:hover { transform: none; }
.ddos__layers { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 8px; }
.ddos__layers li {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); font-size: 13.5px; color: var(--text-2);
  transition: color .4s, border-color .4s;
}
.ddos__layers b { font: 600 12px var(--mono); padding: 3px 7px; border-radius: 6px; background: var(--bg); color: var(--text); border: 1px solid var(--line); }
.ddos__layers i { position: absolute; inset: 0; background: linear-gradient(90deg, transparent, var(--glow), transparent); transform: translateX(-100%); }
.ddos__layers li.on { color: var(--text); border-color: var(--line-2); }
.ddos__layers li.on b { background: var(--btn-bg); color: var(--btn-fg); }
.ddos__layers li.on i { animation: sweep 1.2s var(--ease) infinite; }
@keyframes sweep { to { transform: translateX(100%); } }
.ddos__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 22px 0 0; }
.ddos__stats div { padding-top: 12px; border-top: 1px solid var(--line); }
.ddos__stats dt { font-size: 11.5px; color: var(--text-2); line-height: 1.3; }
.ddos__stats dd { margin: 4px 0 0; font-size: clamp(16px, 1.35vw, 20px); line-height: 1.2; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ddos__viz { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 18px; border-radius: 20px; background: var(--bg); border: 1px solid var(--line); }
.ddos__status { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ok); }
.ddos__status .br { font-size: 14px; }
.card--ddos.is-attack .ddos__status { color: var(--text); }
.ddos__chart { width: 100%; flex: 1 1 170px; min-height: 170px; overflow: visible; }
.ddos__grid line { stroke: var(--line); stroke-dasharray: 3 5; }
.ddos__in { fill: var(--text-3); opacity: .22; }
.ddos__inline { fill: none; stroke: var(--text-3); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.ddos__clean { fill: none; stroke: var(--ok-dot); stroke-width: 2.2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.ddos__toast { min-height: 1.4em; font-size: 13px; font-weight: 600; opacity: 0; transform: translateY(4px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.ddos__toast.show { opacity: 1; transform: none; }
.ddos__toast::before { content: "✓ "; color: var(--ok); }
.ddos__legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--text-2); }
.ddos__legend > span { display: inline-flex; align-items: center; gap: 6px; }
.ddos__legend i { width: 14px; height: 3px; border-radius: 2px; }
.lg-in { background: var(--text-3); }
.lg-cl { background: var(--ok-dot); }
.ddos__braille { display: grid; gap: 4px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); overflow: hidden; }
.ddos__braille div { display: flex; gap: 10px; align-items: center; min-width: 0; }
.ddos__braille div > span:first-child { font: 600 10.5px var(--mono); color: var(--text-2); flex: none; }
.ddos__braille .br { font-size: 13px; color: var(--text-2); overflow: hidden; }
.ddos__braille div:last-child .br { color: var(--ok); }
.ddos__profiles { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12px; color: var(--text-2); }
.ddos__profiles > span { margin-right: 4px; }
.ddos__profiles em { font-style: normal; font-weight: 600; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--text); }

.chat { display: grid; gap: 10px; padding: 8px 0; }
.bubble { max-width: 85%; padding: 10px 14px; border-radius: 20px; font-size: 14.5px; line-height: 1.4; }
.bubble--in { background: var(--surface-2); border-bottom-left-radius: 6px; }
.bubble--out { justify-self: end; background: var(--btn-bg); color: var(--btn-fg); border-bottom-right-radius: 6px; }
.chat__meta { justify-self: end; font-size: 12px; color: var(--text-2); }
.js .card--wide .bubble { opacity: 0; transform: translateY(10px) scale(.96); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .card--wide.in .bubble--in { opacity: 1; transform: none; transition-delay: .3s; }
.js .card--wide.in .bubble--out { opacity: 1; transform: none; transition-delay: 1.1s; }

/* ---------- Location ---------- */
.loc { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.loc > * { min-width: 0; }
.mapcard, .upcard { position: relative; padding: 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.mapcard__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.mapcard h3, .upcard h3 { font-size: 19px; letter-spacing: -.02em; }
#mapReadout { font-size: 13.5px; color: var(--text-2); min-height: 1.5em; }
#mapReadout b { color: var(--text); font-weight: 600; }
#mapReadout .mono { color: var(--ok); font-weight: 500; }
.czmap { position: relative; margin: 14px 0 8px; }
.czmap svg { width: 100%; height: auto; overflow: visible; }
.rg {
  fill: var(--map-fill); stroke: var(--map-line); stroke-width: 1.5; stroke-linejoin: round; cursor: pointer;
  transition: fill .3s var(--ease), filter .3s;
}
.rg:hover, .rg.on { fill: var(--map-hi); }
.rg:focus-visible { outline: none; fill: var(--map-hi); stroke: var(--text); stroke-width: 2; }
#CZ-PR { fill: var(--map-hi); }
.ray { fill: none; stroke: var(--text-2); stroke-width: 1.2; stroke-dasharray: 3 4; pointer-events: none; }
.ray--pulse { stroke: var(--text); stroke-width: 2; stroke-dasharray: 18 420; animation: rayPulse 1.6s linear infinite; }
@keyframes rayPulse { from { stroke-dashoffset: 438; } to { stroke-dashoffset: 0; } }
.ray__end { fill: var(--text); pointer-events: none; }
.czpin { pointer-events: none; }
.czpin__dot { fill: var(--ok-dot); stroke: var(--surface); stroke-width: 2.5; }
.czpin__halo { fill: none; stroke: var(--ok-dot); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: halo 2.4s var(--ease) infinite; }
.czpin__halo--2 { animation-delay: 1.2s; }
@keyframes halo { from { transform: scale(1); opacity: .9; } to { transform: scale(4.2); opacity: 0; } }
.czpin__label { font: 700 12px var(--font); fill: var(--text); pointer-events: none; paint-order: stroke; stroke: var(--surface); stroke-width: 4px; }
.maptip {
  position: absolute; z-index: 3; transform: translate(-50%, calc(-100% - 14px)); pointer-events: none;
  display: grid; gap: 2px; padding: 8px 12px; border-radius: 12px; white-space: nowrap;
  background: var(--btn-bg); color: var(--btn-fg); font-size: 12.5px; box-shadow: 0 10px 30px -10px rgba(0,0,0,.5);
}
.maptip span { font-family: var(--mono); opacity: .85; }
.maptip .ok { color: inherit; opacity: 1; font-weight: 600; }
.regions { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.regions button { width: 100%; display: flex; justify-content: space-between; gap: 8px; padding: 8px 6px; border-bottom: 1px solid var(--line); font-size: 13.5px; text-align: left; border-radius: 6px; transition: background-color .2s; }
.regions button span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.regions button b { font: 500 12.5px var(--mono); color: var(--text-2); flex: none; }
.regions button:hover, .regions button.on { background: var(--surface-2); }
.regions button.on b { color: var(--ok); }
.eu { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--text-2); }
.eu > span:first-child { font-weight: 600; color: var(--text); width: 100%; }
.eu b { font: 500 12px var(--mono); color: var(--text); }

.upcard { display: flex; flex-direction: column; gap: 16px; }
.upcard__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.upcard__live { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; font-size: 12.5px; color: var(--text-2); }
.upcard__live .br { color: var(--ok); font-size: 13px; }
.link { font-size: 13px; font-weight: 600; white-space: nowrap; }
.link::after { content: " →"; }
.link:hover { text-decoration: underline; }
.upcard__controls { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; }
.seg--sm [role="radio"] { padding: 0 10px; min-width: 36px; height: 30px; font-size: 12.5px; white-space: nowrap; }
.seg--sm [role="radio"][aria-checked="true"] { background: var(--bg); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.upcard__big { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.upcard__big strong { font-size: 40px; font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.upcard__big span { font-size: 13px; color: var(--text-2); }
.upbars { display: grid; grid-template-columns: repeat(var(--n, 90), minmax(0, 1fr)); gap: 2px; height: 72px; align-items: end; }
.ub { height: var(--h); min-height: 0; border-radius: 3px; background: var(--ok-dot); opacity: .85; transform-origin: bottom; transition: opacity .2s, transform .2s var(--ease); padding: 0; }
.ub:hover, .ub:focus-visible { opacity: 1; transform: scaleY(1.06); outline-offset: 1px; }
.ub--maint { background: var(--text-3); }
.ub--inc { background: #ff9f0a; }
.upbars.grow .ub { animation: grow .7s var(--ease) both; animation-delay: calc(var(--i) * 5ms); }
@keyframes grow { from { transform: scaleY(0); } }
.upcard__legend { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--text-2); flex-wrap: wrap; }
.uptip {
  position: absolute; z-index: 3; transform: translate(-50%, calc(-100% - 10px)); pointer-events: none;
  display: grid; gap: 2px; padding: 8px 12px; border-radius: 12px; white-space: nowrap;
  background: var(--btn-bg); color: var(--btn-fg); font-size: 12.5px; box-shadow: 0 10px 30px -10px rgba(0,0,0,.5);
}
.uptip__n--inc::before { content: "● "; color: #ff9f0a; }
.uptip__n--maint::before { content: "● "; color: var(--text-3); }
.uptip__n--ok::before { content: "● "; color: var(--ok-dot); }

/* datacenter photo */
.dc { position: relative; margin: 16px 0 0; border-radius: var(--r-lg); overflow: hidden; background: #05070a; isolation: isolate; min-height: 420px; display: flex; align-items: flex-end; }
.dc img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; z-index: -2; transform: translateY(var(--py, 0)); will-change: transform; }
.dc::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0,0,0,.78), rgba(0,0,0,.35) 55%, rgba(0,0,0,0)), linear-gradient(to top, rgba(0,0,0,.55), transparent 50%); }
.dc__cap { padding: clamp(24px, 4vw, 48px); max-width: 620px; color: #f5f5f7; }
.dc__cap h3 { font-size: clamp(28px, 3.6vw, 44px); letter-spacing: -.04em; margin-bottom: 12px; }
.dc__cap p:not(.eyebrow) { color: rgba(245,245,247,.78); }
.eyebrow--light { color: rgba(245,245,247,.75); }
.eyebrow--light::before { background: #f5f5f7; }
.dc__badges { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.dc__badges li { font-size: 12.5px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.dc__note { position: absolute; right: 16px; bottom: 12px; font-size: 11px; color: rgba(255,255,255,.5); }

/* trust + payments */
.trust { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.trust li { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.trust svg { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pay { display: flex; align-items: center; gap: 16px; margin-top: 24px; min-width: 0; }
.pay__t { flex: none; font-size: 13px; color: var(--text-2); }
.pay__marquee {
  flex: 1; min-width: 0; display: flex; overflow: hidden; padding: 10px 0 12px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.pay__track { flex: none; display: flex; gap: 10px; margin: 0; padding: 0 10px 0 0; list-style: none; animation: payScroll 32s linear infinite; }
@keyframes payScroll { to { transform: translateX(-100%); } }
.pay__m {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 8px 14px; border-radius: 10px; font-size: 13px; font-weight: 600;
  color: var(--text-2); background: var(--surface-2); border: 1px solid var(--line);
  filter: grayscale(1); transition: color .35s var(--ease), background-color .35s var(--ease), filter .35s var(--ease), transform .35s var(--ease);
}
.pay__m svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.pay__m--gpay svg { width: 18px; height: 18px; }
.pay__word { font-size: 14px; font-weight: 600; letter-spacing: -.01em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* only the logo under the pointer (or focused) lights up in its brand colours; the strip stops meanwhile */
.pay__m:hover, .pay__m:focus-visible {
  filter: none; color: var(--c); background: #fff; border-color: rgba(0,0,0,.08);
  transform: translateY(-2px); box-shadow: 0 8px 22px -10px rgba(0,0,0,.45); outline: none;
}
.pay__marquee:has(.pay__m:hover) .pay__track, .pay__marquee:has(.pay__m:focus-visible) .pay__track { animation-play-state: paused; }
@supports not selector(:has(*)) { .pay__marquee:hover .pay__track { animation-play-state: paused; } }
@media (max-width: 640px) { .pay { flex-direction: column; align-items: stretch; gap: 8px; } .pay__t { text-align: center; } }
@media (prefers-reduced-motion: reduce) { .pay__marquee { overflow-x: auto; } .pay__track[aria-hidden] { display: none; } }
.footer__legal a { color: var(--text-2); }
.footer__legal a:hover { color: var(--text); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 4px; font-size: clamp(17px, 1.8vw, 20px); font-weight: 600; letter-spacing: -.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border-right: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor;
  transform: rotate(45deg) translate(-3px, -3px); transition: transform .45s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq__a { overflow: hidden; }
.faq__a p { padding: 0 4px 26px; color: var(--text-2); max-width: 680px; }

/* ---------- CTA ---------- */
.cta { padding: clamp(100px, 14vw, 180px) 0; text-align: center; position: relative; overflow: hidden; }
.cta::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 900px; aspect-ratio: 1; translate: -50% -50%;
  background: radial-gradient(closest-side, var(--glow), transparent); z-index: -1;
}
.cta__inner { display: flex; flex-direction: column; align-items: center; }
.cta__mark { width: 44px; height: 78px; margin-bottom: 32px; color: var(--text); }
.cta h2 { font-size: clamp(40px, 6.5vw, 80px); letter-spacing: -.05em; max-width: 900px; }
.cta p { margin-top: 18px; font-size: clamp(17px, 1.6vw, 21px); color: var(--text-2); }
.cta .hero__ctas { justify-content: center; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 64px 0 32px; font-size: 14px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 32px; }
.footer__brand p { margin-top: 14px; color: var(--text-2); max-width: 280px; }
.footer h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-2); font-weight: 600; margin-bottom: 14px; }
.footer__grid a:not(.brand) { display: block; padding: 5px 0; color: var(--text-2); transition: color .2s; }
.footer__grid a:not(.brand):hover { color: var(--text); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--text-2); }

/* language swap cross-fade */
.lang-swap [data-i18n], .lang-swap #plansGrid, .lang-swap #faqList, .lang-swap #productDesc { opacity: 0; filter: blur(4px); }
[data-i18n], #plansGrid, #faqList, #productDesc { transition: opacity .25s ease, filter .25s ease; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__tools { margin-left: auto; }
  .nav__burger { display: grid; }
  .plans { --cols: 2 !important; }
  .bento { grid-template-columns: 1fr 1fr; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card--ddos { grid-column: 1 / -1; grid-row: auto; }
  .games { grid-template-columns: 1fr; }
  .panel { position: relative; top: 0; }
  .games__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .loc { grid-template-columns: 1fr; }
  .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hw { grid-template-columns: 1fr; }
  .games__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card--ddos { grid-template-columns: 1fr; }
  .hero { min-height: 0; padding-top: calc(var(--nav-h) + 20px); }
  .hw { gap: 48px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: span 2; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav__cta { display: none; }
  .nav__inner { gap: 10px; padding-left: 16px; padding-right: 6px; }
  .brand__name { font-size: 16px; }
  .plans { --cols: 1 !important; }
  .plans__controls { flex-direction: column; align-items: stretch; }
  .seg--lg { display: flex; }
  .seg--lg button { flex: 1 1 auto; padding: 0 12px; font-size: 14px; }
  .billing { justify-content: center; }
  .bento { grid-template-columns: 1fr; }
  .card--ddos, .card--wide { grid-column: auto; }
  .card { padding: 24px; }
  .card--wide { grid-template-columns: 1fr; }
  .card--wide .chat { grid-column: 1; grid-row: auto; margin-top: 20px; }
  .games__list { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; margin-inline: -20px; padding: 4px 20px 8px; scrollbar-width: none; }
  .gtile { flex: 0 0 62%; scroll-snap-align: start; }
  .panel__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel__body { height: 320px; }
  .panel__head { flex-wrap: wrap; }
  .panel__logo { display: none; }
  .ddos__stats dd { font-size: 18px; }
  .regions { grid-template-columns: 1fr; }
  .mapcard, .upcard { padding: 18px; }
  .upbars { gap: 1px; }
  .trust { grid-template-columns: 1fr; }
  .dc { min-height: 480px; }
  .dc::after { background: linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,.3) 70%, rgba(0,0,0,.1)); }
  .hero__ctas .btn { flex: 1 1 100%; }
  .marquee { margin-top: 48px; }
  .hero__stats > div { padding: 0 10px; }
  .hero__stats dd { font-size: 20px; }
  .hero__stats dt { font-size: 11.5px; }
}
@media (max-width: 380px) {
  .brand__tld { display: none; }
  .hero__title { font-size: 40px; }
  .nav { padding-inline: 8px; }
  .nav__inner { gap: 6px; padding-left: 12px; padding-right: 4px; }
  .nav__tools { gap: 2px; }
  .icon-btn { width: 36px; height: 36px; }
  .brand { gap: 8px; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__brand { grid-column: auto; }
  .seg--lg button { padding: 0 8px; font-size: 13px; }
  .gtile { flex-basis: 78%; }
}

/* ---------- Cursor (mouse only, added by main.js) ---------- */
html.has-cursor, html.has-cursor * { cursor: none !important; }
html.has-cursor :is(input, textarea, [contenteditable="true"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]) { cursor: text !important; }
.cur {
  position: fixed; left: 0; top: 0; z-index: 10000; pointer-events: none;
  border-radius: 50%; opacity: 0;
  transition: opacity .25s;
}
.cur-on .cur { opacity: 1; }
.cur--dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--text); }
.cur--ring {
  width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border: 1.5px solid color-mix(in srgb, var(--text) 55%, transparent);
  transition: opacity .25s, width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background-color .35s var(--ease), border-color .35s, scale .2s var(--ease);
}
.cur-hot .cur--ring { width: 48px; height: 48px; margin: -24px 0 0 -24px; background: rgba(142, 142, 147, .12); border-color: #8e8e93; }
.cur-hot .cur--dot { opacity: 0; }
.cur-down .cur--ring { scale: .72; transition-duration: .25s, .35s, .35s, .35s, .35s, .35s, .12s; }
.cur-down .cur--dot { scale: 1.6; }
.cur--dot { transition: opacity .25s, scale .15s var(--ease); }
.cur-text .cur { opacity: 0; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .marquee__track { animation: none; }
  .js .reveal, .js .hero__copy > * { opacity: 1; transform: none; }
  .dc img { transform: none !important; }
}

/* uptime service switcher: scrolls sideways instead of overflowing on narrow phones */
.seg--wide { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg--wide::-webkit-scrollbar { display: none; }
@media (max-width: 640px) {
  .upcard__controls .seg--wide { width: 100%; }
  .upcard__controls .seg--wide [role="radio"] { flex: 1 0 auto; }
}
#euList { display: contents; }

.upevents { list-style: none; margin: 4px 0 0; padding: 0; border-top: 1px solid var(--line); }
.upevents__t { margin-top: 4px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--text-2); }
.upevents li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.upevents li:last-child { border-bottom: 0; }
.upevents i { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); }
.upevents .ev--inc i { background: #ff9f0a; }
.upevents time { font: 12px var(--mono); color: var(--text-2); }

/* ---------- libraries.dev effect islands (assets/js/fx) ---------- */
.fx-replaced { display: none !important; }
.fx-wrap--metal { display: inline-flex; vertical-align: middle; }
.fx-wrap--beam { min-width: 0; }
/* nav CTA: beam around a metal-ringed button */
.nav__cta-fx { display: inline-flex; border-radius: 999px; }
/* metal-fx paints its ring under the host and fills the pill itself: the button inside must be see-through */
.metal-fx-root .nav__cta, .metal-fx-root .cta .btn--primary, .cta .metal-fx-root .btn--primary { background: transparent; color: inherit; box-shadow: none; }
.metal-fx-root .nav__cta:hover, .cta .metal-fx-root .btn--primary:hover { background: rgba(127, 127, 127, .12); }
@media (max-width: 640px) { .nav__cta-fx, .fx-wrap:has(.nav__cta) { display: none !important; } }
.plan__badge-fx { position: absolute; top: 16px; right: 16px; z-index: 2; line-height: 0; }
.fx-liquid { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.fx-orb { display: inline-grid; place-items: center; width: 20px; height: 20px; vertical-align: middle; flex: none; }
.fx-orb canvas { display: block; }
.fx-orb--lg { width: 64px; height: 64px; }
.dc > * { position: relative; }
.dc > picture { position: static; }
.dc__cap { z-index: 2; }

/* datacenter photo pixel reveal */
.dc__gen { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; image-rendering: pixelated; transition: opacity .6s ease; }
.dc__gen.out { opacity: 0; }
