/* ──────────────────────────────────────────────────────────
 *  AlphaBet Radar marketing site
 *  Ultraviolet palette — bold differentiation in the
 *  Polymarket bot ecosystem (everyone else is green/cyan).
 *  Space Grotesk + JetBrains Mono.
 * ────────────────────────────────────────────────────────── */

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

:root {
  /* ── Ultraviolet palette ─────────────────────────────── */
  --bg: #0c0a14;
  --bg-deep: #08060f;
  --surface: #181426;
  --surface-2: #221b32;
  --surface-3: #2a2240;
  --border: #322a48;
  --border-strong: #443a5e;

  --accent: #a78bfa;
  --accent-hover: #b9a2fb;
  --accent-dim: rgba(167, 139, 250, 0.12);
  --accent-glow: rgba(167, 139, 250, 0.22);
  --accent-2: #f472b6;
  --accent-2-dim: rgba(244, 114, 182, 0.1);

  --t1: #ece8f8;
  --t2: #9088b0;
  --t3: #6b6588;
  --t4: #544e70;

  --ok: #28c840;
  --ok-dim: rgba(40, 200, 64, 0.14);
  --warn: #ffbd2e;
  --err: #ff5f57;

  /* Code syntax */
  --syn-keyword: #c792ea;
  --syn-fn: #82aaff;
  --syn-num: #f78c6c;
  --syn-str: #c3e88d;
  --syn-comment: #6b6588;

  --sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;

  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 14px;
  --r-2xl: 18px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 0 1px var(--accent-glow), 0 12px 40px rgba(167, 139, 250, 0.18);

  --w-full: 1180px;
  --w-narrow: 760px;
  --w-prose: 640px;
  --pad-x: clamp(1.25rem, 4vw, 3rem);

  --nav-h: 64px;
  --banner-h: 36px;
}

html, body {
  background: var(--bg);
  color: var(--t1);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse 800px 600px at 15% -10%, rgba(167, 139, 250, 0.08), transparent 60%),
    radial-gradient(ellipse 700px 500px at 90% 5%, rgba(244, 114, 182, 0.05), transparent 70%);
  background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--t1); }

img, svg { max-width: 100%; display: block; }

::selection { background: var(--accent-glow); color: var(--t1); }

/* ── Typography ──────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--sans); letter-spacing: -0.02em; line-height: 1.15; }

.h-display {
  font-size: clamp(2.4rem, 5.5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.h-section { font-size: clamp(1.6rem, 3vw, 2rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.h-card { font-size: 1.075rem; font-weight: 600; letter-spacing: -0.01em; }

.lede {
  font-size: 1rem;
  color: var(--t2);
  line-height: 1.65;
  max-width: 56ch;
}

.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.accent { color: var(--accent); }
.accent-2 { color: var(--accent-2); }
.muted { color: var(--t2); }
.dim { color: var(--t3); }

.mono { font-family: var(--mono); }

/* ── Top banner ──────────────────────────────────────── */
.topbanner {
  background: linear-gradient(90deg, var(--accent-dim), var(--accent-2-dim));
  border-bottom: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--t1);
}
.topbanner-in {
  max-width: var(--w-full);
  margin: 0 auto;
  padding: 0.5rem var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  height: var(--banner-h);
}
.topbanner-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
  animation: pulse 2s infinite ease-in-out;
}
.topbanner-text { color: var(--t1); }
.topbanner-link {
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
}
.topbanner-link:hover { color: var(--accent-hover); }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--accent-glow); }
  50% { box-shadow: 0 0 0 8px transparent; }
}

