/* ════════════════════════════════════════════════════════════════════
   StepPhone — landing experience
   Brand: electric blue #1F5BFF · orange #FF6A2C · Manrope + JetBrains Mono
   ════════════════════════════════════════════════════════════════════ */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  --blue: #1F5BFF;
  --blue-deep: #0E3FD6;
  --blue-soft: rgba(31, 91, 255, 0.09);
  --blue-glow: rgba(31, 91, 255, 0.34);
  --orange: #FF6A2C;
  --ink: #0B1222;
  --ink-2: #0F172A;
  --sky: #EEF3FA;
  --text: #0F172A;
  --muted: #51607A;
  --faint: #8A97AC;
  --card: #FFFFFF;
  --line: rgba(15, 23, 42, 0.08);
  --glass: rgba(255, 255, 255, 0.62);
  --glass-line: rgba(15, 23, 42, 0.07);
  --sans: 'Manrope', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

body {
  background: var(--sky);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--blue); color: #fff; }

/* Hide the native cursor when the custom one is active */
html.cursor-on, html.cursor-on * { cursor: none !important; }

/* Sections account for the fixed header when anchored */
section[id], main[id] { scroll-margin-top: 86px; }

/* Elements choreographed by GSAP start hidden (only once GSAP is confirmed
   loaded — the .gsap class — so the page never strands invisible). */
html.gsap [data-intro],
html.gsap [data-line],
html.gsap [data-chip] { opacity: 0; }

.slabel {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 18px;
}
.slabel-light { color: #7FA0FF; }
.slabel-cta { color: rgba(255, 255, 255, 0.7); }

.h2 {
  margin: 0 0 14px;
  font-weight: 800;
  font-size: clamp(34px, 4.6vw, 62px);
  letter-spacing: -0.04em;
  line-height: 1.02;
  text-wrap: balance;
}
.h2 em { font-style: normal; color: var(--blue); }
.h2-light { color: #F2F6FD; }
.h2-light em { color: #7FA0FF; }

.sub {
  margin: 0;
  font-size: clamp(15px, 1.3vw, 18px);
  font-weight: 500;
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}

/* ── Preloader ──────────────────────────────────────────────────────── */
.preloader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--ink);
  display: grid; place-items: center;
  color: #F2F6FD;
}
.pre-inner { text-align: center; }
.pre-feet { display: flex; justify-content: center; gap: 10px; margin-bottom: 22px; color: var(--blue); }
.pf { width: 15px; height: 25px; opacity: 0.25; }
.pf-l { animation: prestep 0.52s ease-in-out infinite; }
.pf-r { animation: prestep 0.52s ease-in-out infinite 0.26s; }
@keyframes prestep {
  0%, 100% { opacity: 0.25; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-4px); }
}
.pre-num {
  font-family: var(--mono); font-weight: 700;
  font-size: clamp(56px, 9vw, 96px); line-height: 1;
  letter-spacing: -0.02em;
}
.pre-of { font-size: 0.32em; color: var(--faint); margin-left: 10px; font-weight: 500; }
.pre-bar {
  width: min(280px, 60vw); height: 3px; border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
  margin: 26px auto 18px; overflow: hidden;
}
.pre-bar span {
  display: block; height: 100%; width: 100%;
  background: var(--blue); border-radius: 99px;
  transform: scaleX(0); transform-origin: left;
}
.pre-label {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.3em; color: var(--faint);
}

/* ── Custom cursor ──────────────────────────────────────────────────── */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 300;
  pointer-events: none; border-radius: 50%;
  opacity: 0;
}
html.cursor-on.cursor-live .cursor-dot, html.cursor-on.cursor-live .cursor-ring { opacity: 1; }
.cursor-dot {
  width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px;
  background: var(--blue);
}
.cursor-ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border: 1.5px solid var(--blue-glow);
  transition: width 240ms var(--ease), height 240ms var(--ease),
              margin 240ms var(--ease), border-color 240ms var(--ease),
              background 240ms var(--ease);
}
.cursor-ring.is-hover {
  width: 58px; height: 58px; margin: -29px 0 0 -29px;
  border-color: var(--blue);
  background: rgba(31, 91, 255, 0.07);
}

/* ── Pedometer pill ─────────────────────────────────────────────────── */
.odo {
  position: fixed; left: 22px; bottom: 22px; z-index: 90;
  display: flex; align-items: center; gap: 9px;
  background: rgba(11, 18, 34, 0.85);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  color: #F2F6FD;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 9px 16px 9px 13px;
  box-shadow: 0 14px 34px -10px rgba(7, 11, 22, 0.5);
  transform: translateY(120%); opacity: 0;
  transition: transform 600ms var(--ease), opacity 600ms var(--ease);
}
.odo.show { transform: translateY(0); opacity: 1; }
.odo svg { width: 11px; height: 18px; color: var(--blue); flex-shrink: 0; }
.odo-num { font-family: var(--mono); font-weight: 700; font-size: 14px; min-width: 3ch; text-align: right; }
.odo-l { font-size: 11px; font-weight: 600; color: var(--faint); letter-spacing: 0.04em; }

