/* ============================================================
   StealthRDP v2 — "Stealth Control Room" design system (v2)
   Fresh layout language: split hero + console card, bento grid,
   numbered sections, marquee, ticker. Self-hosted fonts only.
   ============================================================ */

@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/space-grotesk_500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/space-grotesk_700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter_400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter_500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter_600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('../fonts/jetbrains-mono_400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('../fonts/jetbrains-mono_600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #08090c;
  --bg-elev: #0c0e13;
  --surface-1: #10131a;
  --surface-2: #151a23;
  --surface-3: #1c2330;
  --border: #1d2430;
  --border-strong: #2b3547;
  --text: #eaeef5;
  --text-muted: #98a3b4;
  --text-dim: #5f6a7d;
  --accent: #f5b93b;
  --accent-hover: #ffc94d;
  --accent-soft: rgba(245, 185, 59, 0.09);
  --accent-glow: rgba(245, 185, 59, 0.2);
  --green: #2fd47c;
  --green-soft: rgba(47, 212, 124, 0.12);
  --red: #e5484d;
  --red-soft: rgba(229, 72, 77, 0.12);
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --container: 1200px;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-2: 0 12px 32px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 10px 36px rgba(245, 185, 59, 0.16);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; }
code, .mono { font-family: var(--font-mono); }
::selection { background: var(--accent); color: #141414; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; position: relative; }
.section-tight { padding: 64px 0; }

.section-head { max-width: 760px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); margin: 16px 0 14px; }
.section-head p { color: var(--text-muted); font-size: 17px; }

/* Numbered section label */
.sec-index {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-dim);
}
.sec-index::before { content: ""; width: 32px; height: 1px; background: var(--border-strong); }
.sec-index b { color: var(--accent); font-weight: 600; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(245, 185, 59, 0.25);
  padding: 6px 12px; border-radius: 999px;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 600; font-size: 15px; letter-spacing: 0.01em;
  padding: 14px 26px; border-radius: var(--radius-sm);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease);
  min-height: 48px; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #171204; box-shadow: var(--shadow-gold); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 12px 44px rgba(245, 185, 59, 0.28); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.btn-sm { padding: 10px 18px; min-height: 40px; font-size: 14px; }

/* ---------- Top ticker ---------- */
.ticker {
  position: relative; overflow: hidden;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--border);
  font-size: 12.5px;
}
.ticker-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 24px; max-width: var(--container); margin: 0 auto;
  font-family: var(--font-mono);
}
.ticker .left { display: flex; align-items: center; gap: 10px; color: var(--text-muted); min-width: 0; }
.ticker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px rgba(47,212,124,0.8); flex-shrink: 0; }
.ticker .dot.dim { background: var(--text-dim); box-shadow: none; }
.ticker .right { display: flex; align-items: center; gap: 10px; color: var(--text-muted); white-space: nowrap; }
.ticker b { color: var(--accent); font-weight: 600; }
.ticker .code { color: var(--accent); background: rgba(0,0,0,0.4); border: 1px solid rgba(245,185,59,0.3); padding: 1px 7px; border-radius: 5px; font-size: 11.5px; }
.ticker .promotion-note { color: var(--text-dim); }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 100; background: rgba(8, 9, 12, 0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.logo-mark { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, #1d2430, #0f1218); border: 1px solid var(--border-strong); display: grid; place-items: center; color: var(--accent); }
.logo-mark svg { width: 18px; height: 18px; }
.logo span em { font-style: normal; color: var(--accent); }

.nav { display: flex; align-items: center; gap: 2px; }
.nav a { position: relative; padding: 9px 14px; border-radius: 8px; font-size: 14.5px; font-weight: 500; color: var(--text-muted); transition: color 0.15s, background 0.15s; }
.nav a:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.nav a.active { color: var(--text); }
.nav a.active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 8px; border: 1px solid var(--border-strong); place-items: center; }
.nav-toggle svg { width: 20px; height: 20px; stroke: var(--text); }
.mobile-nav { display: none; flex-direction: column; padding: 12px 24px 20px; border-top: 1px solid var(--border); background: var(--bg-elev); }
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: 13px 4px; font-size: 16px; font-weight: 500; color: var(--text); border-bottom: 1px solid var(--border); }
.mobile-nav a:last-of-type { border-bottom: none; }
.mobile-nav .btn { margin-top: 14px; }

/* ---------- Hero (split) ---------- */
.hero { position: relative; padding: 88px 0 72px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; top: -200px; right: -160px;
  width: 760px; height: 620px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(245,185,59,0.09), rgba(245,185,59,0.03) 45%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 30% 0%, black 15%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 30% 0%, black 15%, transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}
