/* ============================================================
   LongevityOS — Static Site Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ── Design Tokens ── */
:root {
  --bg:            #020617;
  --fg:            #f8fafc;
  --primary:       #10b981;
  --primary-dark:  #059669;
  --accent-cyan:   #2dd4bf;
  --accent-purple: #8b5cf6;
  --accent-blue:   #0ea5e9;
  --slate-300:     #cbd5e1;
  --slate-400:     #94a3b8;
  --slate-500:     #64748b;
  --slate-600:     #475569;
  --slate-800:     #1e293b;
  --slate-900:     #0f172a;
  --slate-950:     #020617;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  height: 100%;
  scroll-snap-type: y mandatory;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--fg);
  min-height: 100%;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; }

section {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  height: 100vh;
  overflow-y: hidden;
}

footer {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ── Typography utilities ── */
.text-gradient {
  background: linear-gradient(to right, #10b981, #2dd4bf, #10b981);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Layout utilities ── */
.container {
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ── Glass utilities ── */
.glass-card {
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 8px 32px 0 rgba(0,0,0,0.8);
  background: rgba(255,255,255,0.02);
}

.glass-nav {
  background: rgba(2, 6, 23, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* ── Neon utilities ── */
.neon-glow {
  box-shadow: 0 0 15px rgba(16,185,129,0.5), 0 0 30px rgba(16,185,129,0.2);
}

.neon-border {
  border: 1px solid rgba(16,185,129,0.3);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.neon-border:hover {
  border-color: rgba(16,185,129,0.8);
  box-shadow: 0 0 10px rgba(16,185,129,0.4);
}

/* ── Keyframe Animations ── */
@keyframes pulse-glow {
  0%, 100% { opacity: .5; transform: scale(1);   filter: blur(100px) brightness(1); }
  50%       { opacity: .8; transform: scale(1.1); filter: blur(80px) brightness(1.2); }
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .5; }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scan-line {
  0%, 100% { top: -10%; }
  50%       { top: 110%; }
}

@keyframes connecting-line {
  from { width: 0; }
  to   { width: 100%; }
}

.animate-pulse-glow { animation: pulse-glow 3s cubic-bezier(0.4,0,0.6,1) infinite; }
.animate-pulse      { animation: pulse 2s ease-in-out infinite; }
.animate-float      { animation: float 4s ease-in-out infinite; }

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 1rem 1.5rem;
  animation: fade-in 0.6s ease both;
}

.navbar-inner {
  max-width: 80rem;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo svg {
  width: 2.5rem;
  height: 2.5rem;
  filter: drop-shadow(0 0 10px rgba(16,185,129,0.3));
  transition: transform 0.2s ease;
}
.logo:hover svg { transform: scale(1.1); }

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  color: #fff;
}
.logo-text span { color: var(--primary); }

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) { .nav-links { display: flex; } }

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-300);
  transition: color 0.2s ease;
}
.nav-links a:hover { color: #fff; }

.btn-nav {
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.2);
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.2s ease;
}
.btn-nav:hover { background: rgba(16,185,129,0.2); }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 6rem;
  padding-bottom: 5rem;
  overflow: hidden;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-video-wrap video {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.3;
  transform: scale(1.05);
  filter: blur(2px);
}
.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(2,6,23,0.6);
}

#neural-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
  mix-blend-mode: screen;
  z-index: 1;
}

.hero-orb {
  position: absolute;
  top: 25%;
  left: 25%;
  width: 24rem;
  height: 24rem;
  background: rgba(16,185,129,0.1);
  border-radius: 50%;
  filter: blur(120px);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}

@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr 1fr; }
}

.hero-badge {
  display: inline-block;
  padding: 0.25rem 1rem;
  margin-bottom: 1.5rem;
  border-radius: 9999px;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.2);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(2.75rem, 4.5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 1.5rem;
}

.hero-title-line {
  display: block;
  white-space: nowrap;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--slate-400);
  min-height: 3.5rem;
  max-width: 42rem;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .hero-cta { flex-direction: row; align-items: center; }
}

