/* =========================================================
   Boutique da Tecnologia — v2
   Direção: "laboratório noturno" — grafite profundo, teal da
   marca como luz, cinzas do logo como tipografia secundária.
   ========================================================= */

:root {
  --bg: #06090B;
  --bg-2: #0B1114;
  --bg-3: #101A1E;
  --line: rgba(205, 220, 225, .09);
  --line-2: rgba(205, 220, 225, .16);
  --text: #EAF1F3;
  --muted: #D2DDE1;
  --gray-1: #CDCDCD;       /* "da" do logo */
  --gray-2: #889BA8;       /* "tecnologia" do logo */
  --teal: #02B9C3;         /* teal do logo */
  --teal-hi: #6FF3F7;
  --teal-lo: #014E54;
  --amber: #F4B64A;
  --red: #FF5D5D;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --pad: clamp(20px, 5vw, 72px);
  --radius: 22px;
  --f-display: "Sora", system-ui, sans-serif;
  --f-body: "Inter", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
  --f-logo: "Comfortaa", "Sora", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img, svg, canvas { display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--teal); color: #001214; }

.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.teal { color: var(--teal); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* grain + vignette */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -4%); } 60% { transform: translate(-4%, -2%); }
  80% { transform: translate(3%, 4%); } 100% { transform: translate(0, 0); }
}

/* ---------- LOGO (vetorização fiel do logo atual) ---------- */
.logo { display: inline-flex; align-items: center; gap: 12px; line-height: 1; }
.logo-icon { width: 40px; height: 40px; flex: none; }
.logo-icon .b { transition: stroke-dashoffset 1.4s var(--ease); }
.logo-word { font-family: var(--f-logo); font-weight: 700; font-size: 21px; letter-spacing: -.01em; white-space: nowrap; }
.logo-word .w1 { color: var(--teal); }
.logo-word .w2 { color: #CDCDCD; }
.logo-word .w3 { color: #889BA8; }

/* ---------- PRELOADER ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100; background: var(--bg);
  display: grid; place-items: center; transition: clip-path 1.1s var(--ease-in-out);
  clip-path: inset(0 0 0 0);
}
.loader.done { clip-path: inset(0 0 100% 0); }
.loader-inner { display: grid; justify-items: center; gap: 28px; }
.loader-icon { width: 92px; height: 92px; }
.loader-icon circle { transform-origin: 32px 32px; animation: pop 1s var(--ease) both; }
.loader-icon .b { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.3s .25s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.loader-bar { width: 180px; height: 1px; background: var(--line-2); position: relative; overflow: hidden; }
.loader-bar i { position: absolute; inset: 0; background: var(--teal); transform-origin: left; transform: scaleX(0); }
.loader-count { color: var(--muted); }

/* ---------- CURSOR ---------- */
.cursor, .cursor-ring { position: fixed; left: 0; top: 0; pointer-events: none; z-index: 95; border-radius: 50%; }
.cursor { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--teal-hi); }
.cursor-ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1px solid rgba(111, 243, 247, .45);
  display: grid; place-items: center;
  transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), background .3s, border-color .3s;
}
.cursor-ring span { font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #001214; opacity: 0; transition: opacity .2s; }
.cursor-ring.hover { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(2, 185, 195, .12); border-color: var(--teal); }
.cursor-ring.label { width: 86px; height: 86px; margin: -43px 0 0 -43px; background: var(--teal); border-color: var(--teal); }
.cursor-ring.label span { opacity: 1; }
@media (pointer: coarse) { .cursor, .cursor-ring { display: none; } }
@media (pointer: fine) { body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; } }