/* ── Nav ─────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  padding: 0 var(--pad-x);
  background: rgba(12, 10, 20, 0.7);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s;
}
.nav.scrolled {
  background: rgba(12, 10, 20, 0.92);
  border-bottom-color: var(--border);
}

.logo {
  display: inline-flex;
  align-items: center;
  color: var(--t1);
  line-height: 0;
}
.logo-lockup {
  display: block;
  height: 30px;
  width: auto;
  transition: opacity 0.2s, filter 0.2s;
}
.logo:hover .logo-lockup { filter: brightness(1.08); }

.nav-links {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}
.nav-links a {
  font-size: 0.85rem;
  color: var(--t2);
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--t1); }
.nav-links a[aria-current="page"] {
  color: var(--t1);
  position: relative;
}
.nav-links a[aria-current="page"]::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.nav-end {
  display: flex; align-items: center; gap: 0.85rem;
}
.nav-login {
  font-size: 0.85rem;
  color: var(--t3);
  font-weight: 500;
}
.nav-login:hover { color: var(--t1); }

.nav-mob {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  width: 36px; height: 36px;
  align-items: center; justify-content: center;
  color: var(--t1);
  cursor: pointer;
}
.nav-mob:hover { border-color: var(--border-strong); }

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.6rem;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
  line-height: 1;
}
.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.82rem; }
.btn-lg { padding: 1rem 1.9rem; font-size: 0.97rem; }

.btn-accent {
  background: var(--accent);
  color: #0c0a14;
  font-weight: 700;
}
.btn-accent:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--accent-glow);
  color: #0c0a14;
}

.btn-ghost {
  background: transparent;
  color: var(--t1);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.btn-disabled {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}

.btn-wide { width: 100%; }

/* ── Tags / pills / badges ───────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--r-pill);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--t2);
  text-transform: uppercase;
}
.tag-accent {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: transparent;
}
.tag-2 {
  background: var(--accent-2-dim);
  color: var(--accent-2);
  border-color: transparent;
}
.tag-ok {
  background: var(--ok-dim);
  color: var(--ok);
  border-color: transparent;
}

/* ── Section / wrap ──────────────────────────────────── */
.section { padding: clamp(2.5rem, 7vw, 5rem) var(--pad-x); }
.section-tight { padding: clamp(2rem, 5vw, 3.5rem) var(--pad-x); }
.section-bordered { border-top: 1px solid var(--border); }
.wrap { max-width: var(--w-full); margin: 0 auto; }
.wrap-narrow { max-width: var(--w-narrow); margin: 0 auto; }
.wrap-prose { max-width: var(--w-prose); margin: 0 auto; }

.section-head { text-align: center; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head .lede { margin: 0.75rem auto 0; }

/* ── Hero ─────────────────────────────────────────── */
.hero {
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--pad-x) clamp(2rem, 5vw, 3.5rem);
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 1000px 500px at 30% 50%, rgba(167, 139, 250, 0.05), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  max-width: var(--w-full);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: center;
  position: relative;
}
.hero-tags { display: flex; gap: 0.5rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.hero h1 { margin: 0; }
.hero-sub { margin-top: 1rem; max-width: 480px; }
.hero-actions { display: flex; gap: 0.75rem; margin-top: 1.75rem; flex-wrap: wrap; }
.hero-annotation {
  margin-top: 1.5rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--t3);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.hero-annotation::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--ok);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--ok);
  flex-shrink: 0;
}

/* ── Terminal mock ───────────────────────────────────── */
.terminal {
  background: #0e0c16;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(167, 139, 250, 0.08);
  position: relative;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1rem;
  background: #12101c;
  border-bottom: 1px solid var(--border);
}
.term-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
}
.term-dot-r { background: var(--err); }
.term-dot-y { background: var(--warn); }
.term-dot-g { background: var(--ok); }
.terminal-name {
  margin-left: 0.6rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--t3);
}
.terminal-body {
  padding: 1.25rem;
  font-family: var(--mono);
  font-size: 0.825rem;
  line-height: 1.85;
  color: var(--t2);
  overflow-x: auto;
}
.terminal-body .line { white-space: pre; }
.terminal-body .indent-1 { padding-left: 1.25rem; }
.terminal-body .indent-2 { padding-left: 2.5rem; }
.terminal-body .indent-3 { padding-left: 3.75rem; }
.terminal-body .gap { height: 0.5rem; }
.t-kw { color: var(--syn-keyword); }
.t-fn { color: var(--syn-fn); }
.t-num { color: var(--syn-num); }
.t-str { color: var(--syn-str); }
.t-com { color: var(--syn-comment); }
.t-prompt { color: var(--accent); }
.t-ok { color: var(--ok); }
.t-err { color: var(--err); }

