/* ==========================================================================
   DevSafe — Landing Page
   Rides on tokens.css for all design tokens.
   ========================================================================== */

html { scroll-behavior: smooth; }
body { overflow-x: hidden; }

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ==========================================================================
   Container
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--space-5);
  padding-right: var(--space-5);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--backdrop);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--border); }
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--space-3) var(--space-5);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-5);
  align-items: center;
}
.nav__brand { display: flex; align-items: center; gap: 10px; }
.nav__brand-mark { color: var(--accent); }
.nav__brand-name {
  font-family: var(--font-body);
  font-weight: 700;
  font-style: normal;
  font-size: 20px;
  letter-spacing: -0.015em;
  color: var(--text);
}
.nav__links {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
}
.nav__link {
  font-size: 14px;
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--dur) var(--ease);
}
.nav__link:hover { color: var(--text); background: var(--bg-elev); }

/* Nav dropdown */
.nav__dropdown {
  position: relative;
}
.nav__dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--dur) var(--ease);
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}
.nav__dropdown-trigger:hover { color: var(--text); background: var(--bg-elev); }
.nav__dropdown-trigger svg { transition: transform 0.2s ease; }
.nav__dropdown.is-open .nav__dropdown-trigger svg { transform: rotate(180deg); }
.nav__dropdown-trigger .caret { width: 12px; height: 12px; color: var(--text-subtle); }

.nav__dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 240px;
  background: var(--bg-card, #101411);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  z-index: 100;
}
.nav__dropdown.is-open .nav__dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav__dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--text);
  transition: background 0.1s ease;
}
.nav__dropdown-item:hover {
  background: var(--bg-elev);
}
.nav__dropdown-item-dot,
.nav__dropdown-item-icon {
  display: none;
}
.nav__dropdown-item-text { flex: 1; }
.nav__dropdown-item-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.nav__dropdown-item-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.4;
}
.nav__dropdown-badge {
  font-size: 9px;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-10);
  padding: 1px 5px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.nav__dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 14px;
}
.nav__dropdown-footer {
  display: block;
  padding: 8px 14px;
  font-size: 12px;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.1s ease;
}
.nav__dropdown-footer:hover { background: var(--bg-elev); }

.nav__cta { display: flex; align-items: center; gap: var(--space-2); }
.nav__theme {
  position: relative;
  display: flex;
  gap: 2px;
  padding: 3px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  overflow: hidden;
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  width: 34px;
}
.nav__theme:hover,
.nav__theme.is-expanded {
  width: 100px;
}
.nav__theme button {
  width: 28px; height: 28px;
  min-width: 28px;
  display: grid; place-items: center;
  background: transparent;
  border: none;
  color: var(--text-muted);
  border-radius: 50%;
  transition: all var(--dur) var(--ease);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
}
.nav__theme button.is-active {
  opacity: 1;
  pointer-events: auto;
  background: var(--accent-15);
  color: var(--accent);
  order: -1;
}
.nav__theme:hover button,
.nav__theme.is-expanded button {
  opacity: 1;
  pointer-events: auto;
}
.nav__theme:hover button.is-active,
.nav__theme.is-expanded button.is-active {
  order: unset;
}
.nav__theme button:hover:not(.is-active) { color: var(--text); }
.nav__login {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--accent);
  padding: 7px 18px;
  border: 1px solid var(--accent-40);
  border-radius: 999px;
  background: var(--accent-08);
  transition: all var(--dur) var(--ease);
  white-space: nowrap;
}
.nav__login:hover {
  background: var(--accent-15);
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent-20);
  color: var(--accent);
}

.nav__hamburger {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  cursor: pointer;
}
@media (max-width: 880px) {
  .nav__inner { grid-template-columns: auto 1fr auto; }
  .nav__links { display: none; }
  .nav__hamburger { display: inline-flex; }
  .nav__login { display: none; }
  .nav__theme { display: none; }
  .nav__cta .v2-nav-btn { display: none !important; }
  .nav__cta { margin-left: auto; justify-content: flex-end; }
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--bg);
  padding: 80px var(--space-5) var(--space-5);
  display: none;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu > a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-2xl);
  color: var(--text);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}

/* Collapsible groups */
.mm-group {
  border-bottom: 1px solid var(--border);
}
.mm-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-3) 0;
  background: none;
  border: none;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-2xl);
  color: var(--text);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.mm-trigger svg {
  color: var(--text-subtle);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.mm-group.is-open .mm-trigger svg {
  transform: rotate(180deg);
}
.mm-sub {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 0 0 var(--space-4) var(--space-2);
}
.mm-group.is-open .mm-sub {
  display: flex;
}
.mm-sub a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-lg);
  color: var(--text-muted);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
}
.mm-sub a:hover,
.mm-sub a:active {
  background: var(--bg-elev);
  color: var(--text);
}
.mm-sub a svg {
  color: var(--text-subtle);
  flex-shrink: 0;
}
.mm-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--accent-10);
  color: var(--accent);
  border: 1px solid var(--accent-20);
}
.mm-badge--new {
  background: rgba(248, 113, 113, 0.10);
  color: #F87171;
  border-color: rgba(248, 113, 113, 0.20);
}

