:root {
  --bg: #05070d;
  --bg-soft: #0a0e18;
  --panel: rgba(14, 19, 33, 0.78);
  --panel-strong: rgba(22, 30, 52, 0.92);
  --text: #f7fbff;
  --muted: #93a4bc;
  --blue: #0a84ff;
  --cyan: #31d7ff;
  --violet: #7c4dff;
  --green: #40e89f;
  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --section: clamp(72px, 10vw, 140px);
  --scroll-progress: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  min-width: 320px;
  max-width: 100%;
  background:
    radial-gradient(circle at 20% 0%, rgba(10, 132, 255, 0.22), transparent 32rem),
    radial-gradient(circle at 78% 8%, rgba(124, 77, 255, 0.2), transparent 34rem),
    var(--bg);
  color: var(--text);
  font-family: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: clip;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3 {
  margin-top: 0;
}

p {
  color: var(--muted);
  line-height: 1.75;
}

.page-shell {
  position: relative;
  isolation: isolate;
}

.section-pad {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding-block: var(--section);
}

.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 20;
  display: flex;
  width: min(1180px, calc(100% - 32px));
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(6, 9, 17, 0.62);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
  transition: border-color 220ms ease, background 220ms ease, transform 220ms ease;
}

.site-header.is-scrolled {
  border-color: rgba(10, 132, 255, 0.32);
  background: rgba(6, 9, 17, 0.82);
}

.brand,
.site-nav,
.hero-actions,
.store-actions,
.motion-pills {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(49, 215, 255, 0.95), rgba(10, 132, 255, 0.95) 45%, rgba(124, 77, 255, 0.95)),
    #0a84ff;
  color: white;
  box-shadow: 0 10px 30px rgba(10, 132, 255, 0.45);
}

.site-nav {
  gap: clamp(14px, 3vw, 32px);
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.92rem;
  font-weight: 700;
}

.site-nav a,
.site-footer a {
  transition: color 180ms ease;
}

.site-nav a:hover,
.site-footer a:hover {
  color: var(--cyan);
}

.header-cta,
.button,
.store-button {
  border-radius: 999px;
  font-weight: 800;
}

.header-cta {
  padding: 10px 16px;
  background: rgba(10, 132, 255, 0.16);
  color: #dff1ff;
  font-size: 0.9rem;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100vh;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.88fr);
  gap: clamp(48px, 8vw, 110px);
  padding-top: 150px;
  overflow: clip;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  perspective: 1000px;
}

.grid-plane {
  position: absolute;
  width: 760px;
  height: 760px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background-image:
    linear-gradient(rgba(10, 132, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 132, 255, 0.18) 1px, transparent 1px);
  background-size: 52px 52px;
  opacity: 0.38;
  transform-style: preserve-3d;
}

.grid-plane-one {
  top: 14%;
  right: -260px;
  transform: rotateX(68deg) rotateZ(-24deg) translateZ(-150px);
}

.grid-plane-two {
  bottom: -320px;
  left: -260px;
  transform: rotateX(68deg) rotateZ(18deg) translateZ(-180px);
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.5;
}

.glow-blue {
  top: 24%;
  right: 10%;
  width: 240px;
  height: 240px;
  background: rgba(10, 132, 255, 0.35);
}

