/* AgentMasher — dark terminal-tech marketing site */

:root {
  /* Backgrounds */
  --bg-0: #05060f;          /* deepest */
  --bg-1: #0a0d1c;          /* primary */
  --bg-2: #11152b;          /* elevated card */
  --bg-3: #1a1f3a;          /* hover / borders */

  /* Type */
  --fg-0: #f5f7fa;
  --fg-1: #c8cde0;
  --fg-2: #8b91a8;
  --fg-3: #545b75;

  /* Accent — electric green (the design's chosen accent) */
  --accent: #7af053;
  --accent-soft: #7af05322;
  --accent-glow: #7af05344;

  /* Secondary accent */
  --teal: #00d4a8;
  --teal-soft: #00d4a822;
  --red: #ff3b5c;

  /* Borders */
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.14);

  /* Fonts */
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "DM Mono", ui-monospace, monospace;

  --maxw: 1240px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  background: var(--bg-1);
  color: var(--fg-0);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Background atmospherics */
.bg-atmos {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 40% at 80% 0%, color-mix(in oklab, var(--accent) 12%, transparent) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 0% 30%, color-mix(in oklab, var(--teal) 8%, transparent) 0%, transparent 60%);
}
.bg-grid {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 80%);
}

main, header, footer { position: relative; z-index: 1; }

/* Container */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

/* Type utilities */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  border-radius: 50%;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(36px, 4.4vw, 56px); }
h2 { font-size: clamp(32px, 4.4vw, 56px); }
h3 { font-size: clamp(20px, 1.8vw, 26px); letter-spacing: -0.01em; line-height: 1.2; }

p { margin: 0; }
.lede { font-size: 19px; color: var(--fg-1); line-height: 1.55; max-width: 60ch; }

/* Header / Nav */
.nav {
  position: sticky; top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: color-mix(in oklab, var(--bg-1) 78%, transparent);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--fg-0);
  text-decoration: none;
}
.brand:hover { color: var(--fg-0); }
.brand-mark {
  width: 28px; height: 28px;
  position: relative;
}
.nav-links {
  display: flex; gap: 28px;
  font-size: 14px;
  color: var(--fg-1);
}
.nav-links a { color: inherit; text-decoration: none; transition: color .15s; }
.nav-links a:hover { color: var(--accent); }
@media (max-width: 880px) { .nav-links { display: none; } }
.nav-right {
  display: flex; align-items: center; gap: 14px;
}

/* Theme toggle */
.theme-toggle {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex; align-items: center;
}
.theme-toggle-track {
  width: 52px; height: 28px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-strong);
  position: relative;
  transition: background .25s, border-color .25s;
}
.theme-toggle-thumb {
  position: absolute;
  top: 50%; left: 3px;
  transform: translateY(-50%);
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--fg-0);
  color: var(--bg-1);
  display: flex; align-items: center; justify-content: center;
  transition: left .28s cubic-bezier(.4,0,.2,1), background .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.theme-toggle-track.light { background: rgba(0,0,0,0.06); }
.theme-toggle-track.light .theme-toggle-thumb {
  left: calc(100% - 25px);
  background: var(--accent);
  color: #0a0d1c;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15), 0 0 0 3px var(--accent-soft);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 22px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .12s, background .15s, box-shadow .15s, border-color .15s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #0b0d1a;
  box-shadow: 0 0 0 1px var(--accent), 0 12px 32px -8px var(--accent-glow), inset 0 -2px 0 rgba(0,0,0,0.18);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px var(--accent), 0 18px 40px -8px var(--accent-glow); }
.btn-ghost {
  background: transparent; color: var(--fg-0);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: rgba(255,255,255,0.04); border-color: var(--fg-2); }
.btn-sm { padding: 10px 16px; font-size: 14px; }

/* Section base */
section { padding: 120px 0; position: relative; }
@media (max-width: 760px) { section { padding: 80px 0; } }
.section-head { display: flex; flex-direction: column; gap: 18px; margin-bottom: 64px; max-width: 760px; }
.section-head.center { margin-left: auto; margin-right: auto; align-items: center; text-align: center; }

/* Terminal chip */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-2);
  padding: 6px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(255,255,255,0.02);
}
.chip-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 8px var(--teal);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

/* Card */
.card {
  background: linear-gradient(180deg, var(--bg-2), color-mix(in oklab, var(--bg-2) 88%, transparent));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  position: relative;
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--border-strong); }

