/* =====================================================================
   INNOVANTIS — Dark Technology Premium
   ===================================================================== */

:root {
  --bg-0: #050608;
  --bg-1: #080A0D;
  --bg-2: #0B0E12;
  --bg-3: #10141A;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #F2F4F7;
  --text-2: #B8C0CC;
  --text-3: #7C8696;
  --blue: #2F6BFF;
  --cyan: #4FE3FF;
  --blue-soft: rgba(47, 107, 255, 0.35);
  --cyan-soft: rgba(79, 227, 255, 0.25);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --hero-shift: 16vw;
  --hero-zoom: .9;
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: auto; -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-0);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }

.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }

::selection { background: var(--blue); color: #fff; }

/* Noise overlay */
.noise {
  position: fixed; inset: 0; z-index: 999; pointer-events: none; opacity: 0.035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 160px 160px;
  mix-blend-mode: screen;
}

/* ---------- Type scale ---------- */
h2 {
  font-size: clamp(32px, 4.6vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-weight: 600;
  max-width: 16ch;
}
h3 { font-size: clamp(20px, 2vw, 26px); font-weight: 600; letter-spacing: -0.01em; }
.lead { font-size: clamp(16px, 1.3vw, 19px); color: var(--text-2); max-width: 56ch; font-weight: 300; line-height: 1.6; }
.eyebrow { color: var(--cyan); margin-bottom: 20px; display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--cyan); opacity: .7; }

.section-head { padding: clamp(80px, 12vh, 140px) 0 clamp(40px, 6vh, 72px); }
.section-head .lead { margin-top: 24px; }
.section-head--center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.section-head--center h2 { max-width: 20ch; }
.section-head--center .eyebrow::before { display: none; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 28px; border-radius: 999px; font-weight: 500; font-size: 15px; letter-spacing: -0.005em;
  border: 1px solid var(--line-strong); color: var(--text); white-space: nowrap;
  transition: transform .5s var(--ease), background .4s, border-color .4s, box-shadow .5s;
  overflow: hidden; isolation: isolate;
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .5s;
  background: radial-gradient(120px 60px at var(--mx, 50%) var(--my, 50%), rgba(79,227,255,.35), transparent 70%);
}
.btn:hover::after { opacity: 1; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: linear-gradient(180deg, #3A74FF, #2558E0); border-color: rgba(120,160,255,.5); box-shadow: 0 0 0 1px rgba(47,107,255,.15), 0 12px 40px -12px rgba(47,107,255,.7); }
.btn--primary:hover { box-shadow: 0 0 0 1px rgba(79,227,255,.3), 0 18px 50px -12px rgba(47,107,255,.9); }
.btn--ghost { background: rgba(255,255,255,.02); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.05); }
.btn--sm { padding: 10px 18px; font-size: 13px; }

/* ---------- Chips & lists ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; max-width: 640px; }
.chips li {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2);
  padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 6px; background: rgba(8,10,13,.55); backdrop-filter: blur(8px);
  opacity: 0; transform: translateY(10px);
}
.list-tech { margin-top: 28px; display: grid; gap: 10px; }
.list-tech li { position: relative; padding-left: 20px; color: var(--text-2); font-size: 15px; }
.list-tech li::before { content: ""; position: absolute; left: 0; top: 10px; width: 8px; height: 1px; background: var(--cyan); }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 1000; background: var(--bg-0);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  transition: opacity .8s var(--ease), visibility .8s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__mark { font-weight: 700; letter-spacing: .32em; font-size: 14px; color: var(--text); }
.loader__bar { width: 160px; height: 1px; background: var(--line-strong); overflow: hidden; }
.loader__bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), var(--cyan)); transition: width .3s; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter);
  transition: background .5s, backdrop-filter .5s, border-color .5s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(5,6,8,.6); backdrop-filter: blur(16px) saturate(140%); border-color: var(--line); }
.nav__brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: .26em; font-size: 13px; }
.nav__logo {
  width: 22px; height: 22px; border-radius: 6px; position: relative;
  background: conic-gradient(from 210deg, var(--blue), var(--cyan), var(--blue));
}
.nav__logo::after { content: ""; position: absolute; inset: 5px; background: var(--bg-0); border-radius: 3px; transform: rotate(45deg) scale(.8); }
.nav__links { display: flex; gap: 36px; }
.nav__links a { font-size: 14px; color: var(--text-2); position: relative; transition: color .3s; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 1px; background: var(--cyan); transition: right .4s var(--ease); }
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { right: 0; }
.nav__toggle { display: none; width: 44px; height: 44px; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.nav__toggle span { width: 22px; height: 1.5px; background: var(--text); transition: transform .4s var(--ease), opacity .3s; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 90; background: rgba(5,6,8,.96); backdrop-filter: blur(20px);
  display: flex; flex-direction: column; justify-content: center; gap: 28px; padding: 0 var(--gutter);
  opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s;
}
.menu.is-open { opacity: 1; visibility: visible; }
.menu a { font-size: clamp(32px, 9vw, 48px); font-weight: 600; letter-spacing: -0.02em; }
.menu a.btn { font-size: 16px; align-self: flex-start; margin-top: 12px; }

/* =====================================================================
   SCENE — Hero + Exploded view (pinned)
   ===================================================================== */
.scene { position: relative; height: 700vh; }
.scene__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--bg-0); }
.scene__video, .scene__canvas, .scene__particles {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.scene__video { transform: translateX(var(--hero-shift)) scale(var(--hero-zoom)); }
.scene__canvas { opacity: 0; }
.scene__fade { position: absolute; inset: 0; pointer-events: none; background:
  linear-gradient(90deg, var(--bg-0) 0, var(--bg-0) calc(var(--hero-shift) - 2vw), transparent calc(var(--hero-shift) + 14vw)),
  linear-gradient(180deg, var(--bg-0) 0, transparent 11%, transparent 89%, var(--bg-0) 100%); }
.scene__particles { pointer-events: none; }
.scene__vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(90% 70% at 50% 50%, transparent 40%, rgba(5,6,8,.75) 100%),
    linear-gradient(180deg, rgba(5,6,8,.65) 0%, transparent 25%, transparent 70%, rgba(5,6,8,.9) 100%);
}

