/* ===== VARIABLES ===== */
:root {
  --primary: #FF6B35;
  --primary-light: #FF8C5A;
  --primary-dark: #E55A2B;
  --purple: #7C3AED;
  --purple-light: #9F67FF;
  --green: #10B981;
  --green-light: #34D399;
  --amber: #FBBf24;
  --text-primary: #1E293B;
  --text-secondary: #64748B;
  --text-tertiary: #94A3B8;
  --bg-light: #F8FAFC;
  --bg-beige: #FFF8F0;
  --bg-beige-hero: #FFF8F7;
  --bg-purple-light: #F8F6FF;
  --border: #E2E8F0;
  --border-beige: #FFE0C0;
  --divider: #F0F0F0;
  --dark: #1E293B;
  --darker: #111827;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-300: #D1D5DB;
}

/* ===== RESET ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-primary);
  background-color: #fff;
  background-image:
    linear-gradient(rgba(255, 107, 53, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 107, 53, 0.07) 1px, transparent 1px);
  background-size: 32px 32px;
  /* background-attachment: fixed; — removed for scroll performance */
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for sequential fade-ins */
.fade-in:nth-child(2) { transition-delay: 0.06s; }
.fade-in:nth-child(3) { transition-delay: 0.12s; }
.fade-in:nth-child(4) { transition-delay: 0.18s; }
.fade-in:nth-child(5) { transition-delay: 0.22s; }
.fade-in:nth-child(6) { transition-delay: 0.26s; }



/* Ensure all content is above the particle canvas */
.header,
main,
.footer-unified {
  position: relative;
  z-index: 1;
}

/* ===== TYPEWRITER ===== */
.typewriter {
  min-height: 2.4em;
}

.typewriter .cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--primary);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 0.7s infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* ===== LOGO ===== */
.logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

.logo-tomato-img {
  display: inline-block;
  width: auto;
  height: 1.5em;
  vertical-align: -0.28em;
  object-fit: contain;
}

.logo-tomato-img-sm {
  width: 0.85em;
  height: 0.85em;
}

.logo-white {
  color: #fff;
  font-size: 28px;
}

.logo-gray {
  color: var(--gray-400);
  font-size: 16px;
}

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.35s cubic-bezier(.4,0,.2,1), box-shadow 0.3s;
}
.header--hidden {
  transform: translateY(-100%);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 4px 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.nav-link {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 50px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.nav-link:hover {
  background: var(--bg-light);
  color: var(--primary);
}

.nav-login {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 50px;
  transition: background 0.2s;
  white-space: nowrap;
}

.nav-login:hover {
  background: var(--bg-light);
}

.nav-signup {
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 50px;
  transition: background 0.2s;
  white-space: nowrap;
}

.nav-signup:hover {
  background: var(--primary-dark);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 8px 16px 16px;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--border);
  position: fixed;
  top: 46px;
  left: 0;
  right: 0;
  z-index: 99;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 10px 14px;
  border-radius: 12px;
  transition: background 0.15s;
}

.mobile-menu-link:hover {
  background: var(--bg-light);
}

.mobile-menu-signup {
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 12px 14px;
  border-radius: 50px;
  font-weight: 600;
  margin-top: 4px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  border-radius: 14px;
  padding: 16px 24px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  border: none;
  text-align: center;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.btn-outline:hover {
  background: rgba(255, 107, 53, 0.06);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  font-weight: 500;
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.08);
}

.btn-white {
  background: #fff;
  color: var(--primary);
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.btn-white:hover {
  background: #f5f5f5;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.btn-icon {
  font-size: 18px;
}

.btn-hero {
  flex: 1;
  min-width: 0;
}

.btn-footer {
  font-size: 15px;
}

.btn-leaderboard {
  background: #fff;
  color: var(--purple);
  font-size: 15px;
  font-weight: 700;
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  margin-top: 16px;
}

.btn-leaderboard:hover {
  background: #f5f3ff;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  background: #fff;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 24px 60px;
  overflow: hidden;
}

#heroCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
}

/* Red margin line like a real notebook */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 72px;
  width: 1px;
  height: 100%;
  background: rgba(229, 62, 62, 0.1);
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  width: 100%;
}

/* Mascotte absolue à droite */
.hero-mascot-right {
  position: absolute;
  right: 80px;
  bottom: 25%;
  height: 55vh;
  width: auto;
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(0 16px 40px rgba(255,107,53,0.18));
}

/* conserve l'ancienne classe au cas où elle est réutilisée ailleurs */
.hero-emoji-img {
  display: none;
}

/* Scroll indicator */
.hero-scroll-hint {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-tertiary);
  text-decoration: none;
  z-index: 100;
  transition: color 0.2s, opacity 0.4s;
}

.hero-scroll-hint.hidden {
  opacity: 0;
  pointer-events: none;
}

.hero-scroll-hint:hover {
  color: var(--primary);
}

.hero-scroll-text {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: 0.6;
}

.hero-scroll-arrow {
  animation: scrollBounce 1.6s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50%       { transform: translateY(6px); opacity: 1; }
}

/* Mascotte décorative dans les sections */
.section-mascot {
  position: absolute;
  width: auto;
  pointer-events: none;
  user-select: none;
}

@media (max-width: 860px) {
  .section-mascot { display: none; }
  .hero-mascot-right { display: none; }
}

@media (min-width: 860px) {
  .footer-mascot-img { display: block !important; }
}

.hero h1 {
  font-family: inherit;
  font-size: 56px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  color: var(--text-primary);
}

.hero-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-top: 12px;
  margin-bottom: 24px;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  max-width: 560px;
  margin: 0 auto 16px;
  flex-wrap: nowrap;
}
.hero-buttons .btn {
  white-space: nowrap;
  padding: 12px 20px;
}

.hero-login-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-tertiary);
  transition: color 0.2s;
}

.hero-login-link:hover {
  color: var(--primary);
}

/* ===== SECTIONS ===== */
.section {
  padding: 80px 24px;
}

.section-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.section-inner-narrow {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.section h2,
.footer-cta h2 {
  font-family: inherit;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
}

.section h2 {
  font-size: 28px;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.section-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 56px;
}

/* ===== BADGE ===== */
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
}

.badge-orange {
  color: var(--primary);
  background: rgba(255, 107, 53, 0.1);
}

.badge-purple {
  color: var(--purple);
  background: rgba(124, 58, 237, 0.1);
}

/* ===== INTRO SECTION ===== */
.section-intro {
  background: #fff;
  border-top: 1px solid var(--divider);
}

.section-parents {
  background: transparent;
  border-top: 1px solid var(--divider);
}

.subsection-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 80px;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.intro-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 500px;
  margin: 0 auto 8px;
}

.intro-feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--bg-light);
  border-radius: 16px;
  text-align: left;
}

.intro-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
  color: #fff;
}

.intro-feature-icon-orange {
  background: var(--primary);
}

.intro-feature-icon-purple {
  background: var(--purple);
}

.intro-feature-icon-green {
  background: var(--green);
}

.intro-feature-text h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 3px;
}

.intro-feature-text p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ===== FEATURE GRID (clean numbered cards) ===== */
.feature-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 520px;
  margin: 0 auto 60px;
}