/* Hero */
.hero {
  padding-top: 56px;
  padding-bottom: 56px;
  display: flex; align-items: center;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
  width: 100%;
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
}
.hero h1 .accent { color: var(--accent); }
.hero h1 .underline {
  position: relative;
  white-space: nowrap;
}
.hero h1 .underline::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 4px;
  background: var(--accent);
  opacity: 0.3;
}
.hero-sub {
  margin-top: 20px;
  font-size: 16px;
  color: var(--fg-1);
  line-height: 1.55;
  max-width: 54ch;
}
.hero-checks {
  margin-top: 20px;
  display: grid;
  gap: 8px;
}
.hero-check {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px;
  color: var(--fg-1);
  font-family: var(--font-mono);
}
.hero-check svg { color: var(--teal); flex-shrink: 0; width: 16px; height: 16px; }
.hero-cta {
  margin-top: 24px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.hero-cta .btn { padding: 12px 18px; font-size: 14px; }
.hero-microtrust {
  margin-top: 16px;
  font-size: 12px;
  color: var(--fg-2);
  display: flex; align-items: center; gap: 8px;
}

/* Phone mockup */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.phone {
  width: 300px;
  height: 620px;
  background: #0a0a14;
  border: 8px solid #1a1d2e;
  border-radius: 44px;
  position: relative;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.05),
    0 40px 80px -20px rgba(0,0,0,0.6),
    0 0 80px -20px var(--accent-glow);
  overflow: hidden;
}
.phone-notch {
  position: absolute; top: 0; left: 50%;
  transform: translateX(-50%);
  width: 120px; height: 26px;
  background: #000;
  border-radius: 0 0 18px 18px;
  z-index: 4;
}
.phone-screen {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #0d0f1c 0%, #07081a 100%);
  display: flex; flex-direction: column;
}
.phone-status {
  padding: 12px 24px 0;
  display: flex; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-0);
  font-weight: 600;
}
.phone-status-icons { display: flex; gap: 6px; align-items: center; opacity: 0.9; }

/* Call view */
.call-view {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-start;
  padding: 44px 24px 20px;
  text-align: center;
}
.call-status {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--teal);
  text-transform: uppercase;
  display: flex; align-items: center; gap: 8px;
}
.call-status .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--teal);
  box-shadow: 0 0 8px var(--teal);
  animation: pulse 1.5s infinite;
}
.call-avatar {
  margin-top: 18px;
  width: 96px; height: 96px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, color-mix(in oklab, var(--accent) 80%, white) 0%, var(--accent) 60%, color-mix(in oklab, var(--accent) 60%, black) 100%);
  position: relative;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 38px;
  color: #0a0a14;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.04), 0 0 30px -4px var(--accent-glow);
}
.call-avatar::before, .call-avatar::after {
  content: "";
  position: absolute; inset: -8px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0.4;
  animation: ring 2.4s infinite;
}
.call-avatar::after { animation-delay: 1.2s; }
@keyframes ring {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.6); opacity: 0; }
}
.call-name {
  margin-top: 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--fg-0);
}
.call-role {
  margin-top: 2px;
  font-size: 13px;
  color: var(--fg-2);
}
.call-time {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
}
.call-transcript {
  margin-top: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
  color: var(--fg-1);
  text-align: left;
  line-height: 1.45;
  font-family: var(--font-mono);
  width: 100%;
  min-height: 64px;
}
.call-transcript .label {
  display: block;
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--fg-3);
  margin-bottom: 4px;
}
.call-cursor {
  display: inline-block;
  width: 6px; height: 12px;
  background: var(--accent);
  vertical-align: -2px;
  animation: blink 0.9s infinite;
  margin-left: 2px;
}
@keyframes blink { 50% { opacity: 0; } }
.call-actions {
  margin-top: auto;
  padding-top: 18px;
  display: flex; justify-content: space-around;
  width: 100%;
}
.call-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-strong);
  background: rgba(255,255,255,0.04);
  color: var(--fg-0);
}
.call-btn.hang { background: var(--red); border-color: var(--red); color: white; }

