/* ═══════════════════════════════════════════════
   ALIMOBI — LANDING PAGE
   Mobile-first radical · Dark mode only
   ═══════════════════════════════════════════════ */

/* ─── CSS CUSTOM PROPERTIES ─── */
:root {
  --bg:      #0a0a08;
  --bg2:     #0d0d0b;
  --bg3:     #111210;
  --green:   #8cb334;
  --green-d: #6a8a28;
  --green-l: #b8e040;
  --text:    #f0f0eb;
  --muted:   #7a7a72;
  --border:  rgba(140,179,52,0.18);

  --ff-display: 'Archivo Black', sans-serif;
  --ff-headline: 'Syne', sans-serif;
  --ff-body: 'DM Sans', sans-serif;
  --ff-mono: 'Space Mono', monospace;
}

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

* {
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--ff-body);
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
}

body.modal-open {
  overflow: hidden;
}

input, button, a {
  touch-action: manipulation;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  color: inherit;
}

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

:focus-visible {
  outline: 2px solid var(--green-l);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 500;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--green);
  color: var(--bg);
  font-family: var(--ff-headline);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.noscript-banner {
  position: relative;
  z-index: 20;
  padding: 12px 24px;
  background: rgba(184, 224, 64, 0.12);
  border-bottom: 1px solid var(--border);
  color: var(--text);
  text-align: center;
  font-size: 14px;
}

.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;
}

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

/* ─── NOISE TEXTURE BACKGROUND ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.03;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  will-change: auto;
}

/* ═══════════════════════════════════════════════
   CUSTOM CURSOR (desktop only)
   ═══════════════════════════════════════════════ */
#cursor {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 299;
  pointer-events: none;
  mix-blend-mode: difference;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--green-l);
  border-radius: 50%;
  position: absolute;
  top: -3px;
  left: -3px;
}

.cursor-ring {
  width: 40px;
  height: 40px;
  border: 1.5px solid rgba(184, 224, 64, 0.4);
  border-radius: 50%;
  position: absolute;
  top: -20px;
  left: -20px;
  transition: width 0.2s, height 0.2s, top 0.2s, left 0.2s, border-color 0.2s;
}

#cursor.hovering .cursor-ring {
  width: 56px;
  height: 56px;
  top: -28px;
  left: -28px;
  border-color: var(--green);
}

/* ═══════════════════════════════════════════════
   NAV
   ═══════════════════════════════════════════════ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 24px 24px;
  background: linear-gradient(to bottom, rgba(10,10,8,0.9) 0%, rgba(10,10,8,0) 100%);
  pointer-events: none;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

nav.scrolled {
  padding: 16px 24px;
  background: transparent;
  justify-content: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: all;
  padding: 0;
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  transform-origin: center;
}

nav.scrolled .nav-logo {
  padding: 10px 22px;
  background: rgba(20, 20, 18, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.nav-logo-text {
  font-family: var(--ff-headline);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--text);
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

nav.scrolled .nav-logo-text {
  font-size: 15px;
}

/* ═══════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════ */
#hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-top: calc(80px + env(safe-area-inset-top));
  padding-left: 24px;
  padding-right: 24px;
  padding-bottom: 60px;
  overflow: hidden;
}

.hero-bg-gradient {
  position: absolute;
  bottom: -20%;
  left: -30%;
  width: 60vw;
  height: 60vw;
  min-width: 300px;
  min-height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(140,179,52,0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-diagonal {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-text {
  display: flex;
  flex-direction: column;
}

.hero-label {
  overflow: hidden;
  margin-bottom: 20px;
}

.hero-label span {
  display: inline-block;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--ff-display);
  font-size: clamp(48px, 14vw, 72px);
  line-height: 0.88;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: 24px;
}

.hero-title .word {
  display: block;
}

.hero-sub {
  font-family: var(--ff-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 360px;
}

/* ─── CTA BUTTON ─── */
.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 60px;
  padding: 18px 28px;
  border: 2px solid var(--green);
  border-radius: 14px;
  background: var(--green);
  color: var(--bg);
  font-family: var(--ff-headline);
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(140,179,52,0.25);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  padding: 16px 22px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255,255,255,0.02);
  color: var(--text);
  font-family: var(--ff-headline);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.btn-secondary:hover {
  border-color: var(--green);
  background: rgba(140,179,52,0.08);
  color: var(--green-l);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(140,179,52,0.1);
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(140,179,52,0.35);
}

.btn-download::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--green-l);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  z-index: 0;
}

