:root {
  --cream: #faf6f2;
  --cream-deep: #f2ece6;
  --surface: #fffdfb;
  --border: #e4dbd2;
  --ink: #1b1714;
  --ink-muted: #877a6f;
  --ink-soft: #9a8d81;
  --yellow: #ffd058;
  --yellow-deep: #ffb700;
  --periwinkle: #6a74bd;

  --font-display: "Outfit", system-ui, -apple-system, sans-serif;
  --font-ui: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --font-body: "42dot Sans", system-ui, -apple-system, sans-serif;

  --shell: 1024px;
  --gutter: 24px;
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

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

:focus-visible {
  outline: 2px solid var(--periwinkle);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- shared ---------- */

.section__inner,
.stats__inner,
.science__inner,
.nav__inner,
.footer__inner,
.features__inner {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
}

.eyebrow {
  font-weight: 500;
  font-size: 11px;
  line-height: 16.5px;
  letter-spacing: 1.32px;
  text-transform: uppercase;
}
.eyebrow--muted { color: var(--ink-muted); }

.section__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.95px;
  margin-top: 16px;
}

.rule {
  display: block;
  width: 32px;
  height: 2px;
  background: linear-gradient(to right, var(--yellow), var(--yellow-deep));
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  font-family: var(--font-ui);
  font-weight: 500;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease;
}
.btn:hover { filter: brightness(0.96); }
.btn:active { transform: translateY(1px); }
.btn--solid { background: var(--yellow); padding: 13px 28px; font-size: 15px; line-height: 22.5px; }
.btn--gradient { background: linear-gradient(158.6deg, var(--yellow) 0%, var(--yellow-deep) 100%); padding: 13px 28px; font-size: 15px; line-height: 22.5px; }
.btn--sm { padding: 8px 18px; font-size: 13px; line-height: 19.5px; }

.signup {
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 384px;
}
.signup__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 14px;
}
.signup__input::placeholder { color: rgba(27, 23, 20, 0.5); }

.brand { display: flex; align-items: center; gap: 10px; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 17px;
  line-height: 25.5px;
  letter-spacing: -0.17px;
  white-space: nowrap;
}

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 242, 0.93);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--nav-h);
  padding-inline: var(--gutter);
}
.nav__links { display: flex; gap: 32px; }
.nav__links a {
  font-size: 14px;
  line-height: 21px;
  transition: opacity 0.15s ease;
}
.nav__links a:hover { opacity: 0.6; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  min-height: 651px;
  display: grid;
  place-items: center;
  padding: 96px var(--gutter);
  background: var(--cream);
  text-align: center;
}
.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 800px;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(38px, 7vw, 64px);
  line-height: 0.95;
  letter-spacing: -1.45px;
}
.hero__title-accent { color: var(--yellow); }
.hero__lede {
  max-width: 597px;
  margin-top: 24px;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 25px;
}
.hero .signup { margin-top: 40px; }
.hero__note { margin-top: 16px; font-size: 12px; line-height: 18px; }

/* decorative oversized wordmark bleeding off the hero edges.
   The sliver is cropped by the SVG viewBox (text baseline sits at y=0), not by
   overflow — a viewBox window can't be defeated by compositing quirks. */
.marquee {
  position: absolute;
  left: 0;
  display: block;
  width: 100%;
  height: 12px;
  pointer-events: none;
}
.marquee--top { top: 0; }
.marquee--bottom { bottom: 0; }
.marquee__text {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 141px;
  letter-spacing: -3.53px;
  fill: var(--ink);
}
.marquee__accent { fill: var(--yellow); }

/* ---------- features (sticky phone) ---------- */

.features { padding-inline: var(--gutter); background: var(--cream); }
.features__inner {
  display: grid;
  grid-template-columns: 480px 480px;
  gap: 64px;
  justify-content: center;
}
.features__phone {
  position: sticky;
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature {
  min-height: 651px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 40px;
}
.feature__eyebrow {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13px;
  line-height: 19.5px;
  color: var(--ink-muted);
}
.feature__eyebrow--active { color: var(--periwinkle); }
.feature__title {
  margin-top: 16px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.25;
  letter-spacing: -0.9px;
}
.feature__body {
  max-width: 448px;
  margin-top: 20px;
  font-size: 16px;
  line-height: 27.2px;
}

/* phone mockup */
.phone { position: relative; width: 300px; height: 630px; }
.phone__glow {
  position: absolute;
  inset: -32px;
  border-radius: 50%;
  opacity: 0.3;
  filter: blur(64px);
  background: radial-gradient(closest-side, var(--yellow) 0%, rgba(255, 208, 88, 0) 65%);
}
.phone__body {
  position: relative;
  width: 300px;
  height: 630px;
  padding: 12px;
  border-radius: 52px;
  background: var(--ink);
  box-shadow: 0 25px 25px rgba(0, 0, 0, 0.25);
}
.phone__screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 606px;
  border-radius: 42px;
  overflow: hidden;
  background: linear-gradient(to bottom, #e0e3f7 0%, var(--surface) 42%, var(--cream) 100%);
}
.phone__notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 28px;
  border-radius: 999px;
  background: var(--ink);
}

