:root {
  --bg: #0A0A0B;
  --surface: #121214;
  --raised: #1A1A1E;
  --ink: #F5F5F7;
  --muted: #A1A1AA;
  --accent: #10B981;
  --accent-ink: #041B11;
  --cyan: #22D3EE;
  --amber: #F59E0B;
  --radius: 16px;
  --gutter: clamp(18px, 3vw, 40px);
  --step-small: clamp(0.875rem, 0.84rem + 0.12vw, 0.95rem);
  --step-body: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.6vw, 1.55rem);
  --step-sub: clamp(1.75rem, 1.35rem + 1.6vw, 2.5rem);
  --step-head: clamp(2.25rem, 1.5rem + 3.2vw, 3.85rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  background: var(--bg);
  color: var(--ink);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: var(--step-body);
  line-height: 1.55;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.num {
  font-variant-numeric: tabular-nums;
}

.wrap {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: var(--step-body);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: var(--step-small);
  color: var(--muted);
}

.site-nav a {
  white-space: nowrap;
  transition: color 200ms ease;
}

.site-nav a:hover {
  color: var(--ink);
}

.nav-cta {
  padding: 10px 18px;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: var(--step-small);
  white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 200ms ease;
}

.nav-cta:hover {
  background: #34D399;
}

.nav-cta:active {
  transform: scale(0.98);
}

/* Split Stage Hero */
.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 24px;
  align-items: stretch;
  padding-bottom: clamp(72px, 10vw, 136px);
}

.hero-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: clamp(28px, 4.5vw, 60px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 36px;
}

.hero-copy {
  max-width: 42ch;
}

.hero-copy h1 {
  margin: 0 0 22px;
  font-size: var(--step-head);
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.hero-lead {
  margin: 0 0 32px;
  font-size: var(--step-lead);
  line-height: 1.4;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: var(--step-body);
  border: none;
  cursor: pointer;
  transition: transform 150ms var(--ease-out), background-color 200ms ease;
}

.btn-primary:hover {
  background: #34D399;
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: var(--radius);
  background: var(--raised);
  color: var(--ink);
  font-weight: 600;
  font-size: var(--step-body);
  border: none;
  cursor: pointer;
  transition: background-color 200ms ease, transform 150ms var(--ease-out);
}

.btn-ghost:hover {
  background: #232329;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: var(--step-small);
  color: var(--muted);
}

.hero-meta strong {
  color: var(--ink);
  font-weight: 600;
}

.hero-stage {
  background: var(--surface);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 44px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.stage-shots {
  position: relative;
  width: min(330px, 100%);
  aspect-ratio: 1080 / 2424;
  border-radius: 26px;
  overflow: hidden;
  background: var(--bg);
}

.stage-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}

.stage-shot.is-active {
  opacity: 1;
  transform: scale(1);
}

.stage-caption {
  margin: 0;
  font-size: var(--step-small);
  color: var(--muted);
  text-align: center;
}

/* Section spacing & headings */
.section {
  padding-block: clamp(64px, 8vw, 120px);
}

.section-heading {
  margin: 0 0 18px;
  font-size: var(--step-sub);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 700;
  max-width: 22ch;
}

.section-intro {
  margin: 0 0 40px;
  font-size: var(--step-lead);
  line-height: 1.42;
  color: var(--muted);
  max-width: 44ch;
}

/* Showcase strip */
.showcase-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  background: var(--surface);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 56px);
}

.showcase-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.tab-btn {
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius);
  background: var(--raised);
  color: var(--muted);
  font-weight: 600;
  font-size: var(--step-small);
  border: none;
  cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease, transform 140ms var(--ease-out);
}

.tab-btn:hover {
  color: var(--ink);
}

.tab-btn.is-active {
  background: var(--accent);
  color: var(--accent-ink);
}

.showcase-title {
  margin: 0 0 14px;
  font-size: clamp(1.5rem, 1.25rem + 1vw, 2.15rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.showcase-desc {
  margin: 0 0 28px;
  color: var(--muted);
  max-width: 40ch;
}

.showcase-visual {
  display: flex;
  justify-content: center;
}

.showcase-visual img {
  width: min(310px, 100%);
  border-radius: 24px;
}

/* Sticky capabilities + Live Signal Simulator (Pinned split) */
.pinned-split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(24px, 4vw, 60px);
  align-items: start;
}

.sticky-meter-col {
  position: sticky;
  top: 28px;
}

.live-meter {
  background: var(--surface);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 40px);
}

.meter-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 18px;
}

.meter-score {
  font-size: clamp(2.8rem, 2.2rem + 2vw, 4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}

.meter-dbm {
  font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem);
  font-weight: 700;
  color: var(--accent);
}