.hero-copy .eyebrow { margin-bottom: 22px; }
.hero-copy h1 { font-size: clamp(42px, 5.2vw, 62px); letter-spacing: -0.03em; margin-bottom: 20px; }
.hero-copy h1 .gold { background: linear-gradient(100deg, var(--accent-hover), var(--accent) 45%, #d99a24); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-copy .sub { font-size: 17.5px; color: var(--text-muted); max-width: 500px; margin-bottom: 30px; line-height: 1.65; }
.hero-cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.hero-micro { font-size: 13.5px; color: var(--text-dim); margin-bottom: 40px; }
.hero-micro b { color: var(--text-muted); font-weight: 600; }
.hero-stats { display: flex; gap: 0; border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent); overflow: hidden; max-width: 520px; }
.hero-stat { flex: 1; padding: 18px 20px; border-right: 1px solid var(--border); }
.hero-stat:last-child { border-right: none; }
.hero-stat .num { font-family: var(--font-display); font-weight: 700; font-size: 26px; letter-spacing: -0.02em; }
.hero-stat .num .plus { color: var(--accent); }
.hero-stat .lbl { font-size: 11.5px; color: var(--text-dim); margin-top: 2px; }

/* Console card */
.console-card {
  background: linear-gradient(180deg, #12161f, #0c0f15);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2), 0 0 0 1px rgba(0,0,0,0.4);
  overflow: hidden;
  animation: floaty 7s var(--ease) infinite alternate;
}
@keyframes floaty { from { transform: translateY(0); } to { transform: translateY(-8px); } }
.console-head {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.console-head .c-dot { width: 10px; height: 10px; border-radius: 50%; }
.console-head .c-dot.r { background: #ff5f57; } .console-head .c-dot.y { background: #febc2e; } .console-head .c-dot.g { background: #28c840; }
.console-head .c-title { margin-left: 8px; font-family: var(--font-mono); font-size: 11.5px; color: var(--text-dim); }
.console-body { padding: 20px 20px 22px; font-family: var(--font-mono); font-size: 13px; line-height: 1.85; }
.console-line { color: var(--text-muted); white-space: pre-wrap; word-break: break-word; }
.console-line .cmd { color: var(--text); }
.console-line .ok { color: var(--green); }
.console-line .warn { color: var(--accent); }
.console-line .dim { color: var(--text-dim); }
.console-progress { height: 6px; border-radius: 3px; background: var(--surface-3); margin: 14px 0 6px; overflow: hidden; position: relative; }
.console-progress .bar { height: 100%; width: 0%; border-radius: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-hover)); transition: width 0.4s var(--ease); }
.console-progress .pct { font-size: 11px; color: var(--accent); }
.console-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding: 12px 20px; border-top: 1px solid var(--border); background: rgba(255,255,255,0.015);
}
.console-foot .chip { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); border: 1px solid var(--border); border-radius: 6px; padding: 4px 9px; }
.console-foot .chip b { color: var(--text); font-weight: 600; }
.console-ip { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 12px; color: var(--green); }
.console-ip .live { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 9px rgba(47,212,124,0.8); animation: blink 1.6s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ---------- Marquee OS strip ---------- */
.marquee { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-elev); overflow: hidden; padding: 22px 0; }
.marquee-track { display: flex; gap: 44px; width: max-content; animation: scrollx 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scrollx { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-item { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--text-muted); white-space: nowrap; }
.marquee-item svg { width: 17px; height: 17px; color: var(--text-dim); }
.marquee-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); margin-right: 8px; }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; flex-wrap: wrap; gap: 24px; } .console-card { animation: none; } }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.bento-card {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--surface-1), var(--bg-elev));
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 30px 28px;
  transition: border-color 0.22s var(--ease), transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.bento-card::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245,185,59,0.5), transparent);
  opacity: 0; transition: opacity 0.25s;
}
.bento-card:hover { border-color: var(--border-strong); transform: translateY(-3px); box-shadow: var(--shadow-2); }
.bento-card:hover::after { opacity: 1; }
.bento-card .bic { width: 46px; height: 46px; border-radius: 12px; margin-bottom: 18px; display: grid; place-items: center; background: var(--accent-soft); border: 1px solid rgba(245,185,59,0.25); color: var(--accent); }
.bento-card .bic svg { width: 22px; height: 22px; }
.bento-card h3 { font-size: 19px; margin-bottom: 10px; }
.bento-card p { color: var(--text-muted); font-size: 14px; line-height: 1.65; }
.bento-card .bstat { font-family: var(--font-display); font-weight: 700; font-size: 34px; letter-spacing: -0.02em; margin-bottom: 6px; }
.bento-card .bstat .plus { color: var(--accent); }
.bento-card .bstat-lbl { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-dim); }
.bento-wide { grid-column: span 6; }
.bento-2 { grid-column: span 3; }
.bento-3 { grid-column: span 2; }
@media (max-width: 900px) { .bento-2, .bento-3 { grid-column: span 6; } }

