/* ================================================================
   HMWorkout — home.css
   Homepage-specific styles
   ================================================================ */

/* ── HERO ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--grad-hero);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-top: var(--nav-h);
}

.hero-mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.mesh-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: meshFloat 12s ease-in-out infinite;
}
.mesh-blob-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(21,87,255,0.35) 0%, transparent 70%);
  top: -100px; left: -150px;
  animation-delay: 0s;
}
.mesh-blob-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,107,26,0.25) 0%, transparent 70%);
  top: 30%; right: -100px;
  animation-delay: 4s;
}
.mesh-blob-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(124,58,237,0.20) 0%, transparent 70%);
  bottom: 0; left: 30%;
  animation-delay: 8s;
}

.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
}

.hero-container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-16);
  align-items: center;
  padding-top: var(--s-20);
  padding-bottom: var(--s-20);
  flex: 1;
}
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--s-12);
    padding-top: var(--s-12);
  }
}

/* Hero Tag */
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-2) var(--s-5);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--r-full);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  margin-bottom: var(--s-6);
}
.hero-tag-dot {
  width: 8px; height: 8px;
  background: var(--c-gold);
  border-radius: 50%;
  animation: pulseGlow 2s ease-in-out infinite;
  box-shadow: 0 0 8px var(--c-gold);
  flex-shrink: 0;
}

/* Hero Title */
.hero-title {
  font-size: clamp(44px, 6vw, var(--fs-hero));
  font-weight: var(--fw-black);
  color: #fff;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: var(--s-6);
}
.hero-title-accent {
  background: linear-gradient(135deg, #FF6B1A, #F5B731);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero Subtitle */
.hero-subtitle {
  font-size: var(--fs-lg);
  color: rgba(255,255,255,0.72);
  line-height: var(--lh-loose);
  max-width: 520px;
  margin-bottom: var(--s-8);
  font-weight: var(--fw-light);
}
@media (max-width: 1024px) {
  .hero-subtitle { margin: 0 auto var(--s-8); }
}

/* Hero CTA */
.hero-cta {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  flex-wrap: wrap;
  margin-bottom: var(--s-8);
}
@media (max-width: 1024px) {
  .hero-cta { justify-content: center; }
}

.hero-demo-btn {
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
}
.hero-demo-btn:hover {
  background: rgba(255,255,255,0.18);
  color: #fff;
  border-color: rgba(255,255,255,0.45);
  transform: translateY(-2px);
}

/* Trust Strip */
.hero-trust {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  flex-wrap: wrap;
}
@media (max-width: 1024px) {
  .hero-trust { justify-content: center; }
}
.trust-item {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.65);
  font-weight: var(--fw-medium);
}
.trust-item i { color: var(--c-gold); font-size: 12px; }
.trust-sep { color: rgba(255,255,255,0.25); font-size: var(--fs-lg); }

/* ── Hero Phone Mockup ─────────────────────────────────────── */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-phone-mockup {
  position: relative;
}

.phone-frame {
  width: 280px;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 44px;
  padding: 14px;
  backdrop-filter: blur(20px);
  box-shadow: 0 40px 120px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.1);
  animation: float 6s ease-in-out infinite;
}
.phone-notch {
  width: 80px; height: 10px;
  background: rgba(0,0,0,0.5);
  border-radius: var(--r-full);
  margin: 0 auto var(--s-4);
}
.phone-screen {
  background: linear-gradient(180deg, #0A1628 0%, #0E2044 100%);
  border-radius: 32px;
  padding: var(--s-4);
  min-height: 420px;
}

.phone-header {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
}
.phone-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--grad-blue);
  flex-shrink: 0;
}
.phone-greeting { font-size: 10px; color: rgba(255,255,255,0.5); }
.phone-name { font-size: 13px; font-weight: 700; color: #fff; font-family: var(--font-display); }
.phone-streak {
  margin-left: auto;
  background: rgba(255,107,26,0.2);
  border-radius: var(--r-full);
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--c-orange);
  display: flex;
  align-items: center;
  gap: 3px;
}

