/* NumNum landing — dark mode tokens */
:root {
  --bg: #0A0A0F;
  --bg-2: #14141C;
  --surface: rgba(255,255,255,0.04);
  --surface-2: rgba(255,255,255,0.06);
  --surface-hi: rgba(255,255,255,0.08);
  --border: rgba(255,255,255,0.08);
  --border-hi: rgba(255,255,255,0.14);
  --ink: #F3F1F7;
  --muted: rgba(243,241,247,0.6);
  --muted-2: rgba(243,241,247,0.42);

  --magenta: #E84C9A;        /* true magenta, dark-mode readable */
  --magenta-soft: #F2A5CB;
  --magenta-glow: rgba(232,76,154,0.35);
  --blue: #A8CDEF;           /* light blue */
  --purple: #C7B8E8;         /* light purple */
  --navy: #5A8FD8;

  /* legacy aliases -> magenta */
  --pink: var(--magenta);
  --pink-soft: var(--magenta-soft);

  --accent: var(--magenta);
  --accent-2: var(--blue);

  --radius-sm: 7px;
  --radius: 12px;
  --radius-lg: 18px;

  --shadow-card: 0 8px 32px rgba(0,0,0,0.35), 0 1px 0 rgba(255,255,255,0.04) inset;
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.5), 0 1px 0 rgba(255,255,255,0.05) inset;
  --glow-pink: 0 0 60px rgba(248,182,209,0.18);
  --glow-blue: 0 0 80px rgba(168,205,239,0.15);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Poppins", ui-sans-serif, system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Diamond gradient blobs matching figma polygons */
body::before, body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
  opacity: 0.5;
}
body::before {
  width: 800px; height: 800px;
  top: -300px; left: -200px;
  background: radial-gradient(circle, var(--magenta) 0%, transparent 60%);
  opacity: 0.35;
}
body::after {
  width: 900px; height: 900px;
  top: -200px; right: -300px;
  background: radial-gradient(circle, var(--blue) 0%, transparent 60%);
}
.bg-purple-blob {
  position: fixed; z-index: 0; pointer-events: none;
  width: 700px; height: 700px;
  bottom: -300px; left: 30%;
  background: radial-gradient(circle, var(--purple) 0%, transparent 60%);
  filter: blur(100px);
  opacity: 0.3;
}

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

.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 1; }

/* ─── Nav ─── */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(10,10,15,0.65);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; color: var(--ink); }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, rgba(232,76,154,0.18), rgba(168,205,239,0.18));
  border: 1px solid var(--border-hi);
  box-shadow: 0 2px 8px rgba(232,76,154,0.25);
  flex-shrink: 0;
  display: grid; place-items: center;
  color: var(--magenta);
}
.brand-mark svg { width: 20px; height: 20px; }
.nav-links { display: flex; gap: 28px; align-items: center; font-size: 14px; color: var(--muted); font-weight: 500; }
.nav-links a:hover { color: var(--magenta); }
.nav-cta { display: flex; gap: 10px; align-items: center; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600; font-size: 14px;
  border: 0; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s;
  white-space: nowrap;
  font-family: inherit;
}
.btn-primary {
  background: linear-gradient(135deg, var(--magenta) 0%, var(--purple) 100%);
  color: #12060B;
  box-shadow: 0 4px 16px var(--magenta-glow), 0 1px 0 rgba(255,255,255,0.3) inset;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 28px var(--magenta-glow), 0 1px 0 rgba(255,255,255,0.3) inset; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--surface); }
.btn-outline { background: var(--surface); color: var(--ink); border: 1px solid var(--border-hi); }
.btn-outline:hover { background: var(--surface-2); border-color: var(--magenta); }
.btn-lg { padding: 14px 24px; font-size: 15px; }

/* ─── Hero ─── */
.hero { padding: 72px 0 96px; position: relative; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--border-hi);
  border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--magenta);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: #6DFFA5; box-shadow: 0 0 10px #6DFFA5; }

