/* Inter variável (SIL Open Font License) — self-hosted em /assets/fonts, sem terceiros (CSP 'self'), subset latin */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/inter-var.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  color-scheme: dark light;
  --ink: #f7f8fb;
  --paper: #f6f4ee;
  --paper-ink: #11151d;
  --void: #05070c;
  --graphite: #0c1018;
  --mist: rgba(247, 248, 251, 0.74);
  --muted: rgba(247, 248, 251, 0.58);
  --line: rgba(247, 248, 251, 0.12);
  --line-dark: rgba(17, 21, 29, 0.12);
  --blue: #4da3ff;
  --navy: #123c6d;
  --violet: #7c6cff;
  --aqua: #79f0ff;
  --aqua-rgb: 121, 240, 255;
  --max: 1200px;
  --gutter: clamp(20px, 5vw, 80px);
  --radius: 14px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --header-offset: 104px;
  --mx: 0;
  --my: 0;
  --px: 50vw;
  --py: 40vh;
  --scroll: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@property --button-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@property --tile-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset);
  background: var(--void);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  color: var(--ink);
  background: var(--void);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--aqua);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  inset: 12px auto auto 12px;
  z-index: 100;
  transform: translateY(-140%);
  padding: 10px 14px;
  background: var(--ink);
  color: var(--void);
  border-radius: 8px;
}
.skip-link:focus { transform: translateY(0); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ------------------------------------------------------------------ header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px var(--gutter);
  color: var(--ink);
  background: linear-gradient(180deg, rgba(5, 7, 12, .72), rgba(5, 7, 12, 0));
  transition: background .35s var(--ease), border-color .35s var(--ease);
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(5, 7, 12, .72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.005em;
}
.brand img { width: 30px; height: 39px; object-fit: contain; }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.5vw, 30px);
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(247, 248, 251, .76);
}
.site-nav a { min-height: 44px; display: inline-flex; align-items: center; transition: color .2s ease; }
.site-nav a:hover { color: var(--ink); }
.nav-cta {
  border: 1px solid rgba(247, 248, 251, .26);
  border-radius: 999px;
  padding: 0 16px;
  transition: border-color .25s ease, background .25s ease, color .2s ease;
}
.nav-cta:hover { border-color: rgba(var(--aqua-rgb), .6); background: rgba(var(--aqua-rgb), .08); }

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(247, 248, 251, .04);
  color: var(--ink);
}
.menu-button span:not(.sr-only) { display: block; width: 18px; height: 1px; margin: 5px auto; background: currentColor; transition: transform .3s var(--ease), opacity .2s; }
.site-header.is-open .menu-button span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header.is-open .menu-button span:nth-child(2) { opacity: 0; }
.site-header.is-open .menu-button span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* -------------------------------------------------------------- typography */
h1, h2, h3, p { overflow-wrap: anywhere; }

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--aqua);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .18em;
}

h1 {
  margin: 0;
  max-width: 100%;
  font-size: clamp(38px, 4.3vw, 84px);
  line-height: .98;
  letter-spacing: -.028em;
  font-weight: 800;
}

h2 {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(32px, 4.2vw, 64px);
  line-height: 1.02;
  letter-spacing: -.024em;
  font-weight: 800;
}

h3 {
  margin: 0;
  font-size: clamp(19px, 1.5vw, 24px);
  line-height: 1.1;
  letter-spacing: -.015em;
  font-weight: 600;
}

.hero-lede,
.section-text {
  max-width: 62ch;
  margin: 24px 0 0;
  color: var(--mist);
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.6;
  font-weight: 400;
}

/* ------------------------------------------------------------------ buttons */
.hero-actions,
.cta-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  --button-x: 0px;
  --button-y: 0px;
  --button-angle: 0deg;
  position: relative;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -.005em;
  isolation: isolate;
  transform: translate3d(var(--button-x), var(--button-y), 0);
  transition: transform .22s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}

/* [97] luz orbitando na borda — conic-gradient animando só o ângulo (@property) */
.button::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  padding: 2px;
  border-radius: inherit;
  background: conic-gradient(from var(--button-angle), transparent 0 62%, rgba(var(--aqua-rgb), .35) 74%, #ffffff 84%, rgba(var(--aqua-rgb), .95) 90%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: buttonOrbit 3.2s linear infinite;
  pointer-events: none;
}

/* [99] sheen no hover */
.button::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .42) 50%, transparent 70%);
  background-size: 250% 100%;
  background-position: 130% 0;
  transition: background-position .8s var(--ease);
  pointer-events: none;
}
.button:hover::after { background-position: -30% 0; }