.glow-violet {
  bottom: 12%;
  left: 16%;
  width: 210px;
  height: 210px;
  background: rgba(124, 77, 255, 0.28);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  display: inline-block;
  width: 30px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

h1,
h2 {
  letter-spacing: -0.07em;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(3.5rem, 8vw, 7.8rem);
  line-height: 0.88;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 0.98;
}

h3 {
  margin-bottom: 14px;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  letter-spacing: -0.035em;
}

.hero-lede {
  max-width: 660px;
  margin-bottom: 32px;
  color: #c3d3e8;
  font-size: clamp(1.08rem, 2vw, 1.36rem);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 44px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.button:hover,
.store-button:hover,
.capability-card:hover {
  transform: translateY(-4px);
}

.button-primary {
  background: linear-gradient(135deg, var(--cyan), var(--blue) 48%, var(--violet));
  color: white;
  box-shadow: 0 18px 50px rgba(10, 132, 255, 0.34);
}

.button-ghost {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: white;
}

.hero-metrics {
  display: grid;
  max-width: 640px;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.hero-metrics div,
.capability-card,
.download-card,
.immersive-card,
.coach-board,
.chapter {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.hero-metrics div {
  padding: 18px;
  border-radius: var(--radius-md);
}

.hero-metrics strong {
  display: block;
  margin-bottom: 4px;
  color: white;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.hero-metrics span {
  color: var(--muted);
  font-size: 0.86rem;
}

.hero-stage {
  perspective: 1300px;
}

.scene {
  position: relative;
  min-height: 700px;
  transform-style: preserve-3d;
}

.phone {
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(340px, 75vw);
  height: 690px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 48px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02)),
    #0b0f1a;
  box-shadow:
    0 36px 100px rgba(0, 0, 0, 0.6),
    inset 0 0 0 8px rgba(255, 255, 255, 0.04);
  transform:
    translate(-50%, -50%)
    rotateX(1.5deg)
    rotateY(-4deg)
    rotateZ(-3deg);
  transform-style: preserve-3d;
  transition: transform 180ms ease-out;
}

.phone::before {
  position: absolute;
  inset: 16px;
  z-index: -1;
  border-radius: 42px;
  background: linear-gradient(135deg, rgba(49, 215, 255, 0.22), rgba(124, 77, 255, 0.18));
  filter: blur(38px);
  transform: translateZ(-40px);
  content: "";
}

.phone::after {
  position: absolute;
  top: 70px;
  right: -18px;
  width: 4px;
  height: 86px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  content: "";
}

.phone-glass {
  position: absolute;
  inset: 14px;
  overflow: hidden;
  border-radius: 38px;
  background:
    radial-gradient(circle at 50% 0%, rgba(10, 132, 255, 0.36), transparent 18rem),
    linear-gradient(180deg, #111827, #060912);
}

.phone-hero .phone-glass {
  background:
    url("./assets/phone-dashboard.svg?v=cleanrun-11") center / 92% 94% no-repeat,
    radial-gradient(circle at 70% 16%, rgba(10, 132, 255, 0.24), transparent 7rem),
    radial-gradient(circle at 30% 85%, rgba(124, 77, 255, 0.18), transparent 9rem),
    linear-gradient(180deg, #101827, #060912);
}

.phone-hero .phone-glass::before {
  display: none;
  position: absolute;
  inset: 66px 20px 22px;
  z-index: 4;
  border-radius: 28px;
  background:
    radial-gradient(circle at 19% 23%, transparent 0 18px, #31d7ff 19px 30px, transparent 31px),
    radial-gradient(circle at 50% 23%, transparent 0 18px, #0a84ff 19px 30px, transparent 31px),
    radial-gradient(circle at 80% 23%, transparent 0 18px, #7c4dff 19px 30px, transparent 31px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.14)) 0 118px / 100% 1px no-repeat,
    linear-gradient(135deg, rgba(64, 232, 159, 0.95), rgba(49, 215, 255, 0.95)) 18px 162px / 42px 42px no-repeat,
    linear-gradient(90deg, rgba(49, 215, 255, 0.9), rgba(10, 132, 255, 0.9)) 24px 470px / 58px 8px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.28)) 108px 470px / 36px 8px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.28)) 174px 470px / 36px 8px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.28)) 238px 470px / 36px 8px no-repeat,
    linear-gradient(180deg, #172238, #142137) 0 0 / 100% 58px no-repeat,
    linear-gradient(180deg, #121d31, #101a2c) 0 136px / 47% 78px no-repeat,
    linear-gradient(180deg, #121d31, #101a2c) 100% 136px / 47% 78px no-repeat,
    linear-gradient(180deg, #14243a, #111d31) 0 236px / 100% 82px no-repeat,
    linear-gradient(180deg, #121d31, #101a2c) 0 342px / 47% 80px no-repeat,
    linear-gradient(180deg, #121d31, #101a2c) 100% 342px / 47% 80px no-repeat,
    linear-gradient(180deg, #111c30, #101a2c) 0 452px / 100% 44px no-repeat;
  background-color: rgba(6, 12, 24, 0.9);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 18px 44px rgba(0, 0, 0, 0.28);
  content: "";
}

.phone-hero .phone-glass::after {
  display: none;
  position: absolute;
  inset: 82px 34px 40px;
  z-index: 5;
  color: white;
  content:
    "ATHLOGRAM        Live Dashboard"
    "\A\A\A\A\A"
    "1h 42m        620"
    "\A Training       Kcal"
    "\A\A Outdoor Run"
    "\A 5.8 km - 8% faster pace"
    "\A\A Coach          Food"
    "\A Plan assigned   Meal scanned";
  font-family: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
  white-space: pre-wrap;
  pointer-events: none;
}

.phone-top {
  position: relative;
  z-index: 9;
  display: grid;
  height: 54px;
  place-items: center;
}

.phone-top span {
  width: 96px;
  height: 24px;
  border-radius: 999px;
  background: #05070d;
}

.phone-live-ui {
  position: absolute;
  inset: 54px 18px 18px;
  z-index: 1;
  display: grid;
  align-content: start;
  gap: 13px;
  padding: 4px 0 0;
}

.phone-hero .phone-live-ui {
  display: none;
}

.phone-dashboard-svg {
  display: none;
}

.live-header,
.live-stat-row div,
.live-workout-card,
.live-feed-grid div,
.live-message-card,
.live-tabbar {
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.075);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.live-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 14px;
  border-radius: 20px;
}

.live-header span,
.live-stat-row span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.live-header strong {
  color: white;
  font-size: 1.08rem;
}

.live-rings {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 4px 2px;
}

.live-rings span {
  position: relative;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    conic-gradient(from 20deg, var(--green), var(--cyan), var(--blue), transparent 74%),
    rgba(255, 255, 255, 0.07);
  box-shadow: 0 10px 24px rgba(10, 132, 255, 0.22);
}

.live-rings span:nth-child(2) {
  background:
    conic-gradient(from 80deg, var(--cyan), var(--blue), var(--violet), transparent 68%),
    rgba(255, 255, 255, 0.07);
}

.live-rings span:nth-child(3) {
  background:
    conic-gradient(from 150deg, var(--violet), var(--blue), var(--green), transparent 82%),
    rgba(255, 255, 255, 0.07);
}

.live-rings span::after {
  position: absolute;
  inset: 23%;
  border-radius: inherit;
  background: #111827;
  content: "";
}

.live-stat-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.live-stat-row div {
  display: grid;
  gap: 5px;
  padding: 13px;
  border-radius: 18px;
}

.live-stat-row strong {
  color: white;
  font-size: 1.65rem;
  letter-spacing: -0.06em;
}

.live-workout-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 20px;
}

.live-workout-card > span {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--cyan), var(--blue));
}

.live-workout-card strong {
  display: block;
  margin-bottom: 4px;
  color: white;
}

.live-workout-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.live-feed-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.live-feed-grid div {
  display: grid;
  min-height: 96px;
  align-content: start;
  gap: 5px;
  padding: 12px;
  border-radius: 18px;
}

.live-feed-grid small {
  color: var(--cyan);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.live-feed-grid strong {
  color: white;
  font-size: 0.94rem;
}

.live-feed-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.35;
}

.live-message-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 18px;
}

.live-message-card span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--blue));
}

.live-message-card p {
  margin: 0;
  color: #dcecff;
  font-size: 0.76rem;
  line-height: 1.35;
}

.live-tabbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: auto;
  padding: 10px 14px;
  border-radius: 999px;
}

