:root {
  color-scheme: dark;
  --bg: #05050d;
  --bg-elevated: rgba(14, 15, 29, 0.78);
  --bg-card: rgba(16, 17, 34, 0.72);
  --bg-card-hover: rgba(24, 26, 50, 0.88);
  --ink: #f4f6ff;
  --muted: rgba(204, 198, 223, 0.72);
  --subtle: rgba(173, 168, 200, 0.52);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --violet: #6e3bff;
  --violet-hi: #8b5cf6;
  --lavender: #c4b5fd;
  --mint: #5eff88;
  --mint-dim: rgba(94, 255, 136, 0.14);
  --gold: #e5b869;
  --danger: #ff5c72;
  --radius: 16px;
  --radius-sm: 10px;
  --mono: "JetBrains Mono", "SFMono-Regular", "Cascadia Mono", ui-monospace, Consolas, monospace;
  --sans: "General Sans", "Space Grotesk", "PingFang SC", "Noto Sans SC", "Microsoft YaHei UI", system-ui, -apple-system, sans-serif;
  font-family: var(--sans);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  min-width: 300px;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, dl, dt, dd { margin: 0; }
p { line-height: 1.68; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }

.visually-hidden,
.skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999;
  padding: 10px 14px;
  background: var(--mint);
  color: #05050d;
  font-weight: 700;
  border-radius: 6px;
}

.wrap { width: min(1320px, calc(100% - 64px)); margin-inline: auto; }
.mono-code { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; }
.mono-num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.mint-text { color: var(--mint); }
.accent-dot { color: var(--mint); }

/* Edolus Zero-Layout-Shift TextScramble Cells */
.ts-char { position: relative; display: inline-block; }
.ts-ghost { visibility: hidden; }
.ts-over {
  position: absolute;
  inset: 0;
  text-align: center;
  color: var(--mint);
  opacity: 0.85;
}

/* Staggered Reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 620ms cubic-bezier(0.22, 1, 0.36, 1), transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Pulsing Telemetry Dot */
.pulse-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 12px var(--mint);
  flex: none;
  animation: kryon-pulse 2.2s ease-in-out infinite;
}
@keyframes kryon-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.82); }
}

/* ── Announcement Bar (Runpod style) ──────────────────────────────────────── */
.announcement-bar {
  position: relative;
  z-index: 30;
  background: linear-gradient(90deg, rgba(110, 59, 255, 0.16), rgba(94, 255, 136, 0.08), rgba(110, 59, 255, 0.16));
  border-bottom: 1px solid var(--line);
}
.announcement-inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-block: 6px;
  font-size: 0.8rem;
  color: var(--muted);
}
.announcement-copy {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.announcement-link {
  color: var(--lavender);
  font-weight: 600;
  white-space: nowrap;
  transition: color 160ms;
}
.announcement-link:hover { color: var(--mint); }
.mono-tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(110, 59, 255, 0.18);
  border: 1px solid rgba(139, 92, 246, 0.38);
  color: var(--lavender);
  white-space: nowrap;
}

