/* ═══════════════════════════════════════════════════════════
   Dr. Hiral — Ethereal Wellness Design System
   Dark-first with light mode toggle
   UI UX Pro Max: healthcare + wellness + elegant
   Typography: Manrope (heading) + Inter (body)
   ═══════════════════════════════════════════════════════════ */

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

/* ── Design Tokens (Light) ── */
:root {
  --primary: #0d9488;
  --primary-light: #2dd4bf;
  --primary-dark: #0f766e;
  --secondary: #7c3aed;
  --secondary-light: #a78bfa;
  --accent: #6bd8cb;

  --bg: #FAFCFC;
  --bg-surface: #FFFFFF;
  --bg-surface-alt: #f0fdfa;
  --bg-muted: #f1f5f9;

  --text: #051424;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --text-inverse: #FFFFFF;

  --border: #E2E8F0;
  --border-focus: #0d9488;

  --glass: rgba(255, 255, 255, 0.80);
  --glass-border: rgba(0, 0, 0, 0.06);
  --glass-blur: 20px;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.10);
  --shadow-glow: 0 0 20px rgba(13, 148, 136, 0.15);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --font-heading: 'Manrope', 'Figtree', sans-serif;
  --font-body: 'Inter', 'Noto Sans', sans-serif;

  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
}

/* ── Dark Mode Tokens ── */
.dark {
  --primary: #6bd8cb;
  --primary-light: #89f5e7;
  --primary-dark: #0d9488;
  --secondary: #d2bbff;
  --secondary-light: #eaddff;

  --bg: #051424;
  --bg-surface: #122131;
  --bg-surface-alt: #0d1c2d;
  --bg-muted: #1c2b3c;

  --text: #d4e4fa;
  --text-secondary: #bcc9c6;
  --text-muted: #879391;
  --text-inverse: #051424;

  --border: #273647;
  --border-focus: #6bd8cb;

  --glass: rgba(18, 33, 49, 0.80);
  --glass-border: rgba(255, 255, 255, 0.08);

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 20px rgba(107, 216, 203, 0.2);
}

/* ── Base ── */
html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color var(--transition-slow), color var(--transition-slow);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover { color: var(--primary-dark); }

img { max-width: 100%; display: block; }

/* ── Container ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Section ── */
.section {
  padding: 5rem 0;
}

/* ── Navbar ── */
.navbar-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 1.5rem;
  pointer-events: none;
}

.navbar {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1.5rem;
  background: var(--glass);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  pointer-events: auto;
  transition: background var(--transition-slow), border-color var(--transition-slow);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
}
.navbar-brand:hover { color: var(--text); }
.navbar-brand svg { color: var(--primary); }

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}
.navbar-nav a {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  cursor: pointer;
}
.navbar-nav a:hover,
.navbar-nav a.active {
  color: var(--primary);
  background: rgba(8, 145, 178, 0.08);
}

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

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.4;
  position: relative;
  overflow: hidden;
  /* Snappy elastic transition based on design engineering principles (interruptible animations) */
  transition: transform 120ms cubic-bezier(0.2, 0.8, 0.2, 1), 
              background-color 150ms ease, 
              box-shadow 150ms ease, 
              border-color 150ms ease, 
              color 150ms ease;
  user-select: none;
  -webkit-user-select: none;
}
.btn:focus-visible {
  outline: 3px solid var(--border-focus);
  outline-offset: 2px;
}

/* Instant responsive spring feedback on click (Scale down by 4% to feel active/springy) */
.btn:active {
  transform: scale(0.96) !important;
}

.btn-primary {
  background: var(--primary);
  color: var(--text-inverse);
  box-shadow: var(--shadow-xs);
}
.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow-glow);
  color: var(--text-inverse);
  transform: translateY(-1px);
}

/* Gliding reflection sheen on hover */
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.25) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  pointer-events: none;
}
.btn-primary:hover::before {
  left: 150%;
  transition: left 0.65s cubic-bezier(0.3, 1, 0.2, 1);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--primary);
  background: rgba(8, 145, 178, 0.06);
  color: var(--primary);
}

/* Subtler outline sheen swipe */
.btn-outline::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(8, 145, 178, 0) 0%,
    rgba(8, 145, 178, 0.1) 50%,
    rgba(8, 145, 178, 0) 100%
  );
  transform: skewX(-25deg);
  pointer-events: none;
}
.btn-outline:hover::before {
  left: 150%;
  transition: left 0.65s cubic-bezier(0.3, 1, 0.2, 1);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 0.5rem;
  border-radius: var(--radius-full);
}
.btn-ghost:hover {
  background: var(--bg-muted);
  color: var(--text);
}

