/* =====================================================
   WiseNkap — Landing Page Styles
   ===================================================== */

/* --- RESET & BASE --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --gold: #E8C56A;
  --green-900: #1B4332;
  --green-800: #2D6A4F;
  --green-700: #40916C;
  --green-500: #52B788;
  --green-200: #B7E4C7;
  --green-100: #D8F3DC;
  --green-50: #F0FFF4;
  --gray-50: #F8F9FA;
  --gray-100: #F6F6F6;
  --gray-200: #E9ECEF;
  --gray-300: #DEE2E6;
  --gray-400: #ADB5BD;
  --gray-600: #6C757D;
  --gray-800: #343A40;
  --gray-900: #212529;
  --white: #FFFFFF;
  --black: #0A0A0A;

  --primary: var(--green-800);
  --primary-light: var(--green-700);
  --primary-dark: var(--green-900);
  --accent: var(--green-500);
  --accent-light: var(--green-100);
  --bg: var(--gray-50);
  --surface: var(--white);
  --border: var(--gray-200);
  --text: var(--gray-800);
  --text-muted: var(--gray-600);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 24px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.10), 0 4px 16px rgba(0,0,0,0.04);
  --shadow-xl: 0 24px 80px rgba(0,0,0,0.14), 0 8px 24px rgba(0,0,0,0.06);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
}

/* --- UTILITIES --- */
.text-primary {
  color: var(--primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 15px;
  border-radius: 50px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  padding: 14px 28px;
  box-shadow: 0 4px 16px rgba(45, 106, 79, 0.3);
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(45, 106, 79, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  background: var(--white);
  color: var(--primary);
  padding: 14px 28px;
  border: 2px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  background: var(--green-50);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 14px;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  background: var(--accent-light);
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--gray-900);
  margin-bottom: 16px;
}

.section-header p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* --- NAVIGATION --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: var(--transition);
  padding: 8px 0;
}

.nav:not(.scrolled) .nav-logo,
.nav:not(.scrolled) .nav-links a:not(.btn-primary) {
  color: rgba(255, 255, 255, 0.92);
}

.nav:not(.scrolled) .nav-links a:not(.btn-primary):hover {
  color: var(--white);
}

.nav:not(.scrolled) .nav-toggle span {
  background: var(--white);
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 22px;
  color: var(--gray-900);
}

.nav-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.nav:not(.scrolled) .nav-logo-img {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35), 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.nav:not(.scrolled) .nav-logo span {
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  color: #ffffff;
  font-size: 24px;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-700);
  transition: var(--transition);
}

.nav-links a:not(.btn-primary) {
  text-decoration: none;
  text-underline-offset: 5px;
  text-decoration-thickness: 2px;
}

/* Active + hover indicator — scrolled nav */
.nav.scrolled .nav-links a:not(.btn-primary):hover,
.nav.scrolled .nav-links a:not(.btn-primary).active {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: var(--primary);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.nav.scrolled .nav-links a:not(.btn-primary).active {
  font-weight: 600;
}

/* Active + hover indicator — hero (not scrolled) */
.nav:not(.scrolled) .nav-links a:not(.btn-primary):hover,
.nav:not(.scrolled) .nav-links a:not(.btn-primary).active {
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.75);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

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

.nav-links .btn-primary {
  color: var(--white);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-800);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- HERO --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(170deg, #1B4332 0%, #2D6A4F 40%, #40916C 80%, #52B788 100%);
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
}

.hero-blob-1 {
  width: 600px;
  height: 600px;
  background: #edf0ee;
  top: -200px;
  right: -100px;
  animation: blobFloat 20s ease-in-out infinite;
}

.hero-blob-2 {
  width: 400px;
  height: 400px;
  background: #D8F3DC;
  bottom: -100px;
  left: -50px;
  animation: blobFloat 15s ease-in-out infinite reverse;
}

.hero-blob-3 {
  width: 300px;
  height: 300px;
  background: #FFFFFF;
  top: 50%;
  left: 50%;
  opacity: 0.05;
  animation: blobPulse 8s ease-in-out infinite;
}

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

@keyframes blobPulse {
  0%, 100% { transform: scale(1); opacity: 0.05; }
  50% { transform: scale(1.2); opacity: 0.1; }
}

.hero-container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px 120px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-content {
  color: var(--white);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 28px;
  color: rgba(255,255,255,0.9);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #52B788;
  box-shadow: 0 0 12px rgba(82, 183, 136, 0.6);
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-title-highlight {
  color: var(--gold);
  position: relative;
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  max-width: 500px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.hero-actions .btn-outline {
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border-color: rgba(255,255,255,0.25);
}

.hero-actions .btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.5);
}

.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-stat-value {
  font-size: 16px;
  font-weight: 700;
  color: #52B788;
}

.hero-stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}

