:root {
  --bg: #0a3b2c;
  --bg-deep: #06271d;
  --evergreen: #0a3b2c;
  --emerald: #109e62;
  --spring: #3ccb86;
  --lime: #c4f23f;
  --mint: #e8f8ef;
  --ink: #e8f8ef;
  --ink-2: rgba(232, 248, 239, 0.74);
  --ink-3: rgba(232, 248, 239, 0.52);
  --line: rgba(232, 248, 239, 0.14);
  --glass: rgba(232, 248, 239, 0.06);
  --font-head: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 6vw, 96px);
  --max: 1440px;
}

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

html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg-deep);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { max-width: 100%; }

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

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  background: var(--lime); color: var(--evergreen);
  padding: 10px 14px; border-radius: 8px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 16px; }

/* Backdrop: a gradient layer, then the WebGL canvas, then the page. */
.bg {
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(110% 70% at 76% -4%, #11573f 0%, rgba(17, 87, 63, 0) 60%),
    radial-gradient(80% 60% at 14% 104%, #0c4a35 0%, rgba(12, 74, 53, 0) 60%),
    linear-gradient(180deg, #0b4030 0%, #06271d 100%);
}
#gl { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; }
#labels { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0; }
.orb-label {
  position: absolute; left: 0; top: 0; opacity: 0;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  font: 600 0.875rem/1 var(--font-body);
  color: var(--evergreen); background: var(--mint);
  padding: 0.5rem 0.75rem; border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  will-change: transform;
}

/* Reveal: hidden only while the module is still loading. */
.js [data-reveal]:not([data-reveal-children]),
.js [data-reveal-children] > * { opacity: 0; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 clamp(16px, 3vw, 40px);
  transition: background 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(6, 39, 29, 0.62);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom-color: rgba(232, 248, 239, 0.08);
}
.nav__logo img { height: 30px; width: auto; display: block; }
.nav__links { display: flex; gap: 28px; margin: 0; padding: 0; list-style: none; }
.nav__links a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 0.9375rem; transition: color 0.2s; }
.nav__links a:hover { color: var(--ink); }

.pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 16px; border-radius: 999px;
  border: 1px solid rgba(196, 242, 63, 0.5); color: var(--lime);
  font-weight: 600; font-size: 0.875rem; text-decoration: none; white-space: nowrap;
  transition: background 0.2s;
}
.pill:hover { background: rgba(196, 242, 63, 0.1); }
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); animation: pulse 2.2s ease-out infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(196, 242, 63, 0.55); }
  100% { box-shadow: 0 0 0 12px rgba(196, 242, 63, 0); }
}

/* ---------- Type ---------- */
.eyebrow {
  margin: 0 0 18px; font-size: 0.8125rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--lime);
}
.eyebrow--dark { color: var(--emerald); }
h1 {
  margin: 0 0 0.45em; font-family: var(--font-head); font-weight: 800;
  font-size: clamp(2.8rem, 7vw, 6.2rem); line-height: 0.98; letter-spacing: -0.03em;
}
h1 em { font-style: normal; color: var(--lime); white-space: nowrap; }
.h2 {
  margin: 0 0 0.5em; font-family: var(--font-head); font-weight: 700;
  font-size: clamp(2.1rem, 4.4vw, 3.8rem); line-height: 1.04; letter-spacing: -0.025em;
  text-wrap: balance;
}
.lede { margin: 0; font-size: clamp(1.0625rem, 1.4vw, 1.3125rem); color: var(--ink-2); max-width: 36rem; }
.lede--dark { color: rgba(5, 59, 42, 0.78); }
.note { margin: 28px 0 0; color: var(--ink-3); font-size: 0.9375rem; }

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  font-weight: 600; font-size: 1rem; text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--lime); color: var(--evergreen); }
.btn--primary:hover { background: #d2f766; }
.btn--ghost { color: var(--ink); border: 1px solid var(--line); }
.btn--ghost:hover { border-color: rgba(232, 248, 239, 0.4); }

/* ---------- Scenes ---------- */
.scene { position: relative; z-index: 2; }
.scene__inner {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 96px var(--gutter) 64px; max-width: var(--max); margin: 0 auto; width: 100%;
}
.hero__copy { max-width: 44rem; }
.scene__copy { max-width: 42rem; }
.scene__copy--center { max-width: 44rem; margin: 0 auto; text-align: center; }
.scene__copy--center .lede { margin: 0 auto; }
.scene--end .scene__inner { padding-top: 50vh; justify-content: flex-start; }

.cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--ink-3); font-size: 0.6875rem; letter-spacing: 0.16em; text-transform: uppercase;
}
.cue i { width: 1px; height: 44px; background: var(--line); position: relative; overflow: hidden; display: block; }
.cue i::after {
  content: ""; position: absolute; left: 0; top: -50%; width: 100%; height: 50%;
  background: var(--lime); animation: cue 1.8s cubic-bezier(0.6, 0, 0.4, 1) infinite;
}
@keyframes cue { to { top: 100%; } }

.facts { display: flex; flex-wrap: wrap; gap: 20px 40px; margin: 40px 0 0; }
.fact dt { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.9rem, 3.2vw, 2.7rem); line-height: 1; color: var(--lime); letter-spacing: -0.02em; }
.fact dd { margin: 6px 0 0; color: var(--ink-3); font-size: 0.9375rem; }