.feature-card {
  padding: 28px 24px;
  background:
    linear-gradient(125deg,
      rgba(210,215,225,0.6) 0%,
      rgba(245,247,250,0.95) 15%,
      rgba(220,225,232,0.7) 30%,
      rgba(248,249,252,0.95) 45%,
      rgba(215,220,230,0.65) 60%,
      rgba(242,244,248,0.9) 75%,
      rgba(210,215,225,0.6) 100%
    );
  /* backdrop-filter removed for performance */
  border-radius: 16px;
  text-align: left;
  border: 1px solid rgba(255,255,255,0.6);
  border-top: 1px solid rgba(255,255,255,0.85);
  border-left: 1px solid rgba(255,255,255,0.7);
  border-right: 1px solid rgba(200,205,215,0.4);
  border-bottom: 1px solid rgba(190,195,208,0.5);
  box-shadow:
    0 2px 8px rgba(0,0,0,0.07),
    0 1px 2px rgba(0,0,0,0.05),
    inset 0 1px 0 rgba(255,255,255,0.9),
    inset 0 -1px 0 rgba(0,0,0,0.06),
    inset 1px 0 0 rgba(255,255,255,0.4),
    inset -1px 0 0 rgba(0,0,0,0.03);
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
  position: relative;
  overflow: hidden;
  will-change: transform;
}

/* Idle shimmer animation — plays every 12s */
@keyframes metalShimmer {
  0%, 85% { left: -60%; opacity: 0; }
  88% { opacity: 1; }
  100% { left: 120%; opacity: 0; }
}

/* Static diagonal light streak */
.feature-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 40%;
  height: 200%;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.2) 45%, rgba(255,255,255,0.06) 50%, transparent 55%);
  pointer-events: none;
}

/* Animated shimmer light */
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 35%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), rgba(255,255,255,0.08), transparent);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  animation: metalShimmer 12s ease-in-out infinite;
}

/* Stagger each card so they don't all flash at once */
.feature-card:nth-child(1)::before { animation-delay: 0s; }
.feature-card:nth-child(2)::before { animation-delay: 4s; }
.feature-card:nth-child(3)::before { animation-delay: 8s; }

/* On hover: instant sweep override */
.feature-card:hover::before {
  animation: none;
  left: 120%;
  opacity: 1;
  transition: left 0.5s ease, opacity 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 14px 36px rgba(0,0,0,0.1),
    0 0 0 1px rgba(255,255,255,0.5),
    inset 0 1px 0 rgba(255,255,255,0.95),
    inset 0 -1px 0 rgba(0,0,0,0.06);
}

.feature-number {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 6px;
  line-height: 1;
  transition: text-shadow 0.3s ease, filter 0.3s ease;
}

.feature-big-number {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 6px;
  line-height: 1;
  transition: text-shadow 0.3s ease, filter 0.3s ease;
}

.feature-card:hover .feature-big-number {
  filter: brightness(1.15);
}

/* Glow per color on hover */
.feature-card:hover .glow-orange {
  text-shadow: 0 0 18px rgba(255,107,53,0.45);
  filter: brightness(1.15);
}

.feature-card:hover .glow-green {
  text-shadow: 0 0 18px rgba(16,185,129,0.45);
  filter: brightness(1.15);
}

.feature-card:hover .glow-purple {
  text-shadow: 0 0 18px rgba(124,58,237,0.45);
  filter: brightness(1.15);
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.feature-card p strong {
  color: var(--text-primary);
  font-weight: 700;
}

/* ===== REWARD CARDS ===== */
.reward-cards {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 520px;
  margin: 0 auto 40px;
}

.reward-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: #fff;
  border-radius: 16px;
  text-align: left;
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.reward-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.reward-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.reward-icon-orange {
  background: linear-gradient(135deg, var(--primary), #FF9500);
}

.reward-icon-green {
  background: linear-gradient(135deg, var(--green), var(--green-light));
}

.reward-icon-purple {
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
}

.reward-icon-text {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
}

.reward-text h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.reward-value {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 6px;
}

.reward-value-orange {
  color: var(--primary);
}

.reward-value-green {
  color: var(--green);
}

.reward-value-purple {
  color: var(--purple);
}

.reward-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.reward-desc strong {
  font-weight: 800;
  color: var(--text-primary);
}

/* Highlighted amounts in reward card titles */
.reward-amount {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.5px;
}

.reward-amount-orange {
  color: var(--primary);
}

.reward-amount-green {
  color: var(--green);
}

.reward-amount-purple {
  color: var(--purple);
}

/* ===== STREAK BOX ===== */
.streak-box {
  max-width: 520px;
  margin: 16px auto 0;
  padding: 24px;
  background:
    linear-gradient(145deg,
      rgba(210,215,225,0.95) 0%,
      rgba(245,247,250,0.95) 15%,
      rgba(220,225,232,0.7) 30%,
      rgba(248,249,252,0.95) 45%,
      rgba(215,220,230,0.65) 60%,
      rgba(242,244,248,0.9) 75%,
      rgba(210,215,225,0.6) 100%
    );
  border: 1px solid rgba(255,255,255,0.6);
  border-top-color: rgba(255,255,255,0.85);
  border-bottom-color: rgba(190,195,208,0.5);
  border-radius: 20px;
  box-shadow:
    0 2px 8px rgba(0,0,0,0.07),
    0 1px 2px rgba(0,0,0,0.05),
    inset 0 1px 0 rgba(255,255,255,0.9),
    inset 0 -1px 0 rgba(0,0,0,0.06);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

.streak-box::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 40%;
  height: 200%;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.2) 45%, rgba(255,255,255,0.06) 50%, transparent 55%);
  pointer-events: none;
}

.streak-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 35%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), rgba(255,255,255,0.08), transparent);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  animation: metalShimmer 14s ease-in-out infinite 2s;
}

.streak-box:hover {
  transform: translateY(-4px);
  box-shadow:
    0 14px 36px rgba(0,0,0,0.1),
    0 0 0 1px rgba(255,255,255,0.5),
    inset 0 1px 0 rgba(255,255,255,0.95),
    inset 0 -1px 0 rgba(0,0,0,0.06);
}

.streak-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.streak-circles {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.streak-week {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.streak-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

.streak-circle.active {
  background: var(--primary);
}

.streak-circle.inactive {
  background: var(--border);
}

.streak-circle.milestone-orange {
  box-shadow: 0 0 0 2.5px var(--primary);
}

.streak-circle.milestone-green {
  box-shadow: 0 0 0 2.5px var(--green);
}

.milestone-label {
  font-size: 9px;
  font-weight: 700;
}

.milestone-label-orange {
  color: var(--primary);
}

.milestone-label-green {
  color: var(--green);
}

.streak-status {
  font-size: 12px;
  color: var(--text-secondary);
}

/* ===== SECTION TUTORS ===== */
.section-tutors {
  background: transparent;
}

.tutor-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 500px;
  margin: 0 auto 56px;
}

.tutor-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  background:
    linear-gradient(125deg,
      rgba(210,215,225,0.6) 0%,
      rgba(245,247,250,0.95) 15%,
      rgba(220,225,232,0.7) 30%,
      rgba(248,249,252,0.95) 45%,
      rgba(215,220,230,0.65) 60%,
      rgba(242,244,248,0.9) 75%,
      rgba(210,215,225,0.6) 100%
    );
  /* backdrop-filter removed for performance */
  border-radius: 16px;
  text-align: left;
  border: 1px solid rgba(255,255,255,0.6);
  border-top: 1px solid rgba(255,255,255,0.85);
  border-left: 1px solid rgba(255,255,255,0.7);
  border-right: 1px solid rgba(200,205,215,0.4);
  border-bottom: 1px solid rgba(190,195,208,0.5);
  box-shadow:
    0 2px 8px rgba(0,0,0,0.07),
    0 1px 2px rgba(0,0,0,0.05),
    inset 0 1px 0 rgba(255,255,255,0.9),
    inset 0 -1px 0 rgba(0,0,0,0.06),
    inset 1px 0 0 rgba(255,255,255,0.4),
    inset -1px 0 0 rgba(0,0,0,0.03);
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
  position: relative;
  overflow: hidden;
}