/* ── Header ─────────────────────────────────────────────────────────── */
.hdr {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 44px;
  transition: padding 400ms var(--ease), background 400ms var(--ease),
              box-shadow 400ms var(--ease), backdrop-filter 400ms var(--ease);
}
.hdr.scrolled {
  padding: 12px 44px;
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 1px 0 var(--line), 0 12px 32px -18px rgba(7, 11, 22, 0.2);
}
/* While the mobile menu is open the header floats above it, transparent */
.hdr.menu-open {
  z-index: 160;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.hdr.menu-open .wm { color: #F2F6FD; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--text); }
.brand .mark { display: block; border-radius: 9px; box-shadow: 0 2px 8px -2px var(--blue-glow); }
.brand .wm { font-weight: 800; font-size: 20px; letter-spacing: -0.6px; }

nav.links { display: flex; align-items: center; gap: 2px; }
.navlink {
  text-decoration: none; color: var(--muted);
  font-weight: 700; font-size: 14px; letter-spacing: -0.1px;
  padding: 9px 14px; border-radius: 999px;
  transition: color 160ms ease, background 160ms ease;
}
.navlink:hover { color: var(--text); background: var(--glass); }

.navitem { position: relative; }
.navtrigger {
  border: none; cursor: pointer; font-family: inherit;
  background: transparent; color: var(--muted);
  font-weight: 700; font-size: 14px; letter-spacing: -0.1px;
  padding: 9px 14px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 6px;
  transition: color 160ms ease, background 160ms ease;
}
.navtrigger:hover, .navtrigger[aria-expanded="true"] { color: var(--text); background: var(--glass); }
.navtrigger .chev { transition: transform 200ms ease; opacity: 0.7; }
.navtrigger[aria-expanded="true"] .chev { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 12px); left: 0;
  width: 296px; z-index: 40;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--glass-line);
  border-radius: 18px;
  padding: 18px 18px 16px;
  box-shadow: 0 1px 2px rgba(7, 11, 22, 0.06), 0 24px 50px -16px rgba(7, 11, 22, 0.28);
  opacity: 0; transform: translateY(-8px) scale(0.98); transform-origin: top left;
  pointer-events: none; visibility: hidden;
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms;
}
.navitem.open .dropdown { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; visibility: visible; }
.dd-title { font-weight: 800; font-size: 15px; letter-spacing: -0.3px; }
.dd-body { margin: 7px 0 14px; font-size: 12.8px; line-height: 1.5; color: var(--muted); font-weight: 500; text-wrap: pretty; }
.dd-mail {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; font-weight: 700; font-size: 13px; color: var(--text);
  background: var(--blue-soft);
  border: 1px solid rgba(31, 91, 255, 0.2);
  border-radius: 12px; padding: 10px 12px;
  transition: background 160ms ease, border-color 160ms ease;
}
.dd-mail:hover { background: rgba(31, 91, 255, 0.14); border-color: rgba(31, 91, 255, 0.34); }
.dd-ic { width: 30px; height: 30px; border-radius: 9px; background: var(--card); display: grid; place-items: center; flex-shrink: 0; box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1); }

.nav-cta {
  margin-left: 16px;
  border: none; cursor: pointer; font-family: inherit;
  background: var(--ink-2); color: #fff;
  font-weight: 800; font-size: 13.5px; letter-spacing: -0.1px;
  padding: 11px 20px; border-radius: 999px;
  box-shadow: 0 1px 2px rgba(7, 11, 22, 0.2), 0 8px 20px -6px rgba(7, 11, 22, 0.35);
  transition: box-shadow 160ms ease;
}
.nav-cta:hover { box-shadow: 0 1px 2px rgba(7, 11, 22, 0.2), 0 12px 26px -6px rgba(7, 11, 22, 0.4); }

