:root {
  --ink: #0d0d14;
  --ink-2: #2a2b35;
  --muted: #6b6e7b;
  --line: #e9e9ef;
  --soft: #f5f5f8;
  --soft-2: #eeeef4;
  --accent: #5b4cf0;
  --accent-2: #7a6dff;
  --accent-soft: #eeecff;
  --green: #22c55e;
  --green-soft: #dcfce7;
  --green-ink: #15803d;
  --orange: #f97316;
  --orange-soft: #ffedd5;
  --night: #09090f;
  --shadow: 0 1px 2px rgba(13, 13, 20, .04), 0 12px 32px rgba(13, 13, 20, .08);
  --ease: cubic-bezier(.2, .75, .2, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 72px; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: #fff;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ol, ul { margin: 0; }
small { font-size: inherit; }

.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ================= buttons ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: #fff; font-weight: 600; font-size: 15px;
  padding: 10px 18px; border-radius: 12px; border: 0; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), background .2s ease, box-shadow .2s ease;
  box-shadow: 0 6px 16px rgba(91, 76, 240, .25);
}
.btn:hover { background: #4c3de0; transform: translateY(-1px); box-shadow: 0 10px 22px rgba(91, 76, 240, .32); }
.btn .ic { transition: transform .2s var(--ease); }
.btn:hover .ic { transform: translateX(3px); }
.btn-sm { padding: 9px 16px; font-size: 14px; border-radius: 10px; }
.btn-lg { padding: 15px 24px; font-size: 16px; border-radius: 14px; }
.btn-ghost { background: var(--soft); color: var(--ink); box-shadow: none; }
.btn-ghost:hover { background: var(--soft-2); box-shadow: none; }
.btn-white { background: #fff; color: var(--accent); box-shadow: none; cursor: default; }
.btn-white:hover { background: #fff; transform: none; box-shadow: none; }
.btn-xs { padding: 5px 11px; font-size: 10.5px; border-radius: 8px; box-shadow: none; }
.btn-block { display: flex; width: 100%; padding: 12px; font-size: 13px; border-radius: 13px; box-shadow: none; }
.btn.green { background: var(--green); }

/* ================= logo ================= */
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--ink); display: inline-flex; align-items: flex-end; justify-content: center; gap: 3px; padding: 7px; }
.logo-mark i { display: block; width: 4px; border-radius: 2px; background: #fff; }
.logo-mark i:nth-child(1) { height: 7px; opacity: .55; }
.logo-mark i:nth-child(2) { height: 11px; opacity: .8; }
.logo-mark i:nth-child(3) { height: 16px; background: var(--accent-2); }
.logo.light { color: #fff; }
.logo.light .logo-mark { background: rgba(255, 255, 255, .12); }

/* ================= nav ================= */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease, color .3s ease, transform .4s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav.on-dark { background: rgba(9, 9, 15, .6); color: #fff; border-bottom-color: rgba(255, 255, 255, .08); }
.nav.on-dark .logo-mark { background: rgba(255, 255, 255, .14); }
.nav.on-dark .nav-links { color: rgba(255, 255, 255, .8); }
.nav.hide { transform: translateY(-100%); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav-links { display: flex; gap: 32px; font-size: 15px; font-weight: 500; color: var(--ink-2); transition: color .3s ease; }
.nav-links a { padding: 6px 0; transition: color .2s ease; }
.nav-links a:hover { color: var(--accent-2); }
main { padding-top: 68px; }

/* ================= hero ================= */
.hero { position: relative; overflow: hidden; padding: 56px 0 100px; }
.hero-in { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 48px; }
.hero h1 { font-size: clamp(44px, 6.2vw, 82px); line-height: 1.02; letter-spacing: -.045em; font-weight: 800; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero h1 .line > span { display: inline-block; transform: translateY(105%); animation: lineUp 1s var(--ease) forwards; }
.hero h1 .line:nth-child(2) > span { animation-delay: .12s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .24s; }
@keyframes lineUp { to { transform: none; } }
.fade-up { opacity: 0; transform: translateY(16px); animation: fadeUp .9s var(--ease) forwards; }
.lead.fade-up { animation-delay: .45s; }
.hero-cta.fade-up { animation-delay: .55s; }
.hero-points.fade-up { animation-delay: .65s; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }
.accent { color: var(--accent); }
.lead { margin-top: 24px; font-size: 20px; color: var(--muted); letter-spacing: -.01em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-points { list-style: none; padding: 0; margin-top: 40px; display: flex; flex-wrap: wrap; gap: 10px 24px; color: var(--ink-2); font-size: 14px; font-weight: 500; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points .ic { color: var(--accent); width: 17px; height: 17px; }

.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 660px; perspective: 1600px; }
.glow {
  position: absolute; inset: 7% 4% 5%; border-radius: 48px;
  background:
    radial-gradient(60% 50% at 70% 20%, rgba(122, 109, 255, .35), transparent 70%),
    radial-gradient(50% 50% at 20% 85%, rgba(34, 197, 94, .16), transparent 70%),
    var(--soft);
  opacity: 0; animation: fadeIn 1.2s .2s ease forwards;
}
@keyframes fadeIn { to { opacity: 1; } }
.hero-stage {
  position: relative; transform-style: preserve-3d;
  transform: rotateY(var(--ry, -14deg)) rotateX(var(--rx, 6deg)) translateY(var(--ty, 0px));
  transition: transform .5s var(--ease);
  opacity: 0; animation: stageIn 1.3s .15s var(--ease) forwards;
}
@keyframes stageIn { from { opacity: 0; translate: 0 60px; } to { opacity: 1; translate: 0 0; } }

/* ================= phone ================= */
.phone {
  position: relative; width: 300px; aspect-ratio: 300 / 620; flex: none;
  border-radius: 54px; padding: 11px;
  background: linear-gradient(145deg, #5a5b66 0%, #23242b 18%, #15161b 50%, #2b2c34 82%, #0f1014 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .16),
    inset 0 0 0 3.5px #0b0b0f,
    0 2px 4px rgba(0, 0, 0, .1),
    0 30px 60px -25px rgba(13, 13, 20, .45),
    0 60px 120px -40px rgba(13, 13, 20, .35);
}
.phone::before { /* volume buttons */
  content: ""; position: absolute; left: -2.5px; top: 122px; width: 3px; height: 26px; border-radius: 2px 0 0 2px;
  background: linear-gradient(90deg, #3a3b44, #1c1d23);
  box-shadow: 0 42px 0 #26272e, 0 84px 0 #26272e;
}
.phone::after { /* power button */
  content: ""; position: absolute; right: -2.5px; top: 172px; width: 3px; height: 64px; border-radius: 0 2px 2px 0;
  background: linear-gradient(270deg, #3a3b44, #1c1d23);
}
.screen {
  position: relative; height: 100%; border-radius: 43px; overflow: hidden; background: #fff;
  font-size: 12px; color: var(--ink); display: flex; flex-direction: column;
  box-shadow: 0 0 0 1.5px #000;
  isolation: isolate;
}
.screen::before { /* dynamic island */
  content: ""; position: absolute; top: 11px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 26px; border-radius: 20px; background: #000; z-index: 20;
}
.screen::after { /* glass reflection */
  content: ""; position: absolute; inset: 0; z-index: 19; pointer-events: none; border-radius: inherit;
  background: linear-gradient(118deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, .04) 28%, rgba(255, 255, 255, 0) 42%);
}
.screen.dark { background: var(--night); color: #fff; }

.sb { display: flex; justify-content: space-between; align-items: center; padding: 14px 26px 0 30px; height: 46px; font-weight: 600; font-size: 13.5px; letter-spacing: -.01em; flex: none; }
.sb-r { display: inline-flex; gap: 5px; align-items: center; }
.sig { width: 16px; height: 10px; background:
  linear-gradient(currentColor, currentColor) 0 100% / 3px 4px no-repeat,
  linear-gradient(currentColor, currentColor) 4.3px 100% / 3px 6px no-repeat,
  linear-gradient(currentColor, currentColor) 8.6px 100% / 3px 8px no-repeat,
  linear-gradient(currentColor, currentColor) 13px 100% / 3px 10px no-repeat; }
.wifi { width: 14px; height: 10px; background: currentColor;
  -webkit-mask: radial-gradient(circle at 50% 100%, #000 2.2px, transparent 2.6px, transparent 4.2px, #000 4.6px, #000 6.4px, transparent 6.8px, transparent 8.4px, #000 8.8px, #000 10.6px, transparent 11px) top / 100% 100%;
          mask: radial-gradient(circle at 50% 100%, #000 2.2px, transparent 2.6px, transparent 4.2px, #000 4.6px, #000 6.4px, transparent 6.8px, transparent 8.4px, #000 8.8px, #000 10.6px, transparent 11px) top / 100% 100%;
  clip-path: polygon(0 0, 100% 0, 50% 100%); }
.bat { width: 23px; height: 11px; border: 1.3px solid currentColor; border-radius: 3.5px; position: relative; opacity: .95; }
.bat::before { content: ""; position: absolute; right: -3.5px; top: 3px; width: 1.6px; height: 3.5px; border-radius: 0 1px 1px 0; background: currentColor; opacity: .5; }
.bat::after { content: ""; position: absolute; inset: 1.4px; right: 4px; background: currentColor; border-radius: 1.5px; }
.sb.light { color: #fff; }

.hbar { position: absolute; bottom: 7px; left: 50%; transform: translateX(-50%); width: 104px; height: 4.5px; border-radius: 3px; background: #0d0d14; z-index: 18; }
.hbar.light { background: #fff; }

.tabbar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 10;
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; justify-items: center;
  padding: 8px 10px 24px; background: rgba(255, 255, 255, .92); border-top: 1px solid var(--line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: #a3a5b2;
}
.tabbar .ic { width: 20px; height: 20px; }
.tabbar .on { color: var(--accent); }
.tb-scan { width: 40px; height: 40px; border-radius: 14px; background: var(--ink); color: #fff; display: grid; place-items: center; margin-top: -2px; }
.tabbar.dark { background: rgba(14, 14, 22, .92); border-top-color: rgba(255, 255, 255, .07); color: #5d5f6e; }
.tabbar.dark .on { color: #a79fff; }
.tabbar.dark .tb-scan { background: var(--accent); }

.app-top { display: flex; align-items: center; gap: 10px; padding: 12px 16px 10px; flex: none; }
.app-top .ic { width: 20px; height: 20px; color: var(--accent); }
.app-top.plain { justify-content: space-between; padding-top: 16px; }
.app-title { display: flex; flex-direction: column; flex: 1; }
.app-title b { font-size: 15px; letter-spacing: -.01em; }
.app-title b.h { font-size: 25px; letter-spacing: -.035em; }
.app-title small { color: var(--muted); font-size: 11px; margin-top: 1px; }
.pill-mini { background: var(--accent); color: #fff; font-weight: 600; font-size: 11px; padding: 6px 12px; border-radius: 8px; }
.timer { display: inline-flex; align-items: center; gap: 4px; background: var(--accent-soft); color: var(--accent); font-weight: 700; padding: 5px 10px; border-radius: 8px; font-variant-numeric: tabular-nums; }
.timer .ic { width: 13px; height: 13px; }
.round-btn { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; }
.round-btn .ic { width: 16px; height: 16px; color: #fff; }

.ex-card { display: flex; align-items: center; gap: 10px; margin: 0 14px 10px; padding: 10px; border-radius: 14px; background: var(--soft); }
.ex-card b { display: block; font-size: 12px; }
.ex-card small { color: var(--muted); font-size: 11px; }
.ex-img { width: 38px; height: 38px; border-radius: 11px; background: #fff; display: grid; place-items: center; color: var(--accent); box-shadow: 0 1px 2px rgba(0, 0, 0, .06); flex: none; }
.ex-img .ic { width: 20px; height: 20px; }

.sets { margin: 0 10px; font-variant-numeric: tabular-nums; }
.set-h, .set, .f-row { display: grid; grid-template-columns: 26px 1fr 46px 40px 30px; align-items: center; text-align: center; gap: 4px; }
.set-h { font-size: 9.5px; font-weight: 700; color: var(--muted); letter-spacing: .04em; padding: 6px 4px; }
.set { padding: 7px 4px; border-radius: 10px; font-weight: 600; font-size: 12.5px; margin-bottom: 3px; }
.set > span:nth-child(2) { color: var(--muted); font-weight: 500; font-size: 11.5px; }
.set .in { background: var(--soft); border-radius: 7px; padding: 4px 0; }
.chk { width: 24px; height: 24px; border-radius: 7px; background: var(--soft-2); display: grid; place-items: center; justify-self: center; color: #b5b7c3; }
.chk .ic { width: 14px; height: 14px; stroke-width: 3; }
.set.done { background: var(--green-soft); }
.set.done > span:nth-child(2) { color: var(--green-ink); opacity: .75; }
.set.done .chk { background: var(--green); color: #fff; }
.set.ghost { opacity: .25; }
.sets.big .set { padding: 9px 4px; margin-bottom: 4px; }

.add { margin: 6px 14px 0; padding: 9px; display: flex; align-items: center; justify-content: center; gap: 6px; background: var(--soft); border-radius: 10px; font-weight: 600; color: var(--ink-2); font-size: 12px; flex: none; }
.add .ic { width: 14px; height: 14px; }

.mini-board { margin: 12px 14px 0; border: 1px solid var(--line); border-radius: 14px; padding: 9px; }
.mb-h { margin-bottom: 4px; padding: 0 4px; }
.mb-h b { font-size: 11px; color: var(--muted); font-weight: 600; }
.mb-r { display: grid; grid-template-columns: 18px 28px 1fr auto; align-items: center; gap: 8px; padding: 5px 4px; border-radius: 9px; font-variant-numeric: tabular-nums; }
.mb-r.me { background: var(--accent-soft); }
.rk { font-weight: 700; color: var(--muted); text-align: center; font-size: 11.5px; }
.nm { font-weight: 600; font-size: 12.5px; }
.vl { font-weight: 700; font-size: 12px; }
.vl.up { color: var(--green-ink); }
.av { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 9.5px; font-weight: 700; color: #fff; letter-spacing: .02em; flex: none; }
.a1 { background: linear-gradient(135deg, #f97316, #fb923c); }
.a2 { background: linear-gradient(135deg, #5b4cf0, #8b7fff); }
.a3 { background: linear-gradient(135deg, #0ea5e9, #38bdf8); }
.a4 { background: linear-gradient(135deg, #10b981, #34d399); }
.a5 { background: linear-gradient(135deg, #ec4899, #f472b6); }
.a6 { background: linear-gradient(135deg, #64748b, #94a3b8); }

/* floating cards */
.float {
  position: absolute; z-index: 4; background: rgba(255, 255, 255, .96); border-radius: 16px;
  box-shadow: 0 1px 2px rgba(13, 13, 20, .05), 0 18px 40px -12px rgba(13, 13, 20, .22);
  display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; font-size: 13px;
  transform: translate3d(var(--fx, 0), var(--fy, 0), 60px);
  transition: transform .5s var(--ease);
  opacity: 0; animation: fadeIn .8s ease forwards;
}
.f-scan { top: 24px; left: -70px; animation-delay: .8s; }
.f-row { animation-delay: 1s; }
.f-pr { bottom: 52px; right: -78px; animation-delay: 1.2s; }
.float b { display: block; font-size: 13.5px; letter-spacing: -.01em; }
.float small { color: var(--muted); font-size: 12px; }
.f-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.f-ic.orange { background: var(--orange-soft); color: var(--orange); }
.f-ic.sm { width: 30px; height: 30px; border-radius: 9px; }
.f-ic.sm .ic { width: 15px; height: 15px; }
.f-row {
  top: 238px; left: -28px; width: 356px; padding: 12px 14px; font-weight: 700; font-size: 15px;
  background: #ecfdf3; border: 1.5px solid #86efac; font-variant-numeric: tabular-nums;
}
.f-row > span:nth-child(2) { color: var(--green-ink); font-weight: 500; font-size: 13.5px; }
.f-row .chk { width: 28px; height: 28px; background: var(--green); color: #fff; border-radius: 8px; }

/* ================= strip ================= */
.strip { border-block: 1px solid var(--line); }
.strip-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip-in > div { padding: 34px 12px; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.strip-in > div + div { border-left: 1px solid var(--line); }
.strip b { font-size: 44px; letter-spacing: -.04em; font-weight: 800; font-variant-numeric: tabular-nums; }
.strip span { color: var(--muted); font-size: 15px; }

/* ================= shared type ================= */
h2, .center-head h2 { font-size: clamp(34px, 4vw, 54px); line-height: 1.04; letter-spacing: -.04em; font-weight: 800; }
.center-head { text-align: center; max-width: 860px; margin: 0 auto 56px; display: flex; flex-direction: column; align-items: center; }
.center-head p { margin-top: 14px; color: var(--muted); font-size: 18px; }
.tag { display: inline-flex; align-items: center; gap: 7px; color: var(--accent); background: var(--accent-soft); padding: 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; margin-bottom: 18px; }
.tag .ic { width: 15px; height: 15px; }
.tag.dark { background: rgba(122, 109, 255, .16); color: #b8b1ff; }
.checks { list-style: none; padding: 0; margin-top: 28px; display: grid; gap: 14px; }
.checks li { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 500; }
.checks .ic { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--ink); color: #fff; stroke-width: 3; }

/* ================= story (pinned) ================= */
.story { position: relative; height: 420vh; }
.story-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.story-in { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding-top: 40px; }
.story-count { display: flex; align-items: center; gap: 14px; font-weight: 700; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; margin-bottom: 36px; }
.sc-now { color: var(--ink); }
.sc-bar { width: 120px; height: 3px; border-radius: 3px; background: var(--soft-2); overflow: hidden; }
.sc-bar i { display: block; height: 100%; width: calc(var(--sp, 0) * 100%); background: var(--accent); border-radius: 3px; }
.steps { list-style: none; padding: 0; position: relative; min-height: 250px; }
.step { position: absolute; inset: 0 0 auto 0; opacity: 0; transform: translateY(36px); transition: opacity .6s var(--ease), transform .7s var(--ease); pointer-events: none; }
.step.past { transform: translateY(-36px); }
.step.on { opacity: 1; transform: none; pointer-events: auto; }
.step h2 { font-size: clamp(40px, 5vw, 68px); }
.step p { margin-top: 18px; font-size: 20px; color: var(--muted); max-width: 420px; line-height: 1.45; }

.story-vis { position: relative; display: flex; justify-content: center; align-items: center; }
.story-glow { position: absolute; width: 520px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(122, 109, 255, .28), transparent 62%); transition: background .8s ease; }
.story[data-step="1"] .story-glow { background: radial-gradient(circle, rgba(34, 197, 94, .24), transparent 62%); }
.story[data-step="3"] .story-glow { background: radial-gradient(circle, rgba(249, 115, 22, .22), transparent 62%); }
.story-vis .phone { width: 300px; zoom: 1.03; transform: rotate(var(--rot, 0deg)) scale(var(--sc, 1)); transition: transform .6s var(--ease); }
.screen.stack { display: block; }
.scr { position: absolute; inset: 0; display: flex; flex-direction: column; background: #fff; opacity: 0; transform: scale(.96) translateY(12px); transition: opacity .55s var(--ease), transform .7s var(--ease); }
.scr.dark { background: var(--night); color: #fff; }
.scr.on { opacity: 1; transform: none; z-index: 2; }

/* scan screen */
.cam { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  background: radial-gradient(80% 60% at 50% 40%, rgba(91, 76, 240, .38), transparent 70%), linear-gradient(180deg, #17171f, var(--night)); }
.cam-frame { position: relative; width: 172px; height: 172px; display: grid; place-items: center; }
.cam-frame i { position: absolute; width: 36px; height: 36px; border: 4px solid #fff; }
.c1 { top: 0; left: 0; border-right: 0 !important; border-bottom: 0 !important; border-radius: 15px 0 0 0; }
.c2 { top: 0; right: 0; border-left: 0 !important; border-bottom: 0 !important; border-radius: 0 15px 0 0; }
.c3 { bottom: 0; left: 0; border-right: 0 !important; border-top: 0 !important; border-radius: 0 0 0 15px; }
.c4 { bottom: 0; right: 0; border-left: 0 !important; border-top: 0 !important; border-radius: 0 0 15px 0; }
.qr { width: 118px; height: 118px; background: #fff; border-radius: 8px; padding: 7px; box-sizing: content-box; }
.cam-frame::after { content: ""; position: absolute; left: 14px; right: 14px; height: 2px; top: 50%; background: var(--green); box-shadow: 0 0 14px 2px rgba(34, 197, 94, .7); animation: scanline 2.6s ease-in-out infinite; }
@keyframes scanline { 0%, 100% { transform: translateY(-64px); } 50% { transform: translateY(64px); } }
.cam-hint { font-size: 11.5px; color: rgba(255, 255, 255, .72); background: rgba(255, 255, 255, .08); padding: 7px 12px; border-radius: 999px; }
.sheet { background: #fff; color: var(--ink); border-radius: 26px 26px 0 0; padding: 8px 16px 30px; transform: translateY(100%); transition: transform .7s .25s var(--ease); }
.scr.on .sheet { transform: none; }
.grab { width: 36px; height: 4px; border-radius: 4px; background: #d9d9e1; margin: 0 auto 12px; }
.sheet-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.sheet-row .ex-img { background: var(--accent-soft); box-shadow: none; }
.sheet-row b { display: block; font-size: 14px; }
.sheet-row small { color: var(--muted); font-size: 11px; }

/* log screen */
.rest { display: flex; align-items: center; gap: 10px; margin: 16px 14px 12px; font-size: 11.5px; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.rest b { color: var(--accent); }
.rest-bar { flex: 1; height: 6px; border-radius: 6px; background: var(--soft-2); overflow: hidden; }
.rest-bar i { display: block; height: 100%; width: 0; border-radius: 6px; background: var(--accent); transition: width 1.6s .3s var(--ease); }
.scr.on .rest-bar i { width: 62%; }
.scr .push { margin: auto 14px 30px; width: auto; }
.set.pop .chk { transform: scale(.4); transition: transform .5s .35s cubic-bezier(.3, 1.6, .5, 1); }
.scr.on .set.pop .chk { transform: none; }

/* progress screen */
.seg { display: flex; margin: 4px 14px 0; background: var(--soft); border-radius: 10px; padding: 3px; font-size: 11px; font-weight: 600; color: var(--muted); flex: none; }
.seg span { flex: 1; text-align: center; padding: 6px 0; border-radius: 8px; }
.seg span.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.kpi { padding: 16px 16px 4px; }
.kpi small { color: var(--muted); font-size: 11px; }
.kpi-n { font-size: 40px; font-weight: 800; letter-spacing: -.045em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi-n em { font-style: normal; font-size: 16px; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.delta { display: inline-flex; align-items: center; gap: 4px; color: var(--green-ink); background: var(--green-soft); font-weight: 700; font-size: 11px; padding: 4px 8px; border-radius: 7px; margin-top: 4px; }
.delta .ic { width: 13px; height: 13px; stroke-width: 2.5; }
.chart { width: calc(100% - 28px); height: 120px; margin: 12px 14px 0; display: block; overflow: visible; }
.line-path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s .2s var(--ease); }
.scr.on .line-path { stroke-dashoffset: 0; }
.chart .area, .chart .dot { opacity: 0; transition: opacity .8s 1.2s ease; }
.scr.on .chart .area, .scr.on .chart .dot { opacity: 1; }
.chart-x { display: flex; justify-content: space-between; margin: 4px 16px 0; font-size: 10px; color: var(--muted); }
.recs { display: grid; gap: 8px; margin: 16px 14px 0; }
.rec { display: flex; align-items: center; gap: 10px; padding: 9px; border-radius: 12px; border: 1px solid var(--line); }
.rec b { display: block; font-size: 12px; }
.rec small { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }

/* ranking screen */
.seg.three span { font-size: 10.5px; }
.podium { display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 6px; margin: 16px 14px 10px; }
.pd { display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; }
.pd .av { width: 38px; height: 38px; font-size: 11px; margin-bottom: 2px; box-shadow: 0 0 0 3px #fff, 0 4px 10px rgba(0, 0, 0, .12); }
.pd b { font-size: 12px; }
.pd small { font-size: 11px; font-weight: 700; color: var(--green-ink); }
.pd i { display: grid; place-items: center; width: 100%; margin-top: 6px; border-radius: 10px 10px 4px 4px; font-style: normal; font-weight: 800; font-size: 16px; color: var(--muted); background: var(--soft); transform-origin: bottom; transform: scaleY(.1); transition: transform .8s var(--ease); }
.scr.on .pd i { transform: none; }
.scr.on .p2 i { transition-delay: .15s; }
.scr.on .p3 i { transition-delay: .3s; }
.p1 i { height: 62px; background: linear-gradient(180deg, #ffedd5, #fff7ed); color: var(--orange); }
.p1 .av { width: 46px; height: 46px; }
.p2 i { height: 44px; }
.p3 i { height: 32px; }
.board { margin: 0 12px; display: grid; gap: 2px; }
.board .mb-r { padding: 7px 6px; }

/* ================= statement ================= */
.statement { position: relative; height: 240vh; background: var(--night); color: #fff; }
.statement-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden;
  background: radial-gradient(50% 60% at 85% 10%, rgba(91, 76, 240, .3), transparent 70%), radial-gradient(40% 50% at 5% 95%, rgba(34, 197, 94, .12), transparent 70%); }
.words { font-size: clamp(40px, 6.4vw, 96px); line-height: 1.02; letter-spacing: -.05em; font-weight: 800; max-width: 1100px; }
.words .w { opacity: .14; transition: opacity .25s linear; }
.words .w.hl { color: #b3abff; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 260px)); gap: 14px; margin-top: 56px; opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.trio.in { opacity: 1; transform: none; }
.trio > div { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.trio .ic { color: #a79fff; width: 22px; height: 22px; margin-bottom: 8px; }
.trio b { font-size: 16px; }
.trio small { color: rgba(255, 255, 255, .55); font-size: 13.5px; }

/* ================= duo ================= */
.duo { padding: 140px 0; overflow: hidden; }
.duo-in { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.duo-vis { position: relative; height: 700px; }
.duo-vis::before { content: ""; position: absolute; inset: 8% 0 8% 6%; border-radius: 40px; background: radial-gradient(60% 60% at 70% 30%, rgba(122, 109, 255, .22), transparent 70%), var(--soft); }
.duo-vis .phone { position: absolute; width: 300px; zoom: .93; transform: translateY(var(--py, 0px)) rotate(var(--r)); }
.duo-a { --r: -5deg; left: 6%; top: 40px; }
.duo-b { --r: 5deg; right: 2%; top: 110px; }
.routines { display: grid; gap: 8px; margin: 6px 14px 0; }
.rt { border: 1px solid var(--line); border-radius: 14px; padding: 11px 12px; }
.rt-t { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.rt b { font-size: 13.5px; }
.rt small { color: var(--muted); font-size: 10.5px; display: block; }
.rt.empty { border-style: dashed; border-color: #d6d6e0; color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 600; padding: 12px; }
.rt.empty .ic { width: 14px; height: 14px; }

.prof { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 16px 0 14px; }
.av.big { width: 62px; height: 62px; font-size: 15px; margin-bottom: 8px; box-shadow: 0 0 0 4px rgba(122, 109, 255, .25); }
.prof b { font-size: 17px; }
.prof small { color: rgba(255, 255, 255, .5); font-size: 11px; }
.streak { margin: 0 14px; padding: 14px; border-radius: 18px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .07); }
.streak-n { display: flex; align-items: baseline; gap: 6px; margin-bottom: 12px; }
.streak-n .ic { color: var(--orange); width: 18px; height: 18px; align-self: center; }
.streak-n b { font-size: 24px; letter-spacing: -.03em; }
.streak-n span { color: rgba(255, 255, 255, .55); font-size: 11.5px; }
.heat { display: grid; grid-template-columns: repeat(9, 1fr); grid-template-rows: repeat(7, 1fr); grid-auto-flow: column; gap: 4px; }
.heat i { aspect-ratio: 1; border-radius: 4px; background: rgba(255, 255, 255, .06); }
.heat i.l1 { background: rgba(122, 109, 255, .35); }
.heat i.l2 { background: rgba(122, 109, 255, .65); }
.heat i.l3 { background: #8b7fff; }
.heat-x { display: flex; justify-content: space-between; margin-top: 6px; font-size: 9.5px; color: rgba(255, 255, 255, .4); }
.stats3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 14px 0; }
.stats3 > div { background: rgba(255, 255, 255, .05); border-radius: 14px; padding: 10px; text-align: center; }
.stats3 b { display: block; font-size: 17px; letter-spacing: -.02em; }
.stats3 small { color: rgba(255, 255, 255, .5); font-size: 10px; }

/* ================= tv ================= */
.tv-sec { padding: 130px 0 150px; background: var(--night); color: #fff; overflow: hidden; position: relative; }
.tv-sec::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 50% at 50% 70%, rgba(91, 76, 240, .3), transparent 70%); pointer-events: none; }
.tv-sec .center-head p { color: rgba(255, 255, 255, .6); }
.tv-persp { perspective: 1400px; position: relative; }
.tv { max-width: 1000px; margin: 0 auto; transform: rotateX(var(--trx, 18deg)) scale(var(--tsc, .86)); transform-origin: 50% 0; will-change: transform; }
.tv-screen {
  border-radius: 22px; padding: 30px 34px 34px; color: #fff; border: 10px solid #1a1a22; aspect-ratio: 16 / 9; display: flex; flex-direction: column;
  background: radial-gradient(60% 80% at 85% 0%, rgba(91, 76, 240, .55), transparent 60%), radial-gradient(50% 70% at 0% 100%, rgba(59, 130, 246, .3), transparent 60%), #0b0b12;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 60px 120px -30px rgba(0, 0, 0, .7), 0 0 120px -20px rgba(91, 76, 240, .4);
}
.tv-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.tv-live { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .8); background: rgba(255, 255, 255, .08); padding: 7px 14px; border-radius: 999px; }
.tv-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.tv-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; flex: 1; }
.tv-col { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.tv-h { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, .7); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.tv-h .ic { color: var(--accent-2); width: 16px; height: 16px; }
.tv-r { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; font-size: 17px; font-variant-numeric: tabular-nums; opacity: 0; transform: translateX(-14px); transition: opacity .5s ease, transform .6s var(--ease); }
.tv.live .tv-r { opacity: 1; transform: none; }
.tv.live .tv-r:nth-child(3) { transition-delay: .08s; }
.tv.live .tv-r:nth-child(4) { transition-delay: .16s; }
.tv.live .tv-r:nth-child(5) { transition-delay: .24s; }
.tv-r span { font-weight: 800; color: rgba(255, 255, 255, .45); }
.tv-r em { font-style: normal; font-weight: 800; color: #86efac; }
.tv-r.first { background: linear-gradient(90deg, rgba(249, 115, 22, .3), rgba(249, 115, 22, .08)); }
.tv-r.first span { color: #fdba74; }
.tv-rec { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 4px; }
.tv-rec small { color: rgba(255, 255, 255, .6); font-size: 15px; }
.tv-big { font-size: 76px; font-weight: 800; letter-spacing: -.05em; line-height: 1; background: linear-gradient(180deg, #fff, #c7c2ff); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.tv-big em { font-style: normal; font-size: 22px; letter-spacing: 0; margin-left: 4px; }
.tv-rec b { font-size: 18px; }
.tv-stand { width: 170px; height: 14px; margin: 0 auto; background: linear-gradient(#2a2a33, #16161d); border-radius: 0 0 10px 10px; }

/* ================= gyms ================= */
.gyms { padding: 130px 0 110px; }
.gyms .center-head { margin-bottom: 48px; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { background: var(--soft); border-radius: 24px; padding: 28px 24px; display: flex; flex-direction: column; gap: 8px; transition: transform .35s var(--ease), box-shadow .35s ease, background .35s ease; }
.card:hover { transform: translateY(-4px); background: #fff; box-shadow: var(--shadow); }
.card-ic { width: 46px; height: 46px; border-radius: 14px; background: #fff; display: grid; place-items: center; color: var(--accent); margin-bottom: 12px; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.card-ic .ic { width: 22px; height: 22px; }
.card b { font-size: 18px; letter-spacing: -.01em; }
.card p { color: var(--muted); font-size: 15px; line-height: 1.5; }

/* ================= cta ================= */
.cta { padding: 0 0 96px; }
.cta-in {
  border-radius: 36px; padding: 96px 40px; text-align: center; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(60% 90% at 100% 0%, rgba(255, 255, 255, .22), transparent 60%), radial-gradient(50% 80% at 0% 100%, rgba(34, 197, 94, .3), transparent 60%), var(--accent);
}
.cta h2 { max-width: 760px; margin: 0 auto; }
.cta-btns { margin-top: 32px; display: flex; justify-content: center; }

/* ================= footer ================= */
.foot { border-top: 1px solid var(--line); }
.foot-in { display: flex; justify-content: space-between; align-items: center; padding: 28px 0; }
.foot .logo { font-size: 17px; }
.foot .logo-mark { width: 26px; height: 26px; padding: 6px; }
.foot small { color: var(--muted); font-size: 14px; }

/* ================= reveal ================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.cards .card.reveal:nth-child(2) { transition-delay: .08s; }
.cards .card.reveal:nth-child(3) { transition-delay: .16s; }
.cards .card.reveal:nth-child(4) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .hero h1 .line > span, .fade-up, .glow, .hero-stage, .float { opacity: 1; transform: none; }
}

/* ================= responsive ================= */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .f-scan { left: -30px; }
  .f-pr { right: -30px; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero { padding: 28px 0 56px; }
  .hero-in { grid-template-columns: 1fr; gap: 16px; }
  .hero-copy { text-align: center; }
  .hero-cta, .hero-points { justify-content: center; }
  .hero-visual { min-height: 0; padding: 40px 0 20px; }
  .strip-in { grid-template-columns: repeat(2, 1fr); }
  .strip-in > div:nth-child(3) { border-left: 0; }
  .strip-in > div:nth-child(n+3) { border-top: 1px solid var(--line); }

  .story { height: 400vh; }
  .story-in { grid-template-columns: 1fr; gap: 18px; padding-top: 68px; text-align: center; }
  .story-vis { order: -1; text-align: left; }
  .story-vis .phone { zoom: .74; }
  .story-glow { width: 340px; }
  .story-count { justify-content: center; margin-bottom: 14px; }
  .steps { min-height: 150px; }
  .step .tag { display: none; }
  .step h2 { font-size: 32px; }
  .step p { font-size: 16px; margin: 10px auto 0; }

  .statement { height: 200vh; }
  .trio { grid-template-columns: 1fr; margin-top: 36px; }
  .trio > div { padding: 14px 16px; }

  .duo { padding: 90px 0; }
  .duo-in { grid-template-columns: 1fr; }
  .duo-vis { height: 600px; }
  .duo-a { left: 0; }
  .duo-b { right: 0; }

  .tv-sec { padding: 90px 0 100px; }
  .tv-screen { aspect-ratio: auto; padding: 22px; border-width: 8px; }
  .tv-cols { grid-template-columns: 1fr; }
  .tv-col:nth-child(2) { display: none; }
  .gyms { padding: 90px 0; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); }
  .hero h1 { font-size: 44px; }
  .lead { font-size: 17px; }
  .hero-stage .phone { zoom: .9; }
  .f-scan { left: -12px; top: 10px; padding: 9px 12px 9px 9px; }
  .f-pr { right: -12px; bottom: 40px; padding: 9px 12px 9px 9px; }
  .f-row { width: 300px; left: -15px; top: 212px; font-size: 14px; }
  .f-ic { width: 32px; height: 32px; }
  .cards { grid-template-columns: 1fr; }
  .duo-vis { height: 520px; }
  .duo-vis .phone { zoom: .72; }
  .duo-a { top: 20px; }
  .duo-b { top: 90px; }
  .cta-in { padding: 64px 24px; border-radius: 28px; }
  .strip b { font-size: 34px; }
  .strip span { font-size: 13px; }
  .words { font-size: 44px; }
}

/* fallback: show intro content even if animations never run */
.anim-done .hero h1 .line > span,
.anim-done .fade-up,
.anim-done .glow,
.anim-done .hero-stage,
.anim-done .float { animation: none !important; opacity: 1 !important; transform: none; translate: none; }
.anim-done .hero-stage { transform: rotateY(var(--ry, -14deg)) rotateX(var(--rx, 6deg)) translateY(var(--ty, 0px)); }
.anim-done .float { transform: translate3d(var(--fx, 0), var(--fy, 0), 60px); }