h1.hero-title {
  margin: 20px 0 18px;
  font-size: clamp(40px, 5.2vw, 68px);
  line-height: 1.02;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.025em;
  text-wrap: balance;
}
h1.hero-title .accent {
  background: linear-gradient(120deg, var(--magenta) 0%, var(--purple) 50%, var(--blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: 18px; color: var(--muted); max-width: 540px;
  text-wrap: pretty;
}
.hero-ctas { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero-note { margin-top: 14px; font-size: 13px; color: var(--muted-2); }
.hero-note strong { color: var(--magenta); font-weight: 600; }

.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: 40px; padding-top: 32px;
  border-top: 1px solid var(--border);
  max-width: 520px;
}
.hero-stats .stat-num { font-weight: 700; font-size: 24px; color: var(--ink); letter-spacing: -0.02em; }
.hero-stats .stat-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }

/* ─── Portal preview (hero) ─── */
.portal-preview {
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid var(--border-hi);
  padding: 18px;
  box-shadow: var(--shadow-lg), 0 0 60px var(--magenta-glow);
  overflow: hidden;
}
.portal-preview::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at top right, rgba(168,205,239,0.12) 0%, transparent 50%),
              radial-gradient(ellipse at bottom left, rgba(232,76,154,0.12) 0%, transparent 50%);
  pointer-events: none;
}
.portal-chrome {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
  position: relative;
}
.portal-dots { display: flex; gap: 6px; }
.portal-dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.2); }
.portal-url {
  flex: 1; background: var(--surface); border-radius: 6px;
  padding: 5px 10px; font-size: 11px; color: var(--muted);
  font-family: ui-monospace, Menlo, monospace; text-align: center;
  border: 1px solid var(--border);
}

.portal-body {
  background: var(--bg-2);
  border-radius: 10px;
  padding: 18px;
  position: relative;
  border: 1px solid var(--border);
}
.portal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.portal-header .pp-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; color: var(--ink); }
.portal-header .pp-brand .bm {
  width: 22px; height: 22px; border-radius: 6px;
  background: linear-gradient(135deg, rgba(232,76,154,0.2), rgba(168,205,239,0.2));
  border: 1px solid var(--border);
  display: grid; place-items: center;
  color: var(--magenta);
}
.portal-header .pp-brand .bm svg { width: 14px; height: 14px; }
.portal-search {
  flex: 1; max-width: 200px; margin: 0 16px;
  background: var(--surface); border-radius: 6px;
  padding: 5px 10px; font-size: 11px; color: var(--muted-2);
  border: 1px solid var(--border);
  font-family: ui-monospace, Menlo, monospace;
}
.portal-right { display: flex; gap: 10px; align-items: center; font-size: 11px; color: var(--muted); }
.portal-right .bal { color: var(--magenta); font-weight: 600; }

.portal-tabs {
  display: flex; gap: 14px;
  font-size: 11px; color: var(--muted);
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}
.portal-tabs span { padding: 4px 0; }
.portal-tabs .active { color: var(--magenta); border-bottom: 1px solid var(--magenta); margin-bottom: -1px; }

.portal-title { font-size: 12px; font-weight: 700; color: var(--ink); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.06em; }

.lookup-input-row {
  display: flex; gap: 8px; align-items: center;
  background: var(--surface); padding: 4px 4px 4px 12px;
  border-radius: 8px; border: 1.5px solid transparent;
  transition: border-color .15s, background .15s;
}
.lookup-input-row:focus-within { border-color: var(--magenta); background: var(--surface-2); }
.lookup-input-row .px { color: var(--muted); font-size: 12px; font-family: ui-monospace, Menlo, monospace; }
.lookup-input-row input {
  flex: 1; border: 0; background: transparent; outline: none;
  font-family: inherit; font-size: 13px; color: var(--ink);
  padding: 7px 0;
}
.lookup-btn {
  padding: 7px 14px; border-radius: 6px; border: 0;
  background: linear-gradient(135deg, var(--magenta), var(--purple));
  color: #12060B; font-weight: 700; font-size: 11px;
  letter-spacing: 0.04em; text-transform: uppercase;
  font-family: inherit;
}
.lookup-btn:disabled { opacity: 0.5; cursor: default; }