/* Burger (mobile) */
.burger {
  display: none;
  position: relative; z-index: 160;
  width: 42px; height: 42px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--glass); cursor: pointer;
}
.burger span {
  position: absolute; left: 12px; right: 12px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform 360ms var(--ease), top 360ms var(--ease), background 360ms;
}
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 23px; }
.burger.open span { background: #F2F6FD; }
.burger.open span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.burger.open span:nth-child(2) { top: 19px; transform: rotate(-45deg); }

/* ── Mobile menu ────────────────────────────────────────────────────── */
.mmenu {
  position: fixed; inset: 0; z-index: 150;
  background: var(--ink);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 110px 28px 36px;
  transform: translateY(-100%);
  transition: transform 640ms var(--ease);
  visibility: hidden;
}
.mmenu.open { transform: translateY(0); visibility: visible; }
.mm-links { display: flex; flex-direction: column; }
.mm-link {
  text-decoration: none; color: #F2F6FD;
  font-weight: 800; font-size: clamp(34px, 9vw, 48px); letter-spacing: -0.03em;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0; transform: translateY(18px);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease), color 200ms;
}
.mm-link:hover { color: var(--blue); }
.mmenu.open .mm-link { opacity: 1; transform: translateY(0); }
.mmenu.open .mm-link:nth-child(1) { transition-delay: 0.18s; }
.mmenu.open .mm-link:nth-child(2) { transition-delay: 0.25s; }
.mmenu.open .mm-link:nth-child(3) { transition-delay: 0.32s; }
.mmenu.open .mm-link:nth-child(4) { transition-delay: 0.39s; }
.mm-foot {
  display: flex; align-items: center; gap: 16px;
  opacity: 0; transition: opacity 500ms var(--ease) 0.46s;
}
.mmenu.open .mm-foot { opacity: 1; }
.mm-note { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; color: var(--faint); text-transform: uppercase; }

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 110px 44px 70px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.blob {
  position: absolute; border-radius: 50%; filter: blur(70px);
}
.b1 {
  width: 56vw; height: 56vw; right: -14vw; top: -22vw;
  background: radial-gradient(circle, rgba(157, 208, 255, 0.75) 0%, rgba(157, 208, 255, 0) 65%);
  animation: drift 16s ease-in-out infinite alternate;
}
.b2 {
  width: 40vw; height: 40vw; left: -16vw; bottom: -18vw;
  background: radial-gradient(circle, rgba(31, 91, 255, 0.18) 0%, rgba(31, 91, 255, 0) 65%);
  animation: drift 20s ease-in-out infinite alternate-reverse;
}
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(4vw, 3vw) scale(1.08); }
}
.grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  opacity: 0.05; mix-blend-mode: overlay;
}

.hero-grid {
  position: relative; z-index: 5;
  max-width: 1320px; width: 100%; margin: 0 auto;
  display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 48px;
  align-items: center;
}

.copy { max-width: 620px; }
.kicker {
  display: inline-flex; align-items: center; gap: 13px;
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px; white-space: nowrap;
}
.kicker .k-rule { width: 32px; height: 2px; border-radius: 2px; background: var(--blue); }

