/* ============================================================
   TENDHI — DESIGN SYSTEM & LANDING PAGE STYLES
   ============================================================ */

/* ---------- 1. GOOGLE FONTS IMPORT ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,300;0,14..32,400;0,14..32,500;0,14..32,600;0,14..32,700;0,14..32,800;0,14..32,900;1,14..32,400&display=swap');

/* ---------- 2. CSS CUSTOM PROPERTIES ---------- */
:root {
  /* Brand colors */
  --pink:    #FF2D7A;
  --purple:  #7B2DFF;
  --blue:    #00B4FF;
  --teal:    #00E6B8;
  --dark:    #0F1115;

  /* Neutral scale */
  --neutral-900: #1A1C22;
  --neutral-800: #2C2F36;
  --neutral-600: #5A5F6B;
  --neutral-200: #E5E7EB;
  --white:        #FFFFFF;

  /* Gradients */
  --gradient-main:      linear-gradient(90deg, #FF2D7A 0%, #7B2DFF 33%, #00B4FF 66%, #00E6B8 100%);
  --gradient-hero:      linear-gradient(135deg, #FF2D7A 0%, #7B2DFF 50%, #00B4FF 100%);
  --gradient-card:      linear-gradient(135deg, rgba(123,45,255,.15) 0%, rgba(0,180,255,.08) 100%);
  --gradient-pink-purple: linear-gradient(135deg, #FF2D7A, #7B2DFF);
  --gradient-blue-teal:   linear-gradient(135deg, #00B4FF, #00E6B8);

  /* Typography */
  --font:      'Inter', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --section-gap: clamp(80px, 10vw, 140px);
  --container:   1200px;

  /* Border radii */
  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-xl:  32px;
  --radius-full: 999px;

  /* Shadows */
  --shadow-glow-pink:   0 0 40px rgba(255,45,122,.35);
  --shadow-glow-purple: 0 0 40px rgba(123,45,255,.35);
  --shadow-glow-blue:   0 0 40px rgba(0,180,255,.35);
  --shadow-glow-teal:   0 0 40px rgba(0,230,184,.35);
  --shadow-card:        0 8px 40px rgba(0,0,0,.45);

  /* Transitions */
  --ease-out-quart: cubic-bezier(.25,.46,.45,.94);
  --ease-spring:    cubic-bezier(.34,1.56,.64,1);
}

/* ---------- 3. RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: dark;
}

body {
  font-family: var(--font);
  background: var(--dark);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { border: none; cursor: pointer; font-family: var(--font); }
ul { list-style: none; }

/* ---------- 4. TYPOGRAPHY SCALE ---------- */
.t-display {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.t-headline {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.t-title {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
  line-height: 1.25;
}
.t-body {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  font-weight: 400;
  line-height: 1.7;
}
.t-small {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
}
.t-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- 5. UTILITY CLASSES ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px);
}
.gradient-text {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-text-hero {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(123,45,255,.12);
  border: 1px solid rgba(123,45,255,.3);
  border-radius: var(--radius-full);
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

/* ---------- 6. NAVIGATION ---------- */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 clamp(16px, 4vw, 48px);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background .4s var(--ease-out-quart),
              backdrop-filter .4s,
              border-color .4s,
              box-shadow .4s;
  border-bottom: 1px solid transparent;
}
#navbar.scrolled {
  background: rgba(15,17,21,.82);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom-color: rgba(255,255,255,.06);
  box-shadow: 0 2px 40px rgba(0,0,0,.4);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo img {
  height: 36px;
  width: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,.7);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color .2s, background .2s;
}
.nav-links a:hover {
  color: var(--white);
  background: rgba(255,255,255,.06);
}
.nav-cta {
  padding: 10px 22px !important;
  background: var(--gradient-pink-purple) !important;
  color: var(--white) !important;
  border-radius: var(--radius-full) !important;
  font-weight: 700 !important;
  font-size: 0.875rem !important;
  transition: transform .2s var(--ease-spring), box-shadow .2s !important;
  box-shadow: var(--shadow-glow-pink);
}
.nav-cta:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 0 60px rgba(255,45,122,.5) !important;
}
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  padding: 8px;
  border-radius: var(--radius-sm);
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 99px;
  transition: transform .3s, opacity .3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 7. HERO SECTION ---------- */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 72px;
}

/* Canvas radar background */
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: .9;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  padding: clamp(60px, 10vh, 100px) 0;
}
.hero-text {}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  background: rgba(0,180,255,.1);
  border: 1px solid rgba(0,180,255,.25);
  border-radius: var(--radius-full);
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 28px;
  animation: fadeInUp .8s var(--ease-out-quart) both;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px;
  background: var(--teal);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.4); }
}
.hero-title {
  font-size: clamp(2.8rem, 6.5vw, 5.5rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
  animation: fadeInUp .8s .1s var(--ease-out-quart) both;
}
.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  color: rgba(255,255,255,.65);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 480px;
  animation: fadeInUp .8s .2s var(--ease-out-quart) both;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp .8s .3s var(--ease-out-quart) both;
}
.hero-phones {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInUp .8s .2s var(--ease-out-quart) both;
}
.hero-phone-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: -20px;
}
.phone-mockup-shell {
  position: relative;
  border-radius: 36px;
  background: #1A1C22;
  border: 2px solid rgba(255,255,255,.12);
  box-shadow: 0 24px 80px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.06);
  overflow: hidden;
  transition: transform .6s var(--ease-out-quart);
}
.phone-screen-canvas {
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;
}
.phone-mockup-shell.main {
  width: clamp(200px, 20vw, 280px);
  z-index: 2;
  transform: translateY(0) rotate(-2deg);
}
.phone-mockup-shell.secondary {
  position: absolute;
  right: -10%;
  bottom: 0;
  width: clamp(160px, 16vw, 220px);
  z-index: 1;
  transform: translateY(20px) rotate(4deg);
  opacity: .85;
  filter: brightness(0.75);
}
.hero-phones:hover .phone-mockup-shell.main { transform: translateY(-10px) rotate(-1deg); }
.hero-phones:hover .phone-mockup-shell.secondary { transform: translateY(12px) rotate(5deg); }

