/* ============================================================
   ODDVX — cyberpunk design system
   Black + cyan + gold. Pillar accents reused from the app.
   ============================================================ */

:root {
  /* base */
  --bg:        #06070a;
  --bg-2:      #0a0c11;
  --bg-3:      #10131a;
  --panel:     rgba(255, 255, 255, 0.028);
  --panel-2:   rgba(255, 255, 255, 0.05);
  --line:      rgba(120, 200, 255, 0.12);
  --line-2:    rgba(120, 200, 255, 0.22);
  --line-soft: rgba(255, 255, 255, 0.06);

  /* ink */
  --text:   #eef2f6;
  --muted:  #97a3b2;
  --faint:  #5c6675;

  /* neon */
  --cyan:   #22d3ee;
  --cyan-dim: #0e7f92;
  --gold:   #d7b56d;
  --gold-bright: #f0cd86;
  --violet: #a78bfa;
  --rose:   #fb7185;

  /* pillars (verbatim from the app) */
  --gtm: #5dcaa5;
  --ga4: #ef9f27;
  --qa:  #a78bfa;

  --glow-cyan: 0 0 0 1px rgba(34, 211, 238, 0.4), 0 0 24px -4px rgba(34, 211, 238, 0.55);
  --glow-gold: 0 0 0 1px rgba(215, 181, 109, 0.45), 0 0 28px -6px rgba(215, 181, 109, 0.5);

  --rail: 264px;
  --rail-collapsed: 68px;
  --maxw: 1120px;

  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;   /* clip sideways bleed on <html> so the viewport stays the scroller */
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.65;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

/* ambient background: grid + scanlines + corner glows */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(680px circle at 12% -5%, rgba(34, 211, 238, 0.10), transparent 60%),
    radial-gradient(720px circle at 100% 0%, rgba(215, 181, 109, 0.08), transparent 55%),
    radial-gradient(900px circle at 60% 120%, rgba(167, 139, 250, 0.07), transparent 60%),
    linear-gradient(rgba(120, 200, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 200, 255, 0.035) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 46px 46px, 46px 46px;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.014) 0 1px,
    transparent 1px 3px
  );
  mix-blend-mode: overlay;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: rgba(34, 211, 238, 0.28); color: #fff; }

/* ---------- skip link ---------- */
.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--cyan);
  color: #04121a;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 0.16s;
}
.skip-link:focus { transform: translateY(0); }

/* ============================================================
   LAYOUT SHELL
   ============================================================ */
.shell {
  position: relative;
  z-index: 2;
  min-height: 100vh;
}

.main {
  margin-left: var(--rail);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: clamp(1.25rem, 4vw, 3.25rem);
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--rail);
  height: 100vh;
  z-index: 20;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1rem 1.1rem;
  background: linear-gradient(180deg, rgba(15, 19, 26, 0.92), rgba(6, 7, 10, 0.96));
  border-right: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.sidebar::after {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 1px; height: 100%;
  background: linear-gradient(180deg, transparent, rgba(34, 211, 238, 0.5), transparent);
  opacity: 0.6;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.25rem 0.5rem 1.25rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--line-soft);
}
.brand img { width: 34px; height: 34px; filter: drop-shadow(0 0 10px rgba(215, 181, 109, 0.35)); }
.brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  line-height: 1;
}
.brand-word b { color: #eef2f6; font-weight: 700; }
.brand-word i { color: var(--gold); font-style: normal; text-shadow: 0 0 18px rgba(215, 181, 109, 0.45); }

.nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-top: 0.9rem;
  overflow-y: auto;
  flex: 1;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }

.nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.7rem;
  border-radius: 7px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid transparent;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.nav a svg { width: 15px; height: 15px; flex: 0 0 auto; opacity: 0.75; }
.nav a:hover { color: var(--text); background: var(--panel-2); }
.nav a[aria-current="page"] {
  color: var(--text);
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.14), transparent);
  border-color: var(--line-2);
}
.nav a[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: -1px; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 60%;
  border-radius: 3px;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}

