/* CelDrive shared styles — enterprise polish pass */

:root {
  --bg: #060608;
  --bg-alt: #0e0e11;
  --bg-elev: #141418;
  --bg-stripe: #0a0a0d;
  --fg: #f5f5f7;
  --fg-mid: #b8b8c0;
  --fg-dim: #70707a;
  --accent: #00e676;
  --accent-bright: #00ff88;
  --accent-dim: #00b85f;
  --accent-glow: rgba(0, 230, 118, 0.18);
  --accent-glow-strong: rgba(0, 230, 118, 0.35);
  --border: #1f1f24;
  --border-bright: #2a2a30;
  --border-soft: #15151a;
  --code-bg: #08080a;
  --term-bar: #17171c;
  --term-dot-red: #ff5f57;
  --term-dot-yellow: #febc2e;
  --term-dot-green: #28c840;
  --container-max: 1200px;
  --container-tight: 900px;
  --radius: 10px;
  --radius-lg: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  background: var(--bg);
  color: var(--fg);
  min-height: 100vh;
  /* overflow-x on body alone isn't enough on some webviews (Safari, Chrome
     on iOS). Belt-and-suspenders: both html and body clip horizontal
     overflow + clamp width to viewport. */
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  font-feature-settings: "cv11", "ss01", "ss03";
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.005em;
}

code, pre, .mono {
  font-family: "JetBrains Mono", "SF Mono", "Menlo", "Monaco", monospace;
  font-feature-settings: "liga" 0;
}

a { color: var(--accent); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--accent-bright); }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 32px;
}
.container-tight { max-width: var(--container-tight); }

/* ---------- NAV ---------- */

nav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 18px 0;
  background: rgba(6, 6, 8, 0.95);
  border-bottom: 1px solid var(--border-soft);
}
/* backdrop-filter creates a containing block for position:fixed descendants.
   The mobile drawer (nav ul) uses position:fixed expecting to be relative to
   the viewport — if backdrop-filter is on nav, the drawer is trapped inside
   the 60px-tall nav. Apply blur only at desktop (≥769px) where there's no
   drawer. */
@media (min-width: 769px) {
  nav {
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
  }
}
nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 48px;
}

.logo-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--fg);
  flex-shrink: 0;
  margin-right: auto;
}
.logo-wordmark .mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dim) 100%);
  box-shadow: 0 0 16px var(--accent-glow);
  flex-shrink: 0;
}
.logo-wordmark .mark svg {
  width: 16px; height: 16px;
  color: var(--bg);
  stroke-width: 2.5;
}
.logo-wordmark .name {
  font-weight: 700;
  letter-spacing: -0.02em;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
  flex-shrink: 0;
}
nav ul a {
  color: var(--fg-mid);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 0;
  transition: color 0.18s ease;
  letter-spacing: -0.003em;
}
nav ul a:hover { color: var(--fg); }
nav .nav-cta {
  padding: 10px 20px;
  background: var(--accent);
  color: var(--bg) !important;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: -0.003em;
  box-shadow: 0 2px 8px rgba(0, 230, 118, 0.15);
  transition: all 0.2s ease;
  white-space: nowrap;
}
nav .nav-cta:hover {
  background: var(--accent-bright);
  box-shadow: 0 4px 12px var(--accent-glow-strong);
  transform: translateY(-2px);
}

/* ---------- HERO ---------- */

.hero {
  position: relative;
  padding: 100px 0 80px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -260px;
  left: 50%;
  transform: translateX(-50%);
  width: 1100px;
  height: 700px;
  background: radial-gradient(ellipse at center, var(--accent-glow-strong) 0%, var(--accent-glow) 35%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-left {
  max-width: 520px;
}

.hero-left h1 {
  font-size: 56px;
  line-height: 1.1;
  margin: 24px 0 20px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.hero-tagline {
  font-size: 22px;
  color: var(--fg);
  line-height: 1.4;
  letter-spacing: -0.01em;
  font-weight: 500;
  margin: -8px 0 16px;
  font-style: italic;
  opacity: 0.92;
}

.hero-subline {
  font-size: 18px;
  color: var(--fg-mid);
  line-height: 1.6;
  margin: 20px 0 32px;
  font-weight: 400;
}

.hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-demo {
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

.hero-demo h2 {
  font-size: 32px;
  font-weight: 600;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.035) 1px, transparent 0);
  background-size: 36px 36px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 95%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 95%);
}
.hero .container { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--fg-mid);
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-bottom: 28px;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
}
.eyebrow .pulse {
  position: relative;
  width: 7px; height: 7px;
}
.eyebrow .pulse::before,
.eyebrow .pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent);
}
.eyebrow .pulse::after {
  box-shadow: 0 0 10px var(--accent);
  animation: pulse-ring 2s infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(2.4); opacity: 0; }
}

.hero h1 {
  font-size: clamp(40px, 5.6vw, 68px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.035em;
  max-width: 960px;
  color: var(--fg);
}
.hero h1 .accent {
  background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}
.hero .tagline {
  font-size: clamp(17px, 1.35vw, 19px);
  color: var(--fg-mid);
  margin-top: 24px;
  max-width: 640px;
  line-height: 1.6;
}

.hero .cta {
  margin-top: 36px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.hero .cta .note {
  color: var(--fg-dim);
  font-size: 13.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero .cta .note::before {
  content: "✓";
  color: var(--accent);
  font-weight: bold;
}

/* ---------- TRUST BAR ---------- */

.trust-bar {
  margin-top: 64px;
  padding: 20px 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--fg-dim);
}
.trust-bar .label {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11px;
  font-weight: 600;
  color: var(--fg-dim);
}
.trust-bar .items {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  color: var(--fg-mid);
  font-weight: 500;
}
.trust-bar .items span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.trust-bar .items span::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}

/* ---------- BUTTONS ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14.5px;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  letter-spacing: -0.005em;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 0 0 0 var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent-bright);
  box-shadow: 0 8px 32px var(--accent-glow-strong);
  text-decoration: none;
  transform: translateY(-1px);
}
.btn-secondary {
  background: transparent;
  color: var(--fg);
  border-color: var(--border-bright);
}
.btn-secondary:hover {
  border-color: var(--fg-mid);
  background: var(--bg-elev);
  text-decoration: none;
}
.btn-arrow::after {
  content: "→";
  transition: transform 0.18s ease;
  font-weight: 500;
}
.btn-arrow:hover::after { transform: translateX(4px); }

/* ---------- TERMINAL ---------- */

.terminal {
  margin-top: 44px;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 860px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.05) inset,
    0 30px 80px -10px rgba(0,0,0,0.6),
    0 0 0 1px rgba(255,255,255,0.02);
}
.terminal .bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--term-bar);
  border-bottom: 1px solid var(--border);
}
.terminal .bar .dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.terminal .bar .dot-r { background: var(--term-dot-red); }
.terminal .bar .dot-y { background: var(--term-dot-yellow); }
.terminal .bar .dot-g { background: var(--term-dot-green); }
.terminal .bar .title {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: var(--fg-dim);
  font-family: inherit;
  margin-right: 54px;
}
.terminal .body {
  padding: 22px 26px;
  font-family: "JetBrains Mono", "SF Mono", "Menlo", monospace;
  font-size: 13.5px;
  line-height: 1.8;
  overflow-x: auto;
}
.terminal .body .prompt { color: var(--fg-dim); user-select: none; }
.terminal .body .cmd { color: var(--accent); }
.terminal .body .out { color: var(--fg-dim); display: block; }
.terminal .body .out-ok { color: var(--accent); }
.terminal .body .out-warn { color: #febc2e; }

/* ---------- SECTIONS ---------- */

section {
  padding: 88px 0;
  position: relative;
}
section + section { border-top: 1px solid var(--border-soft); }
.section-stripe { background: var(--bg-stripe); }

h2 {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  line-height: 1.15;
  color: var(--fg);
}
h2 .accent {
  background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-intro {
  color: var(--fg-mid);
  max-width: 680px;
  font-size: 16.5px;
  margin-bottom: 44px;
  line-height: 1.65;
}
h3 { font-size: 17px; font-weight: 600; margin-bottom: 10px; color: var(--fg); letter-spacing: -0.01em; }

/* ---------- TABLE ---------- */

.table-wrap {
  margin-top: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-alt);
}
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { text-align: left; padding: 18px 22px; border-bottom: 1px solid var(--border-soft); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(255,255,255,0.015); }
th {
  color: var(--fg-dim);
  font-weight: 600;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--bg-elev);
}
td code {
  background: var(--bg-elev);
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 13px;
  color: var(--accent);
  border: 1px solid var(--border);
  font-weight: 500;
}

