/* =========================================================
   Ari Technologies — styles.css
   Archetype: Mouse-Reactive Gradient (deep navy + brand cyan + lime accent)
   ========================================================= */

:root {
  --bg:       #050b1f;
  --bg-2:     #0a1533;
  --bg-3:     #0f1d44;
  --ink:      #eef3ff;
  --mute:     #93a3c8;
  --mute-2:   #5d6d94;
  --line:     rgba(255, 255, 255, 0.09);
  --line-2:   rgba(255, 255, 255, 0.16);
  --cyan:     #2bc4e8;
  --cyan-2:   #5fdcf5;
  --blue:     #1667c4;
  --navy:     #10307a;
  --accent:   #c9da2b;
  --accent-ink: #0b1430;

  --f-display: "Inter Tight", system-ui, sans-serif;
  --f-serif:   "Instrument Serif", Georgia, serif;
  --f-mono:    "JetBrains Mono", ui-monospace, monospace;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --radius:   22px;
  --gutter:   clamp(1rem, 4vw, 3.5rem);
  --maxw:     1280px;
  --nav-h:    76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  overflow-x: clip;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-display);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.mono { font-family: var(--f-mono); letter-spacing: .02em; }
em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.005em;
  background: linear-gradient(100deg, var(--cyan-2), var(--cyan) 45%, #8fd3ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: .06em;
}

/* ---------- Ambient (mouse-reactive gradient) ---------- */
.ambient {
  position: fixed;
  inset: -10%;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle 520px at var(--mx, 70%) var(--my, 25%), rgba(43, 196, 232, .32), transparent 60%),
    radial-gradient(circle 760px at calc(var(--mx, 70%) - 18%) calc(var(--my, 25%) + 22%), rgba(22, 103, 196, .38), transparent 62%),
    radial-gradient(circle 420px at calc(100% - var(--mx, 70%)) calc(100% - var(--my, 25%)), rgba(201, 218, 43, .07), transparent 60%),
    var(--bg);
  filter: blur(30px) saturate(130%);
  transition: background .2s linear;
}
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: .5;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
}

/* ---------- Splash ---------- */
.splash {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-content: center; justify-items: center; gap: 1.2rem;
  background: var(--bg);
  transition: opacity .7s var(--ease-out), clip-path .9s var(--ease-out);
  clip-path: inset(0 0 0 0);
  animation: splashSafety .01s 4.5s forwards;
}
.splash-mark { width: 84px; height: 84px; animation: splashPulse 1.6s var(--ease-out) infinite alternate; }
.splash-word { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .4em; color: var(--mute); }
.splash.is-out { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); }
@keyframes splashPulse { from { transform: scale(.94); opacity: .7; } to { transform: scale(1.04); opacity: 1; } }
@keyframes splashSafety { to { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: 1rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600; font-size: .98rem; letter-spacing: -.005em;
  cursor: pointer;
  transition: transform .35s var(--ease-out), background .3s, color .3s, border-color .3s, box-shadow .35s;
  will-change: transform;
}
.btn span { transition: transform .35s var(--ease-out); }
.btn:hover span { transform: translateX(4px); }
.btn-accent {
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 10px 40px -10px rgba(201, 218, 43, .55);
}
.btn-accent:hover { box-shadow: 0 16px 50px -10px rgba(201, 218, 43, .8); }
.btn-ghost { border-color: var(--line-2); color: var(--ink); background: rgba(255,255,255,.03); }
.btn-ghost:hover { border-color: var(--cyan); background: rgba(43,196,232,.08); }
.btn-sm { padding: .62rem 1.15rem; font-size: .9rem; }
.btn-block { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 14px; left: 50%; z-index: 50;
  transform: translateX(-50%);
  width: min(calc(100% - 2rem), 1180px);
  height: 62px;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0 .6rem 0 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(5, 11, 31, .82);
  transition: background .3s, border-color .3s, box-shadow .3s;
}
@supports (backdrop-filter: blur(14px)) {
  .nav { background: rgba(5, 11, 31, .55); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); }
}
.nav.is-scrolled { border-color: var(--line-2); box-shadow: 0 20px 50px -20px rgba(0,0,0,.6); }
.brand { display: inline-flex; align-items: center; gap: .6rem; }
.brand img { width: 34px; height: 34px; }
.brand-text { font-size: .86rem; letter-spacing: .18em; color: var(--mute); white-space: nowrap; }
.brand-text strong { color: var(--ink); font-weight: 700; }

