/* ============================================================
   VitalApp — Mobile Fitness & Diet App Landing Template
   Framework-free · Poppins + Inter · Token-based design system
   ============================================================ */

:root {
  /* ——— Brand tokens ——— */
  --purple: #7C3AED;
  --purple-600: #6D28D9;
  --purple-soft: #EDE9FE;
  --teal: #0D9488;
  --teal-600: #0F766E;
  --teal-soft: #CCFBF1;
  --indigo: #1E1B4B;
  --indigo-deep: #141232;
  --light: #F8FAFC;
  --accent: #F59E0B;
  --accent-soft: #FEF3C7;
  --ink: #0F172A;
  --muted: #64748B;
  --line: #E2E8F0;
  --white: #FFFFFF;

  /* ——— Gradients ——— */
  --grad-brand: linear-gradient(120deg, #7C3AED 0%, #0D9488 100%);
  --grad-purple: linear-gradient(135deg, #7C3AED, #A855F7);
  --grad-download: linear-gradient(135deg, #1E1B4B 0%, #3B2477 55%, #0D3F3A 100%);

  /* ——— Elevation ——— */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 2px 8px rgba(15, 23, 42, .05);
  --shadow-md: 0 6px 24px -6px rgba(30, 27, 75, .16);
  --shadow-lg: 0 24px 60px -18px rgba(30, 27, 75, .30);
  --shadow-glow: 0 14px 40px -12px rgba(124, 58, 237, .55);

  /* ——— Shape & type ——— */
  --radius: 22px;
  --radius-sm: 12px;
  --font-head: 'Poppins', -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --container: 1220px;
  --header-h: 76px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.18;
  color: var(--indigo);
  letter-spacing: -0.02em;
}

[id] { scroll-margin-top: calc(var(--header-h) + 18px); }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
  width: 100%;
}

.text-gradient {
  background: linear-gradient(100deg, #A78BFA 0%, #2DD4BF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.text-accent { color: var(--accent); }

/* ============================================================
   Header / Navigation
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(20, 18, 50, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 24px;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--white);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.nav-logo::before {
  content: "";
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--grad-brand);
  box-shadow: var(--shadow-glow);
  background-image:
    radial-gradient(circle at 35% 32%, rgba(255, 255, 255, .9) 0 2.5px, transparent 3px),
    radial-gradient(circle at 65% 58%, rgba(255, 255, 255, .9) 0 2px, transparent 2.5px),
    linear-gradient(120deg, #7C3AED 0%, #0D9488 100%);
}

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

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  padding: 9px 15px;
  border-radius: 999px;
  transition: color .2s ease, background .2s ease;
}

.nav-link:hover { color: var(--white); background: rgba(255, 255, 255, 0.08); }

.nav-link.active {
  color: var(--white);
  background: rgba(124, 58, 237, 0.28);
  box-shadow: inset 0 0 0 1px rgba(167, 139, 250, 0.35);
}

.nav-cta {
  margin-left: 8px;
  padding: 11px 22px;
  font-weight: 600;
  color: var(--white);
  background: var(--grad-brand);
  border-radius: 999px;
  box-shadow: var(--shadow-glow);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px -12px rgba(124, 58, 237, .65);
  filter: brightness(1.06);
  background: var(--grad-brand);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  font-family: var(--font-head);
  border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}

.btn-primary {
  color: var(--white);
  background: var(--grad-brand);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 50px -12px rgba(124, 58, 237, .7);
  filter: brightness(1.06);
}

.btn-outline {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-3px);
}

.btn-light {
  color: var(--indigo);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-light:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

/* ——— App-store badges ——— */
.badge-row { display: flex; flex-wrap: wrap; gap: 14px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px;
  border-radius: 14px;
  background: #0B0B17;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--white);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.badge:hover {
  transform: translateY(-3px);
  border-color: rgba(167, 139, 250, 0.7);
  box-shadow: var(--shadow-glow);
}

.badge svg { width: 26px; height: 26px; flex: 0 0 auto; }

.badge small {
  display: block;
  font-size: 0.68rem;
  line-height: 1.1;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.badge strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  color: rgba(255, 255, 255, 0.85);
  background-color: var(--indigo-deep);
  background-image:
    linear-gradient(180deg, rgba(20, 18, 50, 0.92) 0%, rgba(30, 27, 75, 0.86) 100%),
    url("../img/header-bg.jpg");
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  width: 560px;
  height: 560px;
  right: -140px;
  top: -120px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.45), transparent 62%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  left: -160px;
  bottom: -160px;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.35), transparent 62%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 56px;
  align-items: center;
  padding: 88px 0 72px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.18);
  border: 1px solid rgba(167, 139, 250, 0.4);
  color: #C4B5FD;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 22px;
}

.hero-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.25);
}