.nav .sub {
  margin: 0.1rem 0 0.35rem;
  padding-left: 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  border-left: 1px solid var(--line-soft);
  margin-left: 0.85rem;
}
.nav .sub a {
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  padding: 0.45rem 0.6rem;
  text-transform: none;
  font-weight: 500;
}
.nav .sub a .dot {
  width: 6px; height: 6px; border-radius: 50%;
  flex: 0 0 auto;
  box-shadow: 0 0 8px currentColor;
}
.nav .group-label {
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  color: var(--faint);
  padding: 0.9rem 0.7rem 0.35rem;
  text-transform: uppercase;
}

.sidebar-cta {
  margin-top: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1rem;
  border-radius: 9px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #04121a;
  background: linear-gradient(100deg, var(--cyan), #5eead4);
  border: 1px solid rgba(34, 211, 238, 0.6);
  box-shadow: 0 0 22px -6px rgba(34, 211, 238, 0.7);
  transition: transform 0.14s, box-shadow 0.14s;
}
.sidebar-cta:hover { transform: translateY(-1px); box-shadow: 0 0 30px -4px rgba(34, 211, 238, 0.85); }
.sidebar-cta svg { width: 15px; height: 15px; }

.sidebar-foot {
  margin-top: 0.9rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.sidebar-foot .meta {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  color: var(--faint);
  line-height: 1.5;
}
.sidebar-foot .socials { display: flex; gap: 0.5rem; }
.sidebar-foot .socials a {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  transition: color 0.15s, border-color 0.15s;
}
.sidebar-foot .socials a:hover { color: var(--cyan); border-color: var(--line-2); }
.sidebar-foot .socials svg { width: 13px; height: 13px; }

/* ============================================================
   SECTIONS / PRIMITIVES
   ============================================================ */
section { position: relative; padding-block: clamp(3.5rem, 8vw, 6rem); }
section + section { border-top: 1px solid var(--line-soft); }

.kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.1rem;
}
.kicker::before {
  content: "";
  width: 26px; height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}
.kicker.gold { color: var(--gold); }
.kicker.gold::before { background: linear-gradient(90deg, var(--gold), transparent); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; margin: 0 0 0.9rem; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 3.7rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p { margin: 0 0 1rem; color: var(--muted); }
.lede { font-size: clamp(1.05rem, 1.7vw, 1.28rem); color: #c6cfd9; max-width: 44ch; }
.section-head { max-width: 60ch; margin-bottom: 2.6rem; }
.section-head p { font-size: 1.05rem; }

strong { color: var(--text); font-weight: 600; }
code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: var(--panel-2);
  border: 1px solid var(--line-soft);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  color: var(--cyan);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.5rem;
  border-radius: 9px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid var(--line-2);
  color: var(--text);
  background: var(--panel-2);
  transition: transform 0.14s, box-shadow 0.14s, border-color 0.14s, background 0.14s;
}
.btn:hover { transform: translateY(-1px); border-color: var(--cyan); }
.btn svg { width: 15px; height: 15px; }
.btn-primary {
  color: #04121a;
  background: linear-gradient(100deg, var(--cyan), #5eead4);
  border-color: rgba(34, 211, 238, 0.6);
  box-shadow: 0 0 26px -8px rgba(34, 211, 238, 0.75);
}
.btn-primary:hover { box-shadow: 0 0 34px -6px rgba(34, 211, 238, 0.9); }
.btn-gold {
  color: #1c1608;
  background: linear-gradient(100deg, var(--gold), var(--gold-bright));
  border-color: rgba(215, 181, 109, 0.6);
  box-shadow: 0 0 26px -8px rgba(215, 181, 109, 0.7);
}
.btn-ghost { background: transparent; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.8rem; }

/* ---------- cards ---------- */
.card {
  position: relative;
  padding: 1.5rem;
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  transition: border-color 0.16s, transform 0.16s, background 0.16s;
}
.card:hover { border-color: var(--line-2); transform: translateY(-2px); background: var(--panel-2); }
/* HUD corner brackets */
.card::before, .card::after {
  content: "";
  position: absolute;
  width: 12px; height: 12px;
  border: 1px solid var(--cyan);
  opacity: 0.55;
}
.card::before { top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
.card::after { bottom: 8px; right: 8px; border-left: 0; border-top: 0; }
.card h3 { margin-bottom: 0.5rem; }
.card p { font-size: 0.95rem; margin-bottom: 0; }
.card .card-ico {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  margin-bottom: 1rem;
}
.card .card-ico svg { width: 19px; height: 19px; color: var(--cyan); }

.grid { display: grid; gap: 1.1rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* pillar-tinted card */
.card[data-pillar="gtm"]::before, .card[data-pillar="gtm"]::after { border-color: var(--gtm); }
.card[data-pillar="ga4"]::before, .card[data-pillar="ga4"]::after { border-color: var(--ga4); }
.card[data-pillar="qa"]::before,  .card[data-pillar="qa"]::after  { border-color: var(--qa); }
.card[data-pillar="gtm"] .card-ico svg { color: var(--gtm); }
.card[data-pillar="ga4"] .card-ico svg { color: var(--ga4); }
.card[data-pillar="qa"] .card-ico svg  { color: var(--qa); }
.card[data-pillar] .card-ico { border-color: currentColor; }

/* ---------- hero ---------- */
.hero {
  padding-block: clamp(4rem, 11vw, 8rem) clamp(3rem, 8vw, 6rem);
  min-height: 82vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero h1 { max-width: 16ch; }
.hero h1 .glow { color: var(--gold); text-shadow: 0 0 30px rgba(215, 181, 109, 0.45); }
.hero .lede { margin-top: 1.4rem; max-width: 52ch; font-size: clamp(1.05rem, 1.8vw, 1.35rem); }
.hero-beam {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--gold), transparent);
  opacity: 0.5;
}

/* ---------- stat / trust strip ---------- */
.strip {
  display: flex;
  flex-wrap: wrap;
  gap: 2.4rem;
  padding-block: 1.6rem;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.strip div { min-width: 120px; }
.strip .n { font-family: var(--font-display); font-size: 1.7rem; color: var(--text); }
.strip .l { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }

/* ---------- feature list ---------- */
.flist { display: flex; flex-direction: column; gap: 0; }
.flist .row {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1.2rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line-soft);
}
.flist .row:last-child { border-bottom: 1px solid var(--line-soft); }
.flist .row .idx { font-family: var(--font-mono); color: var(--cyan); font-size: 0.8rem; padding-top: 0.2rem; }
.flist .row h3 { margin-bottom: 0.35rem; }
.flist .row p { margin: 0; font-size: 0.95rem; }

/* ---------- steps ---------- */
.steps { counter-reset: s; display: grid; gap: 1.1rem; }
.steps .card { padding-left: 3.6rem; }
.steps .card::marker { content: none; }
.steps .card .num {
  counter-increment: s;
  position: absolute;
  left: 1.3rem; top: 1.4rem;
  font-family: var(--font-mono);
  color: var(--gold);
  font-size: 0.85rem;
}
.steps .card .num::before { content: counter(s, decimal-leading-zero); }

/* ---------- pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; max-width: 780px; }
.price-grid.tri { grid-template-columns: repeat(3, 1fr); max-width: 1120px; }
@media (max-width: 960px) { .price-grid.tri { grid-template-columns: 1fr; max-width: 480px; } }
.price {
  position: relative;
  padding: 2rem 1.8rem;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.price.feat { border-color: rgba(34, 211, 238, 0.45); box-shadow: 0 0 40px -12px rgba(34, 211, 238, 0.4); }
.price .tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
}
.price .amt { font-family: var(--font-display); font-size: 2.6rem; margin: 0.6rem 0 0.2rem; }
.price .amt small { font-size: 0.9rem; color: var(--faint); font-family: var(--font-mono); }
.price ul { list-style: none; padding: 0; margin: 1.4rem 0 0; display: flex; flex-direction: column; gap: 0.7rem; }
.price li { position: relative; padding-left: 1.5rem; font-size: 0.92rem; color: var(--muted); }
.price li::before { content: "▸"; position: absolute; left: 0; color: var(--cyan); }
.price li.off { color: var(--faint); text-decoration: line-through; }
.price .btn { width: 100%; justify-content: center; margin-top: 1.6rem; }

/* ---------- tables ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table.cmp { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 560px; }
table.cmp th, table.cmp td { padding: 0.85rem 1.1rem; text-align: left; border-bottom: 1px solid var(--line-soft); }
table.cmp thead th { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
table.cmp tbody tr:last-child td { border-bottom: 0; }
table.cmp td.y { color: var(--cyan); }
table.cmp td.n { color: var(--faint); }

/* ---------- forms ---------- */
.form { display: grid; gap: 1.1rem; max-width: 540px; }
.field { display: grid; gap: 0.4rem; }
.field label { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea, .field select {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.14s, box-shadow 0.14s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
}
.field textarea { min-height: 130px; resize: vertical; }

/* ---------- callout ---------- */
.callout {
  padding: 1.2rem 1.4rem;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: linear-gradient(100deg, rgba(34, 211, 238, 0.07), transparent);
  font-size: 0.92rem;
}
.callout.warn { border-color: rgba(251, 191, 36, 0.4); background: linear-gradient(100deg, rgba(251, 191, 36, 0.08), transparent); }
.callout strong { display: block; margin-bottom: 0.2rem; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 20ch; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; }

/* ---------- breadcrumb / page head ---------- */
.page-head { padding-block: clamp(3rem, 7vw, 5rem) clamp(1.5rem, 3vw, 2.5rem); }
.crumb { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); margin-bottom: 1rem; }
.crumb a:hover { color: var(--cyan); }

/* ---------- footer ---------- */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-block: 2.5rem 3rem;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.site-footer a { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.site-footer a:hover { color: var(--cyan); }
.site-footer .fine { font-family: var(--font-mono); font-size: 0.68rem; color: var(--faint); width: 100%; }

/* ---------- misc ---------- */
.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  border-radius: 5px;
  border: 1px solid var(--line);
  color: var(--muted);
}
.tag-pill[data-pillar="gtm"] { color: var(--gtm); border-color: rgba(93, 202, 165, 0.35); }
.tag-pill[data-pillar="ga4"] { color: var(--ga4); border-color: rgba(239, 159, 39, 0.35); }
.tag-pill[data-pillar="qa"]  { color: var(--qa);  border-color: rgba(167, 139, 250, 0.35); }

.mono-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.mono-list li { position: relative; padding-left: 1.4rem; font-size: 0.92rem; color: var(--muted); }
.mono-list li::before { content: "»"; position: absolute; left: 0; color: var(--cyan); font-family: var(--font-mono); }

.glitch:hover { animation: glitch 0.32s steps(2, end) 2; }
@keyframes glitch {
  0% { text-shadow: 2px 0 var(--cyan), -2px 0 var(--rose); }
  50% { text-shadow: -2px 0 var(--cyan), 2px 0 var(--gold); }
  100% { text-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE — sidebar collapses to an icon rail (no hamburger)
   ============================================================ */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 920px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  :root { --rail: var(--rail-collapsed); }
  .main { margin-left: var(--rail-collapsed); }

  .sidebar { padding: 1rem 0.5rem; align-items: center; }
  .brand { flex-direction: column; gap: 0.4rem; padding: 0.4rem 0 1rem; border: 0; }
  .brand .brand-word { display: none; }
  .brand img { width: 30px; height: 30px; }

  .nav a { justify-content: center; padding: 0.7rem 0; letter-spacing: 0; }
  .nav a span.lbl { display: none; }
  .nav a[aria-current="page"] { background: var(--panel-2); }
  .nav .group-label { display: none; }
  .nav .sub { margin-left: 0; padding-left: 0; border: 0; align-items: center; }
  .nav .sub a .dot { width: 7px; height: 7px; }
  .nav .sub a { padding: 0.5rem 0; }

  .sidebar-cta { padding: 0.7rem 0; }
  .sidebar-cta span.lbl { display: none; }
  .sidebar-foot .meta { display: none; }
  .sidebar-foot .socials { flex-direction: column; align-items: center; }
}

@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  section { padding-block: 3rem; }
  .sec { padding-block: var(--sec-pt, 3rem) var(--sec-pb, 3rem); }
  .strip { gap: 1.25rem; }
  .lede { font-size: 1.02rem; }
}

/* ============================================================
   CMS SECTION MODEL (build/render.js)
   .sec wraps every section; per-section Layout/Style overrides
   arrive as scoped custom properties on the wrapper.
   ============================================================ */
.sec {
  position: relative;
  padding-block: var(--sec-pt, clamp(3.5rem, 8vw, 6rem)) var(--sec-pb, clamp(3.5rem, 8vw, 6rem));
  background: var(--sec-bg, transparent);
  color: var(--sec-text, inherit);
}
.sec + .sec { border-top: none; }
.sec--divider { border-top: 1px solid var(--line-soft); }
.sec--html { padding-block: 0; }

.sec-inner {
  width: 100%;
  max-width: var(--sec-w, 1120px);
  margin: 0 auto;
  padding-inline: clamp(1.25rem, 4vw, 3.25rem);
}

.sec :is(h1, h2, h3, h4) { color: var(--sec-h-color, inherit); }
.sec h2 { font-size: var(--sec-h-size, clamp(1.7rem, 3.4vw, 2.5rem)); }
.sec h1 { font-size: var(--sec-h-size, clamp(2.3rem, 5.4vw, 3.7rem)); }
.sec p, .sec li { font-size: var(--sec-body-size, inherit); }
.sec .kicker, .sec .kicker::before { color: var(--sec-accent, var(--cyan)); }
.sec .kicker.gold, .sec .kicker.gold::before { color: var(--gold); }

/* centered sections */
.sec--center { text-align: center; }
.sec--center .sec-inner > * { margin-inline: auto; }
.sec--center .kicker { justify-content: center; }
.sec--center .btn-row { justify-content: center; }
.sec--center .lede { max-width: 46ch; }

/* wide measure toggle (style.maxChars = false) */
.sec:not(.sec--wide-measure) .sec-inner > p,
.sec:not(.sec--wide-measure) .cms-col > p { max-width: 65ch; }
.sec--center:not(.sec--wide-measure) .sec-inner > p { max-width: 60ch; }

/* hero */
.sec--hero { display: flex; flex-direction: column; justify-content: center; min-height: 78vh; }
.sec--hero .sec-inner > h1 { max-width: 16ch; }
.sec--hero .sec-inner > h1 .glow { color: var(--gold); text-shadow: 0 0 30px rgba(215, 181, 109, 0.45); }
.sec--hero .lede { margin-top: 1.4rem; max-width: 52ch; font-size: clamp(1.05rem, 1.8vw, 1.35rem); }
.sec--hero .hero-beam { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--cyan), var(--gold), transparent); opacity: 0.5; }

/* columns */
.cms-cols {
  display: grid;
  grid-template-columns: repeat(var(--sec-cols, 1), minmax(0, 1fr));
  gap: var(--sec-gap, 2rem);
}
.cms-col > :first-child { margin-top: 0; }
@media (max-width: 860px) { .cms-cols { grid-template-columns: 1fr; } }

/* blocks */
.sec .fig { margin: 1.5rem 0; }
.sec .fig figcaption { font-family: var(--font-mono); font-size: 0.72rem; color: var(--faint); margin-top: 0.5rem; }
.sec .codeblock {
  font-family: var(--font-mono); font-size: 0.82rem; line-height: 1.7;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 10px; padding: 1rem 1.2rem; overflow-x: auto; color: var(--text); margin: 1.2rem 0;
}
.sec hr.rule { border: 0; border-top: 1px solid var(--line-soft); margin: 2rem 0; }
.sec .stat-item { display: inline-block; margin-right: 2.4rem; }
.sec .stat-item .n { font-family: var(--font-display); font-size: 1.7rem; color: var(--text); }
.sec .stat-item .l { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }

/* ---- mobile typography: placed last so it wins over the .sec rules above ---- */
@media (max-width: 620px) {
  h1, .sec h1 { font-size: var(--sec-h-size, clamp(1.95rem, 8.5vw, 2.7rem)); }
  h2, .sec h2 { font-size: var(--sec-h-size, clamp(1.5rem, 6vw, 2rem)); }
  .sec--hero { min-height: 0; }
  .section-head { margin-bottom: 1.8rem; }
  .sec--hero .lede, .hero .lede { font-size: 1.05rem; }
}

/* ============================================================
   MOTION — lightweight animated touches. GPU-friendly
   (transform / opacity / box-shadow on small elements only).
   Fully neutralised under prefers-reduced-motion at file end.
   ============================================================ */

/* ambient scanline layer: a rare, faint CRT flicker */
body::after { animation: crt-flicker 15s steps(1, end) infinite; }
@keyframes crt-flicker {
  0%, 95%, 100% { opacity: 1; }
  96% { opacity: 0.5; }
  97% { opacity: 1; }
  97.6% { opacity: 0.72; }
}

/* sidebar: a slow bead of light travelling down the right edge */
.sidebar::after {
  background: linear-gradient(180deg,
    transparent, rgba(34, 211, 238, 0.3) 43%, rgba(150, 245, 255, 0.95) 50%,
    rgba(34, 211, 238, 0.3) 57%, transparent);
  background-size: 100% 260%;
  animation: edge-scan 7.5s linear infinite;
}
@keyframes edge-scan { from { background-position: 0 -80%; } to { background-position: 0 180%; } }

/* brand mark: periodic sheen sweep + one-time boot flicker */
.brand { position: relative; overflow: hidden; }
.brand::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, 0.16) 50%, transparent 58%);
  transform: translateX(-130%);
  animation: brand-glint 9s ease-in-out infinite;
}
@keyframes brand-glint { 0%, 80%, 100% { transform: translateX(-130%); } 88% { transform: translateX(130%); } }
.brand-word.boot b, .brand-word.boot i { animation: boot-flick 0.5s steps(2, end); }
@keyframes boot-flick {
  0% { opacity: 0; transform: translateX(-3px); filter: blur(2px); }
  45% { opacity: 1; transform: translateX(2px); filter: none; }
  75% { transform: translateX(-1px); }
  100% { transform: none; }
}