.hero {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(48px, 9vh, 96px);
  max-width: 760px;
}
.hero__eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--text-2); margin-bottom: 28px; }
.hero__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1);} 50% { opacity: .5; transform: scale(.7);} }
.hero__brand { font-size: clamp(13px, 1.2vw, 15px); font-weight: 700; letter-spacing: .42em; color: var(--text-2); margin-bottom: 18px; }
.hero__headline { font-size: clamp(42px, 7vw, 104px); line-height: .98; letter-spacing: -0.035em; font-weight: 600; max-width: 12ch; }
.hero__sub { margin-top: 28px; font-size: clamp(16px, 1.35vw, 20px); color: var(--text-2); max-width: 56ch; font-weight: 300; line-height: 1.55; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero__scroll { position: absolute; right: 0; bottom: 0; display: none; align-items: center; gap: 14px; }
.hero__scroll i { width: 1px; height: 48px; background: linear-gradient(180deg, var(--cyan), transparent); animation: drop 1.8s infinite; transform-origin: top; }
@keyframes drop { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (min-width: 1024px) { .hero__scroll { display: flex; } }

.hero .word { display: inline-block; }

/* Labels */
.labels { position: absolute; inset: 0; pointer-events: none; }
#sceneLabels .label { left: calc(var(--x) + var(--hero-shift)); }
.label {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, 0);
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; opacity: 0;
  padding: 12px 16px 11px; border-radius: 8px;
  background: rgba(5,6,8,.82); border: 1px solid rgba(79,227,255,.55);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 0 0 1px rgba(79,227,255,.08), 0 18px 40px -16px rgba(0,0,0,.9), 0 0 36px -8px rgba(79,227,255,.45);
}
.label__line {
  position: absolute; left: 50%; top: -44px; width: 1px; height: 44px;
  background: linear-gradient(180deg, var(--cyan), rgba(79,227,255,.35)); transform: scaleY(0); transform-origin: top;
  box-shadow: 0 0 8px rgba(79,227,255,.6);
}
.label::before {
  content: ""; position: absolute; left: 50%; top: -49px; width: 10px; height: 10px; margin-left: -5px;
  border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(79,227,255,.18), 0 0 18px var(--cyan);
}
.label__tag { display: inline-flex; align-items: baseline; gap: 10px; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; color: #fff; white-space: nowrap; }
.label__tag b { font-family: var(--mono); font-weight: 500; font-size: 12px; color: var(--cyan); }
.label em { font-style: normal; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); white-space: nowrap; }

.scene__copy {
  position: absolute; left: var(--gutter); top: clamp(96px, 14vh, 140px); max-width: 520px; opacity: 0;
}
.scene__copy h3 { font-size: clamp(22px, 2.6vw, 34px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; margin-top: 12px; }
.scene__kicker { color: var(--cyan); }

.scene__transition {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 0 var(--gutter); pointer-events: none;
}
.scene__transition h3 {
  grid-area: 1 / 1; font-size: clamp(28px, 4.4vw, 60px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; max-width: 18ch;
  opacity: 0;
}
.scene__transition .t2 { max-width: 22ch; }

.scene__progress {
  position: absolute; left: var(--gutter); bottom: 36px; display: flex; align-items: center; gap: 14px; opacity: 0;
}
.scene__progress i { width: 120px; height: 1px; background: var(--line-strong); display: block; position: relative; }
.scene__progress i b { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--cyan); }

/* =====================================================================
   SERVICES — Core
   ===================================================================== */
.services { position: relative; padding-bottom: clamp(80px, 12vh, 140px); background: var(--bg-0); }
.core {
  position: relative; width: min(100% - 2 * var(--gutter), 1320px); margin-inline: auto;
  display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: center;
  min-height: 680px;
}
.core__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.core__ring { position: relative; height: 680px; }
.core__item {
  position: absolute; left: 50%; top: 50%;
  --angle: calc(var(--i) * 40deg - 90deg);
  --r: 290px;
  transform: translate(calc(-50% + cos(var(--angle)) * var(--r)), calc(-50% + sin(var(--angle)) * var(--r)));
  font-size: 14px; font-weight: 500; color: var(--text-2); letter-spacing: -0.005em;
  padding: 12px 18px; border: 1px solid var(--line-strong); border-radius: 999px;
  background: rgba(8,10,13,.72); backdrop-filter: blur(10px);
  transition: color .3s, border-color .3s, box-shadow .4s, background .3s;
  white-space: nowrap;
}
.core__item::before { content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: transparent; }
.core__item:hover, .core__item.is-active {
  color: #fff; border-color: rgba(79,227,255,.6); background: rgba(8,10,13,.9);
  box-shadow: 0 0 0 1px rgba(79,227,255,.12), 0 0 40px -10px rgba(79,227,255,.6);
}
.core__panel {
  position: relative; z-index: 2; padding: 28px; border: 1px solid var(--line); border-radius: 12px;
  background: linear-gradient(180deg, rgba(11,14,18,.9), rgba(8,10,13,.9));
}
.core__panel h3 { margin-top: 10px; font-size: 24px; }
.core__panel p:not(.mono) { margin-top: 12px; color: var(--text-2); font-size: 15px; line-height: 1.6; }
.core__panelKicker { color: var(--cyan); }
.core__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.core__tags li { font-family: var(--mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); padding: 6px 9px; border: 1px solid var(--line); border-radius: 4px; }

/* =====================================================================
   INFRA
   ===================================================================== */
.infra { position: relative; height: 260vh; }
.infra__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--bg-0); }
.infra__media { position: absolute; inset: 0; }
.infra__video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.2); will-change: transform; }
.infra__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,6,8,.9) 0%, rgba(5,6,8,.55) 45%, rgba(5,6,8,.15) 100%), linear-gradient(0deg, rgba(5,6,8,.9), transparent 30%); }
.infra__content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.infra__content .lead { margin-top: 24px; }
.infra__meta { position: absolute; right: var(--gutter); bottom: 36px; display: flex; gap: 28px; opacity: .8; }

