/* ==========================================================================
   ONVAID — Home
   ========================================================================== */

.h-xl {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2rem, 5.2vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.035em;
}
.h-lg {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 3.8vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.h-xxl {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(2.6rem, 9vw, 8.4rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
}
.sec-head { margin-bottom: clamp(40px, 6vw, 80px); }
.sec-head--center { text-align: center; }
.sec-head--center .eyebrow { justify-content: center; }

/* ==========================================================================
   Boot
   ========================================================================== */
.boot {
  position: fixed;
  inset: 0;
  z-index: 990;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 18px;
  padding: var(--gutter);
  background: var(--void);
  font-family: var(--f-mono);
  font-size: clamp(0.72rem, 1.6vw, 0.88rem);
  color: var(--ink-2);
}
html.no-js .boot, html.booted .boot { display: none; }
.boot-log { margin: 0; white-space: pre-wrap; line-height: 1.8; min-height: 9em; }
.boot-log .ok { color: var(--signal); }
.boot-log .hi { color: var(--ink); }
.boot-bar { height: 2px; background: var(--line); overflow: hidden; }
.boot-bar i { display: block; height: 100%; width: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }
.boot-skip {
  position: absolute;
  top: var(--gutter); right: var(--gutter);
  padding: 6px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: none;
  font-family: var(--f-mono);
  font-size: 0.74rem;
  color: var(--ink-3);
  cursor: pointer;
}
.boot.out { animation: boot-out 0.7s var(--ease-io) forwards; }
@keyframes boot-out {
  0% { clip-path: inset(0 0 0 0); }
  55% { clip-path: inset(49.6% 0 49.6% 0); background: var(--ink); }
  100% { clip-path: inset(50% 50% 50% 50%); background: var(--ink); }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
  isolation: isolate;
  background: var(--void);
}
.hero-gl {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  touch-action: pan-y;
}
body.is-on .hero-gl { animation: crt-on 1.1s var(--ease-out) both; }
@keyframes crt-on {
  0% { transform: scale(1, 0.004); filter: brightness(6); }
  35% { transform: scale(1, 0.004); filter: brightness(6); }
  60% { transform: scale(1, 1); filter: brightness(2.4); }
  100% { transform: none; filter: none; }
}
.hero-fallback {
  position: absolute;
  inset: 0 0 45% 0;
  z-index: -1;
  display: none;
  place-items: center;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(3.4rem, 15vw, 14rem);
  letter-spacing: -0.02em;
  background:
    radial-gradient(50% 50% at 50% 60%, rgba(139, 92, 255, 0.18), transparent 70%);
}
.hero.no-gl .hero-fallback { display: grid; }

.hud { position: absolute; inset: 0; pointer-events: none; font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.14em; color: var(--ink-3); }
.hud-c { position: absolute; width: 22px; height: 22px; border: 1px solid var(--line-2); }
.hud-c.tl { top: 88px; left: var(--gutter); border-right: 0; border-bottom: 0; }
.hud-c.tr { top: 88px; right: var(--gutter); border-left: 0; border-bottom: 0; }
.hud-c.bl { bottom: 22px; left: var(--gutter); border-right: 0; border-top: 0; }
.hud-c.br { bottom: 22px; right: var(--gutter); border-left: 0; border-top: 0; }
.hud-l, .hud-r { position: absolute; top: 100px; display: grid; gap: 6px; }
.hud-l { left: calc(var(--gutter) + 34px); }
.hud-r { right: calc(var(--gutter) + 34px); text-align: right; }
.hud b { color: var(--signal); font-weight: 400; }
.hud .dot { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 8px var(--signal); animation: blink 1.4s infinite; }
.hud > div { opacity: 0; transition: opacity 1s 1.6s; }
body.is-on .hud > div { opacity: 1; }

.hero-copy {
  position: absolute;
  left: 0; right: 0;
  bottom: clamp(64px, 11vh, 120px);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: end;
  gap: 32px;
}
.hero-tag {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2.3rem, 5.6vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}
.hero-tag .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero-tag .line > span { display: inline-block; transform: translateY(110%); transition: transform 1.2s var(--ease-out); }
.hero-tag .line:nth-child(2) > span { transition-delay: 0.12s; }
body.is-on .hero-tag .line > span { transform: none; transition-delay: 1.15s; }
body.is-on .hero-tag .line:nth-child(2) > span { transition-delay: 1.3s; }

.on-word {
  position: relative;
  font-style: normal;
  color: var(--signal);
  text-shadow: 0 0 18px rgba(196, 255, 61, 0.55), 0 0 60px rgba(196, 255, 61, 0.25);
}
body.is-on .on-word { animation: neon 2.4s 1.5s steps(1) both; }
@keyframes neon {
  0% { opacity: 0.15; } 8% { opacity: 1; } 12% { opacity: 0.2; } 16% { opacity: 1; }
  30% { opacity: 0.4; } 32% { opacity: 1; } 100% { opacity: 1; }
}

.hero-sub {
  justify-self: end;
  max-width: 470px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s 1.7s, transform 1.2s 1.7s var(--ease-out);
}
body.is-on .hero-sub { opacity: 1; transform: none; }
.hero-sub p { margin: 0 0 26px; color: var(--ink-2); font-size: 1.08rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  transform: translateX(-50%);
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-decoration: none;
  white-space: nowrap;
}
.scroll-cue i { position: relative; width: 60px; height: 1px; background: var(--line-2); overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; inset: 0; background: var(--signal); transform: translateX(-100%); animation: cue 2s var(--ease-io) infinite; }
@keyframes cue { 60%, 100% { transform: translateX(100%); } }

@media (max-width: 860px) {
  .hero-copy { grid-template-columns: 1fr; gap: 22px; bottom: 70px; }
  .hero-sub { justify-self: start; }
  .hud-l, .hud-r { display: none; }
  .scroll-cue span { display: none; }
}
@media (max-height: 720px) and (min-width: 861px) {
  .hero-tag { font-size: clamp(2rem, 4.4vw, 3.8rem); }
}

/* ==========================================================================
   Faixas
   ========================================================================== */
.ribbons {
  position: relative;
  padding: 70px 0;
  overflow: hidden;
  background: var(--void);
}
.ribbon {
  position: relative;
  width: 110%;
  margin-left: -5%;
  padding: 16px 0;
  overflow: hidden;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(1.1rem, 2.4vw, 1.9rem);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.ribbon--a { background: var(--signal); color: var(--void); transform: rotate(-2.4deg); z-index: 2; }
.ribbon--b { margin-top: 8px; border-block: 1px solid var(--line-2); background: rgba(10, 12, 19, 0.92); color: var(--ink-2); transform: rotate(1.8deg); }
.ribbon-track { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; will-change: transform; }
.ribbon b { font-weight: 400; font-size: 0.8em; opacity: 0.6; }
.ribbon--b b { color: var(--signal); opacity: 1; }

/* ==========================================================================
   Manifesto
   ========================================================================== */
.manifesto { padding: clamp(100px, 16vw, 200px) 0 clamp(80px, 12vw, 160px); }
.manifesto-text {
  margin: 0;
  max-width: 22ch;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 4.8vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}
.manifesto-text .w { opacity: 0.12; transition: opacity 0.35s linear, color 0.35s; }
.manifesto-text .w.lit { opacity: 1; }
.manifesto-text mark { background: none; color: inherit; }
.manifesto-text mark .w.lit {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
html.no-js .manifesto-text { opacity: 1; }

.equation {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4em;
  margin-top: clamp(50px, 8vw, 100px);
  font-family: var(--f-mono);
  font-size: clamp(1rem, 2.6vw, 2rem);
  color: var(--ink-3);
}
.eq-a { color: var(--signal); }
.eq-b { color: var(--ink-2); }
.eq-op { color: var(--ink-3); }
.eq-c { font-family: var(--f-display); font-weight: 900; font-size: 1.4em; letter-spacing: 0.02em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* Equação ON + V·A·I·D: cada letra acende em sequência, com a legenda embaixo */
.eq-vaid { display: inline-flex; gap: 0.06em; }
.eq-l { font-family: var(--f-display); font-weight: 900; font-size: 1.25em; line-height: 1; color: var(--ink-3); }
.equation.in .eq-l { animation: eq-on 0.6s calc(0.3s + var(--k) * 0.3s) forwards; }
@keyframes eq-on { 40% { color: #fff; text-shadow: 0 0 24px var(--signal); } 100% { color: var(--signal); text-shadow: 0 0 14px rgba(196, 255, 61, 0.45); } }
.eq-legend { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 18px 0 0; font-family: var(--f-mono); font-size: 0.82rem; color: var(--ink-3); }
.eq-legend span { opacity: 0.25; transition: opacity 0.5s, color 0.5s; }
.eq-legend b { color: var(--ink-2); font-weight: 600; }
.equation.in .eq-legend span { opacity: 1; color: var(--ink-2); transition-delay: calc(0.45s + var(--k) * 0.3s); }
.equation.in .eq-legend b { color: var(--signal); }

/* ==========================================================================
   Fábrica (scroll horizontal fixado)
   ========================================================================== */
.factory { position: relative; height: var(--factory-h, 500vh); }
.factory-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(24px, 4vh, 48px);
  overflow: hidden;
}
.factory-head .h-xl { font-size: clamp(1.9rem, 4.2vw, 3.6rem); }
.factory-head .eyebrow { margin-bottom: 14px; }
.factory-track {
  display: flex;
  gap: 22px;
  padding-inline: max(var(--gutter), (100vw - var(--maxw)) / 2);
  will-change: transform;
}
.station {
  --c: var(--signal);
  position: relative;
  flex: none;
  width: min(430px, 82vw);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(180deg, var(--void-3), var(--void-2));
  transition: border-color 0.6s, box-shadow 0.6s, transform 0.8s var(--ease-out), opacity 0.6s;
  opacity: 0.55;
  transform: scale(0.97);
}
.station.active {
  opacity: 1;
  transform: none;
  border-color: color-mix(in srgb, var(--c) 55%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 20%, transparent), 0 30px 80px -30px color-mix(in srgb, var(--c) 45%, transparent);
}
.station header { display: flex; justify-content: space-between; align-items: center; font-family: var(--f-mono); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; }
.st-n { font-family: var(--f-display); font-size: 1.6rem; font-weight: 900; line-height: 1; letter-spacing: 0; color: var(--c); }
.st-k { color: var(--ink-3); }
.station h3 { margin: 0 0 8px; font-family: var(--f-display); font-weight: 600; font-size: 1.35rem; letter-spacing: -0.02em; }
.station p { margin: 0 0 16px; color: var(--ink-2); font-size: 0.96rem; line-height: 1.55; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tags li { padding: 4px 10px; border: 1px solid var(--line-2); border-radius: 999px; font-family: var(--f-mono); font-size: 0.7rem; color: var(--ink-2); }

.st-vis {
  position: relative;
  height: clamp(130px, 22vh, 190px);
  margin: 18px 0 20px;
  border-radius: 14px;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 20px 20px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 20px 20px,
    rgba(5, 6, 10, 0.6);
  color: var(--c);
  overflow: hidden;
}
.st-vis svg { width: 100%; height: 100%; }

/* 01 Ignição */
.vis-ignite .links path { stroke-dasharray: 200; stroke-dashoffset: 200; opacity: 0.5; }
.vis-ignite .nodes circle { transform-box: fill-box; transform-origin: center; transform: scale(0); }
.vis-ignite .core { transform-box: fill-box; transform-origin: center; animation: core 1.8s ease-in-out infinite; }
.vis-ignite .ping { transform-box: fill-box; transform-origin: center; opacity: 0; }
.station.active .vis-ignite .links path { animation: dash 1.4s var(--ease-out) forwards; }
.station.active .vis-ignite .links path:nth-child(2n) { animation-delay: 0.2s; }
.station.active .vis-ignite .nodes circle { animation: pop 0.7s var(--ease-back) forwards; animation-delay: 0.5s; }
.station.active .vis-ignite .ping { animation: ping 2s ease-out infinite; }
@keyframes dash { to { stroke-dashoffset: 0; } }
@keyframes pop { to { transform: scale(1); } }
@keyframes core { 50% { transform: scale(0.8); } }
@keyframes ping { 0% { opacity: 0.9; transform: scale(1); } 100% { opacity: 0; transform: scale(5); } }

/* 02 Blueprint */
.vis-blueprint .draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.vis-blueprint .dim { opacity: 0.3; }
.station.active .vis-blueprint .draw { animation: dash 1.6s var(--ease-out) forwards; }
.station.active .vis-blueprint .draw:nth-child(n+3) { animation-delay: 0.4s; }
.station.active .vis-blueprint .draw:nth-child(n+5) { animation-delay: 0.8s; }

/* 03 Forja */
.vis-forge { padding: 14px 16px; }
.code { margin: 0; font-family: var(--f-mono); font-size: 0.72rem; line-height: 1.6; color: var(--ink-2); white-space: pre; }
.code .k { color: var(--plasma); }
.code .s { color: var(--signal); }
.code .f { color: var(--ion); }
.code .c { color: var(--ink-3); }
.code .caret { display: inline-block; width: 7px; height: 1em; vertical-align: -2px; background: var(--c); animation: blink 0.9s steps(1) infinite; }

/* 04 Lançamento */
.vis-launch { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 14px 18px; }
.pipe { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-family: var(--f-mono); font-size: 0.74rem; color: var(--ink-3); }
.pipe li { display: flex; align-items: center; gap: 10px; }
.pipe li span { margin-left: auto; opacity: 0; transition: opacity 0.3s; color: var(--ink-2); }
.pipe i { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--ink-3); transition: background 0.3s, border-color 0.3s, box-shadow 0.3s; }
.station.active .pipe li { animation: pipe-row 0.01s forwards; }
.station.active .pipe li i { animation: pipe-ok 0.4s forwards; }
.station.active .pipe li span { animation: pipe-txt 0.4s forwards; }
.station.active .pipe li:nth-child(1) * { animation-delay: 0.3s; }
.station.active .pipe li:nth-child(2) * { animation-delay: 0.8s; }
.station.active .pipe li:nth-child(3) * { animation-delay: 1.3s; }
.station.active .pipe li:nth-child(4) * { animation-delay: 1.8s; }
.station.active .pipe li:nth-child(5) * { animation-delay: 2.3s; }
@keyframes pipe-ok { to { background: var(--signal); border-color: var(--signal); box-shadow: 0 0 10px var(--signal); } }
@keyframes pipe-txt { to { opacity: 1; } }
@keyframes pipe-row { to { color: var(--ink); } }
.launch-bar { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.launch-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--c), var(--signal)); transform-origin: 0 50%; transform: scaleX(0); }
.station.active .launch-bar i { animation: bar 2.6s 0.2s var(--ease-io) forwards; }
@keyframes bar { to { transform: scaleX(1); } }

/* 05 Órbita */
.vis-orbit .line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.vis-orbit .area { opacity: 0; transition: opacity 1s 1s; }
.vis-orbit .rel { opacity: 0; transition: opacity 0.6s 1.4s; }
.station.active .vis-orbit .line { animation: dash 2s var(--ease-out) forwards; }
.station.active .vis-orbit .area, .station.active .vis-orbit .rel { opacity: 1; }

.conveyor { display: grid; gap: 10px; }
.conveyor-line { position: relative; height: 1px; background: var(--line-2); }
.conveyor-line i {
  position: absolute;
  top: -5px;
  left: calc(var(--fp, 0) * 100%);
  width: 34px; height: 11px;
  margin-left: -17px;
  border-radius: 3px;
  background: var(--signal);
  box-shadow: 0 0 18px var(--signal), 0 0 40px rgba(196, 255, 61, 0.5);
}
.conveyor-line::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--fp, 0) * 100%);
  background: var(--signal);
}
.conveyor-ticks { display: flex; justify-content: space-between; font-family: var(--f-display); font-weight: 800; font-size: 0.8rem; color: var(--ink-3); }

@media (max-width: 860px) {
  .factory { height: auto; padding: 100px 0 60px; }
  .factory-pin { position: static; height: auto; overflow: visible; }
  .factory-track { flex-direction: column; padding-inline: var(--gutter); transform: none !important; }
  .station { width: 100%; opacity: 1; transform: none; }
  .conveyor { display: none; }
}

/* ==========================================================================
   Apps
   ========================================================================== */
.apps { padding: clamp(100px, 14vw, 180px) 0; }
.app-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; perspective: 1400px; }
.app {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%; --hov: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(120% 70% at 50% 0%, color-mix(in srgb, var(--a1) 22%, transparent), transparent 60%),
    linear-gradient(180deg, var(--void-3), var(--void-2));
  overflow: hidden;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.6s var(--ease-out), border-color 0.4s, opacity 1s var(--ease-out), filter 1s var(--ease-out);
}
.app[data-reveal]:not(.in) { transform: translateY(40px); }
.app:hover { border-color: color-mix(in srgb, var(--a1) 50%, transparent); transition: transform 0.15s linear, border-color 0.4s; }
.app-shine {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  border-radius: inherit;
  opacity: var(--hov);
  transition: opacity 0.5s;
  background:
    radial-gradient(40% 40% at var(--mx) var(--my), rgba(255, 255, 255, 0.22), transparent 70%),
    repeating-linear-gradient(115deg,
      rgba(196, 255, 61, 0.0) 0%, rgba(196, 255, 61, 0.14) 4%,
      rgba(46, 230, 255, 0.14) 8%, rgba(139, 92, 255, 0.14) 12%,
      rgba(255, 77, 141, 0.12) 16%, rgba(255, 77, 141, 0) 20%);
  background-size: 100% 100%, 300% 300%;
  background-position: 0 0, var(--mx) var(--my);
  mix-blend-mode: color-dodge;
}
.phone {
  position: relative;
  width: min(220px, 70%);
  aspect-ratio: 9 / 18.5;
  margin: 40px auto 0;
  padding: 7px;
  border-radius: 34px;
  background: linear-gradient(145deg, #2a2f40, #0d0f16 40%, #1c2030);
  box-shadow: 0 40px 80px -30px color-mix(in srgb, var(--a1) 55%, transparent), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: translateZ(40px);
  transition: transform 0.8s var(--ease-out);
}
.app:hover .phone { transform: translateZ(70px) translateY(-8px); }
.phone::before {
  content: "";
  position: absolute;
  top: 14px; left: 50%;
  z-index: 2;
  width: 52px; height: 14px;
  border-radius: 999px;
  background: #000;
  transform: translateX(-50%);
}
.phone-screen {
  position: relative;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  padding: 36px 14px 14px;
  background: linear-gradient(180deg, #0f1220, #0a0c14);
  font-size: 0.68rem;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ui-top { display: flex; justify-content: space-between; align-items: baseline; }
.ui-top b { font-family: var(--f-display); font-size: 0.78rem; font-weight: 600; }
.ui-top span, .ui-label { font-family: var(--f-mono); font-size: 0.56rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.08em; }
.ui-clock { display: grid; gap: 4px; padding: 12px; border-radius: 14px; background: linear-gradient(135deg, #3a6df0, #7b5cff); }
.ui-clock .ui-label { color: rgba(255, 255, 255, 0.7); }
.ui-clock strong { font-family: var(--f-mono); font-size: 1.3rem; font-weight: 600; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.ui-pill { justify-self: start; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.18); font-size: 0.56rem; }
.ui-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.ui-cal i { aspect-ratio: 1; border-radius: 5px; background: rgba(255, 255, 255, 0.05); }
.ui-cal i.d { background: rgba(79, 140, 255, 0.55); }
.ui-cal i.n { background: rgba(139, 92, 255, 0.45); }
.ui-cal i.now { outline: 1.5px solid #fff; animation: blink 1.4s infinite; }
.ui-btn { margin-top: auto; padding: 10px; border-radius: 12px; background: #3a6df0; text-align: center; font-weight: 600; box-shadow: 0 0 0 0 rgba(58, 109, 240, 0.6); animation: btn-pulse 2.2s infinite; }
@keyframes btn-pulse { 70% { box-shadow: 0 0 0 10px rgba(58, 109, 240, 0); } 100% { box-shadow: 0 0 0 0 rgba(58, 109, 240, 0); } }

.ui-bal { display: grid; gap: 2px; }
.ui-bal strong { font-family: var(--f-display); font-size: 1.35rem; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ui-spark { width: 100%; height: 60px; overflow: visible; }
.ui-spark path { fill: none; stroke: var(--signal); stroke-width: 2.4; stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 6px rgba(196, 255, 61, 0.7)); vector-effect: non-scaling-stroke; }
.app.in .ui-spark path { animation: dash 2.4s 0.6s var(--ease-out) forwards; }
.ui-bars { display: grid; gap: 9px; }
.ui-bars div { display: grid; gap: 4px; }
.ui-bars span { color: var(--ink-2); font-size: 0.6rem; }
.ui-bars i { display: block; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--ion), var(--signal)); width: 0; transition: width 1.6s var(--ease-out); }
.app.in .ui-bars i { width: var(--w); }
.app.in .ui-bars div:nth-child(2) i { transition-delay: 0.15s; }
.app.in .ui-bars div:nth-child(3) i { transition-delay: 0.3s; }
.app.in .ui-bars div:nth-child(4) i { transition-delay: 0.45s; }

.ui-video { padding: 0; background: #0b1530; }
.ui-video video { width: 100%; height: 100%; object-fit: cover; }
.ui-radar { position: absolute; right: 12px; bottom: 12px; width: 34px; height: 34px; }
.ui-radar i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--ion); animation: radar 2.4s ease-out infinite; }
.ui-radar i:nth-child(2) { animation-delay: 0.8s; }
.ui-radar i:nth-child(3) { animation-delay: 1.6s; }
@keyframes radar { from { transform: scale(0.2); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }

.app-info { position: relative; z-index: 2; padding: 28px 26px 26px; margin-top: -40px; background: linear-gradient(180deg, transparent, var(--void-2) 34%); }
.app-cat { font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--a1); }
.app h3 { margin: 6px 0 8px; font-family: var(--f-display); font-weight: 800; font-size: 1.6rem; letter-spacing: -0.03em; }
.app p { margin: 0 0 18px; color: var(--ink-2); font-size: 0.96rem; }
.app-link { display: inline-flex; gap: 8px; align-items: center; font-family: var(--f-mono); font-size: 0.82rem; font-weight: 600; text-decoration: none; color: var(--ink); }
.app-link span { transition: transform 0.4s var(--ease-out); }
.app-link:hover span { transform: translate(3px, -3px); }

/* Grade 3 + 2: a segunda linha usa cartões largos na horizontal */
.app-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.app { grid-column: span 2; }
.app--wide {
  grid-column: span 3;
  flex-direction: row;
  align-items: center;
  background:
    radial-gradient(70% 120% at 0% 50%, color-mix(in srgb, var(--a1) 24%, transparent), transparent 65%),
    linear-gradient(180deg, var(--void-3), var(--void-2));
}
.app--wide .phone { flex: none; width: min(200px, 40%); margin: 34px 0 34px 34px; }
.app--wide .app-info { margin: 0; padding: 30px 30px 30px 28px; background: none; }
.app-feats {
  display: grid;
  gap: 6px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  font-size: 0.86rem;
  color: var(--ink-2);
}
.app-feats li { display: flex; gap: 10px; align-items: baseline; }
.app-feats li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 2px; background: var(--a1); transform: rotate(45deg) translateY(-1px); }

/* SyncCondo */
.ui-condo { background: linear-gradient(180deg, #0d1c1b, #0a1212); }
.ui-notice { display: grid; gap: 5px; padding: 12px; border-radius: 14px; background: linear-gradient(135deg, #1f7a6e, #2a9d8f); }
.ui-notice .ui-label { color: rgba(255, 255, 255, 0.7); }
.ui-notice strong { font-family: var(--f-display); font-size: 0.74rem; font-weight: 600; }
.ui-read { height: 5px; border-radius: 5px; background: rgba(0, 0, 0, 0.25); overflow: hidden; }
.ui-read i { display: block; height: 100%; width: 0; border-radius: inherit; background: #fff; transition: width 2.2s var(--ease-out) 0.3s; }
.app.in .ui-read i { width: 75%; }
.ui-read-n { font-family: var(--f-mono); font-size: 0.54rem; color: rgba(255, 255, 255, 0.8); }
.ui-read-n b { font-weight: 600; color: #fff; }
.ui-rows { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.ui-rows li {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.58rem;
  opacity: 0;
  transform: translateX(-14px);
  transition: opacity 0.6s, transform 0.7s var(--ease-out);
}
.app.in .ui-rows li { opacity: 1; transform: none; }
.app.in .ui-rows li:nth-child(1) { transition-delay: 0.5s; }
.app.in .ui-rows li:nth-child(2) { transition-delay: 0.65s; }
.app.in .ui-rows li:nth-child(3) { transition-delay: 0.8s; }
.app.in .ui-rows li:nth-child(4) { transition-delay: 0.95s; }
.ui-rows span { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ic { width: 22px; height: 22px; border-radius: 7px; }
.ic-oc { background: rgba(224, 138, 106, 0.85); }
.ic-rs { background: rgba(42, 157, 143, 0.85); }
.ic-qt { background: rgba(196, 255, 61, 0.7); }
.ic-dc { background: rgba(238, 240, 248, 0.25); }
.st { font-style: normal; font-family: var(--f-mono); font-size: 0.5rem; padding: 2px 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); color: var(--ink-2); }
.st-ok { background: rgba(42, 157, 143, 0.25); color: #7ee0d2; }
.st-wait { background: rgba(224, 138, 106, 0.2); color: #f0b49c; animation: blink 1.6s infinite; }

/* Ger House */
.ui-house { background: linear-gradient(180deg, #0c1430, #0a0e1c); }
.ui-result { display: grid; gap: 2px; }
.ui-result strong { font-family: var(--f-display); font-size: 1.2rem; font-weight: 600; letter-spacing: -0.02em; color: #6ee7b7; font-variant-numeric: tabular-nums; }
.ui-cols { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; height: 74px; padding: 8px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); }
.ui-cols div { flex: 1; display: flex; align-items: flex-end; justify-content: center; gap: 2px; height: 100%; }
.ui-cols i { width: 6px; height: 0; border-radius: 3px 3px 0 0; transition: height 1.4s var(--ease-out); }
.ui-cols i.in { background: linear-gradient(#6ee7b7, #3b82f6); }
.ui-cols i.out { background: rgba(255, 90, 95, 0.75); }
.app.in .ui-cols i { height: var(--h); }
.app.in .ui-cols div:nth-child(2) i { transition-delay: 0.1s; }
.app.in .ui-cols div:nth-child(3) i { transition-delay: 0.2s; }
.app.in .ui-cols div:nth-child(4) i { transition-delay: 0.3s; }
.app.in .ui-cols div:nth-child(5) i { transition-delay: 0.4s; }
.ui-houses { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 0.6rem; }
.ui-houses li { display: flex; justify-content: space-between; padding: 7px 9px; border-radius: 9px; background: rgba(255, 255, 255, 0.04); }
.ui-houses span { color: var(--ink-2); }
.ui-houses b { font-family: var(--f-mono); font-weight: 600; }
.ui-houses .pos { color: #6ee7b7; }
.ui-houses .neg { color: #ff8a8d; }
.ui-export { display: flex; gap: 5px; margin-top: auto; }
.ui-export span { flex: 1; padding: 6px 0; border-radius: 8px; border: 1px solid rgba(59, 130, 246, 0.5); text-align: center; font-family: var(--f-mono); font-size: 0.52rem; color: #93b7ff; animation: snap 4.8s var(--ease-back) infinite; }
.ui-export span:nth-child(2) { animation-delay: 0.3s; }
.ui-export span:nth-child(3) { animation-delay: 0.6s; }

@media (max-width: 980px) {
  .app-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .app, .app--wide { grid-column: auto; }
  .app--wide { flex-direction: column; align-items: stretch; }
  .app--wide .phone { width: min(220px, 70%); margin: 40px auto 0; }
  .app--wide .app-info { margin-top: -40px; padding: 28px 26px 26px; background: linear-gradient(180deg, transparent, var(--void-2) 34%); }
}

/* ==========================================================================
   Bento de capacidades
   ========================================================================== */
.caps { padding: 40px 0 clamp(100px, 14vw, 180px); }
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.cell {
  --x: -200px; --y: -200px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border-radius: var(--r);
  background: var(--void-2);
  isolation: isolate;
  overflow: hidden;
}
.cell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  padding: 1px;
  border-radius: inherit;
  background:
    radial-gradient(280px circle at var(--x) var(--y), rgba(196, 255, 61, 0.85), rgba(46, 230, 255, 0.4) 30%, transparent 60%),
    var(--line);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
.cell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: radial-gradient(400px circle at var(--x) var(--y), rgba(196, 255, 61, 0.07), transparent 60%);
}
.cell--wide { grid-column: span 2; }
.cell--accent { background: linear-gradient(135deg, rgba(139, 92, 255, 0.16), rgba(46, 230, 255, 0.06) 60%, var(--void-2)); }
.cell h3 { margin: auto 0 8px; font-family: var(--f-display); font-weight: 600; font-size: 1.15rem; letter-spacing: -0.02em; }
.cell p { margin: 0; color: var(--ink-2); font-size: 0.93rem; line-height: 1.55; }
.cell p strong { color: var(--ink); }
.cell-vis { position: relative; height: 120px; margin-bottom: 26px; color: var(--signal); }

.vis-native { display: grid; place-items: center; }
.vis-native .sig { position: absolute; width: 60px; height: 60px; border-radius: 50%; border: 1.5px solid var(--ion); animation: radar 3s ease-out infinite; }
.vis-native .s2 { animation-delay: 1s; border-color: var(--signal); }
.vis-native .s3 { animation-delay: 2s; border-color: var(--plasma); }
.chipset { position: relative; padding: 10px 16px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--void-3); font-family: var(--f-mono); font-size: 0.72rem; color: var(--ink); letter-spacing: 0.1em; }

.vis-multi { display: flex; align-items: center; justify-content: center; gap: 8px; }
.vis-multi i { font-style: normal; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 999px; font-family: var(--f-mono); font-size: 0.72rem; color: var(--ink-2); animation: hop 3s var(--ease-io) infinite; }
.vis-multi i:nth-child(2) { animation-delay: 0.3s; }
.vis-multi i:nth-child(3) { animation-delay: 0.6s; }
@keyframes hop { 0%, 60%, 100% { transform: none; border-color: var(--line-2); color: var(--ink-2); } 20% { transform: translateY(-12px); border-color: var(--signal); color: var(--signal); } }

.vis-cloud { display: flex; align-items: flex-end; justify-content: center; gap: 10px; }
.vis-cloud span { width: 14px; border-radius: 4px; background: linear-gradient(var(--ion), transparent); animation: sync 1.8s ease-in-out infinite; }
.vis-cloud span:nth-child(1) { height: 40%; }
.vis-cloud span:nth-child(2) { height: 80%; animation-delay: 0.2s; background: linear-gradient(var(--signal), transparent); }
.vis-cloud span:nth-child(3) { height: 60%; animation-delay: 0.4s; background: linear-gradient(var(--plasma), transparent); }
@keyframes sync { 50% { transform: scaleY(0.4); transform-origin: bottom; } }

.vis-web { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 4px 18px; }
.vis-web b { border-radius: 6px; border: 1px solid var(--line-2); animation: tile 4s infinite; }
.vis-web b:nth-child(1) { grid-column: span 2; }
.vis-web b:nth-child(4) { grid-row: span 2; }
.vis-web b:nth-child(2) { animation-delay: 0.6s; } .vis-web b:nth-child(3) { animation-delay: 1.2s; }
.vis-web b:nth-child(4) { animation-delay: 1.8s; } .vis-web b:nth-child(5) { animation-delay: 2.4s; } .vis-web b:nth-child(6) { animation-delay: 3s; }
@keyframes tile { 0%, 30%, 100% { background: transparent; } 10% { background: rgba(196, 255, 61, 0.25); } }

.vis-ai { display: grid; place-items: center; }
.ai-txt { font-family: var(--f-mono); font-size: 1rem; color: var(--ink-2); }
.ai-txt i { font-style: normal; color: var(--signal); animation: blink 0.8s steps(1) infinite; }

.vis-nexa { display: flex; flex-wrap: wrap; align-content: center; gap: 8px; }
.vis-nexa span { padding: 8px 14px; border-radius: 10px; background: rgba(5, 6, 10, 0.6); border: 1px solid var(--line-2); font-family: var(--f-mono); font-size: 0.78rem; color: var(--ink-2); animation: snap 4.8s var(--ease-back) infinite; }
.vis-nexa span:nth-child(2) { animation-delay: 0.3s; } .vis-nexa span:nth-child(3) { animation-delay: 0.6s; }
.vis-nexa span:nth-child(4) { animation-delay: 0.9s; } .vis-nexa span:nth-child(5) { animation-delay: 1.2s; } .vis-nexa span:nth-child(6) { animation-delay: 1.5s; }
@keyframes snap { 0%, 100% { transform: none; } 8% { transform: translateY(-6px); border-color: var(--signal); color: var(--signal); } 16% { transform: none; } }

.vis-shield { display: grid; place-items: center; }
.vis-shield svg { width: 56px; height: 64px; color: var(--signal); filter: drop-shadow(0 0 12px rgba(196, 255, 61, 0.5)); }
.vis-shield .ck { stroke-dasharray: 1; stroke-dashoffset: 1; }
.cell.in .vis-shield .ck { animation: dash 1s 0.6s var(--ease-out) forwards; }

@media (max-width: 980px) {
  .bento { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; }
  .cell--wide { grid-column: auto; }
}

/* ==========================================================================
   Ficha técnica
   ========================================================================== */
.spec { padding: 0 0 clamp(100px, 14vw, 180px); }
.spec-wrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: start; }
.spec-wrap > div:first-child { position: sticky; top: 120px; }
.spec-list { margin: 0; border-top: 1px solid var(--line); }
.spec-list > div {
  position: relative;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.spec-list > div::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(196, 255, 61, 0.08), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s var(--ease-out);
}
.spec-list > div:hover::before { transform: none; }
.spec-list dt { font-family: var(--f-mono); font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); padding-top: 4px; }
.spec-list dd { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: clamp(1rem, 1.8vw, 1.35rem); letter-spacing: -0.01em; }
.live { display: inline-flex; align-items: center; gap: 10px; color: var(--signal); }
.live i { width: 10px; height: 10px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 14px var(--signal); animation: blink 1.4s infinite; }
@media (max-width: 860px) {
  .spec-wrap { grid-template-columns: 1fr; }
  .spec-wrap > div:first-child { position: static; }
  .spec-list > div { grid-template-columns: 1fr; gap: 4px; }
}

/* ==========================================================================
   Terminal
   ========================================================================== */
.term-sec { padding: 0 0 clamp(100px, 14vw, 180px); }
.term {
  max-width: 880px;
  margin-inline: auto;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: rgba(8, 9, 14, 0.85);
  box-shadow: 0 50px 120px -40px rgba(139, 92, 255, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  overflow: hidden;
  font-family: var(--f-mono);
  font-size: 0.86rem;
}
.term-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--ink-3); font-size: 0.74rem; }
.term-bar b { margin-left: 10px; font-weight: 400; }
.term-hint { margin-left: auto; }
.term-hint kbd { padding: 1px 6px; border: 1px solid var(--line-2); border-radius: 5px; font-family: inherit; color: var(--ink-2); }
.term-bar .tl { width: 11px; height: 11px; border-radius: 50%; }
.term-bar .tl.r { background: #ff5f57; } .term-bar .tl.y { background: #febc2e; } .term-bar .tl.g { background: #28c840; }
.term-body { height: 320px; overflow-y: auto; padding: 18px 20px 6px; line-height: 1.7; color: var(--ink-2); scrollbar-width: thin; scrollbar-color: var(--void-4) transparent; }
.term-body p { margin: 0; white-space: pre-wrap; word-break: break-word; }
.term-body .cmd { color: var(--ink); }
.term-body .cmd::before { content: "onvaid@fabrica:~$ "; color: var(--signal); }
.term-body .ok { color: var(--signal); }
.term-body .acc { color: var(--ion); }
.term-body .vio { color: var(--plasma); }
.term-body .err { color: var(--flare); }
.term-body a { color: var(--ion); }
.term-input { display: flex; align-items: center; gap: 10px; padding: 8px 20px 16px; }
.ps { color: var(--signal); white-space: nowrap; }
.term-input input { flex: 1; min-width: 0; padding: 4px 0; border: 0; outline: 0; background: none; color: var(--ink); font: inherit; caret-color: var(--signal); }
.term-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 16px; border-top: 1px solid var(--line); }
.term-chips button { padding: 5px 12px; border: 1px solid var(--line-2); border-radius: 999px; background: none; font-family: var(--f-mono); font-size: 0.74rem; color: var(--ink-2); cursor: pointer; transition: border-color 0.3s, color 0.3s; }
.term-chips button:hover { border-color: var(--signal); color: var(--signal); }
@media (max-width: 600px) {
  .ps { display: none; }
  .term-body { height: 280px; font-size: 0.78rem; }
}

/* ==========================================================================
   Ignição (CTA)
   ========================================================================== */
.ignite {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 140px 0;
  overflow: hidden;
  text-align: center;
  background: radial-gradient(60% 50% at 50% 60%, rgba(139, 92, 255, 0.12), transparent 70%);
}
.ignite-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ignite-wrap { position: relative; display: grid; justify-items: center; }
.void-word { color: transparent; -webkit-text-stroke: 2px var(--ink-2); animation: flicker 5s infinite; }
@keyframes flicker { 0%, 92%, 100% { opacity: 1; } 93% { opacity: 0.2; } 94% { opacity: 1; } 96% { opacity: 0.4; } }
.ignite-sub { margin: 26px 0 50px; color: var(--ink-2); font-size: 1.15rem; }

.power {
  --hold: 0;
  position: relative;
  width: 190px; height: 190px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  transform: scale(calc(1 - var(--hold) * 0.06));
}
.power > svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.pw-track { fill: none; stroke: var(--line-2); stroke-width: 2; }
.pw-fill { fill: none; stroke: var(--signal); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--hold)); filter: drop-shadow(0 0 8px var(--signal)); }
.pw-core {
  position: absolute;
  inset: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, var(--void-4), var(--void-2));
  box-shadow: inset 0 0 0 1px var(--line-2), 0 0 calc(var(--hold) * 80px) rgba(196, 255, 61, calc(var(--hold) * 0.6));
  color: color-mix(in srgb, var(--signal) calc(var(--hold) * 100%), var(--ink-2));
  transition: background 0.4s;
}
.pw-core svg { width: 54px; height: 54px; }
.power:hover .pw-core { box-shadow: inset 0 0 0 1px var(--signal), 0 0 40px rgba(196, 255, 61, 0.15); }
.power.is-on .pw-core { background: var(--signal); color: var(--void); box-shadow: 0 0 100px rgba(196, 255, 61, 0.7); }
.power.is-on { animation: power-kick 0.6s var(--ease-back); }
@keyframes power-kick { 30% { transform: scale(1.12); } }
.power-hint { margin: 22px 0 0; font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }

.brief {
  margin-top: 46px;
  display: grid;
  justify-items: center;
  gap: 20px;
  max-width: 680px;
  animation: brief-in 0.9s var(--ease-out);
}
@keyframes brief-in { from { opacity: 0; transform: translateY(30px); filter: blur(10px); } }
.brief[hidden] { display: none; }
.brief-on { display: inline-flex; align-items: center; gap: 10px; margin: 0; color: var(--signal); font-size: 0.78rem; letter-spacing: 0.16em; }
.brief-on i { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 10px var(--signal); animation: blink 1s infinite; }
.brief h3 { margin: 0; font-family: var(--f-display); font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 600; letter-spacing: -0.02em; }
.brief-opts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.brief-opts button { padding: 10px 18px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(238, 240, 248, 0.03); font-family: var(--f-mono); font-size: 0.82rem; color: var(--ink-2); cursor: pointer; transition: all 0.3s var(--ease-out); }
.brief-opts button:hover { border-color: var(--ink-2); color: var(--ink); }
.brief-opts button[aria-pressed="true"] { border-color: var(--signal); background: rgba(196, 255, 61, 0.12); color: var(--signal); }
.brief-note { margin: 0; font-family: var(--f-mono); font-size: 0.76rem; color: var(--ink-3); }

body.flash::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 950;
  background: var(--signal);
  pointer-events: none;
  animation: flash 0.7s ease-out forwards;
  mix-blend-mode: screen;
}
@keyframes flash { from { opacity: 0.85; } to { opacity: 0; } }

/* ==========================================================================
   Experiência acumulada
   ========================================================================== */
.xp { padding: 0 0 clamp(100px, 14vw, 180px); }
.xp-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: clamp(60px, 8vw, 110px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--line);
  overflow: hidden;
}
.xp-stat { display: grid; align-content: start; gap: 10px; padding: 28px 24px 30px; background: var(--void-2); }
.xp-stat strong {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(2.6rem, 5.4vw, 4.6rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  background: var(--grad);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}
.xp-stat:nth-child(2) strong { background-position: 33% 0; }
.xp-stat:nth-child(3) strong { background-position: 66% 0; }
.xp-stat:nth-child(4) strong { background-position: 100% 0; }
.xp-stat > span { color: var(--ink-2); font-size: 0.92rem; line-height: 1.5; }

.xp-body { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 90px); align-items: start; }

.tline { --fill: 0; position: relative; margin: 0; padding: 0 0 0 46px; list-style: none; display: grid; gap: 34px; }
.tline::before, .tline::after {
  content: "";
  position: absolute;
  left: 11px; top: 8px; bottom: 8px;
  width: 2px;
  border-radius: 2px;
  background: var(--line-2);
}
.tline::after {
  background: linear-gradient(var(--signal), var(--ion), var(--plasma));
  transform-origin: 50% 0;
  transform: scaleY(var(--fill));
  box-shadow: 0 0 14px rgba(196, 255, 61, 0.45);
}
.tline-item { position: relative; }
.tline-item::before {
  content: "";
  position: absolute;
  left: -41px; top: 6px;
  z-index: 1;
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid var(--line-2);
  background: var(--void);
  transition: border-color 0.5s, background 0.5s, box-shadow 0.5s, transform 0.5s var(--ease-back);
}
.tline-item.lit::before { border-color: var(--signal); background: var(--signal); box-shadow: 0 0 14px var(--signal); transform: scale(1.15); }
.tline-item--now.lit::before { animation: ping-dot 1.8s ease-out infinite; }
@keyframes ping-dot { 0% { box-shadow: 0 0 0 0 rgba(196, 255, 61, 0.7); } 100% { box-shadow: 0 0 0 16px rgba(196, 255, 61, 0); } }
.tline-year { font-family: var(--f-mono); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; color: var(--ink-3); transition: color 0.5s; }
.tline-item.lit .tline-year { color: var(--signal); }
.tline-item h3 { margin: 4px 0 6px; font-family: var(--f-display); font-weight: 600; font-size: 1.25rem; letter-spacing: -0.02em; }
.tline-item p { margin: 0; max-width: 56ch; color: var(--ink-2); font-size: 0.97rem; line-height: 1.6; }

.sectors {
  position: sticky;
  top: 110px;
  padding: 28px;
  border-radius: var(--r);
  background: linear-gradient(160deg, rgba(139, 92, 255, 0.12), rgba(46, 230, 255, 0.04) 60%, var(--void-2));
  border: 1px solid var(--line);
}
.sectors h3 { margin: 0 0 20px; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
.sectors ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; }
.sectors li {
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 0.86rem;
  color: var(--ink-2);
  transition: border-color 0.3s, color 0.3s, background 0.3s, transform 0.4s var(--ease-back);
}
.sectors li:hover { border-color: var(--signal); color: var(--signal); background: rgba(196, 255, 61, 0.06); transform: translateY(-3px); }
.sectors.in li { animation: sector-in 0.7s var(--ease-out) both; }
.sectors.in li:nth-child(n) { animation-delay: calc(var(--k, 0) * 50ms); }
@keyframes sector-in { from { opacity: 0; transform: translateY(12px) scale(0.92); } }
.sectors-note { margin: 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 0.92rem; }

/* bento: dados + arquitetura */
.vis-db { display: flex; align-items: center; justify-content: center; gap: 18px; }
.vis-db .db { position: relative; display: grid; gap: 4px; }
.vis-db .db i { display: block; width: 46px; height: 14px; border-radius: 50%; border: 1.5px solid var(--ion); background: rgba(46, 230, 255, 0.08); animation: db-pulse 2.4s ease-in-out infinite; }
.vis-db .db i:nth-child(2) { animation-delay: 0.2s; }
.vis-db .db i:nth-child(3) { animation-delay: 0.4s; }
@keyframes db-pulse { 50% { border-color: var(--signal); background: rgba(196, 255, 61, 0.15); } }
.vis-db .ms { font-family: var(--f-mono); font-size: 0.72rem; color: var(--ink-3); }
.vis-db .ms b { display: block; font-weight: 600; color: var(--signal); font-size: 0.9rem; }

.vis-arch { display: flex; align-items: center; justify-content: center; gap: 0; padding: 0 6px; }
.vis-arch span { flex: none; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--void-3); font-family: var(--f-mono); font-size: 0.72rem; color: var(--ink-2); }
.vis-arch i { position: relative; flex: 1; min-width: 14px; height: 1px; background: var(--line-2); overflow: hidden; }
.vis-arch i::after { content: ""; position: absolute; top: -1px; left: 0; width: 10px; height: 3px; border-radius: 3px; background: var(--signal); box-shadow: 0 0 8px var(--signal); animation: packet 1.8s linear infinite; }
.vis-arch i:nth-of-type(2)::after { animation-delay: 0.6s; }
.vis-arch i:nth-of-type(3)::after { animation-delay: 1.2s; }
@keyframes packet { from { transform: translateX(-12px); } to { transform: translateX(120px); } }

@media (max-width: 980px) {
  .xp-stats { grid-template-columns: 1fr 1fr; }
  .xp-body { grid-template-columns: 1fr; }
  .sectors { position: static; }
}
@media (max-width: 480px) {
  .xp-stat { padding: 22px 18px; }
  .vis-arch span { padding: 6px 8px; font-size: 0.64rem; }
}

/* ==========================================================================
   O núcleo - retratos de partículas
   ========================================================================== */
.team { padding: 0 0 clamp(100px, 14vw, 180px); }
.team-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.team-hint { margin: 0; font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.member { margin: 0; outline: none; cursor: pointer; }
.member-pic {
  --px: 50%; --py: 45%;
  position: relative;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background:
    radial-gradient(70% 60% at 50% 40%, rgba(139, 92, 255, 0.14), transparent 70%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 22px 22px,
    var(--void-2);
  transition: border-color 0.5s, box-shadow 0.6s;
}
.member-pic canvas { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity 0.6s; }
.member-pic img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  clip-path: circle(0% at var(--px) var(--py));
  transition: clip-path 0.9s var(--ease-io);
  filter: saturate(1.05) contrast(1.05);
}
.member.is-on .member-pic img { clip-path: circle(150% at var(--px) var(--py)); }
.member.has-photo.is-on .member-pic canvas { opacity: 0.35; }
.member.is-on .member-pic { border-color: var(--signal); box-shadow: 0 30px 80px -30px rgba(196, 255, 61, 0.45); }
.member.no-photo.is-on .member-pic canvas { filter: drop-shadow(0 0 10px rgba(196, 255, 61, 0.5)); }
.member:focus-visible .member-pic { outline: 2px solid var(--signal); outline-offset: 4px; }

.member-state {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(5, 6, 10, 0.7);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  transition: color 0.3s, border-color 0.3s;
}
.member-state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); transition: background 0.3s, box-shadow 0.3s; }
.member.is-on .member-state { color: var(--signal); border-color: rgba(196, 255, 61, 0.5); }
.member.is-on .member-state::before { background: var(--signal); box-shadow: 0 0 8px var(--signal); }
.member-corners { position: absolute; inset: 12px; pointer-events: none; z-index: 2; }
.member-corners::before, .member-corners::after {
  content: "";
  position: absolute;
  width: 18px; height: 18px;
  border: 1px solid rgba(238, 240, 248, 0.3);
  transition: border-color 0.4s, transform 0.5s var(--ease-out);
}
.member-corners::before { right: 0; top: 0; border-left: 0; border-bottom: 0; }
.member-corners::after { left: 0; bottom: 0; border-right: 0; border-top: 0; }
.member.is-on .member-corners::before { border-color: var(--signal); transform: translate(3px, -3px); }
.member.is-on .member-corners::after { border-color: var(--signal); transform: translate(-3px, 3px); }

.member figcaption { padding: 20px 4px 0; }
.member-role { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--signal); }
.member h3 { margin: 6px 0 8px; font-family: var(--f-display); font-weight: 800; font-size: 1.6rem; letter-spacing: -0.03em; }
.member p { margin: 0; color: var(--ink-2); font-size: 0.95rem; line-height: 1.55; }

@media (max-width: 900px) {
  .team-grid { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; }
}

/* Sem JavaScript: conteúdo visível */
html.no-js .hero-tag .line > span, html.no-js .hero-sub, html.no-js .hud > div { transform: none; opacity: 1; }
html.no-js .manifesto-text .w { opacity: 1; }
html.no-js .tline { --fill: 1; }
html.no-js .hero-fallback { display: grid; }

/* ==========================================================================
   Modo overdrive
   ========================================================================== */
html.overdrive { --signal: #ff4d8d; }
html.overdrive .ribbon--a { background: var(--grad); background-size: 200% 100%; animation: grad-pan 2s linear infinite; }
html.overdrive body::after { opacity: 0.12; }

@media (prefers-reduced-motion: reduce) {
  .hero-tag .line > span, .hero-sub, .hud > div { transform: none !important; opacity: 1 !important; transition: none !important; }
  .station { opacity: 1; transform: none; }
  .manifesto-text .w { opacity: 1; }
}