/* Feature matrix — wide table, scrolls on mobile. Compact cells, center-aligned tier columns. */
.table-wrap:has(.feature-matrix) { overflow-x: auto; overflow-y: hidden; }
.feature-matrix { min-width: 860px; font-size: 14px; }
.feature-matrix th, .feature-matrix td { padding: 14px 16px; }
.feature-matrix thead th { text-align: center; }
.feature-matrix thead th:first-child { text-align: left; }
.feature-matrix tbody td { text-align: center; color: var(--fg-mid); }
.feature-matrix tbody td:first-child { text-align: left; color: var(--fg); }
.feature-matrix tbody tr td[colspan] { text-align: left; padding: 14px 18px; font-size: 13px; letter-spacing: 0.02em; }

/* ---------- HOW-IT-WORKS GRID ---------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 22px;
  margin-top: 44px;
}
.card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.card:hover {
  border-color: rgba(0, 230, 118, 0.3);
  transform: translateY(-2px);
  background: linear-gradient(180deg, var(--bg-alt) 0%, rgba(0, 230, 118, 0.02) 100%);
}
.card .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  background: rgba(0, 230, 118, 0.08);
  border: 1px solid rgba(0, 230, 118, 0.3);
  color: var(--accent);
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 16px;
}
.card p { color: var(--fg-mid); font-size: 14.5px; margin-top: 4px; line-height: 1.65; }

/* ---------- SECURITY SECTION ---------- */

.security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 22px;
  margin-top: 44px;
}
.sec-block {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 30px;
}
.sec-block-roadmap {
  background: linear-gradient(180deg, rgba(0, 230, 118, 0.03) 0%, var(--bg-alt) 60%);
  border-color: rgba(0, 230, 118, 0.25);
}
.sec-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--fg-dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 18px;
  padding: 5px 12px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.sec-block-roadmap .sec-label {
  color: var(--accent);
  border-color: rgba(0, 230, 118, 0.4);
  background: rgba(0, 230, 118, 0.06);
}
.sec-list {
  list-style: none;
}
.sec-list li {
  color: var(--fg-mid);
  font-size: 14.5px;
  line-height: 1.65;
  padding: 12px 0 12px 28px;
  border-bottom: 1px solid var(--border-soft);
  position: relative;
}
.sec-list li:last-child { border-bottom: none; }
.sec-list li strong { color: var(--fg); font-weight: 600; }
.sec-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: rgba(0, 230, 118, 0.1);
  border: 1px solid var(--accent);
}
.sec-list li::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 20px;
  width: 7px;
  height: 3px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.sec-block-roadmap .sec-list li::before {
  background: transparent;
  border-style: dashed;
}
.sec-block-roadmap .sec-list li::after { display: none; }
.sec-block-roadmap .sec-list li { padding-left: 28px; }
.sec-list code {
  background: var(--bg-elev);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12.5px;
  color: var(--accent);
  border: 1px solid var(--border);
}

/* ---------- PRICING ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 20px;
  margin-top: 44px;
}
.pricing-grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
@media (min-width: 1100px) {
  .pricing-grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.tier-enterprise {
  background: linear-gradient(180deg, var(--bg-elev) 0%, var(--bg-alt) 60%);
  border-color: var(--border-bright);
}
.tier-enterprise .price { font-size: 28px; }
.tier-enterprise .price .unit { font-size: 13px; }

/* Business card with Team / Enterprise tabs */
.tier-business {
  background: linear-gradient(180deg, rgba(0, 230, 118, 0.04) 0%, var(--bg-alt) 60%);
  border-color: rgba(0, 230, 118, 0.25);
  padding-top: 22px;
}
.business-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px;
  margin-bottom: 22px;
}
.business-tab {
  flex: 1;
  padding: 7px 10px;
  background: transparent;
  border: none;
  color: var(--fg-mid);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}
.business-tab:hover { color: var(--fg); }
.business-tab.active {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 0 12px var(--accent-glow);
}
.business-pane[hidden] { display: none; }
.business-pane { display: flex; flex-direction: column; flex-grow: 1; }
.business-pane ul { flex-grow: 1; }
.tier {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.tier:hover { border-color: var(--border-bright); transform: translateY(-2px); }
.tier.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(0, 230, 118, 0.05) 0%, var(--bg-alt) 50%);
  box-shadow:
    0 0 0 1px var(--accent),
    0 24px 72px -20px var(--accent-glow-strong);
}
.tier.featured::before {
  content: "Most popular";
  position: absolute;
  top: -11px; left: 30px;
  background: var(--accent);
  color: var(--bg);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.tier .name { font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--fg-mid); font-weight: 600; }
.tier .price { font-size: 42px; font-weight: 800; margin: 12px 0 4px; letter-spacing: -0.03em; }
.tier .price .unit { font-size: 14px; color: var(--fg-mid); font-weight: 400; letter-spacing: 0; }
.tier .desc { font-size: 13.5px; color: var(--fg-dim); margin-bottom: 22px; }
.tier ul { list-style: none; margin-top: 8px; flex-grow: 1; }
.tier li {
  font-size: 14px;
  color: var(--fg);
  margin-bottom: 12px;
  padding-left: 24px;
  position: relative;
  line-height: 1.5;
}
.tier li::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 14px; height: 14px;
  background: rgba(0, 230, 118, 0.12);
  border: 1px solid var(--accent);
  border-radius: 4px;
}
.tier li::after {
  content: "";
  position: absolute;
  left: 4px; top: 9px;
  width: 6px; height: 3px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.tier .btn { margin-top: 26px; justify-content: center; width: 100%; }
.pricing-fineprint {
  color: var(--fg-dim);
  font-size: 13px;
  margin-top: 28px;
  max-width: 700px;
  line-height: 1.65;
}
.pricing-fineprint + .pricing-fineprint { margin-top: 10px; }

/* ---------- FAQ ---------- */

.faq {
  margin-top: 40px;
  max-width: 820px;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-alt);
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color 0.15s ease;
}
.faq-item:hover { border-color: var(--border-bright); }
.faq-item summary {
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  color: var(--fg);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.15s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  color: var(--accent);
  font-size: 22px;
  font-weight: 300;
  transition: transform 0.2s ease;
  line-height: 1;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--accent); }