.btn-download span,
.btn-download svg {
  position: relative;
  z-index: 1;
}

.btn-download:active {
  transform: scale(0.97);
  box-shadow: 0 4px 12px rgba(140,179,52,0.15);
}

.btn-secondary:active {
  transform: scale(0.98);
}

/* ─── HERO 3D MAP BACKGROUND ─── */
.hero-3d-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  perspective: 1200px;
}

.hero-3d-scene {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3000px;
  height: 3000px;
  margin-top: -1500px;
  margin-left: -1500px;
  transform: rotateX(60deg) rotateZ(-35deg) translateZ(-400px) scale(0.6);
  transform-style: preserve-3d;
  opacity: 0.9;
}

@media (min-width: 768px) {
  .hero-3d-scene {
    top: 50%;
    transform: rotateX(60deg) rotateZ(-35deg) translateZ(-500px) scale(1.0);
  }
}

.city-svg-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ─── 3D CSS CARS ─── */
.car-3d {
  position: absolute;
  top: 0; left: 0;
  width: 14px;
  height: 6px;
  background: var(--green);
  border-radius: 3px;
  box-shadow: 
    0 0 10px rgba(140,179,52,0.8),
    -5px 10px 10px rgba(0,0,0,0.5); /* Fake drop shadow projected */
  offset-rotate: auto;
  animation: carDrive linear infinite;
  transform-style: preserve-3d;
}

/* 3D Body aspect */
.car-3d::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--green-l);
  transform: translateZ(4px);
  border-radius: 2px;
  opacity: 0.9;
}

@keyframes carDrive {
  0%   { offset-distance: 0%; }
  100% { offset-distance: 100%; }
}

/* ─── HERO STATS ─── */
.hero-stats {
  position: relative;
  display: none;
}

/* Float pills — hidden on mobile */
.float-pill {
  display: none;
}

/* ─── SCROLL INDICATOR ─── */
.scroll-indicator {
  display: flex;
  justify-content: center;
  padding-top: 24px;
  padding-bottom: 20px;
}

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

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

/* ═══════════════════════════════════════════════
   TABLET BREAKPOINT (768px+)
   ═══════════════════════════════════════════════ */
@media (min-width: 768px) {
  #hero {
    padding-left: 40px;
    padding-right: 40px;
  }

  .hero-title {
    font-size: clamp(56px, 8vw, 96px);
  }

  .hero-3d-scene {
    transform: rotateX(55deg) rotateZ(-45deg) translateZ(-150px) scale(0.7);
  }

  .hero-diagonal {
    display: block;
  }

  .hero-bg-gradient {
    opacity: 1;
    background: radial-gradient(circle, rgba(140,179,52,0.10) 0%, transparent 70%);
  }

  .btn-download {
    width: auto;
    min-width: 280px;
  }

  .hero-actions {
    flex-direction: row;
    align-items: center;
    max-width: none;
  }

  .btn-secondary {
    width: auto;
    min-width: 240px;
  }
}

/* ═══════════════════════════════════════════════
   DESKTOP BREAKPOINT (1024px+)
   ═══════════════════════════════════════════════ */