.btn-apple {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: #fff;
  color: #000;
  font-weight: 700;
  border-radius: 1rem;
  transition: background 0.2s ease;
  width: 100%;
}
@media (min-width: 768px) { .btn-apple { width: auto; } }
.btn-apple:hover { background: #e2e8f0; }
.btn-apple .chevron { transition: transform 0.2s ease; }
.btn-apple:hover .chevron { transform: translateX(4px); }

.btn-play {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  border-radius: 1rem;
  transition: background 0.2s ease;
  width: 100%;
}
@media (min-width: 768px) { .btn-play { width: auto; } }
.btn-play:hover { background: var(--primary-dark); }

/* Hero Phone Card */
.hero-phone-card {
  position: relative;
  display: none;
}
@media (min-width: 1024px) { .hero-phone-card { display: block; } }

.hero-phone-inner {
  position: relative;
  padding: 1rem;
  border-radius: 3rem;
  border-color: rgba(16,185,129,0.2);
  overflow: hidden;
}

.hero-phone-inner img {
  width: 100%;
  border-radius: 2.5rem;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.8);
  transition: transform 0.7s ease;
}
.hero-phone-inner:hover img { transform: scale(1.05); }

/* Hero Carousel */
.hero-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: 2rem;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
  transform: scale(1.1);
  display: flex;
  flex-direction: column;
}

.carousel-slide.active {
  opacity: 1;
  transform: scale(1);
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 2rem;
}

.slide-caption {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(2, 6, 23, 0.6);
  backdrop-filter: blur(8px);
  padding: 0.5rem 1.25rem;
  border-radius: 2rem;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
  pointer-events: none;
  z-index: 20;
}

.carousel-nav {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 30;
}

.nav-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-dot.active {
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
  width: 18px;
  border-radius: 3px;
}


.hero-phone-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2,6,23,0.8) 0%, transparent 50%);
  opacity: .4;
}

.hero-scan-line {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: rgba(16,185,129,0.6);
  filter: blur(3px);
  box-shadow: 0 0 15px rgba(16,185,129,0.8);
  z-index: 20;
  animation: scan-line 4s linear infinite;
}

.hero-bio-badge {
  position: absolute;
  bottom: 2.5rem;
  left: 2.5rem;
  padding: 1rem;
  border-radius: 1rem;
  border-color: rgba(255,255,255,0.1);
  animation: float 4s ease-in-out infinite;
}

.hero-bio-badge-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-bio-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse 2s ease-in-out infinite;
}

/* Hero Stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

@media (min-width: 768px) {
  .hero-stats { grid-template-columns: repeat(4, 1fr); }
}

.hero-stat h4 {
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--primary);
}
.hero-stat p {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.25rem;
}

/* ============================================================
   FEATURES SECTION
   ============================================================ */
.section-features {
  padding: 6rem 1.5rem;
  background: var(--slate-950);
}

.section-header { text-align: center; margin-bottom: 4rem; }

.section-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-subtitle {
  color: var(--slate-400);
  max-width: 42rem;
  margin-inline: auto;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }

.feature-card {
  border-radius: 1.5rem;
  overflow: hidden;
  transition: background 0.3s ease;
}
.feature-card:hover { background: rgba(15,23,42,0.5); }

.feature-img-wrap {
  position: relative;
  height: 12rem;
  overflow: hidden;
}
.feature-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .6;
  transition: transform 0.5s ease;
}
.feature-card:hover .feature-img-wrap img { transform: scale(1.1); }

.feature-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--slate-950) 0%, transparent 100%);
}

.feature-body {
  padding: 2rem;
  padding-top: 0;
  position: relative;
  z-index: 10;
  margin-top: -2rem;
}
.feature-body h3 { font-size: 1.25rem; font-weight: 700; color: #fff; margin-bottom: 0.75rem; }
.feature-body p  { font-size: 0.875rem; color: var(--slate-400); line-height: 1.6; }

/* ============================================================
   INTEGRATIONS SECTION
   ============================================================ */
.section-integrations {
  padding: 6rem 1.5rem;
  background: var(--slate-950);
  position: relative;
  overflow: hidden;
}

.integrations-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}
@media (min-width: 1024px) { .integrations-grid { grid-template-columns: 1fr 1fr; } }