.faq-item .answer {
  padding: 0 24px 22px;
  color: var(--fg-mid);
  font-size: 14.5px;
  line-height: 1.7;
}
.faq-item .answer a { color: var(--accent); }

/* ---------- NOTIFY ---------- */

.notify {
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  text-align: center;
}
.notify h3 { font-size: 26px; margin-bottom: 14px; }
.notify p {
  color: var(--fg-mid);
  margin-bottom: 28px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  font-size: 15px;
}
.notify form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}
.notify input[type="email"] {
  flex: 1;
  min-width: 240px;
  padding: 13px 16px;
  background: var(--bg);
  border: 1px solid var(--border-bright);
  border-radius: 8px;
  color: var(--fg);
  font-size: 14.5px;
  font-family: inherit;
  transition: all 0.15s ease;
}
.notify input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* ---------- FOOTER ---------- */

footer {
  padding: 56px 0 72px;
  color: var(--fg-dim);
  font-size: 13.5px;
  border-top: 1px solid var(--border-soft);
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
footer .logo-wordmark { font-size: 16px; }
footer .links { display: flex; gap: 28px; }
footer a { color: var(--fg-mid); }
footer a:hover { color: var(--fg); }

/* ---------- CONTENT PAGES (terms, privacy, welcome) ---------- */

.content-page {
  max-width: 740px;
  margin: 0 auto;
  padding: 56px 32px 96px;
}
.content-page .back-link { color: var(--fg-dim); font-size: 14px; margin-bottom: 24px; display: inline-block; }
.content-page .back-link:hover { color: var(--fg); text-decoration: none; }
.content-page h1 { font-size: 40px; margin-bottom: 8px; letter-spacing: -0.03em; font-weight: 800; }
.content-page h2 { font-size: 20px; margin: 40px 0 14px; color: var(--accent); font-weight: 600; }
.content-page .meta { color: var(--fg-dim); font-size: 14px; margin-bottom: 32px; }
.content-page p, .content-page li { color: var(--fg-mid); line-height: 1.75; }
.content-page ul, .content-page ol { padding-left: 22px; margin: 12px 0; }
.content-page li { margin-bottom: 8px; }
.content-page code {
  background: var(--bg-elev);
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 13.5px;
  color: var(--accent);
  border: 1px solid var(--border);
}
.content-page .tldr {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  padding: 20px 24px;
  border-radius: 8px;
  margin: 28px 0;
  color: var(--fg);
}

/* ---------- FADE-IN ON SCROLL ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- ANIMATED TERMINAL (hero typewriter) ---------- */

.terminal.term-animated .body { min-height: 220px; }
.term-animated .line { display: block; opacity: 0; transform: translateY(4px); transition: opacity 0.18s ease, transform 0.2s ease; }
.term-animated .line.in { opacity: 1; transform: translateY(0); }
.term-animated .cursor {
  display: inline-block;
  width: 8px; height: 15px;
  background: var(--accent);
  vertical-align: -2px;
  margin-left: 2px;
  animation: term-blink 1s step-end infinite;
  box-shadow: 0 0 8px var(--accent-glow-strong);
}
@keyframes term-blink { 50% { opacity: 0; } }

/* ---------- BEFORE / WITH PANELS + COUNTERS ---------- */

.ba-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
  margin-top: 40px;
}
.ba-panel {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  position: relative;
}
.ba-panel.ba-before { border-color: var(--border); }
.ba-panel.ba-after {
  border-color: rgba(0, 230, 118, 0.3);
  background: linear-gradient(180deg, rgba(0, 230, 118, 0.035) 0%, var(--bg-alt) 70%);
  box-shadow: 0 0 0 1px rgba(0, 230, 118, 0.08), 0 24px 72px -30px rgba(0, 230, 118, 0.2);
}
.ba-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 5px 11px;
  border-radius: 999px;
  margin-bottom: 18px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--fg-dim);
}
.ba-panel.ba-after .ba-label {
  color: var(--accent);
  border-color: rgba(0, 230, 118, 0.4);
  background: rgba(0, 230, 118, 0.08);
}
.ba-panel ul { list-style: none; }
.ba-panel li {
  padding: 13px 0 13px 30px;
  color: var(--fg-mid);
  font-size: 14.5px;
  border-bottom: 1px solid var(--border-soft);
  line-height: 1.55;
  position: relative;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.ba-panel.in li { opacity: 1; transform: translateY(0); }
.ba-panel li:last-child { border-bottom: none; }
.ba-panel li strong { color: var(--fg); font-weight: 600; }
.ba-panel.ba-before li::before {
  content: "✕";
  position: absolute;
  left: 4px; top: 12px;
  color: #f87171;
  font-size: 14px;
  font-weight: 700;
}
.ba-panel.ba-after li::before {
  content: "";
  position: absolute;
  left: 4px; top: 17px;
  width: 8px; height: 4px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
/* stagger item reveals */
.ba-panel.in li:nth-child(1) { transition-delay: 0.05s; }
.ba-panel.in li:nth-child(2) { transition-delay: 0.15s; }
.ba-panel.in li:nth-child(3) { transition-delay: 0.25s; }
.ba-panel.in li:nth-child(4) { transition-delay: 0.35s; }
.ba-panel.in li:nth-child(5) { transition-delay: 0.45s; }

.counters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 28px;
}
.counter {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.counter::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.25), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.counter-row {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: "JetBrains Mono", "SF Mono", monospace;
}
.counter-pre {
  font-size: 22px;
  color: var(--fg-dim);
  text-decoration: line-through;
  text-decoration-color: rgba(248, 113, 113, 0.5);
  font-weight: 500;
}
.counter-arrow {
  color: var(--fg-dim);
  font-size: 18px;
}
.counter-val {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  min-width: 60px;
}
.counter-label {
  display: block;
  color: var(--fg-mid);
  font-size: 13.5px;
  margin-top: 10px;
  line-height: 1.45;
}

/* ---------- ARCHITECTURE SVG ---------- */

.arch {
  margin-top: 44px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
}
.arch svg { width: 100%; height: auto; display: block; max-width: 900px; margin: 0 auto; }
.arch .node rect {
  fill: var(--bg-elev);
  stroke: var(--border-bright);
  stroke-width: 1.5;
  rx: 10;
}
.arch .node.accent rect {
  fill: rgba(0, 230, 118, 0.08);
  stroke: var(--accent);
}
.arch .node text {
  fill: var(--fg);
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 600;
}
.arch .node .sub {
  fill: var(--fg-dim);
  font-size: 10.5px;
  font-weight: 400;
}
.arch path.link {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
  stroke-linecap: round;
  opacity: 0.55;
}
.arch.in path.link {
  stroke-dashoffset: 0;
  animation: arch-draw 1.2s ease-out forwards;
}
.arch path.link { stroke-dashoffset: 300; }
.arch.in path.link:nth-child(1) { animation-delay: 0.2s; }
.arch.in path.link:nth-child(2) { animation-delay: 0.5s; }
.arch.in path.link:nth-child(3) { animation-delay: 0.8s; }
.arch.in path.link:nth-child(4) { animation-delay: 1.1s; }
@keyframes arch-draw { to { stroke-dashoffset: 0; } }
.arch .node {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.arch.in .node { opacity: 1; transform: translateY(0); }
.arch.in .node:nth-of-type(1) { transition-delay: 0.05s; }
.arch.in .node:nth-of-type(2) { transition-delay: 0.15s; }
.arch.in .node:nth-of-type(3) { transition-delay: 0.25s; }
.arch.in .node:nth-of-type(4) { transition-delay: 0.35s; }
.arch.in .node:nth-of-type(5) { transition-delay: 0.45s; }
.arch.in .node:nth-of-type(6) { transition-delay: 0.55s; }

/* ---------- LOGOS STRIP (integrations / tech-we-use) ---------- */

.logos-strip {
  margin-top: 44px;
  padding: 28px 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.logos-strip .label {
  font-size: 11px;
  font-weight: 600;
  color: var(--fg-dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-align: center;
  margin-bottom: 18px;
}
.logos-strip .items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px 40px;
  align-items: center;
}
.logos-strip .items span {
  color: var(--fg-mid);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  opacity: 0.55;
  transition: opacity 0.2s ease, color 0.2s ease;
  cursor: default;
}
.logos-strip .items span:hover {
  opacity: 1;
  color: var(--accent);
}

/* ---------- COHORT / OUTCOME STORIES ---------- */

.cohort-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.cohort-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  position: relative;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.cohort-card:hover {
  border-color: rgba(0, 230, 118, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 18px 48px -20px var(--accent-glow-strong);
}
.cohort-quote {
  color: var(--fg);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 18px;
  font-weight: 400;
}
.cohort-quote::before {
  content: "\201C";
  color: var(--accent);
  font-size: 28px;
  font-weight: 700;
  line-height: 0;
  margin-right: 4px;
  vertical-align: -6px;
}
.cohort-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border-soft);
}
.cohort-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--bg);
  font-size: 13px;
  flex-shrink: 0;
}
.cohort-who {
  font-size: 13.5px;
  color: var(--fg);
  font-weight: 600;
  line-height: 1.3;
}
.cohort-ctx {
  color: var(--fg-dim);
  font-size: 12px;
  font-weight: 400;
  margin-top: 2px;
}

