/* ================= TOKENS ================= */
:root {
  --bg: #05070b;
  --bg-2: #080c13;
  --surface: #0b111a;
  --surface-2: #101826;
  --line: rgb(140 180 230 / 0.12);
  --line-strong: rgb(140 180 230 / 0.22);
  --text: #e9eef6;
  --muted: #8b98ac;
  --neon: #2aa8ff;
  --neon-soft: #8fd6ff;
  --neon-glow: rgb(42 168 255 / 0.45);

  --font-display: 'Cabinet Grotesk', 'Satoshi', sans-serif;
  --font-body: 'Satoshi', 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --text-xs: clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.85rem + 0.15vw, 0.9375rem);
  --text-base: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem);
  --text-xl: clamp(1.75rem, 1.3rem + 2vw, 3rem);
  --text-hero: clamp(2.75rem, 1rem + 7.5vw, 7.5rem);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1240px;
  --header-h: 72px;
}

/* ================= BASE ================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: var(--text-base); line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.05; font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
h3 { font-size: var(--text-lg); font-family: var(--font-body); font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
p { margin: 0; text-wrap: pretty; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--neon); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--neon); color: #001220; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.section { padding-block: clamp(5rem, 11vw, 9rem); }
.muted { color: var(--muted); }
.small { font-size: var(--text-xs); }
.mono { font-family: var(--font-mono); }
.neon { color: var(--neon); }
.kicker { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--neon); letter-spacing: 0.04em; margin-bottom: 1.25rem; }
.section-title { font-size: var(--text-xl); max-width: 20ch; }
.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head--row { display: flex; justify-content: space-between; align-items: end; gap: 2rem; }

.skip { position: absolute; left: -999px; top: 1rem; z-index: 100; background: var(--neon); color: #001220; padding: .5rem 1rem; border-radius: var(--radius-sm); }
.skip:focus { left: 1rem; }

/* ================= BUTTONS ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: 0 1.4rem; border-radius: 999px;
  font-size: var(--text-sm); font-weight: 700; letter-spacing: .01em;
  border: 1px solid transparent; transition: background .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease), border-color .3s;
}
.btn--primary { background: var(--neon); color: #00111f; box-shadow: 0 0 0 0 var(--neon-glow); }
.btn--primary:hover { box-shadow: 0 0 32px 2px var(--neon-glow); transform: translateY(-1px); }
.btn--ghost { border-color: var(--line-strong); background: rgb(255 255 255 / .02); backdrop-filter: blur(8px); }
.btn--ghost:hover { border-color: var(--neon); color: var(--neon-soft); }
.btn--block { width: 100%; }
.icon-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; transition: border-color .3s, color .3s; }
.icon-btn:hover { border-color: var(--neon); color: var(--neon); }

/* ================= HEADER (retrátil) ================= */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  transition: transform .45s var(--ease), background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled { background: rgb(5 7 11 / .72); backdrop-filter: blur(14px) saturate(140%); border-color: var(--line); }
.header.is-hidden { transform: translateY(-100%); }
.header__inner { height: 100%; width: min(100% - 2.5rem, var(--container)); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; }
.header__progress { position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; transform-origin: left; transform: scaleX(0); background: var(--neon); box-shadow: 0 0 10px var(--neon); }

.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--text); }
.brand__mark { width: 32px; height: 32px; }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.03em; }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav__list { display: flex; gap: 1.75rem; }
.nav__list a { font-size: var(--text-sm); color: var(--muted); position: relative; padding-block: .5rem; transition: color .25s; }
.nav__list a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: var(--neon); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav__list a:hover, .nav__list a.is-current { color: var(--text); }
.nav__list a:hover::after, .nav__list a.is-current::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { min-height: 42px; }