.button.primary {
  color: #03050a;
  background: linear-gradient(135deg, #ffffff, #9eefff 55%, #a7a0ff);
  box-shadow: 0 18px 55px rgba(77, 163, 255, .30), inset 0 0 0 1px rgba(255, 255, 255, .3);
}
/* [98] glow/pulse no CTA primário */
.button.primary .glow,
.button.primary::marker { display: none; }
.button.primary { animation: ctaGlow 3.6s var(--ease) infinite; }

.button.secondary {
  border-color: rgba(247, 248, 251, .24);
  color: var(--ink);
  background: rgba(247, 248, 251, .06);
}
.button.secondary::before { opacity: .55; animation-duration: 4.8s; }
.button.secondary:hover { border-color: rgba(var(--aqua-rgb), .5); background: rgba(var(--aqua-rgb), .08); }

.button:hover { box-shadow: 0 22px 70px rgba(77, 163, 255, .32), inset 0 0 0 1px rgba(255, 255, 255, .35); }
.button:active { transform: translate3d(var(--button-x), var(--button-y), 0) scale(.97); }
.button.large { min-height: 56px; padding: 0 30px; font-size: 15.5px; }

/* --------------------------------------------------------------------- hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  padding: clamp(112px, 12vw, 160px) var(--gutter) clamp(72px, 8vw, 110px);
  isolation: isolate;
  overflow: clip;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  contain: paint;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
  filter: saturate(1.05) contrast(1.05) brightness(.8);
  transform: translate3d(calc(var(--mx) * -12px), calc(var(--scroll) * 22px), 0) scale(1.06);
  transition: transform .12s linear;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 45%, rgba(5, 7, 12, .10) 0%, rgba(5, 7, 12, .45) 40%, rgba(5, 7, 12, .9) 78%),
    linear-gradient(90deg, rgba(5, 7, 12, .98) 0%, rgba(5, 7, 12, .82) 30%, rgba(5, 7, 12, .35) 62%, rgba(5, 7, 12, .75) 100%),
    linear-gradient(180deg, rgba(5, 7, 12, .35), rgba(5, 7, 12, .98));
}

/* [101] feixes de luz cinemáticos varrendo o hero */
.hero-beams {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  mix-blend-mode: screen;
}
/* sem filter: blur (caro na GPU) — a suavidade vem do gradiente; só transform/opacity animam */
.hero-beams span {
  position: absolute;
  top: -30%;
  left: -20%;
  width: clamp(220px, 26vw, 460px);
  height: 160%;
  background: linear-gradient(90deg, transparent 0%, rgba(var(--aqua-rgb), .03) 30%, rgba(255, 255, 255, .11) 50%, rgba(167, 160, 255, .04) 70%, transparent 100%);
  opacity: 0;
  transform: translate3d(calc(var(--mx) * 30px), 0, 0) rotate(-22deg);
  animation: beamSweep var(--beam-dur) var(--ease) infinite;
  animation-delay: var(--beam-delay);
  will-change: transform, opacity;
}
.hero-beams span:nth-child(1) { --beam-dur: 16s; --beam-delay: -3s; }
.hero-beams span:nth-child(2) { --beam-dur: 24s; --beam-delay: -13s; width: clamp(120px, 12vw, 200px); }
.hero-beams span:nth-child(3) { display: none; }

/* holofote que segue o cursor (só pointer: fine, via JS) — elemento fixo movido por transform (compositor) */
.hero-spot {
  position: absolute;
  left: -450px;
  top: -450px;
  width: 900px;
  height: 900px;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(var(--aqua-rgb), .13), rgba(124, 108, 255, .04) 40%, transparent 66%);
  opacity: 0;
  transform: translate3d(var(--px), var(--py), 0);
  transition: opacity .6s var(--ease);
  will-change: transform;
}
.has-pointer .hero-spot { opacity: 1; }

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 900px;
  transform: translate3d(0, calc(var(--scroll) * -24px), 0);
}