.nav-links { position: relative; display: flex; gap: .2rem; }
.nav-links a {
  position: relative; z-index: 1;
  padding: .5rem .9rem; border-radius: 999px;
  font-size: .9rem; color: var(--mute);
  transition: color .25s;
}
.nav-links a:hover, .nav-links a.is-active { color: var(--ink); }
.nav-indicator {
  position: absolute; top: 0; left: 0; height: 100%; width: 0;
  border-radius: 999px; background: rgba(255,255,255,.07);
  opacity: 0;
  transition: transform .45s var(--ease-out), width .45s var(--ease-out), opacity .25s;
}
.nav-burger { display: none; }

.mobile-menu { display: none; }

@media (max-width: 920px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger {
    display: grid; place-content: center; gap: 6px;
    width: 46px; height: 46px; border-radius: 50%;
    border: 1px solid var(--line-2); background: transparent; cursor: pointer;
  }
  .nav-burger span { display: block; width: 18px; height: 1.5px; background: var(--ink); transition: transform .35s var(--ease-out); }
  .nav-burger[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .mobile-menu {
    position: fixed; inset: 0; z-index: 40;
    display: flex; flex-direction: column; justify-content: center; gap: .4rem;
    padding: 6rem var(--gutter) 3rem;
    background: rgba(5, 11, 31, .97);
    opacity: 0; pointer-events: none;
    transition: opacity .4s var(--ease-out);
  }
  .mobile-menu a { font-size: clamp(2rem, 9vw, 3rem); font-weight: 600; letter-spacing: -.03em; padding: .2rem 0; border-bottom: 1px solid var(--line); }
  .mobile-menu.is-open { opacity: 1; pointer-events: auto; }
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Layout helpers ---------- */
.section { position: relative; padding: clamp(5rem, 11vw, 9rem) var(--gutter); max-width: calc(var(--maxw) + var(--gutter) * 2); margin: 0 auto; }
.section-head { max-width: 860px; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.section-head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; }
.kicker { font-size: .78rem; color: var(--cyan); text-transform: uppercase; letter-spacing: .18em; margin-bottom: 1.2rem; }
.section-title {
  font-size: clamp(2.3rem, 5.6vw, 4.6rem);
  line-height: 1.02; letter-spacing: -.04em; font-weight: 600;
  text-wrap: balance;
}
.section-title em { font-size: 1.08em; }
.lead { margin-top: 1.4rem; font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--mute); max-width: 60ch; }
.lead strong { color: var(--ink); font-weight: 600; }
.link { color: var(--ink); background: linear-gradient(var(--accent), var(--accent)) 0 100% / 100% 1px no-repeat; transition: background-size .35s var(--ease-out); padding-bottom: 2px; }
.link:hover { background-size: 100% 100%; color: var(--accent-ink); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(2rem, 4vw, 4rem);
  padding: calc(var(--nav-h) + 4rem) var(--gutter) 4rem;
  max-width: calc(var(--maxw) + var(--gutter) * 2); margin: 0 auto;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .45rem .9rem; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255,255,255,.03);
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; color: var(--mute);
  margin-bottom: 1.8rem;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(201,218,43,.7); animation: ping 2.4s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(201,218,43,.6); } 70%, 100% { box-shadow: 0 0 0 10px rgba(201,218,43,0); } }