.burger { display: none; width: 44px; height: 44px; background: none; border: 1px solid var(--line-strong); border-radius: 50%; position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--text); transition: transform .35s var(--ease), top .35s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .burger { display: block; z-index: 2; }
  .nav {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; align-items: flex-start; gap: 2.5rem;
    padding: 6rem 2rem 3rem; background: rgb(5 7 11 / .96); backdrop-filter: blur(18px);
    clip-path: circle(0 at calc(100% - 42px) 36px); transition: clip-path .7s var(--ease); visibility: hidden;
  }
  .nav.is-open { clip-path: circle(150% at calc(100% - 42px) 36px); visibility: visible; }
  .nav__list { flex-direction: column; gap: 1.1rem; }
  .nav__list a { font-family: var(--font-display); font-size: clamp(2rem, 9vw, 3rem); font-weight: 800; color: var(--text); letter-spacing: -0.02em; }
  .nav__list li { opacity: 0; transform: translateX(-16px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
  .nav.is-open .nav__list li { opacity: 1; transform: none; }
  .nav.is-open .nav__list li:nth-child(2) { transition-delay: .06s } .nav.is-open .nav__list li:nth-child(3) { transition-delay: .12s }
  .nav.is-open .nav__list li:nth-child(4) { transition-delay: .18s } .nav.is-open .nav__list li:nth-child(5) { transition-delay: .24s }
  body.menu-open { overflow: hidden; }
}

/* ================= HERO ================= */
.hero { position: relative; min-height: 100svh; display: grid; grid-template-rows: 1fr auto; overflow: hidden; isolation: isolate; }
.hero__media { position: absolute; inset: -10% 0 -10%; z-index: -3; will-change: transform; }
.hero__video { width: 100%; height: 100%; object-fit: cover; }
.hero__veil { position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(180deg, rgb(5 7 11 / .55) 0%, rgb(5 7 11 / .15) 35%, rgb(5 7 11 / .6) 75%, var(--bg) 100%),
    linear-gradient(90deg, rgb(5 7 11 / .85) 0%, rgb(5 7 11 / .2) 60%);
}
.hero__grid { position: absolute; inset: 0; z-index: -1; opacity: .35;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 60% at 30% 50%, #000 20%, transparent 75%);
}
.hero__content { align-self: center; padding-top: calc(var(--header-h) + 3rem); }
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--neon-soft);
  border: 1px solid var(--line-strong); border-radius: 999px; padding: .45rem .9rem; background: rgb(5 7 11 / .4); backdrop-filter: blur(6px); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 10px var(--neon); animation: blink 2s infinite; }
@keyframes blink { 50% { opacity: .35; } }

.hero__title { font-size: var(--text-hero); line-height: .92; letter-spacing: -0.045em; margin: 1.75rem 0 1.75rem; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.hero__title .line:nth-child(2) > span { transition-delay: .12s; }
.is-loaded .hero__title .line > span { transform: none; }
.hero__title em { font-style: normal; color: var(--neon); text-shadow: 0 0 40px rgb(42 168 255 / .35); }
.hero__lead { max-width: 52ch; color: #c3cedd; font-size: var(--text-lg); line-height: 1.5; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.25rem; }

.hero__terminal { display: flex; justify-content: space-between; align-items: end; gap: 1rem; padding-bottom: 2rem; }
.term-mini { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--muted); border: 1px solid var(--line); background: rgb(5 7 11 / .55); backdrop-filter: blur(8px);
  padding: .7rem 1rem; border-radius: var(--radius-sm); min-width: min(100%, 420px); }
.term-mini__prompt { color: var(--neon); margin-right: .6rem; }
.term-mini__text { color: var(--text); }
.caret { display: inline-block; width: 7px; height: 1em; vertical-align: -2px; background: var(--neon); margin-left: 2px; animation: blink 1s steps(1) infinite; }
.scroll-cue { display: flex; flex-direction: column; align-items: center; gap: .5rem; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--muted); }
.scroll-cue i { width: 1px; height: 48px; background: linear-gradient(var(--neon), transparent); animation: drip 2s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* ================= MARQUEE ================= */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding-block: 1.3rem; background: var(--bg-2);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee ul { display: flex; gap: 3rem; padding-right: 3rem; }
.marquee li { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--muted); white-space: nowrap; display: flex; align-items: center; gap: 3rem; }
.marquee li::after { content: "/"; color: var(--neon); opacity: .6; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ================= PIPELINE ================= */
.pipeline__layout { display: grid; grid-template-columns: minmax(280px, 5fr) 7fr; gap: clamp(2rem, 6vw, 6rem); }
.pipeline__sticky { position: sticky; top: calc(var(--header-h) + 2.5rem); }
.pipeline__sticky .muted { margin-top: 1.25rem; max-width: 40ch; }
.stepper { margin-top: 2.5rem; display: grid; gap: .25rem; }
.stepper li { display: flex; gap: 1rem; align-items: baseline; padding: .55rem 0; font-weight: 500; color: var(--muted); transition: color .4s, transform .4s var(--ease); cursor: pointer; }
.stepper li span { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--line-strong); transition: color .4s; }
.stepper li.is-active { color: var(--text); transform: translateX(6px); }
.stepper li.is-active span { color: var(--neon); }
.stepper__bar { margin-top: 1.25rem; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.stepper__bar i { display: block; height: 100%; width: 20%; background: var(--neon); box-shadow: 0 0 12px var(--neon); transition: width .6s var(--ease); }

.pipeline__steps { display: grid; gap: clamp(4rem, 9vw, 7rem); }
.step { display: grid; gap: 1.75rem; opacity: .35; transition: opacity .6s var(--ease); }
.step.is-active { opacity: 1; }
.step__media { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--line); position: relative; background: var(--surface); }
.step__media img { width: 100%; height: 120%; object-fit: cover; will-change: transform; }
.step__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgb(5 7 11 / .55)); }
.step__num { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--neon); margin-bottom: .75rem; }
.step__body h3 { font-family: var(--font-display); font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.08; max-width: 22ch; }
.step__body > p:not(.step__num) { color: var(--muted); margin-top: 1rem; max-width: 58ch; }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.tags li { font-family: var(--font-mono); font-size: var(--text-xs); padding: .3rem .7rem; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--neon-soft); }