.live-tabbar span {
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.live-tabbar span:first-child {
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  box-shadow: 0 0 16px rgba(49, 215, 255, 0.45);
}

.app-screen {
  position: absolute;
  inset: 54px 0 0;
  z-index: 2;
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 22px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(18px) scale(0.98);
  transition: opacity 420ms ease, transform 420ms ease, visibility 0s linear 420ms;
}

.app-screen.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  transition-delay: 0s;
}

.phone-hero .app-screen {
  display: none;
}

.screen-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.screen-header span,
.muted,
.board-label,
.store-button span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.screen-header strong {
  font-size: 1.28rem;
}

.ring-card,
.feed-card,
.scan-card,
.macro-grid span,
.student-stack div,
.message-bubble {
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.07);
}

.ring-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: center;
  gap: 16px;
  padding: 18px;
}

.ring-card strong {
  display: block;
  margin-top: 6px;
  font-size: 2rem;
}

.activity-ring {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background:
    conic-gradient(var(--cyan), var(--blue), var(--violet), transparent 78%),
    rgba(255, 255, 255, 0.05);
  animation: ring-spin 8s linear infinite;
}

.activity-ring::after {
  display: block;
  width: 64px;
  height: 64px;
  margin: 20px;
  border-radius: 50%;
  background: #111827;
  content: "";
}