.phone-workout-card {
  background: rgba(21,87,255,0.15);
  border: 1px solid rgba(21,87,255,0.3);
  border-radius: 20px;
  padding: var(--s-4);
  margin-bottom: var(--s-3);
}
.phone-wc-label { font-size: 9px; letter-spacing: 0.1em; color: var(--c-blue-soft); font-weight: 700; margin-bottom: 4px; }
.phone-wc-title { font-size: 15px; font-weight: 800; color: #fff; font-family: var(--font-display); margin-bottom: var(--s-2); }
.phone-wc-meta { display: flex; gap: var(--s-3); font-size: 11px; color: rgba(255,255,255,0.6); margin-bottom: var(--s-3); }

.phone-timer-ring {
  position: relative;
  width: 72px; height: 72px;
  margin: 0 auto var(--s-3);
}
.phone-timer-ring svg { width: 100%; height: 100%; }
.phone-timer-ring circle:last-child {
  animation: countdownShrink 30s linear infinite;
}
.phone-timer-num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  font-family: var(--font-display);
}

.phone-progress-row {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 6px;
}
.phone-progress-bar {
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--r-full);
  overflow: hidden;
}
.phone-progress-fill {
  height: 100%;
  width: 65%;
  background: var(--grad-orange);
  border-radius: var(--r-full);
}

.phone-food-row {
  display: flex;
  gap: var(--s-2);
  margin-top: var(--s-2);
}
.phone-food-item {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 8px 4px;
  text-align: center;
  font-size: 11px;
  color: rgba(255,255,255,0.6);
}

/* Floating Badges */
.hero-badge {
  position: absolute;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--r-full);
  padding: var(--s-2) var(--s-4);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: #fff;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: var(--s-2);
  box-shadow: var(--shadow-lg);
}
.hero-badge i { color: var(--c-gold); }
.badge-1 { top: 10%;   right: -20px; }
.badge-2 { top: 55%;   right: -30px; }
.badge-3 { bottom: 10%; left: -10px; }

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: var(--s-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-2);
  color: rgba(255,255,255,0.4);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.scroll-mouse {
  width: 22px; height: 34px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 11px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.scroll-dot {
  width: 4px; height: 8px;
  background: rgba(255,255,255,0.5);
  border-radius: var(--r-full);
  animation: fadeInDown 1.5s ease-in-out infinite;
}

@media (max-width: 1024px) {
  .hero-visual { display: none; }
  .hero-scroll { display: none; }
}

/* ── STATS BAR ───────────────────────────────────────────────── */
.stats-bar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  border-top: 1px solid var(--border);
  padding: var(--s-8) 0;
}

.stats-grid {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: var(--s-6);
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  flex: 1;
  min-width: 140px;
}
.stat-number {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: var(--fw-black);
  color: var(--c-blue);
  line-height: 1;
  margin-bottom: var(--s-2);
  background: var(--grad-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-size: var(--fs-sm);
  color: var(--t-secondary);
  font-weight: var(--fw-medium);
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .stat-divider { display: none; }
  .stat-item { min-width: 100px; }
  .stat-number { font-size: var(--fs-2xl); }
}

/* ── FEATURES ────────────────────────────────────────────────── */
.features-section { background: var(--bg-base); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
}
@media (max-width: 1024px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .features-grid { grid-template-columns: 1fr; } }

.feature-icon-wrap {
  width: 56px; height: 56px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: var(--s-5);
  flex-shrink: 0;
}
.feature-icon-blue   { background: rgba(21,87,255,0.12);  color: var(--c-blue);   }
.feature-icon-orange { background: rgba(255,107,26,0.12); color: var(--c-orange); }
.feature-icon-green  { background: rgba(13,191,111,0.12); color: var(--c-green);  }
.feature-icon-purple { background: rgba(124,58,237,0.12); color: var(--c-purple); }
.feature-icon-gold   { background: rgba(245,183,49,0.12); color: #C87800; }
.feature-icon-teal   { background: rgba(13,115,119,0.12); color: #0D7377; }

.feature-title {
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: var(--t-primary);
  margin-bottom: var(--s-3);
}
.feature-desc {
  font-size: var(--fs-base);
  color: var(--t-secondary);
  line-height: var(--lh-normal);
}

/* ── WORKOUT TYPES ───────────────────────────────────────────── */
.workout-types-section { background: var(--bg-surface); }

.workout-types-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
}
@media (max-width: 1024px) { .workout-types-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; } }

.workout-type-card {
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--ease-smooth);
  cursor: default;
  position: relative;
}
.workout-type-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}
.workout-type-card.featured {
  border-color: var(--c-blue);
  box-shadow: 0 0 0 2px rgba(21,87,255,0.15), var(--shadow-lg);
}