/* [17] reveal por máscara, linha a linha */
.reveal-lines span { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.reveal-lines i {
  display: block;
  font-style: normal;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 1s var(--ease-out), opacity .6s ease;
  transition-delay: calc(var(--i, 0) * 110ms + 120ms);
}
.reveal-lines.is-visible i { transform: none; opacity: 1; }

/* ------------------------------------------------------------------ vertex */
/* Sistema orbital: nucleo luminoso + 2 aneis inclinados; 4 pilulas orbitam o anel externo (cos/sin em CSS,
   angulo animado via @property), 6 pontos orbitam o anel interno no sentido contrario. Sem linhas. */
@property --t { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

.vertex {
  position: relative;
  z-index: 1;
  justify-self: end;
  width: min(100%, 720px);
  aspect-ratio: 1 / .74;
  container-type: inline-size;
  --R: min(clamp(170px, 22vw, 310px), calc(50cqw - 68px)); /* raio horizontal da orbita; pilula pode sair ate 20px do container */
  --k: .4;                           /* achatamento (raio vertical = R * k) */
  --cy: 54%;                         /* centro vertical da cena */
  transform: translate3d(calc(var(--mx) * 6px), calc(var(--my) * 4px + var(--scroll) * -10px), 0);
  transition: transform .25s var(--ease);
}

.vertex-scene {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transform: perspective(1200px) rotateX(calc(var(--my) * -3deg)) rotateY(calc(var(--mx) * 5deg));
  transform-style: preserve-3d;
  transition: transform .3s var(--ease);
}
.vertex-scene > i { position: absolute; display: block; }

.vertex-halo {
  left: 50%;
  top: var(--cy);
  width: calc(var(--R) * 2.6);
  aspect-ratio: 1;
  border-radius: 50%;
  translate: -50% -50%;
  background: radial-gradient(circle, rgba(var(--aqua-rgb), .20), rgba(124, 108, 255, .08) 38%, transparent 66%);
  animation: haloBreath 6s var(--ease) infinite alternate;
}

.vertex-ring {
  left: 50%;
  top: var(--cy);
  width: calc(var(--R) * 2);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(var(--aqua-rgb), .26);
  box-shadow: 0 0 40px rgba(var(--aqua-rgb), .08), inset 0 0 40px rgba(var(--aqua-rgb), .05);
  translate: -50% -50%;
  transform: rotateX(69deg);
}
.vertex-ring-2 {
  width: calc(var(--R) * 1.2);
  border-color: rgba(255, 255, 255, .14);
  border-top-color: rgba(var(--aqua-rgb), .85);
  animation: ringSpin 18s linear infinite reverse;
}

.vertex-apex {
  left: 50%;
  top: var(--cy);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 24px 8px rgba(255, 255, 255, .5), 0 0 90px 30px rgba(var(--aqua-rgb), .42);
  translate: -50% -50%;
  animation: apexPulse 3.2s var(--ease) infinite;
}
.vertex-apex::before,
.vertex-apex::after {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 1px solid rgba(var(--aqua-rgb), .5);
  animation: apexWave 3.2s var(--ease-out) infinite;
}
.vertex-apex::after { animation-delay: -1.6s; }

/* pontos no anel interno (sentido contrario) */
.vertex-dot {
  --t: 0deg;
  left: 50%;
  top: var(--cy);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--aqua);
  box-shadow: 0 0 14px rgba(var(--aqua-rgb), .9);
  transform: translate(-50%, -50%) translate(calc(cos(var(--t)) * var(--R) * .6), calc(sin(var(--t)) * var(--R) * .6 * var(--k)));
  opacity: calc(.45 + (sin(var(--t)) + 1) * .27);
  animation: orbit 22s linear infinite reverse;
  animation-delay: calc(var(--i) * -3.667s);
}
.vertex-dot:nth-child(5) { --i: 0; } .vertex-dot:nth-child(6) { --i: 1; } .vertex-dot:nth-child(7) { --i: 2; }
.vertex-dot:nth-child(8) { --i: 3; } .vertex-dot:nth-child(9) { --i: 4; } .vertex-dot:nth-child(10) { --i: 5; }

/* pilulas orbitando o anel externo */
.vertex-orbit {
  position: absolute;
  left: 50%;
  top: var(--cy);
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.vertex-node {
  --t: 0deg;
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px 10px 10px;
  border-radius: 999px;
  border: 1px solid rgba(247, 248, 251, .16);
  background: linear-gradient(135deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .02)), rgba(9, 13, 21, .82);
  box-shadow: inset 0 1px rgba(255, 255, 255, .12), 0 20px 50px rgba(0, 0, 0, .4);
  white-space: nowrap;
  transform: translate(-50%, -50%) translate(calc(cos(var(--t)) * var(--R)), calc(sin(var(--t)) * var(--R) * var(--k))) scale(calc(.84 + (sin(var(--t)) + 1) * .1));
  opacity: calc(.58 + (sin(var(--t)) + 1) * .21);
  animation: orbit 40s linear infinite;
  animation-delay: calc(var(--i) * -10s);
  will-change: transform, opacity;
}
.vertex-node:nth-child(1) { --i: 0; } .vertex-node:nth-child(2) { --i: 1; }
.vertex-node:nth-child(3) { --i: 2; } .vertex-node:nth-child(4) { --i: 3; }
.vertex-node svg {
  width: 40px;
  height: 40px;
  padding: 9px;
  border-radius: 50%;
  color: var(--aqua);
  background: rgba(var(--aqua-rgb), .12);
  box-shadow: inset 0 0 0 1px rgba(var(--aqua-rgb), .25);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.vertex-node b { font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; }

/* navegador sem cos()/sin(): posicoes fixas */
@supports not (width: calc(cos(0deg) * 1px)) {
  .vertex-node, .vertex-dot { animation: none; opacity: 1; }
  .vertex-node:nth-child(1) { transform: translate(-50%, -50%) translate(var(--R), 0); }
  .vertex-node:nth-child(2) { transform: translate(-50%, -50%) translate(0, calc(var(--R) * var(--k))); }
  .vertex-node:nth-child(3) { transform: translate(-50%, -50%) translate(calc(var(--R) * -1), 0); }
  .vertex-node:nth-child(4) { transform: translate(-50%, -50%) translate(0, calc(var(--R) * var(--k) * -1)); }
  .vertex-dot { display: none; }
}

/* ---------------------------------------------------------------- sections */
section {
  position: relative;
  padding: clamp(80px, 10vw, 150px) var(--gutter);
  scroll-margin-top: var(--header-offset);
}
.section-dark { background: var(--void); color: var(--ink); }
.section-light { background: var(--paper); color: var(--paper-ink); }
.section-light .section-kicker { color: #2f57c6; }
.section-light .section-text { color: rgba(17, 21, 29, .68); }

.manifest-grid,
.section-heading,
.future-inner,
.cta-inner,
.site-footer,
.tiles {
  width: min(100%, var(--max));
  margin-left: auto;
  margin-right: auto;
}

/* [101] varredura de luz no primeiro reveal da seção */
[data-sweep]::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -40%;
  width: 40%;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent, rgba(var(--aqua-rgb), .09), transparent);
  opacity: 0;
  will-change: transform;
}
[data-sweep] { overflow: clip; }
[data-sweep].is-visible::after { animation: sectionSweep 2.2s var(--ease) 1 forwards; }
[data-sweep] > * { position: relative; z-index: 1; }

.manifest-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .8fr);
  gap: clamp(30px, 8vw, 110px);
  align-items: end;
}
.manifest-grid .section-text { margin-top: 0; }

