:root {
  --bg: #060606;
  --text: #f5f5f7;
  --muted: #a1a1a6;
  --dim: #6e6e73;
  --rose: #e8849f;
  --hair: rgba(255, 255, 255, 0.08);
  --max: 1120px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
/* fine film grain over everything */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* gradient text helpers */
.grad {
  background: linear-gradient(180deg, #ffffff 30%, #b9b9be 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Nav ---------- */
.nav-shell { position: fixed; top: 18px; left: 0; right: 0; z-index: 50; padding: 0 16px; }
.nav {
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 8px 8px 16px; border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.02));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), inset 0 0 0 1px rgba(255,255,255,.05);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  transition: background .4s var(--ease), box-shadow .4s var(--ease);
}
.nav.scrolled {
  background: linear-gradient(180deg, rgba(28,28,30,.82), rgba(16,16,18,.82));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), inset 0 0 0 1px rgba(255,255,255,.06), 0 10px 30px -10px rgba(0,0,0,.8);
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 19px; letter-spacing: -0.02em; }
.logo img { width: 30px; height: 30px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 32px; font-size: 15px; color: var(--muted); }
.nav-links a { transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.btn-white {
  display: inline-flex; align-items: center; gap: 7px;
  color: #000 !important; font-weight: 600; font-size: 15px;
  padding: 11px 20px; border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, #e9e9ec);
  box-shadow: inset 0 -1px 0 rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.4);
  transition: transform .25s var(--ease);
}
.btn-white:hover { transform: scale(1.035); }
.btn-white svg { width: 14px; height: 14px; fill: #000; margin-top: -2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; text-align: center;
  padding: 200px 24px 0; overflow: hidden; isolation: isolate;
}
.hero::before { /* deep red wash from above */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(65% 50% at 50% -10%, rgba(110, 22, 40, .20) 0%, rgba(60, 12, 24, .08) 45%, transparent 75%);
}
.hero::after { /* horizon glow behind the phone */
  content: ""; position: absolute; left: 50%; bottom: 8%; z-index: -1;
  width: 900px; height: 520px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(150, 35, 60, .10), transparent);
  filter: blur(20px);
}
.hero h1 {
  font-size: clamp(40px, 6.2vw, 72px); font-weight: 600; line-height: 1.02; letter-spacing: -0.035em;
}
.hero .sub {
  font-size: clamp(17px, 1.5vw, 20px); color: rgba(245,245,247,.72);
  max-width: 460px; margin: 22px auto 0;
}
.badges { display: flex; justify-content: center; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.appstore {
  display: inline-flex; align-items: center; gap: 8px; color: #000;
  border-radius: 11px; padding: 7px 17px 7px 13px;
  background: linear-gradient(180deg, #ffffff, #e9e9ec);
  box-shadow: inset 0 -1px 0 rgba(0,0,0,.1), 0 8px 24px -8px rgba(0,0,0,.6);
  transition: transform .25s var(--ease);
}
.appstore:hover { transform: translateY(-2px); }
.appstore svg { width: 22px; height: 22px; fill: #000; }
.appstore small { display: block; font-size: 10px; line-height: 1.1; font-weight: 500; }
.appstore strong { display: block; font-size: 19px; line-height: 1.1; font-weight: 600; letter-spacing: -0.01em; }
.trust {
  margin-top: 24px; display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--dim); font-weight: 500;
}
.trust svg { width: 13px; height: 13px; fill: var(--dim); }

.hero-stage { margin: 56px auto 0; display: flex; justify-content: center; perspective: 1400px; }
.hero-stage .phone {
  width: 340px; transform-origin: 50% 100%;
  will-change: transform;
}
.hero-fade { /* fade phone bottom into page */
  position: relative; height: 180px; margin-top: -180px; z-index: 2;
  background: linear-gradient(to bottom, transparent, var(--bg));
}

/* ---------- Phone frame ---------- */
.phone {
  position: relative; width: 300px; aspect-ratio: 9 / 19.5; border-radius: 54px; padding: 11px;
  background: linear-gradient(150deg, #4a4a4d 0%, #1d1d1f 22%, #0d0d0e 60%, #2a2a2c 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.10),
    inset 0 1px 1px rgba(255,255,255,.18),
    0 60px 120px -30px rgba(0,0,0,.95),
    0 30px 60px -30px rgba(120, 20, 40, .35);
}
.phone .screen {
  position: relative; width: 100%; height: 100%; border-radius: 44px; overflow: hidden;
  background: linear-gradient(180deg, #141416, #0b0b0c); display: grid; place-items: center;
}
.phone .screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phone .placeholder {
  color: var(--dim); font-size: 13px; text-align: center; line-height: 1.6;
}
.phone .placeholder code { display: block; color: var(--muted); font-family: ui-monospace, Menlo, monospace; font-size: 12px; margin-top: 4px; }

/* ---------- Statement (word reveal) ---------- */
.statement { height: 280vh; position: relative; text-align: center; }
.statement-sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: flex; align-items: center; justify-content: center; padding: 0 24px;
}
.statement p {
  max-width: 960px; margin: 0 auto;
  font-size: clamp(30px, 4.2vw, 52px); font-weight: 600; line-height: 1.18; letter-spacing: -0.03em;
}
.statement .w {
  background: linear-gradient(180deg, #ffffff 20%, #a8a8ad 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: .16; transition: opacity .45s var(--ease);
}
.statement .w.on { opacity: 1; }

/* ---------- Hairline divider ---------- */
.hair { height: 1px; max-width: var(--max); margin: 0 auto;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent); }

/* ---------- Features ---------- */
.feature {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 72px;
  padding: 110px 0;
}
.feature .media { display: flex; justify-content: center; perspective: 1400px; position: relative; }
.feature .media::before {
  content: ""; position: absolute; inset: 15% 0; z-index: -1;
  background: radial-gradient(closest-side, rgba(150, 35, 60, .12), transparent);
  filter: blur(30px);
}
.feature .tilt { transform: rotateY(16deg) rotateX(5deg) rotateZ(-3deg); will-change: transform; }
.feature.flip .media { order: 2; }
.feature.flip .tilt { transform: rotateY(-16deg) rotateX(5deg) rotateZ(3deg); }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; color: #d1d1d6; font-weight: 500;
  padding: 7px 15px 7px 12px; border-radius: 999px;
  background: linear-gradient(180deg, #1c1c1e, #111113);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), inset 0 0 0 1px rgba(255,255,255,.06);
}
.pill svg { width: 15px; height: 15px; fill: currentColor; }
.feature h2 { font-size: clamp(32px, 3.6vw, 44px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.08; margin: 22px 0 14px; }
.feature p { font-size: 19px; color: rgba(245,245,247,.66); max-width: 430px; line-height: 1.6; }

/* ---------- Closing ---------- */
.closing { position: relative; text-align: center; padding: 170px 24px 150px; isolation: isolate; overflow: hidden; }
.closing::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(55% 60% at 50% 100%, rgba(110, 22, 40, .16), rgba(60,12,24,.06) 50%, transparent 80%);
}
.closing .app-icon {
  width: 92px; height: 92px; border-radius: 22px; margin: 0 auto 30px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 24px 60px -12px rgba(200, 60, 95, .45);
}
.closing h2 { font-size: clamp(40px, 5.4vw, 64px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.02; }
.closing p { font-size: 19px; color: rgba(245,245,247,.66); margin: 16px auto 0; }

/* ---------- Footer ---------- */
.site-footer { padding: 0 0 48px; }
.foot-top {
  display: flex; justify-content: space-between; gap: 48px;
  padding-top: 64px; border-top: 1px solid var(--hair);
}
.foot-brand .logo { font-size: 20px; }
.foot-brand p { color: var(--muted); font-size: 15px; margin: 14px 0 22px; }
.appstore.sm { padding: 5px 13px 5px 10px; border-radius: 9px; }
.appstore.sm svg { width: 18px; height: 18px; }
.appstore.sm small { font-size: 9px; }
.appstore.sm strong { font-size: 16px; }
.foot-cols { display: flex; gap: 96px; }
.foot-cols h4 { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 18px; }
.foot-cols a { display: block; font-size: 15px; color: var(--muted); margin-bottom: 12px; transition: color .2s; }
.foot-cols a:hover { color: var(--text); }
.foot-bottom { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--hair); }
.disclaimer { font-size: 13px; color: var(--dim); line-height: 1.7; max-width: 760px; }
.disclaimer a { color: var(--muted); text-decoration: underline; text-decoration-color: rgba(255,255,255,.2); text-underline-offset: 2px; }
.disclaimer a:hover { color: var(--text); }
.copy { font-size: 13px; color: var(--dim); margin-top: 14px; }
@media (max-width: 860px) {
  .foot-top { flex-direction: column; gap: 44px; }
  .foot-cols { gap: 64px; }
}

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(36px); filter: blur(8px);
  transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; filter: none; }
.js .reveal.d1 { transition-delay: .08s; } .js .reveal.d2 { transition-delay: .16s; }
.js .reveal.d3 { transition-delay: .24s; } .js .reveal.d4 { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  .statement { height: auto; } .statement-sticky { position: static; height: auto; padding: 160px 24px; }
  .js .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .statement .w { opacity: 1; }
}

/* ---------- Legal pages ---------- */
.legal { max-width: 720px; padding: 160px 24px 110px; margin: 0 auto; position: relative; }
.legal-bg { position: absolute; inset: 0 0 auto 0; height: 520px; z-index: -1;
  background: radial-gradient(70% 70% at 50% -10%, rgba(110,22,40,.18), transparent 75%); }
.legal h1 { font-size: clamp(38px, 5vw, 56px); letter-spacing: -0.04em; line-height: 1.04; }
.legal .updated { color: var(--dim); font-size: 14px; margin: 12px 0 44px; }
.legal h2 { font-size: 21px; letter-spacing: -0.02em; margin: 38px 0 10px; }
.legal p, .legal li { color: rgba(245,245,247,.7); font-size: 16px; margin-bottom: 12px; line-height: 1.7; }
.legal ul { padding-left: 20px; }
.legal a { color: var(--rose); }
.glance {
  margin: 0 0 12px; padding: 24px 26px; border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), inset 0 0 0 1px rgba(255,255,255,.06);
}
.glance h3 { font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.glance ul { margin-bottom: 8px; }
.glance li { font-size: 15px; margin-bottom: 8px; }
.glance p { font-size: 13px; color: var(--dim); margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-links a:not(.btn-white) { display: none; }
  .hero { padding-top: 170px; }
  .hero-stage { margin-top: 64px; }
  .hero-stage .phone { width: 290px; }
  .feature { grid-template-columns: 1fr; gap: 48px; padding: 70px 0; text-align: center; }
  .feature.flip .media { order: 0; }
  .feature p { margin: 0 auto; }
  .feature .tilt, .feature.flip .tilt { transform: none; }
  .statement { height: 240vh; }
}
@media (max-width: 400px) {
  .phone { width: 260px; border-radius: 46px; }
  .phone .screen { border-radius: 36px; }
  .hero-stage .phone { width: 270px; }
}
