:root {
  --bg: #0b0b0f;
  --surface: #14141b;
  --line: #262631;
  --text: #ededf2;
  --muted: #9a9aab;
  --accent: #ff6a3d;
  --accent-soft: rgba(255, 106, 61, 0.14);
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: ui-sans-serif, -apple-system, "Segoe UI", Inter, Roboto, sans-serif;
  --cycle: 12s;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--sans);
  background-image: radial-gradient(60rem 30rem at 80% -10%, var(--accent-soft), transparent 70%);
  background-repeat: no-repeat;
}

.wrap {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 16px;
}

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

/* Nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  padding-bottom: 24px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font: 600 17px/1 var(--mono);
  letter-spacing: -0.02em;
}
.badge {
  font: 500 12px/1 var(--mono);
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 6px 10px;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  padding-top: 48px;
  padding-bottom: 80px;
}
h1 {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 0 0 20px;
}
h1 em {
  font-style: normal;
  color: var(--accent);
}
.lede {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 34rem;
  margin: 0 0 32px;
}

.waitlist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 30rem;
}
.waitlist input {
  flex: 1 1 14rem;
  min-width: 0;
  padding: 13px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
.waitlist input:focus-visible,
.waitlist button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.waitlist button {
  flex: 0 0 auto;
  padding: 13px 18px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: #160904;
  font: 600 15px/1 var(--sans);
  cursor: pointer;
}
.waitlist button:hover { filter: brightness(1.08); }
.waitlist button:disabled { opacity: 0.6; cursor: wait; }
.form-note {
  color: var(--muted);
  font-size: 14px;
  margin: 12px 0 0;
}

/* Demo: notes → phone */
.demo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.notes {
  flex: 1 1 16rem;
  max-width: 20rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.notes-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font: 12px/1 var(--mono);
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.notes pre {
  margin: 0;
  padding: 14px;
  font: 13px/1.7 var(--mono);
  color: var(--text);
  white-space: pre-wrap;
}
.arrow {
  color: var(--accent);
  font: 600 28px/1 var(--mono);
}

.phone {
  position: relative;
  flex: 0 0 auto;
  width: 200px;
  aspect-ratio: 9 / 16;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, #1c1420, #0e0e14 60%);
  box-shadow: 0 30px 80px -30px var(--accent-soft), 0 0 0 6px #121218;
  overflow: hidden;
}
.scene {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px;
  text-align: center;
  opacity: 0;
  animation: scene var(--cycle) infinite;
}
.s2 { animation-delay: calc(var(--cycle) * 0.25); }
.s3 { animation-delay: calc(var(--cycle) * 0.5); }
.s4 { animation-delay: calc(var(--cycle) * 0.75); }

@keyframes scene {
  0%    { opacity: 0; transform: translateY(12px) scale(0.98); }
  4%    { opacity: 1; transform: none; }
  22%   { opacity: 1; transform: none; }
  25%   { opacity: 0; transform: translateY(-8px); }
  100%  { opacity: 0; }
}

.kicker { font: 12px/1 var(--mono); color: var(--muted); }
.big {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}
.big.cta {
  font: 600 14px/1.3 var(--mono);
  color: #160904;
  background: var(--accent);
  padding: 10px 12px;
  border-radius: 8px;
  letter-spacing: 0;
}
.sub { color: var(--muted); font-size: 15px; }

.bars {
  display: grid;
  gap: 6px;
  width: 100%;
  margin-top: 10px;
}
.bars i {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: var(--line);
}
.bars i:last-child {
  width: 33%;
  background: var(--accent);
}

.type {
  font: 13px/1 var(--mono);
  color: var(--accent);
  background: #0a0a0e;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  white-space: nowrap;
  overflow: hidden;
  width: 0;
  animation: type var(--cycle) steps(18, end) infinite;
  animation-delay: calc(var(--cycle) * 0.5);
}
@keyframes type {
  0%, 3% { width: 0; }
  15%, 100% { width: 21ch; }
}

.progress {
  position: absolute;
  left: 14px; right: 14px; bottom: 14px;
  height: 3px;
  border-radius: 2px;
  background: var(--line);
  overflow: hidden;
}
.progress i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--accent);
  transform-origin: left;
  animation: progress var(--cycle) linear infinite;
}
@keyframes progress {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* Steps */
.steps { padding-bottom: 96px; }
h2 {
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
}
.steps ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.steps li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
}
.n { font: 13px/1 var(--mono); color: var(--accent); }
h3 { margin: 12px 0 6px; font-size: 1.1rem; }
.steps p { margin: 0; color: var(--muted); }

/* Footer */
.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding-top: 24px;
  padding-bottom: 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 640px) {
  .demo { flex-direction: column; }
  .notes { max-width: none; width: 100%; }
  .arrow { transform: rotate(90deg); }
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
    padding-top: 72px;
  }
  .steps ol { grid-template-columns: repeat(3, 1fr); }
}

/* Show one still frame instead of the loop. */
@media (prefers-reduced-motion: reduce) {
  .scene, .type, .progress i { animation: none; }
  .s2 { opacity: 1; }
}
