/* ─────────────────────────────────────────
   DESIGN TOKENS
───────────────────────────────────────── */
:root {
  --color-ocean:        #2c8a93;
  --color-ocean-dark:   #185c66;
  --color-ocean-light:  #bfe2e3;
  --color-sun:          #eaa838;
  --color-sun-dark:     #c8871c;
  --color-forest:       #3e6b3a;

  --color-sand-bg:      #fffdf8;
  --color-sand-50:      #fbf6ea;
  --color-sand-100:     #f8f1e3;
  --color-sand-200:     #e8dcc1;
  --color-sand-400:     #b3a489;
  --color-sand-900:     #2c2218;

  --color-text:         #2c2218;
  --color-text-muted:   #8a7960;
  --color-text-faint:   #a89478;
  --color-border:       #ece1c8;

  --shadow-card:        0 1px 3px 0 rgba(90,60,30,.08), 0 1px 2px -1px rgba(90,60,30,.06);
  --shadow-card-hover:  0 8px 24px -4px rgba(90,60,30,.18), 0 2px 6px -2px rgba(90,60,30,.10);
  --shadow-btn-primary: 0 6px 14px -4px rgba(24,92,102,.45);
  --shadow-btn-sun:     0 6px 14px -4px rgba(200,135,28,.45);

  --font-sans:          'Inter', system-ui, -apple-system, sans-serif;

  --space-section:      96px;

  --radius-btn:         8px;
  --radius-card:        12px;
  --radius-icon:        10px;

  --container-max:      1120px;
  --container-pad:      clamp(16px, 5vw, 48px);

  --ease-out-quart:     cubic-bezier(0.25, 1, 0.5, 1);
  --ease-standard:      cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-sand-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* ─────────────────────────────────────────
   SHARED TYPOGRAPHY
───────────────────────────────────────── */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-ocean);
  background: rgba(44, 138, 147, .1);
  border: 1px solid rgba(44, 138, 147, .2);
  border-radius: 20px;
  padding: 4px 12px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.625rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--color-sand-900);
  margin-bottom: 14px;
}

.section-sub {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  max-width: 560px;
  margin-bottom: 56px;
  line-height: 1.7;
}

/* ─────────────────────────────────────────
   BUTTONS
───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition:
    background-color 180ms var(--ease-standard),
    transform 160ms var(--ease-out-quart),
    box-shadow 180ms var(--ease-standard),
    color 180ms var(--ease-standard),
    border-color 180ms var(--ease-standard);
  padding: 10px 18px;
  white-space: nowrap;
  line-height: 1;
}

.btn-primary {
  background: var(--color-ocean);
  color: #fff;
  box-shadow: 0 1px 3px rgba(24, 92, 102, .25);
}
.btn-primary:hover {
  background: var(--color-ocean-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-btn-primary);
}
.btn-primary:active { transform: translateY(0); }

.btn-sun {
  background: var(--color-sun);
  color: var(--color-sand-900);
  box-shadow: 0 1px 3px rgba(200, 135, 28, .25);
}
.btn-sun:hover {
  background: var(--color-sun-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-btn-sun);
}
.btn-sun:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--color-ocean);
  border: 1.5px solid var(--color-ocean-light);
}
.btn-ghost:hover {
  background: rgba(44, 138, 147, .07);
  border-color: var(--color-ocean);
  transform: translateY(-1px);
}

.btn-lg  { font-size: 1rem;     padding: 12px 22px; }
.btn-xl  { font-size: 1.0625rem; padding: 14px 28px; border-radius: 10px; }

.btn-arrow {
  flex-shrink: 0;
  transition: transform 200ms var(--ease-out-quart);
}
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ─────────────────────────────────────────
   HEADER
───────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 253, 248, .88);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow 200ms var(--ease-standard);
}
.site-header.scrolled {
  box-shadow: 0 2px 12px rgba(90, 60, 30, .10);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
}
.logo-wordmark {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-sand-900);
  letter-spacing: -0.02em;
}

.main-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;
  transition: color 160ms, background-color 160ms;
}
.nav-link:hover {
  color: var(--color-sand-900);
  background: var(--color-sand-50);
}

.header-cta { margin-left: 8px; }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-muted);
  padding: 6px;
  border-radius: 6px;
  transition: background-color 160ms;
}
.nav-toggle:hover { background: var(--color-sand-50); }

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--color-border);
  gap: 4px;
  background: var(--color-sand-bg);
}
.mobile-menu.open { display: flex; }
.mobile-nav-link {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 8px;
  transition: background-color 160ms, color 160ms;
}
.mobile-nav-link:hover {
  background: var(--color-sand-50);
  color: var(--color-sand-900);
}
.mobile-demo-btn {
  margin-top: 8px;
  width: 100%;
  justify-content: center;
}

/* ─────────────────────────────────────────
   HERO
───────────────────────────────────────── */
.hero {
  position: relative;
  background: var(--color-sand-bg);
  overflow: hidden;
  padding-block: clamp(72px, 10vw, 120px) clamp(100px, 12vw, 140px);
}