/* ---------- CARD POLISH (lift) ---------- */

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 56px -28px var(--accent-glow-strong);
}
.tier:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px -20px rgba(0, 0, 0, 0.4);
}

/* ---------- SOFT SECTION TRANSITIONS ---------- */

.section-stripe {
  position: relative;
}
.section-stripe::before,
.section-stripe::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 48px;
  pointer-events: none;
  z-index: 1;
}
.section-stripe::before {
  top: 0;
  background: linear-gradient(180deg, var(--bg) 0%, transparent 100%);
}
.section-stripe::after {
  bottom: 0;
  background: linear-gradient(0deg, var(--bg) 0%, transparent 100%);
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 768px) {
  .container { padding: 0 20px; }

  /* ── Mobile nav: hamburger drawer ──────────────────────────────────────── */
  nav .container { position: relative; }

  /* Show the hamburger toggle (injected by nav.js) */
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    color: var(--fg);
    -webkit-tap-highlight-color: transparent;
    transition: border-color 120ms ease, background 120ms ease;
  }
  .nav-toggle:hover { background: var(--bg-elev); }
  .nav-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  .nav-toggle-bar {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 200ms ease, opacity 150ms ease;
  }
  /* Animate to X when open */
  nav .container.is-mobile-open .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  nav .container.is-mobile-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
  nav .container.is-mobile-open .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Slide-in drawer. Simple transform-only animation. */
  nav ul {
    position: fixed;
    top: 60px;
    right: 0;
    bottom: 0;
    width: min(320px, 86vw);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 0 24px;
    margin: 0;
    background: var(--bg);
    border-left: 1px solid var(--border);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.3);
    transform: translateX(100%);
    transition: transform 240ms cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    /* Above sticky nav (z:50) and any page section that creates its own
       stacking context. Without this the drawer renders BEHIND hero/cards. */
    z-index: 60;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  nav .container.is-mobile-open ul {
    transform: translateX(0);
    pointer-events: auto;
  }

  nav ul li {
    border-bottom: 1px solid var(--border-subtle, var(--border));
  }
  nav ul li:last-child { border-bottom: none; }
  nav ul li a {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    font-size: 16px;
    color: var(--fg);
  }
  nav ul li a:hover { background: var(--bg-elev); color: var(--accent); }

  /* CTA in the drawer becomes a full-width button */
  nav .nav-cta {
    margin: 12px 20px 0;
    padding: 12px 16px;
    justify-content: center;
    border-radius: 10px;
  }

  /* Dropdown items inline-expand inside the drawer (no positioning, no shadow) */
  nav ul li.has-dropdown > a::after { margin-left: auto; }
  nav .nav-dropdown {
    position: static;
    box-shadow: none;
    border: none;
    background: var(--bg-elev, rgba(255, 255, 255, 0.03));
    padding: 4px 0 4px 16px;
    margin: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 220ms ease;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  nav ul li.has-dropdown.is-open .nav-dropdown { max-height: 600px; }
  nav .nav-dropdown li { border-bottom: none; }
  nav .nav-dropdown a { padding: 10px 20px; font-size: 14.5px; color: var(--fg-mid); }

  /* Subtle dim of page when drawer is open (no overlay element needed) */
  body.nav-open { overflow: hidden; }
  body.nav-open::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 49;
    pointer-events: none;
  }

  .hero { padding: 72px 0 56px; }
  .hero h1 { font-size: 36px; letter-spacing: -0.025em; }
  .hero .tagline { font-size: 16.5px; }
  .hero .cta { flex-direction: column; align-items: stretch; }
  .hero .cta .btn { width: 100%; justify-content: center; }
  .trust-bar { flex-direction: column; gap: 14px; align-items: flex-start; }
  section { padding: 56px 0; }
  h2 { font-size: 26px; }
  .terminal { max-width: 100%; }
  .terminal .body { font-size: 12.5px; padding: 16px; line-height: 1.7; }
  .content-page { padding: 32px 20px 72px; }
  .content-page h1 { font-size: 30px; }
  .notify { padding: 40px 24px; }
  .faq-item summary { padding: 16px 20px; font-size: 14px; }
}

/* Hide the hamburger on desktop only. Wrap in @media (min-width: 769px)
   instead of an unconditional `display: none` — without the media query
   guard, this rule's source order (later than the mobile show rule) would
   override the mobile `display: inline-flex` and the hamburger would
   never appear at any viewport. */
@media (min-width: 769px) {
  .nav-toggle { display: none; }
}

/* ── DROPDOWN NAV (Cursor / Claude.ai pattern) ─────────────────────────── */

nav ul li.has-dropdown { position: relative; }

/* Parent trigger: looks like a nav link, behaves like a dropdown opener.
   nav.js prevents default on click so the page doesn't scroll/navigate. */
nav ul li.has-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: default;
  user-select: none;
}