.hero h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.55rem);
  color: var(--white);
  margin-bottom: 20px;
}

.hero-lead {
  font-size: 1.13rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 540px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 26px;
}

.hero-badges { display: flex; flex-direction: column; gap: 10px; margin-bottom: 34px; }

.hero-badges-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-rating {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-rating-stars { color: var(--accent); font-size: 1.05rem; letter-spacing: 2px; }

.hero-rating p { font-size: 0.95rem; color: rgba(255, 255, 255, 0.72); }

.hero-rating strong { color: var(--white); }

/* ——— Phone mockup ——— */
.hero-mockup-wrap { position: relative; display: flex; justify-content: center; }

.hero-mockup {
  position: relative;
  width: min(300px, 86%);
  padding: 12px;
  border-radius: 46px;
  background: linear-gradient(165deg, #332E63, #100E28);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow-lg), 0 0 0 10px rgba(124, 58, 237, 0.12);
  transform: rotate(2deg);
}

.hero-mockup::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 92px;
  height: 22px;
  border-radius: 999px;
  background: #100E28;
  z-index: 3;
}

.hero-mockup img {
  width: 100%;
  border-radius: 36px;
  aspect-ratio: 388 / 800;
  object-fit: cover;
  display: block;
}

/* ——— Floating stat chips ——— */
.float-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-md);
  color: var(--indigo);
  z-index: 4;
  animation: floaty 5s ease-in-out infinite;
}

.float-chip--1 { top: 12%; left: -6%; }
.float-chip--2 { bottom: 20%; right: -8%; animation-delay: 1.6s; }
.float-chip--3 { bottom: -2%; left: 4%; animation-delay: 3s; }

.float-chip-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  flex: 0 0 auto;
}

.float-chip strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.15;
}

.float-chip span {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.2;
}

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

/* ——— Hero stats strip ——— */
.hero-stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 28px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-stat h3 {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 2px;
}

.hero-stat h3 span { color: var(--accent); }

.hero-stat p { font-size: 0.92rem; color: rgba(255, 255, 255, 0.65); }

/* ============================================================
   Sections
   ============================================================ */
.section { padding: 96px 0; }

.section--light { background: var(--light); }

.section--white { background: var(--white); }

