/* ==========================================================
   4Autom Automação Industrial — redesign 2026
   Dark industrial + glassmorphism
   ========================================================== */

:root {
  --bg: #05070d;
  --bg-2: #0a0f1c;
  --ink: #eef3ff;
  --ink-2: #aab6cf;
  --ink-3: #6b7894;
  --blue: #1f6bff;
  --blue-2: #4d8dff;
  --cyan: #22d3ee;
  --ok: #34d399;
  --line: rgba(255, 255, 255, .1);

  --glass-bg: linear-gradient(135deg, rgba(255, 255, 255, .11) 0%, rgba(255, 255, 255, .035) 55%, rgba(255, 255, 255, .06) 100%);
  --glass-border: rgba(255, 255, 255, .14);
  --glass-blur: 22px;

  --r-sm: 14px;
  --r: 26px;
  --r-lg: 36px;

  --f-display: "Archivo", system-ui, sans-serif;
  --f-body: "Inter Tight", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
svg.fill { fill: currentColor; stroke: none; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }

.container { width: min(100% - var(--gutter) * 2, var(--container)); margin-inline: auto; }
.mono { font-family: var(--f-mono); letter-spacing: .02em; }

/* Logo: versão com fundo transparente gerada a partir do JPG original */
.logo-img { width: auto; }

/* ---------- Ambient background ---------- */
.ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.orb {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55;
  animation: drift 22s var(--ease) infinite alternate;
}
.orb--1 { width: 46vw; height: 46vw; left: -12vw; top: -14vw; background: radial-gradient(circle, #1f6bff 0%, transparent 70%); }
.orb--2 { width: 38vw; height: 38vw; right: -10vw; top: 30vh; background: radial-gradient(circle, #22d3ee 0%, transparent 70%); opacity: .32; animation-duration: 28s; }
.orb--3 { width: 40vw; height: 40vw; left: 30vw; bottom: -20vw; background: radial-gradient(circle, #4b2bff 0%, transparent 70%); opacity: .35; animation-duration: 34s; }
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(6vw, 4vh, 0) scale(1.12); }
  100% { transform: translate3d(-4vw, 8vh, 0) scale(.95); }
}
.grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 0%, transparent 75%);
}
.noise {
  position: absolute; inset: -50%; opacity: .05;
  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");
}

/* ---------- GLASS (the "balões") ---------- */
.glass {
  position: relative;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(170%);
  backdrop-filter: blur(var(--glass-blur)) saturate(170%);
  border: 1px solid var(--glass-border);
  border-radius: var(--r);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .28),
    inset 0 -1px 0 rgba(255, 255, 255, .05),
    inset 1px 0 0 rgba(255, 255, 255, .06),
    0 24px 60px -24px rgba(0, 0, 0, .7);
  isolation: isolate;
}
/* mirror reflection: diagonal specular sheen */
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2;
  background:
    linear-gradient(118deg, rgba(255, 255, 255, .20) 0%, rgba(255, 255, 255, .06) 22%, transparent 38%),
    linear-gradient(300deg, rgba(120, 180, 255, .10) 0%, transparent 30%);
  mix-blend-mode: screen;
}
/* cursor-following highlight */
.spot::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(110, 170, 255, .22), transparent 45%);
  opacity: 0; transition: opacity .4s var(--ease);
}
.spot:hover::after { opacity: 1; }
.spot { transition: transform .5s var(--ease-out), border-color .4s, box-shadow .4s; }
.spot:hover {
  border-color: rgba(140, 190, 255, .35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .35),
    inset 0 -1px 0 rgba(255, 255, 255, .06),
    0 30px 80px -28px rgba(31, 107, 255, .55);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgba(20, 28, 46, .92); }
}

/* ---------- Buttons ---------- */
.btn {
  --h: 54px;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  height: var(--h); padding: 0 26px; border-radius: 999px;
  font: 600 15px/1 var(--f-body); letter-spacing: .01em; white-space: nowrap;
  transition: transform .35s var(--ease-out), box-shadow .35s, background .35s;
  position: relative; overflow: hidden;
}
.btn svg { font-size: 18px; transition: transform .35s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }
.btn--primary {
  background: linear-gradient(135deg, var(--blue) 0%, #3d7dff 60%, var(--cyan) 140%);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 12px 30px -10px rgba(31, 107, 255, .8);
}
.btn--primary::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn--primary:hover::before { transform: translateX(120%); }
.btn--primary:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 18px 40px -10px rgba(31, 107, 255, 1); }
.btn--glass {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .18);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn--glass:hover { background: rgba(255, 255, 255, .13); }