.mini-chart {
  display: flex;
  height: 150px;
  align-items: end;
  gap: 12px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(10, 132, 255, 0.1);
}

.mini-chart span {
  flex: 1;
  height: var(--h);
  border-radius: 999px 999px 8px 8px;
  background: linear-gradient(180deg, var(--cyan), var(--blue));
  animation: bar-rise 1.8s ease-in-out infinite alternate;
}

.mini-chart span:nth-child(2) { animation-delay: 120ms; }
.mini-chart span:nth-child(3) { animation-delay: 240ms; }
.mini-chart span:nth-child(4) { animation-delay: 360ms; }
.mini-chart span:nth-child(5) { animation-delay: 480ms; }

.feed-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
}

.feed-card p {
  margin: 4px 0 0;
  font-size: 0.88rem;
}

.avatar {
  display: inline-block;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--cyan), var(--blue));
}

.scan-card {
  position: relative;
  display: grid;
  height: 210px;
  place-items: center;
  overflow: hidden;
}

.plate {
  width: 142px;
  height: 142px;
  border: 14px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 35%, #40e89f 0 16px, transparent 17px),
    radial-gradient(circle at 65% 55%, #31d7ff 0 20px, transparent 21px),
    radial-gradient(circle at 48% 68%, #7c4dff 0 14px, transparent 15px),
    rgba(255, 255, 255, 0.08);
}

.scan-line {
  position: absolute;
  left: 22px;
  right: 22px;
  height: 2px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 28px var(--cyan);
  animation: scan 2.4s ease-in-out infinite;
}

.macro-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.macro-grid span {
  display: grid;
  gap: 10px;
  padding: 16px;
  color: var(--muted);
  font-size: 0.86rem;
}

.macro-grid strong {
  color: white;
  font-size: 1.35rem;
}

.student-stack {
  display: grid;
  gap: 12px;
}

.student-stack div {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
}

.student-stack em {
  color: var(--cyan);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 700;
}

.message-bubble {
  padding: 18px;
  color: #ddecff;
  line-height: 1.5;
}

.orbit {
  position: absolute;
  display: grid;
  width: 150px;
  height: 150px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.22), transparent 1.8rem),
    rgba(12, 17, 30, 0.76);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  transform-style: preserve-3d;
  animation: float-orbit 7s ease-in-out infinite;
}

.orbit span {
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.orbit-one {
  top: 9%;
  right: 8%;
  transform: translateZ(140px);
}

.orbit-two {
  right: 0;
  bottom: 20%;
  animation-delay: 900ms;
  transform: translateZ(90px);
}

.orbit-three {
  bottom: 8%;
  left: 3%;
  animation-delay: 1.6s;
  transform: translateZ(130px);
}

.scroll-map {
  position: sticky;
  top: 88px;
  z-index: 10;
  display: grid;
  width: min(720px, calc(100% - 40px));
  margin: -44px auto 0;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(5, 7, 13, 0.68);
  backdrop-filter: blur(18px);
}

.scroll-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.scroll-track span {
  display: block;
  width: calc(var(--scroll-progress) * 100%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--blue), var(--violet));
}

.scroll-map p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.84rem;
  font-weight: 700;
}

.story-intro,
.section-heading {
  max-width: 860px;
}

.story-layout {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: clamp(30px, 6vw, 90px);
  margin-top: 54px;
}

.sticky-product {
  position: sticky;
  top: 155px;
  display: grid;
  height: min(72vh, 680px);
  place-items: center;
  perspective: 1000px;
}