.h1 {
  margin: 0 0 26px;
  font-weight: 800; letter-spacing: -0.045em; line-height: 0.97;
  font-size: clamp(48px, 6.5vw, 96px);
}
.lm { display: block; overflow: hidden; padding-bottom: 0.35em; margin-bottom: -0.35em; }
.lw { display: inline-block; will-change: transform; }
.h1 em {
  font-style: normal;
  background: linear-gradient(108deg, var(--blue) 18%, var(--blue-deep) 92%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.h1 .hl { position: relative; display: inline-block; }
.uline {
  position: absolute; left: 1%; bottom: calc(-0.06em - 4px);
  width: 98%; height: 0.13em;
  overflow: visible; pointer-events: none;
}
.uline path { stroke-dasharray: 100; stroke-dashoffset: 0; }
html.gsap .uline path { stroke-dashoffset: 100; }

.lede {
  font-size: clamp(16px, 1.3vw, 18.5px); line-height: 1.6;
  color: var(--muted); margin: 0 0 36px; max-width: 46ch;
  font-weight: 500; text-wrap: pretty;
}

.cta-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.btn-primary {
  border: none; cursor: pointer; font-family: inherit;
  background: linear-gradient(180deg, #3D71FF, var(--blue));
  color: #fff;
  font-weight: 800; font-size: 15.5px; letter-spacing: -0.2px;
  padding: 0 28px; height: 56px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 11px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 1px 2px var(--blue-glow),
    0 16px 32px -10px var(--blue-glow);
  transition: box-shadow 200ms ease;
}
.btn-primary:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 2px 4px var(--blue-glow),
    0 22px 42px -10px var(--blue-glow);
}
.btn-primary svg { display: block; transition: transform 220ms var(--ease); }
.btn-primary:hover svg { transform: translateX(4px); }

.btn-ghost {
  display: inline-flex; align-items: center;
  text-decoration: none; color: var(--text);
  font-weight: 800; font-size: 15px; letter-spacing: -0.2px;
  height: 56px; padding: 0 26px; border-radius: 999px;
  border: 1.5px solid rgba(15, 23, 42, 0.16);
  background: rgba(255, 255, 255, 0.4);
  transition: border-color 200ms ease, background 200ms ease;
}
.btn-ghost:hover { border-color: var(--blue); background: rgba(255, 255, 255, 0.7); }

.hero-note {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 22px;
  font-family: var(--mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.08em; color: var(--faint);
}
.hero-note svg { color: var(--blue); }

/* Phone scene */
.scene {
  position: relative; display: grid; place-items: center;
  min-height: 620px;
  perspective: 1100px;
}
.halo {
  position: absolute; width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, var(--blue-glow) 0%, transparent 62%);
  opacity: 0.5; pointer-events: none;
}
.scene .path {
  position: absolute; inset: 0; pointer-events: none;
  color: var(--blue); opacity: 0.3;
}
.phoneshot {
  position: relative; z-index: 5;
  transform: rotate(-4deg);
  transform-style: preserve-3d;
  will-change: transform;
}
.phoneshot img {
  display: block;
  width: auto; height: min(560px, 70vh);
  object-fit: contain;
  filter:
    drop-shadow(0 2px 4px rgba(7, 11, 22, 0.18))
    drop-shadow(0 44px 80px var(--blue-glow))
    drop-shadow(0 34px 60px rgba(7, 11, 22, 0.3));
}

/* App-widget fragments floating off the phone */
.wgt {
  position: absolute; z-index: 12;
  min-width: 174px;
  border-radius: 20px;
  padding: 16px 18px 17px;
}
.w-lock {
  top: 13%; left: 7%;
  background: var(--ink);
  color: #F2F6FD;
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 2px 6px rgba(7, 11, 22, 0.25), 0 28px 56px -16px rgba(7, 11, 22, 0.55);
  transform: rotate(-5deg);
  transition: box-shadow 450ms var(--ease), border-color 450ms var(--ease);
}
.w-lock.done {
  border-color: rgba(110, 150, 255, 0.45);
  box-shadow: 0 2px 6px rgba(7, 11, 22, 0.25), 0 18px 48px -10px rgba(31, 91, 255, 0.6);
}
.w-steps {
  bottom: 11%; right: -4%;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 2px 6px rgba(7, 11, 22, 0.07), 0 28px 56px -18px rgba(7, 11, 22, 0.3);
  transform: rotate(4deg);
}

.wgt-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 11px;
}
.wgt-label {
  font-family: var(--mono); font-size: 9.5px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--faint);
}
.wgt-lock { width: 15px; height: 15px; color: #7FA0FF; overflow: visible; flex-shrink: 0; }
.wsh {
  transform-box: fill-box; transform-origin: 100% 100%;
  transition: transform 420ms var(--ease);
}
.w-lock.done .wgt-lock { color: #fff; }
.w-lock.done .wsh { transform: rotate(32deg); }

.wgt-num {
  font-family: var(--mono); font-weight: 700;
  font-size: 30px; line-height: 1; letter-spacing: -0.02em;
}
.wgt-num-ink { color: var(--ink-2); display: inline-block; transform-origin: left center; }
.wgt-of { font-size: 12px; font-weight: 500; color: var(--faint); margin-left: 6px; letter-spacing: 0; }

.wgt-feet {
  display: flex; justify-content: space-between;
  margin: 11px 3px 0;
}
.wgt-feet svg {
  width: 7px; height: 12px;
  color: #7FA0FF; opacity: 0.15;
}
.wgt-feet svg:nth-child(odd) { transform: rotate(-12deg); }
.wgt-feet svg:nth-child(even) { transform: rotate(12deg) translateY(2px); }

.wgt-spark-dot {
  position: absolute; top: 22px; right: 24px;
  width: 5px; height: 5px; border-radius: 50%;
  background: #7FA0FF;
  pointer-events: none;
}

.wgt-bar {
  margin-top: 10px; height: 4px; border-radius: 99px;
  background: rgba(255, 255, 255, 0.14); overflow: hidden;
}
.wgt-bar span {
  display: block; height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, var(--blue), #6E96FF);
  transform: scaleX(0.74); transform-origin: left;
}
.wgt-state {
  margin-top: 11px;
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #7FA0FF;
  opacity: 0; transform: translateY(4px);
  transition: opacity 380ms var(--ease), transform 380ms var(--ease);
}
.w-lock.done .wgt-state { opacity: 1; transform: translateY(0); }

.wgt-tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--mono); font-size: 9px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--orange);
  background: rgba(255, 106, 44, 0.09);
  border: 1px solid rgba(255, 106, 44, 0.3);
  padding: 4px 9px; border-radius: 999px;
}
.wgt-tag svg { flex-shrink: 0; }

.wgt-numrow { position: relative; }
.wgt-plus {
  position: absolute; right: -4px; top: -2px;
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  color: var(--blue);
  pointer-events: none;
}