.hero-title {
  font-size: clamp(2.6rem, 4.9vw, 4.7rem);
  line-height: .98; letter-spacing: -.045em; font-weight: 600;
  text-wrap: balance;
  max-width: 18ch;
}
.hero-title em { font-size: 1.1em; }
.hero-sub { margin-top: 1.6rem; max-width: 52ch; font-size: clamp(1.02rem, 1.3vw, 1.15rem); color: var(--mute); }
.hero-sub strong { color: var(--accent); font-weight: 600; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 2.2rem; }
.hero-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2.4rem; }
.hero-chips li {
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase;
  padding: .45rem .8rem; border-radius: 8px; border: 1px solid var(--line); color: var(--mute);
}

/* Hero visual — dashboard mockup */
.hero-visual { position: relative; aspect-ratio: 1 / .92; perspective: 1400px; }
.device {
  position: absolute; inset: 6% 2% 10% 4%;
  border-radius: 18px;
  background: linear-gradient(160deg, #0f1f4a, #0a1535 60%);
  border: 1px solid var(--line-2);
  box-shadow: 0 60px 120px -40px rgba(0,0,0,.8), 0 0 0 1px rgba(43,196,232,.08), inset 0 1px 0 rgba(255,255,255,.08);
  overflow: hidden;
  display: flex; flex-direction: column;
  animation: bob 9s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.device-bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.device-bar span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.14); }
.device-bar span:first-child { background: #ff6b6b; } .device-bar span:nth-child(2) { background: #f5c451; } .device-bar span:nth-child(3) { background: #49d68a; }
.device-bar p { margin-left: 10px; font-family: var(--f-mono); font-size: .66rem; color: var(--mute-2); }
.device-body { flex: 1; display: grid; grid-template-columns: 46px 1fr; min-height: 0; }
.dash-side { background: linear-gradient(180deg, #1452b8, #0d3a8e); display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 14px 0; }
.dash-side i { width: 18px; height: 18px; border-radius: 6px; background: rgba(255,255,255,.22); }
.dash-side i.is-on { background: var(--accent); }
.dash-main { padding: 14px; display: grid; grid-template-rows: auto 1fr auto; gap: 12px; min-height: 0; }
.dash-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi { padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line); display: grid; gap: 2px; }
.kpi small { font-size: .6rem; color: var(--mute); text-transform: uppercase; letter-spacing: .06em; }
.kpi b { font-size: clamp(.85rem, 1.3vw, 1.08rem); letter-spacing: -.02em; white-space: nowrap; }
.kpi em { font-family: var(--f-mono); font-style: normal; font-size: .58rem; color: var(--mute); background: none; -webkit-background-clip: initial; background-clip: initial; }
.kpi em.up { color: #49d68a; } .kpi em.warn { color: #f5c451; }
.dash-chart { border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--line); padding: 10px 12px; display: flex; flex-direction: column; min-height: 0; }
.dash-chart-head { display: flex; justify-content: space-between; margin-bottom: 6px; }
.dash-chart-head small { font-size: .6rem; color: var(--mute); }
.dash-chart svg { flex: 1; width: 100%; height: 100%; min-height: 70px; }
.chart-line { stroke-dasharray: 700; stroke-dashoffset: 700; animation: draw 2.6s .9s var(--ease-out) forwards; }
.chart-area { opacity: 0; animation: fadeIn 1.4s 1.8s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }
.dash-row { display: grid; grid-template-columns: 1fr 96px; gap: 10px; }
.dash-list { border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--line); padding: 10px 12px; display: grid; gap: 6px; }
.dash-list small { font-size: .6rem; color: var(--mute); }
.dash-list p { display: grid; grid-template-columns: 70px 1fr; align-items: center; gap: 8px; font-size: .62rem; color: var(--mute); }
.dash-list i { display: block; height: 6px; border-radius: 4px; width: var(--w); background: linear-gradient(90deg, var(--blue), var(--cyan)); }
.dash-donut { border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--line); display: grid; place-items: center; position: relative; padding: 8px; }
.dash-donut svg { width: 72px; height: 72px; transform: rotate(-90deg); }
.dash-donut small { position: absolute; text-align: center; font-size: .5rem; color: var(--mute); line-height: 1.2; }
.dash-donut small b { font-size: .8rem; color: var(--ink); }

