/* =========================================================================
   ELLEMENTAR TECHNOLOGY — Cinematic Landing
   Design system + scroll-narrative stage
   Paleta amostrada dos ativos oficiais da marca (logo vetor + banners)
   ========================================================================= */

/* ---------- Fonts (self-hosted, sem CDN em runtime) ---------- */
@font-face {
  font-family: 'Inter var';
  src: url('../fonts/inter-var.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter Tight var';
  src: url('../fonts/inter-tight-var.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Brand — amostrado de Logo-Vetor-Oficial.png e dos banners institucionais */
  --brand-600: #0078b4;
  --brand-500: #0090cc;
  --brand-400: #00a8e0;
  --cyan-400: #00c2ff;
  --cyan-300: #62dcff;
  --deep-900: #071a3a;

  /* Neutros — grafite profundo */
  --ink: #04060a;
  --graphite-900: #080b11;
  --graphite-800: #0d1118;
  --graphite-700: #131924;
  --graphite-600: #1b2230;

  --white: #ffffff;
  --text: rgba(255, 255, 255, 0.92);
  --text-soft: rgba(255, 255, 255, 0.64);
  --text-dim: rgba(255, 255, 255, 0.44);
  --text-faint: rgba(255, 255, 255, 0.28);

  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --glass: rgba(12, 16, 23, 0.62);

  /* Tipografia */
  --font-display: 'Inter Tight var', 'Inter var', -apple-system, BlinkMacSystemFont,
    'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-body: 'Inter var', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Helvetica, Arial, sans-serif;

  --step--1: clamp(0.8rem, 0.77rem + 0.15vw, 0.875rem);
  --step-0: clamp(0.95rem, 0.9rem + 0.22vw, 1.0625rem);
  --step-1: clamp(1.1rem, 1rem + 0.5vw, 1.375rem);
  --step-2: clamp(1.35rem, 1.15rem + 1vw, 1.9rem);
  --step-3: clamp(1.8rem, 1.35rem + 2.2vw, 3rem);
  --step-4: clamp(2.3rem, 1.5rem + 4vw, 4.6rem);
  --step-5: clamp(2.9rem, 1.5rem + 6.4vw, 7.4rem);

  /* Ritmo */
  --gutter: clamp(1.25rem, 4vw, 4.5rem);
  --shell: 1280px;
  --radius: 2px;
  --radius-lg: 4px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);

  --header-h: 76px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  font-weight: 380;
  letter-spacing: 0.004em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}
img,
picture,
canvas,
svg {
  display: block;
  max-width: 100%;
}
button {
  font: inherit;
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
:focus-visible {
  outline: 2px solid var(--cyan-400);
  outline-offset: 3px;
  border-radius: var(--radius);
}
::selection {
  background: var(--brand-600);
  color: #fff;
}

/* ---------- Lenis ---------- */
html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}

/* =========================================================================
   PRELOADER
   ========================================================================= */
.boot {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: var(--ink);
  transition: opacity 0.9s var(--ease-out), visibility 0.9s;
}
.boot[hidden] {
  display: grid; /* mantém para animar; JS usa .is-done */
}
.boot.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.boot__inner {
  display: grid;
  gap: 1.75rem;
  justify-items: center;
  width: min(320px, 72vw);
}
.boot__mark {
  width: 42px;
  height: 42px;
  position: relative;
}
.boot__mark span {
  position: absolute;
  inset: 0;
  border: 1px solid var(--line-strong);
}
.boot__mark span:nth-child(1) {
  animation: bootSpin 2.4s var(--ease-inout) infinite;
}
.boot__mark span:nth-child(2) {
  border-color: rgba(0, 194, 255, 0.5);
  animation: bootSpin 2.4s var(--ease-inout) infinite reverse;
}
@keyframes bootSpin {
  0% {
    transform: rotate(0) scale(1);
  }
  50% {
    transform: rotate(135deg) scale(0.62);
  }
  100% {
    transform: rotate(270deg) scale(1);
  }
}
.boot__bar {
  width: 100%;
  height: 1px;
  background: var(--line);
  overflow: hidden;
}
.boot__bar i {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--brand-600), var(--cyan-400));
  transition: width 0.4s var(--ease-out);
}
.boot__label {
  font-size: 0.6875rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* =========================================================================
   CINEMATIC STAGE — camada fixa de plates 4K
   ========================================================================= */
.stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--ink);
  contain: strict;
}
.stage__plate {
  position: absolute;
  inset: -6%;
  opacity: 0;
  will-change: opacity, transform;
  transform: scale(1.06);
}
.stage__plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.92) contrast(1.04) hue-rotate(-8deg) brightness(0.86);
}
/* primeiro plate visível sem JS */
.stage__plate[data-plate='hero-a'] {
  opacity: 1;
}