.tutor-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 40%;
  height: 200%;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.2) 45%, rgba(255,255,255,0.06) 50%, transparent 55%);
  pointer-events: none;
}

.tutor-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 35%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), rgba(255,255,255,0.08), transparent);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  animation: metalShimmer 15s ease-in-out infinite;
}

.tutor-card:nth-child(1)::before { animation-delay: 1s; }
.tutor-card:nth-child(2)::before { animation-delay: 3.5s; }
.tutor-card:nth-child(3)::before { animation-delay: 6s; }
.tutor-card:nth-child(4)::before { animation-delay: 8.5s; }
.tutor-card:nth-child(5)::before { animation-delay: 11s; }
.tutor-card:nth-child(6)::before { animation-delay: 13.5s; }

.tutor-card:hover::before {
  animation: none;
  left: 120%;
  opacity: 1;
  transition: left 0.5s ease, opacity 0.2s ease;
}

.tutor-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 14px 36px rgba(0,0,0,0.1),
    0 0 0 1px rgba(255,255,255,0.5),
    inset 0 1px 0 rgba(255,255,255,0.95),
    inset 0 -1px 0 rgba(0,0,0,0.06);
}

.tutor-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.tutor-icon-purple {
  background: rgba(124, 58, 237, 0.1);
}

.tutor-icon-amber {
  background: rgba(251, 191, 36, 0.1);
}

.tutor-icon-orange {
  background: rgba(255, 107, 53, 0.1);
}

.tutor-icon-green {
  background: rgba(16, 185, 129, 0.1);
}

.tutor-icon-svg {
  font-size: 16px;
  font-weight: 700;
  color: inherit;
}

.tutor-icon-purple .tutor-icon-svg {
  color: var(--purple);
}

.tutor-icon-amber .tutor-icon-svg {
  color: var(--amber);
}

.tutor-icon-orange .tutor-icon-svg {
  color: var(--primary);
}

.tutor-icon-green .tutor-icon-svg {
  color: var(--green);
}

.tutor-text h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.tutor-text p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.tutor-highlight {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -0.3px;
  transition: text-shadow 0.3s ease, filter 0.3s ease;
}

.tutor-highlight-amber {
  color: #D97706;
}

.tutor-highlight-orange {
  color: var(--primary);
}

.tutor-highlight-purple {
  color: var(--purple);
}

.tutor-card:hover .tutor-highlight-amber {
  text-shadow: 0 0 14px rgba(217,119,6,0.4);
  filter: brightness(1.15);
}

.tutor-card:hover .tutor-highlight-orange {
  text-shadow: 0 0 14px rgba(255,107,53,0.4);
  filter: brightness(1.15);
}

.tutor-card:hover .tutor-highlight-purple {
  text-shadow: 0 0 14px rgba(124,58,237,0.4);
  filter: brightness(1.15);
}

/* ===== LEADERBOARD ===== */
.leaderboard-box {
  max-width: 500px;
  margin: 16px auto 0;
  padding: 20px;
  background: linear-gradient(135deg, #6D30D0 0%, #7C3AED 35%, #8B4CF6 65%, #7C3AED 100%);
  border-radius: 20px;
  border: 1px solid rgba(140,100,240,0.3);
  border-top-color: rgba(170,140,255,0.4);
  border-bottom-color: rgba(60,20,120,0.3);
  box-shadow:
    0 4px 20px rgba(124,58,237,0.2),
    inset 0 1px 0 rgba(190,170,255,0.2),
    inset 0 -1px 0 rgba(50,15,100,0.1);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

.leaderboard-box::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -15%;
  width: 35%;
  height: 200%;
  background: linear-gradient(105deg, transparent 42%, rgba(255,255,255,0.06) 46%, rgba(255,255,255,0.02) 50%, transparent 54%);
  pointer-events: none;
}

.leaderboard-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 35%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), rgba(255,255,255,0.04), transparent);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  animation: metalShimmer 16s ease-in-out infinite 5s;
}

.leaderboard-box:hover {
  transform: translateY(-4px);
  box-shadow:
    0 14px 36px rgba(124,58,237,0.3),
    inset 0 1px 0 rgba(200,180,255,0.3),
    inset 0 -1px 0 rgba(50,15,100,0.12);
}

.leaderboard-box:hover::before {
  animation: none;
  left: 120%;
  opacity: 1;
  transition: left 0.5s ease, opacity 0.2s ease;
}

.leaderboard-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
}

.leaderboard-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.leaderboard-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 10px;
}

.leaderboard-rank {
  font-size: 20px;
}

.leaderboard-name {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.leaderboard-hours {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}

.leaderboard-prize {
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 8px;
  letter-spacing: 0.3px;
  background: linear-gradient(135deg, var(--green), var(--green-light));
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}

.leaderboard-prize-gold {
  font-size: 17px;
  padding: 6px 14px;
  background: linear-gradient(135deg, #D97706, #FBBF24);
  box-shadow: 0 2px 10px rgba(217, 119, 6, 0.35);
}

.leaderboard-prize-silver {
  font-size: 15px;
  background: linear-gradient(135deg, #6B7280, #9CA3AF);
  box-shadow: 0 2px 8px rgba(107, 114, 128, 0.3);
}

.leaderboard-prize-bronze {
  font-size: 14px;
  background: linear-gradient(135deg, #92400E, #D97706);
  box-shadow: 0 2px 8px rgba(146, 64, 14, 0.3);
}

.leaderboard-info {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}

.leaderboard-info-icon {
  font-size: 16px;
  opacity: 0.7;
}

/* ===== HOW IT WORKS ===== */
.section-how {
  background: #fff;
  border-top: 1px solid var(--divider);
}

.steps {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
}

.step {
  text-align: center;
  padding: 16px 0;
}

.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 8px;
}

.step-circle-orange {
  background: var(--primary);
}

.step-circle-purple {
  background: var(--purple);
}

.step-circle-green {
  background: var(--green);
}

.step-emoji {
  font-size: 18px;
  display: block;
  margin-bottom: 8px;
}

.step h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}

.step p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.step-arrow {
  display: none;
  color: var(--gray-300);
  font-size: 28px;
}

/* ===== TESTIMONIALS ===== */
.section-testimonials {
  background: var(--bg-beige-hero);
}

.testimonial-emoji {
  font-size: 40px;
  display: block;
  margin-bottom: 16px;
}

.cta-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: rgba(255, 107, 53, 0.06);
  border: 1px solid rgba(255, 107, 53, 0.15);
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

.cta-box-icon {
  font-size: 18px;
}

/* ===== UNIFIED FOOTER ===== */
.footer-unified {
  position: relative;
  overflow: hidden;
  background: #fff;
  color: var(--text-primary);
  text-align: center;
  padding: 0;
}

.footer-unified .section-bars-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.footer-unified-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 24px 20px;
}

.footer-cta-block {
  margin-bottom: 48px;
}

.footer-cta-block h2 {
  font-size: 28px;
  color: var(--text-primary);
  margin: 0 0 24px;
}

.footer-cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.btn-ghost {
  background: rgba(0,0,0,0.04);
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-ghost:hover {
  background: rgba(255,107,53,0.08);
}

/* Cities block with logo behind */
.footer-cities-wrapper {
  position: relative;
  padding: 20px 0 10px;
}

.footer-big-logo-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  user-select: none;
  font-family: 'Inter', sans-serif;
  font-size: 100px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  z-index: 0;
  white-space: nowrap;
}

@media (min-width: 800px) {
  .footer-big-logo-bg {
    font-size: 140px;
  }
}

.footer-cities {
  position: relative;
  z-index: 1;
}

.footer-city-link {
  display: inline-block;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.85);
  border-radius: 20px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  border: 1px solid rgba(0,0,0,0.06);
}

