/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:         #08090c;
  --bg-2:       #101218;
  --bg-3:       #16181f;
  --ink:        #f3f4f8;
  --ink-soft:   #c7c9d4;
  --mute:       #8b8f9c;
  --accent:     #2f7dfd;
  --accent-2:   #6c4cff;
  --accent-soft: rgba(47,125,253,0.16);
  --line:       rgba(243,244,248,0.12);
  --line-soft:  rgba(243,244,248,0.07);

  --gradient-1: #2f7dfd;
  --gradient-2: #6c4cff;
  --gradient-3: #22d3ee;
  --gradient-4: #0a4fd6;

  --warn:      #ff6b4a;
  --warn-soft: rgba(255,107,74,0.14);
  --whatsapp:  #25D366;

  --sans:   "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --display: "Space Grotesk", var(--sans);
  --mono:   "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:     cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --nav-h: 76px;
}

/* Anchor targets land below the fixed nav instead of underneath it */
section[id] { scroll-margin-top: calc(var(--nav-h) + 12px); }

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
  background: var(--bg);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
  position: relative;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
input, textarea { font: inherit; color: inherit; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.05; letter-spacing: -0.02em; font-family: var(--display); color: var(--ink); }
ul { list-style: none; padding: 0; }
::selection { background: var(--accent); color: var(--ink); }

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

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--ink); color: var(--bg);
  z-index: 9999; border-radius: 8px; font-weight: 600; font-size: .9rem;
}
.skip-link:focus { top: 1rem; }

.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);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.kicker {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mute);
}
.kicker::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.section {
  position: relative;
  z-index: 1;
  padding-block: clamp(4rem, 9vw, 7.5rem);
}
.section-bg {
  background: rgba(8,9,12,0.9);
  border-top: 1px solid var(--line-soft);
}

.eyebrow-row { margin-bottom: 1.5rem; }

/* =============================================================
   4. Typography
   ============================================================= */
.display-xl {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.6rem, 8vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.display-lg {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.1rem, 5.4vw, 3.6rem);
  letter-spacing: -0.025em;
  color: var(--ink);
}
.display-md {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--ink);
}
.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 46ch;
  line-height: 1.55;
}
.body-copy {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 62ch;
}
.mono-label {
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mute);
}

.accent-word { color: var(--accent); }

/* word-level hover-invert (progressive enhancement via JS split) */
.split-word {
  display: inline-block;
  padding: 0 .04em;
  border-radius: 3px;
  transition: background .18s var(--ease-out), color .18s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .split-word:hover {
    background: var(--ink);
    color: var(--bg);
  }
}

/* =============================================================
   5. Components
   ============================================================= */

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  padding: .95em 1.6em;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  transition: transform .35s var(--ease-out), background .25s var(--ease-out), color .25s var(--ease-out), border-color .25s var(--ease-out);
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover { transform: translateY(-2px); background: var(--accent); color: var(--ink); }
.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--accent); background: var(--accent-soft); }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; }

/* --- Nav ---
   Note: the blurred bar lives on a ::before pseudo-element rather than
   directly on .site-nav. backdrop-filter (like transform/filter) on an
   ancestor creates a new containing block for position:fixed descendants —
   since .nav-links (the mobile menu overlay) is fixed and nested inside
   .site-nav, putting the filter on .site-nav itself would trap that overlay
   inside the 76px-tall nav bar instead of the viewport. */
.site-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center;
}
.site-nav::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: rgba(8,9,12,0.35);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  transition: background .35s var(--ease-out), border-color .35s var(--ease-out);
}
.site-nav.is-solid::before {
  background: rgba(8,9,12,0.82);
  border-bottom-color: var(--line-soft);
}
.nav-inner {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
}
.brand-lockup {
  display: inline-flex; align-items: baseline; gap: .1em;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand-lockup em { font-style: normal; color: var(--accent); }

.nav-toggle-input { position: absolute; opacity: 0; pointer-events: none; }
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: ""; display: block;
  width: 20px; height: 2px; background: var(--ink);
  transition: transform .3s var(--ease-out), opacity .3s var(--ease-out);
}
.nav-toggle-bars::before { transform: translateY(-6px); }
.nav-toggle-bars::after { transform: translateY(4px); }
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { position: absolute; left: 0; top: 0; }