.stage__fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
/* vinheta + gradientes de leitura */
.stage__fx--vignette {
  background:
    radial-gradient(120% 90% at 50% 42%, transparent 30%, rgba(4, 6, 10, 0.72) 100%),
    linear-gradient(180deg, rgba(4, 6, 10, 0.88) 0%, rgba(4, 6, 10, 0.18) 26%,
      rgba(4, 6, 10, 0.28) 62%, rgba(4, 6, 10, 0.92) 100%);
}
.stage__fx--tint {
  background: linear-gradient(
    118deg,
    rgba(0, 120, 180, 0.13) 0%,
    transparent 42%,
    transparent 62%,
    rgba(0, 194, 255, 0.09) 100%
  );
  mix-blend-mode: screen;
}
#fxCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
  mix-blend-mode: screen;
}
/* grain */
.stage__fx--grain {
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 7s steps(6) infinite;
}
@keyframes grainShift {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-2%, 1%); }
  40% { transform: translate(1%, -2%); }
  60% { transform: translate(-1%, -1%); }
  80% { transform: translate(2%, 2%); }
}

/* =========================================================================
   HEADER
   ========================================================================= */
.hdr {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  height: var(--header-h);
  display: flex;
  align-items: center;
  padding: 0 var(--gutter);
  transition: background 0.5s var(--ease-out), border-color 0.5s var(--ease-out),
    backdrop-filter 0.5s;
  border-bottom: 1px solid transparent;
}
.hdr.is-solid {
  background: rgba(6, 9, 14, 0.72);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom-color: var(--line);
}
.hdr__in {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 3rem);
}
.hdr__logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}
.hdr__logo img {
  height: 30px;
  width: auto;
}
.hdr__nav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2vw, 2rem);
  margin-left: auto;
}
.hdr__nav a {
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: var(--text-soft);
  padding: 0.4rem 0;
  position: relative;
  transition: color 0.3s var(--ease-out);
}
.hdr__nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 0;
  background: var(--cyan-400);
  transition: width 0.4s var(--ease-out);
}
.hdr__nav a:hover,
.hdr__nav a.is-active {
  color: var(--white);
}
.hdr__nav a:hover::after,
.hdr__nav a.is-active::after {
  width: 100%;
}
.hdr__cta {
  margin-left: 0.5rem;
}
.hdr__burger {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  background: none;
  border: 1px solid var(--line-strong);
  cursor: pointer;
  position: relative;
}
.hdr__burger i {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1px;
  background: var(--white);
  transition: transform 0.4s var(--ease-out), opacity 0.3s;
}
.hdr__burger i:nth-child(1) { top: 15px; }
.hdr__burger i:nth-child(2) { top: 20px; }
.hdr__burger i:nth-child(3) { top: 25px; }
.hdr__burger.is-open i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.hdr__burger.is-open i:nth-child(2) { opacity: 0; }
.hdr__burger.is-open i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* Drawer mobile */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 85;
  background: rgba(4, 6, 10, 0.96);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  display: grid;
  align-content: center;
  padding: var(--header-h) var(--gutter) var(--gutter);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease-out), visibility 0.45s;
}
.drawer.is-open {
  opacity: 1;
  visibility: visible;
}
.drawer ul {
  display: grid;
  gap: 0.25rem;
  max-width: var(--shell);
  margin: 0 auto;
  width: 100%;
}
.drawer a {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 6vw, 2.4rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-soft);
}
.drawer a:hover { color: var(--white); }