.float-card {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: .7rem;
  padding: .75rem 1rem .75rem .75rem; border-radius: 16px;
  background: rgba(14, 28, 66, .92); border: 1px solid var(--line-2);
  box-shadow: 0 24px 50px -18px rgba(0,0,0,.7);
}
@supports (backdrop-filter: blur(12px)) {
  .float-card { background: rgba(14, 28, 66, .66); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
}
.float-card b { display: block; font-size: .85rem; }
.float-card small { font-size: .72rem; color: var(--mute); }
.fc-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.fc-sync { background: var(--cyan); }
.fc-1 { left: -4%; bottom: 14%; animation: bob 7s -2s ease-in-out infinite; }
.fc-2 { right: -2%; top: 0%; animation: bob 8s -4s ease-in-out infinite; }
.phone {
  position: absolute; z-index: 3; right: 2%; bottom: 0;
  width: 26%; aspect-ratio: 9 / 18;
  border-radius: 22px; padding: 22px 12px 12px;
  background: linear-gradient(170deg, #12245a, #0a1535);
  border: 1px solid var(--line-2);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.85);
  display: flex; flex-direction: column; gap: 6px;
  animation: bob 6s -1s ease-in-out infinite;
}
.phone-notch { position: absolute; top: 7px; left: 50%; translate: -50% 0; width: 34%; height: 6px; border-radius: 6px; background: rgba(255,255,255,.12); }
.phone small { font-size: .58rem; color: var(--mute); font-family: var(--f-mono); }
.phone b { font-size: clamp(.8rem, 1.2vw, 1rem); letter-spacing: -.02em; }
.phone i { display: block; height: 14px; border-radius: 6px; background: rgba(255,255,255,.06); }
.phone-btn { margin-top: auto; text-align: center; padding: 6px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-size: .66rem; font-weight: 700; }

/* ---------- Marquee ---------- */
.marquee { padding: 2.4rem 0; border-block: 1px solid var(--line); overflow: hidden; }
.marquee-label { text-align: center; font-size: .72rem; color: var(--mute-2); text-transform: uppercase; letter-spacing: .2em; margin-bottom: 1.2rem; }
.marquee-track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-row { display: flex; flex-shrink: 0; }
.marquee-row span {
  font-size: clamp(1.4rem, 2.6vw, 2.2rem); font-weight: 500; letter-spacing: -.03em; color: var(--mute);
  padding: 0 1.4rem; white-space: nowrap; display: inline-flex; align-items: center; gap: 2.8rem;
  transition: color .3s;
}
.marquee-row span::after { content: "✦"; font-size: .6em; color: var(--cyan); }
.marquee-row span:hover { color: var(--ink); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Manifesto ---------- */
.manifesto { padding: clamp(5rem, 12vw, 10rem) var(--gutter); }
.manifesto-text {
  max-width: 30ch; margin: 0 auto; text-align: center;
  font-size: clamp(1.6rem, 3.4vw, 2.9rem); line-height: 1.18; letter-spacing: -.03em; font-weight: 500;
  color: var(--mute); text-wrap: balance;
}
.manifesto-text strong { color: var(--ink); font-weight: 600; }

/* ---------- Stats / Beneficios ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 2.4rem 1.6rem 2rem 0; border-right: 1px solid var(--line); }
.stat + .stat { padding-left: 1.6rem; }
.stat:last-child { border-right: 0; }
.stat-num {
  font-size: clamp(3.4rem, 6.4vw, 5.6rem); line-height: 1; letter-spacing: -.06em; font-weight: 600;
  margin-bottom: 1.8rem;
  background: linear-gradient(180deg, var(--ink) 30%, rgba(238,243,255,.35));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: transform .5s var(--ease-out);
}
.stat-num sup { font-size: .42em; vertical-align: top; position: relative; top: .25em; margin-left: .04em; -webkit-text-fill-color: var(--accent); }
.stat:hover .stat-num { transform: translateY(-6px); }
.stat h3 { font-size: 1.12rem; letter-spacing: -.02em; font-weight: 600; margin-bottom: .6rem; }
.stat p:not(.stat-num) { color: var(--mute); font-size: .95rem; }

/* ---------- Multi ---------- */
.multi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.multi-copy { position: sticky; top: calc(var(--nav-h) + 3rem); }
.multi-list { display: grid; gap: 1rem; }
.multi-list li {
  display: grid; grid-template-columns: 52px 1fr; gap: 1.2rem; align-items: start;
  padding: 1.6rem; border-radius: var(--radius);
  border: 1px solid var(--line); background: rgba(255,255,255,.025);
  transition: border-color .35s, background .35s, transform .45s var(--ease-out);
}
.multi-list li:hover { border-color: rgba(43,196,232,.4); background: rgba(43,196,232,.05); transform: translateX(6px); }
.multi-list .mono { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: rgba(43,196,232,.1); color: var(--cyan); font-size: 1rem; }
.multi-list h3 { font-size: 1.25rem; letter-spacing: -.02em; font-weight: 600; margin-bottom: .3rem; }
.multi-list p { color: var(--mute); }

/* ---------- Modules (accordion rows) ---------- */
.modules { border-top: 1px solid var(--line); counter-reset: none; }
.module { border-bottom: 1px solid var(--line); }
.module-head {
  width: 100%; display: grid; grid-template-columns: 70px 1fr 44px; align-items: center; gap: 1rem;
  padding: 1.6rem 0; background: none; border: 0; cursor: pointer; text-align: left;
  transition: padding .45s var(--ease-out), color .3s;
}
.module-n { color: var(--mute-2); font-size: .85rem; transition: color .3s; }
.module-name { font-size: clamp(1.5rem, 3.4vw, 2.6rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.1; }
.module-name small { font-family: var(--f-mono); font-size: .32em; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); vertical-align: middle; margin-left: .8rem; font-weight: 400; }
.module-plus { position: relative; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); justify-self: end; transition: background .3s, border-color .3s, transform .45s var(--ease-out); }
.module-plus::before, .module-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; background: currentColor; translate: -50% -50%; transition: transform .45s var(--ease-out); }
.module-plus::after { transform: rotate(90deg); }
.module-head:hover { padding-left: .8rem; }
.module-head:hover .module-n { color: var(--cyan); }
.module-head:hover .module-plus { border-color: var(--cyan); }
[aria-expanded="true"] .module-plus { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); transform: rotate(180deg); }
[aria-expanded="true"] .module-plus::after { transform: rotate(0deg); }
[aria-expanded="true"] .module-n { color: var(--accent); }
.module-body, .faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease-out); }
.module-body > div, .faq-a > div { overflow: hidden; }
.module-body p { padding: 0 0 1.8rem 86px; max-width: 70ch; color: var(--mute); font-size: 1.08rem; }
.is-open > .module-body, .is-open > .faq-a { grid-template-rows: 1fr; }
.modules-note { margin-top: 2.4rem; color: var(--mute); }
.modules-note strong { color: var(--ink); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 27px; left: 28px; right: 28px; height: 1px;
  background: linear-gradient(90deg, var(--cyan), var(--blue) 60%, var(--accent));
  transform-origin: left; transform: scaleX(var(--progress, 0));
  transition: transform 1.6s var(--ease-out);
}
.steps.is-drawn::before { --progress: 1; }
.step { position: relative; padding-right: .5rem; }
.step-n {
  position: relative; z-index: 1;
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--bg-2); border: 1px solid var(--line-2);
  font-family: var(--f-mono); font-size: 1.05rem; color: var(--cyan);
  margin-bottom: 1.6rem;
  transition: background .35s, color .35s, border-color .35s;
}
.step:hover .step-n { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.step h3 { font-size: 1.12rem; letter-spacing: -.02em; font-weight: 600; margin-bottom: .6rem; line-height: 1.25; }
.step p { color: var(--mute); font-size: .95rem; }

/* ---------- Social posts ---------- */
.social-links { display: flex; flex-wrap: wrap; gap: .6rem; }
.social-links a {
  display: inline-flex; flex-direction: column; padding: .7rem 1.1rem; border-radius: 14px;
  border: 1px solid var(--line-2); font-weight: 600; font-size: .95rem;
  transition: border-color .3s, background .3s, transform .35s var(--ease-out);
}
.social-links a span { font-family: var(--f-mono); font-size: .7rem; color: var(--mute); font-weight: 400; }
.social-links a:hover { border-color: var(--cyan); background: rgba(43,196,232,.07); transform: translateY(-3px); }
.posts {
  display: flex; gap: 1.2rem;
  overflow-x: auto; overflow-y: visible;
  padding-block: 1rem 2rem;
  margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
  scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--bg-3) transparent;
  cursor: grab;
}
.posts.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.post {
  margin: 0; flex: 0 0 clamp(240px, 26vw, 330px); scroll-snap-align: start;
  border-radius: 20px; overflow: hidden; border: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.7);
  transition: transform .5s var(--ease-out), border-color .3s;
}
.post img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; pointer-events: none; user-select: none; }
.post:hover { transform: translateY(-8px) rotate(-.6deg); border-color: rgba(43,196,232,.5); }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.faq-head { position: sticky; top: calc(var(--nav-h) + 3rem); }
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.5rem 0; background: none; border: 0; cursor: pointer; text-align: left;
  font-size: clamp(1.08rem, 1.6vw, 1.3rem); font-weight: 500; letter-spacing: -.02em;
}
.faq-q .module-plus { flex-shrink: 0; width: 36px; height: 36px; }
.faq-a p { padding-bottom: 1.6rem; color: var(--mute); max-width: 62ch; }
.faq-a strong { color: var(--ink); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2.5rem, 6vw, 5rem);
  padding: clamp(1.8rem, 5vw, 4rem);
  border-radius: 32px; border: 1px solid var(--line-2);
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(43,196,232,.14), transparent 55%),
    radial-gradient(90% 90% at 100% 100%, rgba(201,218,43,.08), transparent 60%),
    linear-gradient(160deg, rgba(15,29,68,.8), rgba(5,11,31,.8));
}
.contact-title { font-size: clamp(2.8rem, 7vw, 5.8rem); line-height: .95; letter-spacing: -.05em; font-weight: 600; }
.contact-data { margin: 2.6rem 0 0; display: grid; gap: 1.4rem; }
.contact-data div { display: grid; grid-template-columns: 110px 1fr; gap: 1rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.contact-data dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--mute-2); padding-top: .25rem; }
.contact-data dd { margin: 0; font-size: 1.05rem; }
.contact-data a { background: linear-gradient(var(--cyan), var(--cyan)) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease-out); }
.contact-data a:hover { background-size: 100% 1px; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; align-content: start; }
.field { display: grid; gap: .45rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .8rem; color: var(--mute); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; padding: .95rem 1.05rem; border-radius: 14px;
  background: rgba(5, 11, 31, .6); border: 1px solid var(--line-2);
  transition: border-color .25s, background .25s, box-shadow .25s;
  outline: none;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--mute) 50%), linear-gradient(135deg, var(--mute) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.6rem; }