/* Cleaner SVG-style chevron via CSS — flips when dropdown opens.
   `margin-left` differs per viewport: 6px at desktop sits flush after the
   text; `auto` at mobile flex-pushes it to the right edge of the drawer
   row. Wrapping in min-width:769px so the mobile @media override (defined
   earlier in this file) actually wins by source order. */
nav ul li.has-dropdown > a::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px);
  margin-top: -2px;
  opacity: 0.7;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
@media (min-width: 769px) {
  nav ul li.has-dropdown > a::after { margin-left: 6px; }
}
nav ul li.has-dropdown:hover > a::after,
nav ul li.has-dropdown:focus-within > a::after,
nav ul li.has-dropdown.is-open > a::after {
  transform: rotate(225deg) translate(0, 0);
  opacity: 1;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: -16px;
  min-width: 240px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 0;
  box-shadow: 0 20px 48px -12px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.02);
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 1000;
  list-style: none;
  margin: 14px 0 0 0;
}

/* HOVER BRIDGE — invisible padding-top fills the gap between the parent <a>
   and the dropdown card so moving the cursor down doesn't kill hover. */
.nav-dropdown::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}

/* Right-edge dropdowns: anchor right so they don't spill past the viewport */
nav ul li.has-dropdown:nth-last-child(-n+2) .nav-dropdown {
  left: auto;
  right: -16px;
}

nav ul li.has-dropdown:hover .nav-dropdown,
nav ul li.has-dropdown:focus-within .nav-dropdown,
nav ul li.has-dropdown.is-open .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-dropdown li { display: block; padding: 0; margin: 0; }

.nav-dropdown a {
  display: block;
  padding: 11px 18px;
  color: var(--fg-mid);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  border-radius: 0;
  transition: background 0.12s ease, color 0.12s ease;
}

.nav-dropdown a:hover,
.nav-dropdown a:focus-visible {
  background: rgba(0,230,118,0.08);
  color: var(--fg);
  outline: none;
}

.nav-dropdown a .desc {
  display: block;
  color: var(--fg-dim);
  font-size: 12px;
  font-weight: 400;
  margin-top: 3px;
  letter-spacing: 0;
}
.nav-dropdown a:hover .desc { color: var(--fg-mid); }

/* Mobile: dropdowns stack inline (still hidden by default; tap parent to open) */
@media (max-width: 768px) {
  nav ul li.has-dropdown > a::after {
    margin-left: auto;
  }
  .nav-dropdown {
    position: static;
    min-width: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0 0 0 14px;
    margin: 0;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    display: none;
  }
  .nav-dropdown::before { display: none; }
  nav ul li.has-dropdown:hover .nav-dropdown,
  nav ul li.has-dropdown:focus-within .nav-dropdown,
  nav ul li.has-dropdown.is-open .nav-dropdown {
    display: block;
  }
  .nav-dropdown a {
    padding: 8px 0;
    font-size: 14.5px;
  }
  .nav-dropdown a .desc { display: none; }
}

/* ════════════════════════════════════════════════════════════════════════
   CONTROL PLANE DEMO (post-hero "no terminal required" section)
   Browser-chrome wrapper around a 4-tile dashboard mockup. Anchors the
   non-developer story before the existing terminal demo below it.
   ════════════════════════════════════════════════════════════════════════ */

.control-plane-demo {
  padding: 96px 0 72px;
  position: relative;
  z-index: 1;
}

.cpd-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
}
.cpd-eyebrow {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(0, 230, 118, 0.08);
  border: 1px solid rgba(0, 230, 118, 0.3);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.cpd-eyebrow--alt {
  color: var(--fg-mid);
  background: var(--bg-elev);
  border-color: var(--border);
}
.cpd-head h2 {
  font-size: clamp(28px, 3vw, 40px);
  margin-bottom: 12px;
}
.cpd-head p {
  color: var(--fg-mid);
  font-size: 16.5px;
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto;
}

/* Browser chrome window */
.cpd-window {
  max-width: 980px;
  margin: 0 auto;
  background: var(--bg-alt);
  border: 1px solid var(--border-bright);
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 36px 96px -16px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.02),
    0 0 80px -20px rgba(0, 230, 118, 0.18);
}

.cpd-chrome {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--term-bar);
  border-bottom: 1px solid var(--border);
}
.cpd-tlights { display: inline-flex; gap: 6px; }
.cpd-tl { width: 12px; height: 12px; border-radius: 50%; }
.cpd-tl--r { background: var(--term-dot-red); }
.cpd-tl--y { background: var(--term-dot-yellow); }
.cpd-tl--g { background: var(--term-dot-green); }

.cpd-urlbar {
  flex: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--fg-mid);
  max-width: 480px;
  margin: 0 auto;
}
.cpd-lock { color: var(--accent); display: inline-flex; }
.cpd-url { font-family: "JetBrains Mono", "SF Mono", monospace; }

/* Body — sidebar + main grid */
.cpd-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 460px;
}

.cpd-sidebar {
  border-right: 1px solid var(--border);
  padding: 18px 12px;
  background: var(--bg);
}
.cpd-side-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  margin-bottom: 18px;
  font-weight: 700;
  font-size: 14px;
  color: var(--accent);
}
.cpd-side-item {
  display: block;
  padding: 9px 12px;
  font-size: 13.5px;
  color: var(--fg-mid);
  border-radius: 8px;
  margin-bottom: 2px;
  transition: background 0.12s ease, color 0.12s ease;
  cursor: default;
}
.cpd-side-item:hover { background: var(--bg-elev); color: var(--fg); }
.cpd-side-item--active {
  background: rgba(0, 230, 118, 0.08);
  color: var(--fg);
  font-weight: 600;
}

.cpd-main { padding: 28px 32px; }
.cpd-main-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}
.cpd-main-head h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.cpd-tier-chip {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--accent);
  background: rgba(0, 230, 118, 0.08);
  border: 1px solid rgba(0, 230, 118, 0.3);
  padding: 4px 10px;
  border-radius: 999px;
}

.cpd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.cpd-tile {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.cpd-tile--on {
  border-color: rgba(0, 230, 118, 0.28);
  box-shadow: 0 0 0 1px rgba(0, 230, 118, 0.06) inset;
}
.cpd-tile:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 230, 118, 0.45);
}
.cpd-tile-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.cpd-tile-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.cpd-tile-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--fg);
  flex: 1;
}
.cpd-tile-toggle {
  width: 32px; height: 18px;
  border-radius: 999px;
  background: var(--bg-elev);
  border: 1px solid var(--border-bright);
  position: relative;
  flex-shrink: 0;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.cpd-tile--on .cpd-tile-toggle {
  background: var(--accent);
  border-color: var(--accent);
}
.cpd-knob {
  position: absolute;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--fg);
  top: 2px;
  left: 2px;
  transition: left 0.18s ease;
}
.cpd-tile--on .cpd-knob {
  left: 16px;
  background: var(--bg);
}

.cpd-tile-stat {
  font-size: 17px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.cpd-tile-stat.cpd-muted { color: var(--fg-dim); font-weight: 500; }
.cpd-tile-meta {
  font-size: 12.5px;
  color: var(--fg-mid);
  line-height: 1.5;
}

.cpd-bar {
  margin-top: 10px;
  height: 5px;
  background: var(--bg-elev);
  border-radius: 999px;
  overflow: hidden;
}
.cpd-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
  border-radius: 999px;
}