/* Cursor blink at end of last line */
.terminal-body .cursor::after {
  content: '▋';
  color: var(--accent);
  animation: blink 1.1s steps(1) infinite;
  margin-left: 2px;
}
@keyframes blink { 50% { opacity: 0; } }

/* ── Stats bar ──────────────────────────────────────── */
.stats-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.5rem, 5vw, 4rem);
  padding: 1.5rem var(--pad-x);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-deep);
}
.stat { text-align: center; min-width: 90px; }
.stat-v {
  font-family: var(--sans);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.stat-l {
  font-size: 0.72rem;
  color: var(--t3);
  margin-top: 0.15rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Feature cards (3-up grid) ──────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 1.75rem;
  transition: border-color 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 80px; height: 80px;
  background: radial-gradient(circle, var(--accent-dim), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.feature-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.feature-card:hover::before { opacity: 1; }
.feature-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.feature-icon {
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center; justify-content: center;
  border-radius: var(--r-md);
  background: var(--accent-dim);
  color: var(--accent);
}
.feature-icon .material-symbols-outlined { font-size: 22px; }
.feature-card h3 { margin: 0 0 0.5rem; font-size: 1.075rem; font-weight: 600; }
.feature-card p { font-size: 0.92rem; color: var(--t2); line-height: 1.55; }
.feature-card-link {
  display: inline-block;
  margin-top: 0.85rem;
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 500;
}

/* ── Long-form feature blocks (used on /features) ──── */
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
}
.feature-block + .feature-block { border-top: 1px solid var(--border); }
.feature-block.flip { direction: rtl; }
.feature-block.flip > * { direction: ltr; }
.feature-block h2 { margin: 0.75rem 0 0; }
.feature-block p { margin-top: 0.85rem; color: var(--t2); line-height: 1.65; }
.feature-bullets {
  list-style: none;
  margin-top: 1.25rem;
  padding: 0;
}
.feature-bullets li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  padding: 0.35rem 0;
  font-size: 0.92rem;
  color: var(--t2);
  line-height: 1.55;
}
.feature-bullets .check {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--ok);
  font-weight: 700;
}
.feature-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* Feature block mock placeholders */
.feature-mock {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}
.feature-mock-trading {
  background: linear-gradient(180deg, var(--surface), #0e0c18);
  min-height: 320px;
}
.feature-mock-bt {
  background: linear-gradient(180deg, var(--surface), #0e0c18);
  min-height: 320px;
}

/* Trading mock content */
.tm {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  font-family: var(--mono);
  font-size: 0.78rem;
}
.tm-head {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--sans);
}
.tm-pair {
  font-weight: 700; font-size: 0.95rem;
}
.tm-live {
  display: inline-flex; gap: 0.4rem; align-items: center;
  color: var(--ok); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.tm-live::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--ok); box-shadow: 0 0 8px var(--ok);
}
.tm-pnl {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem;
}
.tm-cell {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 0.65rem 0.85rem;
}
.tm-cell-l { font-size: 0.65rem; color: var(--t3); text-transform: uppercase; letter-spacing: 0.06em; font-family: var(--sans); }
.tm-cell-v { font-size: 1.05rem; font-weight: 700; margin-top: 0.15rem; font-family: var(--sans); }
.tm-cell-v.up { color: var(--ok); }