/* ---------- NAV ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; padding: 18px var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  transition: transform .6s var(--ease), background .4s, backdrop-filter .4s, padding .4s;
}
.nav.scrolled { background: rgba(6, 9, 11, .62); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); padding-top: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.nav.hide { transform: translateY(-110%); }
.nav-links { display: flex; gap: 6px; list-style: none; margin: 0; padding: 4px; border: 1px solid var(--line); border-radius: 99px; background: rgba(255,255,255,.02); }
.nav-links a { display: block; white-space: nowrap; padding: 8px 16px; border-radius: 99px; font-size: 14px; color: var(--muted); transition: color .3s, background .3s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(255,255,255,.06); }
.nav-progress { position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--teal); transform-origin: left; transform: scaleX(0); }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; }
.burger i { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--text); transition: transform .4s var(--ease), top .4s var(--ease); }
.burger i:nth-child(1) { top: 18px; } .burger i:nth-child(2) { top: 25px; }
.menu-open .burger i:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-open .burger i:nth-child(2) { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 45; background: var(--bg-2); display: flex; flex-direction: column; justify-content: center;
  padding: 100px var(--pad) 40px; clip-path: circle(0% at calc(100% - 44px) 40px); transition: clip-path .8s var(--ease-in-out);
}
.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 44px) 40px); }
.mobile-menu a.big { font-family: var(--f-display); font-size: clamp(36px, 10vw, 64px); font-weight: 600; letter-spacing: -.03em; line-height: 1.15; display: block; }
.mobile-menu a.big span { color: var(--muted); font-family: var(--f-mono); font-size: 12px; vertical-align: top; margin-right: 10px; }

/* ---------- BUTTONS ---------- */
.btn {
  --bgc: var(--teal);
  position: relative; display: inline-flex; align-items: center; gap: 12px; padding: 16px 26px; border-radius: 99px;
  font-weight: 600; font-size: 15px; overflow: hidden; isolation: isolate; white-space: nowrap;
  transition: color .4s var(--ease);
}
.btn::before { content: ""; position: absolute; inset: 0; background: var(--bgc); z-index: -2; border-radius: inherit; }
.btn::after {
  content: ""; position: absolute; left: var(--bx, 50%); top: var(--by, 50%); width: 10px; height: 10px; border-radius: 50%;
  background: var(--text); z-index: -1; transform: translate(-50%, -50%) scale(0); transition: transform .6s var(--ease);
}
.btn:hover::after { transform: translate(-50%, -50%) scale(40); }
.btn-primary { color: #001214; }
.btn-ghost { --bgc: transparent; border: 1px solid var(--line-2); color: var(--text); }
.btn-ghost:hover { color: #001214; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn .arrow { transition: transform .5s var(--ease); }
.btn:hover .arrow { transform: translateX(4px) rotate(-45deg); }

/* ---------- SECTION BASICS ---------- */
section { position: relative; }
.wrap { padding: 0 var(--pad); max-width: 1440px; margin: 0 auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 12px var(--teal); }
.h-xl { font-family: var(--f-display); font-weight: 600; letter-spacing: -.045em; line-height: .95; font-size: clamp(48px, 9.2vw, 152px); margin: 0; }
.h-lg { font-family: var(--f-display); font-weight: 600; letter-spacing: -.035em; line-height: 1.02; font-size: clamp(38px, 5.6vw, 88px); margin: 0; }
.h-md { font-family: var(--f-display); font-weight: 600; letter-spacing: -.02em; line-height: 1.15; font-size: clamp(22px, 2.2vw, 30px); margin: 0; }
.lead { font-size: clamp(17px, 1.35vw, 20px); color: var(--muted); max-width: 56ch; }
.sec-head { display: grid; grid-template-columns: 1.5fr 1fr; align-items: end; gap: 40px; margin-bottom: clamp(48px, 7vw, 96px); }
.sec-head .lead { margin: 0; }

/* split text */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span { display: inline-block; transform: translateY(105%) rotate(4deg); transform-origin: left bottom; transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 45ms); }
.split.in .w > span { transform: none; }
.no-js .split .w > span { transform: none; }

/* reveal */
.js [data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- HERO ---------- */
.hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 140px 0 48px; overflow: hidden; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px circle at var(--gx, 70%) var(--gy, 40%), rgba(2, 185, 195, .16), transparent 60%),
    radial-gradient(900px circle at 85% 110%, rgba(2, 185, 195, .10), transparent 60%);
}
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 30%; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.hero .wrap { position: relative; z-index: 2; width: 100%; }
.hero-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: clamp(24px, 4vw, 48px); gap: 20px; flex-wrap: wrap; }
.status { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 12px; border: 1px solid var(--line-2); border-radius: 99px; background: rgba(6,9,11,.5); backdrop-filter: blur(8px); }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); position: relative; }
.status i::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--teal); animation: ping 1.8s var(--ease) infinite; }
@keyframes ping { from { transform: scale(.4); opacity: 1; } to { transform: scale(2); opacity: 0; } }
.hero h1 .line { display: block; }
.hero h1 .accent .w > span, .no-js .hero h1 .accent {
  color: transparent; -webkit-text-stroke: 1.5px var(--teal);
  background: linear-gradient(90deg, var(--teal) var(--fill, 0%), transparent calc(var(--fill, 0%) + .5%));
  -webkit-background-clip: text; background-clip: text;
}
.hero-bottom { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: end; margin-top: clamp(32px, 5vw, 64px); }
.hero-bottom .lead { margin: 0; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.hero-emblem {
  position: absolute; z-index: 1; right: calc(var(--pad) - 2vw); top: 50%; width: min(38vw, 560px); aspect-ratio: 1;
  transform: translateY(-62%); pointer-events: none;
}
.hero-emblem svg { width: 100%; height: 100%; overflow: visible; }
.hero-emblem .ring { fill: none; stroke: var(--line-2); }
.hero-emblem .ring-dash { fill: none; stroke: rgba(2,185,195,.35); stroke-dasharray: 2 10; }
.hero-emblem .b { fill: none; stroke: var(--teal); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 18px rgba(2,185,195,.55)); stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s .3s var(--ease); }
.loaded .hero-emblem .b { stroke-dashoffset: 0; }
.hero-emblem .layer { transition: transform .9s var(--ease); transform-box: fill-box; transform-origin: center; }
.hero-emblem .spin { animation: spin 40s linear infinite; transform-origin: 32px 32px; }
.hero-emblem .spin-r { animation: spin 70s linear infinite reverse; transform-origin: 32px 32px; }
@keyframes spin { to { transform: rotate(360deg); } }
.scroll-hint { position: absolute; left: 50%; bottom: 22px; z-index: 3; transform: translateX(-50%); display: grid; justify-items: center; gap: 10px; color: var(--muted); }
.scroll-hint i { width: 1px; height: 46px; background: linear-gradient(var(--teal), transparent); transform-origin: top; animation: drip 2s var(--ease) infinite; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* hero intro (after loader) */
.js .hero [data-intro] { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); transition-delay: var(--d, 0s); }
.loaded .hero [data-intro] { opacity: 1; transform: none; }

/* ---------- MARQUEE ---------- */
.marquee { border-block: 1px solid var(--line); padding: 26px 0; overflow: hidden; background: var(--bg); position: relative; z-index: 2; }
.marquee-track { display: flex; width: max-content; will-change: transform; }
.marquee-item { display: inline-flex; align-items: center; gap: 36px; padding-right: 36px; font-family: var(--f-display); font-size: clamp(22px, 3vw, 40px); font-weight: 500; letter-spacing: -.02em; white-space: nowrap; color: var(--gray-1); }
.marquee-item svg { width: 22px; height: 22px; color: var(--teal); }
.marquee-item:nth-child(even) { color: transparent; -webkit-text-stroke: 1px var(--gray-2); }