.mini-phone {
  width: min(360px, 72vw);
  height: 560px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 42px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow);
  transform: rotateX(12deg) rotateY(calc(-18deg + var(--scroll-progress) * 20deg));
  transform-style: preserve-3d;
}

.mini-phone-screen {
  display: grid;
  height: 100%;
  align-content: center;
  gap: 28px;
  padding: 26px;
  overflow: hidden;
  border-radius: 31px;
  background:
    radial-gradient(circle at 50% 18%, rgba(10, 132, 255, 0.36), transparent 14rem),
    linear-gradient(180deg, #101829, #060912);
}

.story-badge {
  justify-self: start;
  padding: 8px 12px;
  border: 1px solid rgba(49, 215, 255, 0.35);
  border-radius: 999px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.story-wave {
  display: grid;
  height: 180px;
  grid-template-columns: repeat(4, 1fr);
  align-items: end;
  gap: 18px;
}

.story-wave span {
  height: 50%;
  border-radius: 999px 999px 14px 14px;
  background: linear-gradient(180deg, var(--green), var(--cyan), var(--blue));
  transform-origin: bottom;
}

.story-wave span:nth-child(1) { height: 45%; }
.story-wave span:nth-child(2) { height: 82%; }
.story-wave span:nth-child(3) { height: 62%; }
.story-wave span:nth-child(4) { height: 98%; }

.mini-phone-screen p {
  margin: 0;
  color: #d9e7f7;
  font-size: 1.16rem;
}

.chapters {
  display: grid;
  gap: 20vh;
  padding-bottom: 8vh;
}

.chapter {
  min-height: 340px;
  padding: clamp(24px, 5vw, 44px);
  border-radius: var(--radius-xl);
}

.chapter.is-active {
  border-color: rgba(49, 215, 255, 0.4);
  background: rgba(17, 28, 51, 0.86);
}

.chapter-number {
  display: inline-block;
  margin-bottom: 40px;
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.capabilities {
  position: relative;
}

.app-gallery {
  padding-top: 0;
}

.app-shot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.85fr) minmax(220px, 0.85fr);
  gap: 22px;
  margin-top: 50px;
  perspective: 1400px;
}

.app-shot {
  position: relative;
  display: grid;
  min-height: 430px;
  align-content: space-between;
  gap: 24px;
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 50% 0%, rgba(49, 215, 255, 0.15), transparent 17rem),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  transform-style: preserve-3d;
}

.app-shot-large {
  grid-row: span 2;
  min-height: 650px;
}

.app-shot::before {
  position: absolute;
  inset: auto -20% -34% 18%;
  height: 230px;
  border-radius: 50%;
  background: rgba(10, 132, 255, 0.2);
  filter: blur(34px);
  content: "";
}

.shot-phone {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(100%, 330px);
  min-height: 350px;
  align-content: start;
  gap: 14px;
  justify-self: center;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 32px;
  background:
    radial-gradient(circle at 50% 0%, rgba(10, 132, 255, 0.28), transparent 12rem),
    linear-gradient(180deg, #101829, #050812);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.45),
    inset 0 0 0 7px rgba(255, 255, 255, 0.04);
  transform: rotateX(10deg) rotateY(-14deg) rotateZ(2deg) translateZ(40px);
  transform-style: preserve-3d;
}

.app-shot:nth-child(3) .shot-phone,
.app-shot:nth-child(5) .shot-phone {
  transform: rotateX(10deg) rotateY(14deg) rotateZ(-2deg) translateZ(40px);
}

.app-shot-large .shot-phone {
  min-height: 470px;
}

.shot-status,
.shot-hero,
.shot-row,
.shot-feed,
.set-card,
.macro-list span,
.student-row,
.chat-bubble {
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.07);
}

.shot-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 11px;
  border-radius: 999px;
}

.shot-status span,
.shot-hero small,
.app-shot-copy span {
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.shot-status strong {
  font-size: 0.86rem;
}

.shot-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 20px;
}

.shot-avatar,
.shot-feed span,
.student-row span {
  display: inline-block;
  flex: 0 0 auto;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--cyan), var(--blue));
}