.section-heading .section-text { margin-top: 20px; }

/* ------------------------------------------------------------------- tiles */
.tiles {
  list-style: none;
  padding: 0;
  margin-top: clamp(40px, 6vw, 80px);
  display: grid;
  gap: 12px;
  counter-reset: tile;
}
.tiles-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.tiles-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.tile {
  --tile-angle: 0deg;
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 8px;
  padding: clamp(22px, 2.4vw, 32px) 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(247, 248, 251, .10);
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  box-shadow: inset 0 1px rgba(255, 255, 255, .08);
  text-align: center;
  isolation: isolate;
  transition: transform .35s var(--ease), border-color .35s ease, background .35s ease, box-shadow .35s ease;
}
.tile::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  padding: 1px;
  border-radius: inherit;
  background: conic-gradient(from var(--tile-angle), transparent 0 70%, rgba(var(--aqua-rgb), .9) 86%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .35s ease;
}
.tile:hover,
.tile.is-active {
  transform: translateY(-4px);
  border-color: rgba(var(--aqua-rgb), .28);
  background: radial-gradient(120% 90% at 50% 0%, rgba(var(--aqua-rgb), .12), transparent 60%), linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03));
  box-shadow: inset 0 1px rgba(255, 255, 255, .12), 0 24px 60px rgba(0, 0, 0, .28);
}
.tile:hover::before,
.tile.is-active::before { opacity: 1; animation: tileOrbit 2.6s linear infinite; }

.tile-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--aqua);
  background: rgba(var(--aqua-rgb), .10);
  box-shadow: inset 0 0 0 1px rgba(var(--aqua-rgb), .18), 0 0 0 0 rgba(var(--aqua-rgb), 0);
  transition: box-shadow .35s ease, transform .35s var(--ease);
}
.tile-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.tile:hover .tile-icon,
.tile.is-active .tile-icon { transform: translateY(-2px) scale(1.05); box-shadow: inset 0 0 0 1px rgba(var(--aqua-rgb), .4), 0 0 32px 2px rgba(var(--aqua-rgb), .22); }

.tile h3 { margin-top: 6px; }
.tile p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: .005em;
}