.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 72% 38%, rgba(191, 226, 227, .55) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 18% 78%, rgba(234, 168, 56, .18) 0%, transparent 65%);
  animation: gradientShift 9s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes gradientShift {
  0%   { opacity: 1;   transform: scale(1) translateX(0); }
  100% { opacity: .8;  transform: scale(1.05) translateX(14px); }
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 7vw, 88px);
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-forest);
  background: rgba(62, 107, 58, .1);
  border: 1px solid rgba(62, 107, 58, .22);
  border-radius: 20px;
  padding: 5px 12px;
  margin-bottom: 24px;
}
.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-forest);
  animation: pulseDot 2.4s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%       { opacity: .45; transform: scale(0.65); }
}

.hero-headline {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--color-sand-900);
  margin-bottom: 24px;
}
.headline-accent {
  font-style: normal;
  background: linear-gradient(135deg, var(--color-ocean) 0%, var(--color-ocean-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: var(--color-ocean); /* fallback */
}

.hero-subheadline {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  max-width: 480px;
  margin-bottom: 36px;
  text-align: left;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.hero-note {
  font-size: 0.8125rem;
  color: var(--color-text-faint);
}

/* Hero visual — mockup */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.mockup-container {
  position: relative;
  width: 100%;
  max-width: 400px;
  padding: 28px 28px 40px;
  animation: floatMockup 5s ease-in-out infinite;
}

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

.mockup-card {
  background: var(--color-sand-bg);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  box-shadow: 0 20px 60px -10px rgba(90, 60, 30, .22), 0 8px 24px -4px rgba(90, 60, 30, .12);
  overflow: hidden;
}

.mockup-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  background: var(--color-sand-50);
  border-bottom: 1px solid var(--color-border);
}
.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.mockup-dot.red    { background: #ef4444; }
.mockup-dot.orange { background: #f59e0b; }
.mockup-dot.green  { background: #22c55e; }
.mockup-title-bar {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-left: 6px;
}

.mockup-stats-row {
  display: flex;
  padding: 16px 14px;
  border-bottom: 1px solid var(--color-border);
}
.mockup-stat {
  flex: 1;
  text-align: center;
}
.mockup-stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}
.mockup-stat-label {
  font-size: 0.6875rem;
  color: var(--color-text-faint);
}

.mockup-list {
  padding: 10px 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.mockup-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--color-sand-50);
}
.mockup-emoji { font-size: 0.875rem; }
.mockup-item-name {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text);
  flex: 1;
}
.mockup-badge {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
}
.mockup-badge.done        { background: #dcfce7; color: #15803d; }
.mockup-badge.pending     { background: #f3f4f6; color: #374151; }
.mockup-badge.in-progress { background: #fef9c3; color: #854d0e; }

.mockup-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text);
  background: var(--color-sand-bg);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 8px 14px;
  box-shadow: var(--shadow-card);
  white-space: nowrap;
}
.mockup-chip-1 {
  top: 12px;
  right: 0;
  animation: floatChip1 4.5s ease-in-out infinite;
}
.mockup-chip-2 {
  bottom: 20px;
  left: 0;
  animation: floatChip2 5.5s ease-in-out infinite 1s;
}
@keyframes floatChip1 {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%       { transform: translateY(-7px) rotate(1deg); }
}
@keyframes floatChip2 {
  0%, 100% { transform: translateY(0) rotate(1.5deg); }
  50%       { transform: translateY(-6px) rotate(-1deg); }
}

.hero-wave-deco {
  position: absolute;
  bottom: 0;
  left: 28px;
  right: 28px;
  height: 40px;
}

.section-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  line-height: 0;
}
.section-wave svg {
  width: 100%;
  display: block;
}

/* ─────────────────────────────────────────
   FEATURES
───────────────────────────────────────── */
.features {
  padding-block: var(--space-section);
  background: var(--color-sand-bg);
}

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

.feature-card {
  background: var(--color-sand-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
  transition:
    transform 220ms var(--ease-out-quart),
    box-shadow 220ms var(--ease-out-quart),
    border-color 220ms var(--ease-standard);
}
.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--color-sand-200);
}

.feature-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-icon);
  background: var(--icon-bg);
  color: var(--icon-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  flex-shrink: 0;
}
.feature-icon { width: 22px; height: 22px; }

