:root {
  --bg: #09090b;
  --surface: #18181b;
  --border: #3f3f46;
  --text: #e4e4e7;
  --muted: #a1a1aa;
  --neon: #22d3ee;
  --neon-dim: #0891b2;
  --success: #34d399;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Figtree', system-ui, sans-serif;
  background:
    radial-gradient(900px 480px at 12% -10%, rgba(34, 211, 238, 0.12), transparent 55%),
    radial-gradient(700px 420px at 90% 8%, rgba(8, 145, 178, 0.1), transparent 50%),
    linear-gradient(rgba(34, 211, 238, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.035) 1px, transparent 1px),
    var(--bg);
  background-size: auto, auto, 56px 56px, 56px 56px, auto;
  color: var(--text);
  line-height: 1.6;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(9, 9, 11, 0.85);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.28);
}

.brand-mark svg {
  display: block;
}

.brand-copy strong {
  display: block;
  font-size: 1rem;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.75rem;
}

.nav {
  display: flex;
  gap: 20px;
  color: var(--muted);
  font-size: 0.95rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.button:hover {
  opacity: 0.92;
}

.button-primary {
  background: var(--neon);
  color: var(--bg);
}

.button-secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.button-compact {
  padding: 10px 16px;
  font-size: 0.92rem;
}

.hero {
  padding: 72px 0 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  color: var(--neon);
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 600;
  margin: 0 0 12px;
}

h1 {
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
  line-height: 1.02;
  margin: 0 0 20px;
}

.lead {
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 46ch;
  margin: 0 0 28px;
}

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

.hero-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.demo-player {
  scroll-margin-top: 96px;
}

.demo-frame {
  display: grid;
  place-items: center;
  padding: 28px 20px 12px;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 28px 28px 0 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(34, 211, 238, 0.12), transparent 55%),
    rgba(24, 24, 27, 0.72);
}

.phone {
  width: min(280px, 100%);
  aspect-ratio: 9 / 17.4;
  border-radius: 28px;
  border: 2px solid #3f3f46;
  background: #09090b;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 86px;
  height: 16px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #18181b;
  z-index: 3;
}

.phone-screen {
  height: 100%;
  position: relative;
}

.scene {
  position: absolute;
  inset: 0;
  padding: 42px 18px 20px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}

.phone-screen[data-scene='home'] .scene-home,
.phone-screen[data-scene='scan'] .scene-scan,
.phone-screen[data-scene='radar'] .scene-radar,
.phone-screen[data-scene='results'] .scene-results {
  opacity: 1;
  transform: none;
}

.mini-brand {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 22px;
}