@media (min-width: 1024px) {
  #hero {
    padding-left: 60px;
    padding-right: 60px;
  }

  .hero-title {
    font-size: clamp(80px, 9vw, 128px);
  }

  .hero-3d-scene {
    transform: rotateX(55deg) rotateZ(-45deg) translateZ(-150px) scale(0.9);
  }

  .hero-content {
    flex-direction: column;
    justify-content: center;
  }

  .hero-text {
    max-width: 700px;
  }

  .hero-sub {
    font-size: 17px;
    max-width: 500px;
  }

  .btn-download:hover::before {
    transform: scaleY(1);
  }

  .btn-download:hover {
    color: #050504;
  }

  .hero-stats {
    display: flex;
    gap: 20px;
    margin-top: 40px;
  }

  /* Float pills — visible on desktop */
  .float-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 24px;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 14px;
    backdrop-filter: blur(8px);
  }

  .pill-value {
    font-family: var(--ff-headline);
    font-weight: 800;
    font-size: 18px;
    color: var(--green);
    line-height: 1;
  }

  .pill-label {
    font-family: var(--ff-mono);
    font-size: 9px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 4px;
  }

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

  .scroll-indicator {
    display: none;
  }
}

/* ═══════════════════════════════════════════════
   SECTION — CITIES / MAP
   ═══════════════════════════════════════════════ */
#cities {
  position: relative;
  background: var(--bg2);
  padding: 80px 24px;
}

.section-header {
  margin-bottom: 40px;
}

.section-label {
  display: block;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--ff-headline);
  font-weight: 800;
  font-size: clamp(30px, 9vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 16px;
}

.section-sub {
  font-family: var(--ff-body);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 100%;
}

#map-container {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
}

#map {
  width: 100%;
  height: 300px;
  background: var(--bg3);
}

#map:focus-visible {
  outline-offset: -4px;
}

.map-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 24px;
  color: var(--muted);
  text-align: center;
  line-height: 1.6;
}

.map-caption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.leaflet-container {
  background: linear-gradient(180deg, #0d0d0b 0%, #171913 100%);
  font-family: var(--ff-body);
}

/* Leaflet popup styling */
.leaflet-popup-content-wrapper {
  background: var(--bg3) !important;
  color: var(--text) !important;
  border-radius: 10px !important;
  border: 1px solid var(--border) !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4) !important;
  min-width: 140px;
  padding: 4px 0;
}

.leaflet-popup-content {
  font-family: var(--ff-body) !important;
  font-size: 13px !important;
  margin: 10px 14px !important;
  color: var(--text) !important;
  line-height: 1.4 !important;
}

.leaflet-popup-tip {
  background: var(--bg3) !important;
  border: 1px solid var(--border) !important;
  box-shadow: none !important;
}

.leaflet-popup { bottom: 10px !important; }

/* Sonar marker */
.city-marker {
  width: 14px;
  height: 14px;
  background: var(--green);
  border-radius: 50%;
  border: 2px solid var(--green-l);
  position: relative;
  box-shadow: 0 0 12px rgba(140,179,52,0.5);
}

.city-marker::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid var(--green);
  animation: markerSonar 2s ease-out infinite;
}

@keyframes markerSonar {
  0%   { width: 14px; height: 14px; opacity: 0.6; }
  100% { width: 40px; height: 40px; opacity: 0; }
}

/* Leaflet tile dark filter — subtle adjustment (tiles are already dark) */
.leaflet-control-zoom a {
  background: var(--bg3) !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
}

.leaflet-control-attribution {
  background: rgba(10,10,8,0.85) !important;
  color: var(--muted) !important;
}

.leaflet-control-attribution a {
  color: var(--green-l) !important;
}

@media (min-width: 768px) {
  #cities { padding: 120px 40px; }
  .section-title { font-size: clamp(40px, 5vw, 64px); }
  .section-sub { max-width: 520px; }
  #map { height: 420px; }
}

@media (min-width: 1024px) {
  #cities { padding: 160px 60px; }
  .section-sub { max-width: 560px; }
  #map { height: 520px; }
}

