/* ==========================================================================
   Atous Technology — Landing page
   Design system: dark cyberpunk / security. Tokens first, then layout,
   components, effects and responsive rules.
   ========================================================================== */

/* ---------- Fonts (self-hosted, latin subset, SIL OFL 1.1) ---------- */
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/unbounded-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/unbounded-latin-800-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Chakra Petch";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/chakra-petch-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Chakra Petch";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/chakra-petch-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Chakra Petch";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/chakra-petch-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Chakra Petch";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/chakra-petch-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-latin-700-normal.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
  --bg: #03060D;
  --bg-alt: #04080F;
  --bg-deep: #02040A;
  --surface: rgba(7, 13, 26, 0.86);
  --surface-solid: #050A14;
  --text: #E6F1FF;
  --text-strong: #F2F8FF;
  --text-2: #B4C3D9;
  --text-3: #A9B8CF;
  --muted: #8FA3BF;
  --muted-2: #7F93AE;
  --dim: #6B7F9C;
  --cyan: #00E1FF;
  --cyan-soft: #8CF3FF;
  --blue: #1F6BFF;
  --red: #FF3B5C;
  --red-soft: #FF6B82;
  --amber: #FF8A3D;
  --line: rgba(0, 225, 255, 0.16);
  --line-strong: rgba(0, 225, 255, 0.3);
  --f-body: "Chakra Petch", system-ui, sans-serif;
  --f-disp: "Unbounded", "Chakra Petch", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
  --wrap: 1320px;
  --gutter: 32px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  background: var(--bg);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
}

img,
svg,
canvas {
  display: block;
}

img {
  max-width: 100%;
}

a {
  color: var(--cyan);
}

a:hover {
  color: var(--cyan-soft);
}

::selection {
  background: var(--cyan);
  color: var(--bg);
}

main section[id] {
  scroll-margin-top: 72px;
}

/* content-visibility: auto was tried on the lower sections to skip paint off
   screen, but it collapses to contain-intrinsic-size until laid out, which
   broke the "clicking a nav link lands the section right under the header"
   invariant (navigation.spec.js). Rely on offscreen.js + prefers-reduced-
   motion instead. */

p,
h1,
h2,
h3 {
  margin: 0;
}

/* Long Portuguese words in the wide display face can outgrow a card on the narrowest
   phones: break such a word rather than overflow (words that fit are never split). */
h1,
h2,
h3 {
  overflow-wrap: break-word;
}

.mono {
  font-family: var(--f-mono);
}

.disp {
  font-family: var(--f-disp);
}

.ico {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 300;
  padding: 12px 18px;
  background: var(--cyan);
  color: var(--bg);
  font-weight: 700;
  text-decoration: none;
}

.skip:focus {
  top: 16px;
  color: var(--bg);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

[tabindex="-1"]:focus {
  outline: none;
}

[hidden] {
  display: none !important;
}

.grid-bg {
  background-image:
    linear-gradient(rgba(0, 225, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 225, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
}

/* ---------- Layout ---------- */
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.sec {
  position: relative;
  padding: 130px 0;
}

.sec--tight {
  padding: 110px 0 120px;
}

.sec--alt {
  background-color: var(--bg-alt);
}

.sec--line {
  border-top: 1px solid rgba(0, 225, 255, 0.12);
}

.sec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 52px;
}

.sec-head__main {
  flex: 1 1 560px;
  min-width: 0;
}

.sec-head__aside {
  flex: 0 1 420px;
  font-size: 16px;
  color: var(--muted);
}

.sec-head__aside.mono {
  font-size: 13px;
  line-height: 1.8;
  letter-spacing: 0.04em;
  color: var(--muted-2);
}

.sec-intro {
  max-width: 860px;
  margin-bottom: 44px;
}

.split {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
}

.split--top {
  align-items: flex-start;
}

.split__a {
  flex: 1 1 520px;
  min-width: 0;
}

.split__a--narrow {
  flex: 1 1 340px;
}

.split__b {
  flex: 1 1 460px;
  min-width: 0;
}

.split__b--wide {
  flex: 2 1 600px;
}

.grid-2,
.grid-3,
.grid-4,
.grid-5 {
  display: grid;
  gap: 20px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.span-2 {
  grid-column: span 2;
}

/* ---------- Typography ---------- */
.kicker {
  margin-bottom: 16px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--cyan);
}

.kicker--red {
  color: var(--red-soft);
}

.h2 {
  max-width: 820px;
  font-size: clamp(28px, 2.9vw, 44px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-strong);
}

.h2--xl {
  font-size: clamp(30px, 3.4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-strong);
}

.lead {
  max-width: 620px;
  margin-top: 22px;
  color: var(--text-2);
}

.text-sm {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-3);
}

.note {
  margin-top: 28px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted-2);
}

.idx {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--dim);
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  cursor: pointer;
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  /* Never wider than its column: a long label wraps on the narrowest phones. */
  max-width: 100%;
  text-align: center;
}

.btn-primary {
  background-color: var(--cyan);
  color: var(--bg);
}

@media (hover: hover) {
  .btn-primary:hover {
    background-color: var(--cyan-soft);
    color: var(--bg);
    transform: translateY(-2px);
  }
}

.btn-ghost {
  background-color: rgba(0, 225, 255, 0.07);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(0, 225, 255, 0.5);
}

@media (hover: hover) {
  .btn-ghost:hover {
    background-color: rgba(0, 225, 255, 0.16);
    color: #FFFFFF;
    transform: translateY(-2px);
  }
}

/* clip-path clips outlines, so buttons get an inset focus ring instead */
.btn:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 3px #FFFFFF;
}

.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--cyan);
  text-decoration: none;
}

.cta-link:hover {
  color: var(--cyan-soft);
}

.cta-link .ar {
  transition: transform 0.25s ease;
}

@media (hover: hover) {
  .cta-link:hover .ar {
    transform: translateX(5px);
  }
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(0, 225, 255, 0.25);
  background-color: rgba(0, 225, 255, 0.04);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-2);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid rgba(0, 225, 255, 0.14);
  background-color: rgba(3, 6, 13, 0.8);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  flex: none;
}

.brand img {
  width: auto;
  height: 40px;
}

.nav {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 26px;
}

.navlink {
  position: relative;
  padding: 12px 0;
  color: var(--text-3);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.navlink::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 6px;
  height: 1px;
  background: var(--cyan);
  transition: right 0.25s ease;
}

.navlink:hover {
  color: var(--text-strong);
}

@media (hover: hover) {
  .navlink:hover::after {
    right: 0;
  }
}

.header-actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.sys-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: live 1.6s ease-in-out infinite;
}

@keyframes live {
  50% {
    opacity: 0.25;
  }
}

.fx-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(0, 225, 255, 0.3);
  background: transparent;
  color: var(--text-3);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.fx-toggle:hover {
  border-color: var(--cyan);
  color: var(--text-strong);
}

.fx-toggle__icon {
  color: var(--cyan);
}

