/* ============================================================
   PixelNetworks — Design System
   Technical dark theme · Space Grotesk + IBM Plex Sans/Mono
   Brand: #FF7518 (orange) · #2780E3 (blue) · #333333 greys
   ============================================================ */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

/* Orbital background: keep the raw <img> invisible until JS inlines the SVG and
   reframes it via viewBox — otherwise the art paints in the <img> framing first
   and visibly jumps to its final position. The inlined <svg> fades itself in. */
img[src$="orbital-bg.svg"]:not(.orbital-shown) { opacity: 0 !important; }

/* ---------- Tokens ---------- */
:root {
  /* surfaces */
  --bg:          #07080c;
  --bg-2:        #0a0c11;
  --surface:     #0f1117;
  --surface-2:   #14171f;
  --surface-3:   #1a1e28;
  --border:      rgba(255,255,255,0.08);
  --border-2:    rgba(255,255,255,0.14);

  /* text */
  --text:        #eef1f7;
  --text-2:      #a6aebd;
  --text-3:      #6b7385;

  /* brand */
  --blue:        #2780E3;
  --blue-2:      #4f9bf0;
  --blue-deep:   #1a5fb0;
  --orange:      #FF7518;
  --orange-2:    #ff9347;
  --orange-deep: #d65c0a;

  /* status (from app UI) */
  --green:       #34c77b;
  --red:         #f0506e;
  --amber:       #f0a020;

  /* per-app brand (from app logos) */
  --app-green:   #3aa84e;
  --app-violet:  #6c5ce7;

  /* effects */
  --glow-blue:   rgba(39,128,227,0.35);
  --glow-orange: rgba(255,117,24,0.30);

  /* type */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-sans:    'IBM Plex Sans', system-ui, sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, monospace;

  /* metrics */
  --maxw: 1200px;
  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 22px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

/* ---------- Custom scrollbar (matches the dark UI) ---------- */
html {
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.16) transparent;
}
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.14);
  border-radius: 999px;
  border: 3px solid transparent;
  background-clip: content-box;
  transition: background .2s var(--ease);
}
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.26); background-clip: content-box; }
::-webkit-scrollbar-thumb:active { background: rgba(39,128,227,0.55); background-clip: content-box; }
::-webkit-scrollbar-corner { background: transparent; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--orange); color: #0b0c10; }

/* Faint global texture: subtle radial in the corner */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 600px at 78% -8%, rgba(39,128,227,0.10), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(255,117,24,0.06), transparent 55%);
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { position: relative; z-index: 1; padding: 110px 0; }
.section--tight { padding: 74px 0; }
/* Tighten the gap between the capability-cards block and the following
   "See it work" section — kept consistent across all app pages. */
.section--tight:has(+ .section.bg-grid) { padding-bottom: 30px; }
.section--tight + .section.bg-grid { padding-top: 36px; }
main { position: relative; z-index: 1; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.05; letter-spacing: -0.02em; margin: 0; }
.h-display { font-size: clamp(40px, 6.4vw, 78px); font-weight: 600; letter-spacing: -0.035em; }
.h1 { font-size: clamp(34px, 4.6vw, 56px); letter-spacing: -0.03em; }
.h2 { font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -0.025em; }
.h3 { font-size: clamp(21px, 2.1vw, 27px); letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(18px, 1.5vw, 21px); color: var(--text-2); line-height: 1.62; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
strong { font-weight: 600; color: var(--text); }

/* mono eyebrow / kicker */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-2);
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--orange); box-shadow: 0 0 12px var(--glow-orange);
}
.eyebrow.is-blue::before { background: var(--blue); box-shadow: 0 0 12px var(--glow-blue); }

