/* ============================================================
   BabyTime Landing Page — Design System
   ============================================================ */

:root {
  --primary: #7C6CE0;
  --primary-light: #A89BF0;
  --primary-dark: #5B4BC0;
  --accent: #F4A7BB;
  --accent-light: #FFD1DC;
  --bg: #FAFBFE;
  --bg-card: #FFFFFF;
  --text: #2D2D3A;
  --text-muted: #6B6B80;
  --text-light: #9999AA;
  --border: #E8E8F0;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow: 0 4px 24px rgba(124, 108, 224, 0.08);
  --shadow-lg: 0 12px 48px rgba(124, 108, 224, 0.15);
  --shadow-xl: 0 24px 80px rgba(124, 108, 224, 0.22);
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   App Install Banner
   ============================================================ */
.app-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: white;
  border-top: 1px solid var(--border);
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 201;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
}
.app-banner-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
}
.app-banner-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.app-banner-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.app-banner-desc {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-banner-btn {
  padding: 6px 16px;
  background: var(--primary);
  color: white;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.app-banner-btn:hover {
  background: var(--primary-dark);
}
.app-banner-close {
  background: none;
  border: none;
  font-size: 22px;
  color: var(--text-light);
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  flex-shrink: 0;
}
.app-banner-close:hover {
  color: var(--text);
}
@media (min-width: 769px) {
  .app-banner { display: none; }
}

/* ============================================================
   Header
   ============================================================ */
.nav-toggle { display: none; }

.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(250, 251, 254, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.header .container {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 8px;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
  margin-right: auto;
}
.logo img { width: 34px; height: 34px; border-radius: 8px; }
.logo span { font-size: 19px; font-weight: 700; }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav a:hover { color: var(--primary); background: rgba(124,108,224,0.06); }

.lang-switcher-wrap { flex-shrink: 0; margin-left: 8px; }
.lang-switcher-wrap select {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 5px 8px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  outline: none;
}

/* Hamburger (CSS-only) */
.nav-toggle-label {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle-label span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}
.nav-toggle:checked ~ .header .nav-toggle-label span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle:checked ~ .header .nav-toggle-label span:nth-child(2) { opacity: 0; }
.nav-toggle:checked ~ .header .nav-toggle-label span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
/* Mobile nav animation handled in responsive section */

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn-sm { padding: 8px 18px; font-size: 14px; }
.btn-lg { padding: 16px 36px; font-size: 17px; }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(124,108,224,0.3);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(124,108,224,0.4);
}
.btn-white { background: #fff; color: var(--primary); font-weight: 700; }
.btn-white:hover {
  background: #f0f0ff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(124,108,224,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(244,167,187,0.09) 0%, transparent 70%);
  pointer-events: none;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-content { text-align: left; }

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 14px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
.badge {
  display: inline-block;
  padding: 6px 16px;
  background: linear-gradient(
    90deg,
    rgba(124,108,224,0.1) 0%,
    rgba(244,167,187,0.2) 40%,
    rgba(124,108,224,0.1) 60%,
    rgba(244,167,187,0.14) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
  color: var(--primary-dark);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
  border: 1px solid rgba(124,108,224,0.18);
}

.hero h1 {
  font-size: clamp(34px, 4.5vw, 54px);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}
.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 32px;
  max-width: 460px;
}
.hero-cta-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.hero-trial-note { font-size: 13px; color: var(--text-light); }

/* Hero phone mockup */
.hero-phone {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.hero-phone::before {
  content: '';
  position: absolute;
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(124,108,224,0.1) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-phone-img {
  width: 265px;
  height: auto;
  border-radius: 36px;
  box-shadow: var(--shadow-xl);
  position: relative;
  z-index: 1;
  transition: transform 0.5s ease;
}
.hero-phone:hover .hero-phone-img {
  transform: rotate(-2deg) scale(1.03) translateY(-6px);
}

/* ============================================================
   Stats Bar
   ============================================================ */
.stats-bar {
  background: white;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 36px 0;
}
.stats-bar .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  text-align: center;
}
.stat-item { padding: 4px 0; }
.stat-value { font-size: 26px; font-weight: 800; color: var(--primary); line-height: 1.2; }
.stat-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* ============================================================
   Screenshots Carousel
   ============================================================ */
.screenshots { padding: 80px 0 56px; overflow: hidden; }
.screenshots .section-header {
  text-align: center;
  margin-bottom: 40px;
  padding: 0 24px;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

.screenshots-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 16px 48px 32px;
}
.screenshots-track::-webkit-scrollbar { display: none; }

.screenshot-item {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: 200px;
  text-align: center;
}
.screenshot-item picture { display: block; }
.screenshot-item img {
  width: 200px;
  border-radius: 22px;
  box-shadow: 0 12px 40px rgba(124,108,224,0.18);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.screenshot-item:hover img {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(124,108,224,0.28);
}
.screenshot-caption {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 12px;
}
.screenshots-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
  padding: 0 24px;
}
.screenshots-nav button {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: white;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  color: var(--text);
}
.screenshots-nav button:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: scale(1.1);
}

/* ============================================================
   Section Headers
   ============================================================ */
.section-title {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.section-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ============================================================
   Features
   ============================================================ */
.features { padding: 80px 0; }
.features .section-header { text-align: center; margin-bottom: 52px; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}
.feature-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
  flex-shrink: 0;
}
.feature-icon.timer   { background: rgba(124,108,224,0.1); }
.feature-icon.sleep   { background: rgba(100,149,237,0.1); }
.feature-icon.growth  { background: rgba(76,175,80,0.1); }
.feature-icon.diaper  { background: rgba(255,152,0,0.1); }
.feature-icon.bath    { background: rgba(0,188,212,0.1); }
.feature-icon.history { background: rgba(156,39,176,0.1); }
.feature-icon.watch   { background: rgba(96,96,96,0.1); }
.feature-icon.night   { background: rgba(30,30,60,0.1); }
.feature-icon.family  { background: rgba(244,167,187,0.18); }
.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.feature-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ============================================================
   Testimonials
   ============================================================ */
.testimonials {
  padding: 80px 0;
  background: white;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.testimonials .section-header { text-align: center; margin-bottom: 48px; }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.testimonial-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.3s ease;
}
.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--primary-light);
}
.testimonial-stars { color: #FFB800; font-size: 15px; letter-spacing: 1px; margin-bottom: 14px; }
.testimonial-text {
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}
.author-info { display: flex; flex-direction: column; }
.author-name { font-weight: 700; font-size: 14px; }
.author-role { font-size: 13px; color: var(--text-muted); }

/* ============================================================
   Premium CTA
   ============================================================ */
.premium { padding: 80px 0; }
.premium-box {
  background: linear-gradient(135deg, var(--primary) 0%, #9B7FEA 50%, #b88fe8 100%);
  border-radius: var(--radius-lg);
  padding: 72px 64px;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.premium-box::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 280px; height: 280px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
  pointer-events: none;
}
.premium-box::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -40px;
  width: 240px; height: 240px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
  pointer-events: none;
}
.premium-box h2 {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 800;
  margin-bottom: 14px;
  position: relative; z-index: 1;
}
.premium-box > p {
  font-size: 17px;
  opacity: 0.9;
  max-width: 500px;
  margin: 0 auto 32px;
  position: relative; z-index: 1;
  line-height: 1.65;
}
.premium-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
  position: relative; z-index: 1;
}
.tag {
  padding: 7px 16px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
}
.premium-cta-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative; z-index: 1;
}
.premium-note { font-size: 13px; opacity: 0.75; }

/* ============================================================
   Footer
   ============================================================ */
.footer { padding: 56px 0 32px; border-top: 1px solid var(--border); }
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 40px;
}
.footer-brand p { color: var(--text-muted); font-size: 14px; margin-top: 10px; max-width: 280px; line-height: 1.6; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.footer-links a { text-decoration: none; color: var(--text-muted); font-size: 14px; transition: color 0.2s; }
.footer-links a:hover { color: var(--primary); }
.footer-bottom { text-align: center; padding-top: 24px; border-top: 1px solid var(--border); color: var(--text-light); font-size: 13px; }

/* ============================================================
   Legal pages
   ============================================================ */
.legal { padding: 120px 24px 80px; max-width: 800px; margin: 0 auto; }
.legal h1 { font-size: 32px; font-weight: 700; margin-bottom: 8px; }
.legal .updated { color: var(--text-light); font-size: 14px; margin-bottom: 32px; }
.legal h2 { font-size: 22px; font-weight: 700; margin-top: 32px; margin-bottom: 12px; }
.legal p, .legal li { font-size: 15px; color: var(--text-muted); line-height: 1.7; margin-bottom: 12px; }
.legal ul { padding-left: 24px; margin-bottom: 16px; }
.legal a { color: var(--primary); }

/* ============================================================
   FAQ Styles
   ============================================================ */
.faq-list {
  margin-top: 32px;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  background: var(--bg-card);
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.faq-item[open] {
  border-color: var(--primary-light);
  box-shadow: var(--shadow);
}
.faq-item summary {
  padding: 18px 24px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 20px;
  font-weight: 300;
  color: var(--primary);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after {
  content: '\2212';
}
.faq-item summary:hover { color: var(--primary); }
.faq-item p {
  padding: 0 24px 18px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================================
   Support Contact
   ============================================================ */
.support-contact {
  text-align: center;
  margin-top: 48px;
  padding: 32px;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.support-contact p {
  margin-bottom: 16px;
  color: var(--text-muted);
}

/* ============================================================
   Deep-link Pages (Invite, Referral)
   ============================================================ */
.deeplink-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
}
.deeplink-page .container {
  max-width: 500px;
  text-align: center;
}
.deeplink-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 48px 32px;
  box-shadow: var(--shadow-lg);
}
.deeplink-emoji {
  font-size: 48px;
  margin-bottom: 16px;
}
.deeplink-card h1 {
  font-size: 24px;
}
.deeplink-desc {
  color: var(--text-muted);
  margin-bottom: 24px;
}
.deeplink-code-section {
  display: none;
}
.deeplink-code-label {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.deeplink-code {
  font-family: 'SF Mono', 'Courier New', monospace;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--primary);
  padding: 16px;
  border: 2px dashed var(--primary-light);
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
}
.deeplink-card .btn {
  width: 100%;
  justify-content: center;
  margin-bottom: 12px;
}
.deeplink-hint {
  font-size: 13px;
  color: var(--text-light);
}
.deeplink-invalid {
  display: none;
  color: #e74c3c;
  margin-top: 16px;
}

/* ============================================================
   Entrance Animations
   ============================================================ */
.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.stagger-children .fade-in-up:nth-child(2) { transition-delay: 0.1s; }
.stagger-children .fade-in-up:nth-child(3) { transition-delay: 0.2s; }
.stagger-children .fade-in-up:nth-child(4) { transition-delay: 0.15s; }
.stagger-children .fade-in-up:nth-child(5) { transition-delay: 0.2s; }
.stagger-children .fade-in-up:nth-child(6) { transition-delay: 0.25s; }
.stagger-children .fade-in-up:nth-child(7) { transition-delay: 0.3s; }
.stagger-children .fade-in-up:nth-child(8) { transition-delay: 0.35s; }
.stagger-children .fade-in-up:nth-child(9) { transition-delay: 0.4s; }

/* ============================================================
   Carousel Pagination Dots
   ============================================================ */
.screenshots-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.screenshots-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.2s, transform 0.2s;
}
.screenshots-dots .dot.active {
  background: var(--primary);
  transform: scale(1.3);
}

/* ============================================================
   Feature Card Hierarchy
   ============================================================ */
.feature-card.featured {
  border-top: 3px solid var(--primary);
  padding-top: 25px;
}
.feature-card.featured .feature-icon {
  width: 58px;
  height: 58px;
  font-size: 28px;
}

/* ============================================================
   Testimonial Card Differentiation
   ============================================================ */
.testimonial-card:nth-child(1) {
  border-top: 3px solid var(--primary);
}
.testimonial-card:nth-child(2) {
  border-top: 3px solid var(--accent);
}
.testimonial-card:nth-child(3) {
  border-top: 3px solid #6495ED;
}
.testimonial-card:nth-child(1) .author-avatar {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
}
.testimonial-card:nth-child(2) .author-avatar {
  background: linear-gradient(135deg, var(--accent), #FF8FAA);
}
.testimonial-card:nth-child(3) .author-avatar {
  background: linear-gradient(135deg, #6495ED, #87CEEB);
}

/* ============================================================
   Premium Badge
   ============================================================ */
.premium-badge {
  display: inline-block;
  padding: 6px 18px;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

/* ============================================================
   Utility Classes
   ============================================================ */
.text-muted { color: var(--text-muted); }
.text-light { color: var(--text-light); }

/* ============================================================
   Cookie Banner
   ============================================================ */
.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 24px;
  background: rgba(45, 45, 58, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: rgba(255,255,255,0.9);
  font-size: 13px;
  line-height: 1.5;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 300;
}
.cookie-banner p {
  margin: 0;
  flex: 1;
  max-width: 700px;
}
.cookie-banner a {
  color: var(--primary-light);
  text-decoration: underline;
}
.cookie-btn {
  padding: 8px 24px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
  flex-shrink: 0;
}
.cookie-btn:hover {
  background: var(--primary-dark);
}
@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    text-align: center;
    gap: 12px;
    padding: 16px 20px;
  }
}

/* ============================================================
   Back to Top Button
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  border: none;
  font-size: 20px;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.2s;
  z-index: 99;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  transform: scale(1.1);
  background: var(--primary-dark);
}

/* ============================================================
   Sticky Mobile CTA
   ============================================================ */
.mobile-sticky-cta {
  display: none;
}

/* ============================================================
   Responsive — Tablet (≤ 900px)
   ============================================================ */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-bar .container { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .premium-box { padding: 56px 40px; }
  .hero .container { gap: 40px; }
  .hero-phone-img { width: 220px; }
}

/* ============================================================
   Responsive — Mobile (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
  /* Hamburger — animated slide */
  .nav-toggle-label { display: flex; }
  .nav {
    display: flex;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 24px;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    z-index: 199;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
  }
  .nav-toggle:checked ~ .header .nav {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav a { padding: 12px 16px; border-radius: 10px; font-size: 16px; }

  /* Hero */
  .hero { padding: 100px 0 56px; }
  .hero .container { grid-template-columns: 1fr; text-align: center; gap: 0; }
  .hero-chips { justify-content: center; }
  .hero-description { margin-left: auto; margin-right: auto; }
  .hero-cta-row { align-items: center; }
  .hero-phone {
    display: flex;
    order: -1;
    margin-bottom: 24px;
  }
  .hero-phone::before { display: none; }
  .hero-phone-img {
    width: 160px;
    border-radius: 24px;
  }

  /* Stats — separators for 2x2 grid */
  .stats-bar .container { grid-template-columns: repeat(2, 1fr); }
  .stat-item {
    position: relative;
    padding: 12px 0;
  }
  .stat-item:nth-child(odd)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background: var(--border);
  }
  .stat-item:nth-child(-n+2)::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    height: 1px;
    background: var(--border);
  }

  /* Screenshots — larger on mobile */
  .screenshots-track { padding: 16px 16px 24px; gap: 14px; }
  .screenshot-item { width: 190px; }
  .screenshot-item img { width: 190px; }

  /* Features: 1 column */
  .features-grid { grid-template-columns: 1fr; }

  /* Testimonials: 1 column */
  .testimonials-grid { grid-template-columns: 1fr; }

  /* Premium */
  .premium-box { padding: 48px 24px; border-radius: var(--radius); }

  /* Footer — 2-column grid */
  .footer-content { flex-direction: column; gap: 24px; }
  .footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
  }
  .footer-links a { padding: 8px 0; }

  /* Language switcher — larger touch target */
  .lang-switcher-wrap select {
    padding: 8px 12px;
    font-size: 15px;
    min-height: 44px;
  }

  /* Back to top — above sticky CTA */
  .back-to-top { bottom: 76px; }

  /* Sticky mobile CTA */
  .mobile-sticky-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 24px;
    background: rgba(250, 251, 254, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    z-index: 100;
    text-align: center;
  }
  .mobile-sticky-cta.visible {
    display: block;
  }
  .mobile-sticky-cta .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================================
   Responsive — Small (≤ 480px)
   ============================================================ */
@media (max-width: 480px) {
  .btn-lg { padding: 14px 28px; font-size: 16px; }
  .hero h1 { font-size: 30px; }
  .stat-value { font-size: 22px; }
  .screenshots-track { padding: 12px 12px 20px; }
  .screenshot-item { width: 180px; }
  .screenshot-item img { width: 180px; }
  .premium-tags { gap: 8px; }
  .tag { font-size: 13px; padding: 6px 12px; }
}

/* ============================================================
   Focus & Active States (Accessibility)
   ============================================================ */
a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.btn:focus-visible {
  outline: 3px solid var(--primary-light);
  outline-offset: 2px;
}
.btn:active {
  transform: translateY(0) scale(0.98);
}

/* ============================================================
   Reduced Motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .fade-in-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