.integrations-text h2 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}
.integrations-text p {
  color: var(--slate-400);
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.integrations-bullets { display: flex; flex-direction: column; gap: 1rem; }
.integrations-bullet { display: flex; align-items: center; gap: 1rem; color: #fff; font-weight: 500; }
.bullet-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.bullet-green  { background: var(--primary); }
.bullet-purple { background: var(--accent-purple); }
.bullet-cyan   { background: var(--accent-cyan); }

.integrations-visual { position: relative; }
.integrations-orb {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 16rem; height: 16rem;
  background: rgba(16,185,129,0.2);
  border-radius: 50%;
  filter: blur(100px);
  animation: pulse 3s ease-in-out infinite;
  z-index: 0;
}

.integrations-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  position: relative;
  z-index: 10;
}
@media (min-width: 640px) { .integrations-cards { grid-template-columns: repeat(3, 1fr); } }

.integration-card {
  padding: 1.5rem;
  border-radius: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-color: rgba(255,255,255,0.05);
  cursor: pointer;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.integration-card:hover {
  border-color: rgba(16,185,129,0.3);
  transform: translateY(-5px) scale(1.05);
}

.integration-icon-wrap {
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(255,255,255,0.05);
  transition: background 0.3s ease;
}
.integration-card:hover .integration-icon-wrap { background: rgba(16,185,129,0.1); }

.integration-card h4 { font-size: 0.875rem; font-weight: 700; color: #fff; margin-bottom: 0.25rem; }
.integration-card span { font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--slate-500); font-weight: 700; }

.integration-card-more {
  padding: 1.5rem;
  border-radius: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px dashed rgba(255,255,255,0.1);
  opacity: .6;
}
.integration-card-more .more-circle {
  width: 2.5rem; height: 2.5rem;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.integration-card-more p { font-size: 0.625rem; color: var(--slate-500); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.section-how {
  padding: 6rem 1.5rem;
  background: var(--slate-950);
  position: relative;
  overflow: hidden;
}
.section-how::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(16,185,129,0.2), transparent);
}

.how-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  position: relative;
}
@media (min-width: 1024px) { .how-steps { grid-template-columns: repeat(3, 1fr); } }

/* Connecting line */
.how-connector {
  display: none;
  position: absolute;
  top: 2.5rem;
  left: 15%; right: 15%;
  height: 1px;
  background: var(--slate-800);
  z-index: 0;
}
@media (min-width: 1024px) { .how-connector { display: block; } }

.how-connector-progress {
  height: 100%;
  width: 0;
  background: linear-gradient(to right, var(--primary), var(--accent-cyan), var(--primary));
  transition: width 2s ease 0.5s;
}
.how-connector-progress.active { width: 100%; }

.how-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 10;
}

.step-icon-wrap {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: var(--slate-950);
  border: 1px solid var(--slate-800);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  position: relative;
}

.step-glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(16,185,129,0.2);
  filter: blur(1rem);
  animation: pulse 3s ease-in-out infinite;
}

.step-number {
  position: absolute;
  top: -0.5rem; right: -0.5rem;
  width: 2rem; height: 2rem;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(16,185,129,0.4);
}

.how-step h3 { font-size: 1.5rem; font-weight: 700; color: #fff; margin-bottom: 1rem; }
.how-step p  { color: var(--slate-400); max-width: 18rem; line-height: 1.6; }

/* ============================================================
   SOCIAL PROOF
   ============================================================ */
.section-social {
  padding: 6rem 1.5rem;
  background: var(--slate-950);
}

.social-card {
  border-radius: 3rem;
  padding: 3rem;
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) { .social-card { padding: 5rem; } }

.social-orb-1, .social-orb-2 {
  position: absolute;
  width: 16rem; height: 16rem;
  border-radius: 50%;
  filter: blur(80px);
}
.social-orb-1 { top: 0; right: 0; background: rgba(16,185,129,0.1); }
.social-orb-2 { bottom: 0; left: 0; background: rgba(139,92,246,0.1); }

.social-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 10;
}
@media (min-width: 1024px) { .social-inner { grid-template-columns: 1fr 1fr; } }

.social-heading {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 2rem;
}

.stars { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: 2rem; }
.stars svg { width: 1.25rem; height: 1.25rem; }
.stars span { color: var(--slate-300); font-weight: 500; }