/* Floating badge */
.hero-badge {
  position: absolute;
  top: 10%;
  left: -5%;
  background: rgba(15,17,21,.85);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(0,230,184,.25);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 3;
  animation: float 6s ease-in-out infinite;
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
}
.hero-badge-icon { font-size: 1.5rem; }
.hero-badge-text { font-size: 0.7rem; color: rgba(255,255,255,.6); line-height: 1.3; }
.hero-badge-text strong { display: block; color: var(--teal); font-size: 0.9rem; font-weight: 700; }
@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- 8. BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform .2s var(--ease-spring), box-shadow .2s;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient-pink-purple);
  color: var(--white);
  box-shadow: 0 0 30px rgba(255,45,122,.3);
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 0 60px rgba(255,45,122,.5);
}
.btn-secondary {
  background: rgba(255,255,255,.07);
  color: var(--white);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
}
.btn-secondary:hover {
  background: rgba(255,255,255,.12);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: var(--blue);
  border: 1.5px solid rgba(0,180,255,.4);
}
.btn-ghost:hover {
  background: rgba(0,180,255,.1);
  border-color: var(--blue);
}

/* App store buttons */
.store-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-md);
  color: var(--white);
  transition: background .2s, transform .2s var(--ease-spring), border-color .2s;
  cursor: pointer;
}
.store-badge:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(0,180,255,.4);
  transform: translateY(-2px);
}
.store-badge svg { width: 22px; height: 22px; fill: var(--white); flex-shrink: 0; }
.store-badge-text { text-align: left; }
.store-badge-text small { display: block; font-size: 0.65rem; color: rgba(255,255,255,.5); font-weight: 500; letter-spacing: 0.02em; }
.store-badge-text strong { display: block; font-size: 0.9rem; font-weight: 700; }