.meter-bar-track {
  height: 10px;
  border-radius: 999px;
  background: var(--raised);
  overflow: hidden;
  margin-bottom: 18px;
}

.meter-bar-fill {
  height: 100%;
  width: 78%;
  border-radius: 999px;
  background: var(--accent);
  transition: width 240ms var(--ease-out), background-color 240ms ease;
}

.meter-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-block: 22px;
}

.metric-well {
  background: var(--raised);
  border-radius: 12px;
  padding: 14px;
}

.metric-well span {
  display: block;
  font-size: var(--step-small);
  color: var(--muted);
  margin-bottom: 4px;
}

.metric-well strong {
  font-size: clamp(1rem, 0.95rem + 0.35vw, 1.25rem);
}

.meter-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 22px;
}

.control-row label {
  display: flex;
  justify-content: space-between;
  font-size: var(--step-small);
  color: var(--muted);
  margin-bottom: 8px;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
}

.rat-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.scroll-claims {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.claim-block {
  background: var(--surface);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px);
}

.claim-block h3 {
  margin: 0 0 10px;
  font-size: var(--step-lead);
  line-height: 1.25;
}

.claim-block p {
  margin: 0;
  color: var(--muted);
}

/* How it works (Interactive 4-step range) */
.workflow-box {
  background: var(--surface);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 56px);
}

.workflow-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  margin-bottom: 32px;
}

.workflow-clause {
  margin: 0 0 14px;
  font-size: clamp(1.85rem, 1.4rem + 1.8vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.workflow-detail {
  margin: 0;
  color: var(--muted);
  max-width: 40ch;
}

.workflow-stops {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.stop-btn {
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--raised);
  color: var(--muted);
  font-weight: 600;
  font-size: var(--step-small);
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background-color 180ms ease, color 180ms ease;
}

.stop-btn.is-active {
  background: var(--accent);
  color: var(--accent-ink);
}

/* Graphic banner strip */
.banner-frame {
  background: var(--surface);
  border-radius: var(--radius);
  padding: clamp(24px, 3.5vw, 44px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 32px;
  align-items: center;
}

.banner-media {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.62fr);
  gap: 18px;
  align-items: center;
}

.banner-media img {
  border-radius: 12px;
  width: 100%;
}

.banner-video {
  width: 100%;
  border-radius: 18px;
  aspect-ratio: 9 / 20;
  object-fit: cover;
  background: var(--bg);
}

/* FAQ continuous two-column prose */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.35fr) minmax(0, 0.65fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.faq-columns {
  columns: 2;
  column-gap: 48px;
}

.faq-columns p {
  margin: 0 0 22px;
  color: var(--muted);
  break-inside: avoid;
}

.faq-columns strong {
  color: var(--ink);
  font-weight: 600;
}

/* End CTA */
.end-cta {
  padding-top: clamp(72px, 10vw, 130px);
  padding-bottom: clamp(56px, 8vw, 100px);
}

.end-cta-text {
  margin: 0 0 24px;
  font-size: var(--step-lead);
  max-width: 34ch;
}

/* Quiet single-line footer */
.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding-block: 30px;
  font-size: var(--step-small);
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 24px;
  color: var(--ink);
}

.footer-right {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-right a {
  color: var(--ink);
}

/* Privacy article */
.privacy-wrap {
  max-width: 74ch;
  margin: 0 auto;
  padding-block: clamp(32px, 5vw, 64px);
}

.privacy-wrap h1 {
  margin: 0 0 16px;
  font-size: var(--step-head);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.privacy-section {
  background: var(--surface);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 34px);
  margin-bottom: 20px;
}

.privacy-section h2 {
  margin: 0 0 12px;
  font-size: var(--step-lead);
}

.privacy-section p,
.privacy-section li {
  color: var(--muted);
}

.privacy-section ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.privacy-section strong {
  color: var(--ink);
}

/* Scroll reveal motion */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 650ms var(--ease-out), transform 650ms var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .hero-split,
  .showcase-split,
  .pinned-split,
  .workflow-grid,
  .banner-frame,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .sticky-meter-col {
    position: static;
  }

  .faq-columns {
    columns: 1;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-right {
    justify-content: flex-start;
  }
}

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

@media (max-width: 680px) {
  .banner-media,
  .meter-metrics {
    grid-template-columns: 1fr;
  }

  .workflow-stops {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .stage-shot,
  .meter-bar-fill,
  .btn-primary,
  .btn-ghost,
  .tab-btn,
  .nav-cta {
    transition: none;
    transform: none;
  }

  .reveal {
    opacity: 1;
  }
}
