/* ─────────────────────────────────────────
   STRENTH – Stylesheet
   ───────────────────────────────────────── */

@font-face {
  font-family: 'ZaylenDemo';
  src: url('./assets/ZaylenDemo-Regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Rubik';
  src: url('./assets/Rubik-VariableFont_wght.ttf') format('truetype');
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
}

/* ── Reset & Custom Properties ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --c-bg:        #0a0a0f;
  --c-surface:   #12121c;
  --c-surface2:  #1a1a2e;
  --c-border:    rgba(255,255,255,.08);
  --c-text:      #e8e8f0;
  --c-muted:     #8ea3c7;
  --c-primary:   #2563eb;
  --c-primary2:  #60a5fa;
  --c-accent:    #38bdf8;
  --c-danger:    #0ea5e9;
  --grad-main:   linear-gradient(135deg, #2563eb 0%, #38bdf8 100%);
  --grad-hero:   linear-gradient(135deg, #1d4ed8 0%, #2563eb 45%, #60a5fa 100%);
  --font:        'Rubik', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-display:'Rubik', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-logo:   'ZaylenDemo', 'Rubik', sans-serif;
  --radius-sm:   8px;
  --radius-md:   16px;
  --radius-lg:   24px;
  --radius-xl:   40px;
  --shadow-card: 0 4px 32px rgba(0,0,0,.45);
  --shadow-glow: 0 0 80px rgba(37,99,235,.35);
  --transition:  .3s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Utilities ── */
.container {
  width: min(1200px, 100% - 3rem);
  margin-inline: auto;
}

.gradient-text {
  background: var(--grad-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

h1, h2, h3,
.btn,
.badge,
.step-number,
.plan-label,
.plan-name,
.stat-num,
.reviewer-name,
.ai-chip {
  font-family: var(--font-display);
}

.logo {
  font-family: var(--font-logo);
}

.badge {
  display: inline-block;
  padding: .35em 1em;
  background: rgba(37,99,235,.15);
  color: var(--c-primary2);
  border: 1px solid rgba(37,99,235,.3);
  border-radius: 100px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.badge-new {
  background: rgba(56,189,248,.12);
  color: var(--c-accent);
  border-color: rgba(56,189,248,.3);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1.5rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--grad-main);
  color: #fff;
  box-shadow: 0 4px 24px rgba(37,99,235,.45);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(37,99,235,.6); }

.btn-ghost {
  background: transparent;
  color: var(--c-text);
  border: 1px solid var(--c-border);
}
.btn-ghost:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.2); }

.btn-nav {
  background: var(--grad-main);
  color: #fff;
  padding: .5rem 1.25rem;
  font-size: .9rem;
  border-radius: 100px;
}
.btn-nav:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(37,99,235,.5); }

.btn-lg { padding: .8rem 0; }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 4rem;
}
.section-header .badge { margin-bottom: 1rem; }
.section-header h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 800; margin-bottom: .75rem; }
.section-header p { color: var(--c-muted); font-size: 1.05rem; }

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  background: rgba(10,10,15,.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--c-border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: -.01em;
}

.logo-img { height: 40px; width: auto; display: block; }
.logo-text { color: #fff; margin-left: 0.1rem; font-weight: 400; font-size: 2rem; line-height: 1; position: relative; top: 4px; }
.navbar .logo-text { color: #fff; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: .95rem;
  color: var(--c-muted);
  font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--c-text); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 8rem 0 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: .35;
}

.blob-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #2563eb 0%, transparent 70%);
  top: -200px; left: -200px;
  animation: float1 10s ease-in-out infinite;
}

.blob-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #38bdf8 0%, transparent 70%);
  bottom: -150px; right: -150px;
  animation: float2 12s ease-in-out infinite;
}

.blob-3 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, #1d4ed8 0%, transparent 70%);
  top: -100px; right: -200px;
  animation: float1 11s ease-in-out infinite;
}

.blob-4 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #60a5fa 0%, transparent 70%);
  bottom: -100px; left: -100px;
  animation: float2 9s ease-in-out infinite;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

@keyframes float1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, 40px) scale(1.05); }
}
@keyframes float2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-25px, -30px) scale(1.08); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
}