/* =========================================================================
   BOTÕES
   ========================================================================= */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--white);
  --btn-bd: var(--line-strong);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.82rem 1.5rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.4s var(--ease-out), border-color 0.4s var(--ease-out),
    transform 0.4s var(--ease-out);
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, var(--brand-600), var(--cyan-400));
  transform: translateY(101%);
  transition: transform 0.5s var(--ease-out);
}
.btn:hover {
  border-color: transparent;
  color: #041018;
}
.btn:hover::before {
  transform: translateY(0);
}
.btn:active {
  transform: scale(0.985);
}
.btn--primary {
  --btn-bd: transparent;
  color: #041018;
}
.btn--primary::before {
  transform: translateY(0);
}
.btn--primary:hover::before {
  filter: brightness(1.14);
}
.btn--ghost {
  padding-left: 0;
  padding-right: 0;
  border: 0;
  color: var(--text-soft);
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 0.9rem;
}
.btn--ghost::before { display: none; }
.btn--ghost .btn__ar {
  transition: transform 0.4s var(--ease-out);
}
.btn--ghost:hover {
  color: var(--white);
}
.btn--ghost:hover .btn__ar {
  transform: translateX(5px);
}
.btn__ar {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

/* =========================================================================
   SHELL DE CONTEÚDO
   ========================================================================= */
.flow {
  position: relative;
  z-index: 10;
}
.act {
  position: relative;
  padding: clamp(6rem, 16vh, 12rem) var(--gutter);
  min-height: 100svh;
  display: flex;
  align-items: center;
}
.act__in {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
}

/* Atos longos: o texto fica preso na tela enquanto o plano de fundo avança.
   É isso que dá a sensação de câmera atravessando a cena — e evita os
   vazios que apareceriam se o conteúdo ficasse solto no meio da seção. */
.act--tall {
  display: block;
  min-height: 210vh;
  padding-top: 0;
  padding-bottom: 0;
}
.act--tall > .act__in {
  position: sticky;
  top: calc(var(--header-h) + 7vh);
  padding-block: clamp(1rem, 4vh, 3rem) clamp(3rem, 10vh, 7rem);
}
.act--center {
  justify-content: center;
  text-align: center;
}
.act--center .act__in {
  display: grid;
  justify-items: center;
}

/* Painel de vidro para blocos densos */
.pane {
  background: linear-gradient(
    155deg,
    rgba(14, 19, 27, 0.72),
    rgba(8, 11, 17, 0.58)
  );
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  padding: clamp(1.5rem, 3.4vw, 3rem);
}

/* =========================================================================
   TIPOGRAFIA EDITORIAL
   ========================================================================= */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--cyan-300);
  margin-bottom: 1.75rem;
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.eyebrow--center::before { display: none; }