.featured-ribbon {
  position: absolute;
  top: var(--s-4);
  left: var(--s-4);
  background: var(--grad-blue);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  padding: 4px 12px;
  border-radius: var(--r-full);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  z-index: 3;
  box-shadow: var(--shadow-blue);
}

.wt-image-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
}
.wt-image {
  width: 100%; height: 100%;
  transition: transform 0.6s ease;
  background-size: cover;
  background-position: center;
}
.workout-type-card:hover .wt-image { transform: scale(1.07); }

.wt-image-hiit   { background: linear-gradient(135deg, #1A1A2E, #16213E, #0F3460, #E94560); background-size: 400%; animation: meshFloat 8s ease-in-out infinite; }
.wt-image-cali   { background: linear-gradient(135deg, #0D1B2A, #1B4332, #2D6A4F, #40916C); background-size: 400%; animation: meshFloat 10s ease-in-out infinite; }
.wt-image-taichi { background: linear-gradient(135deg, #2D1B69, #6441A5, #9B59B6, #C77DFF); background-size: 400%; animation: meshFloat 12s ease-in-out infinite; }

.wt-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg-card) 0%, transparent 60%);
}
.wt-badge {
  position: absolute;
  top: var(--s-4);
  right: var(--s-4);
  z-index: 2;
}

.wt-body { padding: var(--s-6); }

.wt-icon {
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: var(--s-4);
}
.wt-icon-orange { background: rgba(255,107,26,0.12); color: var(--c-orange); }
.wt-icon-blue   { background: rgba(21,87,255,0.12);  color: var(--c-blue);   }
.wt-icon-green  { background: rgba(13,191,111,0.12); color: var(--c-green);  }

.wt-title {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  margin-bottom: var(--s-3);
  color: var(--t-primary);
}
.wt-desc {
  font-size: var(--fs-sm);
  color: var(--t-secondary);
  line-height: var(--lh-normal);
  margin-bottom: var(--s-4);
}
.wt-highlights {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  margin-bottom: var(--s-5);
}
.wt-highlights li {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--fs-sm);
  color: var(--t-secondary);
}
.wt-highlights li i { color: var(--c-green); font-size: 12px; flex-shrink: 0; }

/* ── AUDIENCE SECTION ────────────────────────────────────────── */
.audience-section { background: var(--bg-base); }

.audience-tabs {
  display: flex;
  gap: var(--s-2);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--s-8);
}
.audience-tab {
  padding: var(--s-2) var(--s-5);
  border-radius: var(--r-full);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--t-secondary);
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  transition: var(--ease-fast);
  cursor: pointer;
}
.audience-tab:hover { border-color: var(--c-blue); color: var(--c-blue); }
.audience-tab.active {
  background: var(--c-blue);
  border-color: var(--c-blue);
  color: #fff;
  box-shadow: var(--shadow-blue);
}

.audience-panels { min-height: 420px; }
.audience-panel { display: none; animation: fadeIn 0.4s ease; }
.audience-panel.active { display: block; }

.audience-panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-12);
  align-items: center;
  background: var(--bg-surface);
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
@media (max-width: 768px) {
  .audience-panel-grid { grid-template-columns: 1fr; }
}

.audience-info { padding: var(--s-10); }
.audience-icon { font-size: 48px; margin-bottom: var(--s-4); line-height: 1; }
.audience-info h3 {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-black);
  margin-bottom: var(--s-3);
}
.audience-info p {
  color: var(--t-secondary);
  line-height: var(--lh-normal);
  margin-bottom: var(--s-6);
}
.audience-list {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  margin-bottom: var(--s-6);
}
.audience-list li {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-size: var(--fs-base);
  color: var(--t-secondary);
}
.audience-list li i { color: var(--c-green); font-size: 14px; flex-shrink: 0; }

.audience-price {
  display: flex;
  align-items: baseline;
  gap: var(--s-2);
  margin-bottom: var(--s-5);
}
.price-from { font-size: var(--fs-sm); color: var(--t-muted); }
.price-amount {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-black);
  font-family: var(--font-display);
  color: var(--c-orange);
}
.price-period { font-size: var(--fs-sm); color: var(--t-muted); }