.hero-text { display: flex; flex-direction: column; gap: 1.5rem; }

.hero-text h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
}

.hero-sub {
  color: var(--c-muted);
  font-size: 1.1rem;
  max-width: 480px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.play-badge {
  height: 48px;
  width: auto;
}

.download-store-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.download-store-link:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
}

.download-store-link:focus-visible {
  outline: 2px solid var(--c-primary2);
  outline-offset: 6px;
  border-radius: 10px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: .5rem;
}

.stat { display: flex; flex-direction: column; gap: .15rem; }
.stat-num { font-size: 1.5rem; font-weight: 700; background: var(--grad-main); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-label { font-size: .75rem; color: var(--c-muted); font-weight: 500; }
.stat-divider { width: 1px; height: 36px; background: var(--c-border); }

/* ── Phone Mock ── */
.hero-phone {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: min(100%, 620px);
  min-height: 760px;
  perspective: 1200px;
  perspective-origin: 60% 50%;
}

.hero-phone-stack {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  isolation: isolate;
  z-index: 1;
  animation: phoneFloat 6s ease-in-out infinite;
}

.hero-phone-stack--primary {
  z-index: 3;
}

.hero-phone-stack--tertiary {
  position: absolute;
  top: 84px;
  left: -4%;
  z-index: 2;
  animation-duration: 7.2s;
  transform-style: preserve-3d;
}

.hero-phone-stack--secondary {
  position: absolute;
  top: 64px;
  left: 68%;
  z-index: 2;
  animation-duration: 6.8s;
  transform-style: preserve-3d;
}

.hero-phone-tilt {
  position: relative;
  transform-style: preserve-3d;
  transform-origin: 70% 50%;
  transform: perspective(1200px) rotateY(18deg);
}

.hero-phone-tilt--tertiary {
  transform-origin: 30% 50%;
  transform: perspective(1200px) rotateY(-18deg);
}

.hero-phone .phone-frame {
  animation: none;
}

.phone-frame {
  width: 320px;
  aspect-ratio: 433 / 890;
  position: relative;
  padding: 8px;
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(26, 28, 31, 0.98) 0%, rgba(58, 61, 67, 0.95) 16%, rgba(18, 20, 24, 0.98) 58%, rgba(74, 78, 86, 0.92) 100%);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow:
    0 34px 70px rgba(0,0,0,.42),
    0 0 0 1px rgba(255,255,255,.05),
    inset 0 1px 0 rgba(255,255,255,.12),
    inset 0 -6px 14px rgba(0,0,0,.34);
  z-index: 1;
  animation: phoneFloat 6s ease-in-out infinite;
}

.phone-frame::before {
  content: '';
  position: absolute;
  right: -3px;
  top: 154px;
  width: 4px;
  height: 60px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(177,181,187,.92), rgba(83,88,96,.95));
}

.phone-frame::after {
  content: '';
  position: absolute;
  right: -3px;
  top: 250px;
  width: 4px;
  height: 92px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(177,181,187,.92), rgba(83,88,96,.95));
}

.phone-frame--sm {
  width: 220px;
  padding: 7px;
  border-radius: 26px;
}

.phone-frame--feature {
  width: min(100%, 340px);
  margin-inline: auto;
}

.phone-screen {
  position: relative;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  background:
    linear-gradient(180deg, #040608 0%, #0a0f16 18%, #0b1421 45%, #081018 100%);
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03);
}

.phone-frame--sm .phone-screen { border-radius: 21px; }