.display {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: var(--step-5);
  line-height: 0.94;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.display strong {
  font-weight: 500;
  background: linear-gradient(100deg, #fff 10%, var(--cyan-300) 55%, var(--brand-400) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
h2.title,
.title {
  font-family: var(--font-display);
  font-weight: 250;
  font-size: var(--step-4);
  line-height: 1.02;
  letter-spacing: -0.032em;
  text-wrap: balance;
}
.title strong {
  font-weight: 500;
  color: var(--white);
}
h3.sub,
.sub {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--step-2);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.lede {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--text-soft);
  font-weight: 300;
  max-width: 46ch;
  text-wrap: pretty;
}
.body {
  color: var(--text-soft);
  max-width: 62ch;
  text-wrap: pretty;
}
.body + .body {
  margin-top: 1.1em;
}
.measure-wide {
  max-width: 74ch;
}
.mono {
  font-family: ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, Consolas, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}

/* Marcador de texto provisório (lorem ipsum) */
[data-placeholder] {
  position: relative;
}
body.show-todo [data-placeholder] {
  background: linear-gradient(
    transparent 0 calc(100% - 2px),
    rgba(255, 176, 0, 0.55) calc(100% - 2px)
  );
}
body.show-todo [data-placeholder]::after {
  content: 'texto provisório';
  position: absolute;
  top: -0.4em;
  right: -0.2em;
  transform: translateY(-100%);
  font-size: 0.5625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffb000;
  background: rgba(28, 20, 0, 0.9);
  border: 1px solid rgba(255, 176, 0, 0.4);
  padding: 0.15rem 0.4rem;
  white-space: nowrap;
  pointer-events: none;
}
.todo-toggle {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 95;
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.5rem 0.75rem;
  background: rgba(8, 11, 17, 0.86);
  border: 1px solid var(--line-strong);
  color: var(--text-dim);
  cursor: pointer;
  backdrop-filter: blur(10px);
}
.todo-toggle:hover { color: var(--white); border-color: var(--cyan-400); }
body.show-todo .todo-toggle { color: #ffb000; border-color: rgba(255, 176, 0, 0.5); }

/* =========================================================================
   HERO
   ========================================================================= */
.hero {
  min-height: 100svh;
  display: grid;
  align-content: center;
  padding: calc(var(--header-h) + 4rem) var(--gutter) 7rem;
  position: relative;
}
.hero__in {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
}
.hero__title {
  max-width: 20ch;
}
.hero__lede {
  margin-top: 2.25rem;
  max-width: 48ch;
}
.hero__actions {
  margin-top: 2.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.25rem;
  align-items: center;
}
.hero__meta {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  align-items: flex-end;
  justify-content: space-between;
  max-width: var(--shell);
  margin: 0 auto;
}
.hero__scroll {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.625rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.hero__scroll i {
  width: 1px;
  height: 44px;
  background: linear-gradient(var(--cyan-400), transparent);
  position: relative;
  overflow: hidden;
}
.hero__scroll i::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--cyan-400);
  animation: scrollHint 2.1s var(--ease-inout) infinite;
}
@keyframes scrollHint {
  0% { transform: translateY(-100%); }
  60%, 100% { transform: translateY(100%); }
}
.hero__stat {
  display: grid;
  gap: 0.3rem;
}
.hero__stat dt {
  font-size: 0.625rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.hero__stat dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--text-soft);
}

/* =========================================================================
   RAIL DE CAPÍTULOS
   ========================================================================= */
.rail {
  position: fixed;
  right: max(1rem, 2vw);
  top: 50%;
  transform: translateY(-50%);
  z-index: 80;
  display: grid;
  gap: 0.85rem;
}
.rail a {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
  color: var(--text-faint);
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.rail span {
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
  white-space: nowrap;
}
.rail i {
  width: 18px;
  height: 1px;
  background: currentColor;
  flex: 0 0 auto;
  transition: width 0.35s var(--ease-out), background 0.35s var(--ease-out);
}
.rail a:hover,
.rail a.is-active {
  color: var(--white);
}
.rail a:hover span,
.rail a.is-active span {
  opacity: 1;
  transform: translateX(0);
}
.rail a.is-active i {
  width: 34px;
  background: var(--cyan-400);
}

/* Progresso topo */
.prog {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 92;
  background: transparent;
}
.prog i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--brand-600), var(--cyan-400));
  box-shadow: 0 0 12px rgba(0, 194, 255, 0.6);
}

/* =========================================================================
   GRIDS DE CONTEÚDO
   ========================================================================= */
.split {
  display: grid;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1.05fr 1fr; }
  .split--reverse > :first-child { order: 2; }
}