/* ── Masthead Floating Glass Pill Nav (Runpod + Edolus) ───────────────────── */
.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background-color 280ms ease, backdrop-filter 280ms ease, border-color 280ms ease;
  border-bottom: 1px solid transparent;
}
.masthead.is-scrolled {
  background: rgba(6, 6, 16, 0.76);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
}
.nav-row {
  min-height: 76px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: fit-content;
}
.logo-emblem {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
}
.logo-emblem svg { width: 100%; height: 100%; }
.logo-wordmark {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.logo-wordmark strong {
  font-family: var(--mono);
  font-size: 1.06rem;
  letter-spacing: 0.22em;
  color: #fff;
}
.logo-wordmark em {
  font-style: normal;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
}

.top-links {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.top-links a {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 550;
  color: var(--muted);
  white-space: nowrap;
  transition: color 160ms, background 160ms;
}
.top-links a:hover,
.top-links a[aria-current="page"] {
  color: #fff;
  background: rgba(139, 92, 246, 0.2);
}

/* ── Buttons + Edolus Precision Corner Brackets ───────────────────────────── */
.button {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  font-size: 0.88rem;
  font-weight: 650;
  white-space: nowrap;
  transition: transform 160ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:active:not(:disabled) { transform: translateY(1px); }
.button:disabled { opacity: 0.45; cursor: not-allowed; }

.button-primary {
  background: linear-gradient(135deg, var(--violet), #5523df);
  border-color: rgba(196, 181, 253, 0.38);
  color: #fff;
  box-shadow: 0 8px 28px rgba(110, 59, 255, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.button-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #7e4dff, #632ef2);
  box-shadow: 0 10px 36px rgba(110, 59, 255, 0.5), 0 0 16px rgba(94, 255, 136, 0.16);
}

.button-glass {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line-strong);
  color: var(--ink);
  backdrop-filter: blur(10px);
}
.button-glass:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(196, 181, 253, 0.45);
}

.button-danger {
  background: rgba(255, 92, 114, 0.12);
  border-color: rgba(255, 92, 114, 0.36);
  color: #ff98a6;
}
.button-danger:hover:not(:disabled) {
  background: rgba(255, 92, 114, 0.22);
  border-color: rgba(255, 92, 114, 0.6);
}

/* Edolus INITIATE corner-dot brackets */
.button-bracket::before,
.button-bracket::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border-color: var(--mint);
  border-style: solid;
  pointer-events: none;
  transition: transform 200ms ease, opacity 200ms ease;
  opacity: 0.72;
}
.button-bracket::before {
  top: -3px;
  left: -3px;
  border-width: 1.5px 0 0 1.5px;
}
.button-bracket::after {
  right: -3px;
  bottom: -3px;
  border-width: 0 1.5px 1.5px 0;
}
.button-bracket:hover::before { transform: translate(-2px, -2px); opacity: 1; }
.button-bracket:hover::after { transform: translate(2px, 2px); opacity: 1; }

.connect-button {
  justify-self: end;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(196, 181, 253, 0.32);
}
.connect-button:hover {
  background: rgba(110, 59, 255, 0.24);
  border-color: var(--mint);
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--lavender);
  font-size: 0.88rem;
  font-weight: 600;
  transition: color 160ms;
}
.text-link:hover { color: var(--mint); }

/* ── HERO SECTION ─────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: 36px 56px;
  border-bottom: 1px solid var(--line);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.52;
  filter: saturate(1.15);
}
.hero-radial-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 55% at 72% 38%, rgba(110, 59, 255, 0.24), transparent 70%),
    radial-gradient(ellipse 40% 45% at 80% 72%, rgba(94, 255, 136, 0.10), transparent 70%),
    linear-gradient(180deg, rgba(5, 5, 13, 0.2) 0%, rgba(5, 5, 13, 0.72) 78%, var(--bg) 100%);
}
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 60% 40%, #000 18%, transparent 78%);
}

.hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  gap: 36px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.65rem, 4.9vw, 4.55rem);
  font-weight: 780;
  line-height: 1.06;
  letter-spacing: -0.045em;
}
.text-gradient {
  background: linear-gradient(110deg, #ffffff 10%, #c4b5fd 55%, #5eff88 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-description {
  margin-top: 18px;
  color: var(--muted);
  font-size: 1rem;
  max-width: 38em;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
}

.hero-metrics {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.metric-pill {
  position: relative;
  overflow: hidden;
  padding: 12px 13px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  transition: border-color 180ms;
}
.metric-pill::before,
.gpu-card::before,
.bento-card::before,
.workspace-instance::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(139, 92, 246, 0.16), transparent 65%);
  opacity: 0;
  transition: opacity 220ms;
  pointer-events: none;
}
.metric-pill:hover::before,
.gpu-card:hover::before,
.bento-card:hover::before,
.workspace-instance:hover::before { opacity: 1; }
.metric-pill:hover { border-color: rgba(196, 181, 253, 0.34); }
.metric-k { display: block; font-size: 0.72rem; color: var(--subtle); }
.metric-v {
  display: block;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 0.88rem;
  color: #fff;
}

/* Hero 3D Flagship Stage */
.hero-stage-shell {
  position: relative;
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(16, 17, 36, 0.86), rgba(7, 8, 18, 0.92));
  border: 1px solid rgba(196, 181, 253, 0.22);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.65), 0 0 60px rgba(110, 59, 255, 0.14);
  overflow: hidden;
}
.stage-chrome-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 5, 13, 0.55);
}
.stage-chip-id {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
}
.stage-drag-hint { color: var(--subtle); font-size: 0.68rem; }