.testimonial-quote { color: var(--slate-400); font-style: italic; font-size: 1.125rem; margin-bottom: 2rem; line-height: 1.7; }

.testimonial-author { display: flex; align-items: center; gap: 1rem; }
.testimonial-avatar { width: 3rem; height: 3rem; border-radius: 50%; background: var(--slate-800); }
.testimonial-author-info p:first-child { font-weight: 700; color: #fff; }
.testimonial-author-info p:last-child  { font-size: 0.875rem; color: var(--slate-500); }

.stats-grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.stat-card-mini {
  border-radius: 1.5rem;
  padding: 1.5rem;
  text-align: center;
}
.stat-card-mini:nth-child(even) { margin-top: 2rem; }
.stat-card-mini h4 { font-size: 2.25rem; font-weight: 700; color: #fff; margin-bottom: 0.5rem; }
.stat-card-mini p  { font-size: 0.875rem; color: var(--slate-500); }

/* ============================================================
   FINAL CTA
   ============================================================ */
.section-cta {
  padding: 6rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.cta-orb {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 100%; height: 31.25rem;
  background: rgba(16,185,129,0.2);
  border-radius: 50%;
  filter: blur(150px);
  animation: pulse-glow 3s ease-in-out infinite;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 10;
}
@media (min-width: 1024px) { .cta-grid { grid-template-columns: 1fr 1fr; } }

.cta-card {
  border-radius: 3rem;
  padding: 3rem;
  border-color: rgba(16,185,129,0.2);
}
@media (min-width: 768px) { .cta-card { padding: 4rem; } }

.cta-card h2 {
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 2rem;
  line-height: 1.1;
}
.cta-card p {
  color: var(--slate-400);
  font-size: 1.125rem;
  margin-bottom: 3rem;
  max-width: 36rem;
}

.cta-buttons { display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 640px) { .cta-buttons { flex-direction: row; align-items: center; } }

.cta-image-wrap {
  display: none;
}
@media (min-width: 1024px) { .cta-image-wrap { display: block; } }

.cta-image-card {
  position: relative;
  padding: 1rem;
  border-radius: 3rem;
  border-color: rgba(255,255,255,0.1);
  transform: rotate(3deg);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.9);
}
.cta-image-card img { width: 100%; border-radius: 2.5rem; }
.cta-image-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 5rem; height: 5rem;
  background: var(--primary);
  border-radius: 50%;
  filter: blur(2rem);
  opacity: .4;
  animation: pulse 2s ease-in-out infinite;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  padding: 5rem 1.5rem;
  background: var(--slate-950);
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 3rem; }
}

.footer-brand p {
  color: var(--slate-500);
  max-width: 22rem;
  margin: 1.5rem 0 2rem;
  line-height: 1.7;
}

.social-links { display: flex; gap: 1rem; }
.social-link {
  padding: 0.5rem;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 8px 32px rgba(0,0,0,0.8);
  background: rgba(255,255,255,0.02);
  transition: background 0.2s ease;
  color: var(--slate-400);
  display: flex;
}
.social-link:hover { background: rgba(255,255,255,0.1); }

.footer-col h4 { font-weight: 700; color: #fff; margin-bottom: 1.5rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 1rem; }
.footer-col a { color: var(--slate-500); transition: color 0.2s ease; font-size: 0.9375rem; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  color: var(--slate-600);
  font-size: 0.875rem;
}
@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; justify-content: center; }
}