.mini-mark {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  border: 1px solid rgba(34, 211, 238, 0.4);
  background:
    linear-gradient(#22d3ee, #22d3ee) center / 14px 1px no-repeat,
    radial-gradient(circle, #22d3ee 2px, transparent 2.4px),
    rgba(34, 211, 238, 0.1);
}

.mini-brand strong,
.mini-kicker {
  display: block;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: var(--neon);
}

.mini-brand small,
.scene-home p,
.scan-hint,
.radar-sub {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
}

.scene-home h2,
.scene-results h2 {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.7rem;
  line-height: 1.1;
  margin: 0 0 8px;
}

.mini-cta {
  margin: 22px 0 18px;
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: 18px;
  padding: 22px 12px;
  text-align: center;
  font-weight: 700;
  background: rgba(34, 211, 238, 0.06);
}

.mini-lens {
  display: block;
  width: 36px;
  height: 36px;
  margin: 0 auto 10px;
  border-radius: 999px;
  border: 2px solid var(--neon);
  box-shadow: inset 0 0 0 6px rgba(34, 211, 238, 0.18);
}

.mini-steps {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.7rem;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
}

.scene-scan {
  background: #050506;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.scan-stage {
  position: relative;
  width: 168px;
  height: 220px;
  margin: 18px 0 16px;
}

.scan-oval {
  position: absolute;
  inset: 0;
  border: 2px dashed rgba(34, 211, 238, 0.85);
  border-radius: 50%;
  box-shadow: inset 0 0 40px rgba(34, 211, 238, 0.12);
}

.scan-beam {
  position: absolute;
  left: 14%;
  right: 14%;
  height: 2px;
  background: var(--neon);
  box-shadow: 0 0 12px var(--neon);
  animation: scan-move 2.4s ease-in-out infinite alternate;
}

.phone-screen[data-scene='scan'] .scan-beam {
  animation-play-state: running;
}

.shutter {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: 3px solid var(--neon);
  background: rgba(34, 211, 238, 0.2);
}

.scan-hint {
  margin: 0 0 16px;
  text-align: center;
}

.scene-radar {
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  background: rgba(0, 0, 0, 0.35);
}

.radar {
  position: relative;
  width: 120px;
  height: 120px;
  margin-bottom: 18px;
}

.radar-ring {
  position: absolute;
  inset: 0;
  border: 2px solid var(--neon);
  border-radius: 999px;
  animation: radar-pulse 1.6s ease-out infinite;
}

.radar-ring.delay {
  animation-delay: 0.8s;
}

.radar-dot {
  position: absolute;
  inset: 54px;
  border-radius: 999px;
  background: var(--neon);
}

.radar-title {
  margin: 0;
  font-weight: 700;
}

.mini-scores {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 16px 0 14px;
}

.mini-scores div {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px;
  background: var(--surface);
}

.mini-scores span {
  display: block;
  color: var(--muted);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.mini-scores strong {
  font-size: 1.6rem;
  color: var(--neon);
}

.mini-scores .success {
  color: var(--success);
}

.mini-metric {
  margin-bottom: 10px;
}

.mini-metric div {
  display: flex;
  justify-content: space-between;
  font-size: 0.74rem;
  margin-bottom: 4px;
}

.mini-metric i {
  display: block;
  height: 6px;
  border-radius: 999px;
  background: #27272a;
  overflow: hidden;
}

.mini-metric b {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--neon-dim), var(--neon));
}

.phone-screen[data-scene='results'] .mini-metric b {
  width: var(--w);
  transition: width 0.8s ease;
}

.demo-chrome {
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-top: 0;
  border-radius: 0 0 28px 28px;
  padding: 16px 18px 18px;
  background: rgba(9, 9, 11, 0.92);
}

.demo-meta {
  display: flex;
  justify-content: space-between;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.demo-caption {
  min-height: 2.6em;
  margin: 10px 0 14px;
  color: var(--text);
}

.demo-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.demo-play {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 600;
  cursor: pointer;
}

.demo-track {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: #27272a;
  overflow: hidden;
  cursor: pointer;
}

.demo-progress {
  width: 0;
  height: 100%;
  background: var(--neon);
}

.section {
  padding: 56px 0;
}

.section-title {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 2rem;
  margin: 0 0 12px;
}

.section-lead {
  color: var(--muted);
  max-width: 60ch;
  margin: 0 0 28px;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
}

.card-index {
  display: block;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  color: var(--neon);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

.card h3 {
  margin: 0 0 8px;
}

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

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
}

.price-card.featured {
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.12);
}

.price-card h3 {
  margin: 0 0 8px;
}

.price {
  font-size: 2.4rem;
  font-weight: 700;
  margin: 12px 0;
}

.price-card ul {
  margin: 0 0 24px;
  padding-left: 18px;
  color: var(--muted);
}

.faq-item {
  border-top: 1px solid var(--border);
  padding: 18px 0;
}

.faq-item strong {
  display: block;
  margin-bottom: 6px;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 48px;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-stamp {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

.page-main {
  padding: 56px 0 72px;
}

.page-article h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.prose p {
  color: var(--muted);
}

.install-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}

.install-steps li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
}

.install-steps strong {
  display: block;
  margin-bottom: 6px;
}

.install-steps span {
  color: var(--muted);
}

.success-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.success-card {
  width: min(560px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  text-align: center;
}

.license-box {
  font-family: ui-monospace, monospace;
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  padding: 16px;
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  margin: 16px 0;
}

.hidden {
  display: none;
}

.status-text {
  color: var(--muted);
}

@keyframes scan-move {
  from {
    top: 18px;
  }
  to {
    top: 196px;
  }
}

@keyframes radar-pulse {
  from {
    transform: scale(0.45);
    opacity: 0.8;
  }
  to {
    transform: scale(1.15);
    opacity: 0;
  }
}

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

  .hero-grid,
  .grid-3,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 40px;
  }
}

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

  .scene,
  .mini-metric b,
  .scan-beam,
  .radar-ring {
    animation: none !important;
    transition: none !important;
  }

  .phone-screen .scene-results {
    opacity: 1;
    transform: none;
  }

  .mini-metric b {
    width: var(--w);
  }
}