.hero-canvas-wrap {
  position: relative;
  height: clamp(320px, 40vw, 430px);
  width: 100%;
  background: radial-gradient(ellipse at 50% 45%, rgba(110, 59, 255, 0.14), rgba(5, 5, 13, 0.96) 72%);
}
.hero-canvas-wrap canvas,
.showroom-canvas-frame canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

/* Ethiack Interactive Telemetry Beacons */
.telemetry-beacon {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 11px;
  border-radius: 8px;
  background: rgba(7, 9, 20, 0.82);
  border: 1px solid rgba(94, 255, 136, 0.34);
  backdrop-filter: blur(10px);
  text-align: left;
  transition: transform 180ms, border-color 180ms, box-shadow 180ms;
}
.telemetry-beacon:hover {
  transform: translateY(-2px);
  border-color: var(--mint);
  box-shadow: 0 8px 24px rgba(94, 255, 136, 0.16);
}
.beacon-tl { top: 14px; left: 14px; }
.beacon-br { right: 14px; bottom: 14px; }
.beacon-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 10px var(--mint);
  flex: none;
}
.telemetry-beacon.is-detected .beacon-dot { background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.telemetry-beacon.is-identified .beacon-dot { background: var(--violet-hi); box-shadow: 0 0 10px var(--violet-hi); }
.beacon-body { display: grid; gap: 2px; }
.beacon-code {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--mint);
  letter-spacing: 0.08em;
}
.telemetry-beacon.is-detected .beacon-code { color: var(--gold); }
.telemetry-beacon.is-identified .beacon-code { color: var(--lavender); }
.beacon-meta { font-family: var(--mono); font-size: 0.65rem; color: var(--muted); }

.hero-stage-footer {
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  background: rgba(7, 8, 18, 0.86);
  display: grid;
  gap: 12px;
}
.hero-hud-readout { display: grid; gap: 4px; }
.hud-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--muted);
}
.hud-plus { color: var(--mint); font-weight: 700; }
.hud-line b { color: #fff; margin-left: auto; }
.hud-sub { font-family: var(--mono); font-size: 0.7rem; color: var(--subtle); }

.hero-model-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.mini-pill {
  padding: 6px 11px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  transition: all 160ms;
}
.mini-pill:hover { border-color: rgba(196, 181, 253, 0.4); color: #fff; }
.mini-pill.is-active {
  background: rgba(110, 59, 255, 0.25);
  border-color: var(--violet-hi);
  color: #fff;
  box-shadow: 0 0 14px rgba(110, 59, 255, 0.35);
}

/* ── SECTION HEADS ────────────────────────────────────────────────────────── */
.market, .workspaces, .architecture { scroll-margin-top: 84px; }
.market { padding-block: 64px 56px; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.section-kicker {
  display: block;
  color: var(--mint);
  margin-bottom: 8px;
}
.section-head h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.7rem);
  font-weight: 760;
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.section-head p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.94rem;
  max-width: 56ch;
}
.source-link {
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--lavender);
  white-space: nowrap;
  transition: border-color 160ms, color 160ms;
}
.source-link:hover { border-color: var(--mint); color: var(--mint); }