/* Hero Phone Mockup */
.hero-mockup {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
}

.hero-phone {
  position: relative;
  width: 280px;
  height: 570px;
  background: #0A0A0A;
  border-radius: 40px;
  padding: 12px;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255,255,255,0.1);
  z-index: 2;
  animation: phoneRotate 8s ease-in-out infinite;
  will-change: transform;
  transform-origin: center center;
}

.hero-phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 28px;
  background: #0A0A0A;
  border-radius: 0 0 20px 20px;
  z-index: 3;
}

.hero-phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 30px;
  overflow: hidden;
  background: var(--white);
}

.hero-phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.hero-phone-shadow {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 40px;
  background: rgba(0,0,0,0.3);
  border-radius: 50%;
  filter: blur(20px);
  z-index: 1;
}

/* --- Phone 3D Rotation --- */
@keyframes phoneRotate {
  0%   { transform: rotateY(-10deg) rotateX(2deg); }
  25%  { transform: rotateY(0deg) rotateX(-1deg); }
  50%  { transform: rotateY(10deg) rotateX(2deg); }
  75%  { transform: rotateY(0deg) rotateX(-1deg); }
  100% { transform: rotateY(-10deg) rotateX(2deg); }
}

.hero-float-card {
  position: absolute;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: var(--radius);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  z-index: 3;
  animation: floatCard 6s ease-in-out infinite;
  font-size: 14px;
}

.hero-float-card strong {
  display: block;
  font-size: 15px;
  color: var(--gray-900);
}

.hero-float-card small {
  color: var(--text-muted);
  font-size: 12px;
}

.hero-float-card .float-icon {
  font-size: 24px;
}

.hero-float-1 {
  top: 10%;
  right: -20px;
  animation-delay: 0s;
}

.hero-float-2 {
  bottom: 20%;
  left: -30px;
  animation-delay: 3s;
}

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

/* Hero Wave */
.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  z-index: 1;
}

.hero-wave svg {
  width: 100%;
  height: 120px;
  display: block;
}

/* --- FEATURES --- */
.features {
  padding: 120px 0;
  background: var(--bg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: var(--transition-slow);
  position: relative;
  overflow: hidden;
}

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

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

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

.feature-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  border-radius: var(--radius);
  margin-bottom: 20px;
  color: var(--primary);
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  background: var(--primary);
  color: var(--white);
  transform: scale(1.05);
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- SCREENSHOTS --- */
.screenshots {
  padding: 120px 0;
  background: var(--white);
}

.screenshots-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 100%;
  overflow: hidden;
}

.screenshots-track {
  display: flex;
  gap: 32px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 20px 0;
  scrollbar-width: none;
  flex: 1;
}

.screenshots-track::-webkit-scrollbar {
  display: none;
}

.screenshot-card {
  flex: 0 0 auto;
  scroll-snap-align: center;
  text-align: center;
}

.screenshot-frame {
  width: 260px;
  height: 530px;
  background: #0A0A0A;
  border-radius: 36px;
  padding: 10px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 16px;
}

.screenshot-frame img {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  object-fit: cover;
  object-position: top;
}

.screenshot-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
}

.carousel-btn {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
  transition: var(--transition);
  flex-shrink: 0;
}