.grad-blue { color: var(--blue-2); }
.grad-orange { color: var(--orange-2); }
.text-gradient {
  background: linear-gradient(100deg, var(--orange) 0%, var(--orange-2) 30%, var(--blue-2) 78%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 22px; border-radius: 10px; border: 1px solid transparent;
  font-family: var(--font-sans); font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
  transition: transform .18s var(--ease), background .2s, border-color .2s, box-shadow .25s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: #14110d; box-shadow: 0 6px 26px -8px var(--glow-orange); }
.btn-primary:hover { background: var(--orange-2); box-shadow: 0 10px 34px -8px var(--glow-orange); transform: translateY(-1px); }
.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 6px 26px -8px var(--glow-blue); }
.btn-blue:hover { background: var(--blue-2); box-shadow: 0 10px 34px -8px var(--glow-blue); transform: translateY(-1px); }
.btn-ghost { background: rgba(255,255,255,0.04); color: var(--text); border-color: var(--border-2); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.25); transform: translateY(-1px); }
.btn-text { padding: 8px 0; color: var(--text); background: none; }
.btn-text:hover { color: var(--blue-2); }
.btn-text .arrow { transition: transform .2s var(--ease); }
.btn-text:hover .arrow { transform: translateX(4px); }
.btn-lg { padding: 16px 28px; font-size: 16px; }

/* ---------- Chips / tags ---------- */
.chip {
  display: inline-flex; align-items: flex-start; gap: 7px; max-width: 100%;
  white-space: normal; overflow-wrap: break-word;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.02em; line-height: 1.45;
  padding: 6px 12px; border-radius: 12px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border); color: var(--text-2);
}
.chip svg { width: 13px; height: 13px; flex: none; margin-top: 2px; }
.chip.is-blue  { color: var(--blue-2); border-color: rgba(39,128,227,0.35); background: rgba(39,128,227,0.10); }
.chip.is-orange{ color: var(--orange-2); border-color: rgba(255,117,24,0.35); background: rgba(255,117,24,0.10); }
.chip.is-green { color: var(--green); border-color: rgba(52,199,123,0.30); background: rgba(52,199,123,0.10); }
.chip.is-violet{ color: #9a8cf5; border-color: rgba(108,92,231,0.35); background: rgba(108,92,231,0.12); }
.chip.is-slate { color: var(--text-2); border-color: var(--border-2); background: rgba(255,255,255,0.05); }

/* ---------- Cards ---------- */
.card {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px;
  transition: transform .3s var(--ease), border-color .3s, background .3s;
}
.card:hover { border-color: var(--border-2); }
.card-hover:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.2); }