/* ---------- SERVICES ---------- */
.services { padding: clamp(100px, 14vw, 200px) 0; }
.grid-services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card {
  position: relative; border-radius: var(--radius); padding: 32px; min-height: 340px; background: var(--bg-2); border: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; isolation: isolate;
  transform-style: preserve-3d; transition: transform .6s var(--ease), border-color .4s;
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(2, 185, 195, .16), transparent 50%);
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), var(--teal), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.card:hover::before, .card:hover::after { opacity: 1; }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; }
.card-num { color: var(--muted); }
.card-icon { width: 64px; height: 64px; color: var(--teal); }
.card-icon * { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.card-icon .draw { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease); }
.card.in .card-icon .draw { stroke-dashoffset: 0; }
.card:hover .card-icon .pulse { animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.card h3 { font-family: var(--f-display); font-size: 26px; letter-spacing: -.02em; margin: 0 0 10px; font-weight: 600; transform: translateZ(30px); }
.card p { margin: 0; color: var(--muted); transform: translateZ(20px); }
.card .tag { display: inline-block; margin-top: 18px; padding: 6px 10px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--teal); }
.card.wide { grid-column: span 2; }
.card.feature { background: linear-gradient(140deg, #0B2226, var(--bg-2) 60%); }

/* ---------- REMOTE ---------- */
.remote { padding: 0 0 clamp(100px, 14vw, 180px); }
.remote-box {
  border: 1px solid var(--line); border-radius: calc(var(--radius) + 10px); overflow: hidden; position: relative;
  display: grid; grid-template-columns: 1fr 1.2fr; min-height: 460px; background: radial-gradient(120% 100% at 100% 0%, #0C2A2E, var(--bg-2) 55%);
}
.remote-copy { padding: clamp(32px, 5vw, 72px); display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.remote-viz { position: relative; }
.remote-viz svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mode-toggle { display: inline-flex; padding: 4px; border-radius: 99px; border: 1px solid var(--line-2); width: max-content; position: relative; }
.mode-toggle button { position: relative; z-index: 1; padding: 10px 18px; border-radius: 99px; font-size: 14px; color: var(--muted); transition: color .4s; }
.mode-toggle button.on { color: #001214; }
.mode-toggle .pill { position: absolute; top: 4px; bottom: 4px; left: 4px; border-radius: 99px; background: var(--teal); transition: transform .6s var(--ease), width .6s var(--ease); }
.mode-desc { min-height: 3.2em; color: var(--muted); margin: 0; transition: opacity .3s; }

/* ---------- PREVENTIVE SIM ---------- */
.prev { padding: clamp(100px, 12vw, 180px) 0; background: var(--bg-2); border-block: 1px solid var(--line); overflow: hidden; }
.prev-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.sim { border: 1px solid var(--line-2); border-radius: calc(var(--radius) + 6px); background: var(--bg); overflow: hidden; position: relative; }
.sim-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); color: var(--muted); }
.sim-head .dots { display: flex; gap: 6px; } .sim-head .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.sim-stage { position: relative; aspect-ratio: 1.55; display: grid; place-items: center; overflow: hidden; }
.sim-heat { position: absolute; inset: 0; background: radial-gradient(closest-side, rgba(255, 93, 93, .55), transparent); opacity: 0; transition: opacity .4s; }
.sim-stage svg { width: 52%; height: auto; position: relative; z-index: 1; }
.sim-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.sim-sweep { position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(100deg, transparent 30%, rgba(111, 243, 247, .45) 50%, transparent 70%); transform: translateX(-120%); }
.sim-sweep.go { animation: sweep 1.2s var(--ease-in-out); }
@keyframes sweep { to { transform: translateX(120%); } }
.fan-frame { fill: #0E1619; stroke: var(--line-2); }
.fan-blade { fill: #1A2A2F; stroke: rgba(2,185,195,.5); stroke-width: .8; }
.fan-hub { fill: #0B1114; stroke: var(--teal); }
.sim-panel { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.sim-stat { padding: 18px 20px; border-right: 1px solid var(--line); }
.sim-stat:last-child { border-right: 0; }
.sim-stat b { display: block; font-family: var(--f-display); font-size: clamp(22px, 2.4vw, 32px); letter-spacing: -.03em; font-weight: 600; transition: color .3s; font-variant-numeric: tabular-nums; }
.sim-stat span { color: var(--muted); }
.sim-controls { padding: 20px; border-top: 1px solid var(--line); display: grid; gap: 16px; }
.range-row { display: flex; justify-content: space-between; color: var(--muted); }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(90deg, var(--teal) var(--p, 0%), var(--line-2) var(--p, 0%)); }
input[type=range]::-moz-range-track { height: 2px; background: var(--line-2); }
input[type=range]::-moz-range-progress { height: 2px; background: var(--teal); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--text); margin-top: -10px; box-shadow: 0 0 0 6px rgba(2,185,195,.25); }
input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--text); border: 0; box-shadow: 0 0 0 6px rgba(2,185,195,.25); }
.checklist { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 0; }
.checklist li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); color: var(--gray-1); }
.checklist li:last-child { border-bottom: 1px solid var(--line); }
.checklist svg { width: 22px; height: 22px; color: var(--teal); margin-top: 2px; }
.checklist svg path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .8s var(--ease); transition-delay: var(--d, 0s); }
.checklist li.in svg path { stroke-dashoffset: 0; }
.note { color: var(--muted); font-size: 12px; margin-top: 12px; }