.feature-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-sand-900);
  margin-bottom: 10px;
  line-height: 1.3;
}
.feature-desc {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--color-text-muted);
}

/* ─────────────────────────────────────────
   HOW IT WORKS
───────────────────────────────────────── */
.how-it-works {
  padding-block: var(--space-section);
  background: var(--color-sand-50);
}

.steps-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.steps-connector {
  position: absolute;
  top: 52px;
  left: calc(16.66% + 32px);
  right: calc(16.66% + 32px);
  height: 1px;
  background: var(--color-ocean-light);
  z-index: 0;
}

.step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.step-number {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-ocean);
  margin-bottom: 10px;
}

.step-icon-wrap {
  width: 64px;
  height: 64px;
  background: var(--color-sand-bg);
  border: 2px solid var(--color-ocean-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-ocean);
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(44, 138, 147, .12);
  transition: border-color 220ms, box-shadow 220ms, transform 220ms var(--ease-out-quart);
  flex-shrink: 0;
}
.step:hover .step-icon-wrap {
  border-color: var(--color-ocean);
  box-shadow: 0 8px 20px rgba(44, 138, 147, .22);
  transform: translateY(-2px);
}

.step-title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-sand-900);
  margin-bottom: 10px;
}
.step-desc {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--color-text-muted);
  max-width: 260px;
}

/* ─────────────────────────────────────────
   STATS
───────────────────────────────────────── */
.stats {
  padding-block: var(--space-section);
  background: var(--color-ocean-dark);
  position: relative;
  overflow: hidden;
}
.stats::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-sun), var(--color-ocean-light), var(--color-sun));
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  padding: 40px 28px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, .12);
}
.stat-item:last-child { border-right: none; }

.stat-value {
  display: flex;
  align-items: baseline;
  gap: 8px;
  justify-content: center;
  margin-bottom: 14px;
}
.stat-counter {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 700;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.03em;
}
.stat-unit {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--color-ocean-light);
  line-height: 1;
}
.stat-icon {
  font-size: 3rem;
  line-height: 1;
}
.stat-label {
  font-size: 0.875rem;
  line-height: 1.55;
  color: rgba(191, 226, 227, .75);
}

/* ─────────────────────────────────────────
   CTA BANNER
───────────────────────────────────────── */
.cta-banner {
  position: relative;
  padding-block: clamp(80px, 12vw, 140px);
  background: linear-gradient(135deg, var(--color-sand-50) 0%, #fdf4df 100%);
  overflow: hidden;
  text-align: center;
}

.cta-wave-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  line-height: 0;
}
.cta-wave-top svg {
  width: 100%;
  display: block;
}

.cta-inner { position: relative; z-index: 1; }

.cta-badge {
  font-size: 2.5rem;
  margin-bottom: 20px;
  display: block;
  animation: floatCta 3.5s ease-in-out infinite;
}
@keyframes floatCta {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(-8px) rotate(4deg); }
}

.cta-title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-sand-900);
  line-height: 1.2;
  margin-bottom: 20px;
}

.cta-sub {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  max-width: 520px;
  margin-inline: auto;
  line-height: 1.7;
  margin-bottom: 40px;
}

.cta-note {
  margin-top: 18px;
  font-size: 0.8125rem;
  color: var(--color-text-faint);
}

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
.site-footer {
  background: var(--color-sand-900);
  padding-block: 40px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.footer-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  flex-shrink: 0;
}
.footer-wordmark {
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255, 253, 248, .9);
  letter-spacing: -0.02em;
}