.carousel-btn:hover {
  background: var(--accent-light);
  border-color: var(--primary);
  color: var(--primary);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray-300);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.carousel-dot.active {
  background: var(--primary);
  width: 28px;
  border-radius: 5px;
}

/* --- HOW IT WORKS --- */
.how {
  padding: 120px 0;
  background: var(--bg);
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
}

.step {
  flex: 1;
  text-align: center;
  padding: 36px 24px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
}

.step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.step-number {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(45, 106, 79, 0.4);
}

.step-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  border-radius: var(--radius);
  color: var(--primary);
}

.step h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.step p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.step-connector {
  width: 60px;
  height: 2px;
  background: var(--gray-300);
  margin-top: 60px;
  flex-shrink: 0;
  position: relative;
}

.step-connector::after {
  content: '';
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* --- BENEFITS --- */
.benefits {
  padding: 120px 0;
  background: var(--white);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.benefit-card {
  text-align: center;
  padding: 32px 20px;
  border-radius: var(--radius-lg);
  background: var(--bg);
  transition: var(--transition);
}

.benefit-card:hover {
  background: var(--accent-light);
}

.benefit-icon {
  font-size: 40px;
  margin-bottom: 16px;
  display: block;
}

.benefit-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.benefit-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- STATS --- */
.stats-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
  z-index: 1;
}

.stat-item {
  text-align: center;
  color: var(--white);
}

.stat-value {
  font-size: 48px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-suffix {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* --- DOWNLOAD --- */
.download {
  padding: 120px 0;
  background: var(--bg);
}

.download-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}

.download-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-light) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.download-content {
  position: relative;
  z-index: 1;
}

.download-content h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--gray-900);
  margin: 16px 0;
}

.download-content p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 480px;
}

.download-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.download-btn {
  box-shadow: 0 8px 32px rgba(45, 106, 79, 0.3);
}

.download-info {
  font-size: 13px;
  color: var(--text-muted);
  padding-left: 8px;
}

.download-visual {
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.download-phone-mockup {
  width: 240px;
  height: 490px;
  background: #0A0A0A;
  border-radius: 36px;
  padding: 10px;
  box-shadow: var(--shadow-xl);
}

.download-phone-mockup img {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  object-fit: cover;
  object-position: top;
}

/* --- FOOTER --- */
.footer {
  padding: 80px 0 32px;
  background: var(--gray-900);
  color: var(--white);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  line-height: 1.7;
  margin-top: 16px;
  max-width: 340px;
}

.footer-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
}

.social-link:hover {
  background: var(--primary);
  color: var(--white);
}

.footer-links h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-links a {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 12px;
  transition: var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 32px;
  text-align: center;
}

.footer-bottom p {
  font-size: 14px;
  color: rgba(255,255,255,0.4);
}

/* --- ANIMATIONS --- */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.features-grid .feature-card:nth-child(1) { transition-delay: 0s; }
.features-grid .feature-card:nth-child(2) { transition-delay: 0.1s; }
.features-grid .feature-card:nth-child(3) { transition-delay: 0.2s; }
.features-grid .feature-card:nth-child(4) { transition-delay: 0.15s; }
.features-grid .feature-card:nth-child(5) { transition-delay: 0.25s; }
.features-grid .feature-card:nth-child(6) { transition-delay: 0.35s; }

.benefits-grid .benefit-card:nth-child(1) { transition-delay: 0s; }
.benefits-grid .benefit-card:nth-child(2) { transition-delay: 0.1s; }
.benefits-grid .benefit-card:nth-child(3) { transition-delay: 0.2s; }
.benefits-grid .benefit-card:nth-child(4) { transition-delay: 0.3s; }

.step:nth-child(1) { transition-delay: 0s; }
.step:nth-child(3) { transition-delay: 0.15s; }
.step:nth-child(5) { transition-delay: 0.3s; }

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-mockup {
    order: -1;
  }

  .hero-phone {
    width: 240px;
    height: 490px;
  }

  .hero-float-card {
    display: none;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
  }

  .download-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 48px 32px;
  }

  .download-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .download-actions {
    align-items: center;
  }

  .download-visual {
    display: none;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .steps {
    flex-direction: column;
    align-items: center;
    gap: 48px;
  }

  .step-connector {
    width: 2px;
    height: 40px;
    margin-top: 0;
  }
}