/* =====================================================================
   AUTOMAÇÃO
   ===================================================================== */
.auto { position: relative; height: 240vh; background: var(--bg-1); }
.auto__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; align-items: center; }
.auto__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.auto__copy .lead { margin-top: 24px; }
.auto__diagram { position: relative; }
.auto__diagram svg { width: 100%; height: auto; }
.auto__links path { stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .9; }
.auto__nodes rect { fill: rgba(8,10,13,.9); stroke: var(--line-strong); }
.auto__nodes .node { opacity: .5; transition: opacity .4s; }
.auto__nodes .node.is-on { opacity: 1; }
.auto__nodes .node.is-on rect { stroke: rgba(79,227,255,.6); }
.auto__nodes .node--hub rect { stroke: rgba(47,107,255,.6); fill: rgba(11,14,18,1); }
.auto__pulses { opacity: 0; transition: opacity .6s; }
.auto__pulses.is-on { opacity: 1; }
.auto__status { position: absolute; left: 0; bottom: -8px; display: inline-flex; align-items: center; gap: 10px; }
.auto__status i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); transition: background .4s, box-shadow .4s; }
.auto__status.is-on i { background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }

/* =====================================================================
   DEV
   ===================================================================== */
.dev { position: relative; height: 240vh; background: var(--bg-0); }
.dev__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; align-items: center; }
.dev__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.dev__copy .lead { margin-top: 24px; }
.dev__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.dev__stage { position: relative; height: 600px; perspective: 1400px; transform-style: preserve-3d; }
.dev__links { position: absolute; inset: 0; width: 100%; height: 100%; }
.dev__links path { stroke: var(--cyan); stroke-opacity: .5; stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: 1; }
.ui {
  position: absolute; border: 1px solid var(--line-strong); border-radius: 10px; background: rgba(11,14,18,.86);
  backdrop-filter: blur(10px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(79,227,255,.04);
  opacity: 0; transform-style: preserve-3d;
}
.ui__bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.ui__bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); }
.ui__bar .mono { margin-left: auto; font-size: 10px; }
.ui__body { padding: 14px; display: grid; gap: 10px; }
.ui__body b { display: block; height: 8px; border-radius: 4px; background: rgba(255,255,255,.08); }
.ui__body b.w60 { width: 60%; } .ui__body b.w80 { width: 80%; }
.ui__kpi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ui__kpi b { height: 36px; border-radius: 6px; background: linear-gradient(180deg, rgba(47,107,255,.25), rgba(47,107,255,.05)); border: 1px solid rgba(47,107,255,.25); }
.ui__chart { display: flex; align-items: flex-end; gap: 6px; height: 70px; }
.ui__chart i { flex: 1; height: var(--h); background: linear-gradient(180deg, var(--cyan), var(--blue)); border-radius: 2px 2px 0 0; opacity: .85; transform-origin: bottom; }
.ui--dash { width: 300px; left: 6%; top: 8%; }
.ui--mobile { width: 130px; height: 250px; right: 10%; top: 2%; border-radius: 18px; }
.ui__notch { width: 50px; height: 6px; margin: 10px auto 0; border-radius: 3px; background: var(--line-strong); }
.ui__hero { height: 60px !important; background: linear-gradient(135deg, rgba(47,107,255,.35), rgba(79,227,255,.15)) !important; }
.ui__fab { width: 30px; height: 30px; border-radius: 50%; background: var(--blue); margin-left: auto; margin-top: 10px; box-shadow: 0 0 16px rgba(47,107,255,.6); }
.ui--portal { width: 260px; right: 4%; bottom: 10%; }
.ui__body--grid { grid-template-columns: repeat(3, 1fr); }
.ui__body--grid b { height: 44px; border-radius: 6px; }
.ui--api { left: 4%; bottom: 8%; padding: 14px 16px; font-size: 11.5px; line-height: 1.9; text-transform: none; letter-spacing: 0; color: var(--text-2); }
.ui__m { color: var(--cyan); font-weight: 500; }
.ui--api em { font-style: normal; color: #4ade80; margin-left: 8px; }
.ui--db { left: 50%; bottom: 0; transform: translateX(-50%); padding: 12px 16px; display: flex; align-items: center; gap: 12px; font-size: 11px; text-transform: none; letter-spacing: .02em; }
.ui__cyl { width: 22px; height: 28px; border-radius: 11px / 5px; border: 1px solid var(--cyan); position: relative; }
.ui__cyl::before, .ui__cyl::after { content: ""; position: absolute; left: 0; right: 0; height: 10px; border-radius: 50%; border: 1px solid var(--cyan); }
.ui__cyl::before { top: -1px; } .ui__cyl::after { top: 8px; border-top-color: transparent; }
.ui--hub { left: 50%; top: 50%; width: 110px; height: 110px; margin: -55px; border-radius: 50%; display: grid; place-items: center; border-color: rgba(79,227,255,.45); box-shadow: 0 0 60px -10px rgba(79,227,255,.5); }
.ui--hub .mono { color: var(--cyan); font-size: 10px; }

/* =====================================================================
   AI
   ===================================================================== */
.ai { position: relative; height: 280vh; }
.ai__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--bg-0); }
.ai__media { position: absolute; inset: 0; }
.ai__video { width: 100%; height: 100%; object-fit: cover; opacity: .9; will-change: transform; }
.ai__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.ai__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,6,8,.85) 0%, rgba(5,6,8,.1) 35%, rgba(5,6,8,.1) 65%, rgba(5,6,8,.95) 100%); }
.ai__content { position: relative; z-index: 2; height: 100%; display: grid; grid-template-rows: auto 1fr; padding-top: calc(var(--nav-h) + 24px); padding-bottom: 32px; }
.ai__copy { max-width: 760px; }
.ai__copy .lead { margin-top: 20px; }
.ai__copy h2 { max-width: 18ch; }
.ai__io { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.ai__in, .ai__out { display: flex; flex-direction: column; gap: 8px; }
.ai__out { align-items: flex-end; text-align: right; }
.ai__in span, .ai__out span {
  font-size: 13px; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 6px; background: rgba(5,6,8,.6); backdrop-filter: blur(8px); opacity: 0; color: var(--text-2);
}
.ai__out span { border-color: rgba(79,227,255,.35); color: var(--text); }
.ai__in .mono, .ai__out .mono { margin-bottom: 6px; }

/* =====================================================================
   SECURITY
   ===================================================================== */
.sec { position: relative; height: 260vh; background: var(--bg-1); }
.sec__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.sec__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.sec__content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; max-width: 640px; margin-left: var(--gutter); }
.sec__content .lead { margin-top: 24px; }
.chips--sec li { border-color: rgba(79,227,255,.25); }
.sec__hud { position: absolute; right: var(--gutter); bottom: 36px; display: flex; gap: 28px; }
.sec__hud b { color: var(--cyan); font-weight: 500; }