/* ---------- Use cases (numbered rows) ---------- */
.uc-list { display: grid; border-top: 1px solid var(--border); }
.uc-row {
  display: grid; grid-template-columns: 90px 1fr 1fr; gap: 24px; align-items: center;
  padding: 34px 8px; border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}
.uc-row:hover { background: rgba(255,255,255,0.015); }
.uc-num { font-family: var(--font-display); font-weight: 700; font-size: 34px; color: var(--text-dim); letter-spacing: -0.02em; }
.uc-row:hover .uc-num { color: var(--accent); }
.uc-main h3 { font-size: 21px; margin-bottom: 8px; }
.uc-main p { color: var(--text-muted); font-size: 14px; max-width: 380px; }
.uc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.uc-col { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; }
.uc-col .uc-tag { font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 8px; }
.uc-col.before .uc-tag { color: var(--red); }
.uc-col.after .uc-tag { color: var(--green); }
.uc-col p { font-size: 13px; color: var(--text-muted); line-height: 1.55; }
.uc-col.after p { color: var(--text); }
@media (max-width: 860px) {
  .uc-row { grid-template-columns: 1fr; gap: 14px; padding: 26px 4px; }
  .uc-num { font-size: 24px; }
}

/* ---------- Plans preview ---------- */
.plans-preview { background: var(--bg-elev); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.billing-toggle {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--surface-1); border: 1px solid var(--border);
  border-radius: 999px; padding: 4px; margin-bottom: 42px;
}
.billing-toggle button { font-size: 13px; font-weight: 600; padding: 9px 18px; border-radius: 999px; color: var(--text-dim); transition: all 0.18s var(--ease); white-space: nowrap; }
.billing-toggle button.active { background: var(--accent); color: #171204; }
.billing-toggle button .off { font-size: 11px; opacity: 0.85; }

.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 1040px; margin: 0 auto; }
.plan-card {
  position: relative; display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--surface-1), var(--bg-elev));
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 34px 30px 30px;
  transition: border-color 0.22s var(--ease), transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.plan-card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-2); }
.plan-card.popular { border-color: rgba(245,185,59,0.6); box-shadow: 0 0 0 1px rgba(245,185,59,0.25), var(--shadow-gold); transform: scale(1.02); }
.plan-popular {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--accent); color: #171204; padding: 5px 14px; border-radius: 999px; white-space: nowrap;
}
.plan-card .p-name { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.01em; }
.plan-card .p-desc { font-size: 13px; color: var(--text-dim); margin-top: 4px; }
.plan-price { margin: 20px 0 4px; display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.plan-price .cur { font-family: var(--font-display); font-weight: 700; font-size: 36px; letter-spacing: -0.03em; }
.plan-price .cur small { font-size: 15px; color: var(--text-muted); font-weight: 600; }
.plan-price .was { font-size: 14.5px; color: var(--text-muted); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.plan-specs { margin: 18px 0 24px; display: grid; gap: 10px; }
.plan-spec { display: flex; align-items: center; justify-content: space-between; font-size: 13.5px; }
.plan-spec .k { color: var(--text-dim); }
.plan-spec .v { font-family: var(--font-mono); font-weight: 600; font-size: 13px; color: var(--text); }
.plan-spec .sep { flex: 1; margin: 0 10px; border-bottom: 1px dashed var(--border); }
.plan-card .btn { margin-top: auto; width: 100%; }
.plans-preview .all-link { text-align: center; margin-top: 38px; }

/* ---------- Quote / testimonial ---------- */
.quote-block { max-width: 780px; margin: 0 auto; text-align: center; }
.quote-block .q-mark { font-family: var(--font-display); font-size: 64px; color: var(--accent); line-height: 1; margin-bottom: 12px; }
.quote-block .q-text { font-size: clamp(20px, 2.6vw, 28px); font-weight: 500; line-height: 1.45; letter-spacing: -0.01em; color: var(--text); }
.quote-block .q-who { margin-top: 22px; font-size: 14px; color: var(--text-muted); }
.quote-block .q-who b { color: var(--text); font-weight: 600; }
.quote-empty { text-align: center; padding: 40px 24px; color: var(--text-dim); border: 1px dashed var(--border); border-radius: var(--radius-lg); font-size: 14.5px; max-width: 640px; margin: 0 auto; }

/* ---------- CTA band (split) ---------- */
.cta-band { position: relative; padding: 100px 0; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 90% at 70% 120%, rgba(245,185,59,0.11), transparent 60%); }
.cta-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.cta-copy h2 { font-size: clamp(30px, 4vw, 46px); margin-bottom: 16px; }
.cta-copy p { color: var(--text-muted); font-size: 17px; max-width: 520px; }
.cta-copy .micro { margin-top: 18px; font-size: 13.5px; color: var(--text-dim); }
.cta-copy .micro b { color: var(--text-muted); }
.cta-actions { display: flex; flex-direction: column; gap: 14px; align-items: stretch; }
@media (max-width: 860px) { .cta-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); background: var(--bg-elev); padding: 64px 0 36px; }
.footer-status { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px; width: fit-content; margin-bottom: 44px; }
.footer-status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 9px rgba(47,212,124,0.7); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.footer .logo { margin-bottom: 16px; }
.footer-about p { font-size: 13.5px; color: var(--text-dim); max-width: 300px; line-height: 1.65; }
.footer h4 { font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 16px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { font-size: 14px; color: var(--text-dim); transition: color 0.15s; }
.footer-col a:hover { color: var(--accent); }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-1); border: 1px solid var(--border); color: var(--text-muted); transition: all 0.15s; }
.footer-social a:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.footer-social svg { width: 16px; height: 16px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: 24px; font-size: 12.5px; color: var(--text-dim); }
.footer-bottom .links { display: flex; gap: 18px; }
.footer-bottom .links a:hover { color: var(--accent); }

