:root {
  --bg: #020806;
  --bg-soft: #06130d;
  --panel: rgba(8, 27, 18, 0.92);
  --panel-strong: rgba(12, 34, 24, 0.96);
  --line: rgba(216, 173, 85, 0.34);
  --line-soft: rgba(216, 173, 85, 0.18);
  --gold: #d8ad55;
  --gold-bright: #ffd36f;
  --text: #f8f1df;
  --muted: #bbb5a7;
  --green: #a9c58c;
  --red: #ffb199;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.46);
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 78% 8%, rgba(216, 173, 85, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(2, 8, 6, 0.22), #020806 72%),
    url("assets/topography-hero.png") center top / cover no-repeat;
  opacity: 0.78;
}

a { color: inherit; }

.site-shell {
  position: relative;
  z-index: 1;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 22px;
  background: rgba(2, 8, 6, 0.76);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand strong {
  display: block;
  font: 700 20px Georgia, serif;
  letter-spacing: 0;
}

.brand small {
  display: block;
  max-width: 420px;
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
}

.nav nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav nav a,
.nav-cta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-cta {
  color: var(--gold-bright);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 15px;
  white-space: nowrap;
}

.hero,
.market-types,
.live-demo,
.tools-section,
.audience-section,
.source-section,
.faq-cta,
footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 76px 22px;
}

.hero {
  min-height: 720px;
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(420px, 0.86fr);
  align-items: center;
  gap: 54px;
  padding-top: 58px;
  padding-bottom: 58px;
}

.scope-line {
  margin: 0 0 18px;
  color: var(--gold-bright);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0 0 20px;
  font: 800 clamp(42px, 4.35vw, 58px) / 0.98 Georgia, serif;
  letter-spacing: 0;
}

.lead {
  max-width: 690px;
  margin: 0 0 24px;
  color: #e1dac9;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 8px;
  padding: 0 18px;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.primary-action {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #102015;
}

.secondary-action {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(8, 27, 18, 0.66);
}

.waitlist-form {
  display: grid;
  grid-template-columns: 1.05fr 0.75fr auto;
  max-width: 820px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(8, 27, 18, 0.9);
  box-shadow: var(--shadow);
}

.waitlist-form.compact {
  margin-top: 4px;
}

.waitlist-form input,
.waitlist-form select {
  min-width: 0;
  border: 0;
  border-right: 1px solid var(--line-soft);
  background: #06130d;
  color: var(--text);
  padding: 17px;
  font: 750 14px Inter, sans-serif;
}

.waitlist-form select { color: var(--muted); }

.waitlist-form button {
  border: 0;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #102015;
  cursor: pointer;
  font: 950 12px Inter, sans-serif;
  letter-spacing: 0.08em;
  padding: 0 20px;
  text-transform: uppercase;
}

.form-status {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0 17px 13px;
  color: var(--green);
  font-weight: 800;
}

.form-status.error { color: var(--red); }

.market-key {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.market-key span {
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(8, 27, 18, 0.68);
  color: var(--green);
  padding: 8px 11px;
  font-size: 12px;
  font-weight: 850;
}

.demo-stack {
  position: relative;
}

.demo-window,
.source-card,
.demo-console,
.tool-card,
.audience-grid article,
.source-section > div,
.faq,
.final-cta {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(12, 34, 24, 0.96), rgba(4, 14, 9, 0.94));
  box-shadow: var(--shadow);
}

.demo-window {
  overflow: hidden;
}

.demo-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 45px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--green);
}

.demo-bar span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--gold);
}

.demo-bar strong {
  margin-left: 8px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.demo-search {
  padding: 22px;
  background: linear-gradient(90deg, rgba(4, 14, 9, 0.96), rgba(4, 14, 9, 0.68)), url("assets/topography-hero.png") center / cover;
}

.demo-search label,
.demo-controls label {
  display: block;
  margin-bottom: 10px;
  color: var(--gold-bright);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.search-row {
  display: flex;
  gap: 8px;
}

.search-row button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 27, 18, 0.8);
  color: var(--muted);
  padding: 10px;
  font-weight: 850;
}

.search-row button.active {
  background: rgba(216, 173, 85, 0.16);
  color: var(--gold-bright);
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 18px;
}

.signal-grid article,
.demo-result {
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: rgba(2, 8, 6, 0.62);
  padding: 15px;
}

small,
.tool-card span,
.type-grid span {
  color: var(--green);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.signal-grid strong {
  display: block;
  margin: 7px 0 3px;
  font: 700 18px Georgia, serif;
}

.signal-grid span,
.source-card span,
.demo-result p,
.section-heading p,
.type-grid p,
.tools-layout p,
.audience-grid p,
.source-section p,
.faq p,
footer p {
  color: var(--muted);
}

.demo-result {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin: 0 18px 18px;
}

.demo-result h3 {
  margin: 6px 0 6px;
  font: 750 24px Georgia, serif;
}

.demo-result b {
  align-self: start;
  border-radius: 8px;
  background: rgba(216, 173, 85, 0.14);
  color: var(--gold-bright);
  padding: 7px 9px;
  font-size: 11px;
  text-transform: uppercase;
}

.source-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 88%;
  margin: -18px auto 0;
  padding: 16px;
}

.source-card img {
  width: 70px;
  flex: 0 0 auto;
}

.source-card strong {
  display: block;
  margin-bottom: 4px;
  font: 700 18px Georgia, serif;
}

.section-heading {
  max-width: 800px;
  margin: 0 auto 36px;
  text-align: center;
}