.fx-toggle[aria-pressed="false"] .fx-toggle__icon {
  color: var(--muted-2);
  opacity: 0.7;
}

.progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background-color: var(--cyan);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 860px;
  overflow: hidden;
  border-bottom: 1px solid rgba(0, 225, 255, 0.12);
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  padding-top: 88px;
  padding-bottom: 150px;
}

.hero__copy {
  flex: 1 1 560px;
  min-width: 0;
}

.eyebrow {
  margin-bottom: 22px;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--cyan);
}

.term-chip {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
  padding: 10px 14px;
  border: 1px solid rgba(0, 225, 255, 0.25);
  background-color: rgba(0, 225, 255, 0.05);
  font-size: 14px;
  color: var(--muted);
}

.term-chip__prompt {
  color: var(--cyan);
}

.term-chip__typed {
  color: var(--text-strong);
}

.caret {
  display: inline-block;
  width: 0.6em;
  height: 1.15em;
  margin-left: 2px;
  vertical-align: -0.2em;
  background: var(--cyan);
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.hero__title {
  font-size: clamp(36px, 4.3vw, 62px);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-strong);
}

.hero__title .glitch {
  color: var(--cyan);
}

.hero__lead {
  max-width: 600px;
  margin-top: 28px;
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-2);
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.hero__micro {
  max-width: 620px;
  margin-top: 26px;
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: 0.04em;
  color: var(--muted-2);
}

.hero__visual {
  position: relative;
  flex: 1 1 520px;
  min-width: 0;
  height: 620px;
}

.sphere {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.float-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 84px;
  height: auto;
  margin-left: -42px;
  margin-top: -37px;
  pointer-events: none;
  filter: drop-shadow(0 0 18px rgba(0, 225, 255, 0.55));
  animation: floatM 6s ease-in-out infinite;
}

@keyframes floatM {
  50% {
    transform: translateY(-9px);
  }
}

.hc {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 0 solid var(--cyan);
}

.hc--tl {
  left: 0;
  top: 0;
  border-left-width: 1px;
  border-top-width: 1px;
}

.hc--tr {
  right: 0;
  top: 0;
  border-right-width: 1px;
  border-top-width: 1px;
}

.hc--bl {
  left: 0;
  bottom: 0;
  border-left-width: 1px;
  border-bottom-width: 1px;
}

.hc--br {
  right: 0;
  bottom: 0;
  border-right-width: 1px;
  border-bottom-width: 1px;
}

.hud {
  position: absolute;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted-2);
}

.hud--tl {
  left: 20px;
  top: 16px;
  color: var(--cyan);
}

.hud--tr {
  right: 20px;
  top: 16px;
}

/* A narrow globe (beside the copy on laptops and tablets) has no room for both labels on one line. */
.hero__visual {
  container-type: inline-size;
}

@container (max-width: 540px) {
  .hero__visual .hud--tr {
    top: 36px;
    left: 20px;
    right: auto;
  }
}

.hud--bl {
  left: 20px;
  bottom: 18px;
  color: var(--muted);
}

.hud--br {
  right: 20px;
  bottom: 18px;
  letter-spacing: 0.12em;
  color: var(--dim);
}

.hud--strong {
  font-weight: 700;
  color: var(--cyan);
}

.hud__value {
  color: var(--text-strong);
}

.stage .hud--tl {
  color: var(--muted-2);
}

.legend {
  position: absolute;
  left: 20px;
  bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.legend__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.legend__sw {
  width: 8px;
  height: 8px;
}

.legend__sw--risk {
  background-color: var(--red);
}

.legend__sw--ok {
  border: 1px solid var(--cyan);
}

.pipeline-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 30px;
  z-index: 3;
}

.pipeline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.pipeline__label {
  margin-right: 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--dim);
}

.pipe {
  padding: 6px 10px;
  color: var(--muted-2);
  /* Flip, never fade: a half-way frame would put mid-tone text on a mid-tone fill. */
  animation: pipe 7.5s steps(1, end) infinite;
}

.d-pipe2 {
  animation-delay: 1.5s;
}

.d-pipe3 {
  animation-delay: 3s;
}

.d-pipe4 {
  animation-delay: 4.5s;
}

.d-pipe5 {
  animation-delay: 6s;
}

@keyframes pipe {
  0%,
  16% {
    color: var(--bg);
    background-color: var(--cyan);
  }
  20%,
  100% {
    color: var(--muted-2);
    background-color: transparent;
  }
}

.pipe-sep {
  color: #3A4A63;
}

/* 3D floor */
.floor-wrap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 380px;
  overflow: hidden;
  pointer-events: none;
  perspective: 340px;
  perspective-origin: 50% 0%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 60%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 60%);
}

.floor {
  position: absolute;
  left: -50%;
  bottom: 0;
  width: 200%;
  height: 240%;
  transform: rotateX(74deg);
  transform-origin: 50% 100%;
  background-image:
    linear-gradient(rgba(0, 225, 255, 0.34) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 107, 255, 0.34) 1px, transparent 1px);
  background-size: 56px 56px;
  animation: floorMove 2.2s linear infinite;
}

@keyframes floorMove {
  to {
    background-position: 0 56px;
  }
}

/* Intro sequence (runs after the boot overlay) */
.intro {
  animation: introIn 0.9s var(--ease) both;
}

.d1 {
  animation-delay: 1.05s;
}

.d2 {
  animation-delay: 1.15s;
}

.d3 {
  animation-delay: 1.25s;
}

.d4 {
  animation-delay: 1.4s;
}

.d5 {
  animation-delay: 1.55s;
}

.d6 {
  animation-delay: 1.65s;
}

/* Boot already seen in this session: skip it and start the intro at once. */
.booted .boot {
  display: none;
}

.booted .intro {
  animation-delay: 0s;
}

/* Effects switched back on by hand: the page is already in use, so no entrance. */
.fx-switched .boot {
  display: none;
}

.fx-switched .intro {
  animation: none;
}