/* ================= AI ================= */
.ai { overflow-x: clip; background: radial-gradient(ellipse 60% 50% at 80% 40%, rgb(42 168 255 / .08), transparent 70%), var(--bg-2); border-block: 1px solid var(--line); }
.ai__layout { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.ai__copy .muted { margin-top: 1.25rem; max-width: 44ch; }
.ai__stats { margin-top: 2.5rem; display: grid; gap: 0; border-top: 1px solid var(--line); }
.ai__stats > div { display: grid; grid-template-columns: 7.5rem 1fr; align-items: baseline; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.ai__stats dt { font-family: var(--font-display); font-weight: 800; font-size: 2.25rem; color: var(--text); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.ai__stats dd { color: var(--muted); font-size: var(--text-sm); }

.ai__console { position: relative; }
.ai__image { position: absolute; inset: -8% -6% auto auto; width: 58%; aspect-ratio: 1; margin: 0; overflow: hidden; border-radius: var(--radius-lg); z-index: 0; opacity: .55;
  mask-image: radial-gradient(circle at 60% 40%, #000 30%, transparent 72%); }
.ai__image img { width: 100%; height: 130%; object-fit: cover; }
.console { position: relative; z-index: 1; border-radius: var(--radius-md); border: 1px solid var(--line-strong); background: rgb(8 12 19 / .88); backdrop-filter: blur(10px);
  box-shadow: 0 30px 80px -20px rgb(0 0 0 / .8), 0 0 0 1px rgb(42 168 255 / .06), 0 0 60px -20px var(--neon-glow); margin-top: 3rem; }
.console__bar { display: flex; align-items: center; gap: .45rem; padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
.console__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.console__bar span { margin-left: .75rem; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--muted); }
.console__body { margin: 0; padding: 1.25rem 1.25rem 1.5rem; min-height: 22rem; font-family: var(--font-mono); font-size: clamp(.72rem, .68rem + .2vw, .82rem); line-height: 1.75; color: #b9c6d8; white-space: pre-wrap; word-break: break-word; }
.console__body .u { color: var(--text); }
.console__body .u::before { content: "você › "; color: var(--muted); }
.console__body .a::before { content: "seiti › "; color: var(--neon); }
.console__body .ok { color: #6fe3a8; }
.console__body .dim { color: var(--muted); }
.console__body .hl { color: var(--neon-soft); }

/* ================= BLEED PARALLAX ================= */
.bleed { position: relative; min-height: 92vh; display: grid; align-items: center; overflow: hidden; isolation: isolate; }
.bleed__bg { position: absolute; inset: -25% 0; background-size: cover; background-position: center; z-index: -2; will-change: transform; }
.bleed__veil { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--bg) 0%, rgb(5 7 11 / .35) 30%, rgb(5 7 11 / .35) 70%, var(--bg) 100%); }
.bleed__content { padding-block: 6rem; }
.bleed__quote { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 1rem + 2.6vw, 3.25rem); line-height: 1.1; letter-spacing: -0.025em; max-width: 24ch; }
.bleed__numbers { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: clamp(2rem, 7vw, 6rem); margin-top: 4rem; }
.bleed__numbers li { display: grid; gap: .25rem; }
.bleed__numbers strong { font-family: var(--font-display); font-size: clamp(2.25rem, 1.5rem + 3vw, 4.25rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--text); text-shadow: 0 0 30px rgb(42 168 255 / .35); font-variant-numeric: tabular-nums; }
.bleed__numbers span { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--neon-soft); }

/* ================= BENTO ================= */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(220px, auto); gap: 1rem; }
.tile { position: relative; grid-column: span 2; padding: 1.75rem; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: .6rem; transition: border-color .4s; }
.tile:hover { border-color: rgb(42 168 255 / .35); }
.tile--xl { grid-column: span 4; grid-row: span 2; justify-content: space-between; }
.tile--wide { grid-column: span 4; }
.tile__label { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--neon); }
.tile h3 { max-width: 24ch; }
.tile p:not(.tile__label) { color: var(--muted); font-size: var(--text-sm); max-width: 48ch; }
.tile--xl h3 { font-family: var(--font-display); font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.5rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.05; }
.tile__text { position: relative; z-index: 1; display: grid; gap: .75rem; }
.tile__img { position: absolute; right: -6%; bottom: -12%; width: 62%; opacity: .9; transition: transform 1s var(--ease); mask-image: linear-gradient(90deg, transparent, #000 35%); }
.tile--xl:hover .tile__img { transform: translateY(-10px) scale(1.03); }
.legacy { display: flex; align-items: center; gap: .75rem; margin-top: 1rem; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--muted); flex-wrap: wrap; }
.legacy span { border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: .3rem .6rem; }
.legacy span:last-child { border-color: var(--neon); color: var(--neon); }
.legacy i { flex: 0 0 36px; height: 1px; background: linear-gradient(90deg, var(--line-strong), var(--neon)); position: relative; overflow: hidden; }
.legacy i::after { content: ""; position: absolute; inset: 0; width: 30%; background: var(--neon-soft); animation: flow 1.6s linear infinite; }
@keyframes flow { from { transform: translateX(-100%); } to { transform: translateX(400%); } }

/* spotlight que segue o cursor */
.spot::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgb(42 168 255 / .12), transparent 60%); }
.spot:hover::before { opacity: 1; }