.phone-screen--feature {
  background:
    linear-gradient(180deg, #080c12 0%, #0d1521 24%, #0d1725 100%);
}

.phone-shot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.phone-shot--download {
  object-position: center top;
}

.hero-phone-stack--secondary .phone-frame {
  width: 252px;
  box-shadow:
    -18px 20px 56px rgba(0,0,0,.32),
    0 0 0 1px rgba(255,255,255,.05),
    inset 0 1px 0 rgba(255,255,255,.10),
    inset 4px 0 12px rgba(0,0,0,.12),
    inset -4px 0 10px rgba(255,255,255,.04),
    inset 0 -6px 14px rgba(0,0,0,.28);
}

.hero-phone-stack--tertiary .phone-frame {
  width: 248px;
  box-shadow:
    18px 20px 56px rgba(0,0,0,.3),
    0 0 0 1px rgba(255,255,255,.05),
    inset 0 1px 0 rgba(255,255,255,.1),
    inset -4px 0 12px rgba(0,0,0,.12),
    inset 4px 0 10px rgba(255,255,255,.04),
    inset 0 -6px 14px rgba(0,0,0,.28);
}

.phone-glow {
  position: absolute;
  inset: -54px;
  background: radial-gradient(circle at 50% 50%, rgba(37,99,235,.24) 0%, rgba(56,189,248,.12) 32%, transparent 72%);
  z-index: 0;
}

.hero-phone-overlay {
  position: absolute;
  z-index: 2;
  width: min(384px, 116%);
  max-width: none;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  filter: drop-shadow(0 22px 42px rgba(0, 0, 0, 0.34));
}

.hero-phone-overlay--secondary {
  width: min(282px, 90%);
  top: 50%;
  left: 60%;
  filter: drop-shadow(26px 26px 34px rgba(0, 0, 0, 0.24));
  transform: translate(-50%, -50%);
}

.hero-phone-overlay--tertiary {
  width: min(328px, 104%);
  top: 48%;
  left: 42%;
  filter: drop-shadow(-24px 24px 34px rgba(0, 0, 0, 0.22));
  transform: translate(-50%, -50%);
}

@keyframes phoneFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ── App UI Mock ── */
.app-ui {
  min-height: 100%;
  padding: 4.75rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-greeting { font-size: .8rem; font-weight: 600; color: var(--c-text); }
.app-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--grad-main);
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 800; color: #fff;
}

.app-plan-card {
  background: linear-gradient(135deg, rgba(108,99,255,.2) 0%, rgba(67,233,123,.1) 100%);
  border: 1px solid rgba(108,99,255,.2);
  border-radius: 12px;
  padding: .75rem;
  display: flex; flex-direction: column; gap: .4rem;
}

.plan-label { font-size: .6rem; font-weight: 700; letter-spacing: .08em; color: var(--c-primary2); text-transform: uppercase; }
.plan-name { font-size: .9rem; font-weight: 700; }
.plan-meta { display: flex; gap: .75rem; font-size: .7rem; color: var(--c-muted); }
.plan-bar { height: 4px; background: rgba(255,255,255,.1); border-radius: 2px; margin-top: .25rem; }
.plan-bar-fill { height: 100%; background: var(--grad-main); border-radius: 2px; }
.plan-pct { font-size: .65rem; color: var(--c-muted); }

.app-exercises { display: flex; flex-direction: column; gap: .35rem; }

.exercise-row {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem .5rem;
  border-radius: 8px;
  font-size: .75rem;
  color: var(--c-muted);
}

.exercise-row.done { color: rgba(255,255,255,.5); }
.exercise-row.active {
  background: rgba(108,99,255,.15);
  color: var(--c-text);
  font-weight: 600;
}

.ex-icon { font-size: .7rem; width: 16px; }
.ex-name { flex: 1; }
.ex-sets { font-size: .65rem; color: var(--c-muted); }
.exercise-row.active .ex-sets { color: var(--c-primary2); }

.app-ai-tip {
  background: rgba(67,233,123,.08);
  border: 1px solid rgba(67,233,123,.2);
  border-radius: 8px;
  padding: .5rem .6rem;
  font-size: .7rem;
  color: var(--c-accent);
  display: flex;
  align-items: flex-start;
  gap: .4rem;
}
.ai-icon { font-size: .8rem; flex-shrink: 0; }

/* ── Features ── */
.features {
  padding: 6rem 0;
  background: linear-gradient(180deg, var(--c-bg) 0%, var(--c-surface) 50%, var(--c-bg) 100%);
}

.features-showcase {
  display: grid;
  gap: 1.75rem;
}

.features-carousel {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
  cursor: grab;
  scrollbar-width: none;
  -ms-overflow-style: none;
  touch-action: pan-x;
}

.features-carousel::-webkit-scrollbar { display: none; }