.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-eyebrow {
  display: inline-block;
  padding: 7px 15px;
  border-radius: 999px;
  background: var(--purple-soft);
  color: var(--purple-600);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-eyebrow--teal {
  background: var(--teal-soft);
  color: var(--teal-600);
}

.section-title {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1.07rem;
  color: var(--muted);
}

/* ============================================================
   Features
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 26px;
}

.feature-card {
  grid-column: span 3;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: rgba(124, 58, 237, 0.35);
}

.feature-card--wide {
  grid-column: span 6;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
  padding: 34px;
  background:
    radial-gradient(120% 160% at 0% 0%, rgba(237, 233, 254, 0.9), transparent 55%),
    var(--white);
}

.features-icon {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  object-position: top;
  border-radius: 16px;
  border: 1px solid var(--line);
  aspect-ratio: 388 / 800;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.feature-card--wide .features-icon {
  max-height: 420px;
  margin-bottom: 0;
  object-position: center;
  box-shadow: var(--shadow-md);
}

.features-icon--sm {
  max-width: 210px;
  margin-inline: auto;
  margin-bottom: 20px;
}

.feature-icon-badge {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  font-size: 1.5rem;
  margin-bottom: 18px;
  background: var(--purple-soft);
}

.feature-card:nth-child(2) .feature-icon-badge { background: var(--teal-soft); }
.feature-card:nth-child(3) .feature-icon-badge { background: var(--accent-soft); }
.feature-card:nth-child(4) .feature-icon-badge { background: #FCE7F3; }
.feature-card:nth-child(5) .feature-icon-badge { background: var(--purple-soft); }

.feature-card h3 {
  font-size: 1.28rem;
  margin-bottom: 10px;
}

.feature-card p { color: var(--muted); font-size: 0.97rem; }

.feature-tag {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--purple-600);
  font-family: var(--font-head);
}

.feature-card:nth-child(2) .feature-tag { color: var(--teal-600); }
.feature-card:nth-child(3) .feature-tag { color: #B45309; }
.feature-card:nth-child(4) .feature-tag { color: #BE185D; }
.feature-card:nth-child(5) .feature-tag { color: var(--purple-600); }

/* ============================================================
   Why VitalApp (device collage split)
   ============================================================ */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.why-visual { position: relative; }

.why-dashboard {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  background: var(--white);
}

.why-dashboard img { width: 100%; height: auto; }

.why-phone {
  position: absolute;
  right: -8%;
  bottom: -34px;
  width: 42%;
  padding: 8px;
  border-radius: 26px;
  background: linear-gradient(165deg, #332E63, #100E28);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow-lg);
  transform: rotate(4deg);
}

.why-phone img {
  border-radius: 19px;
  aspect-ratio: 388 / 800;
  object-fit: cover;
}

.why-head { margin-bottom: 30px; }

.why-list { display: flex; flex-direction: column; gap: 22px; margin-bottom: 34px; }

.why-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.why-item-icon {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  background: var(--grad-brand);
  color: var(--white);
  box-shadow: var(--shadow-glow);
}

.why-item h3 { font-size: 1.12rem; margin-bottom: 3px; }
.why-item p { font-size: 0.95rem; color: var(--muted); }

/* ============================================================
   Testimonials
   ============================================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: var(--shadow-sm);
  transition: transform .28s ease, box-shadow .28s ease;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.testimonial-stars { color: var(--accent); letter-spacing: 2px; font-size: 0.95rem; }

.testimonial-card blockquote {
  font-size: 0.97rem;
  color: var(--ink);
  flex: 1;
}

.testimonial-person {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px dashed var(--line);
  padding-top: 18px;
}

.testimonial-person img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--purple-soft);
}

.testimonial-person strong {
  display: block;
  font-family: var(--font-head);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--indigo);
}

.testimonial-person span { font-size: 0.84rem; color: var(--muted); }

/* ============================================================
   Download CTA
   ============================================================ */
.download {
  position: relative;
  background: var(--grad-download);
  overflow: hidden;
  color: rgba(255, 255, 255, 0.85);
}

.download::before,
.download::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.download::before {
  width: 480px;
  height: 480px;
  left: -160px;
  top: -160px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.5), transparent 62%);
}

.download::after {
  width: 520px;
  height: 520px;
  right: -180px;
  bottom: -200px;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.45), transparent 62%);
}

.download-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 0.9fr 1.2fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.download-content {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
}

.download-eyebrow {
  display: inline-block;
  padding: 7px 15px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #FCD34D;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.download h2 {
  color: var(--white);
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  margin-bottom: 16px;
}

.download p { font-size: 1.07rem; color: rgba(255, 255, 255, 0.75); margin-bottom: 30px; }

.download .badge-row { justify-content: center; margin-bottom: 34px; }

.download-phones {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 18px;
}

.download-phone {
  width: 150px;
  padding: 8px;
  border-radius: 26px;
  background: linear-gradient(165deg, #3A356B, #14122E);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-lg);
  transform: rotate(-3deg);
}

.download-phone:last-child { transform: rotate(3deg) translateY(16px); }

.download-phone img {
  border-radius: 19px;
  aspect-ratio: 388 / 800;
  object-fit: cover;
}

/* ——— Newsletter form (in CTA) ——— */
.newsletter {
  max-width: 460px;
  margin: 0 auto;
  text-align: left;
}

.newsletter-title {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--white);
  font-family: var(--font-head);
  margin-bottom: 4px;
}

.newsletter-sub { font-size: 0.9rem; color: rgba(255, 255, 255, 0.65); margin-bottom: 14px; }

.form-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.form-group { flex: 1 1 220px; }

.form-input {
  width: 100%;
  padding: 13px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  outline: none;
  transition: border-color .2s ease, background .2s ease;
}

.form-input::placeholder { color: rgba(255, 255, 255, 0.5); }

.form-input:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.12);
}

.form-ok, .form-err {
  display: none;
  margin-top: 12px;
  font-size: 0.9rem;
  font-weight: 500;
}

.form-ok.show, .form-err.show { display: block; }