/* SMS card floating */
.sms-pop {
  position: absolute;
  right: -40px; bottom: 60px;
  width: 280px;
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 20px 50px -10px rgba(0,0,0,0.6);
  font-family: var(--font-body);
  z-index: 3;
  animation: pop-in 0.6s ease-out;
}
.sms-pop-header {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.sms-pop-header .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal); box-shadow: 0 0 6px var(--teal);
}
.sms-bubble {
  background: var(--accent);
  color: #0b0d1a;
  font-size: 13px;
  line-height: 1.4;
  padding: 10px 14px;
  border-radius: 16px 16px 4px 16px;
  font-weight: 500;
}
.sms-meta {
  margin-top: 8px;
  font-size: 11px;
  color: var(--fg-3);
  font-family: var(--font-mono);
  display: flex; justify-content: space-between;
}
@keyframes pop-in {
  from { opacity: 0; transform: translateY(8px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Floating dashboard chip behind phone */
.float-card {
  position: absolute;
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-1);
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5);
  z-index: 2;
}
.float-card-1 {
  top: 80px; left: -40px;
  width: 220px;
}
.float-card-1 .label {
  color: var(--fg-3);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.float-card-1 .val {
  font-family: var(--font-display);
  color: var(--fg-0);
  font-size: 20px;
  font-weight: 700;
  margin-top: 4px;
}
.float-card-1 .change {
  color: var(--teal);
  margin-top: 2px;
}
.score-bar {
  margin-top: 8px;
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  overflow: hidden;
}
.score-bar > div {
  height: 100%;
  width: 84%;
  background: linear-gradient(90deg, var(--accent), color-mix(in oklab, var(--accent) 70%, white));
}

/* Trust strip */
.trust {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.012);
}
.trust-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 32px;
}
.trust-copy {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--fg-2);
  text-transform: uppercase;
  max-width: 360px;
}
.trust-logos {
  display: flex; align-items: center; gap: 32px; flex-wrap: wrap;
}
.trust-logo {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--fg-1);
  letter-spacing: -0.01em;
  opacity: 0.7;
  display: flex; align-items: center; gap: 6px;
}
.trust-logo .accent-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}

/* Problem section */
.problem {
  background: var(--bg-0);
  border-top: 1px solid var(--border);
}
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 880px) { .problem-grid { grid-template-columns: 1fr; } }
.problem-card {
  padding: 36px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 18px;
  position: relative;
  overflow: hidden;
}
.problem-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  opacity: 0.6;
}
.problem-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.problem-card h3 { font-size: 26px; margin-bottom: 18px; color: var(--fg-0); }
.problem-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 12px;
}
.problem-list li {
  display: flex; gap: 12px;
  font-size: 15px;
  color: var(--fg-1);
  line-height: 1.55;
}
.problem-list li::before {
  content: "";
  width: 14px; height: 14px;
  background: rgba(255,59,92,0.12);
  border: 1px solid rgba(255,59,92,0.4);
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 5px;
  position: relative;
}
.problem-list li::after { display: none; }
.problem-close {
  margin-top: 56px;
  padding: 36px;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 24px;
  color: var(--fg-0);
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: -0.01em;
  max-width: 800px;
  margin-left: auto; margin-right: auto;
  border-top: 1px dashed var(--border-strong);
  border-bottom: 1px dashed var(--border-strong);
  padding-block: 32px;
}

/* Solution / pillars */
.solution {
  position: relative;
}
.pillars {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}
@media (max-width: 960px) { .pillars { grid-template-columns: 1fr; } }
.pillar {
  padding: 32px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  transition: border-color .2s, transform .2s;
}
.pillar:hover { border-color: var(--accent); transform: translateY(-3px); }
.pillar-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.pillar-icon {
  width: 56px; height: 56px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-soft), transparent);
  border: 1px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.pillar h3 { font-size: 22px; margin-bottom: 12px; }
.pillar-body { color: var(--fg-1); font-size: 15px; line-height: 1.6; }
.pillar-tag {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--fg-3);
  text-transform: uppercase;
  display: flex; align-items: center; gap: 8px;
}
.pillar-tag::before {
  content: "→"; color: var(--accent);
}