.wgt-week {
  margin-top: 15px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 8px;
}
.wd { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.wd span {
  display: block; width: 9px; border-radius: 99px;
  background: rgba(15, 23, 42, 0.08);
  transition: height 600ms var(--ease);
}
.wd i {
  font-style: normal; font-family: var(--mono);
  font-size: 7.5px; line-height: 1; color: var(--faint);
}
.wd.today span {
  background: linear-gradient(180deg, #6E96FF, var(--blue));
  box-shadow: 0 4px 10px -3px var(--blue-glow);
}
.wd.today i { color: var(--blue); font-weight: 700; }

.scroll-hint {
  position: absolute; left: 50%; bottom: 26px; z-index: 6;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.26em; color: var(--faint);
}
.scroll-hint svg { animation: hint 1.6s ease-in-out infinite; }
@keyframes hint {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(4px); opacity: 1; }
}

/* Footprint trail (spawned by JS inside [data-trail] sections) */
.trail-layer {
  position: absolute; inset: 0; z-index: 4;
  overflow: hidden; pointer-events: none;
}
.trail-foot { position: absolute; width: 15px; will-change: transform, opacity; }
.trail-foot svg { display: block; width: 100%; height: auto; }

/* ── Marquee ────────────────────────────────────────────────────────── */
.mq {
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  padding: 20px 0;
  overflow: hidden;
}
.mq-track { display: flex; width: max-content; will-change: transform; }
.mq-set { display: flex; align-items: center; flex-shrink: 0; }
.mq-set span {
  font-weight: 800; font-size: clamp(17px, 2vw, 24px);
  letter-spacing: -0.02em; text-transform: uppercase;
  padding: 0 26px; white-space: nowrap;
}
.mq-set span:nth-child(4n + 3) { color: var(--blue); }
.mq-set i { font-style: normal; color: var(--orange); font-size: 14px; }

/* ── How it works (pinned walk) ─────────────────────────────────────── */
.walk { background: var(--sky); }
.walk-intro {
  max-width: 1320px; margin: 0 auto;
  padding: 110px 44px 70px;
  text-align: center;
}
.walk-pinwrap { position: relative; }
.walk-stage {
  position: relative;
  height: 100svh; min-height: 560px;
  overflow: hidden;
  display: grid; place-items: center;
  background: var(--sky);
  transition: background 600ms var(--ease);
}

.walk-bignum {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--mono); font-weight: 700;
  font-size: min(54vmin, 58vw); line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px rgba(31, 91, 255, 0.16);
  user-select: none;
  transition: -webkit-text-stroke 500ms ease, color 500ms ease, opacity 500ms ease;
}