/* ── LIVE 3D GPU HARDWARE SHOWROOM ────────────────────────────────────────── */
.gpu-showroom {
  --gpu-accent: #8b5cf6;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(290px, 0.85fr);
  gap: 16px;
  margin-bottom: 26px;
  padding: 16px;
  border-radius: 22px;
  background: linear-gradient(155deg, rgba(16, 17, 35, 0.84), rgba(7, 8, 17, 0.92));
  border: 1px solid var(--line-strong);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}
.showroom-viewport {
  display: grid;
  grid-template-rows: auto 1fr auto;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: radial-gradient(ellipse at 50% 42%, color-mix(in srgb, var(--gpu-accent) 16%, transparent), #05050d 72%);
}
.showroom-topbar,
.showroom-bottombar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(5, 5, 13, 0.72);
}
.showroom-topbar { border-bottom: 1px solid var(--line); }
.showroom-bottombar { border-top: 1px solid var(--line); }
.showroom-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
}
.showroom-status .sep { color: var(--subtle); }
.showroom-modes,
.cam-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.mode-btn,
.cam-btn {
  padding: 6px 11px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--muted);
  transition: all 150ms;
}
.mode-btn:hover,
.cam-btn:hover { color: #fff; border-color: rgba(196, 181, 253, 0.4); }
.mode-btn.is-active {
  background: rgba(94, 255, 136, 0.14);
  border-color: var(--mint);
  color: var(--mint);
}
.mono-hint { font-family: var(--mono); font-size: 0.7rem; color: var(--subtle); }

.showroom-canvas-frame {
  position: relative;
  min-height: 350px;
  height: clamp(320px, 34vw, 400px);
}
/* Corner CAD registration marks */
.corner-mark {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: rgba(255, 255, 255, 0.25);
  border-style: solid;
  pointer-events: none;
}
.cm-tl { top: 12px; left: 12px; border-width: 1.5px 0 0 1.5px; }
.cm-tr { top: 12px; right: 12px; border-width: 1.5px 1.5px 0 0; }
.cm-bl { bottom: 12px; left: 12px; border-width: 0 0 1.5px 1.5px; }
.cm-br { bottom: 12px; right: 12px; border-width: 0 1.5px 1.5px 0; }

/* Showroom Hardware Telemetry HUD */
.showroom-hud {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border-radius: 16px;
  background: rgba(9, 10, 22, 0.85);
  border: 1px solid var(--line);
}
.hud-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.arch-badge {
  padding: 4px 10px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--gpu-accent) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--gpu-accent) 45%, transparent);
  color: var(--gpu-accent);
}
.live-chip {
  color: var(--mint);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.live-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
}
.hud-title {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 760;
  letter-spacing: -0.03em;
}
.hud-spec-grid {
  display: grid;
  gap: 9px;
  padding-block: 12px;
  border-block: 1px solid var(--line);
}
.hud-spec-grid div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
}
.hud-spec-grid dt {
  font-family: var(--mono);
  color: var(--subtle);
  white-space: nowrap;
}
.hud-spec-grid dd {
  font-family: var(--mono);
  font-weight: 600;
  color: #fff;
  text-align: right;
}
.hud-die-preview {
  margin-top: auto;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}
.hud-die-preview img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(229, 184, 105, 0.4);
}
.hud-die-preview span { display: block; color: var(--gold); font-size: 0.68rem; }

/* ── MARKET GRID & GPU CARDS ──────────────────────────────────────────────── */
.market-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 20px;
  align-items: start;
}
.catalog-controls {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.catalog-search { flex: 1 1 220px; min-width: 0; }
.catalog-search input,
.catalog-filter select,
.offer-field select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: rgba(12, 13, 26, 0.9);
  color: var(--ink);
  font-size: 0.88rem;
  transition: border-color 160ms;
}
.catalog-search input:focus,
.catalog-filter select:focus,
.offer-field select:focus {
  outline: none;
  border-color: var(--violet-hi);
}
.catalog-search input::placeholder { color: var(--subtle); }
.catalog-filter { flex: none; min-width: 132px; }
.catalog-count { margin-left: auto; color: var(--muted); }