.audience-visual {
  height: 400px;
  background-size: cover;
  background-position: center;
}
.audience-visual-men    { background: linear-gradient(135deg, #0F3460, #16213E, #1A1A2E); }
.audience-visual-women  { background: linear-gradient(135deg, #4A0072, #7B2D8B, #C77DFF); }
.audience-visual-medical{ background: linear-gradient(135deg, #1B4332, #2D6A4F, #52B788); }
.audience-visual-gym    { background: linear-gradient(135deg, #1C1C1C, #2D2D2D, #FF6B1A); }
.audience-visual-senior { background: linear-gradient(135deg, #006466, #0D7377, #144552); }

/* ── FOOD SECTION ────────────────────────────────────────────── */
.food-section { background: var(--bg-surface); }

.food-cuisine-tabs {
  display: flex;
  gap: var(--s-3);
  justify-content: center;
  margin-bottom: var(--s-8);
}
.cuisine-tab {
  padding: var(--s-3) var(--s-6);
  border-radius: var(--r-full);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-base);
  color: var(--t-secondary);
  background: var(--bg-raised);
  border: 1.5px solid var(--border);
  transition: var(--ease-fast);
  cursor: pointer;
}
.cuisine-tab:hover { border-color: var(--c-orange); color: var(--c-orange); }
.cuisine-tab.active {
  background: var(--grad-orange);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-orange);
}

.food-panel { display: none; animation: fadeIn 0.4s ease; }
.food-panel.active { display: block; }

.food-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--s-4);
}
@media (max-width: 1024px) { .food-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .food-grid { grid-template-columns: repeat(2, 1fr); } }

.food-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-5) var(--s-4);
  text-align: center;
  transition: var(--ease-smooth);
  cursor: default;
}
.food-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--c-orange); }
.food-emoji { font-size: 32px; margin-bottom: var(--s-2); }
.food-name { font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--t-primary); margin-bottom: var(--s-1); }
.food-cal  { font-size: var(--fs-xs); color: var(--t-muted); }

.food-card.food-more {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-raised);
  border-style: dashed;
  cursor: pointer;
}
.food-more:hover { background: rgba(255,107,26,0.06); border-color: var(--c-orange); }
.food-more-text { font-size: var(--fs-sm); color: var(--c-orange); font-weight: var(--fw-semibold); }

/* ── PRICING PREVIEW ─────────────────────────────────────────── */
.pricing-section { background: var(--bg-base); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-5);
  margin-bottom: var(--s-6);
}
@media (max-width: 1024px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .pricing-grid { grid-template-columns: 1fr; } }

.pricing-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s-8);
  text-align: center;
  transition: var(--ease-smooth);
  position: relative;
}
.pricing-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pricing-card.featured {
  background: var(--c-navy);
  border-color: var(--c-blue);
  box-shadow: 0 0 0 2px rgba(21,87,255,0.2), var(--shadow-xl);
  transform: scale(1.04);
}
.pricing-card.featured:hover { transform: scale(1.04) translateY(-6px); }

.pricing-popular {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad-orange);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  padding: 4px 16px;
  border-radius: var(--r-full);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: var(--shadow-orange);
  white-space: nowrap;
}
.pricing-duration {
  font-size: var(--fs-md);
  font-weight: var(--fw-semibold);
  color: var(--t-secondary);
  margin-bottom: var(--s-3);
}
.pricing-card.featured .pricing-duration { color: rgba(255,255,255,0.65); }
.pricing-price {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-black);
  color: var(--t-primary);
  margin-bottom: var(--s-2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  flex-wrap: wrap;
}
.pricing-card.featured .pricing-price { color: #fff; }
.pricing-save {
  font-size: var(--fs-xs);
  background: rgba(13,191,111,0.15);
  color: var(--c-green);
  padding: 3px 8px;
  border-radius: var(--r-full);
  font-weight: var(--fw-semibold);
}
.pricing-desc {
  font-size: var(--fs-sm);
  color: var(--t-muted);
  margin-bottom: var(--s-5);
}
.pricing-card.featured .pricing-desc { color: rgba(255,255,255,0.5); }

.pricing-referral {
  text-align: center;
  font-size: var(--fs-base);
  color: var(--t-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-6);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.pricing-referral i { color: var(--c-orange); }

/* ── TESTIMONIALS ────────────────────────────────────────────── */
.testimonials-section { background: var(--bg-surface); }

.testimonials-track {
  display: flex;
  gap: var(--s-5);
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: var(--s-4);
  scroll-snap-type: x mandatory;
}
.testimonials-track::-webkit-scrollbar { display: none; }

.testimonial-card {
  min-width: 340px;
  max-width: 340px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s-8);
  scroll-snap-align: start;
  transition: var(--ease-smooth);
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.test-stars { color: var(--c-gold); font-size: var(--fs-lg); margin-bottom: var(--s-4); letter-spacing: 2px; }
.test-quote { font-size: var(--fs-base); color: var(--t-secondary); line-height: var(--lh-loose); margin-bottom: var(--s-5); font-style: italic; }
.test-author { display: flex; align-items: center; gap: var(--s-3); }
.test-name { font-weight: var(--fw-semibold); font-size: var(--fs-base); color: var(--t-primary); }
.test-loc  { font-size: var(--fs-sm); color: var(--t-muted); }

.testimonials-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-4);
  margin-top: var(--s-8);
}
.test-control {
  width: 44px; height: 44px;
  border-radius: var(--r-full);
  background: var(--bg-raised);
  border: 1.5px solid var(--border);
  color: var(--t-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--ease-fast);
  cursor: pointer;
  font-size: 14px;
}
.test-control:hover { background: var(--c-blue); color: #fff; border-color: var(--c-blue); }
.test-dots { display: flex; gap: var(--s-2); }
.test-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border-strong);
  cursor: pointer;
  transition: var(--ease-fast);
}
.test-dot.active { background: var(--c-blue); width: 24px; border-radius: var(--r-full); }

