/* ============================================
   DOUCEO V2 — Dark Immersive Experience
   3D Water Particles + Cinematic Scroll
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
  --bg: #f0f7fa;
  --bg-secondary: #e4f0f6;
  --bg-card: rgba(255, 255, 255, 0.7);
  --bg-glass: rgba(255, 255, 255, 0.6);
  --border-glass: rgba(0, 80, 120, 0.1);
  --text: #0a1e2e;
  --text-secondary: #3d5a6e;
  --text-muted: #7a95a8;
  --accent: #1E88E5;
  --accent-glow: rgba(30, 136, 229, 0.2);
  --teal: #26A69A;
  --font: 'Outfit', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
}

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

html { -webkit-font-smoothing: antialiased; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ---- Cursor Glow ---- */
.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  opacity: 0.25;
  transition: opacity 0.3s;
  will-change: transform;
}

/* ---- Nav ---- */
.nav-v2 {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 0 3rem;
  transition: background 0.4s var(--ease);
}

.nav-v2.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-glass);
}

.nav-v2-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.nav-v2 .logo img { height: 55px; }

.nav-v2-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-v2-links a {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color 0.3s;
  position: relative;
}

.nav-v2-links a:hover { color: var(--accent); }

.btn-glow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  background: linear-gradient(135deg, #1E88E5, #26A69A);
  border: none;
  color: #ffffff;
  border-radius: var(--radius-full);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s var(--ease);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(30, 136, 229, 0.25);
}

.btn-glow::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  transition: opacity 0.4s;
  border-radius: inherit;
}

.btn-glow:hover::before { opacity: 0.1; }
.btn-glow:hover { box-shadow: 0 8px 24px rgba(30, 136, 229, 0.35); color: #ffffff; transform: translateY(-2px); }

.btn-glow svg { width: 16px; height: 16px; }

.btn-solid {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2.25rem;
  background: linear-gradient(135deg, #1E88E5, #26A69A);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.4s var(--ease);
  text-decoration: none;
  box-shadow: 0 0 40px var(--accent-glow);
}

.btn-solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(30, 136, 229, 0.35);
  color: #ffffff;
}

.btn-solid svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.btn-solid:hover svg { transform: translateX(4px); }

/* ---- Hero ---- */
.hero-v2 {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: url('pexels-matreding-28271492.jpg') center/cover no-repeat;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

#hero-canvas.loaded {
  opacity: 1;
}

.hero-v2-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 2rem;
}

.hero-v2-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 1.5rem;
  opacity: 0;
}

.hero-v2-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
}

.hero-v2-title .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  margin-right: 0.3em;
}

.hero-v2-title .word span {
  display: inline-block;
  transform: translateY(110%);
}

.hero-v2-title .accent-word span {
  background: linear-gradient(135deg, #1E88E5, #26A69A);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-v2-sub {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 550px;
  margin: 0 auto 2.5rem;
  opacity: 0;
}

.hero-v2-cta { opacity: 0; }

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scroll-indicator .line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ---- Section Base ---- */
.section-v2 {
  padding: 8rem 3rem;
  position: relative;
}

.container-v2 {
  max-width: 1400px;
  margin: 0 auto;
}

.section-label-v2 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-label-v2::before {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--accent);
}

/* ---- Stats ---- */
.stats-v2 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-glass);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-glass);
}

.stat-v2 {
  background: #ffffff;
  padding: 3rem 2rem;
  text-align: center;
}

.stat-v2-number {
  font-family: var(--font);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
}

.stat-v2-number .accent { color: var(--teal); }

.stat-v2-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ---- Horizontal Scroll ---- */
.hscroll-section {
  overflow: visible !important;
}

.hscroll-section,
.hscroll-section > .pin-spacer,
.pin-spacer {
  overflow: visible !important;
}

.hscroll-track {
  display: flex;
  gap: 3rem;
  padding: 2rem 3rem 4rem;
  will-change: transform;
}

.hscroll-card {
  min-width: 750px;
  max-width: 750px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  flex-shrink: 0;
  max-height: calc(100vh - 220px);
  overflow: hidden;
}

.hscroll-card-visual {
  background: linear-gradient(135deg, rgba(30, 136, 229, 0.05), rgba(38, 166, 154, 0.05));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  height: 100%;
  max-height: 320px;
}

.hscroll-card-visual img {
  max-height: 280px;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 30px rgba(30, 136, 229, 0.12));
}