/* ---------- PROCESS (horizontal pinned) ---------- */
.process { padding: clamp(100px, 12vw, 160px) 0 0; overflow: hidden; }
.process-pin { height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.process-track { display: flex; gap: 24px; padding: 0 var(--pad); width: max-content; will-change: transform; }
.step {
  width: min(560px, 78vw); min-height: 440px; padding: 40px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2);
  display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden;
}
.step-num { font-family: var(--f-display); font-size: clamp(110px, 14vw, 200px); line-height: .8; font-weight: 600; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1px var(--line-2); transition: -webkit-text-stroke-color .5s; }
.step.active .step-num { -webkit-text-stroke-color: var(--teal); }
.step h3 { font-family: var(--f-display); font-size: clamp(26px, 2.6vw, 36px); letter-spacing: -.03em; margin: 0 0 12px; font-weight: 600; }
.step p { color: var(--muted); margin: 0; max-width: 40ch; }
.step-intro { width: min(520px, 80vw); display: flex; flex-direction: column; justify-content: center; padding-right: 40px; }
.process-bar { margin: 48px var(--pad) 0; height: 1px; background: var(--line-2); position: relative; }
.process-bar i { position: absolute; inset: 0; background: var(--teal); transform-origin: left; transform: scaleX(0); }

/* ---------- VALUES ---------- */
.values { padding: clamp(100px, 12vw, 180px) 0; }
.values-quote { font-family: var(--f-display); font-weight: 500; letter-spacing: -.03em; line-height: 1.12; font-size: clamp(30px, 4.4vw, 68px); max-width: 20ch; margin: 0 0 64px; }
.values-quote .word { opacity: .14; transition: opacity .3s; }
.values-quote .word.lit { opacity: 1; }
.values-quote .word.hl.lit { color: var(--teal); }
.values-list { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); }
.values-list div { padding: 22px 20px 0 0; color: var(--gray-1); font-size: 15px; }
.values-list span { display: block; color: var(--teal); margin-bottom: 8px; }

/* ---------- CLIENTS ---------- */
.clients { padding: 0 0 clamp(100px, 12vw, 160px); overflow: hidden; }
.clients .wrap { margin-bottom: 40px; }
.client-row { display: flex; width: max-content; will-change: transform; padding: 10px 0; }
.client-row span { display: inline-flex; align-items: center; gap: 22px; padding-right: 22px; font-family: var(--f-display); font-size: clamp(18px, 2vw, 26px); color: var(--gray-2); white-space: nowrap; transition: color .3s; }
.client-row span::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal-lo); }
.client-row span:hover { color: var(--text); }
.clients-mask { -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }

/* ---------- CONTACT ---------- */
.contact { padding: clamp(100px, 12vw, 180px) 0; background: radial-gradient(80% 60% at 50% 0%, rgba(2,185,195,.10), transparent 70%); border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px; }
.builder { border: 1px solid var(--line-2); border-radius: calc(var(--radius) + 6px); padding: clamp(24px, 3vw, 40px); background: rgba(11, 17, 20, .7); backdrop-filter: blur(10px); }
.builder h3 { margin: 0 0 6px; }
.builder > p { margin: 0 0 28px; color: var(--muted); }
.field { margin-bottom: 24px; }
.field > label, .field > .label { display: block; margin-bottom: 12px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 10px 16px; border-radius: 99px; border: 1px solid var(--line-2); font-size: 14px; color: var(--gray-1); transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease); }
.chip:hover { border-color: var(--teal); }
.chip[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: #001214; }
.chip:active { transform: scale(.94); }
.input { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line-2); color: var(--text); font: inherit; padding: 10px 0; outline: none; transition: border-color .3s; resize: vertical; }
.input:focus { border-color: var(--teal); }
.input::placeholder { color: #4D5C63; }
.preview { margin: 8px 0 24px; padding: 16px 18px; border-radius: 14px; background: #0A1A1C; border: 1px dashed rgba(2,185,195,.35); font-family: var(--f-mono); font-size: 13px; line-height: 1.7; color: #9FE9EC; white-space: pre-wrap; min-height: 120px; }
.preview .caret { display: inline-block; width: 7px; height: 14px; background: var(--teal); vertical-align: -2px; animation: blink 1s steps(2) infinite; }
.builder-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.info { display: grid; gap: 16px; align-content: start; }
.info-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: var(--bg-2); display: block; position: relative; overflow: hidden; transition: border-color .4s, transform .6s var(--ease); }
.info-card:hover { border-color: var(--teal); }
.info-card .mono { color: var(--muted); }
.info-card .big { display: block; font-family: var(--f-display); font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -.02em; font-weight: 600; margin-top: 10px; }
.info-card .sub { color: var(--muted); font-size: 14px; }
.info-card .go { position: absolute; right: 22px; top: 22px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: background .4s, transform .6s var(--ease); }
.info-card:hover .go { background: var(--teal); transform: rotate(-45deg); color: #001214; }
.info-card .go svg { width: 16px; height: 16px; }
.person { display: flex; gap: 16px; align-items: center; margin-top: 14px; }
.avatar { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(140deg, var(--teal), var(--teal-lo)); color: #001214; font-family: var(--f-display); font-weight: 700; }

/* ---------- FOOTER ---------- */
.footer { padding: clamp(80px, 10vw, 140px) 0 32px; border-top: 1px solid var(--line); overflow: hidden; position: relative; }
.footer-cta { display: flex; justify-content: space-between; align-items: end; gap: 40px; flex-wrap: wrap; margin-bottom: clamp(60px, 8vw, 120px); }
.giant {
  font-family: var(--f-logo); font-weight: 700; letter-spacing: -.04em; line-height: .85; font-size: clamp(64px, 18.5vw, 330px); white-space: nowrap; text-align: center;
  color: transparent; background: radial-gradient(420px circle at var(--x, 50%) var(--y, 50%), var(--teal-hi), var(--teal) 28%, #12262A 60%); -webkit-background-clip: text; background-clip: text;
  user-select: none; margin: 0 calc(var(--pad) * -.5);
}
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--muted); margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.footer-bottom a:hover { color: var(--teal); }
.socials { display: flex; gap: 20px; }

/* floating whatsapp */
.fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 60px; height: 60px; border-radius: 50%; background: var(--teal); color: #001214;
  display: grid; place-items: center; box-shadow: 0 10px 40px rgba(2,185,195,.4); transform: scale(0); transition: transform .6s var(--ease);
}
.fab.show { transform: scale(1); }
.fab svg { width: 26px; height: 26px; }
.fab::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--teal); animation: ping 2.4s var(--ease) infinite; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1080px) {
  .grid-services { grid-template-columns: repeat(2, 1fr); }
  .card.wide { grid-column: span 2; }
  .values-list { grid-template-columns: repeat(3, 1fr); row-gap: 24px; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-emblem { width: 52vw; opacity: .5; }
}
@media (max-width: 860px) {
  .nav-links, .nav .btn { display: none; }
  .burger { display: block; }
  .hero-bottom, .prev-grid, .remote-box, .sec-head { grid-template-columns: 1fr; }
  .hero-ctas { justify-content: flex-start; }
  .remote-viz { min-height: 280px; }
  .hero-emblem { width: 80vw; right: -18vw; top: 34%; opacity: .35; }
  .process-pin { height: auto; }
  .process-track { flex-direction: column; width: auto; }
  .step, .step-intro { width: auto; min-height: 0; }
  .step-num { font-size: 96px; margin-bottom: 30px; }
  .process-bar { display: none; }
}
@media (max-width: 620px) {
  .grid-services { grid-template-columns: 1fr; }
  .card.wide { grid-column: auto; }
  .card { min-height: 280px; padding: 26px; }
  .values-list { grid-template-columns: 1fr 1fr; }
  .sim-panel { grid-template-columns: 1fr 1fr 1fr; }
  .sim-stat { padding: 14px 12px; }
  .logo-word { font-size: 17px; }
  .logo-icon { width: 34px; height: 34px; }
}
.footer-bottom button { color: var(--muted); padding: 0; }
.footer-bottom button:hover { color: var(--teal); }
.calm *, .calm *::before, .calm *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }

/* =========================================================
   v2.1 — camada WebGL, vidro, cor e efeitos extras
   ========================================================= */
#gl { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; display: block; }
#fx { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 94; pointer-events: none; mix-blend-mode: screen; }
main, .footer { position: relative; z-index: 1; }
.has-gl .hero::after { background: linear-gradient(transparent, rgba(6, 9, 11, .35)); }
.has-gl .hero-glow { opacity: .55; }
.has-gl .hero-canvas { opacity: .7; mix-blend-mode: screen; }

/* vidro */
.has-gl .card, .has-gl .step, .has-gl .info-card, .has-gl .builder, .has-gl .sim, .has-gl .remote-box {
  background: linear-gradient(160deg, rgba(18, 32, 37, .55), rgba(7, 12, 15, .55));
  backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-color: rgba(160, 230, 235, .12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 30px 80px -40px rgba(0, 0, 0, .8);
}
.has-gl .card.feature { background: linear-gradient(140deg, rgba(2, 185, 195, .22), rgba(60, 40, 140, .18) 55%, rgba(7, 12, 15, .5)); }
.has-gl .prev { background: linear-gradient(180deg, rgba(6, 9, 11, .2), rgba(6, 9, 11, .55) 40%, rgba(6, 9, 11, .2)); }
.has-gl .marquee { background: rgba(6, 9, 11, .35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.has-gl .contact { background: radial-gradient(80% 60% at 50% 0%, rgba(2, 185, 195, .12), transparent 70%); }
.has-gl .footer { background: linear-gradient(transparent, rgba(6, 9, 11, .6)); }
.has-gl .sim-stage { background: radial-gradient(closest-side, rgba(2, 185, 195, .10), transparent); }

/* cards: brilho que varre + linha superior colorida */
.card .card-icon { filter: drop-shadow(0 0 10px rgba(2, 185, 195, .5)); transition: transform .6s var(--ease); }
.card:hover .card-icon { transform: translateZ(40px) scale(1.12) rotate(-4deg); }
.card-top { position: relative; }
.card > .card-top::after {
  content: ""; position: absolute; left: -32px; right: -32px; top: -33px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--teal), #9C8CFF, transparent); opacity: .0; transition: opacity .5s;
}
.card:hover > .card-top::after { opacity: 1; }
.card h3 { transition: color .4s; }
.card:hover h3 { color: var(--teal-hi); }

/* gradiente animado em palavras-chave */
.grad { font-style: normal; }
.split .w > span.g, .grad:not(.split .grad) {
  background: linear-gradient(90deg, #02B9C3, #6FF3F7 30%, #A894FF 55%, #02B9C3 80%, #6FF3F7);
  background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gradmove 7s linear infinite;
}
@keyframes gradmove { to { background-position: -300% 0; } }

/* letras do hero */
.ch { display: inline-block; transition: transform .5s var(--ease), color .3s; will-change: transform; }

/* HUD */
.hud { position: absolute; inset: 0; pointer-events: none; z-index: 2; color: var(--muted); font-size: 10px; }
.hud span { position: absolute; }
.hud b { color: var(--teal); font-weight: 500; margin: 0 4px; }
.hud-tl { left: var(--pad); top: 96px; }
.hud-br { right: var(--pad); bottom: 22px; }
.hud::before, .hud::after { content: ""; position: absolute; width: 18px; height: 18px; border-color: rgba(2, 185, 195, .5); border-style: solid; }
.hud::before { left: calc(var(--pad) - 12px); top: 84px; border-width: 1px 0 0 1px; }
.hud::after { right: calc(var(--pad) - 12px); bottom: 12px; border-width: 0 1px 1px 0; }
@media (max-width: 860px) { .hud, .scroll-hint { display: none; } }

/* faixas cinéticas cruzadas */
.xbands { position: relative; height: clamp(220px, 30vw, 380px); overflow: hidden; margin: -40px 0 40px; }
.xband { position: absolute; left: -10%; width: 120%; top: 50%; padding: 18px 0; }
.xband-a { transform: translateY(-50%) rotate(-5deg); background: linear-gradient(90deg, #02B9C3, #6FF3F7, #A894FF, #02B9C3); background-size: 200% 100%; animation: gradmove 10s linear infinite; z-index: 2; box-shadow: 0 20px 60px -10px rgba(2, 185, 195, .45); }
.xband-b { transform: translateY(-50%) rotate(4deg); background: rgba(6, 9, 11, .55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-block: 1px solid rgba(2, 185, 195, .35); }
.xtrack { display: flex; width: max-content; align-items: center; will-change: transform; }
.xtrack span, .xtrack i { font-family: var(--f-display); font-weight: 700; font-style: normal; font-size: clamp(32px, 5vw, 76px); letter-spacing: -.03em; line-height: 1; white-space: nowrap; padding-right: .45em; text-transform: uppercase; }
.xband-a span, .xband-a i { color: #00181B; }
.xband-b span { color: transparent; -webkit-text-stroke: 1.2px rgba(234, 241, 243, .7); }
.xband-b i { color: var(--teal); }

/* linhas de seção com brilho */
.sec-head { position: relative; }
.eyebrow::before { animation: glowdot 2.4s ease-in-out infinite; }
@keyframes glowdot { 50% { box-shadow: 0 0 22px 4px var(--teal); } }

/* steps com brilho no ativo */
.step { transition: border-color .5s, box-shadow .6s; }
.step.active { border-color: rgba(2, 185, 195, .45); box-shadow: 0 0 0 1px rgba(2, 185, 195, .15), 0 40px 120px -40px rgba(2, 185, 195, .45); }
.step::before { content: ""; position: absolute; inset: auto -20% -60% -20%; height: 80%; background: radial-gradient(closest-side, rgba(2, 185, 195, .25), transparent); opacity: 0; transition: opacity .6s; pointer-events: none; }
.step.active::before { opacity: 1; }

/* builder glow */
.builder { position: relative; }
.builder::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: conic-gradient(from var(--ang, 0deg), transparent 0 70%, var(--teal) 80%, #A894FF 88%, transparent 95%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spinang 6s linear infinite; pointer-events: none; }
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes spinang { to { --ang: 360deg; } }

/* ---------- IDIOMAS ---------- */
.lang { padding: 0 0 clamp(100px, 12vw, 160px); }
.lang-box {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center;
  padding: clamp(28px, 5vw, 64px); border-radius: calc(var(--radius) + 10px); border: 1px solid rgba(168, 148, 255, .25);
  background: linear-gradient(135deg, rgba(168, 148, 255, .16), rgba(2, 185, 195, .10) 55%, rgba(7, 12, 15, .55));
  backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
  position: relative; overflow: hidden;
}
.lang-box::after { content: "Aa"; position: absolute; right: -2%; bottom: -18%; font-family: var(--f-display); font-weight: 700; font-size: clamp(160px, 22vw, 340px); line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(168, 148, 255, .18); pointer-events: none; }
.lang-copy { display: grid; gap: 20px; position: relative; z-index: 1; }
.lang-copy .h-lg { font-size: clamp(34px, 4.4vw, 68px); }
.lang-copy .lead { margin: 0; }
.lang-tags { display: inline-flex; align-items: center; gap: 12px; color: var(--muted); }
.lang-tags span { padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 8px; color: var(--text); }
.lang-tags i { color: #A894FF; font-style: normal; animation: swap 2.4s var(--ease) infinite; display: inline-block; }
@keyframes swap { 50% { transform: rotate(180deg); } }
.lang-contact { display: grid; gap: 14px; position: relative; z-index: 1; }
.lang-contact .person { margin: 0 0 6px; }
.lang-contact .person .big { display: block; font-family: var(--f-display); font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.lang-contact .person .sub { color: var(--muted); }
.lang .avatar { background: linear-gradient(140deg, #A894FF, var(--teal)); }
.lang .info-card:hover { border-color: #A894FF; }
@media (max-width: 860px) { .lang-box { grid-template-columns: 1fr; } }

/* remoto: destaques */
.remote-feats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.remote-feats li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--gray-1); background: rgba(2, 185, 195, .06); }
.remote-feats li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px var(--teal); }
.mode-desc { min-height: 0; }
@media (max-width: 1180px) { .grid-services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-services { grid-template-columns: 1fr; } }

/* ---------- SELETOR DE IDIOMA ---------- */
.nav-right { display: flex; align-items: center; gap: 12px; }
.lang-switch { position: relative; }
.lang-current { display: none; }
.lang-list { display: flex; padding: 4px; gap: 2px; border: 1px solid var(--line-2); border-radius: 99px; background: rgba(6, 9, 11, .35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.lang-list button, .lang-current { font-size: 12px; letter-spacing: .1em; padding: 8px 12px; border-radius: 99px; color: var(--muted); transition: color .3s, background .3s; }
.lang-list button:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.lang-list button.on { background: var(--teal); color: #001214; }
@media (max-width: 860px) {
  .lang-current { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line-2); color: var(--text); font-weight: 500; }
  .lang-list { position: absolute; right: 0; top: calc(100% + 8px); flex-direction: column; border-radius: 16px; background: rgba(11, 17, 20, .95); opacity: 0; transform: translateY(-6px) scale(.96); pointer-events: none; transition: opacity .25s, transform .35s var(--ease); }
  .lang-switch.open .lang-list { opacity: 1; transform: none; pointer-events: auto; }
  .lang-list button { padding: 10px 18px; }
  .nav-right { gap: 8px; }
}

/* ---------- MOBILE: fundo mais suave + texto branco ---------- */
@media (max-width: 860px) {
  :root { --muted: #E6EEF0; --gray-1: #FFFFFF; --gray-2: #E6EEF0; }
  #gl { opacity: .6; }
  .grain { opacity: .03; }
  .hero-canvas, .hero-glow { display: none; }
  body, .lead, .card p, .step p, .checklist li, .info-card .sub, .info-card .mono, .builder > p, .note, .mode-desc, .values-list div, .eyebrow, .sim-stat span, .range-row, .field > label, .field > .label { color: #FFFFFF; }
  .lead, .card p, .step p, .mode-desc { opacity: .92; }
  .split .w > span.g, .grad:not(.split .grad), .hero h1 .accent .w > span { background: none; color: #FFFFFF; -webkit-text-fill-color: #FFFFFF; -webkit-text-stroke: 0; animation: none; }
  .marquee-item:nth-child(even) { color: #FFFFFF; -webkit-text-stroke: 0; }
  .xband-b span { color: #FFFFFF; -webkit-text-stroke: 0; }
  .step-num { -webkit-text-stroke-color: rgba(255, 255, 255, .5); }
  .client-row span { color: #FFFFFF; }
  .values-quote .word { opacity: .35; }
  .has-gl .card, .has-gl .step, .has-gl .info-card, .has-gl .builder, .has-gl .sim, .has-gl .remote-box, .lang-box {
    background: rgba(8, 14, 17, .82);
  }
  .has-gl .card.feature { background: linear-gradient(140deg, rgba(2, 120, 128, .55), rgba(8, 14, 17, .85) 60%); }
  .h-xl, .h-lg { text-shadow: 0 2px 24px rgba(0, 0, 0, .55); }
}

/* ---------- v2.3 — leitura: textos cinzas mais claros (logo mantém as cores originais) ---------- */
.marquee-item, .checklist li, .values-list div, .chip, .remote-feats li, .lang-tags span { color: #EEF4F5; }
.marquee-item:nth-child(even) { -webkit-text-stroke-color: #C9D6DB; }
.client-row span { color: #D9E3E6; }
.input::placeholder { color: #8FA3AA; }
.sim-stat span, .range-row, .footer-bottom, .footer-bottom button { color: #C9D6DB; }

/* título principal: menor e em 3 linhas */
.hero h1.h-xl { font-size: clamp(36px, 4.7vw, 78px); line-height: 1.02; letter-spacing: -.04em; }
.hero h1 .line { text-wrap: balance; }

/* mobile: títulos menores */
@media (max-width: 860px) {
  .hero h1.h-xl { font-size: clamp(29px, 8.3vw, 40px); max-width: none; }
  .h-lg, .lang-copy .h-lg, .remote-copy .h-lg, .footer-cta .h-lg { font-size: clamp(28px, 8vw, 36px) !important; line-height: 1.08; }
  .values-quote { font-size: clamp(24px, 6.6vw, 30px); }
  .h-md, .card h3, .step h3 { font-size: 22px; }
  .giant { font-size: 22vw; }
}

/* ---------- v2.4 — diagramação sem viúvas ---------- */
.nw { white-space: nowrap; }
h1, h2, h3, .h-xl, .h-lg, .h-md, .values-quote, .eyebrow { text-wrap: balance; }
p, li, .lead, .sub, .mode-desc, .note { text-wrap: pretty; }

/* mobile: títulos menores; o título principal se ajusta para "funcionando perfeitamente." caber numa linha */
@media (max-width: 860px) {
  .hero h1.h-xl { font-size: min(40px, calc((100vw - 2 * var(--pad)) / 13.4)); letter-spacing: -.05em; line-height: 1.06; }
  .h-lg, .lang-copy .h-lg, .remote-copy .h-lg, .footer-cta .h-lg { font-size: clamp(21px, 5.8vw, 27px) !important; line-height: 1.12; letter-spacing: -.03em; }
  .values-quote { font-size: clamp(20px, 5.6vw, 26px); }
  .h-md, .card h3, .step h3 { font-size: 20px; }
}

/* ---------- v2.5 — indicador de rolagem (mouse) com respiro ---------- */
@media (min-width: 861px) {
  .hero { padding-bottom: 150px; }
  .scroll-hint { bottom: 34px; gap: 12px; font-size: 10px; letter-spacing: .3em; color: #C9D6DB; }
  .scroll-hint .mouse { position: relative; width: 26px; height: 42px; border: 1.5px solid rgba(234, 241, 243, .75); border-radius: 14px; box-shadow: 0 0 18px rgba(2, 185, 195, .25); }
  .scroll-hint .mouse i { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--teal); box-shadow: 0 0 8px var(--teal); transform-origin: top; animation: wheel 1.8s var(--ease) infinite; }
  .scroll-hint span:last-child { margin-right: -.3em; }
}
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 25% { opacity: 1; } 70% { opacity: 1; transform: translateY(12px); } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- v2.6 — mobile: títulos bem menores, com folga, e topo sem cortar ---------- */
@media (max-width: 860px) {
  /* título principal: "funcionando perfeitamente." cabe numa linha com ~10% de folga */
  .hero h1.h-xl { font-size: min(30px, calc((100vw - 2 * var(--pad)) / 15)); letter-spacing: -.04em; line-height: 1.12; max-width: 100%; }
  .hero h1 .line { max-width: 100%; }
  .h-lg, .lang-copy .h-lg, .remote-copy .h-lg, .footer-cta .h-lg { font-size: clamp(18px, 5.2vw, 23px) !important; line-height: 1.18; letter-spacing: -.025em; }
  .values-quote { font-size: clamp(18px, 5vw, 22px); line-height: 1.25; }
  .h-md, .card h3, .step h3 { font-size: 18px; }
  .step-num { font-size: 64px; margin-bottom: 18px; }
  .giant { font-size: 20vw; }
  .xtrack span, .xtrack i { font-size: 28px; }
  .marquee-item { font-size: 20px; }
  /* barra do topo cabe em qualquer celular */
  .nav { padding-left: 16px; padding-right: 16px; gap: 10px; }
  .nav .logo { gap: 8px; min-width: 0; }
  .logo-icon { width: 30px; height: 30px; }
  .logo-word { font-size: 15px; }
  .nav-right { gap: 6px; flex: none; }
  .lang-current, .burger { width: 40px; height: 40px; }
  .burger i { left: 12px; right: 12px; }
  .burger i:nth-child(1) { top: 16px; } .burger i:nth-child(2) { top: 23px; }
  .menu-open .burger i:nth-child(1), .menu-open .burger i:nth-child(2) { top: 19px; }
}
@media (max-width: 350px) { .logo-word { font-size: 13px; } }

/* ---------- v2.7 — mobile: hierarquia elegante ----------
   título principal (ajustado por JS, 22–36px) > títulos de seção (~22px) > chamada/textos (15px) */
@media (max-width: 860px) {
  .hero h1.h-xl { font-size: 26px; font-weight: 600; letter-spacing: -.045em; line-height: 1.08; }
  .hero-top { margin-bottom: 22px; gap: 10px; }
  .hero .eyebrow, .hero .status { font-size: 10.5px; letter-spacing: .12em; }
  .hero-bottom { margin-top: 22px; gap: 26px; }
  .hero .lead { font-size: 15px; line-height: 1.6; opacity: .85; }
  .h-lg, .lang-copy .h-lg, .remote-copy .h-lg, .footer-cta .h-lg { font-size: clamp(19px, 5.3vw, 22px) !important; line-height: 1.16; letter-spacing: -.03em; }
  .lead, .card p, .step p, .mode-desc, .checklist li, .info-card .sub, .builder > p { font-size: 15px; line-height: 1.6; }
  .values-quote { font-size: clamp(19px, 5.4vw, 23px); line-height: 1.24; }
  .h-md, .card h3, .step h3 { font-size: 18px; letter-spacing: -.02em; }
  .eyebrow { font-size: 10.5px; }
}

/* ---------- v2.8 — celular/toque: cards sem efeito 3D (evita sumir conteúdo no Android) ---------- */
@media (max-width: 860px), (pointer: coarse) {
  .card { transform-style: flat !important; transform: none !important; }
  .card h3, .card p, .card .card-icon { transform: none !important; }
  .has-gl .card, .has-gl .step, .has-gl .info-card, .has-gl .builder, .has-gl .sim, .has-gl .remote-box, .lang-box, .xband-b, .has-gl .marquee, .lang-list {
    backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  }
}

/* ---------- abertura no celular: menos informação, mais impacto ---------- */
.hero-intro { display: none; }
@media (max-width: 860px) {
  .hero { padding: 96px 0 34px; }
  .hero .eyebrow { display: none; }
  .hero-top { margin-bottom: 16px; }
  .hero-bottom { margin-top: 24px; }
  .hero-ctas { display: flex; flex-wrap: nowrap; gap: 10px; width: 100%; }
  .hero-ctas .btn-primary { flex: 1; justify-content: center; padding: 17px 20px; }
  .hero-ctas .btn-phone { flex: none; width: 56px; height: 56px; padding: 0; justify-content: center; }
  .btn-phone .ph-num { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .hero-intro { display: block; padding-top: 34px; padding-bottom: 38px; position: relative; z-index: 1; }
  .hero-intro .lead { font-size: 16px; line-height: 1.65; opacity: 1; max-width: none; margin: 0; padding-left: 16px; border-left: 2px solid var(--teal); }
}

/* ---------- v2.9 — abertura no celular: partículas formam notebook → tablet → desktop ---------- */
.hero-device { display: none; }
@media (max-width: 860px) {
  .gl-devices .hero-device {
    display: flex; position: absolute; left: 0; right: 0; top: 52%; z-index: 2; flex-direction: column; align-items: center; gap: 10px;
    font-size: 11px; letter-spacing: .32em; color: var(--teal-hi); text-transform: uppercase; pointer-events: none;
    opacity: 0; transition: opacity .8s .6s;
  }
  .loaded.gl-devices .hero-device, .gl-devices .loaded .hero-device { opacity: 1; }
  .hero-device .dev-name { margin-right: -.32em; transition: opacity .26s, transform .26s var(--ease), filter .26s; text-shadow: 0 0 14px rgba(2, 185, 195, .6); }
  .hero-device .dev-name.swap { opacity: 0; transform: translateY(6px); filter: blur(4px); }
  .hero-device .dev-dots { display: flex; gap: 6px; }
  .hero-device .dev-dots i { width: 18px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .22); transition: background .4s, width .4s var(--ease); }
  .hero-device .dev-dots i.on { width: 30px; background: var(--teal); box-shadow: 0 0 8px var(--teal); }
}