.cards {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
}
@media (min-width: 720px) {
  .cards--2 { grid-template-columns: repeat(2, 1fr); }
  .cards--3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1080px) {
  .cards--4 { grid-template-columns: repeat(4, 1fr); }
}
.card {
  position: relative;
  padding: clamp(1.6rem, 3vw, 2.5rem);
  background: linear-gradient(160deg, rgba(13, 17, 24, 0.78), rgba(7, 10, 15, 0.62));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.5s var(--ease-out);
  overflow: hidden;
}
.card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    460px circle at var(--mx, 50%) var(--my, 0%),
    rgba(0, 168, 224, 0.16),
    transparent 62%
  );
  opacity: 0;
  transition: opacity 0.45s var(--ease-out);
  pointer-events: none;
}
.card:hover::after { opacity: 1; }
.card__idx {
  font-family: ui-monospace, monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  color: var(--cyan-300);
  display: block;
  margin-bottom: 1.4rem;
}
.card__t {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 450;
  letter-spacing: -0.018em;
  line-height: 1.24;
  margin-bottom: 0.7rem;
}
.card__d {
  font-size: 0.9375rem;
  color: var(--text-soft);
  line-height: 1.6;
}
.card__tag {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.5625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan-300);
  border: 1px solid rgba(0, 194, 255, 0.32);
  padding: 0.2rem 0.5rem;
}
.card__ico {
  width: 26px;
  height: 26px;
  margin-bottom: 1.3rem;
  stroke: var(--cyan-300);
  stroke-width: 1.2;
  fill: none;
}

/* Métricas / benefícios */
.metrics {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  margin-top: clamp(2.5rem, 6vw, 4rem);
}
@media (min-width: 640px) { .metrics { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .metrics { grid-template-columns: repeat(4, 1fr); } }
.metric {
  border-top: 1px solid var(--line-strong);
  padding-top: 1.4rem;
}
.metric__v {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 200;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(120deg, #fff, var(--cyan-300));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.metric__l {
  margin-top: 0.7rem;
  font-size: 0.875rem;
  color: var(--text-dim);
}

/* Processo */
.steps {
  counter-reset: st;
  display: grid;
  gap: 1px;
  margin-top: clamp(2.5rem, 6vw, 4rem);
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.step {
  counter-increment: st;
  display: grid;
  gap: 0.5rem 2.5rem;
  padding: clamp(1.5rem, 3vw, 2.25rem) 0;
  background: rgba(6, 9, 14, 0.5);
  position: relative;
}
@media (min-width: 860px) {
  .step {
    grid-template-columns: 88px minmax(0, 22ch) minmax(0, 1fr);
    align-items: baseline;
  }
}
.step::before {
  content: '0' counter(st);
  font-family: ui-monospace, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--cyan-300);
}
.step__t {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 400;
  letter-spacing: -0.018em;
}
.step__d {
  color: var(--text-soft);
  font-size: 0.9375rem;
}

/* Diferenciais — lista editorial */
.diffs {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  display: grid;
  gap: 0;
}
.diff {
  display: grid;
  gap: 0.6rem 2rem;
  padding: clamp(1.4rem, 3vw, 2rem) 0;
  border-top: 1px solid var(--line);
}
.diff:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 860px) {
  .diff { grid-template-columns: minmax(0, 26ch) minmax(0, 1fr); align-items: baseline; }
}
.diff__t {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 300;
  letter-spacing: -0.024em;
  line-height: 1.14;
}
.diff__d { color: var(--text-soft); font-size: 0.9375rem; }

/* Tecnologias aplicadas */
.tech {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  justify-content: center;
}
.tech img {
  height: clamp(20px, 3.2vw, 30px);
  width: auto;
  opacity: 0.42;
  filter: grayscale(1) brightness(2.2);
  transition: opacity 0.4s var(--ease-out), filter 0.4s var(--ease-out);
}
.tech img:hover {
  opacity: 0.95;
  filter: grayscale(0) brightness(1);
}

/* FAQ */
.faq {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.25rem, 2.6vw, 1.9rem) 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 350;
  letter-spacing: -0.016em;
  color: var(--text);
  transition: color 0.3s var(--ease-out);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--cyan-300); }
