:root {
  color-scheme: dark;
  --bg: #0a1025;
  --bg-glow: #173c7a;
  --surface: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.1);
  --text: #eef2ff;
  --muted: #a5b1d3;
  --accent: #73d9ff;
  --accent-ink: #061a2c;
  --mint: #62d6bc;
  --lavender: #c4b5fd;
  --error: #ff8a8a;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent);
}

img {
  max-width: 100%;
}

kbd {
  font: 0.85em ui-monospace, "SF Mono", Menlo, monospace;
  padding: 0.1em 0.45em;
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  white-space: nowrap;
}

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
}

/* Header */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 650;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.pill {
  font-size: 0.9rem;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  white-space: nowrap;
}

/* Hero */

.hero {
  isolation: isolate;
  position: relative;
  padding: 3.5rem 0 2rem;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -12rem 0 auto 0;
  height: 34rem;
  background: radial-gradient(60% 60% at 50% 40%, var(--bg-glow) 0%, transparent 70%);
  opacity: 0.75;
  pointer-events: none;
  z-index: -1;
}

.eyebrow {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mint);
  font-weight: 600;
}

h1 {
  margin: 0 auto 1.25rem;
  max-width: 17ch;
  font-size: clamp(2.4rem, 5.6vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-weight: 720;
}

.lede {
  margin: 0 auto 2.25rem;
  max-width: 44rem;
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  color: var(--muted);
}

/* Form */

.waitlist {
  margin: 0 auto;
  max-width: 40rem;
  text-align: left;
}

.fields {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.field span {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.field em {
  font-style: normal;
  opacity: 0.7;
}

.field input {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.8rem 0.95rem;
  outline: none;
}

.field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(115, 217, 255, 0.2);
}

.field input::placeholder {
  color: rgba(165, 177, 211, 0.55);
}

.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.waitlist button {
  width: 100%;
  font: inherit;
  font-weight: 650;
  font-size: 1.05rem;
  color: var(--accent-ink);
  background: var(--accent);
  border: 0;
  border-radius: 10px;
  padding: 0.95rem 1.2rem;
  cursor: pointer;
}

.waitlist button:hover {
  filter: brightness(1.06);
}

.waitlist button:disabled {
  opacity: 0.6;
  cursor: default;
}

.fine {
  margin: 0.85rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
}

.status {
  margin: 0.85rem 0 0;
  min-height: 1.5em;
  text-align: center;
  color: var(--muted);
}

.status.ok {
  color: var(--mint);
  font-size: 1.15rem;
  font-weight: 600;
  padding: 1.5rem;
  border: 1px solid rgba(98, 214, 188, 0.35);
  border-radius: 12px;
  background: rgba(98, 214, 188, 0.08);
}

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

/* Screenshots */

.shot {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
}

.shot figcaption {
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  color: var(--muted);
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.hero-shot {
  margin-top: 3.5rem;
}

.stack {
  display: grid;
  gap: 1.25rem;
}

.shot.small {
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: #0d1633;
}

.shot.small img {
  width: auto;
  max-width: 100%;
}

/* Features */

.features {
  padding: 3rem 0 1rem;
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 3rem;
  align-items: center;
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}

.feature.flip .text {
  order: 2;
}

.feature h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.feature .num {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--lavender);
  font-weight: 600;
  margin-bottom: 0.9rem;
}

.feature p {
  margin: 0 0 0.9rem;
  color: var(--muted);
}

.feature ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.feature li {
  margin: 0.35rem 0;
}

.feature li strong {
  color: var(--text);
  font-weight: 600;
}

/* Phone shot inside a feature */

.phone-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 1.25rem;
  align-items: start;
}

.phone {
  margin: 0;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
}

/* Bottom call to action */

.cta {
  padding: 4rem 0 3rem;
  text-align: center;
  border-top: 1px solid var(--border);
}

.cta h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  letter-spacing: -0.02em;
}

.cta > p {
  margin: 0 auto 2rem;
  max-width: 38rem;
  color: var(--muted);
}

/* Footer */

footer {
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--muted);
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

footer p {
  margin: 0;
}

@media (max-width: 800px) {
  .feature,
  .feature.flip {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .feature.flip .text {
    order: 0;
  }

  .phone-row {
    grid-template-columns: 1fr;
  }

  .phone {
    max-width: 240px;
  }

  .pill {
    display: none;
  }

  body {
    font-size: 16px;
  }
}

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