/* ═══════════════════════════════════════════════
   SECTION — CONTACT
   ═══════════════════════════════════════════════ */
#contact {
  position: relative;
  background: var(--bg);
  padding: 80px 24px 60px;
  overflow: hidden;
}

.contact-grid {
  position: relative;
  z-index: 1;
}

.contact-header {
  margin-bottom: 48px;
}

.contact-col-title {
  font-family: var(--ff-headline);
  font-weight: 800;
  font-size: clamp(28px, 8vw, 38px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-top: 16px;
}

.contact-blocks {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact-block {
  padding: 28px 0 32px;
  border-bottom: 1px solid var(--border);
}

.contact-block:first-child {
  border-top: 1px solid var(--border);
}

.contact-block-title {
  font-family: var(--ff-headline);
  font-weight: 700;
  font-size: 16px;
  color: var(--green);
  margin-bottom: 8px;
}

.contact-block-desc {
  font-family: var(--ff-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 14px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--ff-mono);
  font-size: 12px;
  color: var(--text);
  letter-spacing: 0.02em;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.contact-link:hover,
.contact-link:focus {
  color: var(--green);
  border-bottom-color: var(--green);
}

.whatsapp-link {
  color: var(--green-l);
}

/* Decorative text — desktop only */
.contact-deco {
  display: none;
}

@media (min-width: 768px) {
  #contact {
    padding: 120px 40px 80px;
  }

  .contact-deco {
    display: block;
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--ff-display);
    font-size: clamp(100px, 15vw, 200px);
    color: var(--green);
    opacity: 0.03;
    white-space: nowrap;
    pointer-events: none;
    z-index: 0;
    line-height: 1;
  }

  .contact-link {
    font-size: 13px;
  }
}

@media (min-width: 1024px) {
  #contact {
    padding: 160px 60px 100px;
  }

  .contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: start;
  }

  .contact-header {
    margin-bottom: 0;
  }

  .contact-blocks {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
  }

  .contact-block {
    padding: 0;
    border-bottom: none;
    border-top: none;
    border-left: 1px solid var(--border);
    padding-left: 24px;
  }

  .contact-block:first-child {
    border-top: none;
  }

  .contact-col-title {
    font-size: clamp(38px, 4vw, 54px);
  }
}

/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */
footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  padding: 24px;
  padding-bottom: max(24px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  background: var(--bg2);
}

.footer-copy,
.footer-tag {
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.footer-contact {
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--green-l);
  letter-spacing: 0.04em;
}

@media (min-width: 768px) {
  footer {
    flex-direction: row;
    justify-content: space-between;
    padding: 32px 60px;
    padding-bottom: max(32px, env(safe-area-inset-bottom));
  }
}

/* ═══════════════════════════════════════════════
   MODAL — MOBILE-FIRST BOTTOM SHEET
   ═══════════════════════════════════════════════ */
#modal-bg {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(5,5,4,0.80);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s ease;
}

#modal-bg.active {
  opacity: 1;
  visibility: visible;
}

/* Disable backdrop blur with reduced motion */
@media (prefers-reduced-motion: reduce) {
  #modal-bg {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

#modal {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 210;
  max-height: 85vh;
  background: var(--bg3);
  border-radius: 20px 20px 0 0;
  border: 1px solid var(--border);
  border-bottom: none;
  padding: 32px 24px;
  padding-bottom: max(32px, env(safe-area-inset-bottom));
  transform: translateY(100%);
  transition: transform 0.45s cubic-bezier(0.32, 0.72, 0, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  visibility: hidden;
}

#modal[aria-hidden="true"] {
  pointer-events: none;
}

#modal.active {
  transform: translateY(0);
  visibility: visible;
}

