/* ============================================================
   SureMILE — Ultra-Modern Dark Components (components.css)
   Glassmorphism, gradient borders, neon glows, micro-animations
   ============================================================ */

/* ── Logo ──────────────────────────────────────────────────── */
.logo {
  display: inline-flex;
  align-items: baseline;
  font-style: italic;
  font-weight: 700;
  font-size: 1.5rem;
  text-decoration: none;
  transition: transform var(--transition-base);
}
.logo:hover { transform: scale(1.03); }
.logo-s { color: #3B82F6; font-weight: 800; text-shadow: 0 0 20px rgba(59, 130, 246, 0.5); }
.logo-ure { color: #64748B; font-weight: 300; }
.logo-miles { color: #F59E0B; font-weight: 800; text-shadow: 0 0 20px rgba(245, 158, 11, 0.4); }

/* ── Nav — Frosted Glass ───────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(3, 7, 18, 0.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-base);
}

.nav.scrolled {
  background: rgba(3, 7, 18, 0.92);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
  border-bottom-color: var(--border-glass);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-links {
  display: flex;
  gap: var(--space-xl);
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
  transition: width var(--transition-base);
}

.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--primary); }
.nav-links a.active::after { width: 100%; }

.nav-right {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Language switcher */
.lang-switcher { position: relative; }

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 500;
  background: var(--bg-glass);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-btn:hover {
  border-color: var(--border-glow);
  color: var(--text-primary);
  background: var(--bg-glass-hover);
}

.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.03);
  min-width: 140px;
  z-index: 100;
  overflow: hidden;
  backdrop-filter: blur(20px);
}

.lang-dropdown.open { display: block; }

.lang-option {
  display: block;
  width: 100%;
  padding: 10px 16px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.875rem;
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-fast);
}

.lang-option:hover { background: var(--bg-card); color: var(--text-primary); }
.lang-option.active { color: var(--primary); background: rgba(59, 130, 246, 0.08); }

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* Mobile menu */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(3, 7, 18, 0.97);
  backdrop-filter: blur(30px);
  padding: var(--space-xl);
  z-index: 999;
  flex-direction: column;
  gap: var(--space-lg);
}

.nav-mobile.open { display: flex; }

.nav-mobile a {
  font-size: 1.125rem;
  color: var(--text-secondary);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border-subtle);
  transition: color var(--transition-fast);
}

.nav-mobile a:hover { color: var(--primary); }

@media (max-width: 768px) {
  .nav-links, .lang-switcher { display: none; }
  .nav-toggle { display: flex; }
}

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  background: var(--bg-base);
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-3xl) 0 var(--space-lg);
  position: relative;
}

/* Subtle gradient line at top of footer */
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.3), rgba(6, 182, 212, 0.2), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-brand p {
  margin-top: var(--space-sm);
  font-size: 0.9375rem;
  color: var(--text-muted);
  max-width: 300px;
}

.footer-col h4 {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.footer-col a {
  display: block;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  padding: 4px 0;
  transition: color var(--transition-fast);
}

.footer-col a:hover { color: var(--primary); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-social {
  display: flex;
  gap: var(--space-md);
}

.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.875rem;
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: var(--bg-elevated);
  border-color: var(--border-glow);
  color: var(--primary);
  box-shadow: var(--shadow-glow-blue);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }
  .footer-bottom { flex-direction: column; gap: var(--space-md); }
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-sm { padding: 8px 16px; font-size: 0.8125rem; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }

/* Primary — Gradient with glow */
.btn-primary {
  background: linear-gradient(135deg, #3B82F6, #2563EB);
  color: white;
  box-shadow: 0 2px 12px var(--primary-glow);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #60A5FA, #3B82F6);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px var(--primary-glow), 0 8px 40px rgba(59, 130, 246, 0.15);
}

.btn-primary span { position: relative; z-index: 1; }

/* Outline — Ghost glass */
.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-glass);
}

.btn-outline:hover {
  border-color: var(--border-glow);
  color: var(--primary);
  background: rgba(59, 130, 246, 0.05);
  transform: translateY(-1px);
}

/* White — For dark sections */
.btn-white {
  background: white;
  color: #1E40AF;
  font-weight: 700;
}

.btn-white:hover {
  background: #F1F5F9;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.15);
}