/* ==========================================================================
   Buttons (page-local subset; tokens.css doesn't ship .btn)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: all var(--dur) var(--ease);
  white-space: nowrap;
}
.btn--lg { padding: 14px 22px; font-size: 15px; }
.btn--sm { padding: 8px 12px; font-size: 13px; }
.btn--primary { background: var(--accent); color: #0A0A0A; border-color: var(--accent); }
.btn--primary:hover {
  background: var(--accent-hover); border-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--accent-20);
}
.btn--primary:active { transform: translateY(0); box-shadow: none; }
.btn--secondary { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn--secondary:hover { background: var(--accent-10); }
.btn--ghost { background: transparent; color: var(--text); }
.btn--ghost:hover { background: var(--bg-elev); color: var(--accent); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding: 160px 0 var(--space-9);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.38) 78%),
    linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.72) 100%);
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 18% 18%, rgba(34,197,94,0.22), transparent 34%),
    radial-gradient(circle at 78% 22%, rgba(79,70,229,0.16), transparent 36%),
    radial-gradient(circle at 50% 78%, rgba(34,197,94,0.08), transparent 42%),
    linear-gradient(180deg, #07100c 0%, #0b0f14 52%, #050706 100%);
}
[data-theme="light"] .hero__bg {
  background:
    radial-gradient(circle at 18% 18%, rgba(34,197,94,0.1), transparent 34%),
    radial-gradient(circle at 78% 22%, rgba(79,70,229,0.08), transparent 36%),
    radial-gradient(circle at 50% 78%, rgba(34,197,94,0.04), transparent 42%),
    linear-gradient(180deg, #f8faf9 0%, #f0f2f4 52%, #eaecee 100%);
}
[data-theme="light"] .hero::after {
  background:
    radial-gradient(circle at center, transparent 0%, rgba(255,255,255,0.3) 78%),
    linear-gradient(180deg, transparent 60%, rgba(255,255,255,0.6) 100%);
}
.hero__particles {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.3;
}
.hero__particles canvas {
  width: 100%;
  height: 100%;
  display: block;
}
[data-theme="light"] .hero__particles canvas { opacity: 0.5; }

.hero__inner { max-width: 920px; margin: 0 auto; text-align: center; position: relative; z-index: 2; }
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--accent-08);
  border: 1px solid var(--accent-15);
  color: var(--accent);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 12px;
  margin-bottom: var(--space-5);
}
.hero__badge .pulse {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 0 var(--accent-40);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-40); }
  50%      { box-shadow: 0 0 0 8px transparent; }
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 1.8rem + 3.5vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 0 0 var(--space-6);
  text-wrap: initial;
}
.hero__title em { font-style: normal; font-weight: 600; color: var(--accent); }
.hero__sub {
  font-size: var(--text-xl);
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto var(--space-7);
  line-height: 1.5;
  text-wrap: pretty;
}
.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  justify-content: center;
}
.hero__meta {
  margin-top: var(--space-6);
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-subtle);
}
.hero__meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero__meta svg { color: var(--accent); }

/* Hero: terminal preview — macOS style */
.hero__terminal {
  margin-top: var(--space-8);
  max-width: 820px;
  margin-left: auto; margin-right: auto;
  background: #1C1C1E;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  overflow: hidden;
  box-shadow:
    0 2px 4px rgba(0,0,0,0.3),
    0 12px 28px rgba(0,0,0,0.4),
    0 40px 80px rgba(0,0,0,0.35),
    inset 0 0.5px 0 rgba(255,255,255,0.06);
  text-align: left;
}
[data-theme="light"] .hero__terminal {
  background: #FFFFFF;
  border: 1px solid rgba(0,0,0,0.12);
  box-shadow:
    0 2px 4px rgba(0,0,0,0.06),
    0 12px 28px rgba(0,0,0,0.1),
    0 40px 80px rgba(0,0,0,0.08);
}
.terminal__head {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: linear-gradient(180deg, #3A3A3C 0%, #2C2C2E 100%);
  border-bottom: 1px solid rgba(0,0,0,0.4);
  position: relative;
}
[data-theme="light"] .terminal__head {
  background: linear-gradient(180deg, #F0F0F0 0%, #E2E2E2 100%);
  border-bottom: 1px solid rgba(0,0,0,0.12);
}
[data-theme="dusk"] .terminal__head {
  background: linear-gradient(180deg, #2A2D30 0%, #222528 100%);
  border-bottom: 1px solid rgba(0,0,0,0.3);
}
.terminal__dots { display: flex; gap: 8px; }
.terminal__dots span {
  width: 12px; height: 12px;
  border-radius: 50%;
  position: relative;
}
.terminal__dots span:nth-child(1) {
  background: #FF5F57;
  box-shadow: inset 0 -1px 1px rgba(0,0,0,0.15);
}
.terminal__dots span:nth-child(2) {
  background: #FEBC2E;
  box-shadow: inset 0 -1px 1px rgba(0,0,0,0.15);
}
.terminal__dots span:nth-child(3) {
  background: #28C840;
  box-shadow: inset 0 -1px 1px rgba(0,0,0,0.15);
}
.terminal__title {
  position: absolute;
  left: 0; right: 0;
  text-align: center;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: #999;
  pointer-events: none;
}
[data-theme="light"] .terminal__title { color: #666; }
.terminal__body {
  padding: 20px 24px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.75;
  color: #E0E0E0;
  height: 300px;
  overflow-y: auto;
}
[data-theme="light"] .terminal__body { color: #1A1A1A; }
[data-theme="dusk"] .terminal__body { color: #D4D4D4; }
.terminal__body .prompt { color: #28C840; user-select: none; }
[data-theme="light"] .terminal__body .prompt { color: #1E8E3E; }
.terminal__body .cmd { color: #E0E0E0; }
[data-theme="light"] .terminal__body .cmd { color: #1A1A1A; }
.terminal__body .ok { color: #28C840; }
[data-theme="light"] .terminal__body .ok { color: #1E8E3E; }
.terminal__body .dim { color: #888; }
[data-theme="light"] .terminal__body .dim { color: #777; }
.terminal__body .warn { color: #FBBF24; }
[data-theme="light"] .terminal__body .warn { color: #B45309; }
.terminal__body .cur {
  display: inline-block;
  width: 8px; height: 15px;
  background: #C7C7C7;
  vertical-align: middle;
  margin-left: 1px;
  animation: blink 1s steps(2) infinite;
  border-radius: 1px;
}
[data-theme="light"] .terminal__body .cur { background: #333; }
@keyframes blink { 50% { opacity: 0; } }

/* ==========================================================================
   Section primitives
   ========================================================================== */
.section { padding: var(--space-9) 0; }
.section__head {
  max-width: 760px;
  margin: 0 auto var(--space-7);
  text-align: center;
}
.section__head .ds-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.section__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 1.4rem + 2.5vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: var(--space-3) 0 var(--space-3);
  text-wrap: balance;
}
.section__title em { font-style: normal; font-weight: 500; color: var(--accent); }
.section__sub {
  font-size: var(--text-lg);
  color: var(--text-muted);
  margin: 0;
  text-wrap: pretty;
}

/* ==========================================================================
   Problem section — comparison
   ========================================================================== */
.problem {
  background: linear-gradient(180deg, transparent, var(--bg-elev) 50%, transparent);
}
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-4);
}
.problem-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.problem-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--space-3);
  border-bottom: 1px dashed var(--border);
}
.problem-card__name {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.problem-card__verdict {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}
.problem-card__verdict--bad { background: rgba(248,113,113,0.15); color: var(--warning); }
.problem-card__verdict--good { background: var(--accent-15); color: var(--accent); }
.problem-card ul {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.problem-card li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}
.problem-card li svg { flex-shrink: 0; margin-top: 2px; }
.problem-card--bad li svg { color: var(--warning); }
.problem-card--good { border-color: var(--accent-20); background: linear-gradient(180deg, var(--accent-05), transparent 60%), var(--surface); }
.problem-card--good li svg { color: var(--accent); }
.problem-card--good li { color: var(--text); }

/* ==========================================================================
   Solution — 3 steps
   ========================================================================== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
  position: relative;
  z-index: 1;
}
.step {
  padding: var(--space-6) var(--space-5);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-3);
  border-right: 1px solid var(--border);
  position: relative;
}
.step:last-child { border-right: none; }
.step__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.7;
}
#step-restore { opacity: 0.35; }
[data-theme="light"] .step__canvas { opacity: 0.85; }
[data-theme="light"] #step-restore { opacity: 0.45; }
.step__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.step__icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--accent-10);
  color: var(--accent);
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent-15);
}
.step__title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-xl);
  color: var(--text);
  margin: 0;
  letter-spacing: -0.01em;
}
.step__body {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
}
.step__cmd {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  background: var(--accent-10);
  border: 1px solid var(--accent-15);
  border-radius: 999px;
  padding: 4px 14px;
  letter-spacing: 0.01em;
}
.step__icon--scan,
.step__icon--encrypt,
.step__icon--restore {
  animation: step-pulse 2.5s ease-in-out infinite;
}
@keyframes step-pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-10); }
  50% { box-shadow: 0 0 0 8px transparent; }
}
@media (prefers-reduced-motion: reduce) {
  .step__icon--scan, .step__icon--encrypt, .step__icon--restore { animation: none; }
}
@media (max-width: 800px) {
  .steps { grid-template-columns: 1fr; gap: var(--space-3); background: transparent; border: none; border-radius: 0; }
  .step { border-right: none; border-bottom: none; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); overflow: hidden; }
}

/* ==========================================================================
   Features grid
   ========================================================================== */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.feature {
  background: var(--surface);
  padding: var(--space-5) var(--space-5) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: background var(--dur) var(--ease);
}
.feature:hover { background: var(--surface-hover); }
.feature__icon {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--accent-10);
  color: var(--accent);
  border-radius: var(--radius-sm);
}
.feature__title {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  color: var(--text);
  letter-spacing: -0.005em;
}
.feature__body {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
}
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* ==========================================================================
   Comparison table
   ========================================================================== */
.compare {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.compare__table { width: 100%; border-collapse: collapse; }
.compare th, .compare td {
  padding: var(--space-4) var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  vertical-align: middle;
}
.compare thead th { text-align: center; }
.compare thead th {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-elev);
}
.compare thead th.is-us {
  color: var(--accent);
  background: var(--accent-10);
}
.compare tbody tr:last-child td { border-bottom: none; }
.compare td:first-child { color: var(--text); font-weight: 500; }
.compare td.is-us {
  background: var(--accent-05);
  color: var(--text);
}
.compare-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
}
.compare-cell--yes { color: var(--accent); }
.compare-cell--no { color: var(--warning); }
.compare-cell--meh { color: var(--text-subtle); }
@media (max-width: 720px) {
  .compare-wrap { overflow-x: auto; }
  .compare__table { min-width: 720px; }
}

/* ==========================================================================
   Pricing
   ========================================================================== */
.section--pricing {
  position: relative;
  overflow: hidden;
}
.section--pricing::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 30% 40%, var(--accent-08) 0%, transparent 70%),
    radial-gradient(ellipse 60% 45% at 75% 55%, rgba(139, 92, 246, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 80% 60% at 50% 50%, var(--accent-05) 0%, transparent 60%);
  pointer-events: none;
}
.section--pricing::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, var(--bg), transparent 15%),
    linear-gradient(to top, var(--bg), transparent 15%);
  pointer-events: none;
}
.section--pricing > .container {
  position: relative;
  z-index: 1;
}
.pricing-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: 6px 10px;
  margin: 0 auto var(--space-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 13px;
}
.pricing-toggle__opt {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  background: transparent;
  border: none;
}
.pricing-toggle__opt.is-active { background: var(--accent-15); color: var(--accent); }
.pricing-toggle__save {
  display: block;
  width: 50%;
  margin: 0 auto;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  border: 1px solid var(--accent-15);
  background: var(--accent-05);
  padding: 5px 0;
  border-radius: var(--radius-pill);
  letter-spacing: 0.02em;
  text-align: center;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding-top: 0;
  padding-bottom: 0;
  border-width: 0;
  margin-bottom: 0;
  transition: max-height 0.4s ease, opacity 0.4s ease, padding 0.4s ease, margin 0.4s ease, border-width 0.4s ease;
}
.pricing-toggle__save.is-visible {
  max-height: 40px;
  opacity: 1;
  padding: 5px 0;
  border-width: 1px;
  margin-bottom: var(--space-6);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  max-width: 760px;
  margin: 0 auto;
}
@media (max-width: 700px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

.enterprise-banner {
  max-width: 760px;
  margin: var(--space-5) auto 0;
  position: relative;
  background:
    linear-gradient(135deg, var(--accent-05), transparent 40%),
    var(--surface);
  border: 1px solid var(--accent-20);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  overflow: hidden;
}
.enterprise-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.enterprise-banner__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.enterprise-banner__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.enterprise-banner__text {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.enterprise-banner__name {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}
.enterprise-banner__price {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1;
}
.enterprise-banner__price .tier__amt-old {
  font-family: var(--font-mono);
  font-size: 13px;
}
.enterprise-banner__sep {
  width: 1px;
  height: 24px;
  background: var(--border);
  flex-shrink: 0;
}
.enterprise-banner__tagline {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}
.enterprise-banner .btn {
  flex-shrink: 0;
  background: var(--accent);
  color: #0A0A0A;
  border-color: var(--accent);
  font-weight: 600;
}
.enterprise-banner .btn:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--accent-20);
}
.enterprise-banner__feats {
  list-style: none;
  padding: var(--space-4) 0 0;
  margin: 0;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: center;
  gap: var(--space-5);
}
.enterprise-banner__feats li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}
.enterprise-banner__feats svg {
  color: var(--accent);
  flex-shrink: 0;
}
@media (max-width: 700px) {
  .enterprise-banner { padding: var(--space-5); }
  .enterprise-banner__top { flex-direction: column; align-items: flex-start; }
  .enterprise-banner__text { flex-wrap: wrap; }
  .enterprise-banner__sep { display: none; }
  .enterprise-banner__feats { flex-wrap: wrap; justify-content: flex-start; gap: 6px 16px; }
  .enterprise-banner .btn { width: 100%; justify-content: center; }
}

.tier {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  position: relative;
  transition: all var(--dur) var(--ease);
}
.tier:hover { border-color: var(--border-strong); }
.tier--popular {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-20), 0 24px 48px var(--accent-08);
  transform: translateY(-8px);
}
@media (max-width: 1000px) { .tier--popular { transform: none; } }
.tier__pop {
  position: absolute;
  top: -10px; left: 50%; transform: translateX(-50%);
  padding: 4px 10px;
  background: var(--accent);
  color: #0A0A0A;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
}
.tier__name {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0;
}
.tier__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.tier__amt {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text);
}
.tier__amt-old {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--text-subtle);
  text-decoration: line-through;
  margin-right: 4px;
}
.tier__per { color: var(--text-muted); font-size: 14px; }
.tier__tag {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
  min-height: 42px;
}
.tier__feats {
  list-style: none;
  padding: var(--space-4) 0 0;
  margin: 0;
  border-top: 1px dashed var(--border);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}
.tier__feats li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text);
  line-height: 1.45;
}
.tier__feats svg { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.tier .btn { justify-content: center; width: 100%; }

.pricing-foot {
  text-align: center;
  margin-top: var(--space-6);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
}
.pricing-foot strong { color: var(--accent); font-weight: 500; }

/* Pricing teaser — lightweight plan summary for home page */
.pricing-teaser {
  text-align: center;
}
.pricing-teaser__plans {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  max-width: 800px;
  margin: 0 auto;
}
.pricing-teaser__row-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
.pricing-teaser__plan {
  position: relative;
  padding: var(--space-5) var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  text-decoration: none;
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.pricing-teaser__plan:hover {
  border-color: var(--accent-40);
  box-shadow: 0 0 20px var(--accent-05);
  transform: translateY(-2px);
}
.pricing-teaser__plan--pop {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-20);
}
.pricing-teaser__badge {
  position: absolute;
  top: -10px; left: 50%; transform: translateX(-50%);
  padding: 3px 8px;
  background: var(--accent);
  color: #0A0A0A;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.pricing-teaser__name {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.pricing-teaser__price {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--text);
}
.pricing-teaser__per {
  font-size: 0.5em;
  color: var(--text-muted);
  font-family: var(--font-body);
  letter-spacing: 0;
}
.pricing-teaser__annual {
  font-size: 11px;
  color: var(--text-subtle);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}
.pricing-teaser__desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}
.pricing-teaser__cta {
  margin-top: var(--space-7);
}
.pricing-teaser .pricing-foot {
  margin-top: var(--space-5);
}
@media (max-width: 600px) {
  .pricing-teaser__plans,
  .pricing-teaser__row-3 {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq {
  max-width: 720px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
}
.faq__item { border-bottom: 1px solid var(--border); }
.faq__item:last-child { border-bottom: none; }
.faq__head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: transparent;
  border: none;
  color: var(--text);
  text-align: left;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  transition: background var(--dur) var(--ease);
}
.faq__head:hover { background: var(--surface-hover); }
.faq__icon {
  display: grid; place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all var(--dur) var(--ease);
  flex-shrink: 0;
}
.faq__item.is-open .faq__icon {
  transform: rotate(45deg);
  background: var(--accent-15);
  color: var(--accent);
  border-color: var(--accent-20);
}
.faq__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-slow) var(--ease);
}
.faq__item.is-open .faq__body { grid-template-rows: 1fr; }
.faq__body > div { overflow: hidden; }
.faq__a {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  padding: 0 var(--space-5) var(--space-5);
}

/* ==========================================================================
   Final CTA
   ========================================================================== */
.cta-final {
  text-align: center;
  padding: var(--space-9) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(circle at 50% 100%, var(--accent-08), transparent 60%);
}
.cta-final__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 1.4rem + 2.5vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-3);
  text-wrap: balance;
}
.cta-final__title em { font-style: normal; font-weight: 500; color: var(--accent); }
.cta-final__sub {
  font-size: var(--text-lg);
  color: var(--text-muted);
  margin: 0 auto var(--space-6);
  max-width: 50ch;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { padding: var(--space-7) 0 var(--space-5); }
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-7);
}
@media (max-width: 720px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
.footer__col h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 var(--space-3);
}
.footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer__col a {
  font-size: 14px;
  color: var(--text);
  transition: color var(--dur) var(--ease);
}
.footer__col a:hover { color: var(--accent); }
.footer__brand .ds-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
  display: block;
}
.footer__tagline {
  font-size: 14px;
  color: var(--text-muted);
  margin: var(--space-3) 0 0;
  max-width: 32ch;
  line-height: 1.5;
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-subtle);
  flex-wrap: wrap;
  gap: var(--space-3);
}
.footer__legal { display: flex; gap: var(--space-4); flex-wrap: wrap; }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}
.reveal.is-in { opacity: 1; transform: translateY(0); }