@keyframes introIn {
  0% {
    opacity: 0;
    transform: translateY(18px);
    filter: blur(6px);
  }
  60% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* ---------- Glitch ---------- */
.glitch {
  position: relative;
  display: inline-block;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  clip-path: inset(0 0 100% 0);
}

.glitch::before {
  color: var(--red);
  animation: glA 3.4s infinite steps(1, end);
}

.glitch::after {
  color: #B9F7FF;
  animation: glB 2.9s infinite steps(1, end);
}

@keyframes glA {
  0% {
    clip-path: inset(0 0 100% 0);
    transform: none;
  }
  4% {
    clip-path: inset(12% 0 58% 0);
    transform: translate(-6px, -1px);
  }
  6% {
    clip-path: inset(68% 0 8% 0);
    transform: translate(5px, 1px);
  }
  8%,
  61% {
    clip-path: inset(0 0 100% 0);
    transform: none;
  }
  62% {
    clip-path: inset(40% 0 38% 0);
    transform: translate(-4px, 0);
  }
  64%,
  100% {
    clip-path: inset(0 0 100% 0);
    transform: none;
  }
}

@keyframes glB {
  0% {
    clip-path: inset(0 0 100% 0);
    transform: none;
  }
  30% {
    clip-path: inset(55% 0 20% 0);
    transform: translate(4px, 0);
  }
  32% {
    clip-path: inset(5% 0 80% 0);
    transform: translate(-3px, 1px);
  }
  34% {
    clip-path: inset(0 0 100% 0);
    transform: none;
  }
  82% {
    clip-path: inset(30% 0 52% 0);
    transform: translate(3px, -1px);
  }
  84%,
  100% {
    clip-path: inset(0 0 100% 0);
    transform: none;
  }
}

.gl-soft {
  animation: glSoft 7s infinite;
}

@keyframes glSoft {
  0%,
  92%,
  97%,
  100% {
    text-shadow: none;
    transform: none;
  }
  93% {
    text-shadow: -3px 0 var(--red), 3px 0 var(--cyan);
    transform: skewX(-5deg);
  }
  95% {
    text-shadow: 2px 0 var(--red), -2px 0 var(--cyan);
    transform: skewX(3deg);
  }
}

/* ---------- Ticker ---------- */
.ticker {
  position: relative;
  overflow: hidden;
  padding: 34px 0 30px;
}

.ticker__band--red {
  margin: 0 -40px;
  transform: rotate(1.3deg);
  background-color: var(--red);
  color: var(--bg);
}

.ticker__band--cyan {
  position: relative;
  margin: -30px -40px 0;
  transform: rotate(-1.4deg);
  background-color: var(--cyan);
  color: var(--bg);
  box-shadow: 0 0 44px rgba(0, 225, 255, 0.35);
}

.ticker__track {
  display: flex;
  width: max-content;
  padding: 14px 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.03em;
  animation: marquee 40s linear infinite;
}

.ticker__track--rev {
  padding: 9px 0;
  font-size: 13px;
  letter-spacing: 0.2em;
  animation-direction: reverse;
  animation-duration: 52s;
}

.tk {
  padding: 0 22px;
  white-space: nowrap;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Trust ---------- */
.trust-grid {
  gap: 1px;
  border: 1px solid rgba(0, 225, 255, 0.14);
  background-color: rgba(0, 225, 255, 0.14);
}

.sec--tight .sec-head {
  margin-bottom: 48px;
}

.trust-item {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px 28px;
  background-color: var(--surface-solid);
}

.trust-item__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--cyan);
}

.trust-item .h3 {
  font-size: 21px;
}

/* ---------- Diagnóstico ---------- */
.diag {
  overflow: hidden;
  padding: 140px 0;
  border-top: 1px solid rgba(255, 59, 92, 0.25);
  border-bottom: 1px solid rgba(255, 59, 92, 0.25);
  background-color: #05070D;
}

.diag__media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 58%;
  overflow: hidden;
}

.diag__img {
  position: absolute;
  left: 0;
  top: -8%;
  width: 100%;
  height: 116%;
  max-width: none;
  object-fit: cover;
  opacity: 0.6;
}

.diag__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #05070D 0%, rgba(5, 7, 13, 0.75) 35%, rgba(5, 7, 13, 0.25) 100%);
}

.diag .h2 {
  max-width: none;
}

.diag .lead {
  max-width: 580px;
  margin-top: 28px;
}

.diag__question {
  margin-top: 22px;
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 700;
  line-height: 1.2;
}

.diag__question .glitch {
  color: var(--red);
}

.diag .cta-link {
  margin-top: 22px;
}

.terminal {
  position: relative;
  align-self: center;
  border: 1px solid var(--line-strong);
  background-color: rgba(3, 6, 13, 0.88);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.terminal__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0, 225, 255, 0.18);
}

.tdot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.tdot--red {
  background-color: var(--red);
}

.tdot--blue {
  background-color: var(--blue);
}

.tdot--cyan {
  background-color: var(--cyan);
}

.terminal__title {
  margin-left: 10px;
  font-size: 12px;
  color: var(--muted-2);
}

.terminal__body {
  padding: 22px 20px 28px;
  font-size: 13px;
  line-height: 1.95;
  color: #C8D6EA;
}

.tl-line {
  display: grid;
  min-height: 1.95em;
  white-space: pre-wrap;
}

/* The typed text sits over an invisible full copy that fixes the line height. */
.tl-ghost,
.tl-typed {
  grid-area: 1 / 1;
}

.tl-ghost {
  visibility: hidden;
}

.tl-line--prompt {
  color: var(--cyan);
}

.tl-line--alert {
  color: var(--red-soft);
}

.corners::before,
.corners::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  pointer-events: none;
}

.corners::before {
  left: -1px;
  top: -1px;
  border-left: 2px solid var(--cyan);
  border-top: 2px solid var(--cyan);
}

.corners::after {
  right: -1px;
  bottom: -1px;
  border-right: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan);
}

/* ---------- Cards ---------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 34px;
  border: 1px solid rgba(0, 225, 255, 0.2);
  background-color: var(--surface);
}

.card__head {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--cyan);
}

.card__title {
  font-size: 22px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--text-strong);
}

.card__title--lg {
  font-size: 28px;
  line-height: 1.2;
}

.card__text {
  font-size: 16px;
  color: var(--text-2);
}

.card__cta {
  margin-top: auto;
}

.card--feature {
  flex-flow: row wrap;
  gap: 24px;
  padding: 36px;
}

.card--feature__body {
  position: relative;
  display: flex;
  flex: 1 1 380px;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.card--feature .card__text {
  font-size: 17px;
}

.tilt {
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.35s var(--ease), border-color 0.3s ease;
}

.tilt:hover {
  border-color: rgba(0, 225, 255, 0.55);
}

.spot {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(0, 225, 255, 0.13), transparent 60%);
  transition: opacity 0.3s ease;
}

@media (hover: hover) {
  .tilt:hover .spot {
    opacity: 1;
  }
}

/* Isometric attack-surface stack */
.iso-wrap {
  position: relative;
  flex: 0 0 280px;
  height: 280px;
  perspective: 900px;
}

.iso {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 150px;
  height: 150px;
  margin: -60px 0 0 -75px;
  transform: rotateX(58deg) rotateZ(-42deg);
  transform-style: preserve-3d;
}

.plate {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 8px;
  border: 1px solid rgba(0, 225, 255, 0.75);
  background-color: rgba(0, 225, 255, 0.06);
  background-image:
    linear-gradient(rgba(0, 225, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 225, 255, 0.18) 1px, transparent 1px);
  background-size: 15px 15px;
  transition: transform 0.6s var(--ease);
}

.plate span {
  padding: 2px 6px;
  background: var(--bg);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--text);
}

.pl1 {
  transform: translateZ(0);
}

.pl2 {
  transform: translateZ(38px);
}

.pl3 {
  transform: translateZ(76px);
  border-color: var(--red);
  background-color: rgba(255, 59, 92, 0.09);
}

@media (hover: hover) {
  .tilt:hover .pl2 {
    transform: translateZ(60px);
  }

  .tilt:hover .pl3 {
    transform: translateZ(120px);
  }
}