.footer-city-link:hover {
  background: rgba(255,107,53,0.1);
  color: var(--primary);
}

.ghost-letter {
  display: inline-block;
  color: rgba(255,107,53,0.0);
  -webkit-text-stroke: none;
  transition: color 0.8s ease-out, opacity 0.8s ease-out;
  will-change: color, opacity;
}

.ghost-tomato {
  display: inline-block;
  width: 0.85em;
  height: 0.85em;
  vertical-align: middle;
  opacity: 0;
  transition: opacity 0.8s ease-out, filter 0.4s;
  will-change: opacity;
}

.footer-bottom {
  border-top: 1px solid rgba(0,0,0,0.06);
  padding-top: 16px;
}

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin-bottom: 10px;
}

.footer-bottom-links a {
  font-size: 12px;
  color: var(--text-tertiary);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-bottom-links a:hover {
  color: var(--primary);
}

.footer-bottom-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  font-size: 11px;
  color: var(--text-tertiary);
  opacity: 0.6;
}

/* ==============================
   DESKTOP (min-width: 800px)
   ============================== */
@media (min-width: 800px) {
  .header-inner {
    padding: 10px 40px;
  }

  .mobile-menu-btn {
    display: none !important;
  }

  .mobile-menu {
    display: none !important;
  }

  /* Hero */
  .hero {
    padding: 100px 40px 60px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero-subtitle {
    font-size: 18px;
    margin-top: 16px;
    margin-bottom: 32px;
  }

  .hero-buttons {
    max-width: 420px;
  }

  /* Sections */
  .section {
    padding: 110px 40px;
  }

  .section h2 {
    font-size: 32px;
  }

  .subsection-title {
    font-size: 26px;
  }

  /* Intro features - horizontal on desktop */
  .intro-features {
    flex-direction: row;
    max-width: 100%;
    gap: 24px;
  }

  .intro-feature {
    flex: 1;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .intro-feature-text {
    text-align: center;
  }

  /* Feature grid - 3 columns on desktop */
  .feature-grid {
    flex-direction: row;
    flex-wrap: wrap;
    max-width: 900px;
    gap: 20px;
    align-items: start;
  }

  .feature-grid > .feature-card {
    flex: 1 1 calc(33.333% - 14px);
    min-width: 0;
  }

  .feature-card {
    text-align: center;
  }

  /* Reward cards - 3 in a ROW on desktop */
  .reward-cards {
    flex-direction: row;
    max-width: 900px;
    gap: 24px;
  }

  .reward-card {
    flex: 1;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .reward-text {
    text-align: center;
  }

  .streak-box {
    max-width: 600px;
  }

  /* Tutor cards - 3x2 grid */
  .tutor-cards {
    flex-direction: row;
    flex-wrap: wrap;
    max-width: 900px;
    align-items: start;
  }

  .tutor-cards > .tutor-card {
    flex: 1 1 calc(33.333% - 10px);
    min-width: 0;
  }

  .section-tutors {
    background: transparent;
    border-top: 1px solid var(--divider);
  }

  /* Steps - horizontal */
  .steps {
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 0;
  }

  .step {
    flex: 1;
    padding: 32px 16px 0;
  }

  .step-arrow {
    display: flex !important;
    align-items: center;
    padding-top: 32px;
    font-size: 28px;
  }

  .step-circle {
    width: 48px;
    height: 48px;
    font-size: 20px;
    margin-bottom: 14px;
  }

  .step-emoji {
    font-size: 28px;
    margin-bottom: 14px;
  }

  .step h3 {
    font-size: 16px;
  }

  /* Testimonials */
  .section-testimonials {
    background: #fff;
    border-top: 1px solid var(--divider);
  }

  .testimonial-emoji {
    font-size: 48px;
  }

  /* Unified Footer */
  .footer-unified-inner {
    padding: 80px 40px 24px;
  }

  .footer-cta-block h2 {
    font-size: 36px;
  }

  .footer-cta-buttons {
    flex-direction: row;
    justify-content: center;
    gap: 12px;
  }

  .btn-footer {
    min-width: 200px;
  }

  .footer-big-logo {
    font-size: 140px;
  }
}

/* ===== MOBILE OVERRIDES ===== */
@media (max-width: 799px) {
  .header-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }
}

/* ===== BATTLE PASS MINI (Vitrine) ===== */
.battlepass-road {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 14px;
  overflow-x: auto;
  padding: 8px 0;
}

.bp-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.bp-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  background: #fff;
  border: 2.5px solid var(--border);
  transition: all 0.3s;
}

.bp-done .bp-dot {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.25);
}

.bp-current .bp-dot {
  background: #fff;
  border: 2.5px solid var(--primary);
  box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.12);
  animation: bpPulse 1.8s infinite;
}

@keyframes bpPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.12); }
  50% { box-shadow: 0 0 0 8px rgba(255, 107, 53, 0.06); }
}

.bp-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-tertiary);
}

.bp-done .bp-label {
  color: var(--primary);
}

.bp-current .bp-label {
  color: var(--primary);
  font-weight: 900;
}

.bp-sub {
  font-size: 9px;
  color: var(--text-tertiary);
}

.bp-line {
  width: 20px;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  flex-shrink: 0;
  margin: 0 2px;
  margin-bottom: 20px;
}

.bp-line-done {
  background: var(--primary);
}

.bp-line-active {
  background: linear-gradient(90deg, var(--primary), var(--border));
}

/* ===== SECTION BARS CANVAS (same diagonal bars as hero) ===== */
.section-bars-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
}

/* ===== CITY TICKER ===== */
.section-cities {
  position: relative;
  background: transparent;
  overflow: hidden;
  border-top: none;
  border-bottom: none;
  border-radius: 32px;
  color: #fff;
}
.section-cities h2,
.section-cities h3 {
  color: #fff;
}
@media (min-width: 800px) {
  .section-cities {
    border-radius: 40px;
  }
}