.faq summary i {
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  position: relative;
  margin-top: 0.5em;
}
.faq summary i::before,
.faq summary i::after {
  content: '';
  position: absolute;
  background: currentColor;
  transition: transform 0.4s var(--ease-out), opacity 0.3s;
}
.faq summary i::before { inset: 6px 0 6px 0; height: 1px; }
.faq summary i::after { inset: 0 6px 0 6px; width: 1px; }
.faq details[open] summary i::after { transform: scaleY(0); opacity: 0; }
.faq__a {
  padding: 0 0 clamp(1.25rem, 2.6vw, 1.9rem);
  color: var(--text-soft);
  max-width: 72ch;
  font-size: 0.9375rem;
}

/* CTA final */
.cta {
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 2rem;
}
.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.cta__contact {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem clamp(2rem, 5vw, 4rem);
  justify-content: center;
  font-size: 0.875rem;
  color: var(--text-dim);
}
.cta__contact a:hover { color: var(--cyan-300); }

/* =========================================================================
   FOOTER
   ========================================================================= */
.ftr {
  position: relative;
  z-index: 10;
  /* opaco de propósito: encerra a experiência e devolve o chão ao visitante */
  background: var(--ink);
  border-top: 1px solid var(--line);
  padding: clamp(3.5rem, 8vw, 6rem) var(--gutter) 2rem;
}
/* transição do palco para o rodapé */
.ftr::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: clamp(120px, 22vh, 260px);
  background: linear-gradient(180deg, transparent, var(--ink));
  pointer-events: none;
}
.ftr__in {
  max-width: var(--shell);
  margin: 0 auto;
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
}
@media (min-width: 900px) {
  .ftr__grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, minmax(0, 0.85fr));
    gap: clamp(2rem, 4vw, 4rem);
  }
}
.ftr__brand img { height: 30px; margin-bottom: 1.5rem; }
.ftr__brand p { color: var(--text-dim); font-size: 0.9375rem; max-width: 38ch; }
.ftr h4 {
  font-size: 0.625rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 1.25rem;
  font-weight: 500;
}
.ftr li + li { margin-top: 0.6rem; }
.ftr li a,
.ftr address {
  font-size: 0.9375rem;
  color: var(--text-soft);
  font-style: normal;
  line-height: 1.7;
  transition: color 0.3s var(--ease-out);
}
.ftr li a:hover { color: var(--cyan-300); }
.ftr__base {
  border-top: 1px solid var(--line);
  padding-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-faint);
}

/* =========================================================================
   REVEALS (base sem JS = visível)
   ========================================================================= */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
}
.js [data-reveal-line] > * {
  opacity: 0;
  transform: translateY(30px);
}

/* =========================================================================
   RESPONSIVO
   ========================================================================= */
@media (max-width: 1180px) {
  .rail { display: none; }
}
@media (max-width: 860px) {
  .hdr__nav { display: none; }
  .hdr__burger { display: block; }
  .act { min-height: auto; padding-block: clamp(4.5rem, 12vh, 7rem); }
  /* no celular o sticky briga com a altura da barra do navegador:
     o conteúdo volta ao fluxo normal e o palco fica só como atmosfera */
  .act--tall {
    min-height: auto;
    padding-block: clamp(4.5rem, 12vh, 7rem);
  }
  .act--tall > .act__in {
    position: static;
    padding-block: 0;
  }
  .hero__meta { position: static; margin-top: 3.5rem; }
  .stage__plate { inset: -3%; }
}
@media (max-width: 520px) {
  :root { --header-h: 64px; }
  .hdr__logo img { height: 24px; }
}

/* =========================================================================
   ACESSIBILIDADE / MOVIMENTO REDUZIDO
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js [data-reveal],
  .js [data-reveal-line] > * {
    opacity: 1 !important;
    transform: none !important;
  }
  #fxCanvas,
  .stage__fx--grain { display: none; }
}
body.reduced .stage__plate { transform: none !important; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 300;
  transform: translateY(-120%);
  background: var(--cyan-400);
  color: #041018;
  padding: 0.7rem 1.1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  transition: transform 0.3s var(--ease-out);
}
.skip:focus { transform: translateY(0); }

/* Print */
@media print {
  .stage, .rail, .prog, .hdr, .boot, .todo-toggle { display: none !important; }
  body { background: #fff; color: #000; }
}