/* ---------- Page hero (subpages) ---------- */
.page-hero { padding: 72px 0 56px; position: relative; overflow: hidden; }
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 0%, black 15%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 0%, black 15%, transparent 70%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(34px, 4.6vw, 52px); margin: 18px 0 14px; }
.page-hero p { color: var(--text-muted); font-size: 17px; max-width: 640px; }

/* ---------- Compare table ---------- */
.compare-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.compare-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.compare-table th, .compare-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14px; }
.compare-table thead th { background: var(--surface-1); font-family: var(--font-display); font-size: 14px; color: var(--text-muted); white-space: nowrap; }
.compare-table thead th.popular { color: var(--accent); }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody td { color: var(--text-muted); }
.compare-table tbody td.k { color: var(--text-dim); font-family: var(--font-mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.05em; }
.compare-table tbody td.v { font-family: var(--font-mono); font-weight: 600; font-size: 13px; color: var(--text); }
.compare-table tbody td .btn { width: 100%; }

/* ---------- Status page ---------- */
.status-summary {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 48px;
}
.status-summary .ss-card { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; }
.status-summary .ss-card .ss-num { font-family: var(--font-display); font-weight: 700; font-size: 38px; letter-spacing: -0.02em; }
.status-summary .ss-card .ss-num.good { color: var(--green); }
.status-summary .ss-card .ss-num.warn { color: var(--accent); }
.status-summary .ss-card .ss-lbl { font-size: 13px; color: var(--text-dim); margin-top: 4px; }
.node-list { display: grid; gap: 12px; }
.node-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; transition: border-color 0.2s; }
.node-card:hover { border-color: var(--border-strong); }
.node-card .n-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.node-card .n-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.node-card .n-dot.up { background: var(--green); box-shadow: 0 0 10px rgba(47,212,124,0.7); }
.node-card .n-dot.down { background: var(--red); box-shadow: 0 0 10px rgba(229,72,77,0.7); }
.node-card .n-name { font-weight: 600; font-size: 15px; }
.node-card .n-target { font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.node-card .n-right { display: flex; align-items: center; gap: 22px; }
.node-card .n-uptime { text-align: right; }
.node-card .n-uptime .u-val { font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.node-card .n-uptime .u-val.good { color: var(--green); }
.node-card .n-uptime .u-lbl { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; }
.status-info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 64px; }

/* ---------- FAQ accordion ---------- */
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-item.open { border-color: var(--border-strong); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; font-size: 15.5px; font-weight: 600; text-align: left; }
.faq-q .icon { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex-shrink: 0; transition: transform 0.2s var(--ease); }
.faq-item.open .faq-q .icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s var(--ease); }
.faq-a-inner { padding: 0 22px 22px; color: var(--text-muted); font-size: 14.5px; line-height: 1.7; }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.blog-card { display: flex; flex-direction: column; background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: border-color 0.2s var(--ease), transform 0.2s var(--ease); }
.blog-card:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.blog-card .bc-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.blog-card .bc-cat { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.blog-card h3 { font-size: 18px; line-height: 1.3; }
.blog-card p { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; flex: 1; }
.blog-card .bc-meta { font-size: 12px; color: var(--text-dim); display: flex; gap: 10px; }
.blog-card .bc-link { color: var(--accent); font-size: 13.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 900px) { .blog-grid { grid-template-columns: 1fr; } }

/* ---------- Prose ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 26px; margin: 34px 0 12px; }
.prose p { color: var(--text-muted); font-size: 15.5px; margin-bottom: 16px; line-height: 1.75; }
.prose ul { display: grid; gap: 10px; margin: 0 0 18px; }
.prose ul li { position: relative; padding-left: 22px; color: var(--text-muted); font-size: 15px; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: 10px; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); }
.prose .note { border: 1px solid var(--border); border-left: 3px solid var(--accent); background: var(--surface-1); border-radius: var(--radius); padding: 18px 22px; font-size: 14px; color: var(--text-muted); margin: 22px 0; }

/* ---------- Animations ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { opacity: 0; animation: fadeUp 0.7s var(--ease) forwards; }
.d1 { animation-delay: 0.08s; } .d2 { animation-delay: 0.16s; } .d3 { animation-delay: 0.24s; } .d4 { animation-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-copy .sub { max-width: none; }
  .hero-stats { max-width: none; }
  .nav { display: none; }
  .nav-toggle { display: grid; }
  .header-actions .btn { display: none; }
  .plan-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .status-summary { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .hero { padding: 60px 0 56px; }
  .hero-stats { flex-direction: column; }
  .hero-stat { border-right: none; border-bottom: 1px solid var(--border); padding: 16px 20px; }
  .hero-stat:last-child { border-bottom: none; }
  .plan-grid { grid-template-columns: 1fr; max-width: 460px; }
  .bento-2, .bento-3 { grid-column: span 6; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .status-info-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .billing-toggle { flex-wrap: wrap; justify-content: center; }
}

/* ============================================================
   Control Room Pro upgrade
   ============================================================ */
.console-head-rich { justify-content: space-between; gap: 12px; }
.window-dots { display: flex; align-items: center; gap: 8px; }
.console-live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--green); font: 600 10px var(--font-mono); letter-spacing: .12em; }
.console-live .live, .console-foot-rich .live { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 9px rgba(47,212,124,.8); display: inline-block; animation: blink 1.6s infinite; }
.infrastructure-console { box-shadow: 0 22px 60px rgba(0,0,0,.58), 0 0 0 1px rgba(245,185,59,.06); }
.infrastructure-console .console-body { padding: 22px 22px 18px; }
.console-kicker { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--text-dim); font: 600 10px var(--font-mono); letter-spacing: .11em; margin-bottom: 15px; }
.console-kicker .mono { color: var(--accent); font-weight: 600; }
.console-command { padding: 10px 12px; background: rgba(0,0,0,.24); border: 1px solid var(--border); border-radius: 7px; color: var(--text); font: 12px var(--font-mono); margin-bottom: 13px; }
.console-command .prompt { color: var(--accent); margin-right: 8px; }
.deploy-steps { display: grid; gap: 8px; }
.deploy-step { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid transparent; border-radius: 8px; color: var(--text-muted); font: 12px var(--font-mono); }
.deploy-step.done { background: rgba(47,212,124,.035); border-color: rgba(47,212,124,.08); }
.deploy-step.active { background: var(--accent-soft); border-color: rgba(245,185,59,.18); }
.deploy-step .step-icon { width: 19px; height: 19px; display: grid; place-items: center; border-radius: 50%; color: var(--green); border: 1px solid rgba(47,212,124,.35); font-size: 11px; }
.deploy-step.active .step-icon { color: var(--accent); border-color: rgba(245,185,59,.55); animation: spinPulse 1.8s linear infinite; }
.deploy-step b { display: block; color: var(--text); font-weight: 600; font-size: 11.5px; }
.deploy-step small { display: block; color: var(--text-dim); font-size: 10px; margin-top: 2px; }
.deploy-step em { color: var(--green); font-style: normal; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.deploy-step.active em { color: var(--accent); }
@keyframes spinPulse { 0%,100% { opacity: .55; transform: rotate(0deg); } 50% { opacity: 1; transform: rotate(180deg); } }
.console-progress-meta { display: flex; align-items: center; justify-content: space-between; color: var(--accent); font: 11px var(--font-mono); }
.console-progress-meta span:last-child { color: var(--text-dim); }
.console-progress-meta b { color: var(--text-muted); font-weight: 500; }
.console-online-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 10px 12px; border: 1px solid rgba(47,212,124,.18); background: var(--green-soft); border-radius: 8px; font: 11px var(--font-mono); }
.online-region { color: var(--text-muted); white-space: nowrap; }
.console-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.console-metrics > div { padding: 9px 10px; border-top: 1px solid var(--border); }
.console-metrics span { display: block; color: var(--text-dim); font: 9px var(--font-mono); letter-spacing: .1em; }
.console-metrics b { display: block; color: var(--text); font: 600 11px var(--font-mono); margin-top: 4px; }
.console-foot-rich { color: var(--text-dim); font: 10.5px var(--font-mono); }
.console-foot-rich > span:first-child { color: var(--green); }
.console-foot-rich a { color: var(--accent); transition: color .18s; }
.console-foot-rich a:hover { color: var(--accent-hover); }