/* Animated background canvas */
.cities-bg-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Headings — white text on dark orange bg */
.cities-heading {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 8px;
  color: #fff;
}

.cities-subtitle {
  font-size: 16px;
  margin-bottom: 32px;
  color: rgba(255,255,255,0.85);
  opacity: 1;
}

.cities-subheading {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -1px;
  color: #fff;
  text-align: center;
  margin-bottom: 16px;
  margin-top: 48px;
}

/* Top tutors — Antigravity-style carousel (full-width) */
.top-tutors-carousel {
  position: relative;
  overflow: visible;
}

.top-tutors-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 20px 0 40px;
}
.top-tutors-track::-webkit-scrollbar { display: none; }

/* Each slide = image card + info below */
.top-tutor-slide {
  flex: 0 0 min(420px, 45%);
  scroll-snap-align: start;
  min-width: 220px;
}
.top-tutor-slide:first-child {
  margin-left: 80px;
}
.top-tutor-slide:last-child {
  margin-right: 80px;
}

.top-tutor-card {
  border-radius: 20px;
  overflow: visible;
  position: relative;
  cursor: pointer;
  background: #e8e8e8;
  aspect-ratio: 1 / 1;
  transition: transform 0.45s cubic-bezier(.4,0,.2,1), box-shadow 0.45s;
  border: 1.5px solid rgba(255,255,255,0.25);
  box-shadow:
    0 4px 20px rgba(0,0,0,0.15),
    0 0 0 1px rgba(255,255,255,0.1),
    inset 0 1px 0 rgba(255,255,255,0.3);
}

/* Clip children but not shadow */
.top-tutor-card > * {
  border-radius: 20px;
}

.top-tutor-photo,
.top-tutor-card::after,
.top-tutor-overlay,
.top-tutor-shine,
.top-tutor-glare,
.top-tutor-edge-light {
  clip-path: inset(0 round 20px);
}

/* Metallic shine overlay - only on hover */
.top-tutor-card .top-tutor-shine {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255,255,255,0.08) 40%,
    rgba(255,255,255,0.22) 45%,
    rgba(255,255,255,0.08) 50%,
    transparent 60%
  );
  background-size: 250% 100%;
  background-position: 200% center;
  mix-blend-mode: overlay;
  opacity: 0;
  transition: none;
}

.top-tutor-card:hover .top-tutor-shine {
  opacity: 1;
  animation: cardShine 1.2s ease-out forwards;
}

@keyframes cardShine {
  0% { background-position: 200% center; }
  100% { background-position: -50% center; }
}

/* Mouse-follow glare overlay */
.top-tutor-card .top-tutor-glare {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  border-radius: 20px;
  background: radial-gradient(
    circle 250px at var(--glare-x, 50%) var(--glare-y, 50%),
    rgba(255,255,255,0.35) 0%,
    rgba(255,255,255,0.12) 30%,
    transparent 70%
  );
  mix-blend-mode: overlay;
  transition: none;
}

.top-tutor-card:hover .top-tutor-glare {
  opacity: 1;
}

/* Edge light reflection */
.top-tutor-card .top-tutor-edge-light {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  pointer-events: none;
  border-radius: 20px;
  border: 1px solid transparent;
  transition: border-color 0.4s ease;
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.15) 0%,
    transparent 40%,
    transparent 60%,
    rgba(255,255,255,0.08) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  padding: 1px;
}

.top-tutor-card:hover {
  transform: scale(1.03) translateY(-4px);
  box-shadow:
    0 25px 60px rgba(0,0,0,0.3),
    0 0 30px rgba(255,107,53,0.12),
    0 0 0 1px rgba(255,255,255,0.2),
    inset 0 1px 0 rgba(255,255,255,0.4);
  border-color: rgba(255,255,255,0.35);
}


.top-tutor-photo {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: absolute;
  top: 0;
  left: 0;
}

.top-tutor-photo-placeholder {
  background: linear-gradient(135deg, #FF6B35 0%, #FF9500 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.top-tutor-photo-placeholder span {
  color: #fff;
  font-weight: 800;
  font-size: 72px;
  letter-spacing: 2px;
}

/* Gradient overlay on card bottom */
.top-tutor-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 55%;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

/* Name overlay on card */
.top-tutor-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  z-index: 2;
  color: #fff;
}

.top-tutor-overlay-name {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

/* Slide info below card */
.top-tutor-slide-info {
  padding: 12px 4px 0;
}

.top-tutor-slide-name {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

.top-tutor-slide-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Rating badge on card */
.top-tutor-rating-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 3;
}

.top-tutor-card::before {
  content: '';
  position: absolute;
  top: 16px;
  right: 16px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #FF6B35;
  box-shadow:
    inset 0 3px 7px rgba(0,0,0,0.55),
    inset 0 1px 3px rgba(0,0,0,0.4),
    0 1px 0 rgba(255,255,255,0.15);
  z-index: 10;
  pointer-events: none;
}

/* Controls row: arrows only */
.top-tutors-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 12px;
  padding: 0 80px;
  gap: 12px;
}

.top-tutors-arrows {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.top-tutors-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.08);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}
.top-tutors-arrow:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.5);
}
.top-tutors-arrow svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 640px) {
  .cities-heading {
    font-size: 30px;
  }
  .top-tutor-slide {
    flex: 0 0 70%;
    min-width: 220px;
  }
  .top-tutor-slide:first-child {
    margin-left: 20px;
  }
  .top-tutor-slide:last-child {
    margin-right: 20px;
  }
  .top-tutors-controls {
    padding: 0 20px;
  }
  .top-tutor-overlay-name {
    font-size: 24px;
  }
  .top-tutor-overlay {
    padding: 16px;
  }
  .top-tutor-play-btn {
    width: 40px;
    height: 40px;
    bottom: 14px;
    right: 14px;
  }
  .top-tutors-info-name {
    font-size: 15px;
  }
  .top-tutors-controls {
    margin-top: 12px;
  }
  .top-tutors-arrow {
    width: 38px;
    height: 38px;
  }
}

.city-ticker-wrapper {
  overflow: hidden;
  position: relative;
  margin-bottom: 32px;
}

.city-ticker-wrapper::before,
.city-ticker-wrapper::after {
  display: none;
}

.city-ticker {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: tickerScroll 25s linear infinite;
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-33.333%); }
}

.city-ticker:hover {
  animation-play-state: paused;
}

.city-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.city-chip:hover {
  border-color: var(--primary);
  background: rgba(255, 107, 53, 0.04);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.1);
}

.city-chip-icon {
  font-size: 16px;
}

.city-chip-count {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--primary);
  padding: 2px 7px;
  border-radius: 10px;
}

.city-chip.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.city-chip.active .city-chip-count {
  background: rgba(255, 255, 255, 0.3);
}

.city-ticker-static {
  animation: none !important;
  justify-content: center;
  width: auto;
  flex-wrap: wrap;
}

/* Hide side gradients when few cities (static mode) */
.city-ticker-wrapper.city-ticker-wrapper--static::before,
.city-ticker-wrapper.city-ticker-wrapper--static::after {
  display: none;
}