.hscroll-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.hscroll-card p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.badge-v2 {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

/* ---- Process Timeline ---- */
.timeline-v2 {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.timeline-v2-line {
  position: absolute;
  left: 23px;
  top: 0;
  width: 2px;
  height: 100%;
  background: var(--border-glass);
}

.timeline-v2-progress {
  position: absolute;
  left: 23px;
  top: 0;
  width: 2px;
  height: 0%;
  background: linear-gradient(to bottom, #1E88E5, #26A69A);
  transition: height 0.1s;
}

.timeline-step {
  display: flex;
  gap: 2rem;
  padding: 2rem 0;
  position: relative;
}

.timeline-step-dot {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: all 0.5s var(--ease);
  z-index: 1;
}

.timeline-step.active .timeline-step-dot {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

.timeline-step h4 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.timeline-step p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ---- Testimonials ---- */
.testimonials-v2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.testimonial-v2 {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 2rem;
  backdrop-filter: blur(10px);
  transition: all 0.4s var(--ease);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-v2:hover {
  border-color: rgba(30, 136, 229, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.testimonial-v2-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 1rem;
}

.testimonial-v2-stars svg { width: 14px; height: 14px; fill: #f59e0b; color: #f59e0b; }

.testimonial-v2 blockquote {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1.5rem;
  font-style: normal;
}

.testimonial-v2-author {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ---- CTA ---- */
.cta-v2 {
  text-align: center;
  padding: 10rem 3rem;
  position: relative;
  overflow: hidden;
}

.cta-v2::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 800px;
  height: 800px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(30, 136, 229, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.cta-v2 h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  position: relative;
}

.cta-v2 p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto 2.5rem;
  position: relative;
}

/* ---- Footer ---- */
.footer-v2 {
  background: #0f1729;
  color: rgba(255, 255, 255, 0.7);
  border-top: none;
  padding: 4rem 3rem 2rem;
}

.footer-v2-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-glass);
  margin-bottom: 1.5rem;
}

/* Tablette : 3 colonnes (5 → 3) */
@media (max-width: 1100px) and (min-width: 769px) {
  .footer-v2-grid { grid-template-columns: 1fr 1fr 1fr; gap: 2rem; }
}

.footer-v2 .brand-desc {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer-v2 h4 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.footer-v2 ul li { margin-bottom: 0.5rem; }
.footer-v2 a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  transition: color 0.3s;
}
.footer-v2 a:hover { color: #26A69A; }

.footer-v2-contact {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.footer-v2-contact svg {
  width: 14px;
  height: 14px;
  color: #26A69A;
  flex-shrink: 0;
}

.footer-v2-contact { color: rgba(255, 255, 255, 0.5); }
.footer-v2 .brand-desc { color: rgba(255, 255, 255, 0.45); }

.footer-v2-bottom {
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-v2-bottom { color: rgba(255, 255, 255, 0.3); }
.footer-v2-bottom a { color: rgba(255, 255, 255, 0.3); }

/* ---- Legacy compat (blog articles) ---- */
.section { padding: 4rem 0; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }
.bg-white, .bg-surface { background: var(--bg); }
.bg-light, .bg-muted { background: var(--bg-secondary); }
.section-title { text-align: center; margin-bottom: 2.5rem; }
.section-title h2 { margin-bottom: 0.5rem; }
.section-title p { color: var(--text-secondary); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

/* Blog article content */
.blog-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.blog-content h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.blog-content h2 { margin-top: 2.5rem; margin-bottom: 1rem; font-size: 1.5rem; }
.blog-content h3 { margin-top: 2rem; margin-bottom: 0.75rem; font-size: 1.2rem; }
.blog-content p { line-height: 1.85; margin-bottom: 1.25rem; color: var(--text-secondary); }
.blog-content a { color: var(--accent); }
.blog-content strong { color: var(--text); }
.blog-content ul, .blog-content ol { margin-bottom: 1.25rem; padding-left: 1.5rem; color: var(--text-secondary); }
.blog-content li { margin-bottom: 0.4rem; line-height: 1.7; }
.blog-content img { border-radius: var(--radius); margin: 1.5rem 0; }

.blog-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.breadcrumb {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.breadcrumb a { color: var(--accent); }

.blog-callout {
  background: rgba(30, 136, 229, 0.06);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.blog-callout p { margin-bottom: 0; }

.toc {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.toc h3 { font-size: 1rem; margin-bottom: 0.75rem; }
.toc a { color: var(--accent); font-size: 0.88rem; }
.toc ol, .toc ul { padding-left: 1.25rem; }
.toc li { margin-bottom: 0.4rem; }

.blog-table, .table-responsive table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin: 1.5rem 0;
}

.blog-table th, .blog-table td,
.table-responsive th, .table-responsive td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-glass);
  text-align: left;
}

.blog-table th, .table-responsive th {
  background: var(--bg-secondary);
  font-weight: 600;
  color: var(--text);
}

.table-responsive { overflow-x: auto; }

/* Blog hero for articles */
.blog-hero {
  padding-top: 8rem;
  padding-bottom: 2rem;
  background: var(--bg-secondary);
}

/* Product showcase in articles */
.product-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin: 2rem 0;
}

.how-it-works {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.vs-visual {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  margin: 2rem 0;
}

/* Legacy card styles */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* Legacy footer for articles */
footer:not(.footer-v2) {
  background: #0f1729;
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 0 1.5rem;
}

footer:not(.footer-v2) .footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

footer:not(.footer-v2) .footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

footer:not(.footer-v2) .footer-col h4 { color: #fff; font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 1rem; }
footer:not(.footer-v2) .footer-col ul { list-style: none; }
footer:not(.footer-v2) .footer-col ul li { margin-bottom: 0.5rem; }
footer:not(.footer-v2) .footer-col a { color: rgba(255, 255, 255, 0.5); font-size: 0.85rem; }
footer:not(.footer-v2) .footer-col a:hover { color: #26A69A; }
footer:not(.footer-v2) .footer-col p { font-size: 0.85rem; color: rgba(255, 255, 255, 0.5); }
footer:not(.footer-v2) .footer-col img { height: 40px !important; margin-bottom: 1rem; }
footer:not(.footer-v2) .footer-copyright { text-align: center; font-size: 0.78rem; color: rgba(255, 255, 255, 0.3); }
footer:not(.footer-v2) .footer-copyright a { color: rgba(255, 255, 255, 0.35); }

/* Legacy nav for old-style pages */
nav:not(.nav-v2) {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  padding: 0 2rem;
}

nav:not(.nav-v2) .nav-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

nav:not(.nav-v2) .logo img { height: 64px !important; width: auto !important; }

nav:not(.nav-v2) .nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

nav:not(.nav-v2) .nav-links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  transition: color 0.3s;
}

nav:not(.nav-v2) .nav-links a:hover { color: var(--accent); }
nav:not(.nav-v2) .nav-links .btn { background: linear-gradient(135deg, #1E88E5, #26A69A); color: #fff !important; padding: 0.5rem 1.25rem; border-radius: var(--radius-full); font-size: 0.85rem; }

nav:not(.nav-v2) .hamburger { display: none; flex-direction: column; cursor: pointer; gap: 5px; }
nav:not(.nav-v2) .hamburger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

@media (max-width: 1024px) {
  .product-hero { grid-template-columns: 1fr; }
  .how-it-works { grid-template-columns: 1fr; }
  .vs-visual { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  nav:not(.nav-v2) .nav-links { display: none; }
  nav:not(.nav-v2) .hamburger { display: flex; }
  footer:not(.footer-v2) .footer-grid { grid-template-columns: 1fr 1fr; }
  .blog-content { padding: 1.5rem 1rem; }
}

@media (max-width: 480px) {
  footer:not(.footer-v2) .footer-grid { grid-template-columns: 1fr; }
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .hscroll-card {
    min-width: 85vw;
    max-width: 85vw;
    grid-template-columns: 1fr;
    max-height: none;
    overflow: visible;
  }
  .hscroll-card-visual {
    max-height: 250px;
  }
  .hscroll-card-visual img {
    max-height: 220px;
  }
  .testimonials-v2 { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
  .testimonial-v2:nth-child(2) { transform: none; }
}

.nav-v2-hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 201;
}
.nav-v2-hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.nav-v2-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-v2-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-v2-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Hide mobile menu overlay on desktop by default */
.mobile-menu-overlay { display: none !important; }

@media (max-width: 768px) {
  .section-v2 { padding: 5rem 1.5rem; }
  .nav-v2 { padding: 0 1.5rem; }
  .nav-v2-hamburger { display: flex; }
  .nav-v2-hamburger { z-index: 10001; position: fixed; top: 1.5rem; right: 1.5rem; }
  /* Mobile menu overlay */
  .mobile-menu-overlay {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: #ffffff;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 10000;
    touch-action: none;
    overflow: hidden;
    -webkit-overflow-scrolling: none;
    overscroll-behavior: none;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }
  .mobile-menu-overlay.active { display: flex !important; }
  .mobile-menu-overlay a { font-size: 1.3rem; color: var(--text); text-decoration: none; font-weight: 600; }
  .mobile-menu-overlay .btn-glow { font-size: 1rem; }
  /* Block body scroll when menu is open */
  body.menu-open { overflow: hidden; position: fixed; width: 100%; }
  /* Hide original nav links on mobile */
  .nav-v2-links { display: none !important; }
  /* Remove backdrop-filter on mobile */
  .nav-v2.scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .stats-v2 { grid-template-columns: 1fr 1fr; }
  .footer-v2-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .footer-v2 { padding: 3rem 1.5rem 1.5rem; }
  .cta-v2 { padding: 6rem 1.5rem; }
  .hero-v2-title { font-size: clamp(2rem, 8vw, 3rem); }

  /* GSAP animations work on mobile now that Lenis is disabled */

  /* Horizontal scroll → vertical stack on mobile */
  .hscroll-section { overflow: visible !important; }
  .hscroll-track {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem;
    padding: 0 1.5rem;
    transform: none !important;
  }
  .hscroll-card {
    min-width: 100% !important;
    max-width: 100% !important;
  }
}

@media (max-width: 480px) {
  .stats-v2 { grid-template-columns: 1fr; }
  .footer-v2-grid { grid-template-columns: 1fr; }
  .hscroll-card {
    min-width: 90vw;
    max-width: 90vw;
    padding: 1.5rem;
    grid-template-columns: 1fr;
    max-height: none;
    overflow: visible;
  }
}