/* icon tile */
.icon-tile {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--surface-3); border: 1px solid var(--border-2); color: var(--text);
}
.icon-tile svg { width: 22px; height: 22px; }
.icon-tile.is-blue   { color: var(--blue-2);   background: rgba(39,128,227,0.12);  border-color: rgba(39,128,227,0.30); }
.icon-tile.is-orange { color: var(--orange-2); background: rgba(255,117,24,0.12);  border-color: rgba(255,117,24,0.30); }
.icon-tile.is-green  { color: #52c46e; background: rgba(58,168,78,0.14);  border-color: rgba(58,168,78,0.32); }
.icon-tile.is-violet { color: #9a8cf5; background: rgba(108,92,231,0.16); border-color: rgba(108,92,231,0.34); }
.icon-tile.is-slate  { color: #ced4e0; background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.16); }

/* ---------- Browser / device frames for screenshots ---------- */
.browser {
  border-radius: 14px; overflow: hidden; border: 1px solid var(--border-2);
  background: var(--surface-2);
  box-shadow: 0 40px 90px -40px rgba(0,0,0,0.9), 0 0 0 1px rgba(255,255,255,0.02);
}
.browser__bar {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 14px; background: #0c0e13; border-bottom: 1px solid var(--border);
}
.browser__dots { display: flex; gap: 7px; }
.browser__dots i { width: 11px; height: 11px; border-radius: 50%; background: #2a2f3a; }
.browser__url {
  margin-left: 10px; flex: 1; max-width: 360px;
  font-family: var(--font-mono); font-size: 12px; color: var(--text-3);
  background: #07090d; border: 1px solid var(--border); border-radius: 7px;
  padding: 5px 12px; text-align: center;
}
.browser__img { display: block; width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: transparent;
  border-bottom: 1px solid var(--border);
  transition: border-color .3s;
  isolation: isolate;
}
/* Frosted backdrop on a separate layer behind the content.
   Keeping the filter off the sticky element itself avoids the
   Chromium sticky + backdrop-filter "stale white strip" glitch,
   and the high opacity keeps the bar dark over light content. */
.site-header::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: rgba(8,9,13,0.86);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  transition: background .3s;
}
.site-header.is-scrolled::before { background: rgba(8,9,13,0.95); }
.header-inner { display: flex; align-items: center; gap: 26px; height: 68px; }

.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: -0.02em; flex: none; }
.brand .mark { width: 30px; height: 30px; flex: none; }
.brand-logo { height: 50px; width: 145px; display: block; flex: none; }
.footer-brand .brand-logo { height: 42px; width: 122px; }
.brand b { font-weight: 600; }
.brand .px { color: var(--blue-2); }

.nav { display: flex; align-items: center; gap: 2px; margin-left: 14px; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 9px 14px; border-radius: 9px; font-size: 15px; font-weight: 500; color: var(--text-2);
  transition: color .2s, background .2s;
}
.nav-link:hover, .nav-item:hover .nav-link, .nav-link.is-active { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-link svg { width: 15px; height: 15px; opacity: 0.5; transition: transform .2s var(--ease); }
.nav-item:hover .nav-link svg { transform: rotate(180deg); }

/* dropdown */
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 280px;
  background: var(--surface-2); border: 1px solid var(--border-2); border-radius: 14px;
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.9);
}
.nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: flex; gap: 12px; align-items: flex-start; padding: 11px 12px; border-radius: 9px;
  transition: background .18s;
}
.dropdown a:hover { background: rgba(255,255,255,0.05); }
.dropdown .di-ic { width: 34px; height: 34px; border-radius: 9px; flex: none; display: grid; place-items: center; background: var(--surface-3); border: 1px solid var(--border); color: var(--text-2); transition: transform .18s var(--ease); }
.dropdown a:hover .di-ic { transform: scale(1.06); }
.dropdown .di-ic.is-blue   { color: var(--blue-2); background: rgba(39,128,227,0.12);  border-color: rgba(39,128,227,0.28); }
.dropdown .di-ic.is-orange { color: var(--orange-2); background: rgba(255,117,24,0.12); border-color: rgba(255,117,24,0.28); }
.dropdown .di-ic.is-green  { color: #52c46e; background: rgba(58,168,78,0.13); border-color: rgba(58,168,78,0.30); }
.dropdown .di-ic.is-violet { color: #9a8cf5; background: rgba(108,92,231,0.15); border-color: rgba(108,92,231,0.30); }
.dropdown .di-ic.is-slate  { color: #ced4e0; }
.dropdown .di-ic svg { width: 18px; height: 18px; }
.dropdown .di-t { display: block; font-size: 14.5px; font-weight: 600; color: var(--text); }
.dropdown .di-d { display: block; font-size: 12.5px; color: var(--text-3); margin-top: 3px; }

.header-spacer { flex: 1; }
.header-actions { display: flex; align-items: center; gap: 12px; }

/* language switcher */
.lang {
  position: relative; font-family: var(--font-mono); font-size: 12.5px;
}
.lang-btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 8px;
  color: var(--text-2); letter-spacing: 0.04em;
}
.lang-btn:hover { color: var(--text); border-color: var(--border-2); }
.lang-btn svg { width: 14px; height: 14px; }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 150px;
  background: var(--surface-2); border: 1px solid var(--border-2); border-radius: 11px; padding: 6px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
  box-shadow: 0 24px 50px -24px rgba(0,0,0,0.9); z-index: 20;
}
.lang.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu button {
  display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 11px; border-radius: 7px; background: none; border: none; color: var(--text-2);
  font-family: var(--font-sans); font-size: 13.5px; text-align: left;
}
.lang-menu button:hover { background: rgba(255,255,255,0.05); color: var(--text); }
.lang-menu button.is-active { color: var(--blue-2); }
.lang-menu button .tick { opacity: 0; }
.lang-menu button.is-active .tick { opacity: 1; }

/* mobile menu button */
.burger { display: none; width: 42px; height: 42px; border-radius: 9px; background: rgba(255,255,255,0.04); border: 1px solid var(--border); color: var(--text); align-items: center; justify-content: center; }
.burger svg { width: 20px; height: 20px; }

/* ---------- Footer ---------- */
.site-footer { position: relative; z-index: 1; border-top: 1px solid var(--border); background: var(--bg-2); padding: 66px 0 34px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px; }
.footer-brand .brand { margin-bottom: 16px; }
.footer-tag { color: var(--text-2); font-size: 15px; max-width: 280px; }
.footer-col h5 { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); margin: 0 0 16px; font-weight: 500; }
.footer-col a { display: block; color: var(--text-2); font-size: 14.5px; padding: 6px 0; transition: color .18s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 52px; padding-top: 26px; border-top: 1px solid var(--border); }
.footer-meta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--text-3); font-family: var(--font-mono); }
.license-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 13px 7px 11px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.01em; line-height: 1; white-space: nowrap;
  color: var(--text-2);
  background:
    linear-gradient(180deg, rgba(52,199,123,0.08), rgba(52,199,123,0.02)),
    var(--surface);
  border: 1px solid color-mix(in oklch, var(--green) 26%, var(--border-2));
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), color .2s var(--ease);
}
.license-badge:hover {
  color: var(--text);
  border-color: color-mix(in oklch, var(--green) 42%, var(--border-2));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 0 0 3px rgba(52,199,123,0.07);
}
.license-badge .dot {
  flex: none;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px rgba(52,199,123,0.6), inset 0 0 0 1px rgba(255,255,255,0.18);
}
.socials { display: flex; gap: 10px; }
.socials a { width: 38px; height: 38px; border-radius: 9px; border: 1px solid var(--border); display: grid; place-items: center; color: var(--text-2); transition: all .2s; }
.socials a:hover { color: var(--text); border-color: var(--border-2); background: rgba(255,255,255,0.04); }
.socials svg { width: 17px; height: 17px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .40s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Utilities ---------- */
.grid { display: grid; gap: 22px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.wrap-gap { flex-wrap: wrap; }
.center { text-align: center; }
.logos-statement {
  max-width: 880px; margin: 0 auto;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 600; line-height: 1.3; letter-spacing: -0.01em;
  color: var(--text); text-wrap: balance;
}
.logos-statement .accent {
  color: var(--orange);
}
.mx-auto { margin-left: auto; margin-right: auto; }
.maxw-680 { max-width: 680px; }
.maxw-760 { max-width: 760px; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; } .mt-64 { margin-top: 64px; }
.mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; } .mb-48 { margin-bottom: 48px; }
.divider { height: 1px; background: var(--border); border: none; margin: 0; }

/* hairline grid background for sections */
.bg-grid {
  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: 64px 64px;
}

/* section heading block */
.section-head { max-width: 720px; }
.section-head.center { margin: 0 auto; }
.section-head .h2 { margin: 16px 0 0; }
.section-head .lead { margin-top: 16px; }

/* stat row */
.stat-num { font-family: var(--font-display); font-size: clamp(32px, 4vw, 46px); font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.stat-num .u { font-size: .55em; color: var(--text-2); margin-left: 2px; }
.stat-lbl { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--text-3); text-transform: uppercase; margin-top: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav, .header-actions .btn { display: none; }
  .burger { display: inline-flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .cols-3 { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .section { padding: 76px 0; }
  .wrap { padding: 0 20px; }
  .cols-2, .cols-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Mobile drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 200; visibility: hidden; }
.drawer.open { visibility: visible; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(2,3,6,0.6); opacity: 0; transition: opacity .25s; }
.drawer.open .drawer__scrim { opacity: 1; }
.drawer__panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(86vw, 360px);
  background: var(--surface); border-left: 1px solid var(--border-2);
  transform: translateX(100%); transition: transform .3s var(--ease);
  padding: 22px; overflow-y: auto;
}
.drawer.open .drawer__panel { transform: none; }
.drawer__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.drawer__close { width: 40px; height: 40px; border-radius: 9px; background: rgba(255,255,255,0.04); border: 1px solid var(--border); color: var(--text); display: grid; place-items: center; }
.drawer__close svg { width: 20px; height: 20px; }
.drawer__group { padding: 6px 0; border-bottom: 1px solid var(--border); }
.drawer__group > .lbl { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); padding: 10px 6px 4px; }
.drawer__panel a.d-link { display: block; padding: 11px 6px; font-size: 16px; color: var(--text); font-weight: 500; }
.drawer__panel a.d-sub { display: block; padding: 9px 6px 9px 14px; font-size: 14.5px; color: var(--text-2); }
.drawer__panel a.d-sub:hover, .drawer__panel a.d-link:hover { color: var(--blue-2); }
.drawer__cta { margin-top: 22px; display: grid; gap: 10px; }

/* ---------- Anchor offset for sticky header ---------- */
[id] { scroll-margin-top: 90px; }

/* ---------- Hero variants ---------- */
[data-hero] { display: none; }
[data-hero].hero--on { display: block; }

/* ---------- Tweaks panel ---------- */
.tweaks-panel {
  position: fixed; right: 20px; bottom: 20px; z-index: 130;
  background: rgba(12,14,19,0.92); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-2); border-radius: 16px; padding: 14px; width: 266px;
  box-shadow: 0 28px 70px -28px rgba(0,0,0,0.95);
}
.tweaks-panel[hidden] { display: none; }
.tweaks-panel__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.tweaks-title { display: flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text); }
.tweaks-title .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 10px var(--glow-orange); }
.tweaks-close { width: 30px; height: 30px; border-radius: 8px; background: rgba(255,255,255,0.05); border: 1px solid var(--border); color: var(--text-2); display: grid; place-items: center; }
.tweaks-close:hover { color: var(--text); border-color: var(--border-2); }
.tweaks-close svg { width: 16px; height: 16px; }
.tweaks-section { display: grid; gap: 10px; }
.tweaks-label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.tweaks-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tweaks-seg button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 11px; border-radius: 10px; background: rgba(255,255,255,0.04); border: 1px solid var(--border); color: var(--text-2); text-align: left; transition: all .18s; }
.tweaks-seg button .k { font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--text); line-height: 1; }
.tweaks-seg button .n { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.03em; }
.tweaks-seg button:hover { border-color: var(--border-2); }
.tweaks-seg button.is-active { border-color: var(--orange); background: rgba(255,117,24,0.10); color: var(--orange-2); }
.tweaks-seg button.is-active .k { color: var(--orange-2); }
@media (max-width: 680px) { .tweaks-panel { left: 12px; right: 12px; bottom: 12px; width: auto; } }