/* =====================================================================
   MONITORAMENTO / OBSERVABILIDADE
   ===================================================================== */
.mon { position: relative; height: 260vh; background: var(--bg-0); }
.mon__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.mon__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.mon__content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; max-width: 560px; margin-left: var(--gutter); }
.mon__content .lead { margin-top: 24px; }
.chips--mon li { border-color: rgba(79,227,255,.25); }
.mon__hud { position: absolute; right: var(--gutter); bottom: 36px; display: flex; gap: 28px; }
.mon__hud b { color: var(--cyan); font-weight: 500; }

/* =====================================================================
   EQUIP
   ===================================================================== */
.equip { position: relative; height: 420vh; }
.equip__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--bg-0); }
.equip__canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.equip__content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: clamp(40px, 8vh, 80px); max-width: 640px; margin-left: var(--gutter); }
.equip__content .lead { margin-top: 20px; }
.equip__claim { margin-top: 20px; font-size: 15px; color: var(--cyan); font-weight: 500; }
.equip__content .btn { margin-top: 32px; align-self: flex-start; }
.equip__content > * { opacity: 0; transform: translateY(16px); }
.equip__content .chips { margin-top: 24px; }
.equip__content .chips li { opacity: 1; transform: none; }
.labels--equip .label__tag { font-size: 14px; }
.labels--equip .label { padding: 9px 13px; }