.shot-avatar {
  width: 48px;
  height: 48px;
}

.shot-hero strong {
  display: block;
  margin-top: 5px;
  font-size: 1.18rem;
}

.shot-rings {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 8px 0;
}

.shot-rings span {
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(var(--cyan), var(--blue), var(--violet), transparent 72%);
}

.shot-rings span::after {
  display: block;
  width: 58%;
  height: 58%;
  margin: 21%;
  border-radius: 50%;
  background: #111827;
  content: "";
}

.shot-row {
  display: grid;
  gap: 4px;
  padding: 16px;
  border-radius: 20px;
}

.shot-row strong {
  font-size: 2rem;
  letter-spacing: -0.06em;
}

.shot-row span,
.shot-feed p,
.set-card span,
.macro-list span,
.student-row em {
  color: var(--muted);
  font-size: 0.82rem;
}

.shot-feed {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-radius: 20px;
}

.shot-feed span,
.student-row span {
  width: 34px;
  height: 34px;
}

.shot-feed p {
  margin: 0;
  line-height: 1.4;
}

.set-card {
  display: grid;
  gap: 6px;
  padding: 15px;
  border-radius: 18px;
}

.shot-action {
  margin-top: 8px;
  padding: 13px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: white;
  text-align: center;
  font-weight: 900;
}

.food-camera {
  position: relative;
  display: grid;
  min-height: 160px;
  place-items: center;
  overflow: hidden;
  border-radius: 22px;
  background:
    radial-gradient(circle at 38% 44%, var(--green) 0 22px, transparent 23px),
    radial-gradient(circle at 62% 58%, var(--cyan) 0 28px, transparent 29px),
    rgba(255, 255, 255, 0.08);
}

.food-camera span {
  position: absolute;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 0 24px var(--cyan);
  animation: scan 2.4s ease-in-out infinite;
}

.macro-list {
  display: grid;
  gap: 10px;
}

.macro-list span {
  display: flex;
  justify-content: space-between;
  padding: 12px;
  border-radius: 16px;
}

.macro-list strong {
  color: white;
}

.student-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 10px;
  align-items: center;
  padding: 12px;
  border-radius: 17px;
}

.student-row span {
  grid-row: span 2;
}

.student-row em {
  font-style: normal;
}

.chat-bubble {
  width: 82%;
  padding: 14px;
  border-radius: 18px;
  color: #dcecff;
  line-height: 1.45;
}

.chat-bubble.outgoing {
  justify-self: end;
  background: linear-gradient(135deg, rgba(49, 215, 255, 0.32), rgba(10, 132, 255, 0.28));
}

.typing-dots {
  display: flex;
  gap: 6px;
  padding: 12px 4px;
}

.typing-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  animation: bar-rise 780ms ease-in-out infinite alternate;
}

.typing-dots span:nth-child(2) { animation-delay: 120ms; }
.typing-dots span:nth-child(3) { animation-delay: 240ms; }

.app-shot-copy {
  position: relative;
  z-index: 1;
}

.app-shot-copy h3 {
  margin-bottom: 8px;
}

.app-shot-copy p {
  margin-bottom: 0;
}

.section-heading p {
  max-width: 700px;
  font-size: 1.08rem;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 46px;
}

.capability-card {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  padding: 28px;
  border-radius: var(--radius-lg);
  transform-style: preserve-3d;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.capability-card::after {
  position: absolute;
  inset: auto -20% -45% 20%;
  height: 180px;
  border-radius: 50%;
  background: rgba(10, 132, 255, 0.18);
  filter: blur(34px);
  content: "";
}

.capability-card:hover {
  border-color: rgba(49, 215, 255, 0.32);
  background: var(--panel-strong);
}

.icon-3d {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  margin-bottom: 34px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(49, 215, 255, 0.2), rgba(124, 77, 255, 0.18));
  color: white;
  font-weight: 900;
  transform: translateZ(28px) rotateX(8deg) rotateY(-10deg);
}

.capability-card p {
  position: relative;
  z-index: 1;
  margin-bottom: 0;
}

.coach-panel {
  display: grid;
  align-items: center;
  grid-template-columns: 0.88fr 1fr;
  gap: clamp(30px, 6vw, 90px);
}