.vdot {
  position: absolute;
  right: 26px;
  top: 26px;
  width: 10px;
  height: 10px;
  background: var(--red);
  box-shadow: 0 0 14px var(--red);
  animation: live 1.2s ease-in-out infinite;
}

/* ---------- Black / Grey / White Box explorer ---------- */
#box[data-mode="black"] {
  --face-bg: rgba(3, 6, 13, 0.96);
  --face-edge: rgba(0, 225, 255, 0.42);
  --face-inner: rgba(0, 0, 0, 0.85);
  --glyph: 1;
  --stripes: 0;
  --core: 0;
  --beam: 0;
  --bar1: 10%;
  --bar2: 100%;
  --bar3: 28%;
}

#box[data-mode="grey"] {
  --face-bg: rgba(98, 116, 140, 0.3);
  --face-edge: rgba(0, 225, 255, 0.7);
  --face-inner: rgba(3, 6, 13, 0.5);
  --glyph: 0.1;
  --stripes: 1;
  --core: 0.6;
  --beam: 0.75;
  --bar1: 55%;
  --bar2: 62%;
  --bar3: 68%;
}

#box[data-mode="white"] {
  --face-bg: rgba(200, 235, 255, 0.035);
  --face-edge: rgba(170, 246, 255, 1);
  --face-inner: rgba(0, 225, 255, 0.18);
  --glyph: 0;
  --stripes: 0;
  --core: 1;
  --beam: 1;
  --bar1: 100%;
  --bar2: 26%;
  --bar3: 100%;
}

.box-select {
  gap: 16px;
  margin-bottom: 24px;
}

.sel {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 84px;
  padding: 14px 18px;
  border: 1px solid rgba(0, 225, 255, 0.18);
  background-color: rgba(9, 16, 30, 0.7);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.sel:hover {
  border-color: rgba(0, 225, 255, 0.6);
}

.sel[aria-pressed="true"] {
  border-color: var(--cyan);
  background-color: rgba(0, 225, 255, 0.1);
}

.sel__txt {
  display: block;
  min-width: 0;
}

.sel__idx {
  display: block;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--cyan);
}

.sel__name {
  display: block;
  font-size: 18px;
  font-weight: 700;
}

.sel__desc {
  display: block;
  font-size: 14px;
  color: var(--muted);
}

.mini {
  --hz: 18px;
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  perspective: 400px;
}

.mini__tilt {
  position: relative;
  display: block;
  width: 36px;
  height: 36px;
  transform: rotateX(-24deg);
  transform-style: preserve-3d;
}

.mini__spin {
  position: absolute;
  inset: 0;
  display: block;
  transform-style: preserve-3d;
  animation: spinY 9s linear infinite;
}

.mf {
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(0, 225, 255, 0.75);
}

.mf--black {
  background-color: rgba(3, 6, 13, 0.95);
}

.mf--grey {
  background-color: rgba(98, 116, 140, 0.45);
}

.mf--white {
  border-color: #AAF6FF;
  background-color: rgba(200, 235, 255, 0.06);
}

/* Cube faces, shared by the main cube and the mini cubes (--hz = half edge) */
.f1 {
  transform: translateZ(var(--hz));
}

.f2 {
  transform: rotateY(180deg) translateZ(var(--hz));
}

.f3 {
  transform: rotateY(90deg) translateZ(var(--hz));
}

.f4 {
  transform: rotateY(-90deg) translateZ(var(--hz));
}

.f5 {
  transform: rotateX(90deg) translateZ(var(--hz));
}

.f6 {
  transform: rotateX(-90deg) translateZ(var(--hz));
}

@keyframes spinY {
  from {
    transform: rotateY(0deg);
  }
  to {
    transform: rotateY(360deg);
  }
}

.box-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 24px;
}

.stage {
  position: relative;
  display: flex;
  flex: 1 1 560px;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 600px;
  border: 1px solid var(--line);
  background-color: rgba(5, 10, 20, 0.7);
  perspective: 1100px;
}

.cube-tilt {
  position: relative;
  width: 260px;
  height: 260px;
  transform: rotateX(-22deg) rotateY(0deg);
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease);
}

.cube {
  --hz: 130px;
  position: absolute;
  left: 0;
  top: 0;
  width: 260px;
  height: 260px;
  transform-style: preserve-3d;
  animation: spinY 22s linear infinite;
}

.face {
  position: absolute;
  left: 0;
  top: 0;
  width: 260px;
  height: 260px;
  overflow: hidden;
  border: 1px solid var(--face-edge);
  background-color: var(--face-bg);
  background-image:
    linear-gradient(rgba(0, 225, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 225, 255, 0.07) 1px, transparent 1px);
  background-size: 26px 26px;
  box-shadow: inset 0 0 60px var(--face-inner);
  transition: background-color 0.7s ease, border-color 0.7s ease, box-shadow 0.7s ease;
}

.face__q {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-disp);
  font-size: 104px;
  font-weight: 800;
  color: rgba(0, 225, 255, 0.16);
  opacity: var(--glyph);
  transition: opacity 0.6s ease;
}

.face__st {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0, 225, 255, 0.13) 0 2px, transparent 2px 10px);
  opacity: var(--stripes);
  transition: opacity 0.6s ease;
}

.face__id {
  position: absolute;
  left: 12px;
  top: 10px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(0, 225, 255, 0.6);
}

.plane {
  position: absolute;
  left: 50px;
  top: 50px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: 160px;
  height: 160px;
  padding: 22px;
  border: 1px solid rgba(0, 225, 255, 0.75);
  background-color: rgba(0, 225, 255, 0.07);
  opacity: var(--core);
  transition: opacity 0.7s ease;
}

.plane--top {
  transform: rotateX(90deg) translateZ(80px);
}

.plane--mid {
  transform: rotateX(90deg) translateZ(0);
}

.plane--bot {
  transform: rotateX(90deg) translateZ(-80px);
}

.plane__label {
  position: absolute;
  left: -1px;
  top: -22px;
  padding: 2px 6px;
  background: var(--cyan);
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--bg);
}

.node {
  border: 1px solid rgba(0, 225, 255, 0.85);
  background-color: rgba(0, 225, 255, 0.2);
  box-shadow: 0 0 12px rgba(0, 225, 255, 0.45);
}

.node--vuln {
  border-color: var(--red);
  background-color: rgba(255, 59, 92, 0.4);
  box-shadow: 0 0 16px rgba(255, 59, 92, 0.85);
  animation: vuln 1.4s ease-in-out infinite;
}

@keyframes vuln {
  50% {
    background-color: rgba(255, 59, 92, 0.12);
    box-shadow: 0 0 4px rgba(255, 59, 92, 0.3);
  }
}

.pillar {
  position: absolute;
  top: 50px;
  width: 2px;
  height: 160px;
  background: linear-gradient(rgba(0, 225, 255, 0.95), rgba(31, 107, 255, 0.35));
  opacity: var(--core);
  transition: opacity 0.7s ease;
}