.tier-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.tier-btn {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  font-size: 0.8rem;
  font-weight: 550;
  color: var(--muted);
  transition: all 150ms;
}
.tier-btn:hover { color: #fff; border-color: rgba(196, 181, 253, 0.35); }
.tier-btn.is-active {
  background: rgba(110, 59, 255, 0.24);
  border-color: var(--violet-hi);
  color: #fff;
}

.inventory-scroll {
  max-height: clamp(380px, 60vh, 560px);
  overflow: auto;
  padding: 4px;
  margin: -4px;
  border-radius: var(--radius);
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 92, 246, 0.5) rgba(255, 255, 255, 0.04);
}
.inventory {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 0;
  border: 0;
  min-width: 0;
}

.gpu-card {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 204px;
  min-width: 0;
  padding: 14px 15px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-card);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}
.gpu-card:hover {
  transform: translateY(-2px);
  border-color: rgba(196, 181, 253, 0.42);
  background: var(--bg-card-hover);
}
.gpu-card:has(input:checked) {
  border-color: var(--mint);
  background: linear-gradient(160deg, rgba(94, 255, 136, 0.09), rgba(110, 59, 255, 0.14));
  box-shadow: 0 0 0 1px rgba(94, 255, 136, 0.55), 0 12px 32px rgba(94, 255, 136, 0.12);
}
.gpu-card:has(input:focus-visible) {
  outline: 2px solid var(--mint);
  outline-offset: 2px;
}
.gpu-card input,
.switch-row input {
  opacity: 0;
  position: absolute;
  width: 1px;
  height: 1px;
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.card-badges {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.generation {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--lavender);
  white-space: nowrap;
}
.jupyter-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 8px var(--mint);
  flex: none;
}
.card-check {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  flex: none;
}
.gpu-card:has(input:checked) .card-check {
  border-color: var(--mint);
  background: radial-gradient(circle, var(--mint) 0 4px, transparent 4.8px);
}

/* Miniature Hardware Form-Factor Visual inside each GPU card */
.card-hw-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 2px;
}
.card-hw-icon {
  width: 44px;
  height: 28px;
  flex: none;
  color: var(--lavender);
  opacity: 0.88;
}
.gpu-card:has(input:checked) .card-hw-icon { color: var(--mint); }

.gpu-name {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 720;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
.gpu-memory {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--mint);
}
.gpu-use {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}
.gpu-price {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px;
}
.gpu-price b {
  font-family: var(--mono);
  font-size: 1.26rem;
  font-weight: 740;
  color: #fff;
}
.gpu-price small {
  font-size: 0.72rem;
  color: var(--subtle);
}

.no-matches {
  color: var(--muted);
  padding: 28px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  text-align: center;
}

/* ── STICKY CHECKOUT CONSOLE ──────────────────────────────────────────────── */
.checkout {
  position: sticky;
  top: 92px;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(165deg, rgba(19, 20, 42, 0.9), rgba(10, 11, 24, 0.94));
  border: 1px solid rgba(196, 181, 253, 0.22);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(18px);
}
.checkout-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.checkout-heading h3 { font-size: 1.08rem; font-weight: 700; }