.tiles-large .tile { padding: clamp(28px, 3vw, 44px) 18px; gap: 10px; }
.tiles-large .tile-icon { width: 68px; height: 68px; border-radius: 20px; }
.tiles-large .tile-icon svg { width: 30px; height: 30px; }
.tiles-large .tile h3 { font-size: clamp(21px, 1.7vw, 28px); }
.tiles-large .tile p { font-size: 14px; }

.tiles-steps .tile[data-step]::after {
  content: attr(data-step);
  position: absolute;
  top: 12px;
  left: 14px;
  color: rgba(var(--aqua-rgb), .7);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
}

/* variante clara */
.tiles-light .tile {
  border-color: rgba(17, 21, 29, .10);
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(17, 21, 29, .04), 0 12px 30px rgba(17, 21, 29, .05);
}
.tiles-light .tile:hover {
  border-color: rgba(47, 87, 198, .35);
  background: radial-gradient(120% 90% at 50% 0%, rgba(47, 87, 198, .08), transparent 60%), #ffffff;
  box-shadow: 0 24px 60px rgba(17, 21, 29, .12);
}
.tiles-light .tile::before { background: conic-gradient(from var(--tile-angle), transparent 0 70%, rgba(47, 87, 198, .9) 86%, transparent 100%); }
.tiles-light .tile-icon { color: #2f57c6; background: rgba(47, 87, 198, .08); box-shadow: inset 0 0 0 1px rgba(47, 87, 198, .16); }
.tiles-light .tile:hover .tile-icon { box-shadow: inset 0 0 0 1px rgba(47, 87, 198, .4), 0 0 32px 2px rgba(47, 87, 198, .18); }
.tiles-light .tile p { color: rgba(17, 21, 29, .58); }

/* stagger de entrada [15] */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity .9s var(--ease), transform .9s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.motion-ready .reveal { opacity: 0; transform: translate3d(0, 26px, 0); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ------------------------------------------------------------ clarity engine */
.clarity-engine {
  overflow: clip;
  background:
    radial-gradient(circle at 50% 16%, rgba(var(--aqua-rgb), .14), transparent 30rem),
    radial-gradient(circle at 86% 62%, rgba(124, 108, 255, .16), transparent 28rem),
    linear-gradient(180deg, #05070c, #090d16 48%, #05070c);
  --scene-progress: 0;
}
.clarity-stage {
  width: min(100%, var(--max));
  min-height: min(760px, 88svh);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, .85fr) minmax(320px, 1fr);
  gap: clamp(34px, 7vw, 96px);
  align-items: center;
  overflow: clip;
}
.clarity-copy { position: relative; z-index: 2; transform: translate3d(0, calc(var(--scene-progress) * -18px), 0); }
.clarity-visual {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: clamp(360px, 46vw, 600px);
  display: grid;
  place-items: center;
  perspective: 1200px;
  overflow: clip;
  contain: paint;
}
.complexity-field {
  position: absolute;
  inset: 8%;
  opacity: calc(.75 - (var(--scene-progress) * .42));
  transform: scale(calc(1.06 - (var(--scene-progress) * .18))) rotate(calc(var(--scene-progress) * -14deg));
}
.complexity-field span {
  position: absolute;
  width: clamp(54px, 8vw, 108px);
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(var(--aqua-rgb), .42), rgba(247, 248, 251, .24), transparent);
  box-shadow: 0 0 28px rgba(var(--aqua-rgb), .18);
  transform: translate3d(calc(var(--x) * 1% + (var(--scene-progress) * var(--dx) * 1px)), calc(var(--y) * 1% + (var(--scene-progress) * var(--dy) * 1px)), 0) rotate(calc(var(--r) * 1deg));
  animation: dataDrift 6s var(--ease) infinite alternate;
  animation-delay: calc(var(--n) * -.45s);
}
.complexity-field span:nth-child(1) { --n: 1; --x: 10; --y: 18; --dx: 92; --dy: 72; --r: 18; }
.complexity-field span:nth-child(2) { --n: 2; --x: 62; --y: 10; --dx: -72; --dy: 86; --r: -24; }
.complexity-field span:nth-child(3) { --n: 3; --x: 78; --y: 42; --dx: -116; --dy: 12; --r: 34; }
.complexity-field span:nth-child(4) { --n: 4; --x: 18; --y: 68; --dx: 102; --dy: -66; --r: -16; }
.complexity-field span:nth-child(5) { --n: 5; --x: 48; --y: 82; --dx: 10; --dy: -112; --r: 8; }
.complexity-field span:nth-child(6) { --n: 6; --x: 88; --y: 76; --dx: -140; --dy: -84; --r: -38; }

.clarity-core {
  position: relative;
  width: min(78vw, 500px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(247, 248, 251, .96) 0 3%, transparent 4%),
    radial-gradient(circle at 50% 50%, rgba(var(--aqua-rgb), .28), rgba(124, 108, 255, .10) 36%, transparent 66%);
  transform: rotateX(calc(64deg - (var(--scene-progress) * 16deg))) rotateZ(calc((var(--scroll) * 34deg) + (var(--scene-progress) * 92deg))) scale(calc(.86 + (var(--scene-progress) * .22)));
  transform-style: preserve-3d;
  box-shadow: 0 46px 120px rgba(0, 0, 0, .38);
}
.clarity-core::before,
.clarity-core::after {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(var(--aqua-rgb), .22);
  border-radius: 50%;
  box-shadow: 0 0 60px rgba(var(--aqua-rgb), .10);
}
.clarity-core::after { inset: 28%; border-color: rgba(247, 248, 251, .18); }
.clarity-core span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--aqua);
  box-shadow: 0 0 28px rgba(var(--aqua-rgb), .85);
  transform: rotate(calc(var(--angle) * 1deg)) translateX(min(34vw, 216px)) rotate(calc(var(--angle) * -1deg));
  animation: nodeBreath 4.6s var(--ease) infinite;
  animation-delay: calc(var(--angle) * -18ms);
}
.clarity-core span:nth-child(1) { --angle: 0; }
.clarity-core span:nth-child(2) { --angle: 58; }
.clarity-core span:nth-child(3) { --angle: 126; }
.clarity-core span:nth-child(4) { --angle: 188; }
.clarity-core span:nth-child(5) { --angle: 246; }
.clarity-core span:nth-child(6) { --angle: 314; }