/* Trust/proof rail */
.trust-bar { background: linear-gradient(90deg, rgba(245,185,59,.025), transparent 42%, rgba(47,212,124,.025)); }
.trust-bar .container { justify-content: center; }
.proof-rail { padding: 34px 0; border-bottom: 1px solid var(--border); background: var(--surface-1); }
.proof-rail-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; max-width: 1200px; margin: 0 auto; }
.proof-item { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 6px 22px; border-right: 1px solid var(--border); text-align: left; }
.proof-item:first-child { padding-left: 22px; }
.proof-item:last-child { border-right: 0; }
.proof-icon { width: 36px; height: 36px; flex: 0 0 36px; display: grid; place-items: center; border-radius: 10px; color: var(--accent); background: var(--accent-soft); border: 1px solid rgba(245,185,59,.18); }
.proof-item > .proof-icon { display: flex; align-items: center; justify-content: center; }
.proof-icon svg { width: 18px !important; height: 18px !important; max-width: 18px !important; min-width: 18px; flex: 0 0 18px; }
.proof-item b { display: block; color: var(--text); font: 600 13px var(--font-display); }
.proof-item span { display: block; color: var(--text-dim); font-size: 11px; margin-top: 2px; }

/* Better feature hierarchy */
#why .bento-card:nth-child(1) { background: linear-gradient(135deg, rgba(245,185,59,.08), var(--surface-1) 42%); }
#why .bento-card:nth-child(2) { background: linear-gradient(135deg, rgba(47,212,124,.055), var(--surface-1) 42%); }
#why .bento-card:nth-child(3) { background: linear-gradient(135deg, rgba(93,145,255,.07), var(--surface-1) 42%); }
#why .bento-card:nth-child(1) .bic { color: var(--accent); }
#why .bento-card:nth-child(2) .bic { color: var(--green); background: var(--green-soft); border-color: rgba(47,212,124,.22); }
#why .bento-card:nth-child(3) .bic { color: #7fa9ff; background: rgba(93,145,255,.1); border-color: rgba(93,145,255,.22); }
.feature-meta { display: flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--text-dim); font: 10px var(--font-mono); text-transform: uppercase; letter-spacing: .1em; }
.feature-meta b { color: var(--text-muted); font-weight: 600; }

