:root {
  --teal: #0c7b7a;
  --teal-glow: #0e9190;
  --ink: #075250;
  --void: #064746;
  --foam: #e8f6f5;
  --muted: rgba(232, 246, 245, 0.82);
  --accent: #f4622a;
  --stroke: rgba(232, 246, 245, 0.12);
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Poppins", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 3.5rem;
  --page-x: 1.15rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

html.lenis,
html.lenis body {
  height: auto;
}

body {
  margin: 0;
  min-height: 100dvh;
  color: var(--foam);
  font-family: var(--font-body);
  background: var(--void);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.no-webgl {
  background:
    radial-gradient(680px 420px at 100% 0%, rgba(14, 145, 144, 0.38), transparent 50%),
    radial-gradient(520px 360px at 0% 40%, rgba(12, 123, 122, 0.22), transparent 55%),
    radial-gradient(480px 320px at 70% 100%, rgba(244, 98, 42, 0.14), transparent 50%),
    linear-gradient(180deg, var(--void) 0%, var(--ink) 50%, #052222 100%);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--foam);
  color: var(--ink);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.grain,
.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.grain {
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.vignette {
  background: radial-gradient(ellipse at center, transparent 55%, rgba(6, 71, 70, 0.4) 100%);
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 60;
  pointer-events: none;
}

.progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--teal-glow), var(--accent));
  transform: scaleX(var(--p, 0));
  transform-origin: left;
}

.nav,
main,
.footer {
  position: relative;
  z-index: 2;
}

.nav {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 var(--page-x);
  padding-top: env(safe-area-inset-top);
  background: linear-gradient(180deg, rgba(6, 71, 70, 0.7), transparent);
}

.nav {
  transition: transform 0.45s var(--ease-out), background 0.3s var(--ease-out);
}

.nav.is-scrolled {
  background: rgba(6, 71, 70, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(232, 246, 245, 0.08);
}

.nav.is-hidden {
  transform: translateY(-100%);
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav__mark {
  border-radius: 10px;
}

.nav__word {
  font-size: 1.15rem;
}

.nav__links {
  display: none;
  gap: 1.9rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
}

.nav__links a {
  transition: color 0.25s var(--ease-out);
}

.nav__links a:hover,
.nav__links a:focus-visible {
  color: var(--foam);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--solid {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 30px rgba(244, 98, 42, 0.35);
}

.btn--solid:hover {
  box-shadow: 0 10px 40px rgba(244, 98, 42, 0.55);
}

.btn--sm {
  padding: 0.55rem 1.05rem;
  font-size: 0.82rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding:
    calc(var(--nav-h) + env(safe-area-inset-top) + 1rem)
    var(--page-x)
    clamp(2rem, 7vh, 4rem);
}

.hero__inner {
  max-width: 44rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(232, 246, 245, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pill__dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(244, 98, 42, 0.6);
  animation: ping 2s infinite;
}

@keyframes ping {
  70% { box-shadow: 0 0 0 0.55rem rgba(244, 98, 42, 0); }
  100% { box-shadow: 0 0 0 0 rgba(244, 98, 42, 0); }
}

.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 10vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}

.line__in {
  display: inline-block;
}

.line__in--accent {
  background: linear-gradient(110deg, #ffd9c7 0%, var(--accent) 60%, #ff8a4a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lede {
  margin: 1.1rem 0 0;
  max-width: 30rem;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--muted);
}

.hero__actions {
  margin-top: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.hero__actions .store-btn--secondary {
  opacity: 0.7;
  border-color: rgba(232, 246, 245, 0.12);
  background: transparent;
}

.hero__scroll {
  display: none;
}

/* Marquee */
.marquee {
  overflow: hidden;
  padding: 1.1rem 0;
  border-block: 1px solid var(--stroke);
  background: rgba(6, 71, 70, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: max-content;
  animation: marquee 36s linear infinite;
}

.marquee__track span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 7vw, 4rem);
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(232, 246, 245, 0.45);
}

.marquee__track i {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* Stages */
.stage {
  padding: clamp(3.5rem, 12vh, 7rem) var(--page-x);
}

.stage__inner {
  max-width: 40rem;
}

.kicker {
  margin: 0 0 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 7.5vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.lede {
  margin: 1rem 0 0;
  max-width: 34rem;
  color: var(--muted);
  line-height: 1.6;
}

.statement {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.55rem, 6.4vw, 2.9rem);
  line-height: 1.18;
  letter-spacing: -0.035em;
}

.statement .w {
  display: inline-block;
  margin-right: 0.26em;
}

/* Steps */
.steps {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1rem 1.05rem;
  border-radius: 1rem;
  border: 1px solid var(--stroke);
  background: rgba(6, 71, 70, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0.45;
  transition: opacity 0.5s var(--ease-out), border-color 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.step.is-active {
  opacity: 1;
  border-color: rgba(244, 98, 42, 0.55);
  transform: translateX(0.35rem);
}

.step__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(232, 246, 245, 0.5);
  transition: color 0.5s var(--ease-out), -webkit-text-stroke-color 0.5s var(--ease-out);
}

.step.is-active .step__num {
  color: var(--accent);
  -webkit-text-stroke-color: var(--accent);
}

.step__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.step__body {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* Cards */
.cards {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.9rem;
}

.card {
  --mx: 50%;
  --my: 50%;
  position: relative;
  padding: 1.15rem 1.1rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #083b3a;
  background:
    radial-gradient(260px circle at var(--mx) var(--my), rgba(244, 98, 42, 0.16), transparent 60%),
    linear-gradient(145deg, #f7f5ea, #ebe8d6);
  box-shadow: 0 18px 50px rgba(2, 40, 40, 0.35);
  transition: border-color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.card .card__body {
  color: rgba(8, 59, 58, 0.78);
}

.card .card__icon {
  padding: 0.5rem;
  border-radius: 0.8rem;
  background: var(--teal);
  color: #f5f3e8;
}

.card:hover {
  border-color: rgba(244, 98, 42, 0.45);
  transform: translateY(-3px);
}

.card__icon {
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: 0.9rem;
  color: var(--accent);
}

.card__kicker {
  margin: 0 0 0.4rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  letter-spacing: -0.025em;
}

.card__body {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* Download */
.download {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 4rem var(--page-x) calc(3rem + env(safe-area-inset-bottom));
}

.download__inner {
  width: min(44rem, 100%);
  text-align: center;
}

.download__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.8rem, 14vw, 8rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  background: linear-gradient(120deg, #fff 20%, #9be7e4 60%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.download__title .reveal {
  display: inline-block;
}

.download__lede {
  margin: 1rem auto 0;
  max-width: 28rem;
  color: var(--muted);
  line-height: 1.6;
}

.download__stores {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: center;
}

/* Store buttons */
.store-btn {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  width: 100%;
  min-height: 3.1rem;
  padding: 0.55rem 1.1rem 0.55rem 0.9rem;
  border-radius: 0.9rem;
  background: #0a1212;
  border: 1px solid rgba(232, 246, 245, 0.22);
  color: #fff;
  transition: transform 0.25s var(--ease-out), border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.store-btn:hover,
.store-btn:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(244, 98, 42, 0.7);
  box-shadow: 0 10px 34px rgba(244, 98, 42, 0.22);
}

.store-btn svg {
  width: 1.55rem;
  height: 1.55rem;
  flex-shrink: 0;
}

.store-btn span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}

.store-btn small {
  font-size: 0.65rem;
  opacity: 0.75;
}

.store-btn strong {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.store-btn--lg {
  min-height: 3.6rem;
  padding: 0.7rem 1.35rem 0.7rem 1.05rem;
}

.store-btn--lg strong {
  font-size: 1.15rem;
}

.footer {
  padding: 1.5rem var(--page-x) calc(1.75rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--stroke);
  background: rgba(6, 71, 70, 0.7);
  color: var(--muted);
  font-size: 0.8rem;
}

.footer__row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.footer__brand {
  color: var(--foam);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(244, 98, 42, 0.7);
}

.footer__brand:hover,
.footer__brand:focus-visible {
  color: var(--accent);
}

.footer__links {
  display: flex;
  gap: 1.25rem;
}

.footer__links a:hover,
.footer__links a:focus-visible {
  color: var(--foam);
}

/* Mobile: soft scrim so text stays readable over the 3D mark */
@media (max-width: 767px) {
  .stage__inner,
  .hero__inner {
    position: relative;
  }

  .stage {
    padding-block: 3rem;
    background: linear-gradient(180deg, transparent, rgba(6, 71, 70, 0.55) 25%, rgba(6, 71, 70, 0.55) 80%, transparent);
  }

  .hero__title .line {
    white-space: nowrap;
  }

  .hero__inner {
    padding-top: 1rem;
  }

  .hero__lede {
    font-size: 0.95rem;
  }

  .card {
    padding: 1rem;
  }

  .step {
    gap: 0.85rem;
  }

  .download {
    min-height: 90svh;
  }

  .store-btn {
    min-height: 3.4rem;
  }
}

@media (min-width: 768px) {
  html {
    font-size: clamp(16px, 0.5vw + 12px, 21px);
  }

  :root {
    --nav-h: 4.5rem;
    --page-x: clamp(1.5rem, 5vw, 5rem);
    --gutter: max(var(--page-x), calc((100vw - 82rem) / 2));
  }

  .nav,
  .footer {
    padding-inline: var(--gutter);
  }

  .hero,
  .stage,
  .download {
    padding-inline: var(--gutter);
  }

  .hero__scroll {
    left: var(--gutter);
  }

  .kicker,
  .card__kicker {
    font-size: 0.78rem;
  }

  .title {
    font-size: 3rem;
  }

  .statement {
    font-size: 2.7rem;
  }

  .lede {
    font-size: 1.1rem;
  }

  .card {
    padding: 1.6rem 1.5rem;
  }

  .card__title {
    font-size: 1.55rem;
  }

  .card__body {
    font-size: 1rem;
  }

  .hero {
    align-items: center;
  }

  .hero__inner {
    max-width: 52rem;
  }

  .hero__title {
    font-size: clamp(3.6rem, 6.4vw, 6.4rem);
  }

  .hero__lede {
    font-size: 1.1rem;
  }

  .hero__actions,
  .download__stores {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .download__stores {
    justify-content: center;
  }

  .store-btn {
    width: auto;
  }

  .hero__actions .store-btn--secondary {
    opacity: 1;
    border-color: rgba(232, 246, 245, 0.22);
    background: #0a1212;
  }

  .hero__scroll {
    position: absolute;
    left: var(--page-x);
    bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
  }

  .hero__scroll span {
    width: 2.5rem;
    height: 1px;
    background: currentColor;
    transform-origin: left;
    animation: scrollLine 2.2s var(--ease-out) infinite;
  }

  @keyframes scrollLine {
    0% { transform: scaleX(0); }
    60% { transform: scaleX(1); }
    100% { transform: scaleX(1); opacity: 0; }
  }

  .stage {
    min-height: 90vh;
    display: flex;
    align-items: center;
  }

  .stage__inner {
    width: min(44rem, 48%);
    max-width: none;
  }

  .stage--right {
    justify-content: flex-end;
  }

  .stage--wide {
    min-height: auto;
  }

  .stage--wide .stage__inner {
    width: 100%;
  }

  .stage--wide .lede {
    max-width: 38rem;
  }

  .stage--steps {
    min-height: 120vh;
  }

  .steps {
    gap: 2.2rem;
    margin-top: 2.5rem;
  }

  .step {
    padding: 1.35rem 1.5rem;
    gap: 1.5rem;
  }

  .step__num {
    font-size: 3.2rem;
  }

  .step__title {
    font-size: 1.7rem;
  }

  .step__body {
    font-size: 1rem;
  }

  .cards--two {
    grid-template-columns: 1fr 1fr;
  }

  .cards--bento {
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
  }

  .cards--bento .card {
    grid-column: span 3;
  }

  .cards--bento .card--big {
    grid-column: span 4;
    grid-row: span 2;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 16rem;
  }

  .cards--bento .card--big .card__title {
    font-size: 2.2rem;
  }

  .cards--bento .card:nth-child(2),
  .cards--bento .card:nth-child(3) {
    grid-column: span 2;
  }

  .cards--bento .card--wide {
    grid-column: span 6;
  }

  .download {
    align-items: flex-end;
  }

  .footer {
    padding: 2rem var(--page-x) 2.5rem;
    font-size: 0.85rem;
  }
}

@media (min-width: 860px) {
  .nav__links {
    display: flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track,
  .pill__dot,
  .hero__scroll span {
    animation: none;
  }

  .card,
  .step {
    transition: none;
  }
}
