/* ── HealFit — Modern dark-blue UI ── */

:root {
  --bg-deep: #050810;
  --bg: #0a0f1a;
  --bg-soft: rgba(255, 255, 255, 0.02);
  --bg-card: rgba(255, 255, 255, 0.035);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --primary: #004593;
  --primary-light: #1a6fd4;
  --text: #eef2f8;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;
  --accent: #5ba3ff;
  --accent-bright: #7cb8ff;
  --accent-hover: #1a6fd4;
  --accent-soft: rgba(0, 69, 147, 0.2);
  --accent-glow: rgba(26, 111, 212, 0.35);
  --cyan: #38bdf8;
  --green: #4ade80;
  --gold: #fbbf24;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.12);
  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 16px 48px rgba(0, 0, 0, 0.35);
  --shadow-img: 0 32px 64px -16px rgba(0, 0, 0, 0.55);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --nav-h: 60px;
  --font: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1100px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.55;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  position: relative;
}

.hero,
.marquee-section,
.stats-bar,
.features,
.problem,
.how-it-works,
.reviews,
.faq,
.download,
.footer {
  position: relative;
  z-index: 1;
}

body.menu-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

/* ── Ambient background (original dark + grid + glow) ── */
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  will-change: transform;
}

.ambient-orb--1 {
  width: 700px;
  height: 700px;
  background: var(--primary);
  top: -250px;
  right: -150px;
  opacity: 0.28;
  animation: orbFloat 25s ease-in-out infinite;
}

.ambient-orb--2 {
  width: 500px;
  height: 500px;
  background: #1565c0;
  bottom: 10%;
  left: -150px;
  opacity: 0.2;
  animation: orbFloat 20s ease-in-out infinite reverse;
}

.ambient-orb--3 {
  width: 350px;
  height: 350px;
  background: #ffc107;
  top: 40%;
  left: 40%;
  opacity: 0.07;
  animation: orbFloat 30s ease-in-out infinite;
  animation-delay: -10s;
}

.ambient-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black, transparent);
}

@keyframes orbFloat {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(25px, -30px);
  }
}

/* ── Loader ── */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: var(--bg-deep);
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-logo {
  border-radius: 22%;
  box-shadow: 0 0 40px var(--accent-glow);
  animation: loaderPulse 1.4s var(--ease) infinite;
}

@keyframes loaderPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 30px var(--accent-glow);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 50px rgba(91, 157, 255, 0.5);
  }
}

body.loaded .hero-copy > *,
body.loaded .hero-visual {
  animation: fadeUp 0.9s var(--ease-out) backwards;
}

body.loaded .hero-copy > *:nth-child(1) { animation-delay: 0.06s; }
body.loaded .hero-copy > *:nth-child(2) { animation-delay: 0.12s; }
body.loaded .hero-copy > *:nth-child(3) { animation-delay: 0.18s; }
body.loaded .hero-copy > *:nth-child(4) { animation-delay: 0.24s; }
body.loaded .hero-copy > *:nth-child(5) { animation-delay: 0.3s; }
body.loaded .hero-visual { animation-delay: 0.14s; }

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Scroll progress ── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  z-index: 1001;
  box-shadow: 0 0 12px var(--accent-glow);
}

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background 0.4s var(--ease), border-color 0.4s;
}

.navbar.scrolled {
  background: rgba(5, 8, 16, 0.82);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
}

.logo-img {
  border-radius: 22%;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-cta {
  margin-left: 6px;
  padding: 9px 20px;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 999px;
  box-shadow: 0 4px 24px rgba(0, 69, 147, 0.45);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(59, 130, 246, 0.45);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.mobile-menu.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Hero ── */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 64px) 0 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--accent-soft);
  border: 1px solid rgba(91, 157, 255, 0.25);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent-bright);
  margin-bottom: 22px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.6);
  animation: pulse 2.5s ease infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(0.9);
  }
}