.pillar--1 {
  left: 50px;
  transform: translateZ(-80px);
}

.pillar--2 {
  left: 50px;
  transform: translateZ(80px);
}

.pillar--3 {
  left: 208px;
  transform: translateZ(-80px);
}

.pillar--4 {
  left: 208px;
  transform: translateZ(80px);
}

.beam {
  position: absolute;
  left: 0;
  top: 0;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(0, 225, 255, 0.6);
  background: radial-gradient(circle, rgba(0, 225, 255, 0.2), transparent 70%);
  opacity: var(--beam);
  transform: rotateX(90deg) translateZ(-125px);
  transition: opacity 0.6s ease;
  animation: beam 4.5s ease-in-out infinite;
}

@keyframes beam {
  0%,
  100% {
    transform: rotateX(90deg) translateZ(-125px);
  }
  50% {
    transform: rotateX(90deg) translateZ(125px);
  }
}

.pad {
  position: absolute;
  left: -90px;
  top: -90px;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, rgba(0, 225, 255, 0.3) 0 1px, transparent 1px 26px);
  -webkit-mask-image: radial-gradient(circle, #000 30%, transparent 70%);
  mask-image: radial-gradient(circle, #000 30%, transparent 70%);
  transform: rotateX(90deg) translateZ(-175px);
}

.box-panel {
  display: flex;
  flex: 1 1 400px;
  flex-direction: column;
  gap: 26px;
  min-width: 0;
  padding: 32px;
  border: 1px solid var(--line);
  background-color: var(--surface);
}

.panel-kicker {
  margin-bottom: 10px;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--cyan);
}

.panel-title {
  margin-bottom: 14px;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--text-strong);
}

.panel-title--lg {
  font-size: 26px;
}

.panel-text {
  max-width: 72ch;
  margin-bottom: 18px;
  font-size: 16px;
  color: var(--text-2);
}

.facts {
  display: grid;
  gap: 12px;
  margin: 0;
  font-size: 15px;
}

.facts dt {
  margin-bottom: 2px;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted-2);
}

.facts dd {
  margin: 0;
  color: var(--text);
}

.panel-label {
  margin-bottom: 12px;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--muted-2);
}

.klist {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kitem {
  --k-color: var(--muted-2);
  --k-bg: transparent;
  --k-text: var(--muted-2);
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid rgba(0, 225, 255, 0.12);
  background-color: var(--k-bg);
  color: var(--k-text);
  font-size: 15px;
  transition: background-color 0.5s ease, color 0.5s ease;
}

#box[data-mode="black"] .kitem[data-black="on"],
#box[data-mode="grey"] .kitem[data-grey="on"],
#box[data-mode="white"] .kitem[data-white="on"] {
  --k-color: var(--cyan);
  --k-bg: rgba(0, 225, 255, 0.1);
  --k-text: var(--text-strong);
}

#box[data-mode="black"] .kitem[data-black="part"],
#box[data-mode="grey"] .kitem[data-grey="part"],
#box[data-mode="white"] .kitem[data-white="part"] {
  --k-color: #7FA8FF;
  --k-bg: rgba(31, 107, 255, 0.1);
  --k-text: var(--text);
}

.kitem__mark {
  flex: none;
  width: 8px;
  height: 8px;
  transform: rotate(45deg);
  background-color: var(--k-color);
  transition: background-color 0.5s ease;
}

.kitem__name {
  flex: 1;
}

.kitem__state {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--k-color);
}

.bars {
  display: grid;
  gap: 14px;
}

.bars .panel-label {
  margin-bottom: 0;
}

.bars__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--text-2);
}

.bars__value {
  color: var(--cyan);
}

.bar {
  position: relative;
  height: 6px;
  overflow: hidden;
  background: rgba(143, 163, 191, 0.16);
}

.bar span {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  transition: width 0.8s var(--ease);
}

.bar--1 span {
  width: var(--bar1);
}

.bar--2 span {
  width: var(--bar2);
}

.bar--3 span {
  width: var(--bar3);
}

/* ---------- Method ---------- */
.steps-wrap {
  position: relative;
}

.track {
  position: absolute;
  left: 28px;
  right: 28px;
  top: 27px;
  height: 1px;
  overflow: hidden;
  background: rgba(0, 225, 255, 0.25);
}

.track::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 20%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  transform: translateX(-100%);
  animation: trackRun 4s linear infinite;
}

/* Transform-only (compositor) animation: from just before the track to just past it. */
@keyframes trackRun {
  to {
    transform: translateX(500%);
  }
}

.steps {
  position: relative;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step__tag {
  margin-top: 14px;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--muted-2);
}

.step__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-strong);
}

.diamond {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 8px;
  border: 1px solid var(--cyan);
  background-color: var(--bg);
  color: var(--cyan);
  transform: rotate(45deg);
  /* The fill flips (no low-contrast half-way frame); only the outer glow fades. */
  animation: stepFill 10s steps(1, end) infinite, stepGlow 10s infinite;
}

.diamond span {
  transform: rotate(-45deg);
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 700;
}

.d-step2 {
  animation-delay: 2s;
}

.d-step3 {
  animation-delay: 4s;
}

.d-step4 {
  animation-delay: 6s;
}

.d-step5 {
  animation-delay: 8s;
}

@keyframes stepFill {
  0%,
  16% {
    background-color: var(--cyan);
    color: var(--bg);
  }
  22%,
  100% {
    background-color: var(--bg);
    color: var(--cyan);
  }
}

@keyframes stepGlow {
  0%,
  16% {
    box-shadow: 0 0 24px rgba(0, 225, 255, 0.7);
  }
  22%,
  100% {
    box-shadow: none;
  }
}

/* ---------- Ecosystem ---------- */
.card--eco {
  gap: 16px;
  padding: 28px;
}

.eco-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 150px;
  margin: -4px -4px 4px;
  border-bottom: 1px solid rgba(0, 225, 255, 0.12);
  color: var(--cyan);
}

.eco-tag {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--cyan);
}

.radar {
  position: relative;
  width: 132px;
  height: 132px;
  overflow: hidden;
  border: 1px solid rgba(0, 225, 255, 0.45);
  border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 21px, rgba(0, 225, 255, 0.2) 21px 22px);
}

.radar::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(0, 225, 255, 0.5), transparent 24%);
  animation: spin2 3.2s linear infinite;
}

@keyframes spin2 {
  to {
    transform: rotate(360deg);
  }
}

.blip {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: blip 3.2s infinite;
}

.blip--1 {
  left: 30%;
  top: 36%;
}

.blip--2 {
  left: 64%;
  top: 58%;
  animation-delay: 1.1s;
}

.blip--3 {
  left: 48%;
  top: 76%;
  animation-delay: 2.2s;
}

@keyframes blip {
  0%,
  100% {
    opacity: 0.15;
  }
  10% {
    opacity: 1;
  }
}