/* ===== CITY SEARCH BAR ===== */
.city-search-wrapper {
  max-width: 480px;
  margin: 0 auto 32px;
  position: relative;
}

.city-search-box {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.95);
  border-radius: 16px;
  padding: 0 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  backdrop-filter: blur(8px);
  transition: box-shadow 0.2s ease;
}

.city-search-box:focus-within {
  box-shadow: 0 6px 28px rgba(0,0,0,0.18);
}

.city-search-icon {
  color: #999;
  flex-shrink: 0;
}

.city-search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 16px;
  font-family: inherit;
  padding: 14px 12px;
  color: var(--text-primary);
  outline: none;
}

.city-search-input::placeholder {
  color: #aaa;
}

.city-search-clear {
  border: none;
  background: rgba(0,0,0,0.08);
  color: #666;
  font-size: 18px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}

.city-search-clear:hover {
  background: rgba(0,0,0,0.15);
}

.city-search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 12px;
  margin-top: 6px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  max-height: 240px;
  overflow-y: auto;
  z-index: 10;
}

.city-search-suggestion {
  padding: 12px 16px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s;
}

.city-search-suggestion:first-child {
  border-radius: 12px 12px 0 0;
}

.city-search-suggestion:last-child {
  border-radius: 0 0 12px 12px;
}

.city-search-suggestion:hover {
  background: rgba(255,107,53,0.08);
}

.city-search-suggestion .suggestion-count {
  font-size: 12px;
  color: #999;
  margin-left: auto;
}

.city-search-suggestion .suggestion-icon {
  color: var(--primary);
}

.city-ticker-loading {
  color: var(--text-tertiary);
  font-size: 13px;
  padding: 12px 0;
}

/* France interactive map */
.france-map-wrapper {
  max-width: 700px;
  margin: 0 auto 32px;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid rgba(255, 107, 53, 0.2);
  box-shadow: 0 8px 32px rgba(255, 107, 53, 0.1), 0 2px 8px rgba(0, 0, 0, 0.06);
  background: #fff;
}

#franceMap {
  width: 100%;
  height: 580px;
}

#franceMap .france-map-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 3px 12px rgba(255, 107, 53, 0.4);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  font-family: 'Inter', sans-serif;
}

#franceMap .france-map-marker:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.6);
}

.france-map-popup .leaflet-popup-content-wrapper {
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  padding: 0;
}

.france-map-popup .leaflet-popup-content {
  margin: 0;
  font-family: 'Inter', sans-serif;
}

.france-map-popup .leaflet-popup-tip {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.france-map-popup-inner {
  padding: 14px 18px;
  text-align: center;
  min-width: 140px;
}

.france-map-popup-city {
  font-weight: 700;
  font-size: 15px;
  color: #1E293B;
  margin-bottom: 4px;
}

.france-map-popup-count {
  font-size: 13px;
  color: #64748B;
  margin-bottom: 10px;
}

.france-map-popup-count strong {
  color: #FF6B35;
  font-weight: 700;
}

.france-map-popup-btn {
  display: inline-block;
  padding: 7px 16px;
  background: #FF6B35;
  color: #fff;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
  border: none;
}

.france-map-popup-btn:hover {
  background: #E55A2B;
}

/* Region labels on map */
.map-region-label {
  font-size: 11px;
  font-weight: 600;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  white-space: nowrap;
  pointer-events: none;
  text-shadow: 1px 1px 2px #fff, -1px -1px 2px #fff, 0 0 4px #fff;
}

/* City labels on map */
.map-city-label {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  white-space: nowrap;
  pointer-events: none;
  text-shadow: 1px 1px 2px #fff, -1px -1px 2px #fff, 0 0 4px #fff;
}

.map-city-dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  background: #475569;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
}

@media (max-width: 600px) {
  #franceMap {
    height: 320px;
  }

  .france-map-wrapper {
    margin: 0 -8px 24px;
    border-radius: 14px;
  }

  .map-region-label {
    font-size: 9px;
    letter-spacing: 1px;
  }
  .map-city-label {
    font-size: 10px;
  }
}

/* City tutors grid */
.city-tutors-container {
  max-width: 700px;
  margin: 0 auto;
  animation: fadeSlideUp 0.3s ease;
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.city-tutors-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #fff;
}

.city-tutors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.city-tutor-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--border);
  text-align: left;
  transition: transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
}

.city-tutor-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Photo wrapper with overlay */
.city-tutor-photo-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.city-tutor-photo {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.3s ease;
}

.city-tutor-card:hover .city-tutor-photo {
  transform: scale(1.05);
}

.city-tutor-photo-placeholder {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
}

.city-tutor-photo-placeholder span {
  color: #fff;
  font-weight: 800;
  font-size: 42px;
  letter-spacing: 2px;
}

/* Gradient overlay with name/city at bottom of photo */
.city-tutor-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 40px 14px 12px;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.65) 100%);
  pointer-events: none;
}

.city-tutor-overlay-name {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  margin-bottom: 2px;
}

.city-tutor-overlay-city {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  gap: 4px;
}

.city-tutor-overlay-city svg {
  flex-shrink: 0;
}

/* Price badge floating top-right of photo */
.city-tutor-price-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.city-tutor-trial-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #16a34a;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

.city-tutor-pro-badge {
  position: absolute;
  top: 42px;
  left: 12px;
  background: #2563eb;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: help;
}

.city-tutor-card:not(:has(.city-tutor-trial-badge)) .city-tutor-pro-badge {
  top: 12px;
}

.city-tutor-card .city-tutor-info {
  padding: 14px 16px 6px;
}

.city-tutor-info {
  min-width: 0;
  flex: 1;
}

.city-tutor-bio {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.city-tutor-visio {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 6px;
}

.city-tutor-visio svg {
  flex-shrink: 0;
  color: var(--text-secondary);
}

.city-tutor-see-more {
  text-align: center;
  font-size: 11px;
  font-style: italic;
  color: var(--primary);
  opacity: 0.6;
  margin-top: 8px;
  cursor: pointer;
}

.city-tutor-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.city-tutor-tag {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 107, 53, 0.08);
  color: var(--primary);
}

/* Actions row with Contacter button */
.city-tutor-actions {
  padding: 10px 16px 14px;
}

.city-tutor-contact-btn {
  display: block;
  text-align: center;
  padding: 10px 20px;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
}

.city-tutor-contact-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.city-tutor-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
}

.city-tutor-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 10px 20px;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border-radius: 10px;
  transition: background 0.2s;
}

.city-tutor-cta:hover {
  background: var(--primary-dark);
}

/* ===== SMALL MOBILE ===== */
@media (max-width: 380px) {
  .hero-buttons {
    flex-direction: row;
    gap: 6px;
  }
  .hero-buttons .btn {
    font-size: 11px;
    padding: 10px 10px;
  }

  .bp-dot {
    width: 24px;
    height: 24px;
  }

  .bp-line {
    width: 12px;
  }
}

@media (min-width: 800px) {
  .city-tutors-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }

  .bp-dot {
    width: 36px;
    height: 36px;
  }

  .bp-line {
    width: 32px;
  }

  .bp-label {
    font-size: 14px;
  }
}