/* Stagger children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}
.reveal-stagger.is-in > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-in > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.is-in > *:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger.is-in > *:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger.is-in > *:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger.is-in > *:nth-child(5) { transition-delay: 320ms; }
.reveal-stagger.is-in > *:nth-child(6) { transition-delay: 400ms; }
.reveal-stagger.is-in > *:nth-child(7) { transition-delay: 480ms; }
.reveal-stagger.is-in > *:nth-child(8) { transition-delay: 560ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > *, .particle { transition: none; animation: none; opacity: 1; transform: none; }
}

/* ==========================================================================
   CLI feature — animated terminal in the last feature card
   ========================================================================== */
.feature--cli { position: relative; overflow: hidden; }
.feature--cli .feature__body { margin-bottom: var(--space-2); }

.cli-term {
  margin-top: auto;
  background: #0A0A0A;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.55;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02), 0 8px 24px rgba(0,0,0,0.3);
}
[data-theme="light"] .cli-term {
  background: #0F1A14;
  border-color: rgba(0,0,0,0.15);
}
.cli-term__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.cli-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.10);
}
.cli-term__title {
  margin-left: 8px;
  color: rgba(255,255,255,0.4);
  font-size: 10px;
  letter-spacing: 0.04em;
}
.cli-term__body {
  padding: 12px 14px;
  min-height: 154px;
  max-height: 154px;
  color: rgba(229,229,229,0.85);
  overflow: hidden;
  position: relative;
}
.cli-line {
  display: block;
  white-space: pre;
  opacity: 0;
  transform: translateY(4px);
  animation: cli-line-in 280ms var(--ease) forwards;
}
.cli-line .cli-prompt { color: var(--accent); margin-right: 6px; }
.cli-line .cli-cmd { color: rgba(229,229,229,0.95); }
.cli-line .cli-flag { color: #A78BFA; }
.cli-line .cli-str { color: #FBBF24; }
.cli-line .cli-ok { color: var(--accent); margin-right: 6px; }
.cli-line .cli-mute { color: rgba(229,229,229,0.55); }
.cli-line .cli-caret {
  display: inline-block; width: 7px; height: 12px;
  background: var(--accent);
  margin-left: 2px; vertical-align: -2px;
  animation: cli-caret 1s steps(2) infinite;
}
@keyframes cli-line-in {
  to { opacity: 1; transform: none; }
}
@keyframes cli-caret {
  50% { opacity: 0; }
}

/* ==========================================================================
   Tweaks panel
   ========================================================================== */
.tweaks-panel {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 320px;
  max-width: calc(100vw - 32px);
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: 0 24px 48px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.02);
  z-index: 100;
  font-family: var(--font-body);
  color: var(--text);
  overflow: hidden;
  transform: translateY(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms var(--ease), transform 200ms var(--ease);
}
.tweaks-panel.is-open { opacity: 1; transform: none; pointer-events: auto; }
.tweaks-panel__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.tweaks-panel__title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}
.tweaks-panel__close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: grid; place-items: center;
}
.tweaks-panel__close:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.tweaks-panel__body {
  padding: 16px;
  display: flex; flex-direction: column; gap: 16px;
  max-height: 60vh;
  overflow-y: auto;
}
.tweak {
  display: flex; flex-direction: column; gap: 6px;
}
.tweak__label {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 12px;
  color: var(--text-muted);
}
.tweak__label strong { font-weight: 500; color: var(--text); }
.tweak__value {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
}
.tweak input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  height: 18px;
}
.tweak input[type="range"]::-webkit-slider-runnable-track {
  height: 3px;
  background: var(--border-strong);
  border-radius: 2px;
}
.tweak input[type="range"]::-moz-range-track {
  height: 3px;
  background: var(--border-strong);
  border-radius: 2px;
}
.tweak input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: -5.5px;
  cursor: pointer;
  box-shadow: 0 0 0 4px var(--accent-15);
}
.tweak input[type="range"]::-moz-range-thumb {
  width: 14px; height: 14px;
  border: none;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 0 0 4px var(--accent-15);
}
.tweak__seg {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 2px;
  padding: 2px;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.tweak__seg button {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 12px;
  padding: 7px 10px;
  border-radius: calc(var(--radius-sm) - 2px);
  cursor: pointer;
  transition: background 120ms var(--ease), color 120ms var(--ease);
}
.tweak__seg button:hover { color: var(--text); }
.tweak__seg button.is-active {
  background: var(--accent);
  color: #0A0A0A;
  font-weight: 500;
}
.tweak__swatch-row {
  display: flex; gap: 8px;
}
.tweak__swatch {
  flex: 1;
  height: 28px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
}
.tweak__swatch.is-active { border-color: var(--text); }
.tweak__toggle {
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer;
}
.tweak__switch {
  position: relative;
  width: 36px; height: 20px;
  background: var(--border-strong);
  border-radius: 10px;
  transition: background 160ms var(--ease);
  flex-shrink: 0;
}
.tweak__switch::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform 160ms var(--ease);
}
.tweak__toggle.is-on .tweak__switch { background: var(--accent); }
.tweak__toggle.is-on .tweak__switch::after { transform: translateX(16px); }