/* Phone scenes: the copy scrolls in a left column while the 3D phone holds on the right. */
.scene__col { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); width: 100%; }
.scene__head {
  min-height: 72vh; display: flex; flex-direction: column; justify-content: center;
  max-width: 36rem; padding-top: 72px;
}
.step { min-height: 100vh; display: flex; align-items: center; max-width: 34rem; }
.step__body { opacity: 0.38; transition: opacity 0.5s ease; }
.step.is-active .step__body { opacity: 1; }
.step__n { display: block; font-family: var(--font-head); font-weight: 700; color: var(--lime); font-size: 0.9375rem; letter-spacing: 0.08em; margin-bottom: 14px; }
.step h3 { margin: 0 0 10px; font-family: var(--font-head); font-weight: 700; font-size: clamp(1.5rem, 2.4vw, 2.1rem); line-height: 1.12; letter-spacing: -0.02em; }
.step p { margin: 0; color: var(--ink-2); font-size: clamp(1rem, 1.25vw, 1.1875rem); }
.gl-fallback { display: none; }

/* ---------- Mint band ---------- */
.band { position: relative; z-index: 2; background: var(--mint); color: var(--evergreen); padding: clamp(72px, 12vh, 140px) 0; }
.band__inner {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 72px); align-items: center;
}
.band .h2 { color: var(--evergreen); }
.band img { width: 100%; height: auto; border-radius: 24px; box-shadow: 0 30px 80px rgba(5, 59, 42, 0.25); display: block; }

/* ---------- Film ---------- */
.film { position: relative; z-index: 2; background: rgba(6, 39, 29, 0.84); padding: clamp(72px, 12vh, 140px) 0; }
.film__inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.film__copy { max-width: 40rem; }
.film__frame {
  position: relative; max-width: 62rem; margin: 44px 0 0; border-radius: 24px; overflow: hidden;
  border: 1px solid var(--line); background: #000; aspect-ratio: 16 / 9;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.45);
}
.film video { width: 100%; height: 100%; display: block; object-fit: cover; }
.film__play {
  position: absolute; inset: 0; display: grid; place-items: center; border: 0; cursor: pointer;
  background: linear-gradient(180deg, rgba(6, 39, 29, 0.08), rgba(6, 39, 29, 0.5)); color: var(--evergreen);
}
.film__play span {
  width: 88px; height: 88px; border-radius: 50%; background: var(--lime);
  display: grid; place-items: center; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease;
}
.film__play span svg { margin-left: 4px; }
.film__play:hover span { transform: scale(1.06); }
.film.is-playing .film__play { display: none; }

/* ---------- Trust ---------- */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 44px 0 0; padding: 0; list-style: none; max-width: 64rem; }
.card {
  background: var(--glass); border: 1px solid var(--line); border-radius: 22px; padding: 28px;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.card svg { width: 28px; height: 28px; color: var(--lime); }
.card h3 { margin: 18px 0 8px; font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--ink-2); }

/* ---------- Download ---------- */
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; justify-content: center; }
.store {
  display: flex; flex-direction: column; align-items: flex-start; text-align: left;
  padding: 14px 22px; border-radius: 16px; min-width: 180px;
  border: 1px solid var(--line); background: var(--glass);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.store b { font-family: var(--font-head); font-size: 1.05rem; }
.store span { color: var(--ink-3); font-size: 0.8125rem; }

/* ---------- Footer ---------- */
.footer { position: relative; z-index: 2; border-top: 1px solid var(--line); padding: 40px 0; background: rgba(6, 39, 29, 0.72); }
.footer__inner {
  display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: center; justify-content: space-between;
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); color: var(--ink-3); font-size: 0.875rem;
}
.footer__inner p { margin: 0; }
.footer__inner a { color: var(--ink-2); }
.footer img { height: 24px; width: auto; }

/* ---------- Fallbacks ---------- */
.no-gl .gl-fallback { display: block; position: sticky; top: 12vh; max-height: 76vh; width: auto; margin: 0 auto; }
.no-gl .scene--phone { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.no-gl #labels { display: none; }
.og .nav, .og .cue { display: none; }
.og h1 { font-size: 5rem; }
.og .hero__copy { max-width: 38rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav__links { gap: 20px; }
}
@media (max-width: 860px) {
  .band__inner { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 1rem; }
  .nav { height: 64px; }
  .nav__links { display: none; }
  .nav__logo img { height: 26px; }
  .scene--hero .scene__inner { justify-content: flex-end; padding-bottom: 96px; }
  .scene--anything .scene__inner { justify-content: flex-end; padding-bottom: 72px; }
  .scene__head { min-height: 100vh; justify-content: flex-end; padding-bottom: 12vh; }
  .step { align-items: flex-end; padding-bottom: 12vh; }
  .step__body {
    background: rgba(6, 39, 29, 0.66); border: 1px solid var(--line); border-radius: 20px; padding: 20px 22px;
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  }
  .scene--end .scene__inner { padding-top: 42vh; }
  .facts { gap: 16px 28px; }
  .no-gl .scene--phone { grid-template-columns: 1fr; }
  .cue { display: none; }
}
@media (max-width: 700px) {
  .cards { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .pill__dot, .cue i::after { animation: none; }
  .step__body, .btn, .nav, .film__play span { transition: none; }
}