.checkout-credit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  padding: 11px 13px;
  border-radius: 10px;
  background: rgba(94, 255, 136, 0.08);
  border: 1px solid rgba(94, 255, 136, 0.28);
  font-size: 0.86rem;
}
.checkout-credit dt { color: var(--muted); }
.checkout-credit dd {
  font-family: var(--mono);
  color: var(--mint);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.chosen {
  display: grid;
  gap: 4px;
  padding: 12px 13px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}
.chosen strong { font-size: 1.04rem; color: #fff; }
.chosen span,
.small-print { font-size: 0.78rem; color: var(--muted); }

.offer-field {
  display: grid;
  gap: 6px;
  margin-top: 13px;
  font-size: 0.8rem;
  color: var(--muted);
}
.offer-detail {
  margin-top: 7px;
  font-size: 0.78rem;
  color: var(--lavender);
}
.quote-lines {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
}
.quote-lines div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.86rem;
}
.quote-lines dt { color: var(--muted); }
.quote-lines dd { font-weight: 700; }
.price-highlight { color: var(--gold); font-size: 1.04rem; }

.switch-row {
  margin-top: 12px;
  min-height: 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.86rem;
  position: relative;
}
.switch-track {
  position: relative;
  width: 38px;
  height: 22px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  transition: background 160ms, border-color 160ms;
  flex: none;
}
.switch-track::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform 160ms, background 160ms;
}
.switch-row input:checked + .switch-track {
  background: rgba(94, 255, 136, 0.25);
  border-color: var(--mint);
}
.switch-row input:checked + .switch-track::before {
  transform: translateX(16px);
  background: var(--mint);
}

.small-print { margin-top: 10px; line-height: 1.55; }
.checkout-button { width: 100%; margin-top: 14px; min-height: 48px; }
.reselect-gpu { display: none; }

.quote-feedback { margin-top: 10px; font-size: 0.8rem; color: var(--muted); }
.quote-feedback:empty { display: none; }
.quote-feedback[data-tone="alert"] { color: #ffae66; }
.quote-feedback[data-tone="success"] { color: var(--mint); }
.quote-retry { margin-top: 8px; width: 100%; }

/* ── MY WORKSPACES COMMAND DECK ───────────────────────────────────────────── */
.workspaces { padding-block: 48px 64px; border-top: 1px solid var(--line); }
.workspaces-shell {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: rgba(10, 11, 24, 0.88);
}
.workspaces-shader {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.45;
}
.account-surface {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 26px;
}
.account-surface h3 { font-size: 1.12rem; }
.account-surface p { color: var(--muted); font-size: 0.88rem; margin-top: 5px; }
.account-surface .button { margin-left: auto; }
.account-mark {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(110, 59, 255, 0.16);
  border: 1px solid rgba(139, 92, 246, 0.4);
  display: grid;
  place-items: center;
  flex: none;
}
.account-mark i {
  width: 20px;
  height: 16px;
  border: 1.5px solid var(--mint);
  border-radius: 4px;
  box-shadow: inset 0 -5px rgba(94, 255, 136, 0.3);
}

.workspace-dashboard {
  display: grid;
  gap: 18px;
  align-items: start;
  overflow-wrap: anywhere;
}
.dashboard-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.wallet-kicker { color: var(--mint); display: block; margin-bottom: 4px; }
.wallet-addr { color: #fff; font-size: 0.84rem; margin-top: 0 !important; }
.balance-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.balance-cell {
  padding: 9px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  display: grid;
  gap: 2px;
}
.balance-cell span { font-size: 0.72rem; color: var(--subtle); }
.balance-cell strong { font-size: 1.05rem; color: var(--mint); }
.balance-pill {
  padding: 7px 11px;
  border-radius: 8px;
  background: rgba(110, 59, 255, 0.14);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: var(--lavender) !important;
  font-size: 0.78rem !important;
  margin: 0 !important;
}

.workspace-count { color: var(--gold); margin: 0 !important; }
.workspace-list { display: grid; gap: 12px; width: 100%; }
.workspace-instance {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: rgba(15, 17, 34, 0.85);
}
.workspace-meta h3 { font-size: 1.06rem; color: #fff; }
.workspace-meta p { font-size: 0.84rem; margin-top: 4px; }
.renewal-line { color: var(--gold) !important; font-family: var(--mono); font-size: 0.78rem !important; }
.workspace-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.workspace-actions .button { margin: 0; min-height: 38px; padding: 0 13px; font-size: 0.82rem; }

.history-wrap { padding-top: 8px; border-top: 1px solid var(--line); }
.history-title { color: var(--subtle); margin-bottom: 8px; }
.workspace-history { padding-left: 18px; margin: 0; color: var(--muted); font-size: 0.84rem; display: grid; gap: 5px; }

/* ── ARCHITECTURE & TOPOLOGY + BENTO ──────────────────────────────────────── */
.architecture {
  position: relative;
  overflow: hidden;
  padding-block: 72px;
  border-top: 1px solid var(--line);
}
.arch-tunnel-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.52;
}
.arch-inner { position: relative; z-index: 2; }

.topology-card {
  border-radius: 20px;
  border: 1px solid var(--line-strong);
  background: rgba(7, 8, 19, 0.86);
  backdrop-filter: blur(14px);
  overflow: hidden;
  margin-bottom: 20px;
}
.topology-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--mint);
}
.muted-code { color: var(--subtle); }
#topology-canvas {
  display: block;
  width: 100%;
  height: 290px;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.bento-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(12, 13, 27, 0.88);
  display: flex;
  flex-direction: column;
  transition: transform 200ms ease, border-color 200ms ease;
}
.bento-card:hover {
  transform: translateY(-3px);
  border-color: rgba(196, 181, 253, 0.36);
}
.bento-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.bento-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}
.bento-card:hover .bento-media img { transform: scale(1.04); }
.bento-copy { padding: 18px; display: grid; gap: 8px; }
.bento-copy h3 { font-size: 1.08rem; font-weight: 700; }
.bento-copy p { font-size: 0.86rem; color: var(--muted); }
.bento-copy code,
.docs-article code {
  font-family: var(--mono);
  font-size: 0.82em;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(110, 59, 255, 0.16);
  color: var(--lavender);
}