.walk-center {
  position: relative; z-index: 5;
  width: min(280px, 56vw); aspect-ratio: 1;
  display: grid; place-items: center;
  transition: transform 600ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.walk-stage.unlocked .walk-center { transform: scale(1.06); }
.ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.ring-bg { fill: none; stroke: rgba(15, 23, 42, 0.09); stroke-width: 5; }
.ring-fill {
  fill: none; stroke: var(--blue); stroke-width: 6; stroke-linecap: round;
  stroke-dasharray: 628.3; stroke-dashoffset: 628.3;
  transition: stroke 500ms ease;
}
.lock {
  width: 26%; height: 26%;
  overflow: visible;
  color: var(--ink-2);
  transition: color 500ms ease, transform 500ms var(--ease);
}
.lock-sh {
  transform-box: fill-box;
  transform-origin: 100% 100%;
  transition: transform 450ms var(--ease);
}

.walk-status {
  position: absolute; left: 50%; bottom: -46px;
  transform: translateX(-50%);
  font-family: var(--mono); font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.34em; color: var(--muted);
  transition: color 500ms ease;
  white-space: nowrap;
}

/* App tiles orbiting the lock — dim and twitchy until the unlock */
.orbit { position: absolute; inset: 0; pointer-events: none; }
.tile {
  position: absolute;
  width: 48px; height: 48px; border-radius: 13px;
  box-shadow: 0 12px 26px -10px rgba(7, 11, 22, 0.28);
  opacity: 0.55; filter: grayscale(1);
  transform: rotate(var(--tr)) scale(0.88);
  transition: opacity 500ms var(--ease), filter 500ms var(--ease),
              transform 500ms cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 500ms var(--ease);
}
.tile img {
  display: block; width: 100%; height: 100%;
  border-radius: inherit; object-fit: cover;
}
.tlock {
  position: absolute; top: -7px; right: -7px;
  width: 19px; height: 19px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: #fff;
  box-shadow: 0 2px 7px rgba(7, 11, 22, 0.4);
  transition: opacity 400ms var(--ease), transform 400ms var(--ease);
}
.tlock svg { width: 9px; height: 9px; }
.walk-stage.unlocked .tlock { opacity: 0; transform: scale(0.4); }
.t1 { left: -26%; top: 2%; }
.t2 { left: 4%; top: -25%; }
.t3 { right: -27%; top: -3%; }
.t4 { right: -32%; top: 55%; }
.t5 { left: -32%; top: 58%; }
.walk-stage.p0 .t1 { animation: itch 1.5s ease-in-out infinite 0s; }
.walk-stage.p0 .t2 { animation: itch 1.7s ease-in-out infinite 0.3s; }
.walk-stage.p0 .t3 { animation: itch 1.4s ease-in-out infinite 0.55s; }
.walk-stage.p0 .t4 { animation: itch 1.6s ease-in-out infinite 0.2s; }
.walk-stage.p0 .t5 { animation: itch 1.8s ease-in-out infinite 0.7s; }
@keyframes itch {
  0%, 100% { transform: rotate(var(--tr)) scale(0.88) translateY(0); }
  50% { transform: rotate(calc(var(--tr) + 4deg)) scale(0.9) translateY(-3px); }
}
.walk-stage.unlocked .tile {
  opacity: 1; filter: grayscale(0);
  transform: rotate(0deg) scale(1.06);
  box-shadow: 0 18px 36px -12px rgba(7, 11, 22, 0.4);
}
.walk-stage.unlocked .t1 { transition-delay: 0.05s; }
.walk-stage.unlocked .t2 { transition-delay: 0.12s; }
.walk-stage.unlocked .t3 { transition-delay: 0.19s; }
.walk-stage.unlocked .t4 { transition-delay: 0.26s; }
.walk-stage.unlocked .t5 { transition-delay: 0.33s; }

.walk-feet { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.wf {
  position: absolute; width: clamp(14px, 2vw, 22px);
  color: var(--blue); opacity: 0;
  transition: color 500ms ease, opacity 450ms ease;
}
.wf svg { display: block; width: 100%; height: auto; }

.walk-caps {
  position: absolute; left: 0; right: 0; bottom: 7%;
  z-index: 6; text-align: center; pointer-events: none;
  padding: 0 24px;
}
.wc {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  opacity: 0; transform: translateY(22px); filter: blur(7px);
  transition: opacity 550ms var(--ease), transform 550ms var(--ease), filter 550ms var(--ease);
}
.wc.on { opacity: 1; transform: translateY(0); filter: blur(0); }
.wc-tag {
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--blue);
  transition: color 500ms;
}
.wc-h {
  margin: 0;
  font-weight: 800; font-size: clamp(24px, 3.4vw, 42px);
  letter-spacing: -0.03em; line-height: 1.1;
  transition: color 500ms;
}
.wc-s {
  margin: 0;
  font-weight: 600; font-size: clamp(13px, 1.3vw, 16px);
  color: var(--muted);
  transition: color 500ms;
}

/* Unlocked state — the stage flips to brand blue */
.walk-stage.unlocked { background: var(--blue); }
.walk-stage.unlocked .walk-bignum { -webkit-text-stroke: 2px rgba(255, 255, 255, 0.32); }
.walk-stage.unlocked .ring-bg { stroke: rgba(255, 255, 255, 0.22); }
.walk-stage.unlocked .ring-fill { stroke: #fff; }
.walk-stage.unlocked .lock { color: #fff; transform: scale(1.12); }
.walk-stage.unlocked .lock-sh { transform: rotate(32deg); }
.walk-stage.unlocked .walk-status { color: #fff; }
.walk-stage.unlocked .wf { color: rgba(255, 255, 255, 0.7); }
.walk-stage.unlocked .wc-h { color: #fff; }
.walk-stage.unlocked .wc-tag { color: rgba(255, 255, 255, 0.75); }
.walk-stage.unlocked .wc-s { color: rgba(255, 255, 255, 0.78); }

.burst-ring {
  position: absolute; top: 50%; left: 50%;
  width: 220px; height: 220px; margin: -110px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.8);
  pointer-events: none;
}

.burst { position: absolute; inset: 0; pointer-events: none; }
.burst-dot {
  position: absolute; top: 50%; left: 50%;
  width: 7px; height: 7px; margin: -3.5px;
  border-radius: 50%; background: #fff;
}

/* Short viewports: shrink the ring so the lower captions keep clear air */
@media (max-height: 760px) {
  .walk-center { width: min(230px, 52vw); }
  .walk-status { bottom: -36px; }
  .wc-h { font-size: clamp(20px, 3vw, 32px); }
}

/* Static fallback (no GSAP / reduced motion): show the unlocked end state */
.walk.static .walk-stage { height: auto; min-height: 0; padding: 90px 24px; }
.walk.static .walk-bignum { position: static; font-size: clamp(120px, 24vw, 280px); }
.walk.static .walk-caps, .walk.static .walk-feet, .walk.static .walk-status { display: none; }
.walk.static .ring-fill { stroke-dashoffset: 0; }
.walk.static .tile { animation: none; }

/* ── Features bento ─────────────────────────────────────────────────── */
.feats {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 120px 44px 130px;
}
.feats-head { max-width: 1320px; margin: 0 auto 56px; }
.bento {
  max-width: 1320px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px;
}
.card {
  position: relative;
  border: 1px solid var(--line); border-radius: 24px;
  background: var(--sky);
  padding: 30px 28px 32px;
  transform-style: preserve-3d;
  will-change: transform;
  transition: box-shadow 300ms ease, border-color 300ms ease;
}
.card:hover {
  border-color: rgba(31, 91, 255, 0.3);
  box-shadow: 0 30px 60px -24px rgba(31, 91, 255, 0.25);
}
.card h3 { margin: 0 0 9px; font-weight: 800; font-size: 20px; letter-spacing: -0.025em; }
.card p { margin: 0; font-size: 14.5px; line-height: 1.6; font-weight: 500; color: var(--muted); text-wrap: pretty; }
.c-lock { grid-column: span 3; }
.c-timer { grid-column: span 3; }
.c-streak, .c-board, .c-coin { grid-column: span 2; }

.card-demo {
  height: 92px; margin-bottom: 22px;
  display: flex; align-items: center; gap: 14px;
}

/* lock card demo */
.demo-lock { flex-direction: column; align-items: flex-start; justify-content: center; gap: 12px; }
.dl-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 14px; color: var(--blue);
}
.dl-count { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--text); }
.dl-bar { width: min(240px, 100%); height: 6px; border-radius: 99px; background: rgba(15, 23, 42, 0.08); overflow: hidden; }
.dl-fill {
  display: block; height: 100%; width: 24%;
  background: linear-gradient(90deg, var(--blue), #3D71FF);
  border-radius: 99px;
  transition: width 1.4s var(--ease);
}
.card:hover .dl-fill { width: 100%; }

/* timer card demo */
.demo-timer { position: relative; width: 92px; }
.demo-timer svg { width: 92px; height: 92px; }
.t-bg { fill: none; stroke: rgba(15, 23, 42, 0.09); stroke-width: 5; }
.t-arc {
  fill: none; stroke: var(--blue); stroke-width: 5; stroke-linecap: round;
  stroke-dasharray: 163.4; stroke-dashoffset: 122.5;
  transition: stroke-dashoffset 1.6s var(--ease);
}
.card:hover .t-arc { stroke-dashoffset: 8; }
.t-num {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-family: var(--mono); font-size: 14px; font-weight: 700;
}

/* streak card demo */
.flame { transition: transform 400ms var(--ease); transform-origin: 50% 90%; }
.card:hover .flame { transform: scale(1.25) rotate(-4deg); }
.streak-chip {
  font-family: var(--mono); font-size: 11.5px; font-weight: 700;
  color: var(--orange);
  background: rgba(255, 106, 44, 0.1);
  border: 1px solid rgba(255, 106, 44, 0.25);
  padding: 6px 12px; border-radius: 999px;
}

/* leaderboard card demo */
.demo-board { align-items: flex-end; gap: 10px; padding-bottom: 4px; }
.bar {
  width: 26px; border-radius: 7px 7px 3px 3px;
  background: rgba(15, 23, 42, 0.12);
  transform-origin: bottom;
  transition: transform 700ms var(--ease), background 700ms var(--ease);
}
.bar-1 { height: 34px; transition-delay: 0s; }
.bar-2 { height: 56px; background: var(--blue); transition-delay: 0.08s; }
.bar-3 { height: 22px; transition-delay: 0.16s; }
.card:hover .bar-1 { transform: scaleY(1.5); }
.card:hover .bar-2 { transform: scaleY(1.3); }
.card:hover .bar-3 { transform: scaleY(2.1); background: var(--orange); }

/* coin card demo */
.coin {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  background: linear-gradient(160deg, #3D71FF, var(--blue-deep));
  box-shadow: 0 10px 22px -8px var(--blue-glow);
  transition: transform 800ms var(--ease);
}
.card:hover .coin { transform: rotateY(360deg); }
.coin-num { font-family: var(--mono); font-size: 15px; font-weight: 700; color: var(--blue); }

/* ── Stats band ─────────────────────────────────────────────────────── */
.stats { background: var(--ink); color: #F2F6FD; }
.stats-inner { max-width: 1320px; margin: 0 auto; padding: 120px 44px 130px; }
.stat-grid {
  margin-top: 64px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.stat {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 26px;
}
.stat-num {
  display: block;
  font-family: var(--mono); font-weight: 700;
  font-size: clamp(44px, 5.4vw, 84px); line-height: 1;
  letter-spacing: -0.03em; color: #fff;
}
.stat-l {
  display: block; margin-top: 12px;
  font-size: 13.5px; font-weight: 600; color: var(--faint);
  letter-spacing: 0.02em;
}

/* ── Final CTA ──────────────────────────────────────────────────────── */
.cta {
  position: relative;
  background: var(--blue);
  color: #fff;
  overflow: hidden;
}
.cta-feet { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.cta-inner {
  position: relative; z-index: 5;
  max-width: 1320px; margin: 0 auto;
  padding: 140px 44px 150px;
  text-align: center;
}
.cta-h {
  margin: 0 0 22px;
  font-weight: 800;
  font-size: clamp(46px, 8vw, 120px);
  letter-spacing: -0.045em; line-height: 0.98;
}
.cta-sub {
  margin: 0 auto 44px; max-width: 44ch;
  font-size: clamp(15px, 1.4vw, 19px); font-weight: 600; line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
}
.btn-cta {
  border: none; cursor: pointer; font-family: inherit;
  background: #fff; color: var(--blue-deep);
  font-weight: 800; font-size: 17px; letter-spacing: -0.2px;
  height: 64px; padding: 0 36px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 12px;
  box-shadow: 0 24px 50px -14px rgba(7, 11, 22, 0.45);
  transition: box-shadow 200ms ease;
}
.btn-cta:hover { box-shadow: 0 30px 60px -14px rgba(7, 11, 22, 0.55); }
.btn-cta svg { transition: transform 220ms var(--ease); }
.btn-cta:hover svg { transform: translateX(4px); }
.cta-note {
  display: block; margin-top: 26px;
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

/* ── Footer ─────────────────────────────────────────────────────────── */
.ftr { background: var(--ink); color: #F2F6FD; }
.ftr-top {
  max-width: 1320px; margin: 0 auto;
  padding: 54px 44px 30px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.ftr-brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 18px; letter-spacing: -0.4px; }
.ftr-brand img { border-radius: 8px; }
.ftr-links { display: flex; gap: 4px; flex-wrap: wrap; }
.ftr-links a {
  text-decoration: none; color: #A4B1C6;
  font-weight: 700; font-size: 13.5px;
  padding: 8px 13px; border-radius: 999px;
  transition: color 160ms, background 160ms;
}
.ftr-links a:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
.ftr-bottom {
  max-width: 1320px; margin: 0 auto;
  padding: 22px 44px 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
}
.ftr .copyright { font-size: 13px; font-weight: 600; color: var(--faint); }
.ftr .legal { display: flex; gap: 4px; }
.ftr .legal a {
  text-decoration: none; color: #A4B1C6;
  font-weight: 700; font-size: 13px;
  padding: 7px 13px; border-radius: 999px;
  transition: color 160ms, background 160ms;
}
.ftr .legal a:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }

/* ── Reduced motion ─────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-hint svg, .pf-l, .pf-r, .blob { animation: none; }
  .cursor-dot, .cursor-ring { display: none; }
  html.gsap [data-intro], html.gsap [data-line], html.gsap [data-chip] { opacity: 1; }
}

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 1020px) {
  .hero { padding: 120px 28px 60px; }
  .hero-grid { grid-template-columns: 1fr; gap: 12px; text-align: center; }
  .copy { max-width: 640px; margin: 0 auto; }
  .lede { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
  .scene { min-height: 540px; margin-top: 18px; }
  .phoneshot img { height: min(480px, 60vh); }
  .w-lock { left: 2%; }
  .w-steps { right: 2%; }
  .navlink, .navitem { display: none; }
  .nav-cta { display: none; }
  .burger { display: block; }
  .hdr, .hdr.scrolled { padding-left: 24px; padding-right: 24px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .c-lock, .c-timer { grid-column: span 2; }
  .c-streak, .c-board, .c-coin { grid-column: span 1; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 18px; }
}

@media (max-width: 640px) {
  .hero { padding: 104px 20px 56px; }
  .scene { min-height: 460px; }
  .phoneshot img { height: min(400px, 52vh); }
  .wgt { display: none; }
  .scene .path { display: none; }
  .scroll-hint { display: none; }
  .walk-intro { padding: 80px 20px 50px; }
  .tile { width: 36px; height: 36px; border-radius: 10px; }
  .tlock { width: 16px; height: 16px; top: -6px; right: -6px; }
  .tlock svg { width: 8px; height: 8px; }
  .walk-status { bottom: -38px; }
  .feats { padding: 80px 20px 90px; }
  .feats-head { margin-bottom: 36px; }
  .bento { grid-template-columns: 1fr; }
  .c-streak, .c-board, .c-coin { grid-column: span 1; }
  .stats-inner { padding: 80px 20px 90px; }
  .cta-inner { padding: 100px 20px 110px; }
  .ftr-top, .ftr-bottom { padding-left: 20px; padding-right: 20px; }
  .odo { left: 14px; bottom: 14px; padding: 8px 13px 8px 11px; }
  .odo-l { display: none; }
}
