/* =================================================================
   Distrilog — landing page styles
   -----------------------------------------------------------------
   Organized top-down:
     1. Design tokens               (custom properties)
     2. Reset / base                (element defaults)
     3. Primitives                  (container, grid, utility)
     4. Components                  (brand, nav, btn, eyebrow, cards)
     5. Sections                    (hero, features, how, numbers, cta)
     6. Footer
     7. Animations / motion
     8. Responsive
   Each section is a self-contained block — no cross-references that
   would break if a section is deleted in isolation.
   ================================================================= */


/* ─── 1. Design tokens ───────────────────────────────────────────── */
:root {
  /* palette */
  --ink:              #0a0e1a;
  --ink-2:            #1e2533;
  --ink-3:            #4a5568;
  --muted:            #6b7280;
  --line:             #e4e7ec;
  --line-2:           #eef1f6;
  --surface:          #ffffff;
  --surface-2:        #f7f9fc;
  --surface-3:        #f0f3f9;

  --brand:            #0052d4;
  --brand-2:          #0ea5e9;
  --brand-soft:       #eaf1ff;
  --brand-ink:        #00317f;

  --accent-green:     #10b981;
  --accent-amber:     #f59e0b;
  --accent-violet:    #8b5cf6;
  --accent-rose:      #f43f5e;
  --accent-teal:      #14b8a6;

  /* semantic gradients */
  --grad-brand:       linear-gradient(135deg, #3b82f6 0%, #0ea5e9 100%);
  --grad-dark:        radial-gradient(ellipse at top, #1a2234 0%, #0a0e1a 60%);
  --grad-subtle:      linear-gradient(180deg, #fafbfd 0%, #ffffff 100%);

  /* typography */
  --font-sans:        'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-serif:       'Instrument Serif', Georgia, serif;

  /* spacing scale (fluid) */
  --s-1:   .25rem;
  --s-2:   .5rem;
  --s-3:   .75rem;
  --s-4:   1rem;
  --s-5:   1.5rem;
  --s-6:   2rem;
  --s-7:   3rem;
  --s-8:   4rem;
  --s-9:   6rem;
  --s-10:  8rem;

  /* radii */
  --r-sm:  6px;
  --r-md:  10px;
  --r-lg:  16px;
  --r-xl:  24px;
  --r-2xl: 32px;
  --r-full: 9999px;

  /* shadows */
  --shadow-sm:   0 1px 2px rgba(10, 14, 26, .06);
  --shadow-md:   0 4px 12px rgba(10, 14, 26, .06), 0 1px 2px rgba(10, 14, 26, .04);
  --shadow-lg:   0 20px 40px -12px rgba(10, 14, 26, .15), 0 4px 12px rgba(10, 14, 26, .05);
  --shadow-xl:   0 40px 80px -20px rgba(10, 14, 26, .25), 0 10px 24px rgba(10, 14, 26, .08);
  --shadow-brand:0 20px 40px -12px rgba(0, 82, 212, .35);

  /* motion */
  --ease-out:    cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --dur-fast:    150ms;
  --dur-med:     260ms;
  --dur-slow:    520ms;

  /* layout */
  --maxw:     1200px;
  --maxw-tight: 880px;
  --nav-h:    72px;
}


/* ─── 2. Reset / base ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + var(--s-5));
}

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

body {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}

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

code {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: .9em;
  padding: .1em .35em;
  background: var(--surface-3);
  border-radius: var(--r-sm);
  color: var(--ink-2);
}

em { font-style: italic; font-family: var(--font-serif); font-weight: 400; }

::selection { background: var(--brand); color: #fff; }

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--s-4);
  padding: var(--s-3) var(--s-4);
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-md);
  z-index: 1000;
  transition: top var(--dur-fast) var(--ease-out);
}
.skip-link:focus { top: var(--s-4); }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}


/* ─── 3. Primitives ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--s-5);
}

.grid { display: grid; gap: var(--s-5); }

.nowrap { white-space: nowrap; }

/* Eyebrow — the small pill/label above section titles */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: .35rem .7rem;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--brand-ink);
  background: var(--brand-soft);
  border-radius: var(--r-full);
  letter-spacing: .01em;
}
.eyebrow--plain {
  background: none;
  padding: 0;
  color: var(--brand);
  font-weight: 600;
  font-size: .875rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.eyebrow--on-dark { color: #7dd3fc; }

.eyebrow__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(0, 82, 212, .15);
}

/* section heads */
.section-head {
  max-width: var(--maxw-tight);
  margin-bottom: var(--s-8);
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}
.section-title {
  font-size: clamp(1.875rem, 3.4vw + 1rem, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-top: var(--s-4);
  color: var(--ink);
}
.section-title--on-dark { color: #fff; }
.section-title code {
  background: var(--ink);
  color: #7dd3fc;
  font-size: .72em;
  padding: .08em .4em;
  border-radius: var(--r-sm);
  font-weight: 600;
  vertical-align: 0.08em;
}
.section-title--on-dark code { background: rgba(255,255,255,.1); color: #bae6fd; }
.section-lead {
  font-size: 1.125rem;
  color: var(--ink-3);
  margin-top: var(--s-4);
  max-width: 58ch;
}


/* ─── 4. Components ──────────────────────────────────────────────── */

/* --- brand mark -------------------------------------------------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -.015em;
  color: var(--ink);
}
.brand__mark { width: 28px; height: 28px; flex: none; }
.brand__wordmark { font-weight: 700; }
.brand--sm .brand__mark { width: 24px; height: 24px; }
.brand--sm { font-size: 1rem; }


/* --- button ------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: .6875rem 1.125rem;
  font-size: .9375rem;
  font-weight: 500;
  line-height: 1;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
  will-change: transform;
}
.btn:active { transform: translateY(1px); }
.btn__icon { width: 1.1em; height: 1.1em; }

.btn--primary {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  background: var(--ink-2);
  box-shadow: var(--shadow-md);
}

.btn--secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.btn--secondary:hover {
  background: var(--surface-2);
  border-color: #d1d5db;
}

.btn--ghost {
  background: transparent;
  color: var(--ink-3);
  padding-inline: .75rem;
}
.btn--ghost:hover { color: var(--ink); }

.btn--lg { padding: .875rem 1.5rem; font-size: 1rem; }


/* --- nav --------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: rgba(255, 255, 255, .72);
  backdrop-filter: saturate(1.5) blur(14px);
  -webkit-backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-fast), background var(--dur-fast);
}
.nav[data-scrolled="true"] {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, .88);
}
.nav__inner {
  height: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--s-6);
}
.nav__links {
  display: flex;
  gap: var(--s-6);
  justify-content: center;
}
.nav__links a {
  font-size: .9375rem;
  font-weight: 500;
  color: var(--ink-3);
}
.nav__links a:hover { color: var(--ink); }
.nav__cta { display: flex; gap: var(--s-3); align-items: center; }

.nav__toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border-radius: var(--r-md);
}
.nav__toggle span {
  display: block;
  width: 18px; height: 1.75px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--dur-med) var(--ease-out),
              opacity var(--dur-fast),
              translate var(--dur-med) var(--ease-out);
}
.nav__toggle span + span { margin-top: 4px; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { translate: 0 6px; rotate: 45deg; }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { translate: 0 -6px; rotate: -45deg; }

.nav__mobile {
  /* Hidden by default on every viewport. The mobile toggle toggles the
     [hidden] attribute; `:not([hidden])` makes this visible only then. */
  display: none;
  position: absolute;
  left: 0; right: 0; top: var(--nav-h);
  background: #fff;
  padding: var(--s-5);
  flex-direction: column;
  gap: var(--s-2);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 16px 24px -8px rgba(10, 14, 26, .08);
  max-height: calc(100dvh - var(--nav-h));
  overflow-y: auto;
}
.nav__mobile:not([hidden]) { display: flex; }
.nav__mobile a {
  padding: var(--s-3) 0;
  font-size: 1.0625rem;
  font-weight: 500;
}
.nav__mobile .btn { margin-top: var(--s-2); align-self: stretch; }


/* ─── 5. Sections ────────────────────────────────────────────────── */

/* --- hero -------------------------------------------------------- */
.hero { position: relative; padding-block: var(--s-9) var(--s-9); overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0;
  z-index: -1;
  background:
    radial-gradient(800px 400px at 85% -10%, rgba(59, 130, 246, .14), transparent 60%),
    radial-gradient(700px 400px at 5% 15%,  rgba(14, 165, 233, .10), transparent 60%),
    linear-gradient(180deg, #f6f8fd 0%, #ffffff 100%);
}
.hero__bg::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(226, 232, 240, .55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(226, 232, 240, .55) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 75%);
  opacity: .5;
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: var(--s-8);
  align-items: center;
}
.hero__copy { max-width: 34rem; }
.hero__title {
  font-size: clamp(2.25rem, 4.8vw + .5rem, 4.25rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.02;
  margin-top: var(--s-5);
  color: var(--ink);
}
.hero__title em {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 500;
}
.hero__lead {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--ink-3);
  margin-top: var(--s-5);
  max-width: 34rem;
}
.hero__actions {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
  margin-top: var(--s-6);
}
.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4) var(--s-6);
  list-style: none;
  margin-top: var(--s-7);
  font-size: .875rem;
  color: var(--ink-3);
}
.hero__proof li {
  position: relative;
  padding-left: 1.2rem;
}
.hero__proof li::before {
  content: '';
  position: absolute;
  left: 0; top: .45em;
  width: 14px; height: 14px;
  background: var(--accent-green);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path d='M4 10l4 4 8-8' stroke='white' stroke-width='2.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path d='M4 10l4 4 8-8' stroke='white' stroke-width='2.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / contain no-repeat;
}

/* --- hero visual: map card -------------------------------------- */
.hero__visual { position: relative; }
.map-card {
  position: relative;
  border-radius: var(--r-xl);
  background: #fff;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--line);
  overflow: hidden;
  transform: translateY(0);
}
.map-card__chrome {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding: .875rem 1rem;
  border-bottom: 1px solid var(--line-2);
  background: var(--surface-2);
}
.map-card__chrome > span {
  width: 10px; height: 10px; border-radius: 50%;
  background: #dfe3eb;
}
.map-card__chrome > span:nth-child(1) { background: #ff5f57; }
.map-card__chrome > span:nth-child(2) { background: #febc2e; }
.map-card__chrome > span:nth-child(3) { background: #28c840; }
.map-card__url {
  margin-left: auto;
  margin-right: auto;
  font-size: .8125rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: .2rem .6rem;
  border-radius: var(--r-full);
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
}
.map-card__viewport {
  position: relative;
  aspect-ratio: 600 / 420;
  background: #f6f8fc;
}
.map-svg { width: 100%; height: 100%; display: block; }

.route-line {
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: draw 2.2s var(--ease-out) .4s forwards;
}
.pin { opacity: 0; animation: pinIn .5s var(--ease-out) forwards; }
.pin--start    { animation-delay: 1.4s; }
.pin:nth-child(2) { animation-delay: 1.7s; }
.pin:nth-child(3) { animation-delay: 1.9s; }
.pin:nth-child(4) { animation-delay: 2.1s; }
.pin:nth-child(5) { animation-delay: 2.3s; }
.pin--end      { animation-delay: 2.5s; }

/* floating stats on top of the map */
.map-stat {
  position: absolute;
  display: flex;
  align-items: center;
  gap: .625rem;
  padding: .625rem .875rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  font-size: .8125rem;
  color: var(--ink);
  opacity: 0;
  animation: floatIn .5s var(--ease-out) 2.2s forwards;
}
.map-stat--team    { top: 4.5rem; left: 1rem; }
.map-stat--savings { bottom: 1rem; right: 1rem; color: var(--accent-green); animation-delay: 2.6s; }
.map-stat__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--grad-brand);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .18);
}
.map-stat__label { color: var(--muted); font-size: .75rem; }
.map-stat__value { font-weight: 600; line-height: 1.15; }
.map-stat__value--bold { font-size: 1.3rem; font-weight: 700; color: var(--accent-green); }
.map-stat svg { width: 18px; height: 18px; flex: none; }


/* --- trust strip ------------------------------------------------- */
.trust {
  padding-block: var(--s-7);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.trust__inner {
  display: flex;
  align-items: center;
  gap: var(--s-7);
  flex-wrap: wrap;
  justify-content: center;
}
.trust__label {
  font-size: .8125rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: .02em;
}
.trust__tags {
  list-style: none;
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
}
.trust__tags li {
  font-size: .875rem;
  font-weight: 500;
  color: var(--ink-3);
  padding: .3rem .75rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
}


/* --- features ---------------------------------------------------- */
.features { padding-block: var(--s-10); }
.grid--features {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s-5);
}
.feature {
  padding: var(--s-6);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color var(--dur-fast) var(--ease-out),
              box-shadow   var(--dur-med)  var(--ease-out),
              transform    var(--dur-med)  var(--ease-out);
}
.feature:hover {
  border-color: #d6dbe5;
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.feature__icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  margin-bottom: var(--s-4);
}
.feature__icon svg { width: 22px; height: 22px; }
.feature__icon--blue   { background: #e8f0ff; color: #2563eb; }
.feature__icon--green  { background: #e6f9f1; color: #059669; }
.feature__icon--amber  { background: #fef4e1; color: #d97706; }
.feature__icon--violet { background: #efe9fd; color: #7c3aed; }
.feature__icon--rose   { background: #fde8ec; color: #e11d48; }
.feature__icon--teal   { background: #e0f7f5; color: #0f766e; }

.feature__title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--s-2);
  letter-spacing: -.01em;
}
.feature__desc {
  font-size: .9375rem;
  color: var(--ink-3);
  line-height: 1.6;
}


/* --- how it works ------------------------------------------------ */
.how {
  padding-block: var(--s-10);
  background: var(--surface-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--s-5);
  counter-reset: step;
  position: relative;
}
.step {
  position: relative;
  padding: var(--s-5);
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  transition: border-color var(--dur-fast) var(--ease-out);
}
.step:hover { border-color: var(--brand); }
.step__num {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 2.25rem;
  line-height: 1;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: var(--s-3);
  font-style: italic;
}
.step__title {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -.01em;
  margin-bottom: var(--s-2);
}
.step__desc {
  font-size: .9375rem;
  color: var(--ink-3);
  line-height: 1.55;
}


/* --- numbers (dark) --------------------------------------------- */
.numbers {
  padding-block: var(--s-10);
  background: var(--grad-dark);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.numbers::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(59, 130, 246, .2), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(14, 165, 233, .15), transparent 45%);
  pointer-events: none;
}
.numbers .container { position: relative; }
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--s-5);
  margin-top: var(--s-8);
}
.stat {
  padding: var(--s-6) var(--s-5);
  border-left: 2px solid rgba(255, 255, 255, .08);
}
.stat:first-child { border-left: 0; }
.stat__value {
  font-family: var(--font-sans);
  font-size: clamp(2.5rem, 4vw + 1rem, 3.75rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.035em;
  background: linear-gradient(180deg, #fff 0%, #bfdbfe 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__unit { font-size: .55em; font-weight: 700; margin-left: .05em; }
.stat__label {
  margin-top: var(--s-3);
  font-size: .9375rem;
  color: #9aa4b8;
  line-height: 1.5;
  max-width: 28ch;
}


/* --- final CTA --------------------------------------------------- */
.cta { padding-block: var(--s-9); }
.cta__card {
  border-radius: var(--r-2xl);
  padding: clamp(var(--s-7), 6vw, var(--s-9)) clamp(var(--s-6), 5vw, var(--s-9));
  background:
    radial-gradient(400px 200px at 15% 10%, rgba(255, 255, 255, .18), transparent 60%),
    var(--grad-brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-6);
  flex-wrap: wrap;
  box-shadow: var(--shadow-brand);
  position: relative;
  overflow: hidden;
}
.cta__card::after {
  content: '';
  position: absolute;
  inset: -20% -10% auto auto;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(255, 255, 255, .12), transparent 60%);
  pointer-events: none;
}
.cta__title {
  font-size: clamp(1.5rem, 2.5vw + .5rem, 2.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: #fff;
}
.cta__lead { margin-top: var(--s-3); color: rgba(255, 255, 255, .85); max-width: 40ch; }
.cta__actions .btn--primary {
  background: #fff;
  color: var(--brand-ink);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .1);
}
.cta__actions .btn--primary:hover { background: #fafbfd; }


/* ─── 6. Footer ─────────────────────────────────────────────────── */
.foot { padding: var(--s-8) 0; border-top: 1px solid var(--line); background: var(--surface); }
.foot__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  flex-wrap: wrap;
}
.foot__links {
  display: flex;
  gap: var(--s-5);
  flex-wrap: wrap;
}
.foot__links a {
  font-size: .875rem;
  color: var(--ink-3);
}
.foot__links a:hover { color: var(--ink); }
.foot__mini { font-size: .8125rem; color: var(--muted); }


/* ─── 7. Animations / motion ────────────────────────────────────── */
@keyframes draw {
  to { stroke-dashoffset: 0; }
}
@keyframes pinIn {
  from { opacity: 0; transform: translate(var(--px,0), calc(var(--py,0) + 8px)) scale(.5); }
  to   { opacity: 1; }
}
@keyframes floatIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Scroll-reveal — used by JS on data-reveal elements */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal="delay"] { transition-delay: .15s; }


/* ─── 8. Responsive ─────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; gap: var(--s-7); }
  .hero__visual { order: 2; }
  .hero { padding-block: var(--s-7) var(--s-8); }

  .nav__links { display: none; }
  .nav__cta .btn--ghost { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav__inner { grid-template-columns: auto 1fr auto; gap: var(--s-3); }

  .features, .how, .numbers { padding-block: var(--s-8); }
  .cta { padding-block: var(--s-8); }
  .cta__card { flex-direction: column; align-items: flex-start; }
  .cta__actions { width: 100%; }
  .cta__actions .btn { width: 100%; }
}

@media (max-width: 640px) {
  :root { --nav-h: 60px; }
  .container { padding-inline: var(--s-4); }

  /* Remove the hero <br> line-break on narrow screens so the headline
     wraps naturally to the available width instead of forming an awkward
     gap before the word "otimizados". */
  .hero__title br { display: none; }
  .hero__title { font-size: clamp(2rem, 9vw, 3rem); }
  .hero__lead { font-size: 1.0625rem; }

  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }

  .map-card__chrome { padding: .625rem .75rem; }
  .map-card__url { display: none; }
  .map-stat--team    { left: .625rem; top: 3rem; padding: .5rem .7rem; font-size: .75rem; }
  .map-stat--savings { right: .625rem; bottom: .625rem; padding: .5rem .7rem; }
  .map-stat__value--bold { font-size: 1.1rem; }

  /* Brand compacts on very narrow phones so CTA + toggle fit */
  .brand { font-size: 1rem; }
  .brand__mark { width: 24px; height: 24px; }
  .nav__cta .btn--primary { padding: .5rem .75rem; font-size: .8125rem; }
  .nav__cta .btn--primary .btn__icon { display: none; }

  /* Section rhythm */
  .features, .how, .numbers, .cta { padding-block: var(--s-8); }
  .section-head { margin-bottom: var(--s-6); }

  /* Stats dividers: horizontal rules instead of the vertical borders */
  .stat { border-left: 0; padding: var(--s-5) 0; }
  .stat + .stat { border-top: 1px solid rgba(255, 255, 255, .08); }
  .stats { margin-top: var(--s-6); }

  .feature { padding: var(--s-5); }

  .foot__inner { flex-direction: column; align-items: flex-start; }
  .foot__links { gap: var(--s-4); }
}

/* Very narrow phones (≤380px): drop the CTA label in the nav, keep the icon
   as the primary action visual so brand + icon button + toggle still breathe. */
@media (max-width: 380px) {
  .nav__cta .btn--primary {
    padding: .5rem;
    width: 36px; height: 36px;
    font-size: 0;
  }
  .nav__cta .btn--primary .btn__icon { display: inline-block; width: 18px; height: 18px; font-size: 1rem; }
}

/* Safe-area padding for notched phones */
@supports (padding: max(0px)) {
  .container {
    padding-inline: max(var(--s-5), env(safe-area-inset-left));
  }
  @media (max-width: 640px) {
    .container { padding-inline: max(var(--s-4), env(safe-area-inset-left)); }
  }
}