/* =====================================================================
   ECO
   ===================================================================== */
.eco { position: relative; background: var(--bg-0); padding-bottom: clamp(60px, 10vh, 120px); }
.eco__stage { position: relative; max-width: 960px; margin: 0 auto; }
.eco__stage svg { width: 100%; height: auto; }
.eco__lines line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.eco__nodes g { opacity: 0; }
.eco__nodes circle { fill: var(--bg-2); stroke: var(--line-strong); }
.eco__center { opacity: 0; }

/* =====================================================================
   RESULTS
   ===================================================================== */
.results { position: relative; background: var(--bg-1); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-bottom: clamp(80px, 12vh, 140px); }
.results__grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.results__grid li { padding: 32px 28px 40px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; opacity: 0; transform: translateY(20px); transition: background .5s; }
.results__grid li:hover { background: rgba(47,107,255,.05); }
.results__grid li::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, var(--cyan), transparent); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.results__grid li:hover::after { transform: scaleX(1); }
.results__grid .mono { color: var(--cyan); }
.results__grid h3 { margin-top: 36px; font-size: 20px; }
.results__grid p { margin-top: 10px; color: var(--text-3); font-size: 14px; line-height: 1.6; }

/* =====================================================================
   METHOD
   ===================================================================== */
.method { position: relative; background: var(--bg-0); padding-bottom: clamp(100px, 14vh, 160px); }
.method__track { position: relative; }
.method__line { position: absolute; left: 0; right: 0; top: 28px; height: 1px; background: var(--line-strong); }
.method__line i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, var(--blue), var(--cyan)); box-shadow: 0 0 12px var(--cyan); }
.method__steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.step { position: relative; padding-top: 64px; opacity: .35; transform: translateY(10px); }
.step::before { content: ""; position: absolute; left: 0; top: 22px; width: 13px; height: 13px; border-radius: 50%; background: var(--bg-0); border: 1px solid var(--line-strong); transition: border-color .4s, box-shadow .4s; }
.step.is-on::before { border-color: var(--cyan); background: var(--cyan); box-shadow: 0 0 16px var(--cyan); }
.step__num { color: var(--cyan); }
.step h3 { margin-top: 10px; font-size: 26px; }
.step p { margin-top: 10px; color: var(--text-2); font-size: 15px; }