.round {
  width: 48px; height: 48px; border-radius: 50% !important; display: inline-grid; place-items: center;
  font-size: 20px; transition: transform .35s var(--ease-out), background .3s;
}
.round:hover { transform: scale(1.08); background: rgba(255, 255, 255, .15); }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px !important; font-size: 13px; font-weight: 500;
}
.chip--ok { color: #b7ffe0; }
.slide .chip, .about__media .chip { background: linear-gradient(135deg, rgba(10, 14, 26, .62), rgba(10, 14, 26, .38)); color: #fff; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(34, 211, 238, .18), 0 0 14px var(--cyan); display: inline-block; flex: none; }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--bg);
  transition: opacity .8s var(--ease), visibility .8s;
}
.loader__inner { display: grid; gap: 22px; justify-items: center; }
.loader__logo { width: 190px; animation: pulse 1.4s var(--ease) infinite alternate; }
.loader__bar { width: 180px; height: 2px; background: rgba(255, 255, 255, .1); border-radius: 2px; overflow: hidden; }
.loader__bar span { display: block; height: 100%; width: 40%; background: linear-gradient(90deg, var(--blue), var(--cyan)); animation: load 1.1s var(--ease) infinite; }
@keyframes load { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
@keyframes pulse { from { opacity: .6; } to { opacity: 1; } }
body:not(.is-loading) .loader { opacity: 0; visibility: hidden; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 16px; left: 0; right: 0; z-index: 50;
  width: min(100% - 32px, 1320px); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  transition: transform .5s var(--ease-out);
}
.nav.is-hidden { transform: translateY(-140%); }
.nav__brand img { height: 34px; width: auto; }
.nav__links {
  display: flex; gap: 2px; padding: 6px; border-radius: 999px !important;
}
.nav__links a {
  position: relative; z-index: 3; padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ink-2);
  transition: color .3s, background .3s;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a.is-active { color: #fff; background: rgba(255, 255, 255, .12); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2); }
.nav__cta { --h: 46px; padding: 0 20px; font-size: 14px; }
.nav__toggle { display: none; width: 48px; height: 48px; border-radius: 50% !important; place-items: center; }
.nav__toggle span { position: absolute; left: 15px; right: 15px; height: 2px; background: #fff; border-radius: 2px; transition: transform .4s var(--ease-out), top .4s; z-index: 3; }
.nav__toggle span:first-child { top: 19px; }
.nav__toggle span:last-child { top: 27px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 23px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 23px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 45; padding: 88px 16px 16px;
  background: rgba(5, 7, 13, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu__panel { display: grid; gap: 4px; padding: 14px; transform: translateY(-12px); transition: transform .5s var(--ease-out); }
.mobile-menu.is-open .mobile-menu__panel { transform: none; }
.mobile-menu__panel a:not(.btn) { position: relative; z-index: 3; padding: 14px 16px; font: 600 24px/1.1 var(--f-display); font-stretch: 112%; border-radius: 14px; }
.mobile-menu__panel a:not(.btn):active { background: rgba(255, 255, 255, .08); }
.mobile-menu__panel .btn { margin-top: 10px; width: 100%; white-space: normal; text-align: center; }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px;
  font: 500 12px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2);
}
.eyebrow .idx { color: var(--cyan); }
.section__title, .hero__title, .cta-band h2 {
  font-family: var(--f-display); font-weight: 800; font-stretch: 118%;
  letter-spacing: -.035em; line-height: .98; margin: 0;
}
.section__title { font-size: clamp(36px, 5.6vw, 76px); max-width: 15ch; }
em {
  font-style: normal;
  background: linear-gradient(100deg, var(--blue-2) 0%, var(--cyan) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sub { font: 700 clamp(24px, 2.6vw, 32px)/1.1 var(--f-display); font-stretch: 112%; letter-spacing: -.02em; margin: 0 0 28px; }

/* ---------- Sections ---------- */
.section { padding: clamp(90px, 12vw, 160px) 0; position: relative; }
.section__head { margin-bottom: clamp(44px, 6vw, 80px); }
.section__head--split { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.section__head--split > div { flex: 1 1 520px; }
.section__aside { flex: 0 1 380px; color: var(--ink-2); margin: 0; }

/* ---------- Hero ---------- */
.hero { min-height: 100svh; display: flex; align-items: center; padding: 130px 0 90px; position: relative; }
.hero__grid { display: grid; grid-template-columns: 1.08fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.hero__title { font-size: clamp(44px, 6.2vw, 100px); font-stretch: 112%; margin-bottom: 30px; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .word { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ease-out); }
.hero__title .accent {
  background: linear-gradient(100deg, #fff 0%, var(--blue-2) 40%, var(--cyan) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__title .outline { color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .7); }
body.is-ready .hero__title .word { transform: none; }
.hero__title .line:nth-child(2) .word { transition-delay: .1s; }
.hero__title .line:nth-child(3) .word { transition-delay: .2s; }
.hero__title .line:nth-child(4) .word { transition-delay: .3s; }
.hero__lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-2); max-width: 52ch; margin: 0 0 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__visual { position: relative; }
.robot-card { padding: 20px 20px 16px; border-radius: var(--r-lg); transform-style: preserve-3d; }
.robot-card__head { position: relative; z-index: 3; display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--ink-2); margin-bottom: 8px; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: #b7ffe0; }
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.robot { width: 100%; height: auto; display: block; }
.robot__txt { font: 500 9px var(--f-mono); fill: rgba(255, 255, 255, .45); letter-spacing: .1em; }
.robot-card__axes { position: relative; z-index: 3; display: flex; justify-content: space-between; gap: 10px; font-size: 11px; color: var(--ink-3); border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; }
.robot-card__axes b { color: var(--cyan); font-weight: 500; }

.robot__x { transform: translate(195px, 0); animation: robot-x 6s var(--ease) infinite; }
.robot__z { transform: translateY(-40px); }
.robot__label { opacity: 0; }
.robot__z { animation: robot-z 6s var(--ease) infinite; }
.robot__label { animation: robot-label 6s linear infinite; }
.robot__placed { animation: robot-placed 6s linear infinite; }
@keyframes robot-x {
  0%, 30% { transform: translate(87px, 0); }
  50%, 70% { transform: translate(303px, 0); }
  90%, 100% { transform: translate(87px, 0); }
}
@keyframes robot-z {
  0%, 8% { transform: translateY(-40px); }
  16%, 20% { transform: translateY(2px); }
  28%, 50% { transform: translateY(-40px); }
  58%, 61% { transform: translateY(22px); }
  69%, 100% { transform: translateY(-40px); }
}
@keyframes robot-label {
  0%, 18% { opacity: 0; }
  19%, 60% { opacity: 1; }
  61%, 100% { opacity: 0; }
}
@keyframes robot-placed {
  0%, 60% { opacity: 0; }
  61%, 92% { opacity: 1; }
  96%, 100% { opacity: 0; }
}

.bubble {
  position: absolute; z-index: 4; display: grid; gap: 2px; padding: 16px 20px; border-radius: 22px;
  font-size: 13px; color: var(--ink-2); line-height: 1.3;
}
.bubble > * { position: relative; z-index: 3; }
.bubble strong { font: 800 38px/1 var(--f-display); font-stretch: 115%; color: #fff; letter-spacing: -.03em; }
.bubble .mono { font-size: 22px; font-weight: 500; color: #fff; }
.bubble--a { left: -40px; top: 34%; }
.bubble--b { right: -22px; top: -26px; }
.bubble--c { right: 40px; bottom: -48px; display: flex; align-items: center; gap: 10px; }
.bubble .ico { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--blue), var(--cyan)); color: #fff; font-size: 17px; }
.float { animation: float 6s ease-in-out infinite; }
.float--slow { animation-duration: 8s; animation-delay: -2s; }
@keyframes float { 50% { translate: 0 -12px; } }

.scroll-hint { position: absolute; left: 50%; bottom: 28px; translate: -50% 0; display: inline-flex; align-items: center; gap: 12px; padding: 8px 8px 8px 20px; border-radius: 999px !important; font-size: 13px; font-weight: 500; color: var(--ink-2); transition: opacity .5s, translate .5s var(--ease-out), color .3s; }
.scroll-hint > * { position: relative; z-index: 3; }
.scroll-hint:hover { color: #fff; }
.scroll-hint.is-gone { opacity: 0; translate: -50% 20px; pointer-events: none; }
.scroll-hint__arrow { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 16px; color: #fff; background: linear-gradient(135deg, var(--blue), var(--cyan)); animation: nudge 1.6s var(--ease) infinite; }
@keyframes nudge { 50% { transform: translateY(4px); } }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); background: rgba(255, 255, 255, .02); overflow: hidden; padding: 22px 0; }
.marquee__track { display: flex; gap: 34px; width: max-content; animation: marquee 38s linear infinite; align-items: center; }
.marquee__track span { font: 700 clamp(22px, 3vw, 40px)/1 var(--f-display); font-stretch: 120%; letter-spacing: -.02em; white-space: nowrap; color: rgba(255, 255, 255, .85); }
.marquee__track span:nth-of-type(even) { color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .45); }
.marquee__track i { font-style: normal; color: var(--cyan); font-size: 20px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(30px, 6vw, 90px); align-items: center; margin-bottom: clamp(70px, 9vw, 120px); }
.about__text p { color: var(--ink-2); margin: 0 0 20px; }
.about__text p.big { font-size: clamp(20px, 1.9vw, 26px); line-height: 1.45; color: var(--ink); }
.about__text strong { color: #fff; font-weight: 600; }
.about__media { margin: 0; padding: 10px; border-radius: var(--r-lg); }
.about__media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: calc(var(--r-lg) - 10px); }
.about__media figcaption { position: absolute; left: 24px; bottom: 24px; right: 24px; z-index: 3; font-size: 13px; width: fit-content; }

.cards { display: grid; gap: 20px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.card { padding: 32px; overflow: hidden; }
.card > * { position: relative; z-index: 3; }
.card__num { position: absolute; top: 28px; right: 30px; font-size: 12px; color: var(--ink-3); }
.card__icon {
  width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; font-size: 26px; margin-bottom: 40px;
  background: linear-gradient(135deg, rgba(31, 107, 255, .9), rgba(34, 211, 238, .7));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 10px 30px -8px rgba(31, 107, 255, .8);
}
.card h4 { font: 700 22px/1.15 var(--f-display); font-stretch: 110%; letter-spacing: -.01em; margin: 0 0 10px; }
.card p { margin: 0; color: var(--ink-2); font-size: 16px; }

/* ---------- Products (bento) ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.bento__a { grid-column: span 7; grid-row: span 2; }
.bento__b { grid-column: span 5; }
.bento__c { grid-column: span 5; }
.bento__d { grid-column: span 6; }
.bento__e { grid-column: span 6; }
.bento__f { grid-column: span 12; }
.product { padding: 12px; display: flex; flex-direction: column; overflow: hidden; }
.product__media {
  position: relative; border-radius: calc(var(--r) - 10px); overflow: hidden; flex: 1; min-height: 220px;
  background: radial-gradient(120% 90% at 30% 20%, #f4f7ff 0%, #d9e2f3 60%, #b9c7e2 100%);
  display: grid; place-items: center;
}
.product__media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: transform 1s var(--ease-out); }
.product:hover .product__media img { transform: scale(1.06); }
.bento__a .product__media { min-height: 420px; }
.product--wide .product__media img { object-position: top center; }
.product__body { position: relative; z-index: 3; padding: 22px 14px 12px; }
.product h3 { font: 700 clamp(20px, 1.8vw, 26px)/1.15 var(--f-display); font-stretch: 108%; letter-spacing: -.015em; margin: 12px 0 8px; }
.product h3 small { font-weight: 500; color: var(--ink-2); font-size: .7em; }
.product p { margin: 0; color: var(--ink-2); font-size: 15px; }
.tag {
  display: inline-block; width: fit-content; padding: 6px 12px; border-radius: 999px; font: 500 11px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase;
  color: #cfe0ff; background: rgba(31, 107, 255, .18); border: 1px solid rgba(77, 141, 255, .35);
}
.product--wide { flex-direction: row; align-items: stretch; }
.product--wide .product__media { flex: 0 0 46%; min-height: 300px; }
.product--wide .product__body { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 30px clamp(20px, 4vw, 56px); }
.product--wide h3 { font-size: clamp(28px, 3vw, 44px); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-weight: 600; color: var(--cyan); }
.link-arrow svg { transition: transform .35s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ---------- Services ---------- */
.services__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 30px; align-items: start; }
.svc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.svc {
  display: grid; grid-template-columns: 56px 1fr 44px; align-items: center; gap: 12px;
  padding: 22px 24px; border-radius: 22px; cursor: default;
}
.svc > * { position: relative; z-index: 3; }
.svc__n { font-size: 13px; color: var(--cyan); }
.svc h3 { margin: 0; font: 600 clamp(18px, 1.7vw, 23px)/1.2 var(--f-display); font-stretch: 106%; letter-spacing: -.01em; }
.svc h3 small { font-weight: 500; color: var(--ink-2); font-size: .8em; }
.svc__arrow { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; border: 1px solid var(--line); transition: background .4s, transform .5s var(--ease-out), border-color .4s; }
.svc:hover .svc__arrow, .svc.is-active .svc__arrow { background: var(--blue); border-color: transparent; transform: rotate(45deg); }
.svc:hover, .svc.is-active { transform: translateX(6px); }
.svc-preview { position: sticky; top: 110px; padding: 10px; border-radius: var(--r-lg); aspect-ratio: 4/5; overflow: hidden; }
.svc-preview__img { width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--r-lg) - 10px); transition: opacity .4s var(--ease), transform .8s var(--ease-out); }
.svc-preview__img.is-swapping { opacity: 0; transform: scale(1.04); }
.svc-preview__shine { position: absolute; inset: 10px; border-radius: calc(var(--r-lg) - 10px); background: linear-gradient(180deg, transparent 50%, rgba(5, 7, 13, .5)); pointer-events: none; }

.retrofit { margin-top: clamp(70px, 9vw, 120px); }
.retrofit__head { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 8px; }
.retrofit__head .sub { margin: 0; }
.retrofit__ctrl { display: flex; gap: 10px; }
.retrofit__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(260px, 30vw, 380px); gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 24px 4px 30px; scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.retrofit__track::-webkit-scrollbar { display: none; }
.slide { margin: 0; padding: 8px; scroll-snap-align: start; border-radius: var(--r); }
.slide img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: calc(var(--r) - 8px); }
.slide figcaption { position: absolute; top: 20px; left: 20px; z-index: 3; }

/* ---------- Projects ---------- */
.masonry { columns: 4 240px; column-gap: 16px; }
.shot { display: block; width: 100%; margin: 0 0 16px; padding: 6px; border-radius: 22px; break-inside: avoid; overflow: hidden; cursor: zoom-in; text-align: left;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .9s var(--ease-out), box-shadow .5s, opacity .7s; }
.shot.reveal:not(.is-in) { opacity: 0; transform: perspective(900px) translateY(50px) rotateX(18deg) scale(.94); }
.shot.reveal.is-in { opacity: 1; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.shot__frame { display: block; position: relative; overflow: hidden; border-radius: 16px; clip-path: inset(0 0 0 0 round 16px); transition: clip-path 1.3s var(--ease-out) .15s; }
.shot.reveal:not(.is-in) .shot__frame { clip-path: inset(100% 0 0 0 round 16px); }
.shot__frame img { width: 100%; height: auto; transform: translateY(var(--py, 0px)) scale(1.18); transition: transform 1.4s var(--ease-out), filter .5s; filter: saturate(.85) brightness(.9); }
.shot.reveal:not(.is-in) .shot__frame img { transform: translateY(40px) scale(1.4); }
.shot:hover .shot__frame img { filter: saturate(1.15) brightness(1); transition: transform .25s linear, filter .5s; }
/* reflexo especular que segue o mouse */
.shot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 3; opacity: 0; transition: opacity .4s;
  background: radial-gradient(260px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .35), transparent 55%); mix-blend-mode: overlay; }
.shot:hover::after { opacity: 1; }
.shot:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 30px 70px -25px rgba(31, 107, 255, .7); }
.shot__cap { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 4; display: flex; gap: 10px; align-items: baseline; padding: 10px 14px; border-radius: 14px;
  background: rgba(5, 7, 13, .55); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, .14);
  font-size: 13px; line-height: 1.3; transform: translateY(calc(100% + 20px)); transition: transform .5s var(--ease-out); }
.shot__cap b { font: 500 12px var(--f-mono); color: var(--cyan); }
.shot:hover .shot__cap, .shot:focus-visible .shot__cap { transform: none; }
.shot:nth-child(4n+2) { transition-delay: .08s; } .shot:nth-child(4n+3) { transition-delay: .16s; } .shot:nth-child(4n+4) { transition-delay: .24s; }
.shot:hover { transition-delay: 0s; }

/* ---------- CTA band ---------- */
.cta-band { padding: 0 0 clamp(40px, 6vw, 80px); }
.cta-band__box {
  text-align: center; padding: clamp(50px, 8vw, 110px) clamp(20px, 5vw, 60px); border-radius: var(--r-lg); overflow: hidden;
  background:
    radial-gradient(60% 120% at 50% 0%, rgba(31, 107, 255, .35), transparent 70%),
    var(--glass-bg);
}
.cta-band__box > * { position: relative; z-index: 3; }
.cta-band h2 { font-size: clamp(34px, 5.4vw, 80px); max-width: 16ch; margin: 0 auto 18px; }
.cta-band p { color: var(--ink-2); margin: 0 0 34px; font-size: 18px; }
.cta-band .hero__actions { justify-content: center; }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; align-items: start; }
.form { padding: clamp(24px, 3.5vw, 44px); display: grid; gap: 18px; border-radius: var(--r-lg); }
.form > * { position: relative; z-index: 3; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%; padding: 26px 18px 10px; border-radius: 16px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .14);
  color: var(--ink); font: 400 16px/1.4 var(--f-body); outline: none; resize: vertical;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.field textarea { min-height: 140px; }
.field label { position: absolute; left: 19px; top: 18px; color: var(--ink-3); font-size: 16px; pointer-events: none; transition: all .25s var(--ease); }
.field input:focus, .field textarea:focus { border-color: var(--blue-2); background: rgba(255, 255, 255, .08); box-shadow: 0 0 0 4px rgba(31, 107, 255, .18); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { top: 8px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--cyan); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #ff6b7d; }
.seg { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.seg legend { float: left; margin-right: 8px; font-size: 14px; color: var(--ink-2); }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-block; padding: 10px 18px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .04); font-size: 14px; font-weight: 500; transition: all .3s var(--ease); }
.seg input:checked + span { background: linear-gradient(135deg, var(--blue), #3d7dff); border-color: transparent; box-shadow: 0 8px 20px -8px rgba(31, 107, 255, .9), inset 0 1px 0 rgba(255, 255, 255, .35); }
.seg input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }
.form__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.form__note { margin: 0; min-height: 1.4em; font-size: 14px; color: var(--ink-2); }
.form__note.is-error { color: #ff9aa6; }
.form__note.is-ok { color: #9ff0c9; }

.contact__info { display: grid; gap: 14px; }
.info { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: 22px; overflow: hidden; }
.info > * { position: relative; z-index: 3; }
.info small { display: block; font: 500 11px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.info span:last-child { font-size: 16px; line-height: 1.45; }
.info__ico { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 21px; background: rgba(31, 107, 255, .2); border: 1px solid rgba(77, 141, 255, .35); color: #cfe0ff; }
.map { padding: 6px; border-radius: 22px; overflow: hidden; height: 230px; }
.map iframe { width: 100%; height: 100%; border: 0; border-radius: 17px; filter: invert(.92) hue-rotate(180deg) saturate(.7) contrast(.9); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 60px 0 28px; margin-top: clamp(40px, 6vw, 80px); background: linear-gradient(180deg, transparent, rgba(31, 107, 255, .06)); }
.footer__inner { display: grid; grid-template-columns: 1.4fr 2fr auto; gap: 40px; align-items: start; }
.footer__brand img { height: 40px; width: auto; margin-bottom: 14px; }
.footer__brand p { margin: 0; color: var(--ink-2); font-size: 15px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 8px 28px; padding-top: 8px; }
.footer__nav a { color: var(--ink-2); transition: color .3s; }
.footer__nav a:hover { color: #fff; }
.footer__social { display: flex; gap: 10px; }
.footer__social .round svg { position: relative; z-index: 3; }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 50px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
.to-top:hover { color: #fff; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 60px; height: 60px; border-radius: 50% !important;
  display: grid; place-items: center; font-size: 28px; color: #fff;
  background: linear-gradient(135deg, rgba(37, 211, 102, .85), rgba(18, 140, 126, .75));
  border-color: rgba(255, 255, 255, .3);
  transition: transform .4s var(--ease-out);
}
.wa-float svg { position: relative; z-index: 3; }
.wa-float:hover { transform: scale(1.08) rotate(-6deg); }
.wa-float::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(37, 211, 102, .5);
  animation: ring 2.4s var(--ease) infinite;
}
@keyframes ring { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }

/* ---------- Switcher ---------- */
.switcher { position: fixed; left: 20px; bottom: 20px; z-index: 40; padding: 12px 18px; border-radius: 999px !important; font-size: 13px; font-weight: 600; }
@media (max-width: 640px) { .switcher { left: auto; right: 14px; bottom: 80px; } }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 70px 16px; background: rgba(3, 5, 10, .78); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.lightbox[hidden] { display: none; }
.lightbox__fig { margin: 0; padding: 8px; max-width: min(1100px, 100%); border-radius: var(--r); animation: zoomIn .5s var(--ease-out); }
.lightbox__fig img { max-height: 78vh; width: auto; border-radius: calc(var(--r) - 8px); }
.lightbox__close { position: absolute; top: 18px; right: 18px; }
.lightbox__nav { position: absolute; top: 50%; translate: 0 -50%; }
.lightbox__prev { left: 18px; }
.lightbox__next { right: 18px; }
.lightbox .round svg { position: relative; z-index: 3; }
@keyframes zoomIn { from { opacity: 0; transform: scale(.94); } }

/* ---------- Cursor ---------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 200; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .5); pointer-events: none; opacity: 0;
  transition: width .3s var(--ease-out), height .3s var(--ease-out), margin .3s var(--ease-out), background .3s, opacity .3s;
  mix-blend-mode: difference;
}
.cursor.is-on { opacity: 1; }
.cursor.is-hover { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(255, 255, 255, .9); border-color: transparent; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal.spot.is-in:hover { transform: translateY(-4px); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav__links { display: none; }
  .nav__toggle { display: grid; }
  .nav__cta { display: none; }
}
@media (max-width: 960px) {
  .hero { padding-top: 120px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 560px; width: 100%; margin: 30px auto 40px; }
  .bubble--a { left: -6px; }
  .bubble--b { right: -6px; }
  .about__grid, .services__grid, .contact__grid { grid-template-columns: 1fr; }
  .about__media img { aspect-ratio: 4/3; }
  .cards--3 { grid-template-columns: 1fr; }
  .svc-preview { display: none; }
  .bento { grid-template-columns: 1fr 1fr; }
  .bento > * { grid-column: span 1 !important; grid-row: auto !important; }
  .bento__a, .bento__f { grid-column: span 2 !important; }
  .bento__a .product__media { min-height: 320px; }
  .footer__inner { grid-template-columns: 1fr; }
  .scroll-hint { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { top: 10px; width: calc(100% - 20px); }
  .nav__brand img { height: 28px; }
  .hero__title { font-size: clamp(38px, 11.5vw, 60px); }
  .hero__actions .btn { flex: 1 1 100%; }
  .bubble { padding: 12px 14px; }
  .bubble strong { font-size: 30px; }
  .bubble--b { top: -18px; }
  .bubble--c { bottom: -26px; right: 6px; }
  .bubble--a { top: 30%; }
  .bento { grid-template-columns: 1fr; }
  .bento > * { grid-column: span 1 !important; }
  .product--wide { flex-direction: column; }
  .product--wide .product__media { flex-basis: auto; min-height: 240px; }
  .field-row { grid-template-columns: 1fr; }
  .form__actions .btn { flex: 1 1 100%; }
  .svc { grid-template-columns: 36px 1fr 40px; padding: 18px; }
  .svc__arrow { width: 40px; height: 40px; }
  .masonry { columns: 2; column-gap: 10px; }
  .shot { margin-bottom: 10px; padding: 4px; border-radius: 16px; }
  .shot__frame { border-radius: 12px; }
  .shot__cap { display: none; }
  .wa-float { width: 54px; height: 54px; right: 14px; bottom: 14px; }
  .lightbox__nav { top: auto; bottom: 18px; translate: none; }
}