.field select option { background: var(--bg-2); color: var(--ink); }
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: var(--mute-2); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--cyan); background: rgba(5,11,31,.85); box-shadow: 0 0 0 4px rgba(43,196,232,.12); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #ff7a7a; }
.check { display: flex; gap: .75rem; align-items: flex-start; font-size: .88rem; color: var(--mute); cursor: pointer; }
.check input { flex-shrink: 0; width: 20px; height: 20px; margin-top: 1px; accent-color: var(--accent); cursor: pointer; }
.check.has-error span { color: #ff9a9a; }
.form-foot { margin-top: .4rem; }
.form-status { margin-top: .9rem; font-size: .9rem; min-height: 1.4em; color: var(--mute); }
.form-status.is-ok { color: var(--accent); }
.form-status.is-error { color: #ff9a9a; }

/* ---------- Footer ---------- */
.footer { padding: clamp(4rem, 8vw, 6rem) var(--gutter) 2.4rem; max-width: calc(var(--maxw) + var(--gutter) * 2); margin: 0 auto; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; padding-bottom: 2.4rem; border-bottom: 1px solid var(--line); }
.footer-motto { font-size: .8rem; letter-spacing: .3em; text-transform: uppercase; color: var(--mute); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.6rem; font-size: .85rem; color: var(--mute-2); }
.footer-bottom nav { display: flex; gap: 1.4rem; }
.footer-bottom a:hover { color: var(--ink); }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: clamp(1rem, 2.5vw, 1.8rem); bottom: clamp(1rem, 2.5vw, 1.8rem); z-index: 60;
  display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%;
  background: #25d366; color: #fff;
  box-shadow: 0 18px 40px -10px rgba(37,211,102,.6);
  transition: transform .4s var(--ease-out);
}
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: waRing 2.6s infinite; }
@keyframes waRing { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.55); opacity: 0; } }
.wa-float:hover { transform: scale(1.08); }
.wa-tip {
  position: absolute; right: calc(100% + 12px); white-space: nowrap;
  padding: .5rem .9rem; border-radius: 999px; background: var(--ink); color: var(--accent-ink);
  font-size: .85rem; font-weight: 600;
  opacity: 0; transform: translateX(8px); transition: opacity .3s, transform .4s var(--ease-out); pointer-events: none;
}
.wa-float:hover .wa-tip { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; padding-top: calc(var(--nav-h) + 3rem); }
  .hero-title { max-width: 16ch; }
  .hero-visual { max-width: 640px; width: 100%; margin: 0 auto; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(3) { padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before { top: 28px; bottom: 28px; left: 27px; right: auto; width: 1px; height: auto; transform-origin: top; transform: scaleY(var(--progress, 0)); }
  .step { display: grid; grid-template-columns: 56px 1fr; column-gap: 1.4rem; padding-bottom: 2.2rem; }
  .step-n { grid-row: span 2; margin: 0; }
  .multi-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; }
  .multi-copy, .faq-head { position: static; }
}
@media (max-width: 640px) {
  :root { --nav-h: 68px; }
  .nav { top: 10px; height: 56px; width: calc(100% - 1.2rem); }
  .brand-text { font-size: .76rem; letter-spacing: .14em; }
  .hero { padding-bottom: 2.5rem; }
  .hero-visual { aspect-ratio: 1 / 1.05; }
  .device { inset: 8% 0 16% 0; }
  .dash-kpis { grid-template-columns: repeat(2, 1fr); }
  .dash-kpis .kpi:nth-child(3) { display: none; }
  .fc-1 { left: 0; bottom: 4%; }
  .fc-2 { right: 0; top: 0; }
  .phone { width: 30%; right: 0; bottom: 0; }
  .float-card { padding: .55rem .8rem .55rem .55rem; }
  .float-card small { display: none; }
  .stats { grid-template-columns: 1fr; }
  .stat, .stat + .stat { padding: 2rem 0; border-right: 0; }
  .stat + .stat { border-top: 1px solid var(--line); }
  .module-head { grid-template-columns: 40px 1fr 40px; padding: 1.3rem 0; }
  .module-name small { display: block; margin: .4rem 0 0; font-size: .38em; }
  .module-body p { padding-left: 56px; font-size: 1rem; }
  .multi-list li { grid-template-columns: 1fr; padding: 1.3rem; }
  .form { grid-template-columns: 1fr; }
  .contact-grid { border-radius: 24px; }
  .contact-data div { grid-template-columns: 1fr; gap: .3rem; }
  .wa-float { width: 56px; height: 56px; }
}

/* Only truly intrusive loops are gated */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation-duration: 120s; }
  .wa-float::before { animation: none; }
}