/* nav icons: RGB-split glitch flick + cyan glow on hover */
.nav a svg { transition: transform 0.18s ease, filter 0.18s ease; }
.nav a:hover svg { filter: drop-shadow(0 0 5px var(--cyan)); animation: ico-glitch 0.4s steps(2, end); }
@keyframes ico-glitch {
  0% { transform: translate(0, 0); filter: none; }
  20% { transform: translate(-1.5px, 1px); filter: drop-shadow(1.5px 0 var(--rose)) drop-shadow(-1.5px 0 var(--cyan)); }
  45% { transform: translate(1.5px, -1px); filter: drop-shadow(-1.5px 0 var(--gold)); }
  70% { transform: translate(-1px, 0); }
  100% { transform: translate(0, 0); filter: drop-shadow(0 0 5px var(--cyan)); }
}

/* active nav item: the neon bar breathes */
.nav a[aria-current="page"]::before { animation: bar-pulse 2.6s ease-in-out infinite; }
@keyframes bar-pulse {
  0%, 100% { box-shadow: 0 0 10px var(--cyan); opacity: 0.85; }
  50% { box-shadow: 0 0 18px var(--cyan), 0 0 3px #eafcff; opacity: 1; }
}

/* pillar dots: staggered breathing */
.nav .sub a .dot { animation: dot-breathe 3.2s ease-in-out infinite; }
.nav .sub a:nth-child(2) .dot { animation-delay: 0.5s; }
.nav .sub a:nth-child(3) .dot { animation-delay: 1s; }
@keyframes dot-breathe {
  0%, 100% { box-shadow: 0 0 5px currentColor; opacity: 0.5; }
  50% { box-shadow: 0 0 11px currentColor; opacity: 1; }
}

/* download CTA: soft breathing glow, paused on hover for the sheen */
.sidebar-cta { animation: cta-breathe 3.6s ease-in-out infinite; }
.sidebar-cta:hover { animation-play-state: paused; }
@keyframes cta-breathe {
  0%, 100% { box-shadow: 0 0 18px -6px rgba(34, 211, 238, 0.55); }
  50% { box-shadow: 0 0 28px -4px rgba(34, 211, 238, 0.9); }
}

/* buttons + CTA: a sheen sweep on hover */
.btn, .sidebar-cta { position: relative; overflow: hidden; }
.btn > svg, .sidebar-cta > svg, .btn > .lbl, .sidebar-cta > .lbl { position: relative; z-index: 1; }
.btn::after, .sidebar-cta::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 45%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: translateX(-200%) skewX(-16deg);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.btn:hover::after, .sidebar-cta:hover::after { transform: translateX(320%) skewX(-16deg); }

/* hero: running beam, flickering accent word */
.sec--hero .sec-inner { position: relative; z-index: 1; }
.sec--hero .hero-beam { overflow: visible; }
.sec--hero .hero-beam::after {
  content: ""; position: absolute; top: -1px; left: 0; width: 140px; height: 3px;
  background: radial-gradient(ellipse at center, #fff, var(--cyan) 45%, transparent 78%);
  filter: blur(0.5px);
  animation: beam-run 5s cubic-bezier(0.55, 0.1, 0.45, 0.9) infinite;
}
@keyframes beam-run {
  0% { left: -18%; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}
.hero .glow, .sec--hero h1 .glow { animation: glow-flicker 7s linear infinite; }
@keyframes glow-flicker {
  0%, 46%, 52%, 100% { text-shadow: 0 0 30px rgba(215, 181, 109, 0.45); opacity: 1; }
  48% { text-shadow: 0 0 7px rgba(215, 181, 109, 0.22); opacity: 0.8; }
  50% { text-shadow: 0 0 36px rgba(215, 181, 109, 0.65); opacity: 1; }
}

/* cards: HUD brackets snap larger, icon buzzes, subtle lift-glow on hover */
.card { transition: border-color 0.16s, transform 0.16s, background 0.16s, box-shadow 0.24s ease; }
.card::before, .card::after {
  transition: width 0.22s cubic-bezier(0.3, 1.4, 0.5, 1), height 0.22s cubic-bezier(0.3, 1.4, 0.5, 1), opacity 0.2s ease;
}
.card:hover::before, .card:hover::after { width: 20px; height: 20px; opacity: 0.95; }
.card:hover { box-shadow: 0 0 34px -16px var(--cyan); }
.card .card-ico { transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.2s ease; }
.card:hover .card-ico { transform: translateY(-3px); box-shadow: 0 0 18px -3px currentColor; }
.card:hover .card-ico svg { animation: ico-buzz 0.42s ease; }
@keyframes ico-buzz {
  0% { transform: rotate(0) scale(1); }
  25% { transform: rotate(-7deg) scale(1.07); }
  55% { transform: rotate(5deg) scale(1.02); }
  80% { transform: rotate(-2deg) scale(1); }
  100% { transform: rotate(0) scale(1); }
}

/* pillar tag-pills: a faint colour pulse */
.tag-pill[data-pillar] { animation: pill-pulse 3.4s ease-in-out infinite; }
@keyframes pill-pulse {
  0%, 100% { box-shadow: 0 0 0 0 transparent; }
  50% { box-shadow: 0 0 10px -2px currentColor; }
}

/* content links: cyan, with an underline that wipes in */
.sec-inner p a, .callout a { color: var(--cyan); }
.sec-inner p a, .callout a, .crumb a, .site-footer a {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size 0.28s ease, color 0.15s ease;
  padding-bottom: 1px;
}
.sec-inner p a:hover, .callout a:hover, .crumb a:hover, .site-footer a:hover { background-size: 100% 1px; }
.site-footer a:hover, .crumb a:hover { color: var(--cyan); }

/* section reveal: the kicker leading line draws in with the section */
[data-reveal] .kicker::before { width: 0; transition: width 0.5s ease 0.15s; }
[data-reveal].in .kicker::before { width: 26px; }

/* one-shot heading glitch on first load */
.glitch-once { animation: glitch 0.34s steps(2, end) 2; }

/* ---- reduced motion: neutralise everything above ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .brand::after, .btn::after, .sidebar-cta::after { display: none !important; }
  .sidebar::after { background: linear-gradient(180deg, transparent, rgba(34, 211, 238, 0.5), transparent); }
}