.features-carousel.is-dragging {
  cursor: grabbing;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.features-track {
  display: flex;
  gap: 1rem;
  padding: .25rem .5rem 1rem;
  width: max-content;
  animation: ticker 30s linear infinite;
  will-change: transform;
}

.feature-shot {
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  text-align: left;
  display: grid;
  gap: .75rem;
  padding: 0;
  width: 180px;
  flex-shrink: 0;
  user-select: none;
}

.feature-shot-frame {
  position: relative;
  display: grid;
  align-content: start;
  gap: .5rem;
  min-height: 220px;
  padding: .9rem;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(15,23,42,.96) 0%, rgba(13,27,51,.92) 100%);
  box-shadow: 0 22px 45px rgba(0,0,0,.35);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition), opacity var(--transition);
  overflow: hidden;
}

.feature-shot-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(96,165,250,.14), transparent 40%, rgba(37,99,235,.1) 100%);
  pointer-events: none;
}

.feature-card {
  min-height: 220px;
  align-content: stretch;
  padding: 1rem;
  background: linear-gradient(180deg, rgba(10,14,21,.98) 0%, rgba(12,19,31,.96) 100%);
}

.feature-card-visual {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 128px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(18,31,53,.95), rgba(11,18,30,.95));
  border: 1px solid rgba(148,163,184,.12);
  overflow: hidden;
}

.feature-card-copy {
  position: relative;
  z-index: 1;
  color: var(--c-muted);
  font-size: .78rem;
  line-height: 1.55;
}

.feature-card-orb,
.feature-card-icon,
.feature-card-stack,
.feature-card-pill,
.feature-card-lines,
.feature-card-bubble,
.feature-card-tabs,
.feature-card-grid,
.feature-card-calendar {
  position: relative;
  z-index: 1;
}

.feature-card--logger .feature-card-visual,
.feature-card--coach .feature-card-visual {
  background: radial-gradient(circle at 25% 20%, rgba(56,189,248,.35), transparent 36%), linear-gradient(135deg, rgba(15,23,42,.98), rgba(11,19,33,.96));
}

.feature-card--suggestion .feature-card-visual,
.feature-card--details .feature-card-visual {
  background: radial-gradient(circle at 80% 18%, rgba(96,165,250,.28), transparent 32%), linear-gradient(135deg, rgba(11,20,34,.98), rgba(9,16,27,.96));
}

.feature-card--calendar .feature-card-visual,
.feature-card--library .feature-card-visual {
  background: radial-gradient(circle at 50% 10%, rgba(37,99,235,.24), transparent 36%), linear-gradient(135deg, rgba(10,19,33,.98), rgba(9,14,24,.96));
}

.feature-card-orb {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56,189,248,.28), rgba(37,99,235,.06) 58%, transparent 72%);
  filter: blur(4px);
}

.feature-card-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #eaf4ff;
  font-size: 1.15rem;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(59,130,246,.9), rgba(56,189,248,.84));
  box-shadow: 0 18px 30px rgba(37,99,235,.24);
}

.feature-card-stack {
  width: 74%;
  display: grid;
  gap: .6rem;
}

.feature-card-stack span,
.feature-card-lines span {
  display: block;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(191,219,254,.9), rgba(96,165,250,.22));
}

.feature-card-stack span:nth-child(2) { width: 86%; }
.feature-card-stack span:nth-child(3) { width: 72%; }

.feature-card-pill {
  width: 70%;
  height: 28px;
  border-radius: 999px;
  background: rgba(148,163,184,.18);
  box-shadow: inset 0 0 0 1px rgba(148,163,184,.12);
}

.feature-card-pill--accent {
  width: 48%;
  margin-top: .7rem;
  background: linear-gradient(135deg, rgba(59,130,246,.84), rgba(56,189,248,.84));
  box-shadow: none;
}

.feature-card-lines {
  width: 76%;
  display: grid;
  gap: .7rem;
}

.feature-card-lines span:nth-child(2) { width: 82%; }
.feature-card-lines span:nth-child(3) { width: 58%; }

.feature-card-bubble {
  width: 74%;
  height: 54px;
  border-radius: 20px 20px 20px 8px;
  background: linear-gradient(135deg, rgba(59,130,246,.9), rgba(56,189,248,.82));
  box-shadow: 0 14px 28px rgba(37,99,235,.22);
}