.section-heading.left {
  margin-left: 0;
  text-align: left;
}

.section-heading h2,
.source-section h2,
.faq h2,
.final-cta h2 {
  margin: 0 0 14px;
  font: 800 clamp(32px, 4vw, 50px) / 1.04 Georgia, serif;
}

.type-grid,
.tools-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.type-grid article {
  min-height: 210px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(8, 27, 18, 0.82);
  padding: 24px;
}

.type-grid h3,
.tool-card h3,
.audience-grid h3,
.output-header h3 {
  margin: 10px 0 8px;
  font: 750 23px Georgia, serif;
}

.live-demo {
  padding-top: 40px;
}

.demo-console {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  overflow: hidden;
}

.demo-controls {
  border-right: 1px solid var(--line-soft);
  padding: 24px;
  background: rgba(2, 8, 6, 0.36);
}

.demo-controls select {
  width: 100%;
  margin: 0 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #06130d;
  color: var(--text);
  padding: 13px;
  font: 800 14px Inter, sans-serif;
}

.demo-output {
  padding: 30px;
  background: linear-gradient(90deg, rgba(4, 14, 9, 0.86), rgba(4, 14, 9, 0.62)), url("assets/topography-hero.png") center / cover;
}

.output-header h3 {
  max-width: 760px;
  font-size: clamp(28px, 3.4vw, 42px);
}

.output-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 24px 0;
}

.output-metrics strong {
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: rgba(2, 8, 6, 0.62);
  padding: 18px;
}

.output-metrics b {
  display: block;
  color: var(--gold-bright);
  font-size: 28px;
  line-height: 1;
}

.output-metrics span {
  color: var(--muted);
  font-size: 12px;
}

.output-next {
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: rgba(2, 8, 6, 0.64);
  padding: 20px;
}

.output-next h4 {
  margin: 0 0 10px;
  color: var(--gold-bright);
}

.output-next ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 20px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.tool-card,
.audience-grid article,
.faq,
.final-cta {
  padding: 24px;
  box-shadow: none;
}

.tool-card.active {
  border-color: rgba(255, 211, 111, 0.48);
}

.tool-card.planned {
  border-style: dashed;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.source-section {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}

.source-section > div {
  padding: 32px;
}

.source-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 24px;
}

.source-metrics strong {
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 17px;
  background: rgba(2, 8, 6, 0.42);
}

.source-metrics b {
  display: block;
  color: var(--gold-bright);
  font-size: 24px;
}

.source-metrics span {
  color: var(--muted);
  font-size: 12px;
}

.quote-card p {
  font: 700 26px / 1.25 Georgia, serif;
  color: var(--text);
}

.quote-card span { color: var(--gold); }

.faq-cta {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 26px;
}

.faq details {
  border-top: 1px solid var(--line-soft);
  padding: 16px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 900;
}

.final-cta {
  background: linear-gradient(90deg, rgba(8, 27, 18, 0.96), rgba(8, 27, 18, 0.72)), url("assets/topography-hero.png") center / cover;
}

.final-cta img {
  width: 92px;
}

.waitlist-form.stacked {
  grid-template-columns: 1fr 0.8fr auto;
  box-shadow: none;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line-soft);
  padding-top: 34px;
  padding-bottom: 34px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1020px) {
  .nav nav { display: none; }

  .hero,
  .source-section,
  .faq-cta {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 58px;
  }

  .type-grid,
  .tools-layout,
  .audience-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .waitlist-form,
  .waitlist-form.stacked {
    grid-template-columns: 1fr;
  }

  .waitlist-form input,
  .waitlist-form select {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .waitlist-form button {
    min-height: 54px;
  }
}

@media (max-width: 720px) {
  .nav {
    gap: 12px;
    padding: 12px 16px;
  }

  .brand img {
    width: 40px;
    height: 40px;
  }

  .hero,
  .market-types,
  .live-demo,
  .tools-section,
  .audience-section,
  .source-section,
  .faq-cta,
  footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .brand strong {
    font-size: 16px;
  }

  .brand small {
    display: none;
  }

  .nav-cta {
    padding: 9px 11px;
    font-size: 11px;
  }

  .hero {
    gap: 28px;
    padding-top: 34px;
    padding-bottom: 48px;
  }

  .scope-line {
    margin-bottom: 12px;
    font-size: 10px;
    line-height: 1.35;
  }

  .hero h1 {
    margin-bottom: 14px;
    font-size: 34px;
    line-height: 0.98;
  }

  .lead {
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.45;
  }

  .hero-actions {
    margin-bottom: 12px;
  }

  .primary-action,
  .secondary-action {
    width: calc(50% - 6px);
    min-height: 42px;
    padding: 0 10px;
    font-size: 10px;
    text-align: center;
  }

  .waitlist-form input,
  .waitlist-form select {
    padding: 13px 14px;
  }

  .waitlist-form button {
    min-height: 46px;
  }

  .form-status {
    padding: 0 14px 10px;
  }

  .market-key {
    gap: 7px;
    margin-top: 12px;
  }

  .market-key span {
    padding: 6px 8px;
    font-size: 11px;
  }

  .search-row,
  .demo-result,
  footer {
    display: block;
  }

  .search-row button {
    width: 100%;
    margin-bottom: 8px;
  }

  .signal-grid,
  .type-grid,
  .demo-console,
  .output-metrics,
  .output-next ul,
  .tools-layout,
  .audience-grid,
  .source-metrics {
    grid-template-columns: 1fr;
  }

  .demo-controls {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .source-card {
    width: 100%;
    align-items: flex-start;
  }
}