@media (max-width: 640px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--surface);
    flex-direction: column;
    padding: 100px 32px 32px;
    gap: 24px;
    box-shadow: var(--shadow-xl);
    transition: var(--transition);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-toggle {
    display: flex;
    z-index: 1001;
  }

  .hero {
    padding-top: 60px;
  }

  .hero-title {
    font-size: 32px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .stat-value {
    font-size: 36px;
  }

  .download-card {
    padding: 32px 20px;
    border-radius: var(--radius-lg);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .carousel-btn {
    display: none;
  }

  .screenshot-frame {
    width: 220px;
    height: 450px;
  }

  .hero-phone {
    width: 220px;
    height: 450px;
    border-radius: 32px;
  }

  .hero-phone-screen {
    border-radius: 24px;
  }
}

/* =====================================================
   STORE BUTTONS
   ===================================================== */

.hero-stores {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
  text-decoration: none;
  transition: var(--transition);
  min-width: 170px;
}

.btn-store:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.btn-store svg {
  flex-shrink: 0;
}

.btn-store-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.btn-store-text span:first-child {
  font-size: 11px;
  opacity: 0.75;
  font-weight: 400;
  line-height: 1;
}

.btn-store-text span:last-child {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.15;
}

.btn-store-dark {
  background: #0A0A0A;
  border-color: #2a2a2a;
  color: var(--white);
}

.btn-store-dark:hover {
  background: #1a1a1a;
  border-color: #444;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.btn-store-soon {
  opacity: 0.65;
  cursor: pointer;
  position: relative;
}

.btn-store-soon:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.btn-store-soon::after {
  content: 'Bientôt';
  position: absolute;
  top: -10px;
  right: -6px;
  font-size: 10px;
  font-weight: 700;
  background: var(--gold);
  color: #1A1A1A;
  padding: 2px 8px;
  border-radius: 50px;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.download-stores {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

/* =====================================================
   PROBLEM / SOLUTION SECTION
   ===================================================== */

.problem {
  padding: 120px 0 0;
  background: var(--bg);
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 0;
}

.pain-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
  transition: var(--transition-slow);
}

.pain-stripe {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ef4444, #f97316);
}

.pain-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #f97316;
}

.pain-icon {
  font-size: 40px;
  margin-bottom: 16px;
  display: block;
  line-height: 1;
}

.pain-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 10px;
}

.pain-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

.solution-bridge {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 72px 0 80px;
}

.solution-bridge-bar {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green-200), transparent);
}

.solution-bridge-content {
  text-align: center;
  flex-shrink: 0;
  max-width: 480px;
}

.solution-bridge-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 12px;
}

.solution-bridge-content h3 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.solution-bridge-content p {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

/* =====================================================
   VISION / VALUES SECTION
   ===================================================== */

.vision {
  padding: 120px 0;
  background: var(--white);
}

.vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.vision-content h2 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--gray-900);
  margin: 16px 0 24px;
}

.vision-lead {
  font-size: 18px;
  font-weight: 500;
  color: var(--gray-800);
  line-height: 1.6;
  margin-bottom: 16px;
}

