:root {
  --bg: #000;
  --card: #0c0c0c;
  --text: #fff;
  --muted: #a3a3a3;
  --dim: #6e6e6e;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --nav: 72px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }

button, a { font: inherit; }

a { color: inherit; }

.skip {
  position: absolute;
  left: 16px;
  top: -40px;
  background: #fff;
  color: #000;
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 20;
}

.skip:focus { top: 12px; }

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

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

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  height: var(--nav);
}

.nav.scrolled {
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  width: min(1120px, calc(100% - 40px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  white-space: nowrap;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 13px;
}

.logo img {
  width: 44px;
  height: 44px;
  display: block;
}

.nav-links {
  display: flex;
  gap: 22px;
  margin-left: auto;
}

.nav-links a {
  text-decoration: none;
  color: #d4d4d4;
  font-size: 14px;
}

.nav-links a:hover { color: #fff; }

.nav-cta { margin-left: 8px; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: #fff;
  padding: 0;
  position: relative;
}

.nav-toggle span:not(.sr-only) {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1.5px;
  background: #fff;
}

.nav-toggle span:nth-child(2) { top: 17px; }
.nav-toggle span:nth-child(3) { top: 23px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 14px;
}

.btn-light { background: #fff; color: #000; }
.btn-light:hover { background: #e8e8e8; }

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: var(--line-strong);
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); }

.btn svg { width: 16px; height: 16px; flex: none; }

.hero {
  display: grid;
  align-items: center;
  padding: calc(var(--nav) + 64px) 0 56px;
  background:
    radial-gradient(520px 320px at 78% 42%, rgba(255, 255, 255, 0.06), transparent 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 18px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #cfcfcf;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 28px;
  color: #fff;
  font-size: clamp(56px, 8vw, 92px);
  line-height: 0.9;
  letter-spacing: -0.05em;
  font-weight: 800;
}

h1 em {
  font-style: normal;
  color: #ff2b2b;
}

h1 > span:last-child { white-space: nowrap; }

.live-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ff2b2b;
  box-shadow: 0 0 12px rgba(255, 43, 43, 0.9);
  flex: none;
  animation: live-blink 1.4s ease-in-out infinite;
}

.logo .live-dot {
  width: 8px;
  height: 8px;
  box-shadow: 0 0 6px rgba(255, 43, 43, 0.9);
}

@keyframes live-blink {
  0%, 42% { opacity: 1; }
  50%, 92% { opacity: 0.15; }
  100% { opacity: 1; }
}

h2 {
  margin: 0;
  color: #ff2b2b;
  font-size: clamp(40px, 5vw, 56px);
  letter-spacing: -0.045em;
  font-weight: 800;
  line-height: 1;
}

h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: -0.02em; }

.lead {
  max-width: 520px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.lead p { margin: 0 0 12px; }
.lead p:last-child { margin-bottom: 0; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 36px;
}

.stats {
  display: flex;
  gap: 32px;
  margin: 8px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.stats div { min-width: 90px; }

.stats dt {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.stats dd {
  margin: 2px 0 0;
  color: var(--dim);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stage { display: grid; justify-items: center; }

.cam {
  width: min(100%, 420px);
  background: #070707;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 14px;
}

.cam-bar, .cam-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}

.live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  display: block;
}

.mono {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  color: var(--muted);
}

.view {
  margin: 14px 0;
  border-radius: 16px;
  background:
    radial-gradient(120px 80px at 50% 42%, rgba(255, 255, 255, 0.08), transparent 70%),
    #050505;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  width: 100%;
  margin-inline: auto;
}

.view[data-ratio="16/9"] { aspect-ratio: 16 / 9; }
.view[data-ratio="4/3"] { aspect-ratio: 4 / 3; width: 86%; }
.view[data-ratio="9/16"] { aspect-ratio: 9 / 16; width: 46%; }
.swap {
  position: absolute;
  inset: 0;
}

.swap .face,
.swap .brackets {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.swap .face {
  object-fit: cover;
  object-position: center 38%;
  opacity: 0;
  animation: face-swap 9.6s ease-in-out infinite;
}

.swap .face:nth-child(1) { animation-delay: 0s; }
.swap .face:nth-child(2) { animation-delay: -7.2s; }
.swap .face:nth-child(3) { animation-delay: -4.8s; }
.swap .face:nth-child(4) { animation-delay: -2.4s; }

.swap .brackets { pointer-events: none; z-index: 2; }

.guard { z-index: 3; }

.scan {
  position: absolute;
  z-index: 2;
  left: 10%;
  right: 10%;
  height: 2px;
  background: #ff2b2b;
  box-shadow: 0 0 10px #ff2b2b;
  pointer-events: none;
  animation: scan 2.4s linear infinite;
}

@keyframes face-swap {
  0% { opacity: 0; }
  4% { opacity: 1; }
  21% { opacity: 1; }
  27% { opacity: 0; }
  100% { opacity: 0; }
}

@keyframes scan {
  0% { top: 8%; opacity: 0; }
  8% { opacity: 1; }
  28% { top: 90%; opacity: 0; }
  100% { top: 90%; opacity: 0; }
}

.guard {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.ratios { display: flex; gap: 6px; }

.ratio {
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.ratio.active {
  background: #fff;
  color: #000;
  border-color: #fff;
}

.ratio-note {
  margin: 0;
  color: var(--dim);
  font-size: 12px;
}

.stage-caption {
  margin: 12px 0 0;
  color: var(--dim);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.works {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}

.works .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
}

.works-label {
  margin: 0;
  color: var(--dim);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.works ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #d6d6d6;
  font-weight: 600;
}

.section { padding: 108px 0; }

.section-tight { padding-top: 20px; }

.section-head {
  max-width: 640px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-head p {
  color: var(--muted);
  margin: 14px 0 0;
}

.anon {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 12px 28px;
  align-items: center;
  background: #111;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px 32px;
  margin-bottom: 14px;
}

.anon-stat {
  margin: 0;
  text-align: center;
}

.anon-stat strong {
  display: block;
  font-size: 64px;
  line-height: 0.9;
  letter-spacing: -0.05em;
  font-weight: 800;
}

.anon-stat span {
  display: block;
  margin-top: 8px;
  color: var(--dim);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.anon h3 {
  margin: 0 0 8px;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.anon p { margin: 0; }

.anon > div > p { color: var(--muted); }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: #e8e8e8;
  font-size: 13px;
}

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

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
}

.fico {
  width: 72px;
  height: 72px;
  margin-bottom: 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #000;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.fico img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card p, .engine span, .req p, .faq-panel p, .footer p {
  margin: 0;
  color: var(--muted);
}

.card-accent { background: #111; }

.wide { grid-column: span 1; }

.feature-grid .wide:nth-last-child(2),
.feature-grid .wide:last-child {
  grid-column: span 1;
}

.engine {
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  color: #fff;
  cursor: pointer;
  display: grid;
  gap: 8px;
}

.engine strong { font-size: 18px; letter-spacing: -0.02em; }

.engine-tag {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}

.engine.active {
  border-color: rgba(255, 255, 255, 0.45);
  background: #141414;
}

.flow {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow > li:not(.flow-arrow) {
  flex: 1;
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 16px;
}

.flow > li span {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  color: #ff2b2b;
  font-size: 12px;
  flex: none;
}

.flow h3 {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 16px;
}

.flow p { margin: 0; color: var(--muted); font-size: 14px; }

.flow strong {
  color: #fff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.flow-arrow {
  flex: none;
  width: 28px;
  align-self: center;
  position: relative;
}

.flow-arrow::before {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  top: 50%;
  height: 1.5px;
  background: #ff2b2b;
}

.flow-arrow::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid #ff2b2b;
  border-top: 1.5px solid #ff2b2b;
  transform: translateY(-50%) rotate(45deg);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.steps li {
  border-top: 1px solid var(--line-strong);
  padding-top: 16px;
}

.steps h3 {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.steps span {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  color: var(--dim);
  font-size: 12px;
  font-weight: 500;
  flex: none;
}

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

.price {
  margin-top: 56px;
  background: #111;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 36px 32px;
  text-align: center;
}

.price-amount {
  margin: 0;
  color: #fff;
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.9;
}

.price-amount span {
  font-size: 0.32em;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 700;
}

.price-term {
  margin: 16px 0 0;
  color: #ff2b2b;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.price-note {
  margin: 10px 0 0;
  color: var(--muted);
}

.get-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.get-title {
  font-size: clamp(40px, 5vw, 64px);
  max-width: 10ch;
}

.req ul {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.req li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.faq-wrap { width: min(760px, calc(100% - 40px)); }

.faq-item { border-bottom: 1px solid var(--line); }

.faq-item button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 18px 0;
  background: none;
  border: 0;
  color: #fff;
  text-align: left;
  cursor: pointer;
  font-weight: 600;
}

.faq-item button span {
  width: 10px;
  height: 10px;
  border-right: 1.5px solid #fff;
  border-bottom: 1.5px solid #fff;
  transform: rotate(45deg);
  flex: none;
}

.faq-item.open button span { transform: rotate(225deg); }

.faq-panel {
  display: none;
  padding: 0 0 18px;
}

.faq-item.open .faq-panel { display: block; }

.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
}

.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 28px; height: 28px; }
.footer strong { letter-spacing: 0.08em; font-size: 13px; }
.footer p { margin: 6px 0 0; font-size: 14px; }
.footer a { color: #fff; }

:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

@media (min-width: 980px) {
  .feature-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .feature-grid .card { grid-column: span 2; }
  .feature-grid .card:last-child { grid-column: span 6; }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav);
    left: 0;
    right: 0;
    margin: 0;
    padding: 12px 20px 18px;
    background: #000;
    border-bottom: 1px solid var(--line);
    z-index: 2;
    flex-direction: column;
    gap: 14px;
  }
  .nav-links.open {
    display: flex;
    position: fixed;
    top: var(--nav);
    right: 0;
    bottom: 0;
    left: 0;
    background: #000;
    border-bottom: 0;
    padding: 28px 24px;
  }
  .hero-grid, .get-grid, .feature-grid, .engine-grid, .steps, .anon {
    grid-template-columns: 1fr;
  }
  .flow { flex-direction: column; align-items: center; gap: 4px; }
  .flow > li:not(.flow-arrow) { width: 100%; }
  .flow-arrow { width: 22px; height: 28px; }
  .flow-arrow::before { left: 50%; right: auto; top: 4px; bottom: 4px; width: 1.5px; height: auto; transform: translateX(-50%); }
  .flow-arrow::after { right: auto; left: 50%; top: auto; bottom: 4px; transform: translateX(-50%) rotate(135deg); }
  .anon-stat { text-align: left; }
  .anon-stat strong { font-size: 52px; }
  .feature-grid .card, .feature-grid .wide { grid-column: auto; }
  .works .wrap { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero { padding-top: calc(var(--nav) + 36px); }
  h1 {
    gap: 10px;
    font-size: clamp(32px, calc((100vw - 78px) / 6.2), 72px);
  }
  h1 .live-dot { width: 12px; height: 12px; }
  .view[data-ratio="9/16"] { width: 52%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .live-dot { animation: none; }
  .swap .face { animation: none; opacity: 0; }
  .swap .face:first-child { opacity: 1; }
  .scan { display: none; }
}