.nav-links {
  display: flex; align-items: center; gap: 2.1rem;
}
.nav-links a:not(.btn) {
  position: relative;
  font-size: .95rem;
  color: var(--ink-soft);
  padding-block: .3rem;
}
.nav-links a:not(.btn)::after {
  content: "";
  position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: var(--accent);
  transition: right .3s var(--ease-out);
}
.nav-links a:not(.btn):hover { color: var(--ink); }
.nav-links a:not(.btn):hover::after,
.nav-links a[aria-current="page"]::after { right: 0; }
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links .btn.nav-cta { padding: .7em 1.15em; font-size: .85rem; }

/* --- Footer --- */
.site-footer {
  position: relative; z-index: 1;
  padding-block: 3.5rem 2.5rem;
  border-top: 1px solid var(--line-soft);
  background: rgba(8,9,12,0.92);
}
.footer-grid {
  display: grid;
  gap: 2.2rem;
  grid-template-columns: 1fr;
}
.footer-brand { display: flex; align-items: center; gap: .7rem; }
.footer-mark {
  width: 34px; height: 34px; border-radius: 9px;
  object-fit: cover;
  border: 1px solid var(--line);
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.footer-nav a { font-size: .92rem; color: var(--mute); }
.footer-nav a:hover { color: var(--ink); }
.footer-meta {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  margin-top: 2.4rem; padding-top: 1.6rem;
  border-top: 1px solid var(--line-soft);
  font-size: .82rem; color: var(--mute);
}
.footer-legal summary {
  cursor: pointer; color: var(--mute); font-size: .82rem;
  list-style: none;
}
.footer-legal summary::-webkit-details-marker { display: none; }
.footer-legal summary::before { content: "＋ "; color: var(--accent); }
.footer-legal[open] summary::before { content: "－ "; }
.footer-legal p { margin-top: .6rem; font-size: .8rem; line-height: 1.7; max-width: 60ch; }

/* --- Stat --- */
.stat-grid {
  display: grid;
  gap: 2rem 1.5rem;
  grid-template-columns: repeat(2, 1fr);
}
.stat-num {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: var(--ink);
  letter-spacing: -0.02em;
}
.stat-label {
  margin-top: .4rem;
  font-size: .88rem;
  color: var(--mute);
}

/* --- Accordion toggle icon (shared by FAQ) --- */
.acc-plus {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  position: relative; flex-shrink: 0;
  transition: transform .3s var(--ease-out), border-color .3s var(--ease-out), background .3s var(--ease-out);
}
.acc-plus::before, .acc-plus::after {
  content: ""; position: absolute;
  background: var(--ink); transition: transform .3s var(--ease-out), background .3s var(--ease-out);
}
.acc-plus::before { width: 12px; height: 1.5px; }
.acc-plus::after { width: 1.5px; height: 12px; }
details[open] .acc-plus { border-color: var(--accent); background: var(--accent-soft); }
details[open] .acc-plus::after { transform: rotate(90deg); opacity: 0; }

/* --- FAQ --- */
.faq-list { border-top: 1px solid var(--line); }
.faq-row { border-bottom: 1px solid var(--line); }
.faq-row summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 1.2rem;
  padding-block: 1.5rem;
}
.faq-row summary::-webkit-details-marker { display: none; }
.faq-question {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.02rem, 2vw, 1.2rem); color: var(--ink);
}
.faq-row:hover .faq-question { color: var(--accent); }
.faq-answer { padding-bottom: 1.6rem; max-width: 62ch; color: var(--ink-soft); font-size: .96rem; }