/* Drag handle */
#modal::before {
  content: '';
  display: block;
  width: 36px;
  height: 4px;
  background: rgba(140,179,52,0.25);
  border-radius: 2px;
  margin: 0 auto 28px;
}

/* ─── Modal Progress Bar ─── */
.modal-progress {
  display: flex;
  gap: 6px;
  margin-bottom: 28px;
}

.progress-seg {
  flex: 1;
  height: 3px;
  background: var(--bg);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.progress-seg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
}

.progress-seg.active::after,
.progress-seg.done::after {
  transform: scaleX(1);
}

/* ─── Modal Close ─── */
.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  border-radius: 50%;
  transition: color 0.2s, background 0.2s;
}

.modal-close:hover {
  color: var(--text);
  background: rgba(140,179,52,0.08);
}

/* ─── Modal Steps ─── */
.modal-steps {
  position: relative;
  overflow: hidden;
}

.modal-step {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  will-change: transform;
}

.modal-step.active {
  display: flex;
}

.modal-title {
  font-family: var(--ff-headline);
  font-weight: 700;
  font-size: 22px;
  color: var(--text);
  margin-bottom: 24px;
}

/* ─── Modal Options Grid ─── */
.modal-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  width: 100%;
}

.option-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 104px;
  padding: 20px 12px;
  background: var(--bg2);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.option-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.25);
}

.option-btn:active {
  transform: translateY(0) scale(0.96);
  transition-duration: 0.1s;
}

.option-btn.selected {
  border-color: var(--green);
  background: rgba(140,179,52,0.12);
  box-shadow: 0 12px 24px rgba(140,179,52,0.15);
}

.option-btn[aria-pressed="true"] {
  border-color: var(--green);
  background: rgba(140,179,52,0.12);
  box-shadow: 0 12px 24px rgba(140,179,52,0.15);
}

.option-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  transition: background 0.25s ease, color 0.25s ease;
  color: var(--muted);
}

.option-icon svg {
  width: 24px;
  height: 24px;
}

.option-btn.selected .option-icon {
  background: rgba(140,179,52,0.2);
  color: var(--green);
}

.option-btn[aria-pressed="true"] .option-icon {
  background: rgba(140,179,52,0.2);
  color: var(--green);
}

.option-label {
  font-family: var(--ff-headline);
  font-weight: 700;
  font-size: 13px;
  color: var(--muted);
  transition: color 0.25s ease;
}

.option-btn.selected .option-label {
  color: var(--text);
}

.option-btn[aria-pressed="true"] .option-label {
  color: var(--text);
}

/* ─── Step 3 — Download ─── */
.modal-done-icon {
  margin-bottom: 16px;
}

.modal-desc {
  font-family: var(--ff-body);
  font-weight: 400;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 28px;
}

.btn-store {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 60px;
  background: var(--green);
  color: var(--bg);
  font-family: var(--ff-headline);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border-radius: 14px;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
  min-height: 60px;
}

.btn-store:active {
  transform: scale(0.97);
}

/* ─── Modal Desktop (≥768px) ─── */
@media (min-width: 768px) {
  #modal {
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    width: 420px;
    max-height: 80vh;
    border-radius: 24px;
    border: 1px solid var(--border);
    padding: 40px 36px;
    transform: translate(-50%, -50%) scale(0.92);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, visibility 0.4s ease;
  }

  #modal.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }

  #modal::before {
    display: none;
  }

  .modal-title {
    font-size: 26px;
  }

  .option-btn:hover {
    border-color: var(--green);
    background: rgba(140,179,52,0.06);
  }

  .btn-store:hover {
    background: var(--green-l);
  }
}

/* ═══════════════════════════════════════════════
   CONTACT SECTION SCROLL ANIMATIONS
   ═══════════════════════════════════════════════ */
.contact-block,
.contact-header,
.section-header {
  opacity: 0;
}

.contact-block.visible,
.contact-header.visible,
.section-header.visible {
  opacity: 1;
}