/* ============================================================
   DOWNLOAD MODAL
   ============================================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(2,6,23,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 32rem;
  border-radius: 2.5rem;
  padding: 2rem;
  overflow: hidden;
  transform: scale(0.95) translateY(20px);
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}
@media (min-width: 768px) { .modal-card { padding: 3rem; } }

.modal-backdrop.open .modal-card {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.modal-glow {
  position: absolute;
  top: -6rem; left: -6rem;
  width: 12rem; height: 12rem;
  background: rgba(16,185,129,0.2);
  border-radius: 50%;
  filter: blur(80px);
}

.modal-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  padding: 0.5rem;
  border-radius: 50%;
  color: var(--slate-400);
  transition: background 0.2s ease, color 0.2s ease;
}
.modal-close:hover { background: rgba(255,255,255,0.1); color: #fff; }

.modal-body { position: relative; z-index: 10; text-align: center; }

.modal-body h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}
.modal-body > p {
  color: var(--slate-400);
  font-size: 1.125rem;
  margin-bottom: 2.5rem;
}

.modal-buttons { display: flex; flex-direction: column; gap: 1rem; }

.btn-modal-apple {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.25rem 2rem;
  background: #fff;
  color: #000;
  font-weight: 700;
  border-radius: 1rem;
  transition: background 0.2s ease;
  width: 100%;
}
.btn-modal-apple:hover { background: #e2e8f0; }

.btn-modal-play {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.25rem 2rem;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  border-radius: 1rem;
  transition: background 0.2s ease;
  width: 100%;
}
.btn-modal-play:hover { background: var(--primary-dark); }

.btn-label { text-align: left; }
.btn-label-sub { font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.6; line-height: 1; margin-bottom: 2px; }
.btn-label-main { font-size: 1.25rem; line-height: 1; }

.modal-note { margin-top: 2rem; color: var(--slate-500); font-size: 0.875rem; }

/* ============================================================
   LEGAL PAGES
   ============================================================ */
.legal-main {
  flex: 1;
  padding-top: 9.5rem;
  padding-bottom: 6rem;
  padding-inline: 1.5rem;
}

.legal-card {
  max-width: 70rem;
  margin-inline: auto;
  border-radius: 2.5rem;
  padding: 2.5rem;
  border-color: rgba(255,255,255,0.05);
  animation: fade-up 0.7s ease both;
}
@media (min-width: 768px) { .legal-card { padding: 3rem; } }

.legal-card h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  margin-bottom: 2rem;
}

.legal-sections { display: flex; flex-direction: column; gap: 2rem; color: var(--slate-400); line-height: 1.7; }

/* Override landing-page scroll-snap rules for legal content sections */
.legal-sections section {
  height: auto;
  overflow-y: visible;
  scroll-snap-align: none;
  scroll-snap-stop: normal;
}

.legal-sections section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}

.legal-sections section h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 2rem;
  margin-bottom: 0.6rem;
}

.legal-sections ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.legal-sections ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.legal-sections ul li::before {
  content: '';
  flex-shrink: 0;
  margin-top: 0.55rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.legal-disclaimer {
  border-left: 4px solid rgba(16,185,129,0.5);
  padding: 0.5rem 1.5rem;
  background: rgba(16,185,129,0.05);
  border-radius: 0 0.75rem 0.75rem 0;
  color: #fff;
  font-weight: 500;
}

.legal-footer {
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 0.875rem;
}

/* ============================================================
   MESH BACKGROUND
   ============================================================ */
.mesh-bg {
  background-color: #020617;
  background-image:
    radial-gradient(at 0% 0%,   rgba(16,185,129,0.15) 0, transparent 50%),
    radial-gradient(at 50% 0%,  rgba(45,212,191,0.1)  0, transparent 50%),
    radial-gradient(at 100% 0%, rgba(16,185,129,0.15) 0, transparent 50%);
}

/* ============================================================
   MOBILE NAV MENU
   ============================================================ */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(2,6,23,0.97);
  backdrop-filter: blur(16px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--slate-300);
  transition: color 0.2s ease;
}
.mobile-menu a:hover { color: #fff; }

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  cursor: pointer;
}
@media (min-width: 768px) { .hamburger { display: none; } }

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--slate-300);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ============================================================
   MOBILE OVERRIDES  (max-width: 767px)
   ============================================================ */