/* "Tweaks" toggle button (always visible) */
.tweaks-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 99;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  transition: background 160ms var(--ease), border-color 160ms var(--ease);
}
.tweaks-fab:hover { border-color: var(--accent); color: var(--accent); }
.tweaks-fab__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.tweaks-panel.is-open ~ .tweaks-fab { opacity: 0; pointer-events: none; }

/* ==========================================================================
   Trust strip — 4 stat numbers
   ========================================================================== */
.trust-strip {
  position: relative;
  padding: var(--space-7) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}
.trust-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-4);
  text-align: center;
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.trust-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.trust-card:hover {
  border-color: var(--accent-20);
  box-shadow: 0 8px 24px rgba(61,198,108,0.06);
  transform: translateY(-2px);
}
.trust-card:hover::before { opacity: 1; }
.trust-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0 auto var(--space-3);
  background: var(--accent-08);
  border: 1px solid var(--accent-15);
  border-radius: var(--radius-sm);
  color: var(--accent);
  transition: box-shadow var(--dur) var(--ease);
}
.trust-card:hover .trust-card__icon {
  box-shadow: 0 0 16px var(--accent-10);
}
.trust-card__num {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text);
  line-height: 1;
  margin-bottom: var(--space-1);
  letter-spacing: -0.01em;
}
.trust-card__label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.45;
}
@media (max-width: 768px) {
  .trust-strip__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .trust-strip__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Social Proof — real data cards + factual signal strip
   ========================================================================== */
.social-proof {
  position: relative;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(circle at 20% 30%, var(--accent-08), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(248,113,113,0.04), transparent 45%),
    var(--bg-elev);
  overflow: hidden;
}
.social-proof::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.08) 1.2px, transparent 1.2px);
  background-size: 28px 28px;
  pointer-events: none;
}
[data-theme="light"] .social-proof::before {
  background-image: radial-gradient(circle, rgba(0,0,0,0.07) 1.2px, transparent 1.2px);
}
.social-proof::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg) 0%, transparent 15%, transparent 85%, var(--bg) 100%);
  pointer-events: none;
}
.social-proof > .container { position: relative; z-index: 1; }
.social-proof__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: var(--space-5);
  margin-bottom: var(--space-7);
}
.social-proof__card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-5) var(--space-4);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 480px;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.social-proof__card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  opacity: 0.8;
}
.social-proof__card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
  transform: translateY(-2px);
}