/* --- Service cards (modular, "estilo Reach") --- */
.service-cards {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
.service-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 2rem;
  display: flex; flex-direction: column;
  transition: border-color .3s var(--ease-out), transform .3s var(--ease-out);
}
.service-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.service-card-icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft);
  font-size: 1.4rem; margin-bottom: 1.2rem;
}
.service-card-name { font-size: 1.2rem; margin-bottom: .5rem; }
.service-card-benefit { color: var(--ink-soft); font-size: .95rem; margin-bottom: 1.3rem; }
.service-card-list { display: grid; gap: .55rem; margin-bottom: 1.5rem; flex-grow: 1; }
.service-card-list li { position: relative; padding-left: 1.3rem; font-size: .87rem; color: var(--ink-soft); }
.service-card-list li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.service-card-actions { display: flex; flex-direction: column; align-items: flex-start; gap: .8rem; margin-bottom: 1.3rem; }
.service-card-actions .btn { font-size: .88rem; padding: .8em 1.3em; }
.service-card-link { font-size: .84rem; color: var(--mute); text-decoration: underline; text-underline-offset: 3px; }
.service-card-link:hover { color: var(--ink); }
.service-card-hook {
  font-size: .82rem; color: var(--mute); line-height: 1.5;
  padding-top: 1.2rem; border-top: 1px dashed var(--line);
}
.service-card-hook a { color: var(--accent); }
.service-card-hook a:hover { text-decoration: underline; }

/* --- Process blocks --- */
.process-grid {
  display: grid; gap: 2.4rem;
  grid-template-columns: 1fr;
}
.process-block { padding-top: 1.4rem; border-top: 1px solid var(--line); }
.process-num {
  font-family: var(--mono); color: var(--accent); font-size: .85rem; margin-bottom: .8rem; display: block;
}
.process-title { font-family: var(--display); font-weight: 600; font-size: 1.4rem; margin-bottom: .6rem; color: var(--ink); }
.process-copy { color: var(--ink-soft); font-size: .98rem; max-width: 42ch; }