.feature-card-bubble--small {
  width: 52%;
  height: 42px;
  margin-top: .75rem;
  margin-left: 22%;
  border-radius: 18px 18px 8px 18px;
  background: rgba(148,163,184,.18);
  box-shadow: inset 0 0 0 1px rgba(148,163,184,.12);
}

.feature-card-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .55rem;
  width: 78%;
}

.feature-card-tabs span,
.feature-card-grid span,
.feature-card-calendar span {
  display: block;
  border-radius: 16px;
  background: rgba(148,163,184,.16);
  box-shadow: inset 0 0 0 1px rgba(148,163,184,.1);
}

.feature-card-tabs span { min-height: 62px; }

.feature-card-grid,
.feature-card-calendar {
  display: grid;
  gap: .55rem;
  width: 78%;
}

.feature-card-grid {
  grid-template-columns: repeat(2, 1fr);
}

.feature-card-grid span { min-height: 54px; }

.feature-card-calendar {
  grid-template-columns: repeat(2, 1fr);
}

.feature-card-calendar span { min-height: 44px; }

.feature-card-calendar span:nth-child(1),
.feature-card-calendar span:nth-child(4) {
  background: linear-gradient(135deg, rgba(59,130,246,.72), rgba(56,189,248,.48));
}

.feature-expanded-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.feature-shot.active .feature-shot-frame,
.feature-shot:hover .feature-shot-frame,
.feature-shot:focus-visible .feature-shot-frame {
  transform: translateY(-4px);
  border-color: rgba(96,165,250,.45);
  box-shadow: 0 24px 52px rgba(15,23,42,.55);
}

.feature-shot:not(.active) .feature-shot-frame { opacity: .78; }

.feature-shot-label {
  color: var(--c-text);
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .01em;
}

.feature-shot.active .feature-shot-label { color: var(--c-primary2); }

.shot-topbar,
.shot-chip,
.shot-line,
.shot-block,
.shot-row,
.shot-search,
.shot-ring,
.shot-calendar,
.shot-chart,
.shot-grid,
.shot-metric-row,
.shot-pill-row {
  position: relative;
  z-index: 1;
}

.shot-topbar {
  display: block;
  width: 42%;
  height: 8px;
  border-radius: 999px;
  background: rgba(191,219,254,.55);
}

.shot-chip {
  display: block;
  width: 56%;
  height: 30px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(37,99,235,.85), rgba(56,189,248,.85));
}

.shot-chip--wide { width: 70%; }

.shot-line {
  display: block;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(148,163,184,.18);
}

.shot-line--short { width: 68%; }

.shot-block {
  display: block;
  width: 100%;
  min-height: 72px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(30,41,59,.9), rgba(15,23,42,.88));
  border: 1px solid rgba(148,163,184,.14);
}

.shot-block--small { min-height: 44px; }

.shot-row {
  display: block;
  width: 100%;
  height: 28px;
  border-radius: 14px;
  background: rgba(30,41,59,.9);
  border: 1px solid rgba(148,163,184,.12);
}

.shot-row--active { background: rgba(37,99,235,.28); border-color: rgba(96,165,250,.3); }

.shot-ring {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  margin: .25rem auto;
  border: 9px solid rgba(37,99,235,.22);
  border-top-color: rgba(56,189,248,.95);
  border-right-color: rgba(96,165,250,.7);
}

.shot-pill-row {
  display: flex;
  gap: .5rem;
}

.shot-pill {
  flex: 1;
  height: 34px;
  border-radius: 999px;
  background: rgba(30,41,59,.95);
  border: 1px solid rgba(148,163,184,.12);
}

.shot-chart {
  display: flex;
  align-items: end;
  gap: 8px;
  height: 88px;
}

.shot-chart span {
  flex: 1;
  display: block;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, rgba(96,165,250,.9), rgba(37,99,235,.55));
}

.shot-chart span:nth-child(1) { height: 36%; }
.shot-chart span:nth-child(2) { height: 52%; }
.shot-chart span:nth-child(3) { height: 46%; }
.shot-chart span:nth-child(4) { height: 72%; }
.shot-chart span:nth-child(5) { height: 88%; }

.shot-metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
}