.social-proof__card--demand::before { background: linear-gradient(90deg, var(--warning), transparent 80%); }
.social-proof__card--demand:hover { border-color: rgba(248,113,113,0.25); box-shadow: 0 12px 40px rgba(248,113,113,0.08); }

.social-proof__card--stat::before { background: linear-gradient(90deg, var(--warning), transparent 80%); }
.social-proof__card--stat:hover { border-color: rgba(248,113,113,0.25); box-shadow: 0 12px 40px rgba(248,113,113,0.08); }

.social-proof__card--losses::before { background: linear-gradient(90deg, var(--warning), rgba(248,113,113,0.4) 50%, transparent); }
.social-proof__card--losses:hover { border-color: rgba(248,113,113,0.25); box-shadow: 0 12px 40px rgba(248,113,113,0.08); }

.social-proof__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
  flex-shrink: 0;
}
.social-proof__badge--info { background: var(--info-10); color: var(--info); border: 1px solid rgba(96,165,250,0.15); }
.social-proof__badge--warn { background: var(--warning-10); color: var(--warning); border: 1px solid rgba(248,113,113,0.15); }
.social-proof__badge svg { flex-shrink: 0; }

.social-proof__card-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: var(--space-2);
  flex-shrink: 0;
}
.social-proof__card-body {
  font-size: var(--text-base);
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}
.social-proof__card-source {
  font-size: 11px;
  color: var(--text-subtle);
  margin-top: auto;
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.social-proof__stat {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  font-weight: 600;
  color: var(--text);
  line-height: 1;
  margin-bottom: var(--space-2);
  letter-spacing: -0.03em;
  flex-shrink: 0;
}

.social-proof__quote {
  font-size: var(--text-sm);
  color: var(--text);
  line-height: 1.5;
  font-style: italic;
}
.social-proof__quote::before {
  content: '\201C';
  display: block;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--warning);
  opacity: 0.5;
  margin-bottom: var(--space-1);
  font-style: normal;
}
.social-proof__context {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
  font-style: normal;
}
.social-proof__attribution {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
  padding-top: var(--space-2);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.social-proof__avatar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.social-proof__avatar-img {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-subtle);
}
.social-proof__avatar-name { font-size: 12px; font-weight: 500; color: var(--text); }
.social-proof__avatar-role { font-size: 11px; color: var(--text-muted); }
.social-proof__avatar-stat { font-size: 11px; color: var(--text-muted); }

