:root {
  --bg: #0b1220;
  --bg-warm: #0d1424;
  --fg: #e7e5e4;
  --fg-dim: #a8a29e;
  --muted: #6b6960;
  --line: #1f2937;
  --card: #131a2b;
  --accent: #818cf8;
  --accent-strong: #6366f1;
}

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

body {
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 90% 60% at 50% -8%, rgba(99,102,241,0.18), transparent 65%),
    radial-gradient(ellipse 60% 40% at 50% 4%, rgba(129,140,248,0.10), transparent 70%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/><feColorMatrix values='0 0 0 0 0.9  0 0 0 0 0.9  0 0 0 0 0.9  0 0 0 0.06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Top bar */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 40px;
  border-bottom: 1px solid var(--line);
}
.topbar .brand {
  font-family: ui-serif, "Iowan Old Style", "Apple Garamond", Georgia, serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--fg);
  text-decoration: none;
}
.brand-tld {
  color: var(--accent);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  margin-left: 1px;
}
.topbar .sample {
  font-size: 13px;
  color: var(--fg-dim);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color .15s;
}
.topbar .sample:hover { color: var(--accent); }

/* Main */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 72px 24px 24px;
  gap: 120px;
  width: 100%;
}

/* Hero */
.hero {
  max-width: 680px;
  width: 100%;
  text-align: center;
  padding-top: 40px;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 32px;
  font-weight: 500;
}

/* Live status badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px 6px 12px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: linear-gradient(180deg, rgba(99,102,241,0.08), rgba(99,102,241,0.02));
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 36px;
  font-weight: 500;
  backdrop-filter: blur(6px);
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  animation: status-pulse 2.4s ease-in-out infinite;
}
@keyframes status-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45); opacity: 1; }
  50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); opacity: 0.7; }
}
@media (prefers-reduced-motion: reduce) {
  .status-dot { animation: none; }
}

/* Billboard (the compression) */
.billboard {
  max-width: 960px;
  width: 100%;
  text-align: center;
  padding: 64px 24px 56px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 70% 80% at 50% 50%, rgba(99,102,241,0.10), transparent 70%);
  position: relative;
}
.billboard-eyebrow {
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 36px;
  font-weight: 500;
}
.billboard::before,
.billboard::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 80%;
  max-width: 600px;
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(99,102,241,0.4), transparent);
}
.billboard::before { top: -1px; }
.billboard::after { bottom: -1px; }
.billboard-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 6vw, 64px);
  margin-bottom: 28px;
}
.billboard-col { text-align: center; }
.billboard-label {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
  font-weight: 500;
}
.billboard-num {
  font-family: ui-serif, "Iowan Old Style", "Apple Garamond", Georgia, serif;
  font-size: clamp(56px, 9vw, 104px);
  font-weight: 400;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: var(--fg-dim);
}
.billboard-col.emphasized .billboard-num {
  color: var(--fg);
  font-style: italic;
  background: linear-gradient(180deg, var(--fg) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.billboard-arrow {
  font-size: clamp(28px, 4vw, 40px);
  color: var(--accent);
  font-family: ui-serif, Georgia, serif;
  line-height: 1;
  opacity: 0.7;
  margin-top: 12px;
}
.billboard-caption {
  font-size: 14px;
  color: var(--fg-dim);
  letter-spacing: 0.04em;
  font-style: italic;
  font-family: ui-serif, "Iowan Old Style", Georgia, serif;
  margin-top: 36px;
}

/* Ledger comparison table */
.ledger {
  margin: 48px auto 0;
  width: 100%;
  max-width: 720px;
  border-collapse: collapse;
  text-align: left;
  font-size: 14.5px;
}
.ledger thead th {
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
  padding: 0 0 14px 24px;
  border-bottom: 1px solid var(--line);
}
.ledger thead th:first-child {
  padding-left: 0;
  width: 32%;
}
.ledger thead th.ledger-head-pri {
  color: var(--accent);
}
.ledger tbody th {
  font-weight: 500;
  color: var(--fg-dim);
  font-size: 13px;
  padding: 16px 24px 16px 0;
  border-bottom: 1px dashed var(--line);
  text-align: left;
  vertical-align: middle;
}
.ledger tbody td {
  padding: 16px 0 16px 24px;
  color: var(--fg-dim);
  border-bottom: 1px dashed var(--line);
  vertical-align: middle;
}
.ledger tbody td.ledger-pri {
  color: var(--fg);
  font-weight: 500;
  padding-left: 32px;
  position: relative;
  background: linear-gradient(90deg, rgba(99,102,241,0.10), rgba(99,102,241,0.02));
  border-left: 2px solid var(--accent);
}
.ledger tbody tr:last-child th,
.ledger tbody tr:last-child td {
  border-bottom: none;
}

h1 {
  font-family: ui-serif, "Iowan Old Style", "Apple Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
}
h1 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}

.sub {
  color: var(--fg-dim);
  font-size: 17px;
  line-height: 1.55;
  max-width: 520px;
  margin: 0 auto 48px;
}

/* Chat demo */
.chat-demo {
  max-width: 380px;
  margin: 0 auto 36px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 18px 20px;
  background: rgba(99, 102, 241, 0.04);
  border: 1px dashed var(--line);
  border-radius: 14px;
  text-align: left;
}
.chat-bubble {
  padding: 9px 14px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.4;
  max-width: 85%;
}
.chat-bubble.you {
  align-self: flex-end;
  background: var(--accent-strong);
  color: white;
  border-bottom-right-radius: 4px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  font-weight: 500;
}
.chat-bubble.bot {
  align-self: flex-start;
  background: var(--card);
  color: var(--fg);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
}
.chat-link { color: var(--accent); }
.chat-arrow { color: var(--fg-dim); margin: 0 2px; }

/* Form */
.waitlist { max-width: 480px; margin: 0 auto; }
.row { display: flex; gap: 10px; margin-bottom: 10px; }
.row.single { margin-bottom: 0; }
.row input {
  flex: 1;
  padding: 13px 16px;
  background: var(--card);
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color .15s, background-color .15s;
  min-width: 0;
}
.row input:focus {
  outline: none;
  border-color: var(--accent-strong);
  background: var(--bg-warm);
}
.row input::placeholder { color: var(--muted); }

button {
  padding: 13px 22px;
  background: var(--accent-strong);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: background-color .15s;
}
button:hover { background: var(--accent); }

.fine {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  margin: 18px 0 0;
}

/* Team block */
.team {
  max-width: 520px;
  width: 100%;
  border-top: 1px solid var(--line);
  padding-top: 40px;
}
.team-title {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
  text-align: center;
}
.team dl {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}
.team dl > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 8px 0;
  gap: 24px;
  border-bottom: 1px dashed var(--line);
}
.team dl > div:last-child { border-bottom: none; }
.team dt {
  font-family: ui-serif, "Iowan Old Style", Georgia, serif;
  font-size: 17px;
  font-weight: 400;
  color: var(--fg);
  letter-spacing: 0.01em;
}
.team dd {
  margin: 0;
  color: var(--fg-dim);
  font-size: 14px;
}