.clarity-rings {
  position: absolute;
  inset: 10%;
  opacity: calc(.58 + (var(--scene-progress) * .34));
  transform: translate3d(0, calc((var(--scroll) * -24px) + (var(--scene-progress) * -24px)), 0) scale(calc(.96 + (var(--scene-progress) * .12)));
}
.clarity-rings i {
  position: absolute;
  inset: calc(var(--ring) * 7%);
  border: 1px solid rgba(247, 248, 251, .08);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 16%, rgba(var(--aqua-rgb), .12), transparent 35%);
  animation: ringPulse 5.8s var(--ease) infinite;
  animation-delay: calc(var(--ring) * -.8s);
}
.clarity-rings i:nth-child(1) { --ring: 0; }
.clarity-rings i:nth-child(2) { --ring: 2; }
.clarity-rings i:nth-child(3) { --ring: 4; }

/* ---------------------------------------------------------------- capabilities */
.capabilities {
  background:
    radial-gradient(circle at 85% 20%, rgba(124, 108, 255, .16), transparent 26rem),
    linear-gradient(180deg, #070a10, #101622);
}

/* ---------------------------------------------------------------- evolution */
.evolution {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(280px, 1fr);
  gap: clamp(34px, 8vw, 110px);
  align-items: center;
}
.evolution > * { width: min(100%, var(--max)); }

.signal-line { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.signal-line li {
  position: relative;
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 20px;
  border-radius: 12px;
  border: 1px solid rgba(17, 21, 29, .08);
  background: #fff;
  color: rgba(17, 21, 29, .8);
  font-weight: 600;
  letter-spacing: -.01em;
  transition: transform .3s var(--ease), box-shadow .3s ease;
}
.signal-line li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2f57c6;
  box-shadow: 0 0 0 4px rgba(47, 87, 198, .12);
}
.signal-line li:hover { transform: translateX(6px); box-shadow: 0 14px 34px rgba(17, 21, 29, .08); }

/* --------------------------------------------------------------- convergence */
.convergence {
  min-height: 640px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(180deg, #06080d, #0c1220);
}
.convergence-visual { position: absolute; inset: 0; opacity: .85; }
.convergence-visual span {
  position: absolute;
  width: clamp(140px, 28vw, 420px);
  aspect-ratio: 1;
  border: 1px solid rgba(247, 248, 251, .12);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--aqua-rgb), .18), rgba(124, 108, 255, .04) 52%, transparent 70%);
  animation: drift 12s var(--ease) infinite alternate;
}
.convergence-visual span:nth-child(1) { left: 6%; top: 18%; }
.convergence-visual span:nth-child(2) { right: 12%; top: 8%; animation-delay: -3s; }
.convergence-visual span:nth-child(3) { left: 20%; bottom: 6%; animation-delay: -6s; }
.convergence-visual span:nth-child(4) { right: 22%; bottom: 14%; animation-delay: -9s; }
.convergence-copy { position: relative; width: min(760px, 100%); margin-left: max(0px, calc((100% - var(--max)) / 2)); }

