:root {
  --violet: #863bff;
  --violet-d: #6a23e0;
  --violet-l: #ede6ff;
  --ink: #0d0a14;
  --text: #4b4458;
  --muted: #8a8398;
  --bg: #ffffff;
  --bg-soft: #faf8ff;
  --card: #ffffff;
  --border: #ece8f5;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(13, 10, 20, 0.04),
    0 12px 32px -12px rgba(106, 35, 224, 0.18);

  font-family: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto,
    sans-serif;
  color-scheme: light dark;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100dvh;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: 'Schibsted Grotesk', 'Hanken Grotesk', sans-serif;
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
}

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

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--violet);
  color: #fff;
  font-family: 'Schibsted Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 12px;
  padding: 0.85rem 1.4rem;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.12s ease, background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 20px -8px rgba(134, 59, 255, 0.6);
}
.btn:hover {
  background: var(--violet-d);
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
}
.btn:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
}
.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.92rem;
  box-shadow: none;
}

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem clamp(1rem, 5vw, 3rem);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Schibsted Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--ink);
}

/* ===== Layout ===== */
.section {
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1.2rem, 5vw, 2rem);
}
.section > h2 {
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  text-align: center;
  margin-bottom: 2.5rem;
}
.grid {
  display: grid;
  gap: 1.2rem;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(3rem, 9vw, 6rem) 1.3rem clamp(2rem, 6vw, 3.5rem);
  text-align: center;
}
.hero-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 680px;
  max-width: 120vw;
  height: 480px;
  background: radial-gradient(
    ellipse at center,
    rgba(134, 59, 255, 0.18),
    rgba(134, 59, 255, 0) 65%
  );
  z-index: -1;
  pointer-events: none;
}
.eyebrow {
  display: inline-block;
  font-family: 'Schibsted Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--violet-d);
  background: var(--violet-l);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin: 0 0 1.4rem;
}
.hero h1 {
  font-size: clamp(2.5rem, 8vw, 4.2rem);
  font-weight: 800;
  margin-bottom: 1.2rem;
}
.lede {
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  color: var(--text);
  max-width: 560px;
  margin: 0 auto 2rem;
}

/* ===== Waitlist form ===== */
.waitlist {
  max-width: 480px;
  margin: 0 auto;
  /* Offset the sticky nav so anchor jumps land below it, not under it. */
  scroll-margin-top: 96px;
}
.waitlist-row {
  display: flex;
  gap: 0.6rem;
}
.waitlist input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 1rem;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.waitlist input::placeholder {
  color: var(--muted);
}
.waitlist input:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 4px rgba(134, 59, 255, 0.14);
}
.form-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.7rem 0 0;
  min-height: 1.2em;
}
.form-note.ok {
  color: #1a8a4f;
  font-weight: 600;
}
.form-note.err {
  color: #d6336c;
  font-weight: 600;
}

.trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
  padding: 0;
  margin: 1.8rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ===== Problem ===== */
.problem {
  text-align: center;
}
.chat-mock {
  max-width: 420px;
  margin: 0 auto 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 1.5rem;
}
.bubble {
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px 16px 16px 4px;
  padding: 0.55rem 0.9rem;
  font-size: 0.95rem;
  color: var(--ink);
  text-align: left;
  max-width: 85%;
  box-shadow: 0 1px 2px rgba(13, 10, 20, 0.03);
}
.bubble:nth-child(even) {
  align-self: flex-end;
  background: var(--violet);
  color: #fff;
  border-color: transparent;
  border-radius: 16px 16px 4px 16px;
}
.bubble.muted {
  align-self: center;
  background: transparent;
  border: none;
  box-shadow: none;
  color: var(--muted);
  font-size: 0.82rem;
  font-style: italic;
}
.problem-line {
  font-family: 'Schibsted Grotesk', sans-serif;
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 600;
  color: var(--ink);
  max-width: 520px;
  margin: 0 auto;
}

/* ===== Steps ===== */
.steps-grid {
  grid-template-columns: repeat(3, 1fr);
}
.step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--violet-l);
  color: var(--violet-d);
  font-family: 'Schibsted Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.step h3,
.feature h3 {
  font-size: 1.2rem;
  margin-bottom: 0.45rem;
}
.step p,
.feature p {
  margin: 0;
  font-size: 0.97rem;
}

/* ===== Features ===== */
.features {
  background: var(--bg-soft);
  max-width: none;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.features > h2,
.features > .grid {
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
}
.features-grid {
  grid-template-columns: repeat(3, 1fr);
}
.feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.ficon {
  font-size: 1.7rem;
  display: block;
  margin-bottom: 0.7rem;
}

/* ===== Final CTA ===== */
.cta-card {
  background: linear-gradient(135deg, #2a1357, var(--violet-d));
  color: #fff;
  border-radius: 28px;
  padding: clamp(2.2rem, 6vw, 3.5rem);
  text-align: center;
  box-shadow: 0 30px 60px -25px rgba(106, 35, 224, 0.55);
}
.cta-card h2 {
  color: #fff;
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  margin-bottom: 0.8rem;
}
.cta-card > p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 460px;
  margin: 0 auto 1.8rem;
}
.cta-card .waitlist input {
  border-color: transparent;
}
.cta-card .btn {
  background: #fff;
  color: var(--violet-d);
  box-shadow: none;
}
.cta-card .btn:hover {
  background: var(--violet-l);
}
.cta-card .form-note {
  color: rgba(255, 255, 255, 0.7);
}
.cta-card .form-note.ok {
  color: #c6f6d5;
}
.cta-card .form-note.err {
  color: #ffd5e2;
}

/* ===== Footer ===== */
.footer {
  text-align: center;
  padding: 2.5rem 1.2rem 3rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
}
.footer .brand {
  justify-content: center;
  margin-bottom: 0.5rem;
}
.footer p {
  margin: 0;
  font-size: 0.9rem;
}

/* ===== Responsive ===== */
@media (max-width: 760px) {
  .steps-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .waitlist-row {
    flex-direction: column;
  }
  .waitlist .btn {
    width: 100%;
  }
}

/* ===== Dark mode ===== */
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f4f1fb;
    --text: #b8b2c6;
    --muted: #8b8499;
    --bg: #100d18;
    --bg-soft: #16121f;
    --card: #1a1626;
    --border: #2a2438;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3),
      0 12px 32px -12px rgba(0, 0, 0, 0.6);
  }
  .nav {
    background: rgba(16, 13, 24, 0.78);
  }
  .waitlist input {
    background: var(--card);
  }
  .eyebrow {
    background: rgba(134, 59, 255, 0.18);
    color: #c9b1ff;
  }
  .step-num {
    background: rgba(134, 59, 255, 0.18);
    color: #c9b1ff;
  }
  .bubble {
    background: var(--card);
  }
}