@media (max-width: 767px) {

  /* ── Global section breathing room ── */
  .section-features,
  .section-integrations,
  .section-how,
  .section-social,
  .section-cta {
    padding: 4rem 1.25rem;
  }
  .section-header { margin-bottom: 2.5rem; }
  .section-title  { font-size: clamp(1.75rem, 7vw, 2.25rem); }

  /* ── HERO ── */
  .hero { padding-top: 5rem; padding-bottom: 3.5rem; }
  .hero-grid     { gap: 2rem; margin-bottom: 2.5rem; }
  .hero-title    { font-size: clamp(2.2rem, 9vw, 2.75rem); }
  .hero-title-line { white-space: normal; }
  .hero-subtitle { font-size: 1rem; min-height: auto; line-height: 1.6; }
  .hero-cta      { margin-top: 2rem; }
  .hero-stats    { gap: 1.25rem; padding-top: 2rem; }
  .hero-stat h4  { font-size: 1.5rem; }
  .hero-stat p   { font-size: 0.65rem; letter-spacing: 0.06em; }

  /* ── FEATURES ── */
  .feature-img-wrap { height: 10rem; }

  /* ── INTEGRATIONS ── */
  .integrations-grid   { gap: 2.5rem; }
  .integrations-text h2 { font-size: clamp(1.75rem, 7vw, 2.25rem); }
  .integrations-text p  { font-size: 1rem; }
  .integrations-cards  { gap: 0.75rem; }
  .integration-card    { padding: 1rem 0.75rem; }
  .integration-icon-wrap { padding: 0.75rem; }

  /* ── HOW IT WORKS ── */
  .how-steps  { gap: 2rem; }
  .how-step p { font-size: 0.9rem; }

  /* ── SOCIAL PROOF ← primary fix ── */
  .social-card {
    padding: 1.75rem 1.5rem;
    border-radius: 2rem;
  }
  .social-inner { gap: 2.5rem; }
  .social-heading {
    font-size: clamp(1.6rem, 6.5vw, 2rem);
    line-height: 1.25;
    margin-bottom: 1.25rem;
  }
  /* Remove desktop stagger — it breaks the mobile 2×2 grid */
  .stat-card-mini:nth-child(even) { margin-top: 0; }
  .stats-grid-2x2 { gap: 0.75rem; }
  .stat-card-mini { padding: 1.25rem 1rem; border-radius: 1.25rem; }
  .stat-card-mini h4  { font-size: 1.75rem; }
  .stat-card-mini p   { font-size: 0.8rem; }
  .testimonial-quote  { font-size: 1rem; margin-bottom: 1.5rem; }
  .stars              { margin-bottom: 1.25rem; }

  /* ── FINAL CTA ── */
  .cta-card {
    padding: 1.75rem 1.5rem;
    border-radius: 2rem;
  }
  .cta-card h2   { font-size: clamp(1.75rem, 7vw, 2.25rem); margin-bottom: 1rem; }
  .cta-card p    { font-size: 1rem; margin-bottom: 2rem; }
  .cta-buttons   { flex-direction: column; }
  .btn-apple,
  .btn-play      { max-width: 100% !important; }

  /* ── FOOTER ── */
  footer         { padding: 3.5rem 1.25rem; }
  .footer-grid   { gap: 2rem; margin-bottom: 2.5rem; }
  .footer-bottom { text-align: center; gap: 0.75rem; }

  /* ── MODAL ── */
  .modal-card        { border-radius: 1.75rem; padding: 1.75rem 1.5rem; }
  .modal-body h2     { font-size: 1.75rem; }
  .modal-body > p    { font-size: 1rem; margin-bottom: 1.75rem; }

  /* ── LEGAL PAGES ── */
  .legal-main { padding-top: 7rem; }
  .legal-card {
    border-radius: 1.75rem;
    padding: 1.5rem;
  }
  .legal-card h1 { font-size: clamp(2rem, 8vw, 2.75rem); margin-bottom: 1.5rem; }
  .legal-sections section h2 { font-size: 1.2rem; }
  .legal-sections section h3 { font-size: 1rem; margin-top: 1.5rem; }

  /* ── NAVBAR ── */
  .btn-nav { padding: 0.4rem 0.9rem; font-size: 0.8rem; }
}

/* ============================================================
   SITE FOOTER (landing page)
   ============================================================ */
.site-footer {
  background: linear-gradient(180deg, transparent 0%, rgba(2, 6, 23, 0.95) 30%);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 3rem 1.5rem 2rem;
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.footer-logo svg {
  width: 32px;
  height: 32px;
}

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: rgba(148, 163, 184, 0.8);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #34d399;
}

.footer-divider {
  width: 100%;
  max-width: 400px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
}

.footer-copy {
  color: rgba(148, 163, 184, 0.55);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  margin: 0;
}