/* --- Form --- */
.contact-form { display: grid; gap: 1.3rem; max-width: 620px; }
.field { display: grid; gap: .5rem; }
.field > label { font-size: .82rem; color: var(--mute); font-family: var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.field input:not([type="checkbox"]):not([type="radio"]), .field textarea {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .9em 1em;
  transition: border-color .25s var(--ease-out), background .25s var(--ease-out);
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:not([type="checkbox"]):not([type="radio"]):focus, .field textarea:focus {
  outline: none; border-color: var(--accent); background: var(--bg-3);
}
.field input[type="checkbox"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-status {
  font-size: .88rem; color: var(--mute); min-height: 1.4em;
}
.form-status.is-ok { color: var(--accent); }

/* --- Pull quote --- */
.pull-quote {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  color: var(--ink);
  max-width: 30ch;
  position: relative;
  padding-left: 1.4rem;
  border-left: 2px solid var(--accent);
}

/* =============================================================
   6. Sections
   ============================================================= */

/* --- Hero (home) --- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: calc(var(--nav-h) + 2rem);
  padding-bottom: 4rem;
}
.hero-title { margin-bottom: 1.6rem; }
.hero-line {
  display: block;
  opacity: 0;
  animation: heroLineIn .9s var(--ease-out) forwards;
}
.hero-line:nth-child(2) { animation-delay: .14s; }
.hero-line:nth-child(3) { animation-delay: .28s; }
@keyframes heroLineIn {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-line { animation-duration: .3s; }
}
.hero-foot {
  margin-top: 2.6rem;
  display: flex; flex-direction: column; gap: 1.6rem;
}
.trust-badges {
  display: flex; flex-wrap: wrap; gap: 1.4rem 1.8rem;
}
.trust-badges li {
  font-family: var(--mono); font-size: .8rem; color: var(--mute); letter-spacing: .02em;
}

/* --- Manifesto --- */
.manifesto-inner { max-width: 62ch; }

/* --- Industries ticker --- */
.industries-bar {
  position: relative; z-index: 1;
  padding-block: 1.3rem;
  border-block: 1px solid var(--line-soft);
  overflow: hidden;
  background: rgba(8,9,12,0.6);
}
.industries-track { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.industries-set { display: flex; gap: 2.6rem; padding-right: 2.6rem; white-space: nowrap; }
.industries-set span { font-family: var(--mono); font-size: .82rem; color: var(--mute); letter-spacing: .03em; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .industries-track { animation-duration: 70s; } }

/* --- Calculator ("fuga de dinero") --- */
.calc-card {
  margin-top: 2.5rem;
  display: grid; gap: 2rem;
  padding: clamp(1.6rem, 4vw, 2.6rem);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 20px;
}
.calc-inputs { display: grid; gap: 1.3rem; }
.calc-field { display: grid; gap: .5rem; }
.calc-field label { font-size: .85rem; color: var(--ink-soft); }
.calc-field input {
  background: var(--bg-3); border: 1px solid var(--line); border-radius: 10px;
  padding: .85em 1em; font-size: 1.05rem; width: 100%;
}
.calc-field input:focus { outline: none; border-color: var(--accent); }
.calc-output {
  padding-top: 1.8rem; border-top: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: flex-start; gap: .9rem;
}
.calc-result {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2rem, 6vw, 3.2rem);
  color: var(--warn);
  letter-spacing: -0.02em;
}
.calc-disclaimer { font-size: .82rem; color: var(--mute); max-width: 48ch; }

/* --- Audit section (anchor product — visually distinct) --- */
.audit-section {
  background:
    linear-gradient(180deg, var(--accent-soft) 0%, transparent 45%),
    var(--bg-2);
  border-block: 1px solid var(--line);
  padding-block: clamp(5rem, 10vw, 9rem);
}
.audit-steps {
  display: grid; gap: 2.4rem;
  grid-template-columns: 1fr;
  margin-top: 3rem;
}
.audit-deliverables {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}
.audit-deliverables ul { display: grid; gap: .8rem; margin-top: 1.3rem; }
.audit-deliverables li {
  position: relative; padding-left: 1.6rem;
  font-size: 1rem; color: var(--ink-soft);
}
.audit-deliverables li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
}

/* --- WhatsApp mock (testimonials — illustrative) --- */
.whatsapp-mock {
  margin-top: 2.5rem;
  max-width: 440px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.wa-header { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.2rem; background: #1f2c34; }
.wa-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--bg-3); display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
  flex-shrink: 0;
}
.wa-name { display: block; color: #f1f1f2; font-weight: 600; font-size: .92rem; }
.wa-status { display: block; color: #8696a0; font-size: .76rem; }
.wa-body {
  padding: 1.3rem; display: grid; gap: .7rem;
  background: #0b141a;
  background-image: radial-gradient(rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 14px 14px;
}
.wa-bubble { max-width: 82%; padding: .6em .85em; border-radius: 10px; font-size: .87rem; line-height: 1.42; color: #e9edef; }
.wa-in { background: #1f2c34; border-top-left-radius: 2px; }
.wa-out { background: #005c4b; border-top-right-radius: 2px; margin-left: auto; }
.wa-time { display: block; margin-top: .35em; font-size: .68rem; color: rgba(233,237,239,.55); text-align: right; }
.wa-note {
  padding: 1rem 1.2rem; font-size: .78rem; color: var(--mute);
  background: var(--bg-2); border-top: 1px solid var(--line);
}

/* --- Qualifying contact form --- */
.checkbox-grid { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: .6rem; }
.checkbox-pill {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .65em 1.1em; border-radius: 999px; border: 1px solid var(--line);
  font-size: .85rem; color: var(--ink-soft); cursor: pointer;
  transition: border-color .2s var(--ease-out), background .2s var(--ease-out), color .2s var(--ease-out);
}
.checkbox-pill input { accent-color: var(--accent); }
.checkbox-pill.is-checked { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
fieldset.field { border: 0; padding: 0; margin: 0; }
fieldset.field legend {
  font-size: .82rem; color: var(--mute); font-family: var(--mono);
  letter-spacing: .04em; text-transform: uppercase; padding: 0;
}
.field select {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px;
  padding: .9em 1em; color: var(--ink-soft); width: 100%;
}
.field select:focus { outline: none; border-color: var(--accent); background: var(--bg-3); }

/* --- Floating WhatsApp button --- */
.whatsapp-float {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 100;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--whatsapp);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  transition: transform .3s var(--ease-bounce);
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 28px; height: 28px; }
@media (max-width: 539px) {
  .whatsapp-float { right: 1rem; bottom: 1rem; width: 52px; height: 52px; }
  .whatsapp-float svg { width: 25px; height: 25px; }
}

/* =============================================================
   7. Effects — mouse-reactive gradient mesh, reveal, misc
   ============================================================= */
.bg-gradient {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(640px 640px at var(--mx, 30%) var(--my, 20%), color-mix(in srgb, var(--gradient-1) 55%, transparent) 0%, transparent 60%),
    radial-gradient(720px 720px at calc(var(--mx, 30%) + 22%) calc(var(--my, 20%) - 14%), color-mix(in srgb, var(--gradient-2) 48%, transparent) 0%, transparent 62%),
    radial-gradient(560px 560px at calc(var(--mx, 30%) - 18%) calc(var(--my, 20%) + 24%), color-mix(in srgb, var(--gradient-3) 40%, transparent) 0%, transparent 60%),
    radial-gradient(900px 900px at 82% 88%, color-mix(in srgb, var(--gradient-4) 35%, transparent) 0%, transparent 65%);
  filter: blur(70px) saturate(135%);
  opacity: .72;
  transition: opacity .6s var(--ease-out);
  animation: meshDrift 34s ease-in-out infinite;
}
@keyframes meshDrift {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50%      { transform: scale(1.08) rotate(6deg); }
}

main, .site-footer { position: relative; z-index: 1; }

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
[data-reveal].is-revealed { opacity: 1; transform: none; }

/* Defensive: never let a reveal target stay invisible */
noscript ~ * [data-reveal],
.no-js [data-reveal] { opacity: 1; transform: none; }

/* =============================================================
   8. Responsive
   ============================================================= */
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  .process-grid { grid-template-columns: repeat(3, 1fr); }
  .service-cards { grid-template-columns: repeat(2, 1fr); }
  .audit-steps { grid-template-columns: repeat(2, 1fr); }
  .hero-foot { flex-direction: row; align-items: center; justify-content: space-between; }
  .calc-card { grid-template-columns: 1.1fr .9fr; align-items: start; }
  .calc-output { padding-top: 0; padding-left: 2rem; border-top: none; border-left: 1px solid var(--line); }
}
@media (min-width: 1280px) {
  .service-cards { grid-template-columns: repeat(3, 1fr); }
  .audit-steps { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 960px) {
  .nav-toggle { display: none !important; }
  .nav-links { display: flex !important; }
}
@media (max-width: 959px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: fixed; inset: var(--nav-h) 0 0 0; z-index: 49;
    flex-direction: column; align-items: flex-start;
    gap: 1.6rem;
    padding: 2.2rem var(--gutter);
    background: rgba(6,7,10,0.98);
    overflow-y: auto;
  }
  .nav-toggle-input:checked ~ .nav-links { display: flex; }
  .nav-toggle-input:checked ~ .nav-toggle .nav-toggle-bars { background: transparent; }
  .nav-toggle-input:checked ~ .nav-toggle .nav-toggle-bars::before { transform: rotate(45deg); }
  .nav-toggle-input:checked ~ .nav-toggle .nav-toggle-bars::after { transform: rotate(-45deg); }
  .nav-links a.btn { margin-top: .5rem; }
}

/* =============================================================
   9. Reduced-motion — intrusive effects only
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .bg-gradient { animation: none; }
  [data-reveal] { transition-duration: .35s; }
}