.btn-lg {
  padding: 0.85rem 2rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
}

/* ── Cards ── */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-base);
  cursor: pointer;
}
.card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(8, 145, 178, 0.2);
  transform: translateY(-2px);
}

/* ── Glass Card ── */
.glass-card {
  background: var(--glass);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* ── Feature Card ── */
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  flex-shrink: 0;
}
.feature-icon svg {
  width: 24px;
  height: 24px;
}

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}
.badge-primary {
  background: rgba(8, 145, 178, 0.1);
  color: var(--primary);
  border: 1px solid rgba(8, 145, 178, 0.2);
}
.badge-secondary {
  background: rgba(5, 150, 105, 0.1);
  color: var(--secondary);
  border: 1px solid rgba(5, 150, 105, 0.2);
}
.badge-success {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}
.badge-warning {
  background: rgba(245, 158, 11, 0.1);
  color: #D97706;
}
.badge-info {
  background: rgba(59, 130, 246, 0.1);
  color: #3B82F6;
}

/* ── Form Elements ── */
.form-group { margin-bottom: 1rem; }
.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.15);
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 5rem;
  position: relative;
  overflow: hidden;
  background-color: var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5rem;
  align-items: center;
  position: relative;
  z-index: 5;
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
    text-align: center;
  }
}

.hero h1 {
  font-size: 3.8rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-family: var(--font-heading);
  color: var(--text);
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-top: 1.25rem;
  line-height: 1.7;
  font-weight: 400;
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .hero-sub {
    font-size: 0.95rem;
  }
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2.25rem;
  flex-wrap: wrap;
}
@media (max-width: 1024px) {
  .hero-actions {
    justify-content: center;
  }
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3.25rem;
  align-items: center;
}
@media (max-width: 1024px) {
  .hero-stats {
    justify-content: center;
  }
}

.hero-stat {
  text-align: left;
}
.hero-stat-val {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}
.hero-stat-lbl {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.hero-stat-bordered {
  border-left: 1px solid var(--border);
  padding-left: 2rem;
  margin-left: 2rem;
}

/* ── Doctor Card ── */
.doctor-card {
  background: rgba(18, 33, 49, 0.04);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.03);
  position: relative;
  transition: all var(--transition-base);
  overflow: hidden;
}

.dark .doctor-card {
  background: rgba(18, 33, 49, 0.45);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.doctor-card:hover {
  transform: translateY(-4px);
  border-color: rgba(107, 216, 203, 0.25);
  box-shadow: 0 12px 40px rgba(107, 216, 203, 0.12);
}

.doctor-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.doctor-avatar {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 4px 20px rgba(107, 216, 203, 0.2);
  transition: all var(--transition-base);
}

.doctor-card:hover .doctor-avatar {
  transform: scale(1.05);
  box-shadow: 0 6px 24px rgba(107, 216, 203, 0.3);
}

.doctor-avatar svg,
.doctor-avatar span {
  font-size: 40px;
  color: white;
}

/* ── Features Grid ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* ── Process Steps ── */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}
.step-card {
  text-align: center;
  padding: 1.5rem;
}
.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(8, 145, 178, 0.1);
  color: var(--primary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  border: 2px solid rgba(8, 145, 178, 0.2);
}

/* ── Testimonials ── */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.test-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-xs);
}
.stars {
  color: #F59E0B;
  font-size: 1rem;
  margin-bottom: 0.75rem;
  display: flex;
  gap: 0.15rem;
}
.test-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  font-style: italic;
  margin-bottom: 1rem;
}
.test-author {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

/* ── CTA Section ── */
.cta-section {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius-xl);
  padding: 4rem 3rem;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}
.cta-section h2 { color: white; }
.cta-section p { color: rgba(255, 255, 255, 0.85); }

