:root {
  --bg: #0b0d12;
  --bg-alt: #11141b;
  --surface: #171b24;
  --border: #242a36;
  --text: #eef1f6;
  --text-dim: #a0a7b4;
  --accent: #6c5ce7;
  --accent-soft: #8b7bff;
  --radius: 16px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}

.btn:hover {
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 0.85rem 1.6rem;
  font-size: 1rem;
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

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

/* Nav — floating, centered pill */
.nav {
  position: sticky;
  top: 1rem;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: calc(var(--max) - 2rem);
  margin: 1rem auto 0;
  padding: 0.8rem 1.25rem;
  backdrop-filter: blur(14px);
  background: rgba(23, 27, 36, 0.72);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-logo {
  display: block;
  width: 32px;
  height: 32px;
}

.brand-name {
  font-size: 1.15rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.95rem;
  color: var(--text-dim);
}

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

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 5rem 1.5rem 4rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-soft);
  background: rgba(108, 92, 231, 0.12);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin-bottom: 1.25rem;
}

.accent {
  color: var(--accent-soft);
}

.lede {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 32rem;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.hero-note {
  font-size: 0.9rem;
  color: var(--text-dim);
}

/* Phone mockup */
.hero-demo {
  display: grid;
  place-items: center;
}

.phone {
  position: relative;
  width: 270px;
  height: 560px;
  background: #000;
  border-radius: 42px;
  padding: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5),
    0 0 0 2px rgba(108, 92, 231, 0.15);
}

.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 22px;
  background: #000;
  border-radius: 0 0 14px 14px;
  z-index: 3;
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: var(--bg-alt);
}

/* Reel slide */
.reel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reel.active {
  opacity: 1;
  transform: translateY(0);
}

.reel-topic {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  margin-bottom: auto;
  margin-top: 2.5rem;
}

.reel-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.reel-meta {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.75);
}

.reel-progress {
  position: absolute;
  top: 42px;
  left: 1.25rem;
  right: 1.25rem;
  display: flex;
  gap: 4px;
  z-index: 2;
}

.reel-progress span {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.25);
  overflow: hidden;
}

.reel-progress span.filled {
  background: #fff;
}

/* Quiz slide */
.quiz {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem;
  background: linear-gradient(160deg, #1b1740, #0b0d12);
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.quiz.active {
  opacity: 1;
  transform: translateY(0);
}

.quiz-tag {
  align-self: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

.quiz-q {
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
}

.quiz-opt {
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
}

.quiz-opt.correct {
  background: rgba(76, 217, 123, 0.18);
  border-color: #4cd97b;
  color: #a9f0c0;
}

/* Sections */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4.5rem 1.5rem;
  /* land below the floating nav when jumped to via an anchor link */
  scroll-margin-top: 6rem;
}

.section-alt {
  max-width: none;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-alt .section-title,
.section-alt .section-sub,
.section-alt .features,
.section-alt .lanes,
.section-alt .waitlist-sub,
.section-alt .waitlist-form,
.section-alt .form-message {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.section-alt .waitlist-sub {
  max-width: 34rem;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 2.75rem;
}

/* when a subtitle follows the title, tighten the gap between them */
.section-title:has(+ .section-sub) {
  margin-bottom: 0.75rem;
}

.section-sub {
  text-align: center;
  color: var(--text-dim);
  max-width: 36rem;
  margin: 0 auto 2.5rem;
}

/* For-everyone lanes */
.lanes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.lane {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
}

.lane h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.lane-tags {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.step-num {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(108, 92, 231, 0.15);
  color: var(--accent-soft);
  font-weight: 800;
  margin-bottom: 1rem;
}

.step h3,
.feature h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.step p,
.feature p {
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

/* Waitlist */
.waitlist {
  text-align: center;
}

.waitlist-sub {
  color: var(--text-dim);
  max-width: 34rem;
  margin: 0 auto 2rem;
}

.waitlist-form {
  display: flex;
  gap: 0.6rem;
  max-width: 30rem;
  margin: 0 auto;
}

.waitlist-form input {
  flex: 1;
  padding: 0.85rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
}

.waitlist-form input:focus {
  outline: none;
  border-color: var(--accent);
}

.form-message {
  min-height: 1.4rem;
  margin-top: 1rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.form-message.ok {
  color: #4cd97b;
}

.form-message.err {
  color: #ff6b6b;
}

/* Footer */
.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 3rem;
  }

  .hero-copy {
    order: 1;
  }

  .hero-demo {
    order: 2;
  }

  .eyebrow {
    margin-left: auto;
    margin-right: auto;
  }

  .lede {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .steps,
  .features,
  .lanes {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 561px) and (max-width: 860px) {
  .lanes {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .nav-links {
    gap: 0.9rem;
  }

  .nav-links a:not(.btn) {
    display: none;
  }

  .waitlist-form {
    flex-direction: column;
  }

  .waitlist-form input,
  .waitlist-form .btn {
    width: 100%;
  }
}
