:root {
  --bg: #fbfaf7;
  --bg-gradient: linear-gradient(180deg, #f9f9fc 0%, #fffcf7 52%, #fbf7f2 100%);
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: #ffffff;
  --ink: #122d45;
  --ink-2: #334155;
  --muted: #5f5a72;
  --border: rgba(18, 45, 69, 0.12);
  --accent: #122d45;
  --accent-ink: #ffffff;
  --accent-hover: #1061a6;
  --focus: #85b1ed;
  --success: #1a8047;
  --danger: #ba2b4c;
  --spectral: linear-gradient(90deg, #5fbeff, #af8ff4, #f05c6b, #ffcd83, #7ef1b3);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1722;
    --bg-gradient: linear-gradient(180deg, #0d1722 0%, #101b28 52%, #121c27 100%);
    --surface: rgba(24, 38, 54, 0.72);
    --surface-strong: #16222f;
    --ink: #eef3f8;
    --ink-2: #c8d3df;
    --muted: #9aa7b6;
    --border: rgba(238, 243, 248, 0.12);
    --accent: #eef3f8;
    --accent-ink: #0d1722;
    --accent-hover: #85b1ed;
    --success: #5cc98a;
    --danger: #f2879c;
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  background-image: var(--bg-gradient);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

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

@media (min-width: 720px) {
  .wrap {
    padding: 0 32px;
  }
}

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--border);
}

.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--spectral);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a.link {
  display: none;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 15px;
  color: var(--ink-2);
  text-decoration: none;
}

.nav a.link:hover {
  color: var(--ink);
  background: var(--surface);
}

@media (min-width: 760px) {
  .nav a.link {
    display: inline-block;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 0;
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  background: var(--accent);
  color: var(--accent-ink);
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  background: var(--accent-hover);
  color: #fff;
}

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

.btn[disabled] {
  opacity: 0.6;
  cursor: wait;
}

.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
}

.btn.ghost:hover {
  background: var(--surface);
  color: var(--ink);
}

/* Hero */
.hero {
  padding: 56px 0 40px;
}

@media (min-width: 720px) {
  .hero {
    padding: 96px 0 72px;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 14px;
  color: var(--ink-2);
}

.eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--spectral);
}

.hero h1 {
  margin-top: 20px;
  font-size: clamp(40px, 8vw, 76px);
  max-width: 14ch;
}

.hero .lead {
  margin-top: 20px;
  max-width: 56ch;
  font-size: clamp(18px, 2.2vw, 21px);
  color: var(--ink-2);
}

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

.spectral-line {
  height: 4px;
  border-radius: 4px;
  background: var(--spectral);
  margin-top: 56px;
  opacity: 0.85;
}

/* Sections */
section {
  padding: 56px 0;
}

@media (min-width: 720px) {
  section {
    padding: 88px 0;
  }
}

.section-head {
  max-width: 640px;
  margin-bottom: 36px;
}

.section-head h2 {
  font-size: clamp(30px, 5vw, 44px);
}

.section-head p {
  margin-top: 14px;
  color: var(--ink-2);
}

.kicker {
  display: block;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 720px) {
  .grid.two {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid.three {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

.card h3 {
  font-size: 21px;
}

.card p {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 16px;
}

.icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
}

.icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Steps */
.steps {
  counter-reset: step;
  display: grid;
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}

@media (min-width: 720px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.steps li {
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 14px;
  border-radius: 50%;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 700;
  background: var(--accent);
  color: var(--accent-ink);
}

/* Lists */
.checks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.checks li {
  position: relative;
  padding-left: 30px;
  color: var(--ink-2);
}

.checks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 16px;
  height: 10px;
  border-left: 2px solid var(--success);
  border-bottom: 2px solid var(--success);
  transform: rotate(-45deg);
}

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

.note {
  margin-top: 24px;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 15px;
  color: var(--ink-2);
}

/* FAQ */
details {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}

details summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::after {
  content: '+';
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 22px;
  line-height: 1;
  color: var(--muted);
}

details[open] summary::after {
  content: '–';
}

details p {
  margin-top: 10px;
  color: var(--ink-2);
  max-width: 70ch;
}

/* Waitlist */
.waitlist {
  padding: 28px;
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
}

@media (min-width: 720px) {
  .waitlist {
    padding: 48px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
  }
}

.waitlist h2 {
  font-size: clamp(30px, 5vw, 40px);
}

.waitlist .intro p {
  margin-top: 14px;
  color: var(--ink-2);
}

form {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

@media (min-width: 720px) {
  form {
    margin-top: 0;
  }
}

label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
}

label .optional {
  font-weight: 400;
  color: var(--muted);
}

input,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-strong);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

textarea {
  min-height: 96px;
  resize: vertical;
}

.consent {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}

.status {
  min-height: 24px;
  font-size: 15px;
  font-weight: 500;
}

.status.ok {
  color: var(--success);
}

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

/* Footer */
footer {
  padding: 40px 0 56px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--muted);
}

footer .wrap {
  display: grid;
  gap: 20px;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

footer a {
  color: var(--ink-2);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Legal pages */
.legal {
  padding: 48px 0 80px;
}

.legal .wrap {
  max-width: 760px;
}

.legal h1 {
  font-size: clamp(34px, 6vw, 48px);
}

.legal h2 {
  font-size: 24px;
  margin-top: 40px;
}

.legal p,
.legal li {
  margin-top: 12px;
  color: var(--ink-2);
}

.legal ul {
  padding-left: 22px;
}

.draft {
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px dashed var(--danger);
  color: var(--ink-2);
  font-size: 15px;
}

.updated {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
}

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