.vision-body {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.vision-body strong {
  color: var(--primary);
  font-weight: 700;
}

.vision-values {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.value-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 24px;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.value-card:hover {
  background: var(--accent-light);
  border-color: var(--primary);
}

.value-icon {
  font-size: 26px;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.value-body h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.value-body p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* =====================================================
   HERO SCROLL INDICATOR
   ===================================================== */

.hero-scroll {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  background: rgba(255, 255, 255, 0.15);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: scrollBounce 2s ease-in-out infinite;
  transition: opacity 0.4s ease, background 0.25s ease;
}

.hero-scroll:hover {
  background: rgba(255, 255, 255, 0.25);
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(9px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scroll { animation: none; }
  .hero-phone { animation: none; }
}

/* =====================================================
   TESTIMONIALS
   ===================================================== */

.testimonials {
  padding: 120px 0;
  background: var(--bg);
}

.testimonials-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
}

.testimonials-grid {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 12px 4px 32px;
  scrollbar-width: none;
  cursor: grab;
  flex: 1;
}

.testimonials-grid::-webkit-scrollbar {
  display: none;
}

.testimonials-grid:active {
  cursor: grabbing;
}

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: var(--transition-slow);
  flex: 0 0 360px;
  scroll-snap-align: start;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.testimonial-stars {
  color: #F59E0B;
  font-size: 17px;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 15px;
  color: var(--gray-700);
  line-height: 1.75;
  flex: 1;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--primary);
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

.testimonial-author strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-900);
}

.testimonial-author span {
  font-size: 13px;
  color: var(--text-muted);
}

/* =====================================================
   iOS NOTIFICATION MODAL
   ===================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 48px 40px 40px;
  max-width: 440px;
  width: 100%;
  position: relative;
  text-align: center;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: var(--shadow-xl);
}

.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--gray-100);
  color: var(--gray-600);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--gray-200);
  color: var(--gray-900);
}

.modal-icon {
  width: 72px;
  height: 72px;
  background: var(--black);
  border-radius: 18px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.modal h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.modal > p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-phone-input {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  background: var(--bg);
  overflow: hidden;
  transition: var(--transition);
}

.modal-phone-input:focus-within {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.12);
}

.modal-phone-flag {
  padding: 14px 14px 14px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-600);
  white-space: nowrap;
  border-right: 1px solid var(--border);
  background: var(--gray-100);
  user-select: none;
}

.modal-phone-input input[type="tel"] {
  flex: 1;
  padding: 14px 16px;
  border: none;
  background: transparent;
  font-family: var(--font);
  font-size: 16px;
  color: var(--text);
  outline: none;
  letter-spacing: 0.05em;
}

.modal-form .btn-primary {
  width: 100%;
  justify-content: center;
  padding: 14px;
  font-size: 15px;
}

.modal-note {
  font-size: 12px;
  color: var(--gray-400);
  margin-top: 14px;
  line-height: 1.5;
}

.modal-success {
  font-size: 16px;
  color: var(--primary);
  font-weight: 600;
  padding: 20px 0 8px;
  line-height: 1.6;
}

/* =====================================================
   ANIMATION STAGGER — NEW ELEMENTS
   ===================================================== */

.pain-grid .pain-card:nth-child(1) { transition-delay: 0s; }
.pain-grid .pain-card:nth-child(2) { transition-delay: 0.1s; }
.pain-grid .pain-card:nth-child(3) { transition-delay: 0.2s; }

.vision-values .value-card:nth-child(1) { transition-delay: 0s; }
.vision-values .value-card:nth-child(2) { transition-delay: 0.1s; }
.vision-values .value-card:nth-child(3) { transition-delay: 0.2s; }
.vision-values .value-card:nth-child(4) { transition-delay: 0.3s; }

.testimonials-grid .testimonial-card:nth-child(1) { transition-delay: 0s; }
.testimonials-grid .testimonial-card:nth-child(2) { transition-delay: 0.1s; }
.testimonials-grid .testimonial-card:nth-child(3) { transition-delay: 0.2s; }
.testimonials-grid .testimonial-card:nth-child(4) { transition-delay: 0.1s; }
.testimonials-grid .testimonial-card:nth-child(5) { transition-delay: 0.2s; }
.testimonials-grid .testimonial-card:nth-child(6) { transition-delay: 0.3s; }

/* =====================================================
   RESPONSIVE — NEW SECTIONS
   ===================================================== */

@media (max-width: 640px) {
  .testimonial-card {
    flex: 0 0 82vw;
  }
}

@media (max-width: 1024px) {
  .pain-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  .solution-bridge {
    flex-direction: column;
    gap: 24px;
    padding: 48px 0 64px;
  }

  .solution-bridge-bar {
    width: 120px;
    height: 1px;
    flex: none;
  }

  .vision-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 640px) {
  .hero-stores {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn-store {
    width: 100%;
    max-width: 260px;
  }

  .pain-grid {
    max-width: 100%;
  }

  .download-stores {
    flex-direction: column;
    align-items: flex-start;
  }

  .download-stores .btn-store {
    width: 100%;
    max-width: 260px;
  }

  .solution-bridge-content {
    padding: 0 16px;
  }

  .solution-bridge-content h3 {
    font-size: 24px;
  }
}

/* =====================================================
   DARK MODE
   ===================================================== */

[data-theme="dark"] {
  color-scheme: dark;
  --bg:           #0D1A12;
  --surface:      #152319;
  --border:       #1F3828;
  --text:         #D5EBE0;
  --text-muted:   #75A38A;
  --gray-50:      #0D1A12;
  --gray-100:     #152319;
  --gray-200:     #1A2E20;
  --gray-300:     #1F3828;
  --gray-400:     #3A6249;
  --gray-600:     #75A38A;
  --gray-700:     #90B8A0;
  --gray-800:     #B0CCBA;
  --gray-900:     #D5EBE0;
  --accent-light: #132A1B;
}

[data-theme="dark"] body {
  background: var(--bg);
  color: var(--text);
}

/* Surfaces that use hardcoded var(--white) */
[data-theme="dark"] .feature-card,
[data-theme="dark"] .testimonial-card,
[data-theme="dark"] .pain-card,
[data-theme="dark"] .step,
[data-theme="dark"] .download-card,
[data-theme="dark"] .modal {
  background: var(--surface);
  border-color: var(--border);
}

[data-theme="dark"] .value-card {
  background: #0D1A12;
  border-color: var(--border);
}

[data-theme="dark"] .vision,
[data-theme="dark"] .screenshots,
[data-theme="dark"] .benefits {
  background: var(--surface);
}

[data-theme="dark"] .hero-wave path {
  fill: #0D1A12 !important;
}

[data-theme="dark"] .nav.scrolled {
  background: rgba(13, 26, 18, 0.92);
}

[data-theme="dark"] .nav.scrolled .nav-logo,
[data-theme="dark"] .nav.scrolled .nav-links a:not(.btn-primary) {
  color: var(--text);
}

[data-theme="dark"] .nav.scrolled .nav-links a:not(.btn-primary):hover {
  color: var(--white);
}

[data-theme="dark"] .section-header h2,
[data-theme="dark"] .section-header p,
[data-theme="dark"] .feature-card h3,
[data-theme="dark"] .feature-card p,
[data-theme="dark"] .testimonial-text,
[data-theme="dark"] .testimonial-author strong,
[data-theme="dark"] .testimonial-author span,
[data-theme="dark"] .step h3,
[data-theme="dark"] .step p,
[data-theme="dark"] .vision-lead,
[data-theme="dark"] .vision-body,
[data-theme="dark"] .value-body h4,
[data-theme="dark"] .value-body p,
[data-theme="dark"] .pain-card h3,
[data-theme="dark"] .pain-card p,
[data-theme="dark"] .solution-bridge-content h3,
[data-theme="dark"] .solution-bridge-content p,
[data-theme="dark"] .download-content h2,
[data-theme="dark"] .download-content p,
[data-theme="dark"] .download-info {
  color: var(--gray-900);
}

[data-theme="dark"] .feature-card p,
[data-theme="dark"] .testimonial-text,
[data-theme="dark"] .step p,
[data-theme="dark"] .vision-body,
[data-theme="dark"] .value-body p,
[data-theme="dark"] .pain-card p,
[data-theme="dark"] .solution-bridge-content p,
[data-theme="dark"] .download-content p,
[data-theme="dark"] .download-info,
[data-theme="dark"] .testimonial-author span,
[data-theme="dark"] .section-header p {
  color: var(--text-muted);
}

[data-theme="dark"] .testimonial-avatar {
  background: var(--border);
  color: var(--green-500);
}

[data-theme="dark"] .footer {
  background: #080F0A;
}

[data-theme="dark"] .footer-brand p,
[data-theme="dark"] .footer-links a {
  color: rgba(213, 235, 224, 0.55);
}

[data-theme="dark"] .footer-links h4 {
  color: var(--text);
}

[data-theme="dark"] .footer-links a:hover {
  color: var(--accent);
}

[data-theme="dark"] .footer-bottom p {
  color: rgba(213, 235, 224, 0.3);
}

[data-theme="dark"] .footer-bottom {
  border-color: rgba(213, 235, 224, 0.1);
}

[data-theme="dark"] .social-link {
  background: rgba(213, 235, 224, 0.07);
  color: rgba(213, 235, 224, 0.55);
}

[data-theme="dark"] .modal-form input[type="tel"] {
  color: var(--text);
  background: var(--bg);
  border-color: var(--border);
}

[data-theme="dark"] .modal-phone-flag {
  background: var(--border);
  color: var(--text-muted);
  border-color: var(--border);
}

[data-theme="dark"] .modal-phone-input {
  background: var(--bg);
  border-color: var(--border);
}

[data-theme="dark"] .modal-close {
  background: var(--border);
  color: var(--text-muted);
}

[data-theme="dark"] .modal-icon {
  background: #0A0F0C;
}

[data-theme="dark"] .modal > p,
[data-theme="dark"] .modal-note {
  color: var(--text-muted);
}

[data-theme="dark"] .modal h3 {
  color: var(--gray-900);
}

[data-theme="dark"] .step-connector {
  background: var(--border);
}

[data-theme="dark"] .download-card::after {
  background: radial-gradient(circle, rgba(45, 106, 79, 0.12) 0%, transparent 70%);
}

/* =====================================================
   NAV CONTROLS (lang + theme toggles)
   ===================================================== */

.nav-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-toggle,
.theme-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 50px;
  border: 1.5px solid transparent;
  background: transparent;
  cursor: pointer;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}

.theme-toggle {
  padding: 7px 10px;
}

/* On hero (not scrolled) — white style */
.nav:not(.scrolled) .lang-toggle,
.nav:not(.scrolled) .theme-toggle {
  color: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.2);
}