.ipgrid {
  position: relative;
  width: 180px;
  height: 132px;
  overflow: hidden;
  border: 1px solid rgba(0, 225, 255, 0.22);
  background-image: radial-gradient(rgba(0, 225, 255, 0.55) 1.2px, transparent 1.7px);
  background-size: 14px 14px;
}

.scanbar {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 28px;
  border-bottom: 1px solid var(--cyan);
  background: linear-gradient(180deg, transparent, rgba(0, 225, 255, 0.35));
  transform: translateY(-28px);
  animation: scanDown 2.8s linear infinite;
}

@keyframes scanDown {
  to {
    transform: translateY(132px);
  }
}

.graph-edges {
  opacity: 0.55;
}

.pc {
  fill: rgba(0, 225, 255, 0.15);
  animation: pc 3s ease-in-out infinite;
}

.pc--2 {
  animation-delay: 0.6s;
}

.pc--3 {
  animation-delay: 1.2s;
}

.pc--4 {
  animation-delay: 1.8s;
}

.pc--5 {
  animation-delay: 2.4s;
}

@keyframes pc {
  50% {
    fill: var(--cyan);
  }
}

.lab-phone {
  fill: #070D1A;
}

.lab-scan {
  stroke: var(--red);
  animation: labScan 2.4s ease-in-out infinite;
}

@keyframes labScan {
  50% {
    transform: translateY(46px);
  }
}

/* ---------- Insights ---------- */
.card--insight {
  gap: 0;
  padding: 0;
  background-color: rgba(7, 13, 26, 0.9);
}

.insight__media {
  position: relative;
  height: 260px;
  overflow: hidden;
}

.insight__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(3, 6, 13, 0.28) 0 1px, transparent 1px 3px);
}

.insight__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease), filter 0.7s ease;
}

.insight__img--cvss {
  object-position: 50% 38%;
}

.insight__img--threat {
  object-position: 50% 62%;
}

.insight__img--corridor {
  object-position: 50% 60%;
}

@media (hover: hover) {
  .tilt:hover .insight__img {
    transform: scale(1.06);
    filter: saturate(1.25) contrast(1.08);
  }
}

.badge {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 2;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--bg);
}

.badge--red {
  background-color: var(--red);
}

.badge--amber {
  background-color: var(--amber);
}

.badge--cyan {
  background-color: var(--cyan);
}

.insight__body {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 26px 26px 22px;
}

.insight__meta {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted-2);
}

.insight__title {
  font-size: 21px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--text-strong);
}

/* ---------- Audience & differentiators ---------- */
.aud-list {
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.aud-item {
  display: flex;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.aud-item__idx {
  flex: none;
  width: 44px;
  font-size: 13px;
  color: var(--cyan);
}

.aud-item .h3 {
  margin-bottom: 4px;
}

.diff-panel {
  position: relative;
  padding: 40px;
  border: 1px solid rgba(0, 225, 255, 0.22);
  background-color: rgba(7, 13, 26, 0.9);
}

.diff-panel .panel-title {
  margin-bottom: 28px;
}

.diff-list {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.diff-list li {
  display: flex;
  gap: 16px;
}

.diff-list p {
  font-size: 16px;
  color: var(--text-2);
}

.diff-list strong {
  font-weight: 600;
  color: var(--text-strong);
}

.bullet {
  flex: none;
  width: 10px;
  height: 10px;
  margin-top: 8px;
  border: 1px solid var(--cyan);
  transform: rotate(45deg);
}

/* ---------- FAQ ---------- */
#faq .lead {
  max-width: 380px;
  margin-bottom: 28px;
}

.faq-list {
  border-bottom: 1px solid var(--line);
}

.faq {
  border-top: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 44px;
  padding: 22px 4px;
  color: var(--text);
  font-size: 19px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary:hover {
  color: var(--cyan);
}

.plus {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(0, 225, 255, 0.45);
  color: var(--cyan);
  font-family: var(--f-mono);
  font-size: 18px;
  transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.faq[open] .plus {
  transform: rotate(45deg);
  background-color: var(--cyan);
  color: var(--bg);
}

.faq p {
  max-width: 720px;
  margin: 0 4px 26px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-2);
}

/* ---------- Contact ---------- */
.contact {
  overflow: hidden;
  padding: 140px 0;
  border-top: 1px solid rgba(0, 225, 255, 0.2);
}

.contact__glow {
  position: absolute;
  left: 50%;
  top: 40px;
  width: 900px;
  height: 900px;
  margin-left: -450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(31, 107, 255, 0.14), transparent 62%);
  pointer-events: none;
}

.contact .lead {
  max-width: 520px;
  margin-top: 26px;
}

.contact-links {
  display: grid;
  gap: 12px;
  max-width: 440px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  padding: 14px 18px;
  border: 1px solid rgba(0, 225, 255, 0.22);
  background-color: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s ease;
}

a.contact-link:hover {
  border-color: var(--cyan);
  color: var(--text-strong);
}

.contact-link .ico,
.contact-link__ar {
  color: var(--cyan);
}

.contact-link__txt {
  flex: 1;
  min-width: 0;
}

.contact-link__k {
  display: block;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted-2);
}

.contact-link__v {
  display: block;
  font-size: 16px;
  overflow-wrap: anywhere;
}

.form-card {
  position: relative;
  padding: 40px;
  border: 1px solid var(--line-strong);
  background-color: rgba(5, 10, 20, 0.92);
  box-shadow: 0 0 0 1px rgba(0, 225, 255, 0.05), 0 40px 100px rgba(0, 0, 0, 0.5);
}

.form {
  display: grid;
  gap: 20px;
}

.form__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(0, 225, 255, 0.14);
}

.form__title {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--cyan);
}

.form__grid {
  gap: 18px;
}

.lbl {
  display: block;
  margin-bottom: 8px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.fld {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid rgba(0, 225, 255, 0.24);
  border-radius: 0;
  background-color: rgba(3, 6, 13, 0.85);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fld:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 225, 255, 0.2);
}

.fld::placeholder {
  color: var(--dim);
}

.fld option {
  background-color: var(--bg);
  color: var(--text);
}

.fld--area {
  min-height: 120px;
  resize: vertical;
}

.warn {
  padding: 12px 14px;
  border: 1px solid rgba(255, 59, 92, 0.35);
  background-color: rgba(255, 59, 92, 0.07);
  font-size: 12px;
  line-height: 1.7;
  color: #FFB3C0;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.consent input {
  flex: none;
  width: 24px;
  height: 24px;
  margin: 0;
  accent-color: var(--cyan);
}

.consent label {
  font-size: 15px;
  color: var(--text-3);
}

.form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.form-status {
  display: grid;
  gap: 18px;
  padding: 24px 0;
}

.form-error {
  padding: 12px 14px;
  border: 1px solid var(--red);
  background-color: rgba(255, 59, 92, 0.12);
  font-size: 15px;
  color: #FFD1D9;
}

.form[aria-busy="true"] .btn-primary {
  cursor: progress;
  opacity: 0.7;
}

.form-status__k {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--cyan);
}