.form-ok { color: #5EEAD4; }
.form-err { color: #FCA5A5; }

/* ============================================================
   Page hero (404 + sub-pages)
   ============================================================ */
.page-hero {
  position: relative;
  padding: 88px 0;
  text-align: center;
  color: var(--white);
  background-color: var(--indigo-deep);
  background-image:
    linear-gradient(180deg, rgba(20, 18, 50, 0.9), rgba(30, 27, 75, 0.85)),
    url("../img/header-bg.jpg");
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 12px;
}

.page-hero p { color: rgba(255, 255, 255, 0.72); font-size: 1.08rem; }

/* ============================================================
   404
   ============================================================ */
.notfound {
  padding: 96px 0;
  background: var(--light);
  text-align: center;
}

.notfound-code {
  font-family: var(--font-head);
  font-size: clamp(5rem, 16vw, 9rem);
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(120deg, #7C3AED, #0D9488);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin-bottom: 18px;
}

.notfound h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 14px; }

.notfound p { color: var(--muted); max-width: 460px; margin: 0 auto 32px; }

.notfound .btn { justify-content: center; }

/* ============================================================
   Reveal
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .65s ease, transform .65s ease;
}

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

.features-grid .feature-card.reveal:nth-child(2) { transition-delay: .08s; }
.features-grid .feature-card.reveal:nth-child(3) { transition-delay: .16s; }
.features-grid .feature-card.reveal:nth-child(4) { transition-delay: .24s; }
.features-grid .feature-card.reveal:nth-child(5) { transition-delay: .32s; }

.testimonials-grid .testimonial-card.reveal:nth-child(2) { transition-delay: .08s; }
.testimonials-grid .testimonial-card.reveal:nth-child(3) { transition-delay: .16s; }
.testimonials-grid .testimonial-card.reveal:nth-child(4) { transition-delay: .24s; }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--indigo-deep);
  color: rgba(255, 255, 255, 0.72);
  padding: 72px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 52px;
}

.footer-brand img.footer-logo-img {
  width: 132px;
  height: auto;
  margin-bottom: 16px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
}

.footer-brand p { font-size: 0.95rem; max-width: 300px; margin-bottom: 20px; }

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

.footer-social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.8);
  transition: background .2s ease, transform .2s ease, color .2s ease;
}

.footer-social a:hover {
  background: var(--grad-brand);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-social svg { width: 18px; height: 18px; }

.footer h4 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 18px;
}

.footer-links li { margin-bottom: 11px; }

.footer-links a {
  font-size: 0.94rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color .2s ease;
}

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

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

.contact-item { display: flex; gap: 12px; align-items: flex-start; }

.contact-item-icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(124, 58, 237, 0.2);
  color: #C4B5FD;
  font-size: 1rem;
}

.contact-item-label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.5);
}

.contact-item-text {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.4;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.88rem;
}

.footer-bottom a { color: rgba(255, 255, 255, 0.6); }
.footer-bottom a:hover { color: var(--white); }

/* ============================================================
   Back to top
   ============================================================ */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 150;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  font-size: 1.2rem;
  color: var(--white);
  background: var(--grad-brand);
  box-shadow: var(--shadow-glow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: none;
}

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

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1100px) {
  .download-grid { grid-template-columns: 1fr; }
  .download-phones { display: none; }
}

@media (max-width: 980px) {
  :root { --header-h: 66px; }

  .nav-toggle { display: flex; }

  .nav-links {
    position: absolute;
    top: calc(var(--header-h) - 2px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px 24px 22px;
    background: rgba(20, 18, 50, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-link { padding: 13px 16px; border-radius: 12px; }
  .nav-cta { margin-left: 0; text-align: center; margin-top: 6px; }

  .hero-grid { grid-template-columns: 1fr; gap: 64px; text-align: center; padding: 72px 0 56px; }

  .hero-lead { margin-inline: auto; }
  .hero-actions, .badge-row { justify-content: center; }
  .hero-rating { justify-content: center; }
  .hero-mockup-wrap { order: -1; }

  .float-chip--1 { left: 2%; }
  .float-chip--2 { right: 2%; }

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

  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card, .feature-card--wide { grid-column: span 1; }
  .feature-card--wide { grid-template-columns: 1fr; }

  .why-grid { grid-template-columns: 1fr; gap: 56px; }
  .why-visual { max-width: 560px; margin-inline: auto; width: 100%; }

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

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

@media (max-width: 720px) {
  .section { padding: 72px 0; }

  .hero h1 { font-size: clamp(2rem, 8vw, 2.6rem); }
  .hero-actions .btn { width: 100%; }
  .hero-badges .badge { flex: 1 1 200px; justify-content: center; }

  .float-chip { padding: 10px 13px; }
  .float-chip--1 { top: 6%; left: 0; }
  .float-chip--2 { bottom: 26%; right: 0; }
  .float-chip--3 { display: none; }

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

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

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

  .footer-bottom { justify-content: center; text-align: center; }

  .download-phone { display: none; }
  .why-phone { right: -4%; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .float-chip { animation: none; }
}