.tm-book { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.tm-book-row {
  display: grid;
  grid-template-columns: 1fr 80px 80px;
  padding: 0.4rem 0.85rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.75rem;
  position: relative;
}
.tm-book-row:last-child { border-bottom: 0; }
.tm-book-row .bar {
  position: absolute; top: 0; bottom: 0; right: 0;
  background: var(--accent-2-dim); pointer-events: none; z-index: 0;
}
.tm-book-row.bid .bar { background: var(--ok-dim); }
.tm-book-row > span { position: relative; z-index: 1; }
.tm-book-row .price { font-weight: 600; }
.tm-book-row.ask .price { color: var(--accent-2); }
.tm-book-row.bid .price { color: var(--ok); }

/* Backtest mock */
.bt-row { display: flex; justify-content: space-between; gap: 0.5rem; align-items: center; }
.bt-meta { font-family: var(--sans); font-size: 0.78rem; color: var(--t2); }
.bt-meta strong { color: var(--t1); font-weight: 600; }
.bt-chart {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 0.85rem;
  height: 160px;
  position: relative;
  overflow: hidden;
}
.bt-chart svg { width: 100%; height: 100%; display: block; }
.bt-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
.bt-stat { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-md); padding: 0.55rem 0.75rem; }
.bt-stat-l { font-size: 0.62rem; color: var(--t3); text-transform: uppercase; letter-spacing: 0.06em; }
.bt-stat-v { font-size: 0.95rem; font-weight: 700; margin-top: 0.15rem; font-family: var(--sans); }
.bt-stat-v.up { color: var(--ok); }
.bt-stat-v.down { color: var(--err); }

/* ── Comparison table ──────────────────────────────── */
.compare-card {
  max-width: 760px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.compare-card table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.compare-card thead th {
  padding: 1rem 0.85rem;
  text-align: center;
  font-weight: 500;
  color: var(--t3);
  border-bottom: 1px solid var(--border);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}
.compare-card thead th:first-child {
  text-align: left;
  padding-left: 1.25rem;
}
.compare-card thead th.us {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
}
.compare-card tbody td {
  padding: 0.7rem 0.85rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  color: var(--t3);
  font-size: 0.85rem;
}
.compare-card tbody td:first-child {
  text-align: left;
  color: var(--t2);
  padding-left: 1.25rem;
  font-size: 0.85rem;
}
.compare-card tbody tr:last-child td { border-bottom: 0; }
.compare-card tbody tr:hover td { background: var(--surface-2); }
.compare-card td.us {
  color: var(--ok);
  font-weight: 700;
  background: rgba(167, 139, 250, 0.04);
}
.compare-note {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--t3);
}

/* ── SDK section ────────────────────────────────────── */
.sdk-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: center;
}
.sdk-meta { display: flex; flex-direction: column; gap: 1rem; }
.sdk-pills { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.5rem; }