.hero h1 {
  font-size: clamp(2.375rem, 4.8vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(135deg, #4da3ff 0%, #1a8cff 40%, var(--primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 440px;
  margin-bottom: 30px;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
}

.store-row--center {
  justify-content: center;
}

.store-badge-link {
  display: block;
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
  border-radius: 8px;
}

.store-badge-link:hover {
  transform: translateY(-3px) scale(1.02);
  opacity: 0.9;
}

.store-badge-link img {
  width: auto;
  display: block;
}

.store-badge-link--apple img {
  height: 44px;
}

.store-badge-link--google img {
  height: 60px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

.hero-trust .stars {
  color: var(--gold);
}

.hero-trust .dot {
  opacity: 0.4;
}

.hero-trust strong {
  color: var(--text);
  font-weight: 600;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-glow {
  position: absolute;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle, rgba(91, 157, 255, 0.25) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  animation: glowPulse 5s ease-in-out infinite;
}

@keyframes glowPulse {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

/* ── App screenshots ── */
.showcase-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  background: transparent;
  filter: drop-shadow(var(--shadow-img));
  transition: transform 0.5s var(--ease-out);
}

.showcase-img--hero {
  max-width: 560px;
}

.showcase-img--feature {
  max-width: 500px;
}

.feature-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px 0;
}

.feature-visual::before {
  content: '';
  position: absolute;
  width: 65%;
  height: 65%;
  background: radial-gradient(circle, rgba(26, 111, 212, 0.2) 0%, transparent 70%);
  filter: blur(36px);
  pointer-events: none;
}

/* ── Marquee ── */
.marquee-section {
  padding: 16px 0;
  border-block: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.marquee {
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  gap: 28px;
  width: max-content;
  animation: marquee 32s linear infinite;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-tertiary);
  white-space: nowrap;
}

.marquee-track span:not(:nth-child(even)) {
  color: var(--text-secondary);
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ── Stats ── */
.stats-bar {
  padding: 56px 0;
  background: rgba(255, 255, 255, 0.02);
  border-block: 1px solid var(--border);
}

/* ── Problem / Solution ── */
.problem {
  padding: 88px 0;
}

.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.problem-left,
.problem-right {
  padding: 36px;
  border-radius: 28px;
  border: 1px solid var(--border);
}

.problem-left {
  background: rgba(239, 68, 68, 0.04);
  border-color: rgba(239, 68, 68, 0.12);
}

.problem-right {
  background: rgba(34, 197, 94, 0.04);
  border-color: rgba(34, 197, 94, 0.12);
}

.problem-left h2,
.problem-right h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 28px;
}

.problem .section-tag {
  display: inline-block;
  padding: 5px 12px;
  background: rgba(0, 69, 147, 0.2);
  border: 1px solid rgba(0, 69, 147, 0.25);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #5ba3ff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.problem .section-tag--red {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.problem-list,
.solution-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
}

.problem-list li,
.solution-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.problem-x,
.solution-check {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.problem-x {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

.solution-check {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}

.problem-list strong,
.solution-list strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.problem-list span,
.solution-list span {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ── Stats grid ── */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.stat-item {
  text-align: center;
  padding: 28px 16px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  transition: transform 0.3s var(--ease-out), border-color 0.3s, background 0.3s;
}

.stat-item:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
}

.stat-big {
  display: block;
  font-size: clamp(1.75rem, 2.5vw, 2.125rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent-bright) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}

.stat-desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

/* ── Sections ── */
.section-header {
  text-align: center;
  max-width: 580px;
  margin: 0 auto 52px;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-bright);
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(1.875rem, 3.5vw, 2.625rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 14px;
}

.section-header p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ── Features ── */
.features {
  padding: 96px 0 48px;
}

.features .section-header {
  max-width: 640px;
  margin-bottom: 72px;
}

.features .section-header h2 {
  font-family: 'Outfit', var(--font);
  font-size: clamp(2.125rem, 4vw, 3rem);
  letter-spacing: -0.035em;
}

.features .section-header p {
  font-size: 1.125rem;
  line-height: 1.7;
}

.feature-block {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 56px;
  align-items: center;
  margin-bottom: 108px;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  backdrop-filter: none;
}

.feature-block--reverse {
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
}

.feature-block--reverse .feature-copy {
  order: 2;
}

.feature-block--reverse .feature-visual {
  order: 1;
}

.feature-copy {
  max-width: 480px;
}

.feature-block--reverse .feature-copy {
  margin-left: auto;
}

.feature-label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-bright);
  margin-bottom: 14px;
  padding: 6px 14px;
  background: rgba(0, 69, 147, 0.15);
  border: 1px solid rgba(91, 157, 255, 0.22);
  border-radius: 999px;
}

.feature-copy h3 {
  font-family: 'Outfit', var(--font);
  font-size: clamp(2rem, 3.2vw, 2.625rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.12;
  margin-bottom: 18px;
}

.feature-copy p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 460px;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feature-list li {
  position: relative;
  padding-left: 26px;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.5;
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0.15em;
  color: var(--green);
  font-size: 0.9375rem;
  font-weight: 700;
}

/* ── How it works ── */
.how-it-works {
  padding: 72px 0;
  border-block: 1px solid var(--border);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.step-card {
  padding: 28px 24px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: transform 0.35s var(--ease-out), border-color 0.35s;
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: rgba(91, 157, 255, 0.25);
}

.step-num {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-bright);
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 50%;
  margin-bottom: 16px;
}

.step-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Reviews ── */
.reviews {
  padding: 72px 0;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.review-card {
  padding: 26px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.35s var(--ease-out), border-color 0.35s;
}

.review-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}

.review-card--featured {
  border-color: rgba(91, 157, 255, 0.3);
  background: linear-gradient(165deg, rgba(91, 157, 255, 0.08) 0%, var(--bg-card) 100%);
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.12);
}

.review-stars {
  color: var(--gold);
  font-size: 0.875rem;
  letter-spacing: 1px;
}

.review-text {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text);
  flex: 1;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-strong);
}

.review-author strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
}