.social-proof__loss-item {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  font-size: var(--text-base);
  color: var(--text-muted);
  line-height: 1.5;
}
.social-proof__loss-item + .social-proof__loss-item { border-top: 1px solid var(--border); }

/* Real Losses scrolling ticker */
.social-proof__ticker-viewport {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  position: relative;
}
.social-proof__ticker-track {
  display: flex;
  flex-direction: column;
  animation: social-proof-ticker 45s linear infinite;
}
.social-proof__ticker-track:hover { animation-play-state: paused; }
@keyframes social-proof-ticker {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}
.social-proof__ticker-fade {
  position: absolute;
  left: 0; right: 0;
  height: 24px;
  pointer-events: none;
  z-index: 1;
}
.social-proof__ticker-fade--top {
  top: 0;
  background: linear-gradient(var(--surface), transparent);
}
.social-proof__ticker-fade--bottom {
  bottom: 0;
  background: linear-gradient(transparent, var(--surface));
}
.social-proof__loss-tag {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 9px;
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-right: 4px;
  vertical-align: baseline;
  flex-shrink: 0;
}
.social-proof__loss-tag--leak    { background: rgba(239,68,68,0.15); color: #ef4444; }
.social-proof__loss-tag--corrupt { background: rgba(249,115,22,0.15); color: #f97316; }
.social-proof__loss-tag--outage  { background: rgba(234,179,8,0.15);  color: #eab308; }
.social-proof__loss-tag--loss    { background: rgba(168,85,247,0.15); color: #a855f7; }
.social-proof__loss-tag--breach  { background: rgba(239,68,68,0.2);   color: #f87171; }
@media (prefers-reduced-motion: reduce) {
  .social-proof__ticker-track { animation: none; }
}
.social-proof__loss-item strong {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.02em;
  flex-shrink: 0;
  min-width: 56px;
}

.social-proof__stat-list {
  list-style: none;
  padding: 0;
  margin: var(--space-3) 0 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
}
.social-proof__stat-list li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.4;
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--border);
}
.social-proof__stat-list li:last-child { border-bottom: none; }
.social-proof__stat-list li::before {
  content: '';
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--warning);
  opacity: 0.6;
}

.social-proof__signals {
  display: flex;
  gap: var(--space-6);
  justify-content: center;
  flex-wrap: wrap;
  padding: var(--space-5) 0 0;
  border-top: 1px solid var(--border);
}
.social-proof__signals span {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-muted);
  transition: color var(--dur) var(--ease);
}
.social-proof__signals span:hover { color: var(--text); }
.social-proof__signals span svg { flex-shrink: 0; }

@media (max-width: 960px) {
  .social-proof__grid { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
  .social-proof__card { height: auto; }
  .social-proof__card--losses { max-height: 400px; }
}
@media (max-width: 480px) {
  .social-proof__signals { gap: var(--space-4); }
}

/* ==========================================================================
   Rotating sync name in problem section
   ========================================================================== */
.problem .section__title {
  white-space: nowrap;
}
.rotate-sync {
  display: inline;
  color: var(--text);
  transition: opacity 0.4s var(--ease);
}
.rotate-sync.is-fading { opacity: 0; }
@media (max-width: 768px) {
  .problem .section__title { white-space: normal; }
}

/* ==========================================================================
   Feature spotlights — full-width hero features
   ========================================================================== */
.feature-spotlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  margin-bottom: var(--space-6);
}
.feature-spotlight {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  aspect-ratio: 1;
  overflow: hidden;
  transition: border-color var(--dur) var(--ease);
}
.feature-spotlight > div:not(.feature-spotlight__icon) {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.feature-spotlight:hover { border-color: var(--border-strong); }
.feature-spotlight__icon {
  width: 48px; height: 48px;
  flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--accent-10);
  color: var(--accent);
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent-15);
}
.feature-spotlight__icon svg { display: block; }
.feature-spotlight__name {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-1);
}
.feature-spotlight__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--text);
  margin: 0 0 var(--space-1);
  line-height: 1.2;
}
.feature-spotlight__body {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
  max-width: 60ch;
  min-height: 4.65em;
}
@media (max-width: 768px) {
  .feature-spotlights { grid-template-columns: 1fr; }
}