/* Footer */
footer {
  text-align: center;
  padding: 32px 24px 40px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
}

/* Thanks page */
.hero-confirm h1 { font-size: clamp(36px, 5vw, 52px); }
.hero-confirm .sub { margin-bottom: 0; }

.samples {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin: 40px auto 0;
  max-width: 720px;
  text-align: left;
}
.sample-card {
  display: block;
  padding: 18px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--fg);
  text-decoration: none;
  transition: border-color .15s, background-color .15s, transform .15s;
}
.sample-card:hover {
  border-color: var(--accent-strong);
  background: var(--bg-warm);
  transform: translateY(-1px);
}
.sample-ticker {
  font-family: ui-serif, "Iowan Old Style", "Apple Garamond", Georgia, serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--fg);
}
.sample-name {
  color: var(--fg-dim);
  font-size: 14px;
  margin-top: 4px;
}
.sample-meta {
  color: var(--muted);
  font-size: 12px;
  margin-top: 10px;
  letter-spacing: 0.02em;
}

/* Sections */
.section {
  max-width: 960px;
  width: 100%;
  padding: 0 8px;
}
.section-label {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  margin-bottom: 18px;
  font-weight: 500;
}
h2 {
  font-family: ui-serif, "Iowan Old Style", "Apple Garamond", Georgia, serif;
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-align: center;
  margin: 0 auto 56px;
  max-width: 720px;
  color: var(--fg);
}