.form-status .panel-title {
  margin: 0;
  font-size: 28px;
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(0, 225, 255, 0.14);
  background-color: var(--bg-deep);
}

.site-footer > .wrap {
  padding-top: 84px;
  padding-bottom: 40px;
}

.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 48px;
}

.site-footer__brand {
  flex: 1 1 320px;
  max-width: 440px;
}

.site-footer__brand img {
  width: auto;
  height: 48px;
}

.site-footer__brand .text-sm {
  margin-top: 24px;
  font-size: 15px;
  color: var(--muted);
}

.site-footer__tagline {
  margin-top: 18px;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--cyan);
}

.site-footer__nav {
  flex: 2 1 520px;
  gap: 32px;
}

.fh {
  margin-bottom: 16px;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--cyan);
}

.fl {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fl a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--text-3);
  font-size: 15px;
  text-decoration: none;
}

.fl a:hover {
  color: var(--cyan);
}

.outline-txt {
  margin-top: 72px;
  font-size: clamp(40px, 8vw, 120px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(0, 225, 255, 0.28);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 225, 255, 0.12);
  font-size: 14px;
  color: var(--muted-2);
}

.site-footer__bottom .mono {
  font-size: 12px;
}

/* ---------- Global FX overlays ---------- */
.scanlines {
  position: fixed;
  inset: 0;
  z-index: 120;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 3px);
}

.scanlines--local {
  position: absolute;
  z-index: auto;
}