/* ── Pricing ────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 860px;
  margin: clamp(2rem, 4vw, 3rem) auto 0;
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 2rem 1.75rem;
  position: relative;
  transition: border-color 0.2s, transform 0.2s;
}
.price-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.price-tier {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--t2);
}
.price-amount {
  font-size: 2.5rem;
  font-weight: 700;
  margin-top: 0.4rem;
  letter-spacing: -0.03em;
  line-height: 1;
}
.price-amount .period {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--t3);
  letter-spacing: 0;
}
.price-target {
  font-size: 0.78rem;
  color: var(--t3);
  margin-top: 0.4rem;
}
.price-features {
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  display: flex; flex-direction: column; gap: 0.55rem;
}
.price-features li {
  display: flex; gap: 0.55rem; align-items: flex-start;
  font-size: 0.88rem;
  color: var(--t2);
  line-height: 1.45;
}
.price-features .check { flex-shrink: 0; color: var(--ok); margin-top: 2px; }
.price-cta { margin-top: 1.5rem; }

.price-card.popular {
  background: linear-gradient(180deg, var(--accent), #8a6df0);
  border-color: transparent;
  color: #fff;
}
.price-card.popular .price-tier { color: rgba(255, 255, 255, 0.75); }
.price-card.popular .price-amount { color: #fff; }
.price-card.popular .price-amount .period { color: rgba(255, 255, 255, 0.6); }
.price-card.popular .price-target { color: rgba(255, 255, 255, 0.65); }
.price-card.popular .price-features { border-color: rgba(255, 255, 255, 0.2); }
.price-card.popular .price-features li { color: rgba(255, 255, 255, 0.85); }
.price-card.popular .price-features .check { color: #fff; }
.price-card.popular .btn-accent {
  background: #fff;
  color: var(--accent);
}
.price-card.popular .btn-accent:hover { background: rgba(255, 255, 255, 0.9); }

.price-pop-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  color: #1c1a28;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.85rem;
  border-radius: var(--r-pill);
}

.early-bird {
  max-width: 760px;
  margin: 2rem auto 0;
  background: var(--accent-dim);
  border: 1px solid var(--accent-glow);
  border-radius: var(--r-xl);
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.early-bird h3 { margin: 0; font-size: 1.05rem; font-weight: 600; }
.early-bird p { margin-top: 0.3rem; color: var(--t2); font-size: 0.88rem; }

/* ── Final CTA / signup ─────────────────────────────── */
.final-cta {
  text-align: center;
  padding: clamp(3rem, 7vw, 5rem) var(--pad-x);
  border-top: 1px solid var(--border);
  position: relative;
}
.final-cta::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 600px 400px at 50% 100%, rgba(167, 139, 250, 0.1), transparent 60%);
  pointer-events: none;
}
.final-cta h2 { font-size: clamp(1.75rem, 4vw, 2.4rem); margin: 0; line-height: 1.15; }
.final-cta-sub { color: var(--t2); margin-top: 0.85rem; font-size: 0.95rem; }
.final-cta-actions { display: flex; justify-content: center; gap: 0.75rem; margin-top: 1.75rem; flex-wrap: wrap; position: relative; }

/* Inline signup form */
.signup {
  max-width: 480px;
  margin: 1.5rem auto 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  position: relative;
  z-index: 1;
}
.signup input {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 0.85rem 1rem;
  color: var(--t1);
  font-family: inherit;
  font-size: 0.92rem;
  transition: border-color 0.15s;
}
.signup input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.signup input::placeholder { color: var(--t3); }
.signup-note {
  font-size: 0.78rem;
  color: var(--t3);
  margin-top: 0.85rem;
}
.signup-status {
  font-size: 0.85rem;
  color: var(--t2);
  margin-top: 0.85rem;
  min-height: 1.2em;
}
.signup-status[data-state="ok"]    { color: var(--ok); }
.signup-status[data-state="error"] { color: var(--err); }

/* ── Steps ──────────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 1.75rem;
  position: relative;
}
.step-n {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 0.05em;
  font-weight: 600;
}
.step h3 { margin: 0.6rem 0 0.5rem; font-size: 1.075rem; font-weight: 600; }
.step p { font-size: 0.92rem; color: var(--t2); line-height: 1.55; }
.step p code {
  font-family: var(--mono);
  background: var(--surface-2);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  color: var(--accent);
  font-size: 0.85em;
}

/* ── Strategies grid ────────────────────────────────── */
.strat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.85rem;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}
.strat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.25rem 1.4rem;
  transition: border-color 0.2s, transform 0.2s;
}
.strat-card:hover {
  border-color: var(--accent-glow);
  transform: translateY(-2px);
}
.strat-head {
  display: flex; justify-content: space-between; align-items: center; gap: 0.5rem;
  margin-bottom: 0.55rem;
}
.strat-card h3 { font-size: 0.97rem; font-weight: 600; margin: 0; }
.strat-card p { font-size: 0.85rem; color: var(--t2); line-height: 1.5; }
.strat-fam {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.18rem 0.55rem;
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--t3);
  border: 1px solid var(--border);
}
.strat-fam.directional { color: var(--accent); border-color: var(--accent-glow); background: var(--accent-dim); }
.strat-fam.reversal { color: var(--accent-2); border-color: rgba(244, 114, 182, 0.25); background: var(--accent-2-dim); }
.strat-fam.structural { color: var(--ok); border-color: rgba(40, 200, 64, 0.25); background: var(--ok-dim); }