/* ── PREFOOTER ETHIACK WAVE BAND & FOOTER ─────────────────────────────────── */
.prefooter-band {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  padding-block: 64px;
  background: #05050d;
}
.prefooter-shader {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.62;
}
.prefooter-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px;
  border-radius: 20px;
  background: rgba(7, 8, 19, 0.78);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(14px);
}
.prefooter-inner h2 {
  margin-top: 8px;
  font-size: clamp(1.5rem, 2.7vw, 2.2rem);
  letter-spacing: -0.03em;
}
.prefooter-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.footer { border-top: 1px solid var(--line); background: #04040a; }
.footer-row {
  min-height: 82px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-block: 18px;
}
.footer-brand { display: grid; gap: 4px; }
.footer-brand span { font-size: 0.82rem; color: var(--subtle); }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; font-size: 0.86rem; color: var(--muted); }
.footer-links a:hover { color: var(--mint); }

/* ── DOCS PAGE ────────────────────────────────────────────────────────────── */
.docs-page { padding-block: 32px 72px; }
.docs-hero {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  margin-bottom: 36px;
  min-height: 230px;
  display: grid;
  align-items: end;
}
.docs-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
}
.docs-hero-content {
  position: relative;
  z-index: 2;
  padding: 34px;
  background: linear-gradient(180deg, transparent, rgba(5, 5, 13, 0.92));
}
.docs-hero h1 { font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -0.04em; }
.docs-hero p { margin-top: 10px; color: var(--muted); max-width: 56ch; }

.docs-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 820px);
  gap: 40px;
}
.toc {
  align-self: start;
  position: sticky;
  top: 96px;
  display: grid;
  gap: 4px;
  padding-right: 20px;
  border-right: 1px solid var(--line);
}
.toc strong { color: var(--mint); margin-bottom: 8px; }
.toc a {
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.86rem;
  color: var(--muted);
  transition: all 150ms;
}
.toc a:hover { background: rgba(110, 59, 255, 0.16); color: #fff; }

.docs-article section {
  scroll-margin-top: 96px;
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.docs-article section:last-child { border-bottom: 0; }
.docs-article h2 { font-size: 1.6rem; margin-bottom: 12px; letter-spacing: -0.03em; }
.docs-article p,
.docs-article li { color: var(--muted); font-size: 0.95rem; line-height: 1.78; }
.docs-article p + p { margin-top: 10px; }
.docs-article ol,
.docs-article ul { padding-left: 1.35em; display: grid; gap: 8px; }
.docs-callout {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(94, 255, 136, 0.08);
  border: 1px solid rgba(94, 255, 136, 0.28);
}
.docs-callout strong { color: var(--mint); display: block; margin-bottom: 4px; }

.code-card {
  margin-block: 16px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: #070813;
  overflow: hidden;
}
.code-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--subtle);
}
.copy-code-btn {
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(110, 59, 255, 0.18);
  border: 1px solid rgba(139, 92, 246, 0.35);
  color: var(--lavender);
}
.copy-code-btn:hover { color: var(--mint); border-color: var(--mint); }
.code-card pre {
  margin: 0;
  padding: 14px 16px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.6;
  color: #e4e9ff;
}
.code-card pre code { background: none; padding: 0; color: inherit; }