/* ================= OPS VIDEO ================= */
.ops { position: relative; min-height: 100vh; display: grid; align-items: center; overflow: hidden; isolation: isolate; }
.ops__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.ops__veil { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(5 7 11 / .92) 0%, rgb(5 7 11 / .55) 55%, rgb(5 7 11 / .2) 100%), linear-gradient(180deg, var(--bg), transparent 20%, transparent 80%, var(--bg)); }
.ops__content { padding-block: 8rem; }
.ops__title { font-size: var(--text-xl); max-width: 16ch; }
.ops__content .muted { margin-top: 1.25rem; max-width: 46ch; }
.status { margin-top: 2.5rem; max-width: 520px; border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: rgb(5 7 11 / .6); backdrop-filter: blur(12px); }
.status__row { display: flex; align-items: center; gap: .7rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); font-size: var(--text-sm); font-weight: 500; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: #3ee39a; box-shadow: 0 0 0 0 rgb(62 227 154 / .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgb(62 227 154 / 0); } 100% { box-shadow: 0 0 0 0 rgb(62 227 154 / 0); } }
.status__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.status__grid > div { padding: 1rem 1.25rem; display: grid; gap: .2rem; }
.status__grid > div + div { border-left: 1px solid var(--line); }
.status__grid small { font-family: var(--font-mono); font-size: .72rem; color: var(--muted); }
.status__grid b { font-family: var(--font-mono); font-weight: 500; font-size: var(--text-sm); font-variant-numeric: tabular-nums; }

/* ================= CASES ================= */
.cases__nav { display: flex; gap: .5rem; }
.cases__rail { display: grid; grid-auto-flow: column; grid-auto-columns: min(80vw, 440px); gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding-inline: max(1.25rem, calc((100vw - var(--container)) / 2)); scroll-padding-inline: max(1.25rem, calc((100vw - var(--container)) / 2)); padding-bottom: .5rem; }
.cases__rail::-webkit-scrollbar { display: none; }
.case { position: relative; scroll-snap-align: start; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); overflow: hidden; display: flex; flex-direction: column; transition: border-color .4s, transform .5s var(--ease); }
.case:hover { border-color: rgb(42 168 255 / .35); transform: translateY(-4px); }
.case img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; filter: saturate(1.1); transition: transform 1.2s var(--ease); }
.case:hover img { transform: scale(1.05); }
.case__body { padding: 1.5rem; display: grid; gap: .6rem; flex: 1; align-content: start; }
.case__body > p:not(.tile__label) { color: var(--muted); font-size: var(--text-sm); }
.case__kpi { display: flex; gap: 1.5rem; margin-top: .75rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: var(--text-xs); color: var(--muted); }
.case__kpi b { display: block; font-family: var(--font-display); font-size: 1.6rem; color: var(--text); letter-spacing: -0.02em; }