/* ── Principles cards (why-us) ──────────────────────── */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 800px;
  margin: clamp(2rem, 4vw, 3rem) auto 0;
}
.principle {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 1.5rem 1.75rem;
}
.principle-n {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 600;
}
.principle h3 { margin: 0.4rem 0 0.4rem; font-size: 1.05rem; font-weight: 600; }
.principle p { font-size: 0.92rem; color: var(--t2); line-height: 1.55; }

/* ── Specs / roadmap (about) ────────────────────────── */
.spec-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.spec-row {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.spec-row:nth-child(2n) { border-right: 0; }
.spec-row:nth-last-child(-n+2) { border-bottom: 0; }
.spec-l { font-size: 0.7rem; color: var(--t3); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.spec-v { font-size: 0.92rem; color: var(--t1); font-family: var(--mono); }

.roadmap {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 1.5rem;
  border-left: 2px solid var(--border);
  padding-left: 1.25rem;
}
.roadmap-item {
  position: relative;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 1rem;
  align-items: center;
}
.roadmap-item:last-child { border-bottom: 0; }
.roadmap-item::before {
  content: '';
  position: absolute;
  left: -1.25rem;
  top: 50%;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--border);
  transform: translate(-50%, -50%);
}
.roadmap-item.live::before { background: var(--ok); border-color: var(--ok); box-shadow: 0 0 8px var(--ok); }
.roadmap-item.in-progress::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 8px var(--accent-glow); }
.roadmap-date {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--t3);
  letter-spacing: 0.02em;
}
.roadmap-t { font-size: 0.95rem; color: var(--t1); }
.roadmap-status {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
}
.roadmap-status.live { background: var(--ok-dim); color: var(--ok); }
.roadmap-status.in-progress { background: var(--accent-dim); color: var(--accent); }
.roadmap-status.planned { background: var(--surface-2); color: var(--t3); border: 1px solid var(--border); }

/* ── Story prose (about) ────────────────────────────── */
.prose p {
  font-size: 1.02rem;
  color: var(--t2);
  line-height: 1.75;
  margin-bottom: 1.1rem;
}
.prose p strong { color: var(--t1); font-weight: 600; }

/* ── FAQ ─────────────────────────────────────────────── */
.faq {
  max-width: 760px;
  margin: clamp(2rem, 4vw, 2.5rem) auto 0;
  border-top: 1px solid var(--border);
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--t1);
  transition: color 0.15s;
}
.faq-item summary:hover { color: var(--accent); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '＋';
  font-size: 1.3rem;
  color: var(--t3);
  flex-shrink: 0;
  transition: transform 0.2s, color 0.15s;
  font-weight: 400;
  line-height: 1;
}
.faq-item[open] summary::after {
  content: '−';
  color: var(--accent);
}
.faq-item p {
  padding: 0 0.5rem 1.25rem;
  font-size: 0.92rem;
  color: var(--t2);
  line-height: 1.7;
}

/* ── Footer ─────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-deep);
  padding: clamp(2.5rem, 5vw, 4rem) var(--pad-x) 1.5rem;
  margin-top: 2rem;
}
.foot-in {
  max-width: var(--w-full);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.foot-brand { display: flex; flex-direction: column; gap: 0.85rem; }
.logo-foot { color: var(--t1); }
.foot-blurb { color: var(--t2); font-size: 0.88rem; line-height: 1.55; max-width: 360px; }
.foot-legal { color: var(--t3); font-size: 0.78rem; line-height: 1.5; max-width: 360px; }
.foot-col-title {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--t3);
  margin-bottom: 0.85rem;
}
.foot-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.foot-col a { font-size: 0.88rem; color: var(--t2); }
.foot-col a:hover { color: var(--accent); }

.foot-bottom {
  max-width: var(--w-full);
  margin: 0 auto;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--t3);
  flex-wrap: wrap;
  gap: 1rem;
}
.foot-mono { font-family: var(--mono); color: var(--t3); }

/* ── Reveal-on-scroll ───────────────────────────────── */
/* Elements are visible by default. JS adds `.reveal-hidden` to below-the-fold
 * elements at page load, and removes it (revealing them) on scroll. This way
 * the page renders fully even before JS runs and there is no flash-of-hidden. */