.shot-metric-row span,
.shot-grid span,
.shot-calendar span {
  display: block;
  border-radius: 16px;
  background: rgba(30,41,59,.92);
  border: 1px solid rgba(148,163,184,.1);
}

.shot-metric-row span { min-height: 62px; }

.shot-search {
  display: block;
  width: 100%;
  height: 36px;
  border-radius: 18px;
  background: rgba(30,41,59,.92);
  border: 1px solid rgba(148,163,184,.12);
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .5rem;
}

.shot-grid span { min-height: 64px; }

.shot-calendar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .45rem;
}

.shot-calendar span {
  min-height: 42px;
  background: rgba(30,41,59,.92);
}

.feature-expanded {
  display: grid;
  grid-template-columns: minmax(320px, 1.05fr) minmax(280px, .95fr);
  gap: 2rem;
  padding: 2rem;
  border-radius: 32px;
  border: 1px solid rgba(96,165,250,.16);
  background: linear-gradient(135deg, rgba(15,23,42,.92) 0%, rgba(15,23,42,.78) 100%);
  box-shadow: var(--shadow-card);
}

.feature-expanded-media {
  min-width: 0;
  display: flex;
  justify-content: center;
}

.feature-expanded-shot {
  position: relative;
  min-height: 100%;
  height: 100%;
}

.feature-expanded-shot.feature-shot-frame {
  min-height: 100%;
  height: 100%;
  padding: 4.85rem 1.15rem 1.15rem;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.feature-expanded-content {
  display: grid;
  align-content: center;
  gap: 1rem;
}

.feature-kicker {
  color: var(--c-primary2);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.feature-expanded-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.05;
  font-weight: 700;
}

.feature-expanded-copy {
  color: var(--c-muted);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 48ch;
}

.feature-points {
  display: grid;
  gap: .7rem;
  list-style: none;
}

.feature-points li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--c-text);
  line-height: 1.6;
}

.feature-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .6rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  box-shadow: 0 0 12px rgba(56,189,248,.55);
}

.shot-variant-program::after,
.shot-variant-session::after,
.shot-variant-rest::after,
.shot-variant-progress::after,
.shot-variant-goals::after,
.shot-variant-library::after,
.shot-variant-calendar::after,
.shot-variant-reminders::after {
  content: '';
  position: absolute;
  inset: auto -10% -18% auto;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  filter: blur(18px);
  opacity: .28;
}

.shot-variant-program::after { background: rgba(37,99,235,.9); }
.shot-variant-session::after { background: rgba(56,189,248,.9); }
.shot-variant-rest::after { background: rgba(125,211,252,.8); }
.shot-variant-progress::after { background: rgba(59,130,246,.95); }
.shot-variant-goals::after { background: rgba(96,165,250,.95); }
.shot-variant-library::after { background: rgba(14,165,233,.8); }
.shot-variant-calendar::after { background: rgba(30,64,175,.92); }
.shot-variant-reminders::after { background: rgba(59,130,246,.8); }

/* ── How It Works ── */
.how-it-works {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 700px;
  margin: 0 auto;
}

.step {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 0 32px rgba(108,99,255,.45);
}

.step-content { padding-top: .75rem; }
.step-content h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: .5rem; }
.step-content p { color: var(--c-muted); line-height: 1.7; }

.step-connector {
  width: 2px;
  height: 48px;
  background: linear-gradient(180deg, var(--c-primary) 0%, var(--c-accent) 100%);
  margin-left: 31px;
  opacity: .4;
}

/* ── Testimonials ── */
.testimonials {
  padding: 6rem 0;
  background: linear-gradient(180deg, var(--c-bg) 0%, var(--c-surface) 50%, var(--c-bg) 100%);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--c-surface2);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: var(--transition);
}

.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: rgba(108,99,255,.3); }

.testimonial-card--featured {
  background: linear-gradient(135deg, rgba(108,99,255,.15) 0%, rgba(67,233,123,.07) 100%);
  border-color: rgba(108,99,255,.3);
}

.stars { color: var(--c-primary2); font-size: 1.1rem; letter-spacing: .1em; }

.testimonial-card p { color: var(--c-muted); font-size: .95rem; line-height: 1.7; font-style: italic; }

.testimonial-card footer {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: auto;
}

.avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .9rem; color: #fff;
  flex-shrink: 0;
}

.avatar-a { background: linear-gradient(135deg, #1d4ed8, #60a5fa); }
.avatar-b { background: linear-gradient(135deg, #2563eb, #38bdf8); }
.avatar-c { background: linear-gradient(135deg, #0f172a, #2563eb); }

.reviewer-name { display: block; font-weight: 700; font-size: .9rem; }
.reviewer-tag { font-size: .75rem; color: var(--c-muted); }

/* ── Download ── */
.download {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
}

.download-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.download-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
}

.download-text {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.download-text h2 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
}

.download-text p { color: var(--c-text); line-height: 1.7; font-size: 1.05rem; }

.free-note { font-size: .82rem; color: var(--c-text); }

.download-phones {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dl-phone {
  position: absolute;
}

.dl-phone--back {
  right: 10%;
  top: 10%;
  opacity: .6;
  transform: rotate(8deg);
}

.dl-phone--front {
  left: 10%;
  bottom: 10%;
  transform: rotate(-6deg);
  animation: phoneFloat 7s ease-in-out infinite;
}

.dl-screen-content {
  min-height: 100%;
  padding: 4.4rem .75rem .75rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.dl-stat-card {
  background: rgba(108,99,255,.12);
  border: 1px solid rgba(108,99,255,.2);
  border-radius: 10px;
  padding: .6rem .7rem;
}

.dl-stat-label { font-size: .55rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-primary2); display: block; margin-bottom: .2rem; }
.dl-stat-num { font-size: .9rem; font-weight: 800; display: block; margin-bottom: .4rem; }

.dl-dots { display: flex; gap: 4px; }
.dot { width: 22px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.1); }
.dot.active { background: var(--grad-main); }

.dl-pr {
  background: rgba(67,233,123,.08);
  border: 1px solid rgba(67,233,123,.2);
  border-radius: 8px;
  padding: .45rem .6rem;
  font-size: .65rem;
  color: var(--c-accent);
  font-weight: 600;
}

.dl-ai-card {
  background: rgba(108,99,255,.12);
  border: 1px solid rgba(108,99,255,.25);
  border-radius: 10px;
  padding: .6rem .7rem;
}

.ai-chip {
  display: inline-block;
  background: rgba(108,99,255,.2);
  border-radius: 100px;
  padding: .15em .6em;
  font-size: .6rem;
  font-weight: 700;
  color: var(--c-primary2);
  margin-bottom: .4rem;
}

.dl-ai-card p { font-size: .7rem; color: var(--c-muted); line-height: 1.5; font-style: normal; }

.dl-muscle-map span { font-size: .6rem; color: var(--c-muted); display: block; margin-bottom: .3rem; }

.muscle-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.muscle-tag {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 100px;
  padding: .15em .6em;
  font-size: .6rem;
  color: var(--c-text);
}

/* ── Footer ── */
.footer {
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  padding: 3rem 0 2rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-brand { display: flex; flex-direction: column; gap: .5rem; }
.footer-brand p { color: var(--c-muted); font-size: .85rem; max-width: 280px; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-links a { font-size: .9rem; color: var(--c-muted); transition: color var(--transition); }
.footer-links a:hover { color: var(--c-text); }

.footer-copy { font-size: .8rem; color: var(--c-muted); width: 100%; text-align: center; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--c-border); }

/* ── Scroll Animations ── */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}

[data-animate].in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-sub, .hero-actions, .hero-stats { align-self: center; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-phone { margin-top: 2rem; margin-inline: auto; }
  .hero-phone { width: min(100%, 480px); min-height: 640px; }
  .hero-phone { perspective: 1100px; }
  .hero-phone-stack--tertiary { top: 100px; left: 4%; }
  .hero-phone-tilt--tertiary { transform-origin: 30% 50%; transform: perspective(1100px) rotateY(-15deg); }
  .hero-phone-stack--tertiary .phone-frame { width: 194px; }
  .hero-phone-overlay--tertiary { width: min(252px, 118%); left: 44%; }
  .hero-phone-stack--secondary { top: 86px; left: 61%; }
  .hero-phone-tilt { transform-origin: 70% 50%; transform: perspective(1100px) rotateY(15deg); }
  .hero-phone-stack--secondary .phone-frame { width: 198px; }
  .hero-phone-overlay--secondary { width: min(220px, 108%); left: 54%; }
  .download-inner { grid-template-columns: 1fr; }
  .download-text { text-align: center; align-items: center; position: relative; z-index: 2; }
  .download-phones { height: 200px; position: relative; z-index: 1; opacity: 0.5; }
  .feature-expanded { grid-template-columns: 1fr; }
  .feature-expanded { gap: 1.5rem; }
  .phone-frame--feature { width: min(100%, 280px); }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0;
    background: var(--c-surface);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 1.25rem;
    z-index: 90;
    box-shadow: 0 8px 32px rgba(0,0,0,.5);
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; z-index: 101; }

  .hero { padding: 7rem 0 3rem; }
  .phone-frame { width: 232px; border-radius: 26px; }
  .hero-phone-stack--primary .phone-frame { width: 214px; }
  .hero-phone-overlay { width: min(270px, 114%); }
  .hero-phone { width: min(100%, 336px); min-height: 480px; }
  .hero-phone { perspective: 1000px; }
  .hero-phone-stack--tertiary { top: 96px; left: calc(50% - 172px); }
  .hero-phone-tilt--tertiary { transform-origin: 30% 50%; transform: perspective(1000px) rotateY(-12deg); }
  .hero-phone-stack--tertiary .phone-frame { width: 146px; }
  .hero-phone-overlay--tertiary { width: min(186px, 120%); left: 44%; }
  .hero-phone-stack--secondary { top: 84px; left: calc(50% + 42px); }
  .hero-phone-tilt { transform-origin: 70% 50%; transform: perspective(1000px) rotateY(12deg); }
  .hero-phone-stack--secondary .phone-frame { width: 150px; }
  .hero-phone-overlay--secondary { width: min(168px, 108%); left: 54%; }
  .phone-frame::before {
    top: 104px;
    height: 42px;
  }
  .phone-frame::after { top: 168px; height: 62px; }
  .phone-screen { border-radius: 20px; }
  .app-ui { padding-top: 3.8rem; }
  .dl-screen-content { padding-top: 3.7rem; }

  .features-track { grid-auto-columns: minmax(150px, 1fr); }
  .feature-shot-frame { min-height: 190px; }
  .feature-expanded { gap: 1rem; padding: 1rem; border-radius: 24px; }
  .phone-frame--feature { width: min(100%, 240px); }
  .feature-expanded-shot.feature-shot-frame { padding-top: 3.8rem; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .steps { padding: 0 1rem; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-copy { text-align: left; }
}

@media (max-width: 480px) {
  .hero { padding: 6.5rem 0 2.5rem; }
  .hero-phone { width: min(100%, 300px); min-height: 430px; }
  .phone-frame { width: 208px; padding: 7px; border-radius: 24px; }
  .hero-phone-stack--primary .phone-frame { width: 188px; }
  .hero-phone-overlay { width: min(240px, 112%); }
  .hero-phone-stack--tertiary { top: 86px; left: calc(50% - 152px); }
  .hero-phone-stack--tertiary .phone-frame { width: 128px; }
  .hero-phone-overlay--tertiary { width: min(162px, 118%); left: 45%; }
  .hero-phone-stack--secondary { top: 76px; left: calc(50% + 34px); }
  .hero-phone-stack--secondary .phone-frame { width: 132px; }
  .hero-phone-overlay--secondary { width: min(148px, 104%); left: 53%; }
  .phone-frame::before {
    top: 92px;
    height: 34px;
  }
  .phone-frame::after {
    top: 148px;
    height: 52px;
  }
  .phone-screen { border-radius: 18px; }
  .app-ui { padding-top: 3.45rem; }
  .dl-screen-content { padding-top: 3.3rem; }

  .feature-expanded { padding: .9rem; border-radius: 22px; }
  .phone-frame--feature { width: min(100%, 220px); }
  .feature-expanded-shot.feature-shot-frame { padding: 3.4rem .85rem .85rem; }
  .feature-expanded-title { font-size: 1.5rem; }
  .feature-expanded-copy { font-size: .95rem; line-height: 1.65; }
}