.screen__head { padding: 56px 24px 0; }
.screen__pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--periwinkle);
  font-weight: 500;
  font-size: 10px;
  line-height: 15px;
}
.screen__title {
  margin-top: 19px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  line-height: 23.75px;
}
.screen__bar { height: 10px; border-radius: 999px; background: rgba(0, 0, 0, 0.07); }
.screen__bar--long { width: 171px; margin-top: 16px; }
.screen__bar--short { width: 114px; margin-top: 8px; }

.screen__player {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-inline: 32px;
}
.screen__icon-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  margin-bottom: 32px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.1);
}
.wave {
  display: flex;
  align-items: center;
  gap: 3px;
  width: 212px;
  height: 32px;
  margin-bottom: 32px;
}
.wave i {
  flex: 1;
  border-radius: 999px;
  background: var(--periwinkle);
}
.wave .wave__off { background: rgba(0, 0, 0, 0.08); }
.screen__play {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--yellow) 0%, var(--yellow-deep) 100%);
  box-shadow: 0 1px 1.5px rgba(0, 0, 0, 0.1), 0 1px 1px rgba(0, 0, 0, 0.1);
}
.screen__dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
}
.screen__dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.14);
}
.screen__dot--active { width: 18px; background: var(--ink); }

/* ---------- stats ---------- */

.stats {
  padding: 40px var(--gutter);
  background: var(--cream-deep);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.stat { text-align: center; }
.stat__value {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  line-height: 33px;
}
.stat__label { margin-top: 4px; font-size: 12px; line-height: 16.5px; }

/* ---------- why it's different ---------- */

.why { padding: 96px var(--gutter); background: var(--cream-deep); }
.why__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 64px;
  background: var(--border);
}
.why__card { padding: 32px; background: var(--surface); }
.why__card:nth-child(2n) { background: var(--cream); }
.why__card-title {
  margin-top: 20px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  line-height: 27px;
}
.why__card-body { margin-top: 12px; font-size: 14px; line-height: 22.75px; }

/* ---------- science ---------- */

.science { padding: 96px var(--gutter); background: var(--ink); color: var(--surface); }
.science__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.science__title { color: var(--surface); }
.science__body { margin-top: 24px; color: var(--ink-soft); font-size: 16px; line-height: 28px; }
.science__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.science__card {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}
.science__card-value {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  line-height: 27.5px;
}
.science__card-label { margin-top: 8px; color: var(--ink-soft); font-size: 12px; line-height: 18px; }

/* ---------- final CTA ---------- */

.cta {
  padding: 112px var(--gutter);
  background: linear-gradient(to bottom, var(--cream-deep), var(--cream));
  border-top: 1px solid var(--border);
}
.cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 512px;
  margin-inline: auto;
  text-align: center;
}
.cta__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--yellow) 0%, var(--yellow-deep) 100%);
}
.cta__title {
  margin-top: 32px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(30px, 4.6vw, 44px);
  line-height: 1.08;
  letter-spacing: -1.1px;
}
.cta__lede { margin-top: 20px; font-size: 16px; line-height: 26px; }
.cta .signup { margin-top: 40px; }
.cta__note { margin-top: 16px; font-size: 12px; line-height: 18px; }

/* ---------- footer ---------- */

.footer {
  padding: 40px var(--gutter);
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer .brand { gap: 8px; }
.footer__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  line-height: 22.5px;
  color: var(--ink-soft);
}
.footer__disclaimer { color: var(--ink-muted); font-size: 12px; line-height: 18px; text-align: center; }
.footer__links { display: flex; gap: 24px; }
.footer__links a {
  color: var(--ink-muted);
  font-size: 12px;
  line-height: 18px;
  transition: color 0.15s ease;
}
.footer__links a:hover { color: var(--ink-soft); }

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .features__inner { grid-template-columns: minmax(0, 420px) minmax(0, 480px); gap: 48px; }
}

@media (max-width: 900px) {
  .features__inner { grid-template-columns: 1fr; gap: 0; }
  .features__phone {
    position: static;
    height: auto;
    padding-block: 64px;
  }
  .feature { min-height: 0; padding-block: 40px; }
  .science__inner { grid-template-columns: 1fr; gap: 40px; }
  .footer__inner { flex-direction: column; text-align: center; }
}

@media (max-width: 720px) {
  .nav__links { display: none; }
  .why__grid { grid-template-columns: 1fr; }
  .stats__inner { grid-template-columns: 1fr 1fr; gap: 24px; }
  .why, .science { padding-block: 64px; }
  .cta { padding-block: 80px; }
}

@media (max-width: 560px) {
  .hero { min-height: 0; padding-block: 72px; }
  .signup { flex-direction: column; max-width: 320px; }
  .signup__input { width: 100%; }
  .signup .btn { width: 100%; }
  .marquee { display: none; }
  .science__cards { grid-template-columns: 1fr; }
  .cta__title br { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