.reveal { transition: opacity 0.35s ease-out, transform 0.35s ease-out; }
.reveal.reveal-hidden {
  opacity: 0;
  transform: translateY(10px);
}
@media (prefers-reduced-motion: reduce) {
  .reveal.reveal-hidden { opacity: 1; transform: none; }
}

/* ── 404 ─────────────────────────────────────────────── */
.notfound {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 60vh;
  padding: 3rem var(--pad-x);
  text-align: center;
}
.notfound-code {
  font-family: var(--mono);
  font-size: 5rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1;
}
.notfound h1 { margin: 1rem 0 0.5rem; font-size: 1.6rem; }
.notfound p { color: var(--t2); margin-bottom: 1.5rem; }

/* ── Under construction ────────────────────────────── */
.uc {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem var(--pad-x);
  text-align: center;
}
.uc-inner { max-width: 560px; width: 100%; }
.uc-logo { display: flex; justify-content: center; margin-bottom: 2rem; }
.uc-logo .logo-lockup { height: 36px; }
.uc-h {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 1rem;
}
.uc-sub {
  color: var(--t2);
  font-size: 1rem;
  line-height: 1.55;
  margin: 0 auto 0.5rem;
  max-width: 460px;
}
.uc-hint {
  color: var(--t3);
  font-size: 0.85rem;
  line-height: 1.55;
  margin: 0 auto 1.75rem;
  max-width: 460px;
}
.uc-signup { margin-top: 0; }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 880px) {
  .hero-grid,
  .feature-block,
  .feature-grid,
  .pricing-grid,
  .steps-grid,
  .sdk-grid {
    grid-template-columns: 1fr;
  }
  .feature-block.flip { direction: ltr; }
  .feature-grid { gap: 0.85rem; }
  .pricing-grid { gap: 0.85rem; }
  .principles-grid { grid-template-columns: 1fr; }
  .spec-list { grid-template-columns: 1fr; }
  .spec-row { border-right: 0; }
  .spec-row:nth-last-child(-n+2):not(:last-child) { border-bottom: 1px solid var(--border); }
  .roadmap-item { grid-template-columns: 1fr; gap: 0.3rem; }
  .roadmap-item::before { display: none; }
  .roadmap { border-left: 0; padding-left: 0; }
  .compare-card { font-size: 0.78rem; overflow-x: auto; }
  .compare-card table { min-width: 600px; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-mob { display: inline-flex; }
  .nav-login { display: none; }
  .topbanner-text { display: none; }
}

@media (max-width: 560px) {
  :root { --pad-x: 1.25rem; }
  .h-display { font-size: 2rem; }
  .stats-bar { gap: 1.25rem; }
  .stat-v { font-size: 1.2rem; }
  .signup { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
  .early-bird { flex-direction: column; align-items: flex-start; text-align: left; }
  .price-amount { font-size: 2rem; }
  .price-card { padding: 1.5rem 1.25rem; }
}

/* ── Skip link for a11y ─────────────────────────────── */
.skip-link {
  position: absolute; left: -1000px; top: 1rem;
  background: var(--accent); color: #0c0a14;
  padding: 0.5rem 1rem; border-radius: var(--r-md);
  font-weight: 600;
  z-index: 1000;
}
.skip-link:focus { left: 1rem; }