/* ===== TUTOR DETAIL MODAL ===== */
.tutor-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.tutor-modal {
  position: relative;
  background: #fff;
  border-radius: 20px;
  max-width: 520px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  animation: slideUp 0.25s ease;
}

.tutor-modal #tutorModalContent {
  flex: 1;
  overflow-y: auto;
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.tutor-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.tutor-modal-close:hover {
  background: rgba(0, 0, 0, 0.6);
}

.tutor-modal-hero {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 24px 24px 0;
}

.tutor-modal-photo {
  width: 100px;
  height: 100px;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.tutor-modal-photo-placeholder {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
}

.tutor-modal-photo-placeholder span {
  color: #fff;
  font-weight: 800;
  font-size: 32px;
}

.tutor-modal-hero-info h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.tutor-modal-city {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: var(--text-secondary);
}

.tutor-modal-pricing {
  display: flex;
  gap: 16px;
  padding: 16px 24px;
  margin: 16px 24px 0;
  background: rgba(255, 107, 53, 0.06);
  border-radius: 12px;
}

.tutor-modal-price-item {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.tutor-modal-price-icon {
  font-size: 20px;
}

.tutor-modal-price-label {
  font-size: 11px;
  color: var(--text-secondary);
}

.tutor-modal-price-value {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
}

.tutor-modal-price-visio {
  color: var(--purple);
}

.tutor-modal-travel {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 24px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-secondary);
}

.tutor-modal-travel svg {
  flex-shrink: 0;
  color: var(--text-secondary);
}

.tutor-modal-map-wrap {
  padding: 0 24px;
  margin-top: 10px;
}

.tutor-modal-map-wrap #tutorModalMap {
  border: 1px solid var(--border);
}

.tutor-modal-section {
  padding: 0 24px;
  margin-top: 16px;
}

.tutor-modal-section h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.tutor-modal-section p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.tutor-modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tutor-modal-cta {
  padding: 16px 24px 20px;
  background: #fff;
  border-top: 1px solid #f0f0f0;
  border-radius: 0 0 20px 20px;
  flex-shrink: 0;
  position: sticky;
  bottom: 0;
}

.tutor-modal-cta .city-tutor-contact-btn {
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 500px) {
  .tutor-modal {
    border-radius: 16px;
    max-height: 90vh;
  }

  .tutor-modal-hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .tutor-modal-photo {
    width: 80px;
    height: 80px;
  }

  .tutor-modal-pricing {
    flex-direction: column;
    gap: 10px;
  }
}

/* ===== REVIEWS SECTION ===== */
.section-reviews {
  position: relative;
  background: transparent;
  border-top: none;
  overflow: hidden;
  border-radius: 32px;
  color: #fff;
  padding-top: 48px;
  padding-bottom: 48px;
}
.section-reviews .section-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.section-reviews h2 {
  color: #fff;
  font-size: 32px;
  margin-bottom: 8px;
}
.section-reviews .section-desc {
  color: rgba(255,255,255,0.85);
}
.section-reviews .badge-orange {
  background: rgba(255,255,255,0.2);
  color: #fff;
  font-weight: 700;
  letter-spacing: 1.5px;
  border: 1px solid rgba(255,255,255,0.3);
}
.section-reviews .reviews-loading {
  color: rgba(255, 255, 255, 0.5);
}
/* Center fade overlay to smooth shape edges */
.section-reviews::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse 80% 90% at 50% 50%, rgba(215,85,15,0.95) 0%, rgba(215,85,15,0.7) 25%, rgba(215,85,15,0.3) 50%, transparent 70%),
    radial-gradient(ellipse 60% 70% at 50% 40%, rgba(225,100,25,0.9) 0%, rgba(225,100,25,0.4) 30%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
@media (min-width: 800px) {
  .section-reviews {
    border-radius: 40px;
    padding-top: 56px;
    padding-bottom: 56px;
  }
  .section-reviews h2 {
    font-size: 38px;
  }
}

.reviews-carousel-wrapper {
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 0;
  background: transparent;
}

.reviews-carousel {
  display: flex;
  gap: 16px;
  animation: reviewsScroll 30s linear infinite;
  width: max-content;
  padding: 8px 0;
}

.reviews-carousel:hover {
  animation-play-state: paused;
}

@keyframes reviewsScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.reviews-loading {
  font-size: 14px;
  color: var(--text-tertiary);
  padding: 40px 0;
  width: 100%;
  text-align: center;
}

.review-card {
  flex-shrink: 0;
  width: 280px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}

.review-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  background: rgba(255, 255, 255, 0.15);
}

.review-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.review-card-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #FF9500);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.review-card-info {
  text-align: left;
}

.review-card-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.review-card-tutor {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
}

.review-card-tomatoes {
  font-size: 18px;
  letter-spacing: 2px;
  margin-bottom: 8px;
  text-align: left;
}

.review-card-comment {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
  text-align: left;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 640px) {
  .review-card {
    width: 240px;
    padding: 16px;
  }
}

/* ===== APP SCREENSHOT PLACEHOLDER ===== */
.app-screenshot-placeholder {
  max-width: 320px;
  margin: 0 auto 40px;
  display: flex;
  justify-content: center;
}

.app-screenshot-phone {
  width: 260px;
  height: 460px;
  border-radius: 32px;
  border: 3px dashed rgba(0, 0, 0, 0.12);
  background: rgba(248, 250, 252, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.app-screenshot-orange .app-screenshot-phone {
  border-color: rgba(255, 107, 53, 0.25);
  background: linear-gradient(180deg, rgba(255, 107, 53, 0.04) 0%, rgba(255, 107, 53, 0.08) 100%);
}

.app-screenshot-purple .app-screenshot-phone {
  border-color: rgba(124, 58, 237, 0.25);
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.04) 0%, rgba(124, 58, 237, 0.08) 100%);
}

.app-screenshot-notch {
  position: absolute;
  top: 12px;
  width: 100px;
  height: 24px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 12px;
}

.app-screenshot-orange .app-screenshot-notch {
  background: rgba(255, 107, 53, 0.12);
}

.app-screenshot-purple .app-screenshot-notch {
  background: rgba(124, 58, 237, 0.12);
}

.app-screenshot-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px;
  text-align: center;
}

.app-screenshot-icon {
  font-size: 48px;
  opacity: 0.7;
}

.app-screenshot-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

.app-screenshot-sub {
  font-size: 11px;
  color: var(--text-tertiary);
  font-style: italic;
}

/* ===== 3-PHONE SHOWCASE ===== */
.app-phones-carousel {
  margin: 0 auto 64px;
  max-width: 900px;
}

.app-phones-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.app-phone {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.5s ease, opacity 0.5s ease, order 0s;
}

/* Initial order */
.app-phone[data-pos="left"]  { order: 0; }
.app-phone[data-pos="center"] { order: 1; }
.app-phone[data-pos="right"] { order: 2; }

/* ===== iPhone 13 Frame ===== */
.phone-frame {
  position: relative;
  background: #1a1a1a;
  border-radius: 36px;
  padding: 10px 8px;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.18),
    inset 0 0 0 1px rgba(255,255,255,0.08);
  transition: box-shadow 0.5s ease;
}

/* Notch */
.phone-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  background: #1a1a1a;
  border-radius: 0 0 16px 16px;
  z-index: 3;
}