/* Mini terminal inside spotlight cards */
.feature-spotlight__body {
  flex: 1;
}
.ds-cmd {
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--accent);
}
.mini-term {
  margin-top: var(--space-4);
  background: #1C1C1E;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  overflow: hidden;
  box-shadow:
    0 2px 4px rgba(0,0,0,0.2),
    0 8px 20px rgba(0,0,0,0.25),
    inset 0 0.5px 0 rgba(255,255,255,0.04);
}
[data-theme="light"] .mini-term {
  background: #FFFFFF;
  border: 1px solid rgba(0,0,0,0.12);
  box-shadow: 0 2px 4px rgba(0,0,0,0.06), 0 8px 20px rgba(0,0,0,0.08);
}
.mini-term__head {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  background: linear-gradient(180deg, #3A3A3C 0%, #2C2C2E 100%);
  border-bottom: 1px solid rgba(0,0,0,0.4);
}
[data-theme="light"] .mini-term__head {
  background: linear-gradient(180deg, #F0F0F0 0%, #E2E2E2 100%);
  border-bottom: 1px solid rgba(0,0,0,0.12);
}
[data-theme="dusk"] .mini-term__head {
  background: linear-gradient(180deg, #2A2D30 0%, #222528 100%);
  border-bottom: 1px solid rgba(0,0,0,0.3);
}
.mini-term__head .terminal__dots span {
  width: 10px; height: 10px;
}
.mini-term__head .terminal__title {
  font-size: 10px;
}
.mini-term__body {
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  color: #D4D4D4;
  height: 220px;
  overflow-y: auto;
}
[data-theme="light"] .mini-term__body { color: #1A1A1A; }
[data-theme="dusk"] .mini-term__body { color: #D4D4D4; }
.mini-term__body .prompt { color: #28C840; user-select: none; }
[data-theme="light"] .mini-term__body .prompt { color: #1E8E3E; }
.mini-term__body .cmd { color: #E0E0E0; }
[data-theme="light"] .mini-term__body .cmd { color: #1A1A1A; }
.mini-term__body .ok { color: #28C840; }
[data-theme="light"] .mini-term__body .ok { color: #1E8E3E; }
.mini-term__body .dim { color: #888; }
[data-theme="light"] .mini-term__body .dim { color: #777; }
.mini-term__body .warn { color: #FBBF24; }
[data-theme="light"] .mini-term__body .warn { color: #B45309; }
.mini-term__body .cur {
  display: inline-block;
  width: 7px; height: 14px;
  background: #E0E0E0;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}
[data-theme="light"] .mini-term__body .cur { background: #333; }

/* ==========================================================================
   Architecture flow — trust diagram
   ========================================================================== */
.arch-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin: var(--space-6) auto;
  max-width: 800px;
}
.arch-node {
  flex: 1;
  max-width: 240px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  text-align: center;
}
.arch-node--you { border-color: var(--accent-20); background: linear-gradient(180deg, var(--accent-05), transparent 60%), var(--surface); }
.arch-node__icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--accent-10);
  color: var(--accent);
  border-radius: var(--radius-sm);
  margin: 0 auto var(--space-3);
}
.arch-node h4 {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 var(--space-1);
}
.arch-node p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}
.arch-arrow {
  color: var(--accent);
  flex-shrink: 0;
  opacity: 0.6;
}
.arch-sticker {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
  text-align: center;
  padding: var(--space-4) var(--space-5);
  margin: var(--space-5) auto 0;
  max-width: 520px;
  border: 1px dashed var(--accent-20);
  border-radius: var(--radius-sm);
  background: var(--accent-05);
}
@media (max-width: 640px) {
  .arch-flow { flex-direction: column; }
  .arch-arrow { transform: rotate(90deg); }
}

/* ==========================================================================
   Origin story
   ========================================================================== */
.section-break {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4) var(--space-5);
}
.section-break::before {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, var(--border) 30%, var(--border) 70%, transparent 95%);
}
.section-break span {
  position: relative;
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-20);
}

.origin {
  text-align: center;
  padding: var(--space-8) 0 var(--space-9);
  position: relative;
  background:
    radial-gradient(circle at 50% 50%, var(--accent-08), transparent 60%);
}
.origin::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 200px;
  background: linear-gradient(to bottom, var(--bg), transparent);
  pointer-events: none;
  z-index: 0;
}
.origin::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--bg), transparent);
  pointer-events: none;
  z-index: 0;
}
.origin > .container {
  position: relative;
  z-index: 1;
}
.origin__heading {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.3rem, 1rem + 1.2vw, 1.8rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 var(--space-4);
}
.origin__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid var(--accent-20);
  object-fit: cover;
  object-position: center 15%;
  margin: var(--space-3) auto var(--space-2);
}
.origin__name {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--text);
  line-height: 1.3;
}
.origin__role {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-subtle);
  letter-spacing: 0.04em;
  margin-bottom: var(--space-5);
}
.origin__quote {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.4rem, 1rem + 1.5vw, 2rem);
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 auto var(--space-3);
  max-width: 52ch;
  text-wrap: balance;
}
.origin__cite {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-style: normal;
  color: var(--text-subtle);
  letter-spacing: 0.04em;
  margin-bottom: var(--space-5);
}
.origin__story {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 64ch;
  margin: var(--space-2) auto 0;
}
@media (max-width: 520px) {
  .origin { padding: var(--space-7) 0; }
}

/* ==========================================================================
   Waitlist / email capture
   ========================================================================== */
.waitlist {
  max-width: 460px;
  margin: var(--space-6) auto 0;
  text-align: center;
}
.waitlist__title {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-3);
}
.waitlist__form {
  display: flex;
  gap: var(--space-2);
}
.waitlist__input {
  flex: 1;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.waitlist__input::placeholder { color: var(--text-subtle); }
.waitlist__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-10);
}
.waitlist__sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-subtle);
  margin-top: var(--space-2);
}
@media (max-width: 480px) {
  .waitlist__form { flex-direction: column; }
}