/* ---------- 9. STATS BAR ---------- */
#stats {
  padding: 40px 0;
  border-top: 1px solid rgba(255,255,255,.05);
  border-bottom: 1px solid rgba(255,255,255,.05);
  background: rgba(255,255,255,.02);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-item { padding: 16px; }
.stat-number {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,.5);
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* ---------- 10. FEATURES SECTION ---------- */
#features {
  padding: var(--section-gap) 0;
  position: relative;
  overflow: hidden;
}
#features::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(123,45,255,.08) 0%, transparent 70%);
  pointer-events: none;
}
.section-header {
  text-align: center;
  margin-bottom: clamp(48px, 8vw, 80px);
}
.section-header h2 { margin-bottom: 16px; }
.section-header p {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: rgba(255,255,255,.55);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: linear-gradient(135deg, rgba(255,255,255,.04) 0%, rgba(255,255,255,.02) 100%);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-xl);
  padding: clamp(24px, 4vw, 40px);
  position: relative;
  overflow: hidden;
  transition: transform .35s var(--ease-out-quart),
              border-color .35s,
              box-shadow .35s;
  cursor: default;
}
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-card);
  opacity: 0;
  transition: opacity .35s;
  border-radius: inherit;
}
.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0,180,255,.2);
  box-shadow: 0 20px 60px rgba(0,0,0,.4), 0 0 0 1px rgba(0,180,255,.1);
}
.feature-card:hover::before { opacity: 1; }
.feature-card.featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  background: linear-gradient(135deg, rgba(0,180,255,.08) 0%, rgba(0,230,184,.05) 100%);
  border-color: rgba(0,230,184,.15);
}
.feature-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.feature-icon.pink { background: rgba(255,45,122,.15); box-shadow: 0 0 20px rgba(255,45,122,.2); }
.feature-icon.purple { background: rgba(123,45,255,.15); box-shadow: 0 0 20px rgba(123,45,255,.2); }
.feature-icon.blue { background: rgba(0,180,255,.15); box-shadow: 0 0 20px rgba(0,180,255,.2); }
.feature-icon.teal { background: rgba(0,230,184,.15); box-shadow: 0 0 20px rgba(0,230,184,.2); }
.feature-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}
.feature-desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,.55);
  line-height: 1.65;
  position: relative;
  z-index: 1;
}
.feature-phone-preview {
  display: flex;
  justify-content: center;
}
.feature-phone-preview img {
  width: 100%;
  max-width: 200px;
  border-radius: 24px;
  box-shadow: 0 16px 60px rgba(0,0,0,.6);
}

/* ---------- 11. RADAR SECTION ---------- */
#radar {
  padding: var(--section-gap) 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--dark) 0%, #0D0F13 50%, var(--dark) 100%);
}
.radar-section-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 8vw, 100px);
  align-items: center;
}
.radar-demo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
#radar-canvas-section {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  overflow: hidden;
}
.radar-text h2 { margin-bottom: 20px; }
.radar-text p { color: rgba(255,255,255,.6); margin-bottom: 32px; line-height: 1.7; }
.radar-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.radar-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.radar-feature-item .icon {
  width: 38px; height: 38px;
  background: rgba(0,180,255,.12);
  border: 1px solid rgba(0,180,255,.2);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.radar-feature-item .text { font-size: 0.9rem; color: rgba(255,255,255,.6); }
.radar-feature-item .text strong { display: block; color: var(--white); font-size: 0.95rem; margin-bottom: 2px; }

/* ---------- 12. APP SHOWCASE SECTION ---------- */
#showcase {
  padding: var(--section-gap) 0;
  overflow: hidden;
}
.showcase-track-wrap {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  margin-top: 48px;
}
.showcase-track {
  display: flex;
  gap: 20px;
  animation: marquee 35s linear infinite;
  width: max-content;
}
.showcase-track:hover { animation-play-state: paused; }
.showcase-card {
  flex-shrink: 0;
  width: clamp(200px, 18vw, 250px);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--neutral-900);
  border: 1px solid rgba(255,255,255,.07);
  transition: transform .3s;
  position: relative;
}
.showcase-card img {
  width: 100%;
  display: block;
  aspect-ratio: 9/19;
  object-fit: cover;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- 13. HOW IT WORKS ---------- */
#how-it-works {
  padding: var(--section-gap) 0;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 60px;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 40px;
  left: calc(100% / 6);
  right: calc(100% / 6);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,180,255,.3), rgba(123,45,255,.3), transparent);
  pointer-events: none;
}
.step-card {
  text-align: center;
  padding: 36px 24px;
  position: relative;
}
.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 28px;
  font-size: 1.5rem;
  font-weight: 900;
  position: relative;
}
.step-number.n1 { background: rgba(255,45,122,.12); color: var(--pink); box-shadow: 0 0 0 1px rgba(255,45,122,.25), 0 0 40px rgba(255,45,122,.15); }
.step-number.n2 { background: rgba(123,45,255,.12); color: var(--purple); box-shadow: 0 0 0 1px rgba(123,45,255,.25), 0 0 40px rgba(123,45,255,.15); }
.step-number.n3 { background: rgba(0,230,184,.12); color: var(--teal); box-shadow: 0 0 0 1px rgba(0,230,184,.25), 0 0 40px rgba(0,230,184,.15); }
.step-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.step-card p {
  font-size: 0.9rem;
  color: rgba(255,255,255,.55);
  line-height: 1.65;
}

