/* GPUlayer · ink ramp, one ember accent, Geist + Geist Mono */
@font-face { font-family: "Geist"; src: url("/assets/fonts/geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/assets/fonts/geist-mono.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #f4f5f7;
  --card: #ffffff;
  --raised: #eceff4;
  --text: #111827;
  --text-2: #4b5565;
  --muted: #677084;
  --line: rgba(17, 24, 39, 0.08);
  --line-2: rgba(17, 24, 39, 0.14);

  --ink-0: #07080d;
  --ink-1: #0b0d14;
  --ink-2: #11141c;
  --ink-3: #1a1e28;
  --ink-text: #eef0f5;
  --ink-text-2: #a3a9b8;
  --ink-muted: #7a8296;
  --ink-line: rgba(238, 240, 245, 0.08);

  --accent: #e8622c;
  --accent-ink: #b8461a;
  --live: #16a34a;
  --live-dark: #4cc38a;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --r-sm: 6px; --r: 10px; --r-card: 16px; --r-panel: 20px;
  --wrap: 1200px;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 500; }
p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.mono { font-family: var(--mono); font-feature-settings: "tnum"; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -48px; z-index: 100; background: var(--text); color: #fff; padding: 8px 12px; border-radius: var(--r); }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 20px; border-radius: var(--r); font-weight: 500; font-size: 15px; white-space: nowrap; border: 1px solid transparent; transition: background-color .16s var(--ease), border-color .16s var(--ease), color .16s var(--ease), transform .16s var(--ease); }
.btn:active { transform: scale(.98); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-dark { background: var(--text); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.12); }
.btn-dark:hover { background: #262c3a; }
.btn-ghost { background: var(--card); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { background: var(--raised); }
.btn-light { background: var(--ink-text); color: var(--ink-1); }
.btn-light:hover { background: #fff; }
.btn-outline-light { border-color: rgba(238,240,245,.18); color: var(--ink-text); }
.btn-outline-light:hover { background: var(--ink-3); }
.text-link { color: var(--accent-ink); text-decoration: underline; text-decoration-color: rgba(184,70,26,.3); text-underline-offset: 3px; transition: text-decoration-color .16s var(--ease); }
.text-link:hover { text-decoration-color: currentColor; }
.link-btn { color: var(--text-2); transition: color .16s var(--ease); }
.link-btn:hover { color: var(--text); }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.dot-live { background: var(--live); box-shadow: 0 0 0 3px rgba(22,163,74,.14); }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 40; background: rgba(244,245,247,.82); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s var(--ease); }
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; height: 64px; display: flex; align-items: center; gap: 40px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: -0.01em; color: var(--text); }
.brand-mark { color: var(--text); }
.nav-links { display: flex; gap: 4px; }
.nav-links a { padding: 8px 12px; border-radius: 8px; font-size: 14px; color: var(--text-2); transition: color .16s var(--ease), background-color .16s var(--ease); }
.nav-links a:hover { color: var(--text); background: rgba(17,24,39,.04); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.nav-text { font-size: 14px; color: var(--text-2); transition: color .16s var(--ease); }
.nav-text:hover { color: var(--text); }
.nav-toggle { display: none; width: 36px; height: 36px; border-radius: 8px; position: relative; }
.nav-toggle span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--text); transition: transform .2s var(--ease); }
.nav-toggle span:first-child { top: 14px; } .nav-toggle span:last-child { top: 20px; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }
.mobile-menu { padding: 8px 24px 20px; display: grid; gap: 2px; border-top: 1px solid var(--line); }
[hidden] { display: none !important; }
.mobile-menu a { padding: 12px 8px; font-size: 16px; border-radius: 8px; }
.mobile-menu a:hover { background: var(--raised); }

/* ---------- Hero ---------- */
.hero { padding: 80px 0 96px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 64px; align-items: center; }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-2); margin-bottom: 24px; }
.hero h1 { font-size: clamp(40px, 4.6vw, 64px); line-height: 1.04; letter-spacing: -0.03em; max-width: 15ch; text-wrap: balance; }
.hero-sub { margin-top: 24px; font-size: 18px; line-height: 1.6; color: var(--text-2); max-width: 34rem; }
.hero-actions { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-facts { margin: 48px 0 0; display: flex; gap: 40px; padding-top: 24px; border-top: 1px solid var(--line); max-width: 34rem; }
.hero-facts dt { font-size: 13px; color: var(--muted); }
.hero-facts dd { margin: 4px 0 0; font: 500 20px/1.2 var(--mono); letter-spacing: -0.01em; }

/* Console visual */
.console { background: var(--ink-1); color: var(--ink-text); border-radius: var(--r-panel); box-shadow: 0 24px 48px -16px rgba(11,13,20,.35), 0 0 0 1px rgba(11,13,20,.9); overflow: hidden; font-size: 14px; }
.console-bar { display: flex; align-items: center; justify-content: space-between; height: 48px; padding: 0 20px; border-bottom: 1px solid var(--ink-line); }
.console-title { font-weight: 500; }
.console-meta { font-size: 12px; color: var(--ink-muted); }
.console-body { padding: 20px; display: grid; gap: 20px; }
.console-label { font-size: 12px; color: var(--ink-muted); margin-bottom: 8px; }
.region-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.region-list li { display: grid; grid-template-columns: 44px 1fr 96px 52px; align-items: center; gap: 12px; height: 40px; padding: 0 12px; border-radius: 10px; color: var(--ink-text-2); border: 1px solid transparent; transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease); }
.region-list li.is-active { background: var(--ink-3); border-color: var(--ink-line); color: var(--ink-text); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.region-list .code { font-size: 12px; color: var(--ink-muted); }
.region-list li.is-active .code { color: var(--accent); }
.region-list .ms { font-size: 12px; text-align: right; }
.lat { height: 4px; border-radius: 2px; background: var(--ink-3); overflow: hidden; }
.lat i { display: block; height: 100%; width: var(--w); min-width: 4px; background: var(--ink-muted); border-radius: 2px; }
.is-active .lat i { background: var(--live-dark); }
.console-split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.console-plan { background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: 10px; padding: 12px; display: grid; gap: 4px; }
.console-plan strong { font-weight: 500; }
.console-plan span { font-size: 12px; color: var(--ink-muted); }
.console-log { font-size: 12px; line-height: 20px; color: var(--ink-text-2); background: var(--ink-0); border: 1px solid var(--ink-line); border-radius: 10px; padding: 12px; min-height: 104px; }
.console-log .ok { color: var(--live-dark); }
.console-progress { height: 2px; background: var(--ink-3); border-radius: 1px; overflow: hidden; margin-top: -8px; }
.console-progress i { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; }
.faceplate { display: flex; align-items: center; gap: 16px; height: 52px; padding: 0 20px; background: linear-gradient(#1c202b, #151821); border-top: 1px solid var(--ink-line); }
.bays { display: flex; gap: 4px; }
.bays i { width: 22px; height: 24px; border-radius: 3px; background: var(--ink-0); box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); position: relative; }
.bays i::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: 4px; height: 2px; border-radius: 1px; background: #2a2f3c; }
.leds { display: flex; gap: 8px; margin-left: auto; }
.led { width: 6px; height: 6px; border-radius: 50%; background: #2a2f3c; }
.led.on { background: var(--live-dark); }
.led.act { background: var(--accent); }
.plate-label { font-size: 11px; color: var(--ink-muted); }


/* ---------- GPU simulator (hero) ---------- */
.sim .console-body { gap: 16px; }
.sim-label-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.sim-label-row .console-label { margin: 0; }
.mini-seg { display: inline-flex; gap: 2px; padding: 2px; background: var(--ink-0); border: 1px solid var(--ink-line); border-radius: 8px; }
.mini-seg button { height: 26px; padding: 0 10px; border-radius: 6px; font: 500 12px var(--mono); color: var(--ink-muted); transition: background-color .16s var(--ease), color .16s var(--ease); }
.mini-seg button:hover { color: var(--ink-text); }
.mini-seg button[aria-checked="true"] { background: var(--ink-3); color: var(--ink-text); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.mini-seg-wide { display: grid; grid-template-columns: repeat(4, 1fr); width: 100%; }
.mini-seg-wide button { font-family: var(--font); font-size: 13px; height: 30px; padding: 0 6px; }
.gpu-list { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.gpu-list button { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; height: 36px; padding: 0 12px; border-radius: 8px; border: 1px solid transparent; text-align: left; font-size: 13px; color: var(--ink-text-2); transition: background-color .16s var(--ease), border-color .16s var(--ease), color .16s var(--ease); }
.gpu-list button:hover { background: var(--ink-2); color: var(--ink-text); }
.gpu-list button[aria-checked="true"] { background: var(--ink-3); border-color: var(--ink-line); color: var(--ink-text); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.gpu-list .g-vram { font-size: 11px; color: var(--ink-muted); }
.gpu-list .g-price { font-size: 12px; color: var(--ink-text-2); min-width: 40px; text-align: right; }
.gpu-list button[aria-checked="true"] .g-price { color: var(--accent); }
.sim-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--ink-line); border: 1px solid var(--ink-line); border-radius: 10px; overflow: hidden; }
.stat { background: var(--ink-2); padding: 12px; display: grid; gap: 4px; align-content: start; min-width: 0; }
.stat .console-label { margin: 0; }
.stat b { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.2; white-space: nowrap; font-feature-settings: "tnum"; }
.stat-sub { font-size: 12px; color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat.is-bad b { color: #f08a8d; }
.vbar { display: block; height: 4px; margin-top: 6px; border-radius: 2px; background: var(--ink-3); overflow: hidden; }
.vbar i { display: block; height: 100%; width: 100%; background: var(--live-dark); border-radius: 2px; transform-origin: left; transform: scaleX(.25); }
.stat.is-bad .vbar i { background: #e5484d; }
.sim-viz { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: end; height: 56px; padding: 8px 12px; background: var(--ink-0); border: 1px solid var(--ink-line); border-radius: 10px; box-sizing: content-box; }
.util { display: flex; gap: 4px; align-items: flex-end; height: 56px; }
.util i { width: 8px; height: 100%; border-radius: 2px; background: var(--ink-3); position: relative; overflow: hidden; transition: opacity .2s var(--ease); }
.util i::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 100%; background: var(--live-dark); transform-origin: bottom; transform: scaleY(var(--u, .03)); }
.util i.off { opacity: .25; }
.util i.off::after { display: none; }
.spark { width: 100%; height: 56px; overflow: visible; }
.spark-line { fill: none; stroke: var(--accent); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.spark-area { fill: rgba(232,98,44,.12); stroke: none; }
.sim-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sim-status { font-size: 12px; color: var(--ink-text-2); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sim-status.ok { color: var(--live-dark); }
.sim-status.bad { color: #f08a8d; }
.sim [data-run] { flex: none; min-width: 148px; }
.sim [data-run]:disabled { background: var(--ink-3); color: var(--ink-text-2); cursor: default; }
.slots { display: flex; gap: 4px; }
.slots i { width: 22px; height: 24px; border-radius: 3px; background: var(--ink-0); box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); position: relative; }
.slots i::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: 4px; height: 2px; border-radius: 1px; background: #2a2f3c; transition: background-color .2s var(--ease); }
.slots i.on::after { background: var(--live-dark); }
.slots i.busy::after { background: var(--accent); }
.gpu-tag { font: 500 11px/1 var(--mono); font-style: normal; color: var(--text-2); background: var(--raised); padding: 3px 6px; border-radius: 4px; margin-left: 6px; vertical-align: 2px; }

/* ---------- GPU pricing table ---------- */
.gpu-table { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-card); padding: 8px; }
.gt-head, .gt-row { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(0,1.1fr) minmax(0,.65fr) minmax(0,1fr) minmax(0,.65fr) minmax(0,1.45fr) minmax(0,1fr) 132px; gap: 16px; align-items: center; padding: 0 16px; }
.gt-head { height: 40px; font-size: 13px; color: var(--muted); }
.gt-head .r { text-align: right; }
.gt-row { min-height: 64px; border-radius: 10px; font-size: 14px; transition: background-color .16s var(--ease); }
.gt-row + .gt-row { box-shadow: 0 -1px 0 var(--line); }
.gt-row:hover, .gt-row.is-pick { background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.gt-row:hover + .gt-row, .gt-row.is-pick + .gt-row { box-shadow: none; }
.gt-row .mono { font-size: 13px; color: var(--text-2); }
.gt-plan { display: flex; align-items: center; gap: 8px; }
.gt-plan b { font-weight: 500; font-size: 16px; }
.gt-gpu { font-weight: 500; }
.gt-price { display: flex; align-items: baseline; justify-content: flex-end; gap: 2px; font-feature-settings: "tnum"; }
.gt-price .cur { font-size: 14px; color: var(--text-2); }
.gt-price .amt { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
.gt-price .per { font-size: 13px; color: var(--muted); margin-left: 2px; white-space: nowrap; }
.gt-row .btn { width: 100%; }

/* ---------- Sections ---------- */
.section { padding: 112px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 40rem; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; letter-spacing: -0.025em; }
.section-head p { margin-top: 16px; font-size: 17px; line-height: 1.6; color: var(--text-2); }

/* Locations */
.locations { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.map-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px; display: flex; align-items: center; }
.usmap { width: 100%; height: auto; }
.map-dots circle { fill: #d5d9e1; }
.map-arc { fill: none; stroke: var(--text); stroke-opacity: .38; stroke-width: 1.5; stroke-dasharray: 3 4; }
.map-halo { fill: var(--accent); opacity: .14; transition: opacity .2s var(--ease); }
.map-pin { fill: var(--accent); stroke: #fff; stroke-width: 2; }
.map-node text { font: 500 13px var(--mono); fill: var(--text); }
.map-node.is-hot .map-halo { opacity: .32; }
.region-table { list-style: none; margin: 0; padding: 8px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); display: grid; align-content: start; }
.region-table li { display: grid; grid-template-columns: 44px 1fr auto; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 14px 12px; border-radius: 10px; cursor: default; transition: background-color .16s var(--ease); }
.region-table li + li { box-shadow: 0 -1px 0 var(--line); }
.region-table li:hover, .region-table li.is-hot { background: var(--raised); box-shadow: none; }
.region-table li:hover + li, .region-table li.is-hot + li { box-shadow: none; }
.region-table .code { grid-row: span 2; font-size: 13px; color: var(--accent-ink); }
.region-table .city { font-weight: 500; }
.region-table .note { grid-column: 2; font-size: 12px; color: var(--muted); }
.region-table .dot { grid-row: 1 / span 2; grid-column: 3; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px; grid-column: span 2; display: flex; flex-direction: column; }
.tile h3 { font-size: 17px; line-height: 1.3; }
.tile p { margin-top: 8px; color: var(--text-2); font-size: 15px; line-height: 1.55; }
.tile-icon { color: var(--muted); margin-bottom: 20px; }
.tile-term { grid-column: span 4; grid-row: span 1; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 24px; padding: 24px; align-items: stretch; }
.tile-text { display: flex; flex-direction: column; justify-content: flex-end; padding: 8px 0; }
.term { margin: 0; background: var(--ink-1); color: var(--ink-text); border-radius: 12px; padding: 16px 20px; font-size: 12.5px; line-height: 1.7; overflow: auto; white-space: pre; }
.t-mute { color: var(--ink-muted); }
.caret { display: inline-block; width: 7px; height: 14px; background: var(--ink-text-2); vertical-align: -2px; }
.tile-ddos .filter-graph { margin-top: auto; padding-top: 24px; display: grid; gap: 8px; }
.fg-row { display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 12px; font-size: 12px; color: var(--muted); }
.fg-bar { height: 8px; background: var(--raised); border-radius: 4px; overflow: hidden; }
.fg-bar i { display: block; height: 100%; width: var(--w); background: #c4c9d3; border-radius: 4px; }
.fg-bar.clean i { background: var(--live); }
.tile-people .text-link { margin-top: auto; padding-top: 16px; font-family: var(--mono); font-size: 14px; align-self: flex-start; }

/* Pricing */
.section-pricing { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pricing-head { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.pricing-head > div:first-child { max-width: 36rem; }
.pricing-controls { display: grid; gap: 8px; justify-items: end; }
.seg { position: relative; display: inline-flex; padding: 4px; background: var(--raised); border-radius: 12px; isolation: isolate; }
.seg button { position: relative; z-index: 1; height: 36px; padding: 0 16px; border-radius: 8px; font-size: 14px; color: var(--text-2); transition: color .16s var(--ease); }
.seg button[aria-selected="true"], .seg button[aria-checked="true"] { color: var(--text); }
.seg-sm button { height: 30px; font-size: 13px; padding: 0 12px; }
.seg-thumb { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 0; background: var(--card); border-radius: 8px; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 0 0 1px var(--line); }
.plans { display: grid; gap: 16px; }
.plans-4 { grid-template-columns: repeat(4, 1fr); }
.plans-3 { grid-template-columns: repeat(3, 1fr); }
.plans[hidden] { display: none; }
.plan { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px; display: flex; flex-direction: column; gap: 24px; }
.plan-pick { background: var(--card); border-color: var(--line-2); box-shadow: 0 8px 24px rgba(17,24,39,.06); }
.plan header h3 { font-size: 20px; display: flex; align-items: center; gap: 8px; letter-spacing: -0.01em; }
.plan header p { margin-top: 4px; font-size: 14px; color: var(--muted); min-height: 42px; }
.tag { font: 500 12px/1 var(--font); color: var(--accent-ink); background: rgba(232,98,44,.1); padding: 4px 8px; border-radius: 6px; letter-spacing: 0; }
.price { display: flex; align-items: baseline; gap: 2px; font-feature-settings: "tnum"; }
.price .cur { font-size: 20px; color: var(--text-2); align-self: flex-start; margin-top: 6px; }
.price .amt { font-size: 44px; font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
.price .per { font-size: 14px; color: var(--muted); margin-left: 4px; }
.specs { list-style: none; margin: 0; padding: 0; display: grid; }
.specs li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.specs li span { color: var(--muted); }
.specs li b { font-weight: 500; font-family: var(--mono); font-size: 13px; text-align: right; }
.plan .btn { margin-top: auto; }
.plans-foot { margin-top: 32px; color: var(--text-2); text-align: center; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.faq-grid .section-head { position: sticky; top: 112px; margin-bottom: 0; }
.faq { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 20px 0; font-size: 17px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; background: linear-gradient(var(--muted), var(--muted)) center/12px 1.5px no-repeat, linear-gradient(var(--muted), var(--muted)) center/1.5px 12px no-repeat; transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq-cta { margin-top: 24px; }
.faq details p { padding: 0 48px 24px 0; color: var(--text-2); line-height: 1.65; }

/* CTA */
.cta-section { padding: 0 0 112px; }
.cta { position: relative; overflow: hidden; background: var(--ink-1); color: var(--ink-text); border-radius: 24px; padding: 64px; display: grid; grid-template-columns: 1fr auto; gap: 32px 48px; align-items: end; }
.cta h2 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.08; letter-spacing: -0.025em; max-width: 16ch; }
.cta p { margin-top: 16px; color: var(--ink-text-2); font-size: 17px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }
.cta-rack { position: absolute; top: 32px; right: 32px; display: grid; gap: 6px; opacity: .9; }
.cta-rack span { width: 120px; height: 10px; border-radius: 3px; background: var(--ink-3); box-shadow: inset 0 0 0 1px var(--ink-line); position: relative; }
.cta-rack span::after { content: ""; position: absolute; right: 6px; top: 3px; width: 4px; height: 4px; border-radius: 50%; background: #2a2f3c; }
.cta-rack span.on::after { background: var(--accent); }

/* Footer */
.footer { background: var(--card); border-top: 1px solid var(--line); padding-top: 64px; overflow: hidden; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.footer-brand p { margin-top: 16px; color: var(--text-2); max-width: 26rem; line-height: 1.6; }
.status-line { margin-top: 20px; display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-2); }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.footer .footer-contact { margin-top: 48px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 40px; }
.fc-link { display: inline-flex; align-items: center; gap: 10px; }
.fc-link svg { color: var(--muted); flex: none; transition: color .16s var(--ease); }
.fc-link:hover svg { color: var(--text); }
.fc-link .mono { font-size: 13px; }
.addr.fc-link svg { margin-top: 2px; }
.footer .footer-contact .addr { align-items: flex-start; margin-left: auto; max-width: 26rem; }
.footer h3 { font-size: 14px; color: var(--muted); font-weight: 400; margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer li { font-size: 14px; }
.footer li a, .footer li .link-btn { color: var(--text-2); transition: color .16s var(--ease); font-size: 14px; text-align: left; }
.footer li a:hover, .footer li .link-btn:hover { color: var(--text); }
.footer .addr { color: var(--muted); line-height: 1.55; max-width: 22ch; }
.footer-wordmark { margin-top: 64px; font-weight: 600; font-size: clamp(64px, 17vw, 232px); line-height: 1; letter-spacing: -0.055em; color: var(--raised); user-select: none; margin-bottom: -0.04em; }
.footer-bottom { position: relative; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px 0 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); background: var(--card); }

/* ---------- Legal pages ---------- */
.legal { padding: 80px 0 112px; }
.legal-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; align-items: start; }
.legal-side { position: sticky; top: 96px; display: grid; gap: 24px; }
.legal-side nav { display: grid; gap: 2px; }
.legal-side nav a { padding: 8px 12px; border-radius: 8px; font-size: 14px; color: var(--text-2); transition: background-color .16s var(--ease), color .16s var(--ease); }
.legal-side nav a:hover { background: var(--raised); color: var(--text); }
.legal-side nav a[aria-current="page"] { background: var(--card); color: var(--text); box-shadow: 0 0 0 1px var(--line); }
.legal-side .side-label { font-size: 13px; color: var(--muted); padding: 0 12px; margin-bottom: 4px; }
.toc { display: grid; gap: 2px; border-left: 1px solid var(--line-2); margin-left: 12px; }
.toc a { font-size: 13px; color: var(--muted); padding: 4px 0 4px 12px; margin-left: -1px; border-left: 1px solid transparent; transition: color .16s var(--ease), border-color .16s var(--ease); }
.toc a:hover, .toc a.is-current { color: var(--text); border-left-color: var(--text); }
.doc { max-width: 44rem; }
.doc-head { padding-bottom: 32px; border-bottom: 1px solid var(--line); margin-bottom: 40px; }
.doc-head h1 { font-size: clamp(34px, 4vw, 52px); line-height: 1.06; letter-spacing: -0.03em; }
.doc-head p { margin-top: 16px; font-size: 17px; color: var(--text-2); line-height: 1.6; }
.doc-meta { margin-top: 20px; display: flex; gap: 24px; font-size: 13px; color: var(--muted); }
.doc h2 { font-size: 22px; letter-spacing: -0.01em; margin: 48px 0 12px; scroll-margin-top: 96px; }
.doc h3 { font-size: 16px; margin: 28px 0 8px; }
.doc p, .doc li { color: var(--text-2); line-height: 1.7; font-size: 15.5px; }
.doc p + p { margin-top: 12px; }
.doc ul, .doc ol { padding-left: 20px; margin: 12px 0; display: grid; gap: 6px; }
.doc strong { color: var(--text); font-weight: 500; }
.doc a:not(.btn) { color: var(--accent-ink); text-decoration: underline; text-decoration-color: rgba(184,70,26,.3); text-underline-offset: 3px; }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14.5px; }
.doc th, .doc td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.doc th { font-weight: 500; color: var(--muted); font-size: 13px; background: var(--raised); }
.doc th:first-child { border-radius: 8px 0 0 8px; } .doc th:last-child { border-radius: 0 8px 8px 0; }
.doc td { color: var(--text-2); font-feature-settings: "tnum"; }
.doc td.mono { font-size: 13.5px; color: var(--text); }
.doc .callout { margin: 24px 0; padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.doc .callout p { margin: 0; }
.contact-card { margin-top: 56px; padding: 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); display: grid; gap: 4px; }
.contact-card h2 { margin: 0 0 8px; font-size: 18px; }
.contact-card p { margin: 0 !important; }

/* ---------- 404 ---------- */
.nf { min-height: calc(100vh - 64px); display: grid; place-items: center; padding: 64px 0 96px; }
.nf-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.nf-code { font-family: var(--mono); font-size: 14px; color: var(--accent-ink); margin-bottom: 20px; }
.nf h1 { font-size: clamp(38px, 5vw, 64px); line-height: 1.04; letter-spacing: -0.03em; max-width: 12ch; }
.nf p { margin-top: 20px; font-size: 18px; color: var(--text-2); max-width: 30rem; line-height: 1.6; }
.nf-actions { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.nf-rack { background: var(--ink-1); border-radius: var(--r-panel); padding: 20px; display: grid; gap: 6px; box-shadow: 0 24px 48px -16px rgba(11,13,20,.35); }
.nf-unit { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 16px; height: 40px; padding: 0 16px; border-radius: 8px; background: var(--ink-2); border: 1px solid var(--ink-line); color: var(--ink-muted); font: 12px var(--mono); }
.nf-unit .bar { height: 4px; border-radius: 2px; background: var(--ink-3); }
.nf-unit .led { width: 6px; height: 6px; }
.nf-unit.empty { background: transparent; border-style: dashed; border-color: rgba(238,240,245,.16); color: var(--accent); }
.nf-unit.empty .bar { background: transparent; }
.nf-unit.empty span:last-child { color: var(--ink-text-2); }
.nf-term { margin-top: 12px; padding: 12px 16px; border-radius: 8px; background: var(--ink-0); color: var(--ink-text-2); font: 12px/1.7 var(--mono); }
.nf-term b { color: var(--accent); font-weight: 400; }

/* ---------- Cookie banner ---------- */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; display: flex; justify-content: center; pointer-events: none; }
.cookie[hidden] { display: none; }
.cookie-inner { pointer-events: auto; width: 100%; max-width: 960px; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-card); box-shadow: 0 16px 40px rgba(17,24,39,.14); padding: 20px 24px; }
.cookie-main { display: flex; align-items: center; gap: 24px; }
.cookie-copy { flex: 1; min-width: 0; }
.cookie h2 { font-size: 15px; }
.cookie p { margin-top: 4px; font-size: 14px; color: var(--text-2); line-height: 1.5; }
.cookie p a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.cookie-actions { display: flex; gap: 8px; flex: none; }
.cookie-prefs { margin-top: 20px; padding-top: 8px; border-top: 1px solid var(--line); }
.cookie-prefs ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.cookie-prefs li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cookie-prefs strong { display: block; font-size: 14px; font-weight: 500; }
.cookie-prefs li span { font-size: 13px; color: var(--muted); }
.cookie-save { display: flex; justify-content: flex-end; margin-top: 16px; }
.switch { position: relative; flex: none; width: 36px; height: 20px; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch input:disabled { cursor: not-allowed; }
.switch > span { position: absolute; inset: 0; border-radius: 10px; background: #cfd4dd; transition: background-color .16s var(--ease); }
.switch > span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .18s var(--ease); }
.switch input:checked + span { background: var(--text); }
.switch input:checked + span::after { transform: translateX(16px); }
.switch input:disabled + span { opacity: .5; }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }


/* ---------- Contact dialog ---------- */
.contact { padding: 0; border: 0; background: transparent; max-width: 560px; width: calc(100% - 32px); max-height: calc(100dvh - 32px); overflow: visible; color: var(--text); }
.contact::backdrop { background: rgba(11,13,20,.48); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.contact-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-panel); box-shadow: 0 24px 64px rgba(11,13,20,.24); padding: 28px; max-height: calc(100dvh - 32px); overflow: auto; }
.contact-head { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.contact-head h2 { font-size: 22px; letter-spacing: -0.015em; }
.contact-head p { margin-top: 6px; font-size: 14px; color: var(--text-2); line-height: 1.5; }
.contact-close { flex: none; width: 32px; height: 32px; margin: -4px -4px 0 0; border-radius: 8px; display: grid; place-items: center; color: var(--muted); transition: background-color .16s var(--ease), color .16s var(--ease); }
.contact-close:hover { background: var(--raised); color: var(--text); }
.contact-form { display: grid; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field > span { font-size: 13px; color: var(--text-2); font-weight: 500; }
.field > span i { font-style: normal; font-weight: 400; color: var(--muted); margin-left: 4px; }
.field input, .field select, .field textarea { width: 100%; font: 400 15px/1.4 var(--font); color: var(--text); background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r); padding: 10px 12px; transition: border-color .16s var(--ease), background-color .16s var(--ease), box-shadow .16s var(--ease); }
.field input, .field select { height: 42px; }
.field textarea { resize: vertical; min-height: 112px; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23677084' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(17,24,39,.22); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: var(--card); border-color: var(--text); box-shadow: 0 0 0 3px rgba(17,24,39,.08); }
.field input[readonly] { color: var(--text-2); background: var(--raised); }
.field-error { display: none; font-style: normal; font-size: 12px; color: #dc2626; }
.field.is-invalid input, .field.is-invalid textarea { border-color: #dc2626; }
.field.is-invalid .field-error { display: block; }
.contact-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.contact-submit { min-width: 112px; position: relative; }
.spinner { display: none; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.3); border-top-color: #fff; animation: spin .7s linear infinite; }
.contact-submit.is-busy .spinner { display: inline-block; }
.contact-submit:disabled { cursor: default; }
@keyframes spin { to { transform: rotate(360deg); } }
.contact-done { text-align: center; padding: 16px 8px 4px; display: grid; justify-items: center; gap: 8px; }
.contact-done:focus { outline: none; }
.done-mark { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(22,163,74,.1); color: var(--live); margin-bottom: 8px; }
.contact-done h2 { font-size: 22px; letter-spacing: -0.015em; }
.contact-done p { color: var(--text-2); font-size: 15px; line-height: 1.55; max-width: 26rem; }
.done-ref { font-size: 12px; color: var(--muted) !important; margin-bottom: 12px; }
@media (max-width: 640px) {
  .contact-panel { padding: 20px; }
  .field-row { grid-template-columns: 1fr; }
  .contact-actions .btn { flex: 1; }
}

/* ---------- Motion setup ---------- */
.js [data-hero], .js [data-reveal], .js [data-sim] { opacity: 0; }
.js.no-motion [data-hero], .js.no-motion [data-reveal], .js.no-motion [data-sim] { opacity: 1; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition-duration: 0s !important; } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero h1 { max-width: 14ch; }
  .console { max-width: 640px; }
  .plans-4 { grid-template-columns: repeat(2, 1fr); }
  .tile-term { grid-column: span 6; }
  .tile-ddos { grid-column: span 6; }
  .tile { grid-column: span 3; }
  .tile-people { grid-column: span 6; }
  .footer-top { grid-template-columns: 1fr; gap: 48px; }
  .footer-cols { margin-left: 0; }
  .footer .footer-contact .addr { margin-left: 0; }
}
@media (max-width: 860px) {
  .nav-links, .nav-text { display: none; }
  .nav-toggle { display: block; }
  .nav-actions { gap: 8px; }
  .locations { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; gap: 32px; }
  .faq-grid .section-head { position: static; }
  .plans-3 { grid-template-columns: 1fr; max-width: 480px; }
  .cta { grid-template-columns: 1fr; padding: 48px 32px; }
  .cta-rack { display: none; }
  .legal-grid { grid-template-columns: 1fr; gap: 32px; }
  .legal-side { position: static; }
  .toc { display: none; }
  .legal-side nav { display: flex; overflow-x: auto; gap: 4px; }
  .legal-side nav a { white-space: nowrap; }
  .legal-side .side-label { display: none; }
  .nf-inner { grid-template-columns: 1fr; gap: 48px; }
  .cookie-main { flex-direction: column; align-items: stretch; gap: 16px; }
  .cookie-actions { flex-wrap: wrap; }
  .cookie-actions .btn { flex: 1; }
  .cookie-prefs ul { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap, .nav-inner { padding: 0 20px; }
  .nav-actions .btn { display: none; }
  .hero { padding: 48px 0 72px; }
  .hero h1 { font-size: 40px; }
  .hero-sub { font-size: 17px; }
  .hero-actions .btn { flex: 1; }
  .hero-facts { gap: 24px; }
  .hero-facts dd { font-size: 18px; }
  .region-list li { grid-template-columns: 40px 1fr 48px; }
  .region-list .lat { display: none; }
  .console-split { grid-template-columns: 1fr; }
  .bays i:nth-child(n+6) { display: none; }
  .section { padding: 80px 0; }
  .bento { grid-template-columns: 1fr; }
  .tile, .tile-term, .tile-ddos, .tile-people { grid-column: auto; }
  .tile-term { grid-template-columns: 1fr; }
  .plans-4, .plans-3 { grid-template-columns: 1fr; max-width: none; }
  .pricing-controls { justify-items: start; width: 100%; }
  .plan header p { min-height: 0; }
  .map-card { padding: 12px; }
  .cta-section { padding-bottom: 80px; }
  .cta { padding: 40px 24px; border-radius: 20px; }
  .cta-actions .btn { width: 100%; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer .footer-contact { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 40px; }
  .cookie { left: 8px; right: 8px; bottom: 8px; }
  .cookie-inner { padding: 16px; }
}

@media (max-width: 1080px) {
  .gt-head { display: none; }
  .gt-row { grid-template-columns: repeat(3, 1fr); gap: 12px 16px; padding: 16px; }
  .gt-plan { grid-column: 1 / -1; }
  .gt-row [data-label]::before { content: attr(data-label); display: block; font: 400 12px var(--font); color: var(--muted); margin-bottom: 2px; }
  .gt-price { justify-content: flex-start; grid-column: span 2; }
}
@media (max-width: 640px) {
  .gpu-list { grid-template-columns: 1fr; }
  .gt-row { grid-template-columns: 1fr 1fr; }
  .gt-price { grid-column: auto; }
  .sim-stats { grid-template-columns: 1fr 1fr; }
  .sim-stats .stat:last-child { grid-column: span 2; }
  .slots i:nth-child(n+6) { display: none; }
  .sim-foot { flex-direction: column; align-items: stretch; }
  .mini-seg-wide { grid-template-columns: 1fr 1fr; }
  .plate-label { display: none; }
  .gt-row > span:last-child { grid-column: 1 / -1; }
  .gt-row [data-label="Interconnect"] { grid-column: 1 / -1; }
  .sim [data-run] { width: 100%; }
}