/* ------------------------------------------------------------ human principles */
.human-principles {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(280px, 1fr);
  gap: clamp(34px, 7vw, 96px);
  align-items: center;
}
.human-principles > * { min-width: 0; }
.human-image { overflow: hidden; contain: paint; border-radius: 20px; aspect-ratio: 3 / 2; background: #11151d; }
.human-image img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.2s var(--ease); }
.human-image:hover img { transform: scale(1.06); }

.principles-list { list-style: none; margin: clamp(28px, 5vw, 54px) 0 0; padding: 0; display: grid; gap: 18px; }
.principles-list li {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-dark);
  font-size: clamp(24px, 3.4vw, 42px);
  line-height: 1.06;
  letter-spacing: -.02em;
  font-weight: 800;
}

/* ------------------------------------------------------------------ future */
.future { text-align: center; }
.future-inner { display: grid; justify-items: center; }
.future-inner h2 { max-width: 20ch; }
.future .section-text { margin-left: auto; margin-right: auto; }

/* --------------------------------------------------------------- final cta */
.final-cta {
  background: radial-gradient(circle at 50% 0%, rgba(var(--aqua-rgb), .18), transparent 28rem), #06080d;
  text-align: center;
}
.cta-inner { flex-direction: column; }
.cta-inner h2 { max-width: 22ch; }
.cta-inner p { margin: 8px 0 0; color: var(--muted); }

/* ------------------------------------------------------------------ footer */
.site-footer {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 26px;
  padding: 44px var(--gutter);
  color: rgba(247, 248, 251, .64);
  background: #05070c;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.55;
}
.site-footer strong { display: block; color: var(--ink); }
.footer-logo { width: 44px; height: auto; margin: 0 0 14px; }
.site-footer p { margin: 8px 0 0; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px 20px; }
.site-footer nav a { min-height: 32px; }

/* --------------------------------------------------------------- keyframes */
@keyframes buttonOrbit { to { --button-angle: 360deg; } }
@keyframes tileOrbit { to { --tile-angle: 360deg; } }
@keyframes ctaGlow {
  0%, 100% { box-shadow: 0 18px 55px rgba(77, 163, 255, .30), inset 0 0 0 1px rgba(255, 255, 255, .3); }
  50% { box-shadow: 0 18px 70px rgba(121, 240, 255, .55), inset 0 0 0 1px rgba(255, 255, 255, .5); }
}
@keyframes beamSweep {
  0% { opacity: 0; transform: translate3d(calc(var(--mx) * 30px - 10vw), 0, 0) rotate(-22deg); }
  15% { opacity: .75; }
  60% { opacity: .5; }
  100% { opacity: 0; transform: translate3d(calc(var(--mx) * 30px + 120vw), 0, 0) rotate(-22deg); }
}
@keyframes sectionSweep {
  0% { opacity: 0; transform: translateX(0); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translateX(340%); }
}
@keyframes haloBreath { from { opacity: .7; transform: scale(.96); } to { opacity: 1; transform: scale(1.04); } }
@keyframes ringSpin { from { transform: rotateX(69deg) rotateZ(0deg); } to { transform: rotateX(69deg) rotateZ(360deg); } }
@keyframes orbit { to { --t: 360deg; } }
@keyframes beamPulse { 0% { top: 0; opacity: 0; } 15% { opacity: 1; } 100% { top: 80%; opacity: 0; } }
@keyframes scanMove { from { transform: translateY(-140px); opacity: .2; } to { transform: translateY(110px); opacity: .9; } }
@keyframes apexPulse { 0%, 100% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-50%, -50%) scale(1.18); } }
@keyframes apexWave { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(3.4); opacity: 0; } }
@keyframes dotFloat { from { transform: translate3d(-6px, 5px, 0); opacity: .45; } to { transform: translate3d(8px, -8px, 0); opacity: 1; } }
@keyframes drift { from { transform: translate3d(-18px, 10px, 0) scale(.95); } to { transform: translate3d(20px, -16px, 0) scale(1.06); } }
@keyframes nodeBreath { 0%, 100% { opacity: .62; } 50% { opacity: 1; } }
@keyframes ringPulse { 0%, 100% { opacity: .34; transform: scale(.985); } 50% { opacity: .82; transform: scale(1.015); } }
@keyframes dataDrift { from { opacity: .36; } to { opacity: .92; } }

/* -------------------------------------------------------------- responsive */
@media (min-width: 901px) {
  /* linhas do h1 planejadas [73]: cada span é uma linha; o clamp garante que cabe na coluna */
  .reveal-lines span { white-space: nowrap; }
}