.coach-copy p {
  max-width: 620px;
  margin-bottom: 30px;
}

.coach-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius-xl);
  transform: perspective(900px) rotateX(10deg) rotateY(-12deg);
}

.board-column {
  min-height: 270px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.05);
}

.board-column strong {
  display: block;
  margin: 38px 0 16px;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  letter-spacing: -0.08em;
}

.immersive {
  width: min(980px, calc(100% - 40px));
}

.immersive-card,
.download-card {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 6vw, 70px);
  border-radius: var(--radius-xl);
}

.immersive-card::before,
.download-card::before {
  position: absolute;
  inset: -45% 20% auto auto;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: rgba(49, 215, 255, 0.18);
  filter: blur(22px);
  content: "";
}

.motion-pills {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.motion-pills span {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #dbeafe;
  font-size: 0.9rem;
  font-weight: 700;
}

.download {
  padding-top: 0;
}

.download-card {
  text-align: center;
}

.download-card p {
  max-width: 680px;
  margin-inline: auto;
}

.download-card .eyebrow {
  justify-content: center;
}

.store-actions {
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}

.store-button {
  display: grid;
  min-width: 210px;
  gap: 3px;
  padding: 15px 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: white;
  color: #060912;
  text-align: left;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.store-button span {
  color: #4b5563;
}

.store-button strong {
  font-size: 1.2rem;
}

.site-footer {
  display: flex;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 32px 0 46px;
  color: rgba(255, 255, 255, 0.58);
  font-weight: 700;
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes ring-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes bar-rise {
  from {
    transform: scaleY(0.72);
  }
  to {
    transform: scaleY(1);
  }
}

@keyframes scan {
  0%,
  100% {
    transform: translateY(-82px);
  }
  50% {
    transform: translateY(82px);
  }
}

@keyframes float-orbit {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -22px;
  }
}

@supports (animation-timeline: view()) {
  .chapter {
    animation: chapter-lift linear both;
    animation-timeline: view();
    animation-range: entry 12% cover 42%;
  }
}

@keyframes chapter-lift {
  from {
    transform: translateY(50px) rotateX(5deg);
  }
  to {
    transform: translateY(0) rotateX(0deg);
  }
}

@media (max-width: 980px) {
  .site-nav {
    display: none;
  }

  .hero,
  .story-layout,
  .coach-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 132px;
  }

  .hero-stage {
    min-height: 660px;
  }

  .scene {
    min-height: 660px;
  }

  .story-layout {
    margin-top: 34px;
  }

  .sticky-product {
    position: relative;
    top: auto;
    height: auto;
    min-height: 520px;
  }

  .chapters {
    gap: 26px;
  }

  .app-shot-grid,
  .capability-grid,
  .coach-board {
    grid-template-columns: repeat(2, 1fr);
  }

  .app-shot-large {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .scroll-map {
    position: relative;
    top: auto;
    margin-top: 0;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .section-pad {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    width: calc(100% - 20px);
    top: 10px;
  }

  .header-cta {
    display: none;
  }

  h1 {
    font-size: clamp(2.72rem, 13.6vw, 5.1rem);
    line-height: 0.94;
    letter-spacing: -0.055em;
  }

  .hero-metrics,
  .app-shot-grid,
  .capability-grid,
  .coach-board {
    grid-template-columns: 1fr;
  }

  .phone {
    width: min(286px, 86vw);
    height: 585px;
  }

  .scene,
  .hero-stage {
    min-height: 585px;
  }

  .app-shot,
  .app-shot-large {
    min-height: auto;
    padding: 18px;
  }

  .shot-phone,
  .app-shot:nth-child(3) .shot-phone,
  .app-shot:nth-child(5) .shot-phone {
    min-height: 330px;
    transform: rotateX(8deg) rotateY(-8deg) translateZ(20px);
  }

  .orbit {
    display: none;
  }

  .ring-card {
    grid-template-columns: 1fr;
  }

  .coach-board {
    transform: none;
  }

  .board-column {
    min-height: 190px;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .phone,
  .mini-phone,
  .coach-board {
    transform: none;
  }
}