.footer-tagline {
  font-size: 0.875rem;
  color: rgba(255, 253, 248, .45);
}
.footer-copy {
  font-size: 0.8125rem;
  color: rgba(255, 253, 248, .28);
}

/* ─────────────────────────────────────────
   SCROLL ANIMATIONS
───────────────────────────────────────── */
.js-fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 540ms var(--ease-out-quart),
    transform 540ms var(--ease-out-quart);
}
.js-fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for grid children */
.features-grid .feature-card:nth-child(2) { transition-delay: 80ms; }
.features-grid .feature-card:nth-child(3) { transition-delay: 160ms; }
.features-grid .feature-card:nth-child(4) { transition-delay: 240ms; }
.features-grid .feature-card:nth-child(5) { transition-delay: 320ms; }
.features-grid .feature-card:nth-child(6) { transition-delay: 400ms; }

.steps-track .step:nth-child(3) { transition-delay: 80ms; }
.steps-track .step:nth-child(4) { transition-delay: 160ms; }

.stats-grid .stat-item:nth-child(2) { transition-delay: 80ms; }
.stats-grid .stat-item:nth-child(3) { transition-delay: 160ms; }
.stats-grid .stat-item:nth-child(4) { transition-delay: 240ms; }

/* ─────────────────────────────────────────
   RESPONSIVE — TABLET ≤ 1024px
───────────────────────────────────────── */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
  }
  .stat-item:nth-child(odd) {
    border-right: 1px solid rgba(255, 255, 255, .12);
  }
  .stat-item:last-child,
  .stat-item:nth-last-child(2):nth-child(odd) {
    border-bottom: none;
  }

  .steps-track {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ─────────────────────────────────────────
   RESPONSIVE — MOBILE ≤ 768px
───────────────────────────────────────── */
@media (max-width: 768px) {
  :root { --space-section: 64px; }

  .main-nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-subheadline,
  .hero-badge { margin-inline: auto; }
  .hero-ctas { justify-content: center; }
  .hero-visual { display: none; }

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

  .steps-track {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .steps-connector { display: none; }
  .step {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 20px;
  }
  .step-number { position: absolute; top: 0; left: 0; display: none; }
  .step-text { flex: 1; padding-top: 4px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item  { padding: 28px 16px; }
}

/* ─────────────────────────────────────────
   RESPONSIVE — SMALL ≤ 400px
───────────────────────────────────────── */
@media (max-width: 400px) {
  .hero-ctas { flex-direction: column; }
  .btn-lg { width: 100%; justify-content: center; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
  }
  .stat-item:last-child { border-bottom: none; }
}

/* ─────────────────────────────────────────
   MODALE DEMANDE DE DÉMO
───────────────────────────────────────── */
.demo-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(44, 34, 24, 0.6);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.demo-modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.demo-modal {
  background: var(--color-sand-bg);
  border-radius: 16px;
  padding: 40px;
  max-width: 480px;
  width: 100%;
  position: relative;
  box-shadow: 0 24px 64px rgba(44, 34, 24, 0.2);
  transform: translateY(16px);
  transition: transform 220ms ease;
}

.demo-modal-overlay.is-open .demo-modal {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--color-text-muted);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 150ms, background 150ms;
}

.modal-close:hover {
  color: var(--color-text);
  background: var(--color-sand-50);
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-sand-900);
  margin: 0 0 8px;
}

.modal-desc {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin: 0 0 28px;
  line-height: 1.6;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
}

.form-group label span {
  color: var(--color-ocean);
}

.form-group input[type="text"],
.form-group input[type="email"] {
  border: 1.5px solid var(--color-border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--color-text);
  background: #fff;
  outline: none;
  transition: border-color 150ms, box-shadow 150ms;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus {
  border-color: var(--color-ocean);
  box-shadow: 0 0 0 3px rgba(44, 138, 147, 0.15);
}

.form-group input::placeholder {
  color: var(--color-text-faint);
}

.form-submit-btn {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}

.form-feedback {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 0.9375rem;
  line-height: 1.5;
  text-align: center;
}

.form-success {
  background: #dff0e8;
  color: #1a5c3a;
}

.form-error {
  background: #fde8e8;
  color: #7a1f1f;
}

.form-error a {
  color: inherit;
  font-weight: 600;
}

@media (max-width: 480px) {
  .demo-modal {
    padding: 28px 20px;
  }
}