@media (max-width: 1100px) {
  .tiles-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .menu-button { display: block; }
  .site-nav {
    position: fixed;
    inset: 72px var(--gutter) auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(5, 7, 12, .94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { justify-content: center; }

  .hero { grid-template-columns: 1fr; gap: 24px; }
  .vertex { justify-self: center; width: min(100%, 620px); --R: min(clamp(150px, 28vw, 260px), calc(50cqw - 70px)); }
  /* no mobile o h1 flui como parágrafo (sem linhas fixas) e revela inteiro */
  .reveal-lines span, .reveal-lines i { display: inline; overflow: visible; padding: 0; margin: 0; }
  .reveal-lines i { transform: none; opacity: 1; transition: none; }
  .reveal-lines { opacity: 0; transform: translate3d(0, 22px, 0); transition: opacity .9s var(--ease), transform .9s var(--ease-out); transition-delay: 80ms; }
  .reveal-lines.is-visible { opacity: 1; transform: none; }
  .manifest-grid, .clarity-stage, .evolution, .human-principles { grid-template-columns: 1fr; }
  .manifest-grid .section-text { margin-top: 8px; }
  .tiles-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .clarity-stage { min-height: auto; }
  .clarity-visual { min-height: 360px; }
  .clarity-copy { transform: none; }
  /* dieta de animação ambiente em toque/tablet: menos camadas rodando (CPU fraca), mesma cena */
  .hero-beams span:nth-child(2) { display: none; }
  .button.primary { animation: none; }
  .vertex-apex::after { display: none; }
  .vertex-ring-2 { animation-duration: 28s; }
}

@media (max-width: 620px) {
  :root { --header-offset: 96px; }
  .brand span { max-width: 190px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hero { min-height: auto; padding-top: 104px; }
  .hero-media img { object-position: 64% center; }
  .hero-media::after {
    background:
      linear-gradient(180deg, rgba(5, 7, 12, .5), rgba(5, 7, 12, .92) 62%, rgba(5, 7, 12, .98)),
      linear-gradient(90deg, rgba(5, 7, 12, .92), rgba(5, 7, 12, .34));
  }
  .hero-actions, .cta-inner { align-items: stretch; }
  .button { width: 100%; }
  .hero-copy { transform: none; }
  h1 { font-size: clamp(38px, 10.6vw, 48px); }
  h2 { font-size: clamp(30px, 8vw, 40px); }

  .vertex { aspect-ratio: auto; height: calc(var(--R) * 2 * var(--k) + 104px); --R: min(clamp(120px, 36vw, 165px), calc(50cqw - 78px)); --cy: 50%; transform: none; margin-top: 8px; }
  .vertex-node { padding: 8px 15px 8px 8px; gap: 9px; }
  .vertex-node svg { width: 34px; height: 34px; padding: 8px; }
  .vertex-node b { font-size: 14px; }
  .hero { padding-bottom: 20px; gap: 4px; }
  .hero-beams span:nth-child(3) { display: none; }

  .tiles { gap: 10px; }
  .tiles-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles-4, .tiles-large { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile { padding: 20px 10px; }
  .tiles-large .tile { padding: 24px 12px; }
  .tile h3 { font-size: 17px; }
  .tiles-large .tile h3 { font-size: 19px; }
  .tile p { font-size: 12px; }
  .tiles-large .tile p { font-size: 12.5px; }
  .tile-icon { width: 50px; height: 50px; }
  .tiles-large .tile-icon { width: 58px; height: 58px; }

  .clarity-visual { min-height: 280px; }
  .clarity-core { width: min(78vw, 290px); }
  .clarity-core span { transform: rotate(calc(var(--angle) * 1deg)) translateX(min(28vw, 126px)) rotate(calc(var(--angle) * -1deg)); }
  .complexity-field { inset: 0; opacity: .34; }
  .complexity-field span { width: 58px; }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer nav { justify-content: flex-start; }
}

@media (max-width: 380px) {
  .tiles-6, .tiles-4, .tiles-large { grid-template-columns: 1fr 1fr; }
}

/* ---------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
  .reveal, .motion-ready .reveal, .reveal-lines i { opacity: 1; transform: none; }
  .hero-beams, .hero-spot { display: none; }
  .clarity-core, .clarity-rings, .complexity-field, .complexity-field span, .vertex { transform: none; animation: none; }
  .vertex-node, .vertex-dot, .vertex-ring-2, .vertex-apex, .vertex-halo { animation: none !important; }
  .vertex-node { opacity: 1; }
  .button.primary { animation: none; }
}