.lookup-result {
  margin-top: 12px; min-height: 110px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  font-size: 11px;
  display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start;
}
.lookup-result.empty, .lookup-result.loading { align-items: center; justify-content: center; }
.lookup-result.loading .spinner {
  width: 24px; height: 24px; border-radius: 50%;
  border: 2.5px solid rgba(232,76,154,0.2);
  border-top-color: var(--magenta);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.lookup-result .result-head,
.lookup-result .result-sections { animation: fadeIn .3s ease; }

.result-head {
  width: 100%;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 0 0 10px; margin-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.rh-num { font-family: ui-monospace, Menlo, monospace; font-size: 15px; color: var(--ink); font-weight: 600; letter-spacing: 0.01em; }
.rh-name { font-size: 11px; color: var(--muted); margin-top: 3px; font-weight: 500; }
.rh-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.cache-pill, .cost-pill {
  font-size: 9px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 3px 7px; border-radius: 999px;
  font-family: ui-monospace, Menlo, monospace;
}
.cache-pill.hit { background: rgba(109,255,165,0.12); color: #6DFFA5; border: 1px solid rgba(109,255,165,0.3); }
.cache-pill.miss { background: rgba(232,76,154,0.12); color: var(--magenta); border: 1px solid rgba(232,76,154,0.3); }
.cost-pill { background: rgba(95,135,255,0.12); color: var(--blue); border: 1px solid rgba(95,135,255,0.3); }

.result-sections {
  width: 100%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.rs-block {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 9px 11px;
}
.rs-wide { grid-column: span 2; }
.rs-title {
  font-size: 9px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 6px;
}
.rs-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 3px 0;
  font-size: 11px;
}
.rs-row + .rs-row { border-top: 1px dashed rgba(255,255,255,0.06); }
.rs-row .k { color: var(--muted-2); font-weight: 500; }
.rs-row .v { color: var(--ink); font-weight: 600; text-align: right; }
.rs-row .v.mono { font-family: ui-monospace, Menlo, monospace; font-weight: 500; }
.port-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 5px; vertical-align: 1px; }
.port-dot.ported { background: var(--magenta); box-shadow: 0 0 6px var(--magenta); }
.port-dot.native { background: #6DFFA5; box-shadow: 0 0 6px #6DFFA5; }

.lookup-presets { margin-top: 10px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.lookup-presets .label { font-size: 9px; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.lookup-presets button {
  background: transparent; border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 8px; font-size: 10px;
  color: var(--muted); font-family: ui-monospace, Menlo, monospace;
}
.lookup-presets button:hover { border-color: var(--magenta); color: var(--ink); }

/* ─── Sections ─── */
section { padding: 96px 0; position: relative; z-index: 1; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head h2 {
  font-size: clamp(32px, 3.6vw, 46px);
  line-height: 1.1; color: var(--ink); letter-spacing: -0.02em;
  margin: 0 0 14px; font-weight: 700; text-wrap: balance;
}
.section-head p { font-size: 17px; color: var(--muted); margin: 0; text-wrap: pretty; }

/* ─── Portal showcase ─── */
.portal-showcase {
  display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: center;
}
.portal-showcase-copy h3 { font-size: 28px; color: var(--ink); margin: 12px 0 14px; letter-spacing: -0.02em; font-weight: 700; }
.portal-showcase-copy p { color: var(--muted); font-size: 16px; margin: 0 0 20px; }
.portal-showcase-copy ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.portal-showcase-copy li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink); }
.portal-showcase-copy li svg { color: var(--magenta); flex-shrink: 0; margin-top: 3px; }
.portal-showcase-copy li span.mut { color: var(--muted); }

.dash-mock {
  background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-lg), var(--glow-blue);
}
.dash-mock-inner {
  background: var(--bg-2); border-radius: 10px; padding: 14px;
  border: 1px solid var(--border);
}
.dash-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 12px; }
.dash-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 6px; padding: 10px;
}
.dash-card .k { font-size: 9px; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; margin-bottom: 4px; }
.dash-card .v { font-size: 16px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.dash-card.accent .v { color: var(--magenta); }
.dash-card.accent2 .v { color: var(--blue); }

.dash-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dash-chart {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 6px; padding: 12px;
  height: 130px; position: relative; overflow: hidden;
}
.dash-chart .ct { font-size: 10px; color: var(--muted); margin-bottom: 8px; font-weight: 600; }
.bars { display: flex; align-items: flex-end; gap: 2px; height: 80px; }
.bars span {
  flex: 1; background: linear-gradient(180deg, var(--blue), rgba(168,205,239,0.4));
  border-radius: 1px;
  min-height: 4px;
  transition: all .3s;
}
.spark { display: flex; align-items: flex-end; height: 80px; gap: 1px; }
.spark span {
  flex: 1; background: linear-gradient(180deg, var(--magenta), rgba(232,76,154,0.3));
  border-radius: 1px; min-height: 2px;
}

/* ─── Features ─── */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.feature {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
  position: relative;
  overflow: hidden;
}
.feature:hover {
  transform: translateY(-3px);
  border-color: var(--border-hi);
  background: var(--surface-2);
}
.feature-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(232,76,154,0.18), rgba(168,205,239,0.18));
  color: var(--magenta);
  margin-bottom: 16px;
  border: 1px solid var(--border);
}
.feature h3 { margin: 0 0 8px; font-size: 16px; color: var(--ink); font-weight: 600; }
.feature p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.6; }