/* ── MODALS ───────────────────────────────────────────────────────────────── */
.wallet-dialog {
  width: min(460px, calc(100vw - 28px));
  padding: 22px;
  border: 1px solid rgba(196, 181, 253, 0.28);
  border-radius: 18px;
  background: #0d0e1e;
  color: var(--ink);
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.8);
}
.wallet-dialog::backdrop {
  background: rgba(3, 3, 10, 0.78);
  backdrop-filter: blur(8px);
}
.dialog-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.icon-button {
  min-width: 40px;
  min-height: 40px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font-size: 1.3rem;
}
.icon-button:hover { border-color: var(--mint); color: var(--mint); }
.wallet-dialog h2 { font-size: 1.38rem; }
.wallet-dialog p { margin: 8px 0 14px; color: var(--muted); font-size: 0.9rem; }
.wallet-dialog .button { width: 100%; }
.wallet-dialog .button + .button,
#jupyter-link { margin-top: 8px; }
.ai-actions { margin-block: 14px 10px; }
.ai-actions .button { width: auto; flex: 1 1 120px; }
.wallet-dialog input[readonly] {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: rgba(5, 5, 13, 0.9);
  color: var(--mint);
  font: 0.8rem var(--mono);
}
.tunnel-code {
  margin-block: 6px;
  padding: 10px;
  border-radius: 8px;
  background: #05050d;
  border: 1px solid var(--line);
  font: 0.76rem var(--mono);
  color: var(--lavender);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* ── RESPONSIVE BREAKPOINTS ───────────────────────────────────────────────── */
@media (max-width: 1120px) {
  .wrap { width: calc(100% - 40px); }
  .hero-layout { grid-template-columns: 1fr; }
  .hero-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gpu-showroom { grid-template-columns: 1fr; }
  .market-grid { grid-template-columns: minmax(0, 1fr) minmax(270px, 320px); }
  .inventory { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .wrap { width: calc(100% - 28px); }
  .announcement-bar { display: none; }
  .nav-row { grid-template-columns: 1fr auto; gap: 10px; padding-block: 10px; }
  .top-links {
    grid-column: 1 / -1;
    grid-row: 2;
    overflow-x: auto;
    scrollbar-width: none;
    justify-content: flex-start;
  }
  .top-links::-webkit-scrollbar { display: none; }
  .connect-button { grid-row: 1; grid-column: 2; }
  .market-grid { grid-template-columns: 1fr; }
  .checkout { position: static; }
  .reselect-gpu { display: inline-flex; }
  .inventory-scroll { max-height: 440px; }
  .docs-layout { grid-template-columns: 1fr; gap: 20px; }
  .toc {
    position: static;
    display: flex;
    flex-wrap: wrap;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 0 0 12px;
  }
  .account-surface { flex-wrap: wrap; }
  .account-surface .button { margin-left: 0; width: 100%; }
  .beacon-br { display: none; }
}

@media (max-width: 520px) {
  .inventory { grid-template-columns: 1fr; }
  .hero-canvas-wrap { height: 290px; }
  .showroom-canvas-frame { min-height: 260px; height: 260px; }
  .prefooter-inner { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