/* Transformation */
.transform-section { background: var(--bg-0); border-top: 1px solid var(--border); }
.transform-toggle {
  display: inline-flex;
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 0;
  position: relative;
}
.transform-toggle button {
  padding: 10px 22px;
  background: transparent;
  border: none;
  color: var(--fg-2);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 999px;
  transition: color .2s;
  position: relative;
  z-index: 1;
}
.transform-toggle button.active { color: var(--fg-0); }
.transform-toggle button.old.active { color: #0b0d1a; }
.transform-toggle .slider {
  position: absolute;
  top: 4px; bottom: 4px;
  border-radius: 999px;
  background: var(--fg-0);
  transition: left .3s cubic-bezier(.4,0,.2,1), background .2s, width .3s;
}
.transform-toggle .slider.new {
  background: var(--accent);
}

.transform-rows {
  margin-top: 48px;
  display: flex; flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.transform-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  background: var(--bg-2);
  padding: 24px 28px;
  align-items: center;
  gap: 24px;
  transition: background .25s;
}
.transform-row.old-mode { /* old way styling — applied via JS */ }
.transform-row .row-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.transform-row .row-body {
  font-size: 17px;
  color: var(--fg-0);
  line-height: 1.5;
}
.transform-row.is-new .row-body { color: var(--fg-0); }
.transform-row.is-new .row-body strong { color: var(--accent); }
.transform-row.is-old { background: rgba(255,59,92,0.04); }
.transform-row.is-old .row-body { color: var(--fg-2); text-decoration: line-through; text-decoration-color: rgba(255,59,92,0.4); text-decoration-thickness: 1px; }
@media (max-width: 720px) {
  .transform-row { grid-template-columns: 1fr; gap: 6px; padding: 18px 20px; }
}

/* FAQ */
.faq-list {
  margin-top: 48px;
  display: flex; flex-direction: column; gap: 0;
  border-top: 1px solid var(--border);
}
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 4px 0;
}
.faq-q {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--fg-0);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  text-align: left;
  padding: 24px 0;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  letter-spacing: -0.01em;
  transition: color .2s;
}
.faq-q:hover { color: var(--accent); }
.faq-q .plus {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 400;
  color: var(--fg-2);
  transition: transform .25s, background .2s, color .2s, border-color .2s;
}
.faq-item.open .faq-q .plus {
  transform: rotate(45deg);
  background: var(--accent);
  color: #0b0d1a;
  border-color: var(--accent);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.faq-item.open .faq-a { max-height: 400px; }
.faq-a-inner {
  padding: 0 0 28px;
  color: var(--fg-1);
  font-size: 16px;
  line-height: 1.65;
  max-width: 70ch;
}

/* Final CTA */
.final-cta {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, var(--accent-soft), transparent 70%),
    var(--bg-0);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 140px 0;
}
.final-cta h2 { max-width: 16ch; margin: 0 auto; }
.final-cta p { max-width: 60ch; margin: 24px auto 0; color: var(--fg-1); font-size: 18px; }
.final-cta .hero-cta { justify-content: center; margin-top: 36px; }
.final-cta-trust {
  margin-top: 48px;
  display: flex; flex-wrap: wrap; gap: 28px; justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.final-cta-trust span {
  display: flex; align-items: center; gap: 8px;
}
.final-cta-trust span::before {
  content: "";
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent);
}

/* Footer */
footer {
  background: var(--bg-0);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
  color: var(--fg-2);
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin: 0 0 16px;
  font-weight: 500;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--fg-1); text-decoration: none; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-3);
  letter-spacing: 0.06em;
}

/* Modal */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(5,6,15,0.85);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  animation: fade .2s;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  width: 100%;
  max-width: 900px;
  overflow: hidden;
  position: relative;
  animation: pop-in .25s;
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border-strong);
  color: var(--fg-0);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}
.modal-video {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--bg-1), #000);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  border-bottom: 1px solid var(--border);
}
.modal-video .play-fake {
  width: 92px; height: 92px;
  border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  color: #0b0d1a;
  box-shadow: 0 0 0 8px color-mix(in oklab, var(--accent) 20%, transparent);
}
.modal-meta {
  padding: 24px 28px;
}
.modal-meta h3 { margin: 0 0 6px; }
.modal-meta p { color: var(--fg-1); margin: 4px 0 0; font-size: 14px; }

/* Demo "video" terminal */
.demo-terminal {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg-1);
  text-align: left;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  width: 80%;
  max-width: 560px;
  line-height: 1.7;
}
.demo-terminal .line { display: flex; gap: 10px; align-items: baseline; }
.demo-terminal .tick { color: var(--teal); }
.demo-terminal .arrow { color: var(--accent); }
.demo-terminal .dim { color: var(--fg-3); }