.feature.wide { grid-column: span 2; }

/* ─── How it works ─── */
.how-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.how-steps { display: grid; gap: 20px; }
.step { display: flex; gap: 16px; align-items: flex-start; }
.step-num {
  width: 32px; height: 32px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border-hi);
  color: var(--muted);
  display: grid; place-items: center;
  font-weight: 700; font-size: 13px;
}
.step-num.active {
  background: linear-gradient(135deg, var(--magenta), var(--purple));
  color: #12060B; border-color: transparent;
  box-shadow: 0 0 20px var(--magenta-glow);
}
.step h4 { margin: 4px 0 4px; font-size: 16px; color: var(--ink); font-weight: 600; }
.step p { margin: 0; font-size: 14px; color: var(--muted); }

.code-block {
  background: #07070B;
  color: #E6ECF7;
  border-radius: var(--radius);
  padding: 22px 24px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 13px; line-height: 1.7;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.code-block::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 32px;
  background: rgba(255,255,255,0.03); border-bottom: 1px solid rgba(255,255,255,0.06);
}
.code-block .code-dots { position: absolute; top: 11px; left: 16px; display: flex; gap: 6px; }
.code-block .code-dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.18); }
.code-tabs { position: absolute; top: 7px; left: 72px; display: flex; gap: 4px; }
.code-tab { padding: 3px 10px; border-radius: 4px; font-size: 11px; color: rgba(230,236,247,0.45); background: transparent; border: 0; font-family: inherit; }
.code-tab.active { color: #E6ECF7; background: rgba(255,255,255,0.08); }
.code-content { margin-top: 26px; white-space: pre; overflow-x: auto; }
.code-content .comment { color: #6A7A99; }
.code-content .keyword { color: var(--magenta); }
.code-content .string { color: var(--blue); }
.code-content .fn { color: #FFD479; }
.code-content .num { color: #A2F5B0; }

/* ─── Stats band ─── */
.stats-band {
  background: linear-gradient(120deg, rgba(232,76,154,0.12) 0%, rgba(199,184,232,0.1) 50%, rgba(168,205,239,0.12) 100%);
  border-radius: var(--radius-lg);
  padding: 40px;
  color: var(--ink);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  border: 1px solid var(--border-hi);
  box-shadow: var(--shadow-lg);
}
.stats-band .stat-num {
  font-size: 42px; font-weight: 700; letter-spacing: -0.02em; line-height: 1;
  margin-bottom: 6px;
  background: linear-gradient(135deg, var(--magenta), var(--blue));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stats-band .stat-label { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.stats-band .stat-sub { font-size: 12px; color: var(--muted-2); margin-top: 4px; }

/* ─── Pricing ─── */
.pricing-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  max-width: 840px; margin: 0 auto;
}
.plan {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  position: relative;
  display: flex; flex-direction: column;
}
.plan.featured {
  background: linear-gradient(180deg, rgba(232,76,154,0.1), rgba(168,205,239,0.05));
  border: 1px solid rgba(232,76,154,0.4);
  box-shadow: var(--shadow-lg), 0 0 60px var(--magenta-glow);
  z-index: 2;
}
.plan-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--magenta), var(--purple));
  color: #12060B; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 5px 12px; border-radius: 999px;
  z-index: 3; white-space: nowrap;
  box-shadow: 0 4px 12px var(--magenta-glow);
}
.plan-name { font-size: 13px; color: var(--magenta); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.plan-price { margin: 14px 0 4px; display: flex; align-items: baseline; gap: 4px; color: var(--ink); }
.plan-price .num { font-size: 48px; font-weight: 700; letter-spacing: -0.02em; }
.plan-price .unit { font-size: 14px; color: var(--muted); font-weight: 500; }
.plan-desc { font-size: 13px; color: var(--muted); margin-bottom: 22px; min-height: 38px; }
.plan-features { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; flex: 1; }
.plan-features li { font-size: 14px; color: var(--ink); display: flex; align-items: flex-start; gap: 10px; }
.plan-features svg { flex-shrink: 0; margin-top: 3px; color: var(--magenta); }
.plan-features li.muted { color: var(--muted); }
.plan-features li.muted svg { color: var(--muted-2); }
.plan .btn { width: 100%; }

/* Pricing per-lookup table */
.rate-card {
  max-width: 840px; margin: 40px auto 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.rate-card h4 {
  margin: 0; padding: 18px 24px;
  font-size: 14px; color: var(--ink); font-weight: 600;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
}
.rate-card h4 .tag {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--magenta);
  background: rgba(232,76,154,0.12);
  border: 1px solid rgba(232,76,154,0.3);
  padding: 3px 8px; border-radius: 999px;
}
.rate-rows { padding: 8px 0; }
.rate-row {
  display: grid; grid-template-columns: 1fr auto auto;
  gap: 16px; align-items: center;
  padding: 12px 24px;
  font-size: 14px;
}
.rate-row + .rate-row { border-top: 1px solid var(--border); }
.rate-row .lbl { color: var(--ink); font-weight: 500; }
.rate-row .sub { font-size: 12px; color: var(--muted-2); font-weight: 400; margin-top: 2px; }
.rate-row .prc { font-family: ui-monospace, Menlo, monospace; color: var(--ink); font-weight: 600; }
.rate-row .prc.hit { color: #6DFFA5; }
.rate-row .prc.free { color: var(--magenta); }
.rate-row .cache-tag {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 3px 8px; border-radius: 4px;
}
.rate-row .cache-tag.l1 { background: rgba(109,255,165,0.1); color: #6DFFA5; border: 1px solid rgba(109,255,165,0.25); }
.rate-row .cache-tag.l2 { background: rgba(168,205,239,0.1); color: var(--blue); border: 1px solid rgba(168,205,239,0.25); }
.rate-row .cache-tag.miss { background: rgba(232,76,154,0.12); color: var(--magenta); border: 1px solid rgba(232,76,154,0.3); }

/* ─── FAQ ─── */
.faq { max-width: 780px; margin: 0 auto; }
.faq details {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px 24px;
  border: 1px solid var(--border);
  margin-bottom: 12px;
  transition: border-color .2s, background .2s;
}
.faq details[open] { border-color: var(--border-hi); background: var(--surface-2); }
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 600; color: var(--ink); font-size: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { color: var(--magenta); transition: transform .2s; }
.faq details[open] summary .chev { transform: rotate(180deg); }
.faq details p { margin: 12px 0 0; font-size: 14px; color: var(--muted); line-height: 1.65; }

/* ─── Big CTA ─── */
.big-cta {
  background: linear-gradient(135deg, rgba(232,76,154,0.1), rgba(168,205,239,0.08));
  border: 1px solid var(--border-hi);
  border-radius: 24px;
  padding: 64px 48px;
  text-align: center;
  box-shadow: var(--shadow-lg), 0 0 60px var(--magenta-glow);
  position: relative;
  overflow: hidden;
}
.big-cta::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(232,76,154,0.15) 0%, transparent 50%),
              radial-gradient(circle at 80% 70%, rgba(168,205,239,0.15) 0%, transparent 50%);
  pointer-events: none;
}
.big-cta > * { position: relative; }
.big-cta h2 { font-size: clamp(32px, 3.4vw, 44px); color: var(--ink); margin: 0 0 12px; letter-spacing: -0.02em; font-weight: 700; }
.big-cta p { font-size: 17px; color: var(--muted); margin: 0 0 28px; }
.big-cta .cta-bear {
  width: 68px; height: 68px;
  margin: 0 auto 20px;
  display: grid; place-items: center;
  color: var(--magenta);
  filter: drop-shadow(0 8px 20px var(--magenta-glow));
}
.big-cta .cta-bear svg { width: 100%; height: 100%; }

/* ─── Footer ─── */
footer {
  padding: 48px 0 40px;
  border-top: 1px solid var(--border);
  margin-top: 80px;
  font-size: 13px; color: var(--muted);
  position: relative; z-index: 1;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-grid h5 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink); margin: 0 0 14px; font-weight: 700; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid a:hover { color: var(--magenta); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid var(--border); }

/* ─── Tweaks ─── */
.tweaks-panel {
  position: fixed; bottom: 20px; right: 20px; z-index: 100;
  width: 280px;
  background: var(--bg-2);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  border: 1px solid var(--border-hi);
  padding: 18px;
  font-size: 13px;
  display: none;
}
.tweaks-panel.open { display: block; }
.tweaks-panel h4 { margin: 0 0 14px; font-size: 14px; color: var(--ink); font-weight: 700; }
.tweaks-panel .tweak { display: grid; gap: 6px; margin-bottom: 14px; }
.tweaks-panel label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.tweaks-panel .seg { display: flex; gap: 4px; background: var(--surface); border-radius: 8px; padding: 3px; border: 1px solid var(--border); }
.tweaks-panel .seg button {
  flex: 1; border: 0; background: transparent; padding: 6px 8px;
  border-radius: 6px; font-size: 12px; color: var(--muted); font-weight: 600;
  font-family: inherit;
}
.tweaks-panel .seg button.active { background: var(--surface-hi); color: var(--ink); }

/* Accent variant */
body[data-accent="blue"] h1.hero-title .accent {
  background: linear-gradient(120deg, var(--blue) 0%, var(--purple) 50%, var(--magenta) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
body[data-accent="blue"] .btn-primary {
  background: linear-gradient(135deg, var(--blue) 0%, var(--purple) 100%);
}

/* Density */
body[data-density="compact"] section { padding: 64px 0; }
body[data-density="compact"] .hero { padding: 48px 0 56px; }

/* Hero variant */
body[data-hero="code"] .portal-preview { display: none; }
body[data-hero="code"] .hero-code { display: block; }
.hero-code { display: none; }

/* ─── Responsive ─── */
@media (max-width: 980px) {
  .hero-grid, .how-grid, .portal-showcase { grid-template-columns: 1fr; gap: 40px; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .feature.wide { grid-column: span 2; }
  .pricing-grid { grid-template-columns: 1fr; gap: 32px; }
  .plan.featured { margin-top: 8px; }
  .stats-band { grid-template-columns: 1fr 1fr; padding: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .dash-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .container { padding: 0 20px; }
  .features-grid { grid-template-columns: 1fr; }
  .feature.wide { grid-column: span 1; }
  .stats-band { grid-template-columns: 1fr 1fr; gap: 20px; padding: 24px; }
  .stats-band .stat-num { font-size: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; }
  section { padding: 60px 0; }
  .big-cta { padding: 40px 24px; }
  .rate-row { grid-template-columns: 1fr auto; }
  .rate-row .cache-tag { display: none; }
}