/* ==========================================================================
   Early Access — standalone CTA section
   ========================================================================== */
.early-access {
  text-align: center;
  padding: var(--space-9) 0;
  position: relative;
  background:
    radial-gradient(circle at 50% 50%, var(--accent-08), transparent 60%);
}
.early-access::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 200px;
  background: linear-gradient(to bottom, var(--bg), transparent);
  pointer-events: none;
  z-index: 0;
}
.early-access__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 1.4rem + 2.5vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: var(--space-3) 0 var(--space-3);
  text-wrap: balance;
}
.early-access__sub {
  font-size: var(--text-lg);
  color: var(--text-muted);
  margin: 0 auto var(--space-6);
  max-width: 50ch;
  line-height: 1.5;
}
.early-access__form {
  display: flex;
  gap: var(--space-2);
  max-width: 440px;
  margin: 0 auto var(--space-4);
}
.early-access__input {
  flex: 1;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.early-access__input::placeholder { color: var(--text-subtle); }
.early-access__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-10);
}
.early-access__offer {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.02em;
  margin-bottom: var(--space-5);
}
.early-access__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
}
.early-access__badges span {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.early-access__badges svg { color: var(--accent); }
.ea-email-row {
  position: relative;
  flex: 1;
}
.ea-email-row .early-access__input { width: 100%; padding-right: 38px; }
.ea-email-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%) scale(0);
  width: 18px;
  height: 18px;
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}
.ea-email-icon--valid { color: var(--accent); }
.ea-email-icon--error { color: #f87171; }
.ea-email-row.is-valid .ea-email-icon--valid,
.ea-email-row.is-error .ea-email-icon--error {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}
.ea-email-row.is-valid .early-access__input { border-color: var(--accent); }
.ea-email-row.is-error .early-access__input { border-color: #f87171; }
.ea-email-hint {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
  max-width: 440px;
  margin: 6px auto 0;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.2s ease;
}
.ea-email-hint.is-visible { opacity: 1; max-height: 40px; }
.ea-email-hint--error { color: #f87171; }
.ea-email-hint--typo { color: #fbbf24; }
.ea-email-hint a {
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
@media (max-width: 520px) {
  .early-access { padding: var(--space-7) 0; }
  .early-access__form { flex-direction: column; }
  .early-access__badges { gap: var(--space-3); }
}