/* ── CTA SECTION ─────────────────────────────────────────────── */
.cta-section {
  position: relative;
  background: var(--grad-hero);
  padding: var(--s-32) 0;
  text-align: center;
  overflow: hidden;
}
.cta-mesh { position: absolute; inset: 0; pointer-events: none; }
.cta-content { position: relative; z-index: 2; }

.cta-title {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: var(--fw-black);
  color: #fff;
  line-height: 1.1;
  margin-bottom: var(--s-5);
  letter-spacing: -0.02em;
}
.cta-subtitle {
  font-size: var(--fs-lg);
  color: rgba(255,255,255,0.65);
  max-width: 520px;
  margin: 0 auto var(--s-8);
  line-height: var(--lh-loose);
}
.cta-actions {
  display: flex;
  gap: var(--s-4);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--s-5);
}
.cta-note { font-size: var(--fs-sm); color: rgba(255,255,255,0.4); }

/* ── FOOTER ──────────────────────────────────────────────────── */
.footer {
  background: var(--c-navy);
  color: rgba(255,255,255,0.7);
  padding: var(--s-16) 0 var(--s-8);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s-10);
  margin-bottom: var(--s-10);
}
@media (max-width: 1024px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .footer-grid { grid-template-columns: 1fr; } }

.footer-logo { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-4); }
.footer-logo-text { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: var(--fw-black); color: #fff; }
.footer-tagline { font-size: var(--fs-base); color: rgba(255,255,255,0.45); margin-bottom: var(--s-6); line-height: 1.6; }

.footer-social { display: flex; gap: var(--s-3); }
.social-btn {
  width: 40px; height: 40px;
  border-radius: var(--r-full);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: var(--ease-fast);
}
.social-btn:hover { background: var(--c-orange); border-color: var(--c-orange); color: #fff; transform: translateY(-2px); }

.footer-col {}
.footer-heading { font-family: var(--font-display); font-size: var(--fs-base); font-weight: var(--fw-bold); color: #fff; margin-bottom: var(--s-5); }
.footer-col ul { display: flex; flex-direction: column; gap: var(--s-3); }
.footer-col a { font-size: var(--fs-sm); color: rgba(255,255,255,0.45); transition: var(--ease-fast); }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: var(--s-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-4);
}
.footer-copy { font-size: var(--fs-sm); color: rgba(255,255,255,0.3); }
.footer-who { font-size: var(--fs-sm); color: rgba(255,255,255,0.3); display: flex; align-items: center; gap: var(--s-2); }
.footer-who i { color: var(--c-green); }

/* ── AI CHAT WIDGET ──────────────────────────────────────────── */
.ai-chat-fab {
  position: fixed;
  bottom: var(--s-6);
  right: var(--s-6);
  width: 60px;
  height: 60px;
  border-radius: var(--r-full);
  background: var(--grad-blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  z-index: var(--z-modal);
  box-shadow: var(--shadow-blue), 0 4px 20px rgba(21,87,255,0.4);
  transition: var(--ease-spring);
}
.ai-chat-fab:hover { transform: scale(1.1) translateY(-3px); box-shadow: var(--shadow-blue), 0 8px 40px rgba(21,87,255,0.6); }
.ai-chat-fab:active { transform: scale(0.96); }

.ai-chat-pulse {
  position: absolute;
  width: 100%; height: 100%;
  border-radius: 50%;
  background: var(--c-blue);
  animation: pulseRing 2s ease-out infinite;
  pointer-events: none;
}

.ai-chat-window {
  position: fixed;
  bottom: calc(var(--s-6) + 72px);
  right: var(--s-6);
  width: 360px;
  max-height: 520px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-xl);
  z-index: var(--z-modal);
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: scaleInBounce 0.4s cubic-bezier(0.34,1.56,0.64,1);
  transform-origin: bottom right;
}
.ai-chat-window.open { display: flex; }

.ai-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-4) var(--s-5);
  background: var(--grad-hero);
  color: #fff;
}
.ai-chat-info { display: flex; align-items: center; gap: var(--s-3); }
.ai-chat-avatar {
  width: 36px; height: 36px;
  border-radius: var(--r-full);
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.ai-chat-name { font-weight: var(--fw-bold); font-size: var(--fs-base); }
.ai-chat-status { font-size: var(--fs-xs); opacity: 0.75; display: flex; align-items: center; gap: 5px; }
.ai-online-dot { width: 7px; height: 7px; background: var(--c-green); border-radius: 50%; animation: pulseGlowBlue 2s infinite; }
.ai-chat-close {
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  width: 30px; height: 30px;
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--ease-fast);
  font-size: 13px;
}
.ai-chat-close:hover { background: rgba(255,255,255,0.2); }