/* =====================================================================
   FINAL
   ===================================================================== */
.final { position: relative; height: 320vh; }
.final__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--bg-0); }
.final__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.final__shade { position: absolute; inset: 0; background: radial-gradient(70% 60% at 50% 45%, transparent 30%, rgba(5,6,8,.9) 100%); }
.final__content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.final__brand { font-weight: 700; letter-spacing: .42em; font-size: clamp(16px, 2vw, 22px); opacity: 0; margin-bottom: 24px; color: var(--text); }
.final__content h2 { max-width: 20ch; opacity: 0; }
.final__content .lead { margin-top: 24px; opacity: 0; max-width: 54ch; }
.final__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 40px; opacity: 0; }
.final__alt { margin-top: 48px; opacity: 0; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer { position: relative; background: var(--bg-0); border-top: 1px solid var(--line); padding: 56px 0 28px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; align-items: start; }
.footer__brand { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; }
.footer__brand strong { font-size: 14px; letter-spacing: .2em; text-transform: uppercase; }
.footer__brand p { grid-column: 1 / -1; margin-top: 12px; color: var(--text-3); font-size: 14px; }
.footer__links, .footer__social { display: flex; flex-direction: column; gap: 12px; font-size: 14px; color: var(--text-2); }
.footer__links a:hover, .footer__social a:hover { color: var(--text); }
.footer__bottom { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 11px; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
/* =====================================================================
   RAIL — régua lateral de seções
   ===================================================================== */
.rail {
  position: fixed; left: 22px; top: 50%; transform: translateY(-50%); z-index: 95;
  opacity: 0; transition: opacity .8s var(--ease), transform .8s var(--ease);
  pointer-events: none;
}
.rail.is-on { opacity: 1; pointer-events: auto; }
.rail__line { position: absolute; left: 50%; top: 5px; bottom: 5px; width: 1px; margin-left: -0.5px; background: rgba(255,255,255,.12); }
.rail__line i { position: absolute; left: 0; top: 0; width: 100%; height: 0; background: linear-gradient(180deg, var(--blue), var(--cyan)); box-shadow: 0 0 10px rgba(79,227,255,.6); }
.rail__dots { position: relative; display: flex; flex-direction: column; justify-content: space-between; height: min(52vh, 420px); width: 10px; list-style: none; margin: 0; padding: 0; }
.rail__dot { position: relative; display: block; width: 10px; height: 10px; }
.rail__dot::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; margin: -2.5px;
  border-radius: 50%; background: rgba(255,255,255,.28); transition: background .3s, transform .3s, box-shadow .3s;
}
.rail__dot::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px; border-radius: 50%;
  border: 1px solid rgba(79,227,255,.7); opacity: 0; transform: scale(.5); transition: opacity .35s, transform .35s var(--ease);
}
.rail__dot:hover::before { background: #fff; transform: scale(1.3); }
.rail__dot.is-active::before { background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.rail__dot.is-active::after { opacity: 1; transform: scale(1); }
.rail__dot.is-done::before { background: rgba(79,227,255,.75); }
.rail__label {
  position: absolute; left: 24px; top: 50%; transform: translate(-6px, -50%);
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text);
  padding: 7px 12px; border-radius: 6px; background: rgba(5,6,8,.85); border: 1px solid rgba(79,227,255,.25);
  backdrop-filter: blur(12px); opacity: 0; transition: opacity .3s, transform .4s var(--ease); pointer-events: none;
}
.rail__label b { color: var(--cyan); font-weight: 500; }
.rail__dot:hover .rail__label, .rail:hover .rail__dot.is-active .rail__label { opacity: 1; transform: translate(0, -50%); }
@media (max-width: 1100px) { .rail { display: none; } }

@media (max-width: 1100px) {
  .core { grid-template-columns: 1fr; min-height: 0; }
  .core__ring { height: 560px; }
  .core__item { --r: 230px; font-size: 13px; padding: 10px 14px; }
  .results__grid { grid-template-columns: repeat(2, 1fr); }
  .method__steps { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .method__line { display: none; }
}

@media (max-width: 860px) {
  :root { --nav-h: 64px; --hero-shift: 0px; --hero-zoom: 1; }
  .scene__fade { display: none; }
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .scene { height: 520vh; }
  .hero { bottom: 40px; }
  .hero__headline { font-size: clamp(38px, 11vw, 64px); }
  .hero__ctas .btn { width: 100%; }
  .label { padding: 8px 10px; }
  .label em { display: none; }
  .label__tag { font-size: 13px; }
  .label__line { top: -30px; height: 30px; }
  .label::before { top: -35px; }
  .scene__copy { top: 90px; }
  .scene__progress { display: none; }
  .core__ring { height: auto; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding-top: 360px; }
  .core__item { position: static; transform: none; }
  .core__canvas { height: 380px; }
  .auto__grid, .dev__grid { grid-template-columns: 1fr; gap: 28px; }
  .auto { height: 200vh; }
  .auto__copy .list-tech { display: none; }
  .auto__diagram { max-width: 420px; }
  .dev { height: 200vh; }
  .dev__stage { height: 360px; }
  .dev__cols { display: none; }
  .ui--dash { width: 200px; }
  .ui--mobile { width: 90px; height: 170px; }
  .ui--portal { width: 170px; }
  .ui__chart { height: 44px; }
  .ai__io { flex-direction: column; align-items: stretch; }
  .ai__out { align-items: flex-start; text-align: left; }
  .ai__in { display: none; }
  .ai__out { flex-direction: row; flex-wrap: wrap; }
  .ai__out .mono { width: 100%; }
  .sec__content { max-width: none; margin-left: auto; }
  .sec__hud, .infra__meta, .mon__hud { display: none; }
  .mon__content { max-width: none; margin-left: auto; justify-content: flex-end; padding-bottom: 28px; }
  .mon__content h2 { font-size: clamp(26px, 7.4vw, 36px); }
  .mon__content .lead { margin-top: 14px; font-size: 15px; }
  .mon__content .chips { margin-top: 16px; gap: 6px; }
  .mon__content .chips li { padding: 6px 9px; font-size: 10.5px; }
  .equip { height: 360vh; }
  .equip__content { margin-left: 0; }
  .equip__content .btn { width: 100%; }
  .results__grid { grid-template-columns: 1fr; }
  .method__steps { grid-template-columns: 1fr; }
  .final { height: 260vh; }
  .final__ctas .btn { width: 100%; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__links, .footer__social { flex-direction: row; flex-wrap: wrap; gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__dot, .hero__scroll i { animation: none; }
}