/* Section rhythm and pricing clarity */
.section-head { margin-bottom: 42px; }
.plans-preview .section-head { margin-bottom: 34px; }
.plans-preview .all-link { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.plans-preview .all-link::after { content: "USA + EU locations · Secure checkout"; color: var(--text-dim); font: 11px var(--font-mono); }
.plan-card .p-desc { min-height: 42px; }
.plan-card.popular { box-shadow: 0 0 0 1px rgba(245,185,59,.22), 0 18px 48px rgba(245,185,59,.11); }

/* Floating mobile conversion rail */
.mobile-deploy-rail { display: none; }

@media (max-width: 900px) {
  .proof-rail-grid { grid-template-columns: repeat(2, 1fr); gap: 18px 0; }
  .proof-item:nth-child(2) { border-right: 0; }
  .proof-item:nth-child(3), .proof-item:nth-child(4) { border-top: 1px solid var(--border); padding-top: 18px; }
  .proof-item:nth-child(3) { padding-left: 0; }
}
@media (max-width: 600px) {
  .ticker-inner { padding-left: 14px; padding-right: 14px; }
  .ticker .right > span:first-child { display: none; }
  .hero-copy h1 { font-size: clamp(38px, 12vw, 52px); }
  .hero-copy .sub { font-size: 16px; }
  .hero-cta .btn { width: 100%; }
  .console-kicker { font-size: 9px; }
  .console-online-row { align-items: flex-start; flex-direction: column; gap: 5px; }
  .console-metrics b { font-size: 10px; }
  .proof-rail { padding: 24px 0; }
  .proof-rail-grid { grid-template-columns: 1fr; gap: 0; }
  .proof-item, .proof-item:first-child, .proof-item:nth-child(3), .proof-item:nth-child(4) { padding: 13px 0; border-right: 0; border-top: 1px solid var(--border); }
  .proof-item:first-child { border-top: 0; }
  .mobile-deploy-rail { display: flex; position: fixed; z-index: 90; left: 12px; right: 12px; bottom: 12px; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 10px 9px 14px; background: rgba(16,19,26,.94); backdrop-filter: blur(14px); border: 1px solid var(--border-strong); border-radius: 12px; box-shadow: 0 14px 38px rgba(0,0,0,.55); }
  .mobile-deploy-rail span { color: var(--text-muted); font: 11px var(--font-mono); }
  .mobile-deploy-rail span b { color: var(--text); display: block; font-family: var(--font-display); font-size: 13px; }
  .mobile-deploy-rail .btn { min-height: 40px; padding: 9px 14px; font-size: 13px; }
  body { padding-bottom: 70px; }
}
@media (prefers-reduced-motion: reduce) { .deploy-step.active .step-icon { animation: none; } }

/* ============================================================
   Native documentation — Read / Explore surface
   Scoped to .docs-* so the marketing and status surfaces retain
   their existing control-room composition.
   ============================================================ */
.docs-surface { background: var(--bg); }
.docs-index-hero { padding: 48px 0 58px; border-bottom: 1px solid var(--border); background: linear-gradient(180deg, rgba(245,185,59,.035), transparent 78%); }
.docs-index-hero h1 { max-width: 760px; margin: 18px 0 14px; font-size: clamp(36px, 5vw, 58px); }
.docs-index-hero p { max-width: 690px; color: var(--text-muted); font-size: 17px; }
.docs-breadcrumbs { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; color: var(--text-dim); font: 11px var(--font-mono); letter-spacing: .06em; }
.docs-breadcrumbs a { color: var(--text-muted); }
.docs-breadcrumbs a:hover { color: var(--accent); }
.docs-index-section { padding-top: 58px; }
.docs-index-layout { display: grid; grid-template-columns: minmax(190px, .28fr) minmax(0, 1fr); gap: 52px; align-items: start; }
.docs-index-intro { position: sticky; top: 100px; padding-top: 8px; }
.docs-index-intro h2 { margin: 17px 0 11px; font-size: 25px; }
.docs-index-intro p { color: var(--text-muted); font-size: 14px; line-height: 1.7; margin-bottom: 20px; }
.docs-results { min-width: 0; }
.docs-controls { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 8px 14px; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.docs-controls label { color: var(--text-dim); font: 10px var(--font-mono); letter-spacing: .11em; text-transform: uppercase; }
.docs-controls input, .docs-controls select { width: 100%; min-height: 46px; color: var(--text); background: var(--surface-1); border: 1px solid var(--border-strong); border-radius: 8px; padding: 11px 13px; font: 14px var(--font-body); }
.docs-controls input { grid-column: 1; }
.docs-controls select { grid-column: 2; grid-row: 2; }
.docs-search-label { grid-column: 1; grid-row: 1; }
.docs-category-label { grid-column: 2; grid-row: 1; }
.docs-controls input::placeholder { color: var(--text-dim); }
.docs-controls input:focus, .docs-controls select:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.docs-results-bar { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 17px 0; color: var(--text-dim); font: 11px var(--font-mono); }
.docs-results-bar span:first-child { color: var(--text-muted); }
.docs-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.docs-card { display: flex; min-height: 228px; flex-direction: column; padding: 21px 21px 19px; background: linear-gradient(180deg, var(--surface-1), var(--bg-elev)); border: 1px solid var(--border); border-radius: var(--radius); }
.docs-card:hover { border-color: var(--border-strong); }
.docs-card[hidden] { display: none; }
.docs-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--text-dim); font: 10px var(--font-mono); }
.docs-category { color: var(--accent); font: 600 10px var(--font-mono); letter-spacing: .11em; text-transform: uppercase; }
.docs-card h2 { margin: 18px 0 9px; font-size: 19px; line-height: 1.25; }
.docs-card h2 a:hover { color: var(--accent); }
.docs-card p { flex: 1; color: var(--text-muted); font-size: 13px; line-height: 1.65; }
.docs-card-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--accent); font-size: 13px; font-weight: 600; }
.docs-card-link:hover { color: var(--accent-hover); }
.docs-empty { margin: 30px 0; padding: 25px; color: var(--text-muted); border: 1px dashed var(--border-strong); border-radius: var(--radius); text-align: center; }
.docs-article-page { padding: 45px 0 94px; }
.docs-article-layout { display: grid; grid-template-columns: minmax(0, 780px) 205px; gap: 58px; align-items: start; justify-content: center; }
.docs-article-column { min-width: 0; }
.docs-article-header { padding: 16px 0 29px; border-bottom: 1px solid var(--border); }
.docs-article-header h1 { margin: 14px 0 15px; font-size: clamp(31px, 4.7vw, 51px); }
.docs-summary { max-width: 680px; color: var(--text-muted); font-size: 17px; line-height: 1.7; }
.docs-source-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 21px; color: var(--text-dim); font: 11px var(--font-mono); }
.docs-source-meta span:first-child { color: var(--text-muted); }
.docs-content { padding-top: 30px; }
.docs-content h2, .docs-content h3, .docs-content h4 { scroll-margin-top: 90px; }
.docs-content h2 { margin: 39px 0 13px; font-size: 27px; }
.docs-content h3 { margin: 32px 0 11px; font-size: 21px; }
.docs-content h4 { margin: 25px 0 9px; font-size: 18px; }
.docs-content p { margin: 0 0 17px; color: var(--text-muted); font-size: 15.5px; line-height: 1.8; }
.docs-content strong { color: var(--text); font-weight: 600; }
.docs-content em { color: var(--text); }
.docs-content a { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(245,185,59,.35); text-underline-offset: 3px; }
.docs-content a:hover { color: var(--accent-hover); }
.docs-content ul, .docs-content ol { display: grid; gap: 10px; margin: 0 0 21px; padding-left: 22px; }
.docs-content ul { list-style: none; }
.docs-content ol { list-style: decimal; }
.docs-content ul li, .docs-content ol li { color: var(--text-muted); font-size: 15px; line-height: 1.7; padding-left: 4px; }
.docs-content ul li { position: relative; }
.docs-content ul li::before { content: ""; position: absolute; left: -17px; top: .68em; width: 6px; height: 6px; border-radius: 1px; background: var(--accent); }
.docs-content code { color: var(--accent-hover); background: rgba(245,185,59,.08); border: 1px solid rgba(245,185,59,.15); border-radius: 4px; padding: 2px 5px; font-size: .9em; }
.docs-code-wrap { margin: 21px 0 25px; border: 1px solid var(--border-strong); border-radius: var(--radius); overflow: hidden; background: #080a0e; }
.docs-code-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; border-bottom: 1px solid var(--border); background: rgba(255,255,255,.025); color: var(--text-dim); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.docs-copy { min-height: 30px; padding: 5px 10px; color: var(--text-muted); border: 1px solid var(--border-strong); border-radius: 5px; font: 11px var(--font-mono); }
.docs-copy:hover, .docs-copy[data-copy-state="copied"] { color: #171204; border-color: var(--accent); background: var(--accent); }
.docs-code { margin: 0; padding: 17px 18px; overflow-x: auto; color: #d7e0ee; font: 13px/1.75 var(--font-mono); tab-size: 2; white-space: pre; }
.docs-code code { padding: 0; color: inherit; background: transparent; border: 0; font-size: inherit; }
.docs-warning { margin: 25px 0 0; padding: 16px 18px; color: var(--text-muted); background: rgba(245,185,59,.07); border: 1px solid rgba(245,185,59,.3); border-left: 3px solid var(--accent); border-radius: 8px; font-size: 14px; line-height: 1.65; }
.docs-warning strong { color: var(--accent-hover); }
.docs-support { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 48px; padding: 25px; background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius); }
.docs-support h2 { margin: 12px 0 5px; font-size: 21px; }
.docs-support p { margin: 0; color: var(--text-muted); font-size: 13px; }
.docs-toc { position: sticky; top: 100px; padding: 14px 0 0 20px; border-left: 1px solid var(--border); }
.docs-toc-title { color: var(--text-muted); font: 600 10px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.docs-toc ol { display: grid; gap: 10px; margin-top: 15px; list-style: none; }
.docs-toc li { font-size: 12px; line-height: 1.45; }
.docs-toc li.toc-level-3, .docs-toc li.toc-level-4 { padding-left: 10px; }
.docs-toc a { color: var(--text-dim); }
.docs-toc a:hover { color: var(--accent); }
.docs-related { margin-top: 62px; padding-top: 29px; border-top: 1px solid var(--border); }
.docs-related-head h2 { margin: 12px 0 19px; font-size: 25px; }
.docs-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.docs-related-link { display: flex; min-height: 150px; flex-direction: column; gap: 9px; padding: 17px; background: var(--surface-1); border: 1px solid var(--border); border-radius: 8px; }
.docs-related-link:hover { border-color: var(--border-strong); }
.docs-related-link strong { flex: 1; font: 600 14px/1.4 var(--font-body); }
.docs-related-link > span:last-child { color: var(--accent); font-size: 12px; }
.status-failed { display: inline-block; width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 9px rgba(229,72,77,.65); }
.status-failure { display: flex; align-items: flex-start; gap: 13px; padding: 19px 21px; color: var(--text-muted); background: var(--red-soft); border: 1px solid rgba(229,72,77,.3); border-radius: var(--radius); }
.status-failure strong { display: block; color: var(--text); margin-bottom: 4px; }
.status-failure p { margin: 0; font-size: 13px; }
.status-source-note { margin: 12px 0 26px; color: var(--text-dim); font: 11px/1.6 var(--font-mono); }
.status-source-note-failure { color: var(--accent-hover); }
@media (max-width: 900px) {
  .docs-index-layout { grid-template-columns: 1fr; gap: 30px; }
  .docs-index-intro { position: static; max-width: 620px; }
  .docs-article-layout { grid-template-columns: minmax(0, 780px); }
  .docs-toc { position: static; grid-row: 1; padding: 16px 0 19px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); border-left: 0; }
  .docs-toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .ticker .promotion-note { display: none; }
  .docs-controls { grid-template-columns: 1fr; }
  .docs-controls input, .docs-controls select, .docs-search-label, .docs-category-label { grid-column: 1; grid-row: auto; }
  .docs-card-grid, .docs-related-grid { grid-template-columns: 1fr; }
  .docs-results-bar { align-items: flex-start; flex-direction: column; gap: 6px; }
  .docs-article-page { padding-top: 29px; }
  .docs-support { align-items: flex-start; flex-direction: column; }
  .docs-support .btn { width: 100%; }
  .docs-toc ol { grid-template-columns: 1fr; }
}