.cursor-trail {
  position: fixed;
  inset: 0;
  z-index: 130;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.cursor-ring,
.cursor-dot,
.cursor-coords {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 140;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cursor-ring {
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
}

.cursor-ring__in {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(0, 225, 255, 0.85);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.cursor-ring__in::before,
.cursor-ring__in::after {
  content: "";
  position: absolute;
  background: var(--cyan);
}

.cursor-ring__in::before {
  left: 50%;
  top: -7px;
  width: 1px;
  height: 7px;
}

.cursor-ring__in::after {
  left: -7px;
  top: 50%;
  width: 7px;
  height: 1px;
}

.cursor-ring[data-state="hot"] .cursor-ring__in {
  transform: scale(1.55) rotate(45deg);
  border-color: var(--red);
}

.cursor-dot {
  z-index: 141;
  width: 4px;
  height: 4px;
  margin: -2px 0 0 -2px;
  background: var(--cyan);
}

.cursor-coords {
  z-index: 141;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(0, 225, 255, 0.8);
  white-space: nowrap;
}

.boot {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  background-color: var(--bg);
  animation: bootOut 1.5s ease forwards;
}

@keyframes bootOut {
  0%,
  78% {
    opacity: 1;
    visibility: visible;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

.boot__log {
  width: 560px;
  max-width: 88%;
  font-size: 13px;
  line-height: 2;
  color: var(--muted-2);
}

.boot__l {
  opacity: 0;
  animation: bootLine 0.2s ease forwards;
}

.boot__l--head {
  color: var(--cyan);
}

.boot__l:nth-child(1) {
  animation-delay: 0.05s;
}

.boot__l:nth-child(2) {
  animation-delay: 0.3s;
}

.boot__l:nth-child(3) {
  animation-delay: 0.55s;
}

.boot__l:nth-child(4) {
  animation-delay: 0.8s;
}

@keyframes bootLine {
  to {
    opacity: 1;
  }
}

.boot__bar {
  height: 2px;
  margin-top: 14px;
  overflow: hidden;
  background: rgba(0, 225, 255, 0.15);
}

.boot__bar span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: 0 50%;
  animation: bootBar 1.1s ease forwards;
}

@keyframes bootBar {
  to {
    transform: scaleX(1);
  }
}

/* ---------- Scroll-driven effects (progressive enhancement) ---------- */
@keyframes rvIn {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes parY {
  from {
    transform: translateY(-7%);
  }
  to {
    transform: translateY(7%);
  }
}

@keyframes progress {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@supports (animation-timeline: view()) {
  .rv {
    animation: rvIn linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 26%;
  }

  .par {
    animation: parY linear both;
    animation-timeline: view();
    animation-range: cover 0% cover 100%;
  }

  .progress {
    animation: progress linear both;
    animation-timeline: scroll(root);
  }
}

/* Bands scrolled out of view pause their loops (offscreen.js); scroll-driven
   reveals and parallax keep following their own timeline. */
.is-offscreen,
.is-offscreen::before,
.is-offscreen::after,
.is-offscreen :not(.rv, .par),
.is-offscreen :not(.rv, .par)::before,
.is-offscreen :not(.rv, .par)::after {
  animation-play-state: paused !important;
}

/* ---------- Effects off (toggle or reduced-motion preference) ---------- */
.fx-off .boot,
.fx-off .cursor-fx,
.fx-off .scanlines,
.fx-off .glitch::before,
.fx-off .glitch::after {
  display: none;
}

.fx-off .intro,
.fx-off .gl-soft,
.fx-off .ticker__track,
.fx-off .floor,
.fx-off .float-mark,
.fx-off .caret,
.fx-off .pipe,
.fx-off .live-dot,
.fx-off .vdot,
.fx-off .node--vuln,
.fx-off .beam,
.fx-off .diamond,
.fx-off .track::after,
.fx-off .radar::before,
.fx-off .blip,
.fx-off .scanbar,
.fx-off .pc,
.fx-off .lab-scan,
.fx-off .rv,
.fx-off .par {
  animation: none;
}

.fx-off .cube {
  animation: none;
  transform: rotateY(-32deg);
}

.fx-off .mini__spin {
  animation: none;
  transform: rotateY(-35deg);
}

.fx-off .tilt {
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .nav {
    order: 3;
    flex-basis: 100%;
    justify-content: flex-start;
  }
}

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

  /* Three modes side by side read as one choice; two plus an orphan do not. */
  .box-select.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .track {
    display: none;
  }
}

@media (max-width: 720px) {
  :root {
    --gutter: 16px;
  }

  .hide-sm {
    display: none;
  }

  .sec,
  .sec--tight,
  .diag,
  .contact {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  /* The phone header wraps into two rows; land section headings below it. */
  main section[id] {
    scroll-margin-top: 100px;
  }

  /* Typed words get their own row, so the chip keeps one height while they change. */
  .term-chip__out {
    flex-basis: 100%;
  }

  .site-header__inner {
    gap: 4px 12px;
    padding-top: 10px;
    padding-bottom: 4px;
  }

  .brand img {
    height: 32px;
  }

  .header-actions {
    gap: 8px;
  }

  .site-header .btn {
    min-height: 44px;
    padding: 0 14px;
    font-size: 12px;
  }

  .nav {
    order: 3;
    flex-basis: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0 22px;
    overflow-x: auto;
    scrollbar-width: none;
    /* Fade the cut edge so the strip reads as scrollable; the end padding lets the last link clear it. */
    padding-right: 28px;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
  }

  .hero {
    min-height: 0;
  }

  .hero__inner {
    padding-top: 40px;
    padding-bottom: 24px;
  }

  .eyebrow {
    margin-bottom: 16px;
  }

  .term-chip {
    margin-bottom: 22px;
  }

  .hero__lead {
    margin-top: 22px;
    font-size: 17px;
  }

  .hero__ctas {
    margin-top: 28px;
  }

  .hero__visual {
    height: 380px;
  }

  /* In the flow below the globe: as an overlay it ran into it once it wrapped. */
  .pipeline-bar {
    position: relative;
    bottom: auto;
    padding-bottom: 32px;
  }

  .stage {
    height: 440px;
  }

  /* `scale` composes with the pointer-driven `transform` instead of replacing it. */
  .cube-tilt {
    scale: 0.68;
  }

  .diag__media {
    width: 100%;
    opacity: 0.45;
  }

  .card,
  .card--feature,
  .box-panel,
  .diff-panel,
  .form-card {
    padding: 24px;
  }

  .faq summary {
    font-size: 17px;
  }
}

/* Phones: keep the logo and both header actions on one row (two-row header). */
@media (max-width: 460px) {
  /* Icon-only toggle; the label stays as the accessible name. */
  .fx-toggle {
    padding: 0 12px;
  }

  .fx-toggle__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

@media (max-width: 420px) {
  .site-header__inner {
    column-gap: 10px;
  }

  .header-actions {
    gap: 6px;
  }

  .site-header .btn {
    padding: 0 10px;
    letter-spacing: 0.02em;
  }
}

@media (max-width: 380px) {
  .brand img {
    height: 28px;
  }

  /* Name, then status under it: side by side they outgrew the Box panel at 280px. */
  .kitem {
    flex-wrap: wrap;
    row-gap: 2px;
  }

  .kitem__name {
    flex-basis: calc(100% - 20px);
  }

  .kitem__state {
    margin-left: 20px;
  }
}

/* Below 360px only "Avaliação" shows; the full label stays the accessible name. */
@media (max-width: 359px) {
  .btn__extra {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

@media (max-width: 300px) {
  .brand img {
    height: 24px;
  }
}

@media (max-width: 560px) {
  .grid-2,
  .grid-3,
  .grid-4,
  .grid-5,
  .box-select.grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .span-2 {
    grid-column: auto;
  }
}

/* Three narrow mode buttons: icon above the text, so names and descriptions get the full width. */
@media (min-width: 561px) and (max-width: 899px) {
  .box-select .sel {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
  }
}

/* Tablets: the globe sits beside the copy from 900px instead of leaving a gap below it. */
@media (min-width: 721px) and (max-width: 899px) {
  .hero__visual {
    height: 480px;
  }
}

@media (min-width: 900px) and (max-width: 1199px) {
  .hero__copy {
    flex: 1 1 0;
  }

  .hero__visual {
    flex: 0 0 36%;
    height: 540px;
  }
}

/* Laptops and landscape tablets (most have under 860px of viewport): tighter hero so its CTA shows. */
@media (min-width: 721px) and (max-height: 860px) {
  .hero__inner {
    padding-top: 48px;
  }

  /* Small enough for each sentence of the title to stay on one line beside the globe. */
  .hero__title {
    font-size: clamp(34px, 3.6vw, 50px);
  }

  .eyebrow {
    margin-bottom: 16px;
  }

  .term-chip {
    margin-bottom: 22px;
  }

  .hero__lead {
    margin-top: 20px;
  }

  .hero__ctas {
    margin-top: 28px;
  }
}

/* ...and a narrower globe, so each sentence of the title fits on one line. */
@media (min-width: 1200px) and (max-height: 860px) {
  .hero__visual {
    flex: 0 1 440px;
    height: 520px;
  }
}

/* Short screens (phones in landscape, small windows): one compact header row. */
@media (max-height: 500px) and (min-width: 561px) {
  .site-header__inner {
    flex-wrap: nowrap;
    column-gap: 16px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .brand img {
    height: 28px;
  }

  .nav {
    order: 0;
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0 20px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-right: 28px;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
  }

  .header-actions {
    gap: 6px;
    margin-left: 0;
  }

  .fx-toggle {
    padding: 0 12px;
  }

  .fx-toggle__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .site-header .btn {
    padding: 0 12px;
    letter-spacing: 0.02em;
  }

  main section[id] {
    scroll-margin-top: 72px;
  }

  .hero__inner {
    padding-top: 28px;
  }

  .hero__visual {
    height: 300px;
  }
}

/* Very short and narrow (e.g. 400% zoom): a sticky header would cover half the screen. */
@media (max-height: 500px) and (max-width: 560px) {
  .site-header {
    position: relative;
  }

  main section[id] {
    scroll-margin-top: 16px;
  }
}

/* Large monitors: a wider column and larger headings instead of a small island. */
@media (min-width: 2200px) {
  :root {
    --wrap: 1520px;
  }

  .hero__title {
    font-size: 74px;
  }

  .hero__lead {
    max-width: 680px;
    font-size: 21px;
  }

  .h2 {
    max-width: 940px;
    font-size: 50px;
  }

  .h2--xl {
    font-size: 60px;
  }
}

/* Long-form legal pages (privacidade, cookies, termos). Shares the dark
   tokens but trades the cyberpunk flourishes for readable prose. */
.legal {
  padding: 140px 0 80px;
}

.legal__header {
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.legal__header .kicker {
  color: var(--cyan);
}

.legal__title {
  margin: 8px 0 12px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
}

.legal__meta {
  color: var(--muted);
  font-size: 14px;
}

.legal__body {
  max-width: 760px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-2);
}

.legal__body h2 {
  margin: 48px 0 12px;
  color: var(--text-strong);
  font-family: var(--f-disp);
  font-size: 24px;
  letter-spacing: -0.01em;
}

.legal__body h3 {
  margin: 28px 0 8px;
  color: var(--text);
  font-size: 18px;
}

.legal__body p {
  margin: 0 0 14px;
}

.legal__body ul,
.legal__body ol {
  margin: 0 0 18px;
  padding-left: 22px;
}

.legal__body li {
  margin-bottom: 6px;
}

.legal__body a {
  color: var(--cyan);
  text-underline-offset: 3px;
}

.legal__body strong {
  color: var(--text-strong);
}

.legal__back {
  display: inline-flex;
  gap: 8px;
  margin-top: 40px;
  color: var(--cyan);
  font-family: var(--f-mono);
  font-size: 14px;
  text-decoration: none;
}

.legal__back:hover {
  color: var(--cyan-soft);
}

/* Windows High Contrast and other forced palettes drop fills: keep buttons and the chosen mode recognizable. */
@media (forced-colors: active) {
  .btn {
    border: 2px solid ButtonText;
  }

  .sel[aria-pressed="true"] {
    outline: 3px solid Highlight;
    outline-offset: -3px;
  }
}

@media print {
  .boot,
  .cursor-fx,
  .scanlines,
  .site-header {
    display: none;
  }

  .rv,
  .par,
  .intro {
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .boot,
  .cursor-fx {
    display: none;
  }

  .rv,
  .par {
    animation: none !important;
  }
}