/* ---------- Mobile-view tweak preview ---------- */
html.mv-on, html.mv-on body { overflow: hidden; }
.mv-overlay {
  position: fixed; inset: 0; z-index: 140;
  display: flex; align-items: center; justify-content: center;
  padding: 36px; overflow: auto;
  background: radial-gradient(120% 90% at 50% 25%, #161922 0%, #06070a 70%);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.mv-phone {
  position: relative; flex: 0 0 auto;
  width: 414px; /* 390 screen + 12 bezel each side */
  height: min(884px, calc(100vh - 72px));
  padding: 12px; border-radius: 48px;
  background: #050608;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.05) inset,
              0 0 0 2px rgba(255,255,255,0.04),
              0 60px 130px -34px rgba(0,0,0,0.95);
}
.mv-phone::before { /* speaker / camera island */
  content: ""; position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  width: 116px; height: 26px; border-radius: 999px; background: #050608;
  z-index: 2; pointer-events: none;
}
.mv-screen {
  display: block; width: 390px; height: 100%;
  border: 0; border-radius: 36px; background: var(--bg);
}
@media (max-width: 470px) {
  .mv-overlay { padding: 0; }
  .mv-phone { width: 100%; height: 100%; padding: 0; border-radius: 0; }
  .mv-phone::before { display: none; }
  .mv-screen { width: 100%; border-radius: 0; }
}