/* ── App Store Badges — Premium pill buttons ───────────────── */
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition-base);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.store-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), transparent);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.store-btn:hover::before { opacity: 1; }

.store-btn:hover {
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 255, 255, 0.04);
}

.store-btn svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.store-btn-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  position: relative;
  z-index: 1;
}

.store-btn-label {
  font-size: 0.625rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.02em;
  line-height: 1.2;
  font-weight: 400;
}

.store-btn-name {
  font-size: 1.0625rem;
  font-weight: 600;
  color: white;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

/* Apple variant — white border accent */
.store-btn--apple:hover {
  border-color: rgba(255, 255, 255, 0.35);
}

/* Android variant — green accent */
.store-btn--android {
  opacity: 0.7;
}

.store-btn--android:hover {
  opacity: 1;
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3), 0 0 15px rgba(16, 185, 129, 0.08);
}

.store-btn--android .store-btn-label {
  color: rgba(255, 255, 255, 0.5);
}

/* ── Cards — Glassmorphism ─────────────────────────────────── */
.card {
  background: rgba(15, 23, 42, 0.5);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(10px);
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

/* Subtle gradient line on top */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.3), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow-blue);
  transform: translateY(-6px);
  background: rgba(15, 23, 42, 0.7);
}

.card:hover::before { opacity: 1; }

/* Card icon with glow background */
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: var(--space-md);
  transition: all var(--transition-base);
}

.card-icon--blue {
  background: rgba(59, 130, 246, 0.12);
  color: #60A5FA;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.08);
}

.card-icon--amber {
  background: rgba(245, 158, 11, 0.12);
  color: #FBBF24;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.08);
}

.card-icon--green {
  background: rgba(16, 185, 129, 0.12);
  color: #34D399;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.08);
}

.card:hover .card-icon--blue { box-shadow: 0 0 30px rgba(59, 130, 246, 0.2); }
.card:hover .card-icon--amber { box-shadow: 0 0 30px rgba(245, 158, 11, 0.2); }
.card:hover .card-icon--green { box-shadow: 0 0 30px rgba(16, 185, 129, 0.2); }

.card h3 {
  font-size: 1.125rem;
  margin-bottom: var(--space-sm);
}

.card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ── Stats ─────────────────────────────────────────────────── */
.stats {
  display: flex;
  justify-content: center;
  gap: var(--space-3xl);
  margin-top: var(--space-xl);
}

.stat { text-align: center; }

.stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #60A5FA, #38BDF8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: var(--space-xs);
}

@media (max-width: 768px) { .stats { gap: var(--space-xl); } }

/* ── Stepper (How It Works) ────────────────────────────────── */
.stepper {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.step {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-glass);
  backdrop-filter: blur(8px);
  transition: all var(--transition-base);
}

.step:hover {
  border-color: var(--border-glow);
  background: var(--bg-glass-hover);
  box-shadow: var(--shadow-glow-blue);
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3B82F6, #2563EB);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.125rem;
  flex-shrink: 0;
  box-shadow: 0 0 20px var(--primary-glow);
}

.step h3 { margin-bottom: 4px; }
.step p { color: var(--text-muted); font-size: 0.9375rem; }

/* ── Accordion (FAQ) ───────────────────────────────────────── */
.accordion {
  max-width: 700px;
  margin: 0 auto;
}

.accordion-item {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
  overflow: hidden;
  background: var(--bg-glass);
  backdrop-filter: blur(8px);
  transition: all var(--transition-base);
}

.accordion-item:hover { border-color: var(--border-glass); }
.accordion-item.open { border-color: var(--border-glow); box-shadow: var(--shadow-glow-blue); }

.accordion-btn {
  width: 100%;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: color var(--transition-fast);
}

.accordion-btn:hover { color: var(--primary); }

.accordion-icon {
  font-size: 1.25rem;
  color: var(--text-muted);
  transition: transform var(--transition-base);
}

.accordion-item.open .accordion-icon { transform: rotate(45deg); color: var(--primary); }

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-smooth);
}

.accordion-content-inner {
  padding: 0 20px 18px;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ── Badges ────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge--blue {
  background: rgba(59, 130, 246, 0.15);
  color: #60A5FA;
}

.badge--amber {
  background: rgba(245, 158, 11, 0.15);
  color: #FBBF24;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.1);
}