/* ================= FAQ ================= */
.faq__layout { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 6vw, 6rem); }
.faq__layout header .muted { margin-top: 1.25rem; max-width: 38ch; }
.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.5rem 0; font-weight: 700; font-size: var(--text-lg); line-height: 1.3; transition: color .3s; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary:hover { color: var(--neon-soft); }
.accordion summary i { flex: 0 0 22px; height: 22px; position: relative; }
.accordion summary i::before, .accordion summary i::after { content: ""; position: absolute; left: 3px; right: 3px; top: 10px; height: 1.5px; background: var(--neon); transition: transform .4s var(--ease); }
.accordion summary i::after { transform: rotate(90deg); }
.accordion details[open] summary i::after { transform: rotate(0); }
.accordion__content { overflow: hidden; }
.accordion__content p { color: var(--muted); padding-bottom: 1.5rem; max-width: 60ch; }

/* ================= CONTACT ================= */
.contact { border-top: 1px solid var(--line); background: radial-gradient(ellipse 50% 60% at 15% 100%, rgb(42 168 255 / .09), transparent 70%); }
.contact__layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.contact__title { font-size: var(--text-xl); max-width: 16ch; }
.contact__layout > div > .muted { margin-top: 1.25rem; max-width: 42ch; }
.contact__meta { margin-top: 2.5rem; display: grid; gap: .75rem; font-size: var(--text-sm); }
.contact__meta span { display: inline-block; width: 4.5rem; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--neon); }
.form { display: grid; gap: 1.25rem; padding: clamp(1.5rem, 3vw, 2.25rem); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: rgb(11 17 26 / .7); }
.field { display: grid; gap: .5rem; border: 0; margin: 0; padding: 0; }
.field label, .field legend { font-size: var(--text-xs); font-family: var(--font-mono); color: var(--muted); padding: 0; margin-bottom: .5rem; }
.field legend { margin-bottom: .75rem; }
.field input, .field textarea { width: 100%; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: .85rem 1rem; min-height: 48px; transition: border-color .3s, box-shadow .3s; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--neon); box-shadow: 0 0 0 3px rgb(42 168 255 / .18); }
.field [aria-invalid="true"] { border-color: #ff6b81; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips label { margin: 0; cursor: pointer; position: relative; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 1rem; border-radius: 999px; border: 1px solid var(--line-strong); font-family: var(--font-body); font-size: var(--text-sm); color: var(--muted); transition: all .3s var(--ease); }
.chips input:checked + span { border-color: var(--neon); color: var(--text); background: rgb(42 168 255 / .12); }
.chips input:focus-visible + span { outline: 2px solid var(--neon); outline-offset: 2px; }
.form__status { font-size: var(--text-sm); min-height: 1.5em; }
.form__status.ok { color: #6fe3a8; }
.form__status.err { color: #ff8b9c; }

/* ================= FOOTER ================= */
.footer { border-top: 1px solid var(--line); padding-block: 2.5rem; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }

/* ================= REVEAL ================= */
.reveal { opacity: 0; filter: blur(6px); transition: opacity 1s var(--ease), filter 1s var(--ease); }
.reveal.is-in { opacity: 1; filter: none; }

/* ================= RESPONSIVO ================= */
@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile, .tile--wide { grid-column: span 1; }
  .tile--xl { grid-column: span 2; grid-row: span 1; min-height: 420px; }
  .tile--wide { grid-column: span 2; }
  .status__grid { grid-template-columns: repeat(2, 1fr); }
  .status__grid > div:nth-child(3) { border-left: 0; }
  .status__grid > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .pipeline__layout, .ai__layout, .faq__layout, .contact__layout { grid-template-columns: 1fr; }
  .pipeline__sticky { position: static; }
  .stepper, .stepper__bar { display: none; }
  .step { opacity: 1; }
  .ai__image { width: 70%; }
}
@media (max-width: 640px) {
  .hero__terminal .scroll-cue { display: none; }
  .bento { grid-template-columns: 1fr; }
  .tile, .tile--xl, .tile--wide { grid-column: span 1; }
  .tile--xl { min-height: 460px; }
  .tile__img { width: 70%; }
  .bleed__numbers { grid-template-columns: 1fr; gap: 1.75rem; }
  .section-head--row { flex-direction: column; align-items: start; }
  .ai__stats > div { grid-template-columns: 6rem 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .hero__title .line > span { transform: none; }
  .reveal { opacity: 1; filter: none; }
}

.cases__lead { max-width: 52ch; margin-top: .75rem; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact__meta a { color: inherit; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.contact__meta a:hover { color: var(--neon-soft); }