/* Home indicator bar */
.phone-frame::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 36%;
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 3px;
  z-index: 3;
}

/* Side button (power) */
.app-phone .phone-frame {
  border-right: 3px solid #2a2a2a;
}

.app-phone img {
  display: block;
  width: 100%;
  border-radius: 26px;
  image-rendering: -webkit-optimize-contrast;
}

/* Center phone */
.app-phone[data-pos="center"] {
  z-index: 2;
  transform: scale(1);
}
.app-phone[data-pos="center"] .phone-frame {
  width: 240px;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.25),
    inset 0 0 0 1px rgba(255,255,255,0.08);
}

/* Side phones */
.app-phone[data-pos="left"] {
  transform: rotate(-4deg) scale(0.85);
  opacity: 0.8;
}
.app-phone[data-pos="right"] {
  transform: rotate(4deg) scale(0.85);
  opacity: 0.8;
}
.app-phone[data-pos="left"] .phone-frame,
.app-phone[data-pos="right"] .phone-frame {
  width: 210px;
}

.app-phone[data-pos="left"]:hover,
.app-phone[data-pos="right"]:hover {
  opacity: 1;
}

/* Label under side phones */
.app-phone-label {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  opacity: 1;
  transition: opacity 0.3s ease, height 0.3s ease, margin 0.3s ease;
  white-space: nowrap;
}
.app-phone[data-pos="center"] .app-phone-label {
  opacity: 0;
  height: 0;
  margin: 0;
  overflow: hidden;
}

/* Caption under center */
.app-phones-caption {
  text-align: center;
  margin-top: 12px;
  min-height: 52px;
}

.app-phones-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 4px;
  transition: opacity 0.3s ease;
}

.app-phones-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0 auto;
  max-width: 400px;
  line-height: 1.5;
  transition: opacity 0.3s ease;
}

.app-phones-purple .app-phones-title {
  color: #7C3AED;
}

/* Mobile */
@media (max-width: 700px) {
  .app-phones-row { gap: 8px; }
  .app-phone[data-pos="center"] .phone-frame { width: 180px; }
  .app-phone[data-pos="left"] .phone-frame,
  .app-phone[data-pos="right"] .phone-frame { width: 145px; }
  .phone-frame { border-radius: 28px; padding: 8px 6px; }
  .phone-frame::before { width: 70px; height: 18px; border-radius: 0 0 12px 12px; }
  .phone-frame::after { height: 3px; }
  .app-phone img { border-radius: 20px; }
  .app-phone-label { font-size: 11px; }
}

@media (max-width: 420px) {
  .app-phones-row { gap: 4px; }
  .app-phone[data-pos="center"] .phone-frame { width: 150px; }
  .app-phone[data-pos="left"] .phone-frame,
  .app-phone[data-pos="right"] .phone-frame { width: 115px; }
  .phone-frame { border-radius: 22px; padding: 6px 5px; }
  .phone-frame::before { width: 55px; height: 14px; border-radius: 0 0 10px 10px; }
  .app-phone img { border-radius: 16px; }
}

/* ===== COMPACT CARD STYLES ===== */
.compact-card {
  cursor: pointer;
  text-align: center;
}

.compact-card-icon {
  font-size: 32px;
  margin-bottom: 8px;
  line-height: 1;
}

.compact-card-oneliner {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 4px;
}

/* Card detail (hidden by default) */
.card-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.3s ease, margin 0.3s ease;
  opacity: 0;
  margin-top: 0;
}

.compact-card.expanded .card-detail {
  max-height: 200px;
  opacity: 1;
  margin-top: 12px;
}

.card-detail p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  text-align: left;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.card-detail p strong {
  color: var(--text-primary);
  font-weight: 700;
}

/* Expand / collapse link */
.card-expand-link {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  margin-top: 6px;
  cursor: pointer;
  transition: color 0.2s;
  position: relative;
  z-index: 2;
}

.section-tutors .card-expand-link {
  color: var(--purple);
}

.card-expand-link:hover {
  opacity: 0.8;
}

/* Tutor cards compact overrides */
.tutor-card.compact-card {
  cursor: pointer;
}

.tutor-card.compact-card .tutor-text .compact-card-oneliner {
  margin-bottom: 0;
}

.tutor-card.compact-card .tutor-text .card-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.3s ease, margin 0.3s ease;
  opacity: 0;
  margin-top: 0;
}

.tutor-card.compact-card.expanded .tutor-text .card-detail {
  max-height: 200px;
  opacity: 1;
  margin-top: 10px;
}

/* ===== RESPONSIVE: Screenshot + Compact cards ===== */
@media (min-width: 800px) {
  .app-screenshot-placeholder {
    max-width: 360px;
  }

  .app-screenshot-phone {
    width: 300px;
    height: 520px;
    border-radius: 36px;
  }

  .app-screenshot-notch {
    width: 120px;
    height: 28px;
    top: 14px;
  }

  .app-screenshot-icon {
    font-size: 56px;
  }

  .app-screenshot-text {
    font-size: 16px;
  }

  /* Tutor compact cards: 3x2 flex */
  .tutor-cards-compact {
    flex-direction: row;
    flex-wrap: wrap;
    max-width: 900px;
    align-items: start;
  }

  .tutor-cards-compact > .tutor-card {
    flex: 1 1 calc(33.333% - 10px);
    min-width: 0;
  }

  .tutor-card.compact-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .tutor-card.compact-card .tutor-text {
    text-align: center;
  }

  .tutor-card.compact-card .card-detail p {
    text-align: left;
  }
}

@media (max-width: 799px) {
  .app-screenshot-phone {
    width: 220px;
    height: 380px;
    border-radius: 28px;
  }

  .app-screenshot-notch {
    width: 80px;
    height: 20px;
    top: 10px;
  }

  .compact-card-icon {
    font-size: 28px;
  }
}

/* ===== TRUST BADGES ===== */
.trust-badges {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  opacity: 0.7;
}

.trust-badge svg {
  color: var(--primary);
  flex-shrink: 0;
}

/* ===== ANIMATED COUNTERS ===== */
.counter-animated {
  display: inline-block;
}

/* ===== SCROLL TO TOP BUTTON ===== */
.scroll-top-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.2s;
  z-index: 999;
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* ===== MOBILE STICKY CTA ===== */
.mobile-sticky-cta {
  display: none;
}

@media (max-width: 700px) {
  .mobile-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 998;
    padding: 10px 16px;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    display: none;
    text-align: center;
  }

  .mobile-sticky-cta.visible {
    display: block;
  }

  .mobile-sticky-cta-btn {
    width: 100%;
    max-width: 400px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 14px;
  }

  /* Offset scroll-to-top above sticky CTA */
  .scroll-top-btn {
    bottom: 80px;
    right: 16px;
    width: 40px;
    height: 40px;
  }

  .trust-badges {
    gap: 12px;
  }

  .trust-badge {
    font-size: 11px;
  }
}

/* ===== TOUCH SWIPE CAROUSEL ===== */
.app-phones-row {
  touch-action: pan-y;
}

.top-tutors-track {
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}

.top-tutor-slide {
  scroll-snap-align: center;
}

/* Reduce animations for users who prefer it + performance */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}