.cpd-applist {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.cpd-apppill {
  font-size: 11.5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--bg-elev);
  color: var(--fg-mid);
  border: 1px solid var(--border);
}

.cpd-ssh {
  margin-top: 10px;
  font-family: "JetBrains Mono", "SF Mono", monospace;
  font-size: 11.5px;
  color: var(--accent);
  background: var(--code-bg);
  border: 1px solid var(--border);
  padding: 5px 9px;
  border-radius: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cpd-cta-mini {
  margin-top: 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
}

.cpd-foot {
  text-align: center;
  margin-top: 28px;
  font-size: 13.5px;
  color: var(--fg-dim);
}
.cpd-foot a {
  color: var(--accent);
  font-weight: 500;
  margin-left: 6px;
}

/* Light-mode tokens for the demo (avoid white-on-white card backgrounds) */
:root[data-theme="light"] .cpd-window {
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.02) inset,
    0 24px 60px -16px rgba(0, 0, 0, 0.18),
    0 0 0 1px rgba(0, 0, 0, 0.03);
}
:root[data-theme="light"] .cpd-tile { background: var(--bg-stripe); }
:root[data-theme="light"] .cpd-tile-toggle { background: var(--bg-elev); }
:root[data-theme="light"] .cpd-knob { background: var(--fg-mid); }
:root[data-theme="light"] .cpd-tile--on .cpd-knob { background: #fff; }
:root[data-theme="light"] .cpd-ssh { background: var(--bg-stripe); }

/* Mobile: collapse sidebar, single-column tiles */
@media (max-width: 768px) {
  .control-plane-demo { padding: 64px 0 48px; }
  .cpd-window { border-radius: 12px; }
  .cpd-body { grid-template-columns: 1fr; min-height: 0; }
  .cpd-sidebar {
    display: flex;
    overflow-x: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 12px;
    gap: 6px;
  }
  .cpd-side-mark { display: none; }
  .cpd-side-item { white-space: nowrap; padding: 7px 12px; }
  .cpd-main { padding: 22px 18px; }
  .cpd-grid { grid-template-columns: 1fr; }
  .cpd-urlbar { font-size: 11px; padding: 5px 10px; }
}

/* ════════════════════════════════════════════════════════════════════════
   THEME SWITCHER (footer) — System / Light / Dark, Cursor pattern
   ════════════════════════════════════════════════════════════════════════ */

.footer-controls {
  display: flex;
  gap: 12px;
  margin-bottom: 8px;
  justify-content: center;
}

.theme-switcher {
  display: inline-flex;
  background: var(--bg-stripe);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}

.theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  border-radius: 999px;
  color: var(--fg-dim);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  font-family: inherit;
  padding: 0;
}

.theme-btn:hover { color: var(--fg); }

.theme-btn[aria-pressed="true"] {
  background: var(--bg-elev);
  color: var(--fg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 0 0 1px var(--border);
}

.theme-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--accent-glow-strong);
}

.theme-btn svg {
  display: block;
  pointer-events: none;
}

/* ════════════════════════════════════════════════════════════════════════
   LIGHT MODE — token overrides + component-specific tweaks
   ════════════════════════════════════════════════════════════════════════ */

:root[data-theme="light"] {
  --bg: #ffffff;
  --bg-alt: #f7f7f8;
  --bg-elev: #ffffff;
  --bg-stripe: #fafafb;
  --fg: #0a0a0d;
  --fg-mid: #4a4a55;
  --fg-dim: #8b8b95;
  --accent: #00b85f;
  --accent-bright: #00cc6a;
  --accent-dim: #009448;
  --accent-glow: rgba(0, 184, 95, 0.12);
  --accent-glow-strong: rgba(0, 184, 95, 0.22);
  --border: #e5e5ea;
  --border-bright: #d1d1d8;
  --border-soft: #ededf0;
  --code-bg: #f4f4f6;
  --term-bar: #ededf0;
}

/* Force dark color-scheme baseline for form controls etc. */
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

/* ── Nav: switch translucent dark to translucent white ──────────────── */
:root[data-theme="light"] nav {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--border);
}

/* ── Hero glow softer on white ──────────────────────────────────────── */
:root[data-theme="light"] .hero::before {
  opacity: 0.35;
  filter: blur(60px);
}

/* ── Hero dot grid — invert from white-on-dark to black-on-white ────── */
:root[data-theme="light"] .hero::after {
  background-image:
    radial-gradient(circle at 1px 1px, rgba(0, 0, 0, 0.06) 1px, transparent 0);
}