/* ---------- 14. LEVELS / GAMIFICATION ---------- */
#levels {
  padding: var(--section-gap) 0;
  background: linear-gradient(180deg, var(--dark) 0%, rgba(13,15,19,1) 100%);
  overflow: hidden;
  position: relative;
}
#levels::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--gradient-main);
  opacity: 0.3;
}
.levels-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 60px;
}
.level-card {
  background: linear-gradient(135deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  text-align: center;
  transition: transform .3s var(--ease-spring), border-color .3s, box-shadow .3s;
  position: relative;
  overflow: hidden;
}
.level-card:hover {
  transform: translateY(-6px);
}
.level-card.active {
  border-color: rgba(0,230,184,.3);
  background: linear-gradient(135deg, rgba(0,230,184,.08), rgba(0,180,255,.05));
  box-shadow: 0 0 40px rgba(0,230,184,.1);
}
.level-emoji { font-size: 2.2rem; margin-bottom: 12px; display: block; }
.level-name { font-size: 0.9rem; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.level-pts { font-size: 0.75rem; color: rgba(255,255,255,.4); font-weight: 500; }

/* Progress bar in level card */
.level-progress-wrap {
  margin-top: 12px;
  height: 3px;
  background: rgba(255,255,255,.08);
  border-radius: 99px;
  overflow: hidden;
}
.level-progress-bar {
  height: 100%;
  background: var(--gradient-main);
  border-radius: 99px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s var(--ease-out-quart) .5s;
}
.level-card.in-view .level-progress-bar { transform: scaleX(1); }

/* ---------- 15. CTA SECTION ---------- */
#cta {
  padding: var(--section-gap) 0;
  position: relative;
  overflow: hidden;
}
.cta-card {
  position: relative;
  background: linear-gradient(135deg, rgba(255,45,122,.12) 0%, rgba(123,45,255,.12) 50%, rgba(0,180,255,.08) 100%);
  border: 1px solid rgba(255,45,122,.2);
  border-radius: var(--radius-xl);
  padding: clamp(48px, 8vw, 80px);
  text-align: center;
  overflow: hidden;
}
.cta-card::before {
  content: '';
  position: absolute;
  top: -60%; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,45,122,.1) 0%, transparent 70%);
  pointer-events: none;
}
.cta-card h2 { margin-bottom: 16px; }
.cta-card p { color: rgba(255,255,255,.6); margin-bottom: 40px; max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- 16. FOOTER ---------- */
#footer {
  padding: 60px 0 32px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand { max-width: 280px; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-logo img { height: 32px; }
.footer-desc { font-size: 0.875rem; color: rgba(255,255,255,.45); line-height: 1.7; margin-bottom: 24px; }
.footer-social { display: flex; gap: 10px; }
.social-btn {
  width: 38px; height: 38px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: background .2s, border-color .2s, transform .2s;
  cursor: pointer;
}
.social-btn:hover {
  background: rgba(0,180,255,.12);
  border-color: rgba(0,180,255,.3);
  transform: translateY(-2px);
}
.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 0.9rem;
  color: rgba(255,255,255,.55);
  transition: color .2s;
}
.footer-col a:hover { color: var(--blue); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.05);
  font-size: 0.82rem;
  color: rgba(255,255,255,.3);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a {
  color: rgba(255,255,255,.3);
  font-size: 0.82rem;
  transition: color .2s;
}
.footer-bottom-links a:hover { color: var(--white); }

/* ---------- 17. SCROLL REVEAL ANIMATIONS ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s var(--ease-out-quart), transform .7s var(--ease-out-quart);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

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

/* ---------- 18. GRADIENT LINE DIVIDER ---------- */
.gradient-line {
  height: 1px;
  background: var(--gradient-main);
  opacity: 0.2;
  margin: 0;
}

/* ---------- 19. MOBILE NAV DRAWER ---------- */
.mobile-nav {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0; bottom: 0;
  background: rgba(10,12,16,.97);
  backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  transform: translateX(100%);
  transition: transform .4s var(--ease-out-quart);
}
.mobile-nav.open {
  transform: translateX(0);
}
.mobile-nav a {
  font-size: 1.4rem;
  font-weight: 700;
  color: rgba(255,255,255,.7);
  transition: color .2s;
}
.mobile-nav a:hover { color: var(--white); }

/* ---------- 20. PRIVACY PAGE STYLES ---------- */
.privacy-hero {
  padding: 120px 0 60px;
  text-align: center;
  background: linear-gradient(180deg, rgba(123,45,255,.06), transparent);
}
.privacy-hero h1 { margin-bottom: 16px; }
.privacy-hero p { color: rgba(255,255,255,.5); font-size: 0.95rem; }

.privacy-content {
  padding: 0 0 var(--section-gap);
  max-width: 780px;
  margin: 0 auto;
}
.privacy-content h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 48px 0 16px;
  color: var(--blue);
}
.privacy-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 28px 0 12px;
  color: var(--teal);
}
.privacy-content p {
  color: rgba(255,255,255,.65);
  line-height: 1.8;
  margin-bottom: 16px;
}
.privacy-content a { color: var(--blue); text-decoration: underline; }
.privacy-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}
.privacy-content ul li {
  color: rgba(255,255,255,.65);
  line-height: 1.8;
  margin-bottom: 6px;
}
.privacy-table-wrap { overflow-x: auto; margin: 20px 0; }
.privacy-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.privacy-table th {
  padding: 10px 14px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.privacy-table td {
  padding: 12px 14px;
  color: rgba(255,255,255,.65);
  border-bottom: 1px solid rgba(255,255,255,.05);
  vertical-align: top;
}
.privacy-table tr:hover td { background: rgba(255,255,255,.02); }

/* ---------- 21. RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
  .feature-card.featured { grid-column: span 2; }
  .levels-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .mobile-nav { display: flex; }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-text { order: 2; }
  .hero-phones { order: 1; }
  .hero-subtitle { margin: 0 auto 32px; }
  .hero-actions { justify-content: center; }
  .hero-badge { left: -2%; top: 5%; }
  .phone-mockup-shell.secondary { display: none; }
  .phone-mockup-shell.main { transform: none; width: clamp(180px, 50vw, 260px); }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .feature-card.featured {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }
  .radar-section-content { grid-template-columns: 1fr; }
  #radar-canvas-section { width: 280px; height: 280px; margin: 0 auto; }
  .steps-grid { grid-template-columns: 1fr; }
  .steps-grid::before { display: none; }
  .levels-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .store-badges { justify-content: center; }
}

@media (max-width: 480px) {
  .hero-badge { display: none; }
  .levels-grid { grid-template-columns: 1fr 1fr; }
  .cta-card { padding: 40px 24px; }
}

/* ---------- 22. PREFERS REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