.review-author span {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

/* ── FAQ ── */
.faq {
  padding: 72px 0;
  border-top: 1px solid var(--border);
}

.faq-list {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.3s;
}

.faq-item[open] {
  border-color: rgba(91, 157, 255, 0.25);
}

.faq-item summary {
  padding: 18px 20px;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--text-tertiary);
  transition: transform 0.3s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
  color: var(--accent-bright);
}

.faq-item p {
  padding: 0 20px 18px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.faq-item a {
  color: var(--accent-bright);
  text-decoration: underline;
}

/* ── Download ── */
.download {
  padding: 72px 0 96px;
}

.download-card {
  position: relative;
  text-align: center;
  padding: 52px 36px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}

.download-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(91, 157, 255, 0.4), transparent 50%, rgba(56, 189, 248, 0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.download-card::after {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(91, 157, 255, 0.12) 0%, transparent 65%);
  pointer-events: none;
}

.download-logo {
  position: relative;
  border-radius: 22%;
  margin: 0 auto 22px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.download-card h2 {
  position: relative;
  font-size: clamp(1.875rem, 3vw, 2.375rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.download-card > p {
  position: relative;
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 440px;
  margin: 0 auto 26px;
  line-height: 1.65;
}

.download-guarantees {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 22px;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-weight: 600;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  transition: transform 0.25s, box-shadow 0.25s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  color: #fff;
  box-shadow: 0 4px 24px rgba(0, 69, 147, 0.45);
  padding: 14px 24px;
  font-size: 0.9375rem;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(59, 130, 246, 0.45);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 0.875rem;
}

/* ── Footer ── */
.footer {
  background: rgba(0, 0, 0, 0.35);
  border-top: 1px solid var(--border);
  color: rgba(255, 255, 255, 0.85);
  padding-top: 56px;
}

.footer .logo-text {
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin: 14px 0 20px;
  max-width: 280px;
  line-height: 1.6;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.footer-social a:hover {
  color: var(--accent-bright);
}

.footer-links h4 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  margin-bottom: 14px;
}

.footer-links a {
  display: block;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 22px 0;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

/* ── Mobile CTA bar ── */
.mobile-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(5, 8, 16, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  transform: translateY(100%);
  transition: transform 0.4s var(--ease-out);
}

.mobile-cta-bar.visible {
  transform: translateY(0);
}

.mobile-cta-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}

.mobile-cta-icon {
  border-radius: 22%;
  flex-shrink: 0;
}

.mobile-cta-text {
  flex: 1;
  line-height: 1.25;
}

.mobile-cta-text strong {
  display: block;
  font-size: 0.9375rem;
}

.mobile-cta-text span {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

/* ── Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

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

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.14s; }
.reveal-delay-3 { transition-delay: 0.2s; }
.reveal-delay-4 { transition-delay: 0.26s; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 36px;
  }

  .hero-sub,
  .store-row,
  .hero-trust {
    margin-inline: auto;
  }

  .store-row {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .problem-grid {
    grid-template-columns: 1fr;
  }

  .problem-left,
  .problem-right {
    padding: 28px 24px;
  }

  .showcase-img--hero {
    max-width: 480px;
  }

  .feature-block,
  .feature-block--reverse {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
    padding: 0;
    margin-bottom: 72px;
  }

  .feature-copy,
  .feature-block--reverse .feature-copy {
    max-width: none;
    margin-inline: auto;
  }

  .feature-copy p {
    margin-inline: auto;
  }

  .feature-block--reverse .feature-copy,
  .feature-block--reverse .feature-visual {
    order: unset;
  }

  .feature-copy p {
    margin-inline: auto;
  }

  .feature-list {
    align-items: center;
  }

  .feature-list li {
    text-align: left;
    max-width: 280px;
  }

  .showcase-img--feature {
    max-width: 440px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-inline: auto;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin-inline: auto;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    justify-content: flex-start;
    padding: 24px;
    gap: 4px;
    background: rgba(5, 8, 16, 0.97);
    backdrop-filter: blur(20px);
    transform: translateX(100%);
    transition: transform 0.35s var(--ease-out);
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-link {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
  }

  .nav-cta {
    margin: 8px 0 0;
    width: 100%;
    text-align: center;
    padding: 14px;
  }

  .mobile-menu {
    display: flex;
  }

  .hero {
    padding-top: calc(var(--nav-h) + 36px);
  }

  .showcase-img--hero {
    max-width: 400px;
  }

  .showcase-img--feature {
    max-width: 400px;
  }

  .features .section-header h2 {
    font-size: clamp(1.875rem, 7vw, 2.25rem);
  }

  .feature-copy h3 {
    font-size: clamp(1.75rem, 6vw, 2.125rem);
  }

  .store-badge-link--apple img {
    height: 40px;
  }

  .store-badge-link--google img {
    height: 54px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand p {
    margin-inline: auto;
  }

  .footer-social {
    justify-content: center;
  }
}

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

  .marquee-track {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-glow {
    animation: none;
  }
}

/* ── Legal pages (Privacy, Terms) ── */
body.legal-page {
  min-height: 100vh;
}

.legal-page .navbar {
  background: rgba(5, 8, 16, 0.75);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--border);
}

.privacy-header {
  position: relative;
  z-index: 1;
  padding: calc(var(--nav-h) + 56px) 0 48px;
  text-align: center;
}

.privacy-header-content {
  max-width: 720px;
  margin: 0 auto;
}

.privacy-title {
  font-family: 'Outfit', var(--font);
  font-size: clamp(2.25rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #4da3ff 0%, #1a8cff 40%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.privacy-subtitle {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 24px;
}

.privacy-meta {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  padding: 8px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.meta-icon {
  font-size: 0.875rem;
  line-height: 1;
}

.privacy-content {
  position: relative;
  z-index: 1;
  padding: 0 0 80px;
}

.privacy-wrapper {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: start;
}

.toc-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(12px);
}

.toc-header h3 {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-bright);
  margin-bottom: 14px;
}

.toc-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.toc-nav a {
  display: block;
  padding: 8px 10px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  line-height: 1.4;
}

.toc-nav a:hover,
.toc-nav a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.privacy-main {
  padding: 36px 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
}

.policy-section {
  padding-bottom: 36px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: calc(var(--nav-h) + 24px);
}

.policy-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.policy-section h2 {
  font-family: 'Outfit', var(--font);
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  color: var(--text);
}

.policy-section h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 20px 0 10px;
  color: var(--accent-bright);
}

.policy-section p {
  margin-bottom: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.policy-section ul {
  margin: 12px 0 18px;
  padding-left: 1.25rem;
}

.policy-section li {
  margin-bottom: 10px;
  line-height: 1.65;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.policy-section strong {
  color: var(--text);
  font-weight: 600;
}

.policy-section a {
  color: var(--accent-bright);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.policy-section a:hover {
  color: var(--text);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.contact-item a {
  color: var(--accent-bright);
}

.back-to-top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  width: 44px;
  height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.125rem;
  box-shadow: 0 8px 24px rgba(0, 69, 147, 0.45);
  transition: transform 0.25s var(--ease-out), opacity 0.25s;
}

.back-to-top-btn.visible {
  display: flex;
}

.back-to-top-btn:hover {
  transform: translateY(-3px);
}

@media (max-width: 900px) {
  .privacy-wrapper {
    grid-template-columns: 1fr;
  }

  .toc-sidebar {
    position: static;
    order: 2;
  }

  .privacy-main {
    order: 1;
    padding: 28px 24px;
  }
}

@media (max-width: 768px) {
  .privacy-header {
    padding-top: calc(var(--nav-h) + 32px);
  }

  .privacy-meta {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .privacy-main {
    padding: 22px 18px;
  }

  .back-to-top-btn {
    bottom: 16px;
    right: 16px;
  }
}