/* ── Hero gradient text — keep darker green stops for contrast ──────── */
:root[data-theme="light"] .hero h1 .accent,
:root[data-theme="light"] h2 .accent,
:root[data-theme="light"] .counter-val {
  background: linear-gradient(135deg, #00b85f 0%, #009448 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Eyebrow pill — keep visible against white nav/hero ─────────────── */
:root[data-theme="light"] .eyebrow {
  background: linear-gradient(135deg, rgba(0, 184, 95, 0.06) 0%, var(--bg-stripe) 100%) !important;
  border: 1px solid rgba(0, 184, 95, 0.32) !important;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    inset 0 0 12px rgba(0, 184, 95, 0.04) !important;
  color: var(--fg-mid);
}

/* ── Buttons ────────────────────────────────────────────────────────── */
:root[data-theme="light"] .btn {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06) !important;
}

:root[data-theme="light"] .btn-primary {
  /* darker gradient for AA contrast on white background; override polish hex */
  background: linear-gradient(135deg, #00cc6a 0%, #00b85f 100%) !important;
  box-shadow:
    0 2px 8px rgba(0, 184, 95, 0.18),
    0 0 16px rgba(0, 184, 95, 0.12) !important;
  color: #ffffff !important;
}

:root[data-theme="light"] .btn-primary:hover {
  box-shadow:
    0 6px 18px rgba(0, 184, 95, 0.28),
    0 0 24px rgba(0, 184, 95, 0.18) !important;
}

:root[data-theme="light"] .btn-secondary {
  background: var(--bg-stripe) !important;
  border-color: var(--border-bright) !important;
  color: var(--fg) !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
:root[data-theme="light"] .btn-secondary:hover {
  background: #f0f0f3 !important;
  border-color: var(--accent) !important;
  box-shadow: 0 4px 12px rgba(0, 184, 95, 0.12) !important;
}

/* ── Nav CTA shadow scaled down ─────────────────────────────────────── */
:root[data-theme="light"] nav .nav-cta {
  color: #ffffff !important;
  box-shadow: 0 1px 4px rgba(0, 184, 95, 0.18);
}

/* ── Logo wordmark glow — softer on white ───────────────────────────── */
:root[data-theme="light"] .logo-wordmark .mark {
  box-shadow: 0 1px 6px rgba(0, 184, 95, 0.25), inset 0 0 12px rgba(255, 255, 255, 0.2) !important;
}
:root[data-theme="light"] .logo-wordmark .mark svg {
  color: #ffffff;
}

/* ── Terminal — drop heavy black shadow, warm the bar ───────────────── */
:root[data-theme="light"] .terminal {
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.04),
    0 12px 40px -8px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
  background: var(--code-bg);
  border: 1px solid var(--border) !important;
}
:root[data-theme="light"] .terminal .bar {
  background: linear-gradient(180deg, #ededf0 0%, #e5e5ea 100%);
  border-bottom: 1px solid var(--border);
}
:root[data-theme="light"] .terminal .body .prompt { color: var(--fg-dim); }
:root[data-theme="light"] .terminal .body .cmd { color: var(--accent-dim); }
:root[data-theme="light"] .terminal .body .out { color: var(--fg-mid); }
:root[data-theme="light"] .terminal .body .out-ok { color: var(--accent); }

/* ── Hero visual stack — neutralize dark gradient backings ─────────── */
:root[data-theme="light"] .resource-stack {
  background:
    radial-gradient(ellipse 120% 80% at 50% 0%, rgba(0, 184, 95, 0.10) 0%, transparent 60%),
    linear-gradient(180deg, rgba(247, 247, 248, 0.85) 0%, rgba(255, 255, 255, 0.95) 100%);
  border-color: var(--border);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.04),
    0 30px 70px -20px rgba(0, 184, 95, 0.18),
    0 12px 36px -12px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
:root[data-theme="light"] .resource-stack-head {
  border-bottom-color: var(--border-soft);
}
:root[data-theme="light"] .resource-card {
  background: linear-gradient(135deg, #ffffff 0%, #fafafb 100%);
  border-color: var(--border);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
:root[data-theme="light"] .resource-card--off {
  background: linear-gradient(135deg, #f4f4f6 0%, #ededf0 100%);
  opacity: 0.7;
}
:root[data-theme="light"] .resource-card--focus {
  border-color: rgba(0, 184, 95, 0.45);
  background: linear-gradient(135deg, rgba(0, 184, 95, 0.10) 0%, #ffffff 100%);
  box-shadow:
    0 0 0 1px rgba(0, 184, 95, 0.3),
    0 8px 28px -6px rgba(0, 184, 95, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
:root[data-theme="light"] .rc-toggle {
  background: rgba(0, 0, 0, 0.12);
}
:root[data-theme="light"] .resource-card--on .rc-toggle {
  background: var(--accent);
  box-shadow: 0 0 12px rgba(0, 184, 95, 0.35);
}
:root[data-theme="light"] .rc-status--muted {
  background: rgba(0, 0, 0, 0.04);
  color: var(--fg-dim);
  border: 1px solid var(--border);
}
:root[data-theme="light"] .rc-status--on {
  background: rgba(0, 184, 95, 0.10);
  color: var(--accent-dim);
  border: 1px solid rgba(0, 184, 95, 0.32);
  box-shadow: 0 0 8px rgba(0, 184, 95, 0.08);
}

/* ── Trust bar bullet dot ───────────────────────────────────────────── */
/* (already uses var(--accent) — auto-updates) */

/* ── Tables ─────────────────────────────────────────────────────────── */
:root[data-theme="light"] tbody tr:hover { background: rgba(0, 0, 0, 0.025); }
:root[data-theme="light"] th { background: var(--bg-stripe); }
:root[data-theme="light"] td code,
:root[data-theme="light"] .sec-list code,
:root[data-theme="light"] .content-page code {
  background: var(--bg-stripe);
  color: var(--accent-dim);
  border: 1px solid var(--border);
}

/* Feature matrix section header rows */
:root[data-theme="light"] .feature-matrix tbody tr td[colspan] {
  background: var(--bg-stripe);
  color: var(--fg-mid);
}

/* ── Cards ──────────────────────────────────────────────────────────── */
:root[data-theme="light"] .card {
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-stripe) 100%) !important;
  border-color: var(--border) !important;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.02),
    0 1px 3px rgba(0, 0, 0, 0.04),
    0 6px 20px rgba(0, 0, 0, 0.04) !important;
}
:root[data-theme="light"] .card:hover {
  border-color: rgba(0, 184, 95, 0.45) !important;
  background: linear-gradient(180deg, #ffffff 0%, rgba(0, 184, 95, 0.04) 100%) !important;
  box-shadow:
    0 0 0 1px rgba(0, 184, 95, 0.25),
    0 14px 40px -10px rgba(0, 184, 95, 0.18) !important;
}
:root[data-theme="light"] .card .num {
  background: rgba(0, 184, 95, 0.08);
  border-color: rgba(0, 184, 95, 0.35);
  color: var(--accent-dim);
}

/* ── Tier / pricing cards ───────────────────────────────────────────── */
:root[data-theme="light"] .tier {
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-stripe) 100%) !important;
  border-color: var(--border) !important;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.02),
    0 4px 16px rgba(0, 0, 0, 0.05) !important;
}
:root[data-theme="light"] .tier:hover {
  border-color: var(--border-bright) !important;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.04),
    0 12px 36px rgba(0, 0, 0, 0.08) !important;
}
:root[data-theme="light"] .tier.featured {
  background: linear-gradient(180deg, rgba(0, 184, 95, 0.06) 0%, #ffffff 60%) !important;
  border: 1.5px solid rgba(0, 184, 95, 0.45) !important;
  box-shadow:
    0 0 0 1px rgba(0, 184, 95, 0.22),
    0 16px 48px -16px rgba(0, 184, 95, 0.22) !important;
}
:root[data-theme="light"] .tier.featured:hover {
  box-shadow:
    0 0 0 1px rgba(0, 184, 95, 0.32),
    0 22px 60px -14px rgba(0, 184, 95, 0.28) !important;
}
:root[data-theme="light"] .tier.featured::before {
  color: #ffffff;
}
:root[data-theme="light"] .tier li::before {
  background: rgba(0, 184, 95, 0.12);
  border-color: var(--accent);
}
:root[data-theme="light"] .tier-business {
  background: linear-gradient(180deg, rgba(0, 184, 95, 0.05) 0%, #ffffff 60%) !important;
  border-color: rgba(0, 184, 95, 0.3) !important;
}
:root[data-theme="light"] .business-tabs {
  background: var(--bg-stripe);
  border-color: var(--border);
}
:root[data-theme="light"] .business-tab.active {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 0 8px var(--accent-glow);
}
:root[data-theme="light"] .tier-enterprise {
  background: linear-gradient(180deg, var(--bg-stripe) 0%, #ffffff 60%) !important;
  border-color: var(--border-bright) !important;
}

/* ── Cohort cards ───────────────────────────────────────────────────── */
:root[data-theme="light"] .cohort-card {
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-stripe) 100%) !important;
  border-color: var(--border) !important;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.02),
    0 4px 14px rgba(0, 0, 0, 0.04) !important;
}
:root[data-theme="light"] .cohort-card:hover {
  border-color: rgba(0, 184, 95, 0.4) !important;
  background: linear-gradient(180deg, #ffffff 0%, rgba(0, 184, 95, 0.03) 100%) !important;
  box-shadow:
    0 0 0 1px rgba(0, 184, 95, 0.22),
    0 16px 44px -16px rgba(0, 184, 95, 0.2) !important;
}
:root[data-theme="light"] .cohort-meta {
  border-top-color: var(--border-soft);
}
:root[data-theme="light"] .cohort-avatar {
  color: #ffffff;
}

/* ── Security / sec-list ────────────────────────────────────────────── */
:root[data-theme="light"] .sec-block {
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-stripe) 100%);
  border-color: var(--border);
}
:root[data-theme="light"] .sec-block-roadmap {
  background: linear-gradient(180deg, rgba(0, 184, 95, 0.04) 0%, #ffffff 60%);
  border-color: rgba(0, 184, 95, 0.3);
}
:root[data-theme="light"] .sec-label {
  background: var(--bg-stripe);
  border-color: var(--border);
}
:root[data-theme="light"] .sec-block-roadmap .sec-label {
  color: var(--accent-dim);
  border-color: rgba(0, 184, 95, 0.4);
  background: rgba(0, 184, 95, 0.08);
}
:root[data-theme="light"] .sec-list li::before {
  background: rgba(0, 184, 95, 0.10);
  border-color: var(--accent);
}

/* ── Before / After panels ──────────────────────────────────────────── */
:root[data-theme="light"] .ba-panel {
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-stripe) 100%);
  border-color: var(--border);
}
:root[data-theme="light"] .ba-panel.ba-after {
  border-color: rgba(0, 184, 95, 0.35);
  background: linear-gradient(180deg, rgba(0, 184, 95, 0.04) 0%, #ffffff 70%);
  box-shadow:
    0 0 0 1px rgba(0, 184, 95, 0.12),
    0 16px 44px -22px rgba(0, 184, 95, 0.2);
}
:root[data-theme="light"] .ba-label {
  background: var(--bg-stripe);
  border-color: var(--border);
}
:root[data-theme="light"] .ba-panel.ba-after .ba-label {
  color: var(--accent-dim);
  border-color: rgba(0, 184, 95, 0.4);
  background: rgba(0, 184, 95, 0.10);
}
:root[data-theme="light"] .ba-panel.ba-before li::before {
  color: #dc2626;
}

/* ── Counters ───────────────────────────────────────────────────────── */
:root[data-theme="light"] .counter {
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-stripe) 100%);
  border-color: var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
:root[data-theme="light"] .counter::before {
  background: linear-gradient(135deg, rgba(0, 184, 95, 0.30), transparent 60%);
}
:root[data-theme="light"] .counter-pre {
  text-decoration-color: rgba(220, 38, 38, 0.5);
}

/* ── Logos strip ────────────────────────────────────────────────────── */
:root[data-theme="light"] .logos-strip {
  border-top-color: var(--border-soft);
  border-bottom-color: var(--border-soft);
}

/* ── Architecture diagram ───────────────────────────────────────────── */
:root[data-theme="light"] .arch {
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-stripe) 100%);
  border-color: var(--border);
}
:root[data-theme="light"] .arch .node rect {
  fill: var(--bg-stripe);
  stroke: var(--border-bright);
}
:root[data-theme="light"] .arch .node.accent rect {
  fill: rgba(0, 184, 95, 0.08);
  stroke: var(--accent);
}