/* Stat callout */
.stat-callout {
  margin-top: 56px;
  padding: 36px 40px;
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(122,240,83,0.06), transparent 60%),
    var(--bg-2);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: left;
}
@media (max-width: 760px) { .stat-callout { grid-template-columns: 1fr; } }
.stat-callout .stat-num {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat-callout .stat-label {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.stat-callout .stat-body {
  margin-top: 12px;
  color: var(--fg-1);
  font-size: 14px;
  line-height: 1.5;
}

/* Transformation toggle — hug content so the slider tracks the buttons */
.transform-toggle { align-self: flex-start; }
.section-head.center .transform-toggle { align-self: center; }

/* Old/new row body swap (both rendered, CSS toggles which shows) */
.transform-row .rb-old,
.transform-row .rb-new { display: none; }
.transform-row.is-old .rb-old { display: inline; }
.transform-row.is-new .rb-new { display: inline; }

/* Waitlist form (final CTA) */
.waitlist-form {
  margin: 36px auto 0;
  max-width: 520px;
  display: flex;
  gap: 10px;
}
.waitlist-form input[type="email"] {
  flex: 1;
  min-width: 0;
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--fg-0);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.waitlist-form input[type="email"]::placeholder { color: var(--fg-3); }
.waitlist-form input[type="email"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.waitlist-form .btn { flex-shrink: 0; }
@media (max-width: 520px) {
  .waitlist-form { flex-direction: column; }
  .waitlist-form .btn { width: 100%; justify-content: center; }
}

/* Waitlist notice banner */
.wl-notice {
  max-width: 520px;
  margin: 28px auto 0;
  padding: 13px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.wl-notice.success {
  background: var(--teal-soft);
  border: 1px solid color-mix(in oklab, var(--teal) 40%, transparent);
  color: var(--teal);
}
.wl-notice.error {
  background: rgba(255,59,92,0.10);
  border: 1px solid rgba(255,59,92,0.35);
  color: var(--red);
}

/* Light theme form surfaces */
[data-theme="light"] .waitlist-form input[type="email"] {
  background: #fff;
  border-color: rgba(0,0,0,0.14);
  color: var(--fg-0);
}

/* =====================================================================
   LIGHT THEME — make the accent pop on white
   ===================================================================== */
/* Off-white surface + dark text tokens. In the design prototype these were
   injected by JS (applyTweaks); here they live in CSS so the toggle works
   without a build step. */
[data-theme="light"] {
  --bg-0: #eef0f5;
  --bg-1: #f5f7fa;
  --bg-2: #ffffff;
  --bg-3: #e6e9f0;
  --fg-0: #0a0d1c;
  --fg-1: #2a2f44;
  --fg-2: #5a6178;
  --fg-3: #8b91a8;
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.14);
}

[data-theme="light"] body {
  background: var(--bg-1);
  color: var(--fg-0);
}

/* Atmospherics: more saturated tint so accent hue is visible on white */
[data-theme="light"] .bg-atmos {
  background:
    radial-gradient(ellipse 60% 40% at 80% 0%, color-mix(in oklab, var(--accent) 22%, transparent) 0%, transparent 55%),
    radial-gradient(ellipse 50% 50% at 0% 40%, color-mix(in oklab, var(--accent) 14%, transparent) 0%, transparent 60%);
}
[data-theme="light"] .bg-grid {
  opacity: 0.55;
  background-image:
    linear-gradient(to right, rgba(0,0,0,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,0.05) 1px, transparent 1px);
}

/* Nav backdrop */
[data-theme="light"] .nav {
  background: color-mix(in oklab, var(--bg-1) 80%, transparent);
  border-bottom: 1px solid var(--border-strong);
}

/* Buttons — punchier on light */
[data-theme="light"] .btn-primary {
  color: #062012;
  box-shadow:
    0 0 0 1px color-mix(in oklab, var(--accent) 65%, black),
    0 8px 24px -6px color-mix(in oklab, var(--accent) 55%, transparent),
    inset 0 -2px 0 color-mix(in oklab, var(--accent) 70%, black);
}
[data-theme="light"] .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px color-mix(in oklab, var(--accent) 65%, black),
    0 14px 32px -6px color-mix(in oklab, var(--accent) 60%, transparent),
    inset 0 -2px 0 color-mix(in oklab, var(--accent) 70%, black);
}
[data-theme="light"] .btn-ghost {
  background: rgba(255,255,255,0.6);
  border-color: rgba(0,0,0,0.16);
  color: var(--fg-0);
  backdrop-filter: blur(8px);
}
[data-theme="light"] .btn-ghost:hover { background: rgba(255,255,255,0.9); border-color: var(--fg-1); }

/* Chip */
[data-theme="light"] .chip {
  background: #fff;
  border-color: rgba(0,0,0,0.12);
  color: var(--fg-1);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

/* Cards (problem, pillars) get real depth */
[data-theme="light"] .card,
[data-theme="light"] .problem-card,
[data-theme="light"] .pillar,
[data-theme="light"] .stat-callout {
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 8px 24px -12px rgba(10,13,28,0.18);
}
[data-theme="light"] .pillar:hover {
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 16px 36px -12px color-mix(in oklab, var(--accent) 35%, transparent);
}
[data-theme="light"] .pillar-icon {
  background: linear-gradient(135deg, color-mix(in oklab, var(--accent) 28%, white), white);
  border: 1px solid color-mix(in oklab, var(--accent) 50%, transparent);
  color: color-mix(in oklab, var(--accent) 70%, black);
}

/* Problem cards keep red accent visible on light */
[data-theme="light"] .problem-list li::before {
  background: rgba(255,59,92,0.14);
  border-color: rgba(255,59,92,0.5);
}

/* Trust strip — visible on white */
[data-theme="light"] .trust {
  background: rgba(0,0,0,0.02);
}

/* Transform toggle */
[data-theme="light"] .transform-toggle {
  background: #fff;
  border-color: rgba(0,0,0,0.12);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
[data-theme="light"] .transform-toggle button { color: var(--fg-2); }
[data-theme="light"] .transform-toggle button.active { color: #fff; }
[data-theme="light"] .transform-toggle .slider { background: #0a0d1c; }
[data-theme="light"] .transform-toggle .slider.new { background: var(--accent); }
[data-theme="light"] .transform-toggle button.new.active { color: #062012; }

[data-theme="light"] .transform-rows {
  background: rgba(0,0,0,0.08);
  border-color: rgba(0,0,0,0.10);
}
[data-theme="light"] .transform-row { background: #fff; }
[data-theme="light"] .transform-row.is-old { background: #fff5f6; }
[data-theme="light"] .transform-row.is-new .row-body strong { color: color-mix(in oklab, var(--accent) 65%, black); }

/* FAQ — punch the active state */
[data-theme="light"] .faq-list { border-top-color: rgba(0,0,0,0.10); }
[data-theme="light"] .faq-item { border-bottom-color: rgba(0,0,0,0.10); }
[data-theme="light"] .faq-q .plus { border-color: rgba(0,0,0,0.18); color: var(--fg-2); }
[data-theme="light"] .faq-item.open .faq-q .plus { color: #062012; }

/* Hero h1 underline */
[data-theme="light"] .hero h1 .underline::after {
  background: var(--accent);
  opacity: 0.55;
  height: 6px;
}
[data-theme="light"] .hero h1 .accent {
  color: color-mix(in oklab, var(--accent) 70%, black);
}

/* Headings: tighten color */
[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3 { color: #050614; }

/* Hero check icons / accent dots stay visible */
[data-theme="light"] .hero-check svg { color: color-mix(in oklab, var(--teal) 55%, black); }
[data-theme="light"] .chip-dot { background: color-mix(in oklab, var(--accent) 60%, black); box-shadow: 0 0 8px var(--accent); }

/* Phone: still dark — accent against dark phone screen pops naturally */
/* Floating cards around phone — match light surface */
[data-theme="light"] .float-card,
[data-theme="light"] .sms-pop {
  background: #ffffff;
  border-color: rgba(0,0,0,0.10);
  box-shadow: 0 18px 40px -10px rgba(10,13,28,0.22);
}
[data-theme="light"] .float-card-1 .val { color: var(--fg-0); }
[data-theme="light"] .float-card-1 .change { color: color-mix(in oklab, var(--teal) 55%, black); }
[data-theme="light"] .sms-bubble {
  background: var(--accent);
  color: #062012;
  box-shadow: 0 6px 18px -4px color-mix(in oklab, var(--accent) 55%, transparent);
}

/* Final CTA — strong accent halo on white */
[data-theme="light"] .final-cta {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, color-mix(in oklab, var(--accent) 22%, transparent), transparent 70%),
    var(--bg-0);
}

/* Footer — light variant */
[data-theme="light"] footer {
  background: #ffffff;
  border-top-color: rgba(0,0,0,0.10);
}
[data-theme="light"] .footer-bottom { border-top-color: rgba(0,0,0,0.10); }

/* Theme toggle thumb in light */
[data-theme="light"] .theme-toggle-track { background: rgba(0,0,0,0.05); border-color: rgba(0,0,0,0.14); }

/* Demo modal */
[data-theme="light"] .modal-backdrop { background: rgba(10,13,28,0.55); }
[data-theme="light"] .modal { background: #fff; }
[data-theme="light"] .modal-video { background: linear-gradient(135deg, #0a0d1c, #050614); }
[data-theme="light"] .demo-terminal { background: rgba(0,0,0,0.04); color: var(--fg-1); }