/* Deliverable grid */
.grid-cells {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.cell {
  background: var(--bg);
  padding: 28px 26px 30px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
}
.cell-num {
  font-family: ui-serif, Georgia, serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 14px;
}
.cell-title {
  font-family: ui-serif, "Iowan Old Style", Georgia, serif;
  font-size: 19px;
  font-weight: 400;
  color: var(--fg);
  margin-bottom: 10px;
  letter-spacing: -0.005em;
}
.cell-body {
  color: var(--fg-dim);
  font-size: 14.5px;
  line-height: 1.6;
}

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px 24px 30px;
  position: relative;
}
.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-variant-numeric: tabular-nums;
}
.step-head {
  font-family: ui-serif, "Iowan Old Style", Georgia, serif;
  font-size: 18px;
  color: var(--fg);
  margin-bottom: 8px;
}
.step-body {
  color: var(--fg-dim);
  font-size: 14.5px;
  line-height: 1.6;
}

/* Outputs (deck vs deep report) */
.outputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.output {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 32px 32px 30px;
  display: flex;
  flex-direction: column;
}
.output-kicker {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  font-weight: 500;
}
.output-name {
  font-family: ui-serif, "Iowan Old Style", Georgia, serif;
  font-size: 26px;
  color: var(--fg);
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.output-desc {
  color: var(--fg-dim);
  font-size: 14.5px;
  line-height: 1.6;
  margin-bottom: 22px;
}
.output-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: output-item;
}
.output-list li {
  color: var(--fg);
  font-size: 14.5px;
  padding: 10px 0 10px 34px;
  position: relative;
  border-bottom: 1px dashed var(--line);
  line-height: 1.5;
}
.output-list li:last-child { border-bottom: none; }
.output-list:not(.output-list-dash) li::before {
  counter-increment: output-item;
  content: counter(output-item, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 12px;
  color: var(--accent);
  font-family: ui-serif, Georgia, serif;
  font-size: 12px;
  letter-spacing: 0.08em;
}
.output-list.output-list-dash li {
  padding-left: 20px;
}
.output-list.output-list-dash li::before {
  content: "—";
  position: absolute;
  left: 0;
  top: 10px;
  color: var(--accent);
}

/* Markets */
.markets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.markets.markets-three {
  grid-template-columns: repeat(3, 1fr);
}
.market {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 32px 32px 28px;
}
.market-name {
  font-family: ui-serif, "Iowan Old Style", Georgia, serif;
  font-size: 24px;
  color: var(--fg);
  letter-spacing: -0.01em;
}
.market-subs {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 4px;
  margin-bottom: 22px;
  font-weight: 500;
}
.market-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.market-list li {
  color: var(--fg-dim);
  font-size: 14.5px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
}
.market-list li:last-child { border-bottom: none; }
.market-list li::before {
  content: "›";
  color: var(--accent);
  margin-right: 10px;
  font-weight: 500;
}

/* Sample section overrides default .samples top-margin (used on thanks page) */
.section .samples {
  margin-top: 0;
  max-width: none;
}

/* CTA */
.cta {
  max-width: 560px;
  width: 100%;
  text-align: center;
  padding: 56px 24px 8px;
  border-top: 1px solid var(--line);
}
.cta-head {
  font-family: ui-serif, "Iowan Old Style", Georgia, serif;
  font-size: clamp(28px, 3.6vw, 36px);
  font-weight: 400;
  letter-spacing: -0.015em;
  margin: 0 0 14px;
  color: var(--fg);
}
.cta .sub { margin-bottom: 28px; font-size: 15.5px; }
.cta .waitlist { max-width: 460px; }

/* Footer */
footer .foot-sub {
  margin-top: 4px;
  color: var(--muted);
  opacity: 0.75;
}

/* Responsive */
@media (max-width: 860px) {
  .grid-cells { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .markets, .markets.markets-three { grid-template-columns: 1fr; }
  .outputs { grid-template-columns: 1fr; }
  .ledger { font-size: 13px; }
  .ledger thead th { font-size: 9.5px; letter-spacing: 0.18em; }
  .ledger tbody th { font-size: 11.5px; padding-right: 12px; }
  .ledger tbody td { padding-left: 12px; }
  .ledger tbody td.ledger-pri { padding-left: 16px; }
}
@media (max-width: 580px) {
  .topbar { padding: 18px 22px; }
  main { padding: 48px 20px 24px; gap: 80px; }
  .hero { padding-top: 16px; }
  .row { flex-direction: column; }
  button { width: 100%; }
  .samples { grid-template-columns: 1fr; }
  .grid-cells { grid-template-columns: 1fr; }
  h2 { margin-bottom: 40px; }
  .market { padding: 24px 22px; }
  .cell { padding: 24px 22px 26px; min-height: 0; }
}