/* ── Footer ── */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.footer h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
}
.footer a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.footer a:hover {
  color: var(--primary);
}
.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ── Toast ── */
.toast-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.toast {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  font-size: 0.9rem;
  color: var(--text);
  animation: slideInRight 0.3s ease;
}
.toast-success { border-left: 3px solid var(--secondary); }
.toast-error { border-left: 3px solid #EF4444; }
.toast-warning { border-left: 3px solid #F59E0B; }
.toast-info { border-left: 3px solid var(--primary); }

/* ── Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay.active { display: flex; }
.modal-content {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  padding: 2rem;
  max-width: 500px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}

/* ── Organic Blob Shapes ── */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}
.blob-primary { background: var(--primary); }
.blob-secondary { background: var(--secondary); }

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Utilities ── */
.text-primary { color: var(--primary) !important; }
.text-secondary-c { color: var(--text-secondary) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-center { text-align: center; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }

.highlight {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.w-full { width: 100%; }
.mt-sm { margin-top: 0.5rem; }
.mt-md { margin-top: 1rem; }
.mt-lg { margin-top: 1.5rem; }
.mt-xl { margin-top: 2.5rem; }
.mb-sm { margin-bottom: 0.5rem; }
.mb-md { margin-bottom: 1rem; }
.mb-lg { margin-bottom: 1.5rem; }
.mb-xl { margin-bottom: 2.5rem; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-xs { gap: 0.25rem; }
.gap-sm { gap: 0.5rem; }
.gap-md { gap: 1rem; }
.gap-lg { gap: 1.5rem; }
.gap-xl { gap: 2rem; }

.hidden { display: none !important; }

.divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin: 1rem 0;
}

/* ── Animations ── */
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero h1 { font-size: 2.5rem; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero { padding: 5rem 0 3rem; min-height: auto; overflow-x: hidden; }
  .hero h1 { font-size: 2rem; }

  /* Stats: compact side-by-side with thin dividers */
  .hero-stats { gap: 0; justify-content: center; }
  .hero-stat { text-align: center; flex: 1; min-width: 0; }
  .hero-stat-val { font-size: 1.5rem; }
  .hero-stat-lbl { font-size: 0.7rem; }
  .hero-stat-bordered { padding-left: 1rem; margin-left: 0; }

  /* Grids */
  .features-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-section { padding: 3rem 1.5rem; }
  .section { padding: 3.5rem 0; }

  /* Hero centering */
  .hero-text-block { text-align: center !important; }
  .hero-actions { justify-content: center; flex-wrap: wrap; }
  .hero-trust { justify-content: center !important; }

  /* Hide floating micro-badges (they use negative positioning and overflow) */
  .micro-badge { display: none; }

  /* Prevent right column overflow */
  .reveal-right { overflow: hidden; }
}

/* ── Navbar & Capsule Responsive Breakpoints ── */
@media (max-width: 992px) {
  .navbar-nav { display: none !important; }
  #desk-login { display: none !important; }
  .navbar-wrap { padding: 0.6rem 1.25rem; }
  .navbar { padding: 0.5rem 1.25rem; border-radius: var(--radius-xl); }
}

@media (max-width: 768px) {
  .navbar-wrap { padding: 0.5rem 1rem; }
  .navbar { padding: 0.45rem 1rem; }
}

@media (max-width: 480px) {
  .navbar-wrap { padding: 0.4rem 0.5rem; }
  .navbar { padding: 0.4rem 0.75rem; }
  .navbar-brand { font-size: 1.1rem; gap: 0.35rem; }
  .navbar-actions { gap: 0.25rem; }
  
  /* Make standard large buttons fully responsive/full-width if needed */
  .hero-actions { width: 100%; flex-direction: column; gap: 0.75rem; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

@media (max-width: 375px) {
  .hero h1 { font-size: 1.75rem; }
  .container { padding: 0 1rem; }

  /* Stats: stack vertically on very small phones */
  .hero-stats { flex-direction: column; gap: 0; }
  .hero-stat { text-align: center; }
  .hero-stat-bordered {
    border-left: none;
    padding-left: 0;
    margin-left: 0;
    border-top: 1px solid var(--border);
    padding-top: 0.75rem;
    margin-top: 0.75rem;
  }
}

/* ── Premium Testimonial Carousel & Rating System ── */
.carousel-track-wrap {
  overflow: hidden;
  width: 100%;
  position: relative;
  padding: 1.5rem 0;
  mask-image: linear-gradient(to right, transparent, white 15%, white 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, white 15%, white 85%, transparent);
}
.carousel-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: marqueeMove 32s linear infinite;
}
.carousel-track:hover {
  animation-play-state: paused;
}
@keyframes marqueeMove {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 0.75rem)); }
}

.test-card {
  width: 320px;
  flex-shrink: 0;
  background: var(--glass);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.test-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.rating-star {
  transition: color 150ms ease, transform 150ms ease;
  font-variation-settings: 'FILL' 0;
  color: var(--text-muted);
}
.rating-star:hover {
  transform: scale(1.15);
}
.rating-star.active {
  font-variation-settings: 'FILL' 1;
  color: #F59E0B !important;
}