.nav:not(.scrolled) .lang-toggle:hover,
.nav:not(.scrolled) .theme-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

/* On scrolled nav — dark style */
.nav.scrolled .lang-toggle,
.nav.scrolled .theme-toggle {
  color: var(--gray-700);
  border-color: var(--border);
  background: var(--bg);
}

.nav.scrolled .lang-toggle:hover,
.nav.scrolled .theme-toggle:hover {
  color: var(--primary);
  border-color: var(--primary);
}

/* Sun/moon icon visibility */
.icon-sun { display: none; }
.icon-moon { display: block; }
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }

/* Dark mode: scrolled nav controls */
[data-theme="dark"] .nav.scrolled .lang-toggle,
[data-theme="dark"] .nav.scrolled .theme-toggle {
  color: var(--text-muted);
  border-color: var(--border);
  background: var(--surface);
}

[data-theme="dark"] .nav.scrolled .lang-toggle:hover,
[data-theme="dark"] .nav.scrolled .theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* Mobile: hide top-bar controls, show inside nav drawer instead */
@media (max-width: 640px) {
  .nav-controls {
    display: none;
  }
}

/* Nav drawer mobile controls */
.nav-links-controls {
  display: none;
}

@media (max-width: 640px) {
  .nav-links-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    width: 100%;
  }

  .nav-links-controls .lang-toggle,
  .nav-links-controls .theme-toggle {
    flex: 1;
    justify-content: center;
    color: var(--gray-700);
    border-color: var(--border);
    background: var(--gray-50);
  }

  .nav-links-controls .lang-toggle:hover,
  .nav-links-controls .theme-toggle:hover {
    color: var(--primary);
    border-color: var(--primary);
  }

  [data-theme="dark"] .nav-links-controls .lang-toggle,
  [data-theme="dark"] .nav-links-controls .theme-toggle {
    color: var(--text-muted);
    border-color: var(--border);
    background: var(--surface);
  }
}