.ai-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: var(--s-4) var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  scrollbar-width: thin;
}

.ai-msg { display: flex; }
.ai-msg-bot { justify-content: flex-start; }
.ai-msg-user { justify-content: flex-end; }

.ai-msg-bubble {
  max-width: 78%;
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-lg);
  font-size: var(--fs-sm);
  line-height: var(--lh-normal);
}
.ai-msg-bot  .ai-msg-bubble { background: var(--bg-raised); color: var(--t-primary); border-bottom-left-radius: var(--r-xs); }
.ai-msg-user .ai-msg-bubble { background: var(--grad-blue); color: #fff; border-bottom-right-radius: var(--r-xs); }

.ai-typing .ai-msg-bubble { display: flex; gap: 5px; align-items: center; }
.ai-typing-dot { width: 6px; height: 6px; background: var(--t-muted); border-radius: 50%; animation: float 1s ease-in-out infinite; }
.ai-typing-dot:nth-child(2) { animation-delay: 0.15s; }
.ai-typing-dot:nth-child(3) { animation-delay: 0.30s; }

.ai-chat-input-row {
  display: flex;
  gap: var(--s-2);
  padding: var(--s-4) var(--s-5);
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
}
.ai-chat-input {
  flex: 1;
  padding: 10px 16px;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: var(--r-full);
  font-size: var(--fs-sm);
  font-family: var(--font-body);
  color: var(--t-primary);
  outline: none;
  transition: var(--ease-fast);
}
.ai-chat-input:focus { border-color: var(--c-blue); box-shadow: 0 0 0 3px rgba(21,87,255,0.10); }
.ai-send-btn {
  width: 40px; height: 40px;
  border-radius: var(--r-full);
  background: var(--grad-blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-size: 14px;
  flex-shrink: 0;
  transition: var(--ease-spring);
  box-shadow: var(--shadow-blue);
}
.ai-send-btn:hover { transform: scale(1.1) rotate(-10deg); }

/* RTL support */
html[dir="rtl"] .badge-1 { right: auto; left: -20px; }
html[dir="rtl"] .badge-2 { right: auto; left: -30px; }
html[dir="rtl"] .badge-3 { left: auto; right: -10px; }
html[dir="rtl"] .ai-chat-window { right: auto; left: var(--s-6); transform-origin: bottom left; }
html[dir="rtl"] .ai-chat-fab { right: auto; left: var(--s-6); }
html[dir="rtl"] .toast-container { right: auto; left: var(--s-6); }
html[dir="rtl"] .lang-menu { right: auto; left: 0; }

@media (max-width: 480px) {
  .ai-chat-window { right: var(--s-3); left: var(--s-3); width: auto; bottom: calc(var(--s-6) + 72px); }
  .testimonial-card { min-width: 280px; }
}