/* ── FAQ / details ──────────────────────────────────────────────────── */
:root[data-theme="light"] .faq-item {
  background: #ffffff;
  border-color: var(--border);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
:root[data-theme="light"] .faq-item:hover {
  border-color: var(--border-bright);
}
:root[data-theme="light"] .faq-item summary::after {
  color: var(--accent-dim);
}
:root[data-theme="light"] .faq-item summary:hover {
  color: var(--accent-dim);
}

/* ── Notify / signup ────────────────────────────────────────────────── */
:root[data-theme="light"] .notify {
  background: linear-gradient(180deg, var(--bg-stripe) 0%, #ffffff 100%);
  border-color: var(--border);
}
:root[data-theme="light"] .notify input[type="email"] {
  background: #ffffff;
  border-color: var(--border-bright);
  color: var(--fg);
}
:root[data-theme="light"] .notify input[type="email"]::placeholder {
  color: var(--fg-dim);
}
:root[data-theme="light"] .notify input[type="email"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 184, 95, 0.18);
}

/* ── Content pages (terms, privacy, welcome) ────────────────────────── */
:root[data-theme="light"] .content-page .tldr {
  background: var(--bg-stripe);
  border-color: var(--border);
  border-left: 3px solid var(--accent);
  color: var(--fg);
}
:root[data-theme="light"] .content-page h2 {
  color: var(--accent-dim);
}

/* ── Section stripe gradients (top/bottom fade) ─────────────────────── */
:root[data-theme="light"] .section-stripe::before {
  background: linear-gradient(180deg, var(--bg) 0%, transparent 100%) !important;
}
:root[data-theme="light"] .section-stripe::after {
  background: linear-gradient(0deg, var(--bg) 0%, transparent 100%) !important;
}

/* ── Nav dropdown ───────────────────────────────────────────────────── */
:root[data-theme="light"] .nav-dropdown {
  background: #ffffff;
  border-color: var(--border);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 12px 36px -8px rgba(0, 0, 0, 0.14);
}
:root[data-theme="light"] .nav-dropdown a:hover {
  background: rgba(0, 184, 95, 0.06);
  color: var(--accent-dim);
}

/* ── Headings — soften the dark text-shadow on h1 ───────────────────── */
:root[data-theme="light"] h1 {
  text-shadow: 0 0 30px rgba(0, 184, 95, 0.06);
}

/* ── Anchor link color in light mode — slightly darker for AA ───────── */
:root[data-theme="light"] a { color: var(--accent-dim); }
:root[data-theme="light"] a:hover { color: var(--accent); }
/* Nav top-level links should track fg-mid not accent (preserves dark behavior) */
:root[data-theme="light"] nav ul a:not(.nav-cta) { color: var(--fg-mid); }
:root[data-theme="light"] nav ul a:not(.nav-cta):hover { color: var(--fg) !important; }

/* ── Selection highlight ────────────────────────────────────────────── */
:root[data-theme="light"] ::selection {
  background: rgba(0, 184, 95, 0.18);
  color: var(--fg);
}

/* ── Btn focus halo softer in light mode ────────────────────────────── */
:root[data-theme="light"] .btn:focus,
:root[data-theme="light"] input:focus {
  box-shadow: 0 0 0 3px rgba(0, 184, 95, 0.22) !important;
}

/* ── Cheat-sheet inline code blocks (page-local <style>) ────────────── */
:root[data-theme="light"] .cheat code,
:root[data-theme="light"] pre code {
  background: var(--bg-stripe);
  color: var(--accent-dim);
  border: 1px solid var(--border);
}

/* ════════════════════════════════════════════════════════════════════════
   LANGUAGE SWITCHER (footer) — Cursor pattern, sits next to theme switcher
   ════════════════════════════════════════════════════════════════════════ */

.lang-switcher {
  position: relative;
  display: inline-block;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: var(--bg-stripe);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--fg-mid);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  font-family: inherit;
}

.lang-btn:hover { color: var(--fg); }

.lang-menu {
  position: absolute;
  bottom: calc(100% + 6px);
  right: 0;
  min-width: 140px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px 0;
  list-style: none;
  margin: 0;
  box-shadow: 0 12px 32px -8px rgba(0,0,0,0.4);
  z-index: 100;
}

.lang-menu li { display: block; }
.lang-menu a {
  display: block;
  padding: 8px 14px;
  color: var(--fg-mid);
  font-size: 14px;
  text-decoration: none;
  transition: background 0.12s ease, color 0.12s ease;
}
.lang-menu a:hover {
  background: rgba(0,230,118,0.06);
  color: var(--accent);
}
.lang-menu a[aria-current="true"] {
  color: var(--accent);
  background: rgba(0,230,118,0.04);
}

