/* =========================================================
   aaldeiaDev — dev.aaldeia.com.br
   Identidade: #2E2F30 / #FF9408 / #FFFBF8
   Títulos: Hyperspace Race · Textos: Manrope · HUD: Space Mono
   ========================================================= */

/* ---- Hyperspace Race -------------------------------------
   Fonte licenciada da identidade (não está no Google Fonts).
   Hoje o site usa Manrope 800 como fallback nos títulos.

   PARA ATIVAR: coloque os .woff2/.woff em assets/fonts/ com os
   nomes abaixo e REMOVA os comentários deste bloco.
   Instruções completas em assets/fonts/LEIA-ME.txt
----------------------------------------------------------- */
/*
@font-face {
  font-family: 'Hyperspace Race';
  src: url('../fonts/HyperspaceRace-Bold.woff2') format('woff2'),
       url('../fonts/HyperspaceRace-Bold.woff') format('woff');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Hyperspace Race';
  src: url('../fonts/HyperspaceRace-Medium.woff2') format('woff2'),
       url('../fonts/HyperspaceRace-Medium.woff') format('woff');
  font-weight: 500; font-style: normal; font-display: swap;
}
*/

:root {
  --ink:        #2E2F30;
  --ink-deep:   #1C1D1E;
  --ink-soft:   #3B3D3E;
  --orange:     #FF9408;
  --orange-dim: #D97D00;
  --cream:      #FFFBF8;
  --cream-2:    #F4EDE7;
  --cyan:       #4DE2FF;   /* usado só nos glitches (o vídeo é azul) */

  --on-dark:      #FFFBF8;
  --on-dark-mute: rgba(255, 251, 248, .66);
  --on-light:      #2E2F30;
  --on-light-mute: rgba(46, 47, 48, .70);

  --line-dark:  rgba(255, 251, 248, .14);
  --line-light: rgba(46, 47, 48, .13);

  --font-head: 'Hyperspace Race', 'Manrope', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-hud:  'Space Mono', ui-monospace, SFMono-Regular, Consolas, monospace;

  --wrap: 1200px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --r: 4px;          /* cantos quase retos = leitura "HUD" */
  --r-pill: 999px;

  --ease: cubic-bezier(.22, .78, .3, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.65;
  color: var(--on-light);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4rem); }
h2 { font-size: clamp(1.9rem, 1.25rem + 2.8vw, 3.1rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + .7vw, 1.55rem); }
h4 { font-size: 1.05rem; letter-spacing: 0; }
p  { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.hl { color: var(--orange); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--orange); color: #1a1a1a; padding: .75rem 1.25rem;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

/* =========================================================
   BARRA DE XP (progresso de scroll)
   ========================================================= */
.xp-bar {
  position: fixed; inset: 0 0 auto 0; z-index: 200;
  height: 3px;
  background: rgba(46, 47, 48, .25);
  pointer-events: none;
}
.xp-bar span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--orange-dim), var(--orange));
  box-shadow: 0 0 12px rgba(255, 148, 8, .9);
  transition: width .1s linear;
}

/* =========================================================
   RETÍCULO (cursor customizado — só desktop com mouse fino)
   ========================================================= */
.reticle { display: none; }
@media (hover: hover) and (pointer: fine) and (min-width: 981px) {
  body.reticle-on { cursor: none; }
  body.reticle-on a, body.reticle-on button,
  body.reticle-on input, body.reticle-on select, body.reticle-on textarea { cursor: none; }

  .reticle {
    display: block;
    position: fixed; top: 0; left: 0; z-index: 300;
    width: 34px; height: 34px;
    margin: -17px 0 0 -17px;
    pointer-events: none;
    transition: transform .16s var(--ease), opacity .2s;
    will-change: transform;
  }
  .reticle::after {
    content: ''; position: absolute; inset: 14px;
    background: var(--orange); border-radius: 50%;
    transition: inset .16s var(--ease);
  }
  .reticle i {
    position: absolute; width: 9px; height: 9px;
    border: 2px solid var(--orange);
    transition: all .16s var(--ease);
  }
  .reticle i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; }
  .reticle i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; }
  .reticle i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; }
  .reticle i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; }

  .reticle.is-hot { transform: scale(1.45) rotate(45deg); }
  .reticle.is-hot::after { inset: 15.5px; }
  .reticle.is-down { transform: scale(.8); }
}

/* =========================================================
   CONQUISTAS (toasts)
   ========================================================= */
/* Canto inferior ESQUERDO: o direito é a área do chat (lançador,
   convite e dock). z-index abaixo do chat para que o dock aberto
   cubra os toasts no celular, onde ele ocupa a tela toda. */
.achievements {
  position: fixed; left: 1rem; bottom: 1.1rem; z-index: 140;
  display: grid; gap: .5rem; justify-items: start;
  pointer-events: none;
  max-width: min(320px, calc(100vw - 2rem));
}
.ach {
  display: flex; align-items: center; gap: .75rem;
  background: rgba(28, 29, 30, .96);
  border: 1px solid var(--orange);
  border-left-width: 3px;
  padding: .7rem .95rem;
  color: var(--on-dark);
  box-shadow: 0 16px 40px -18px rgba(0, 0, 0, .8);
  animation: achIn .45s var(--ease) both;
}
.ach.out { animation: achOut .4s var(--ease) forwards; }
@media (max-width: 560px) { .achievements { right: 1rem; max-width: none; } }
.ach svg { color: var(--orange); flex: none; }
.ach b {
  display: block;
  font-family: var(--font-hud); font-size: .62rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--orange);
}
.ach span { font-size: .85rem; font-weight: 700; line-height: 1.3; }
@keyframes achIn  { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }
@keyframes achOut { to { opacity: 0; transform: translateX(-40px); } }

/* =========================================================
   BOTÕES (com glitch)
   ========================================================= */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem 1.8rem;
  border: 2px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--font-head);
  font-weight: 700; font-size: .95rem;
  text-decoration: none; cursor: pointer;
  overflow: hidden;
  transition: transform .2s var(--ease), background-color .2s, border-color .2s, color .2s, box-shadow .2s;
}
.btn > span { position: relative; z-index: 2; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }

.btn-primary { background: var(--orange); color: #241a06; }
.btn-primary:hover { background: #ffa42c; box-shadow: 0 0 0 3px rgba(255, 148, 8, .25), 0 12px 30px -14px rgba(255, 148, 8, .9); }
.btn-ghost { background: rgba(0, 0, 0, .18); border-color: currentColor; color: var(--on-dark); }
.section-cream .btn-ghost { color: var(--on-light); background: transparent; }
.btn-ghost:hover { background: var(--orange); border-color: var(--orange); color: #241a06; }
.btn-sm { padding: .6rem 1.15rem; font-size: .85rem; }
.btn-block { width: 100%; }

/* varredura de luz ao passar o mouse */
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform .6s var(--ease);
}
.btn:hover::before { transform: translateX(120%); }

/* Glitch do rótulo no hover.
   Feito com text-shadow em vez de duplicar o texto num pseudo-elemento:
   o Chromium expõe `content` na árvore de acessibilidade, e o leitor de
   tela acabaria lendo cada botão duas vezes. */
.glitch-btn:hover > span { animation: btnGlitch .42s steps(2, end) 2; }
@keyframes btnGlitch {
  0%   { text-shadow: -3px 0 var(--cyan), 3px 0 rgba(255, 255, 255, .95); transform: translate(-2px, 1px); }
  25%  { text-shadow:  3px 0 var(--cyan), -3px 0 rgba(255, 255, 255, .95); transform: translate(2px, -1px); }
  50%  { text-shadow: -2px 1px var(--cyan), 2px -1px rgba(255, 255, 255, .8); transform: translate(-1px, 2px); }
  75%  { text-shadow:  2px -1px var(--cyan), -2px 1px rgba(255, 255, 255, .8); transform: translate(1px, -2px); }
  100% { text-shadow: none; transform: none; }
}

/* =========================================================
   RÓTULOS HUD
   ========================================================= */
/* Os ornamentos ">" e "_" são elementos reais com aria-hidden, não
   pseudo-elementos: o Chromium expõe `content` na árvore de
   acessibilidade e o leitor de tela soletraria os símbolos. */
.eyebrow {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--font-hud); font-weight: 700;
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 .9rem;
}
.eyebrow .pre { opacity: .65; }
.eyebrow .cur { margin-left: -.25em; animation: blink 1.15s steps(1) infinite; }
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

.kicker {
  font-family: var(--font-hud); font-size: .72rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: .75rem;
}
.kicker::after { content: ''; flex: 1; height: 1px; background: var(--line-dark); }
.kicker-dark::after { background: var(--line-light); }
.kicker-dark { margin-top: clamp(2.5rem, 5vw, 3.5rem); }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(28, 29, 30, .72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-dark);
  transition: background-color .3s;
}
.site-header.is-scrolled { background: rgba(24, 25, 26, .97); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 74px; }
.brand img { width: 170px; height: auto; }

.nav { display: flex; align-items: center; gap: clamp(.5rem, 1.4vw, 1.4rem); }
.nav > a {
  position: relative;
  color: var(--on-dark-mute); text-decoration: none;
  font-size: .9rem; font-weight: 600; white-space: nowrap;
  transition: color .2s;
}
.nav > a:not(.nav-cta)::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: -4px;
  height: 2px; background: var(--orange);
  transition: right .3s var(--ease);
}
.nav > a:hover, .nav > a.is-active { color: var(--on-dark); }
.nav > a:hover:not(.nav-cta)::after, .nav > a.is-active:not(.nav-cta)::after { right: 0; }
.nav-idx {
  font-family: var(--font-hud); font-size: .6rem;
  color: var(--orange); margin-right: .35rem; opacity: .7;
}
.nav > a.nav-cta { color: #241a06; }

.nav-toggle {
  display: none; width: 44px; height: 44px;
  background: none; border: 0; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--on-dark);
  transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute; inset: 100% 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink-deep);
    border-bottom: 1px solid var(--line-dark);
    padding: 0 var(--pad);
    max-height: 0; overflow: hidden;
    transition: max-height .35s var(--ease), padding .35s var(--ease);
  }
  .nav.is-open { max-height: 80vh; overflow: auto; padding: .5rem var(--pad) 1.5rem; }
  .nav > a { padding: .85rem 0; border-bottom: 1px solid var(--line-dark); font-size: 1rem; }
  .nav > a.nav-cta { margin-top: 1rem; border-bottom: 0; justify-content: center; }
}

/* =========================================================
   HERO (vídeo)
   ========================================================= */
.hero {
  position: relative;
  min-height: min(94vh, 900px);
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(5rem, 8vw, 6rem);
  background: var(--ink-deep);
  color: var(--on-dark);
  overflow: hidden;
  isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-video {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 35%;
  filter: saturate(.82) contrast(1.05) brightness(.62);
}

/* camada 1 — cor de marca por cima do vídeo */
.hero-tint {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 78% 32%, rgba(255, 148, 8, .30), transparent 58%),
    linear-gradient(100deg, rgba(28, 29, 30, .96) 0%, rgba(28, 29, 30, .86) 38%, rgba(28, 29, 30, .42) 68%, rgba(28, 29, 30, .70) 100%),
    linear-gradient(to top, rgba(28, 29, 30, .95), transparent 42%);
}
/* camada 2 — scanlines de CRT */
.hero-scan {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, .22) 0 1px, transparent 1px 3px);
  opacity: .55; mix-blend-mode: multiply;
}
.hero-scan::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent, rgba(255, 148, 8, .16), transparent);
  height: 30%;
  animation: sweep 7s linear infinite;
}
@keyframes sweep { 0% { transform: translateY(-120%); } 100% { transform: translateY(430%); } }

/* camada 3 — malha digital */
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 148, 8, .10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 148, 8, .10) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(80% 70% at 30% 45%, #000 15%, transparent 75%);
  -webkit-mask-image: radial-gradient(80% 70% at 30% 45%, #000 15%, transparent 75%);
  animation: gridDrift 24s linear infinite;
}
@keyframes gridDrift { to { background-position: 64px 64px, 64px 64px; } }

/* camada 4 — ruído fino */
.hero-noise {
  position: absolute; inset: -50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  opacity: .05;
  animation: grain .6s steps(3) infinite;
}
@keyframes grain {
  0%   { transform: translate(0, 0); }
  33%  { transform: translate(-3%, 2%); }
  66%  { transform: translate(2%, -3%); }
  100% { transform: translate(0, 0); }
}

/* moldura HUD */
.hud-frame { position: absolute; inset: clamp(.9rem, 2vw, 1.6rem); pointer-events: none; }
.hud-c { position: absolute; width: 26px; height: 26px; border: 2px solid rgba(255, 148, 8, .8); }
.hud-c.tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.hud-c.tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.hud-c.bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.hud-c.br { bottom: 0; right: 0; border-left: 0; border-top: 0; }

.hero-inner { position: relative; }

.hud-tag {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-hud); font-size: .68rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--on-dark-mute);
  border: 1px solid var(--line-dark);
  background: rgba(0, 0, 0, .35);
  padding: .4rem .8rem;
  margin: 0 0 1.6rem;
}
.hud-tag .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #4ade80; box-shadow: 0 0 8px #4ade80;
  animation: pulse 1.8s ease-in-out infinite;
}
.hud-tag .hud-sep { color: var(--orange); }
@keyframes pulse { 50% { opacity: .35; } }

.hero h1 { margin-bottom: 1.2rem; max-width: 17ch; }
.hero h1 span { display: block; }
.hero h1 em { font-style: normal; color: var(--orange); }

/* Glitch do título (dispara no load e a cada ~7s).
   Separação RGB via text-shadow + jitter por linha. Nenhum texto é
   duplicado, então o leitor de tela anuncia o h1 uma única vez. */
.glitch { position: relative; }
.glitch.fire { animation: titleGlitch .5s steps(3, end) 1; }
@keyframes titleGlitch {
  0%   { text-shadow: -5px 2px 0 rgba(77, 226, 255, .85), 5px -2px 0 rgba(255, 148, 8, .85); transform: translate(2px, -1px) skewX(-1.2deg); }
  20%  { text-shadow: 5px -3px 0 rgba(77, 226, 255, .8), -5px 3px 0 rgba(255, 148, 8, .8);   transform: translate(-3px, 1px) skewX(1.4deg); }
  40%  { text-shadow: -3px -2px 0 rgba(77, 226, 255, .7), 3px 2px 0 rgba(255, 148, 8, .7);   transform: translate(2px, 2px); }
  60%  { text-shadow: 4px 2px 0 rgba(77, 226, 255, .75), -4px -2px 0 rgba(255, 148, 8, .75); transform: translate(-2px, -2px) skewX(-.8deg); }
  80%  { text-shadow: -2px 1px 0 rgba(77, 226, 255, .55), 2px -1px 0 rgba(255, 148, 8, .55); transform: translate(1px, 1px); }
  100% { text-shadow: none; transform: none; }
}
/* uma linha "escapa" do bloco durante o glitch */
.glitch.fire .l3 { animation: lineSlip .5s steps(3, end) 1; }
.glitch.fire .l2 { animation: lineSlip .5s steps(3, end) 1 reverse; }
@keyframes lineSlip {
  0%, 100% { transform: none; }
  25% { transform: translateX(9px); }
  50% { transform: translateX(-6px); }
  75% { transform: translateX(4px); }
}

.hero-lead {
  font-size: clamp(1.05rem, 1rem + .5vw, 1.28rem);
  color: var(--on-dark-mute);
  max-width: 36ch; margin-bottom: 2.1rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-bottom: 2.6rem; }

.hero-hud {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .75rem;
}
.hero-hud li {
  border: 1px solid var(--line-dark);
  border-left: 2px solid var(--orange);
  background: rgba(0, 0, 0, .38);
  backdrop-filter: blur(4px);
  padding: .7rem 1.1rem;
  min-width: 132px;
}
.hero-hud b {
  display: block;
  font-family: var(--font-head); font-size: 1.45rem;
  line-height: 1.15; color: var(--orange);
}
.hero-hud span {
  font-family: var(--font-hud); font-size: .62rem;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--on-dark-mute);
}

.hero-foot {
  position: absolute; inset: auto var(--pad) clamp(1.1rem, 3vw, 2rem) var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  max-width: var(--wrap); margin-inline: auto;
}
.scroll-cue {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-hud); font-size: .62rem; font-weight: 700;
  letter-spacing: .2em; color: var(--on-dark-mute);
  text-decoration: none;
  transition: color .2s;
}
.scroll-cue:hover { color: var(--orange); }
.scroll-cue span {
  width: 18px; height: 28px; border: 2px solid currentColor; border-radius: 10px;
  position: relative;
}
.scroll-cue span::after {
  content: ''; position: absolute; left: 50%; top: 5px;
  width: 3px; height: 6px; margin-left: -1.5px;
  background: var(--orange);
  animation: wheel 1.6s var(--ease) infinite;
}
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(9px); opacity: 0; } 100% { opacity: 0; } }

.video-toggle {
  display: inline-flex; align-items: center; gap: .45rem;
  background: rgba(0, 0, 0, .45); color: var(--on-dark-mute);
  border: 1px solid var(--line-dark);
  padding: .45rem .8rem; cursor: pointer;
  font-family: var(--font-hud); font-size: .6rem; font-weight: 700;
  letter-spacing: .16em;
  transition: color .2s, border-color .2s;
}
.video-toggle:hover { color: var(--orange); border-color: var(--orange); }

@media (max-width: 760px) {
  .hero { min-height: auto; padding-bottom: 6.5rem; }
  .hero-hud li { flex: 1 1 130px; min-width: 0; }
  .hero-foot { justify-content: center; }
  .scroll-cue { display: none; }
}

/* =========================================================
   SEÇÕES
   ========================================================= */
.section { position: relative; padding: clamp(3.75rem, 8vw, 7rem) 0; }
.section-cream { background: var(--cream); color: var(--on-light); }
.section-dark  { background: var(--ink); color: var(--on-dark); }
.section-dark .section-sub, .section-dark .lead { color: var(--on-dark-mute); }
.section-cream .section-sub, .section-cream .lead { color: var(--on-light-mute); }

/* padrão de pontos "pixel" nas seções escuras */
.dotted::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 251, 248, .09) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, #000, transparent 65%);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 65%);
}
.dotted > .wrap { position: relative; }

.section-head { max-width: 62ch; margin-bottom: clamp(2.25rem, 4vw, 3.5rem); }
.section-head h2 { margin-bottom: .6rem; }
.section-sub { font-size: 1.05rem; margin: 0; }

.grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.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)); }
@media (max-width: 1040px) {
  .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .grid-4, .grid-5 { grid-template-columns: 1fr; } }

/* ---------- cards com cantos HUD + varredura ---------- */
.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: var(--r);
  padding: clamp(1.5rem, 2.4vw, 2rem);
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s, border-color .3s;
  transform-style: preserve-3d;
}
.card::before, .card::after {
  content: ''; position: absolute; width: 14px; height: 14px;
  border: 2px solid var(--orange);
  opacity: 0; transition: opacity .3s, transform .3s var(--ease);
}
.card::before { top: 8px; left: 8px; border-right: 0; border-bottom: 0; transform: translate(-6px, -6px); }
.card::after  { bottom: 8px; right: 8px; border-left: 0; border-top: 0; transform: translate(6px, 6px); }
.card:hover::before, .card:hover::after { opacity: 1; transform: none; }
.card:hover { border-color: rgba(255, 148, 8, .55); box-shadow: 0 22px 50px -30px rgba(46, 47, 48, .55); }
.card p { color: var(--on-light-mute); margin: 0; }

.card-problem { padding-top: 3rem; }
.card-num {
  position: absolute; top: 1.4rem; left: clamp(1.5rem, 2.4vw, 2rem);
  font-family: var(--font-hud); font-size: .72rem; font-weight: 700;
  letter-spacing: .1em; color: var(--orange);
}
.card-bar {
  display: block; height: 6px; margin-top: 1.4rem;
  background: var(--cream-2); overflow: hidden;
}
.card-bar i {
  display: block; height: 100%; width: 0;
  background: repeating-linear-gradient(90deg, var(--orange) 0 6px, rgba(255, 148, 8, .45) 6px 9px);
  transition: width 1.1s var(--ease) .15s;
}
.is-visible .card-bar i, .card.is-visible .card-bar i { width: var(--w); }
.card-bar-label {
  display: block; margin-top: .45rem;
  font-family: var(--font-hud); font-size: .62rem;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--on-light-mute);
}
.card-bar-label b { color: var(--orange-dim); }

.svc-icon {
  display: grid; place-items: center;
  width: 46px; height: 46px; margin-bottom: 1.1rem;
  border: 1px solid rgba(255, 148, 8, .4);
  background: rgba(255, 148, 8, .1);
  color: var(--orange-dim);
  transition: background-color .3s, transform .3s var(--ease);
}
.svc-icon svg { width: 24px; height: 24px; }
.card-service:hover .svc-icon { background: var(--orange); color: #fff; transform: rotate(-6deg) scale(1.06); }
.card-service h3 { margin-bottom: .65rem; }

.tags { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 1.15rem 0 0; padding: 0; }
.tags li {
  font-family: var(--font-hud);
  font-size: .64rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: .3rem .6rem;
  background: rgba(255, 148, 8, .12);
  color: var(--orange-dim);
}

.statement {
  margin: clamp(2.25rem, 4vw, 3.25rem) 0 0;
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 1rem + 1.4vw, 1.9rem);
  line-height: 1.3; font-weight: 700;
  text-align: center; text-wrap: balance;
}
.statement-lg { font-size: clamp(1.6rem, 1.1rem + 2.4vw, 2.75rem); }
.section-dark .statement { color: var(--on-dark); }

/* ---------- stats ---------- */
.stats { margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.stat { border-top: 2px solid var(--orange); padding-top: 1.15rem; position: relative; }
.stat::before {
  content: ''; position: absolute; top: -2px; left: 0; width: 22px; height: 6px;
  background: var(--orange);
}
.stat-value {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.7rem);
  line-height: 1.05; color: var(--on-dark);
  font-variant-numeric: tabular-nums;
}
.stat-label {
  display: block;
  font-family: var(--font-hud); font-size: .66rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--orange); margin: .35rem 0 .6rem;
}
.stat p { font-size: .92rem; color: var(--on-dark-mute); margin: 0; }

/* ---------- pilares (skill bars) ---------- */
.pillar {
  background: rgba(255, 251, 248, .045);
  border: 1px solid var(--line-dark);
  border-radius: var(--r);
  padding: 1.4rem;
  transition: background-color .3s, border-color .3s, transform .3s var(--ease);
}
.pillar:hover { background: rgba(255, 148, 8, .09); border-color: rgba(255, 148, 8, .45); transform: translateY(-4px); }
.pillar h4 { margin-bottom: .6rem; font-family: var(--font-head); }
.pillar p { font-size: .86rem; color: var(--on-dark-mute); margin: .75rem 0 0; }
.skill {
  display: block; height: 8px;
  background: rgba(255, 251, 248, .1);
  overflow: hidden;
}
.skill i {
  display: block; height: 100%; width: 0;
  background: repeating-linear-gradient(90deg, var(--orange) 0 5px, rgba(255, 148, 8, .35) 5px 8px);
  transition: width 1.2s var(--ease) .2s;
}
.pillar.is-visible .skill i { width: var(--w); }

/* ---------- pacotes ---------- */
.pack {
  position: relative;
  display: flex; flex-direction: column;
  background: rgba(255, 251, 248, .045);
  border: 1px solid var(--line-dark);
  border-radius: var(--r);
  padding: clamp(1.6rem, 2.4vw, 2.1rem);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.pack:hover { transform: translateY(-6px); border-color: rgba(255, 148, 8, .55); box-shadow: 0 26px 60px -34px rgba(255, 148, 8, .55); }
.pack-featured { border-color: var(--orange); background: rgba(255, 148, 8, .07); }
.pack-flag {
  position: absolute; top: -12px; left: clamp(1.6rem, 2.4vw, 2.1rem);
  background: var(--orange); color: #241a06;
  font-family: var(--font-hud); font-weight: 700;
  font-size: .62rem; letter-spacing: .1em; text-transform: uppercase;
  padding: .3rem .7rem;
}
.pack-tier {
  display: block;
  font-family: var(--font-hud); font-size: .64rem; font-weight: 700;
  letter-spacing: .2em; color: var(--orange);
  margin-bottom: .75rem;
}
.pack h3 { margin-bottom: .5rem; }
.pack-desc { color: var(--on-dark-mute); font-size: .95rem; margin-bottom: 1.4rem; }
.pack-meta { display: grid; gap: 1rem; margin: 0 0 1.4rem; padding: 1.1rem 0; border-block: 1px solid var(--line-dark); }
.pack-meta dt {
  font-family: var(--font-hud); font-size: .62rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--orange);
}
.pack-meta dd { margin: .15rem 0 .45rem; font-weight: 700; font-size: .98rem; }
.segbar { display: flex; gap: 3px; }
.segbar i {
  flex: 1; height: 6px;
  background: rgba(255, 251, 248, .13);
  transition: background-color .35s var(--ease), box-shadow .35s;
}
.pack.is-visible .segbar i.on { background: var(--orange); box-shadow: 0 0 8px rgba(255, 148, 8, .7); }

.pack-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.pack-list li { position: relative; padding-left: 1.4rem; font-size: .93rem; color: var(--on-dark-mute); }
.pack-list li::before {
  content: ''; position: absolute; left: 0; top: .55em;
  width: 7px; height: 7px; background: var(--orange);
}

/* ---------- abas / setores ---------- */
.tablist { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.tablist button {
  display: inline-flex; align-items: center; gap: .5rem;
  background: transparent;
  border: 1px solid var(--line-light);
  border-radius: var(--r);
  padding: .6rem 1.1rem;
  font-family: var(--font-body); font-weight: 700; font-size: .85rem;
  cursor: pointer; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.tablist button b {
  font-family: var(--font-hud); font-size: .62rem;
  color: var(--orange); font-weight: 700;
}
.tablist button:hover { border-color: var(--orange); transform: translateY(-2px); }
.tablist button[aria-selected="true"] {
  background: var(--ink); color: var(--on-dark); border-color: var(--ink);
}
.tablist button[aria-selected="true"] b { color: var(--orange); }

.tabpanel[hidden] { display: none; }
.tabpanel { animation: fadeUp .4s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 2.75rem);
  align-items: start;
}
@media (max-width: 900px) { .panel-grid { grid-template-columns: 1fr; } }

.feature-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1px;
  background: var(--line-light);
  border-radius: var(--r); overflow: hidden;
}
.feature-list li {
  position: relative; background: #fff; padding: 1.15rem 1.35rem;
  transition: background-color .25s, padding-left .25s var(--ease);
}
.feature-list li::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--orange);
  transform: scaleY(0); transform-origin: top;
  transition: transform .3s var(--ease);
}
.feature-list li:hover { background: var(--cream-2); padding-left: 1.6rem; }
.feature-list li:hover::before { transform: scaleY(1); }
.feature-list h4 { margin: 0 0 .25rem; font-family: var(--font-head); }
.feature-list p { margin: 0; font-size: .92rem; color: var(--on-light-mute); }

.results {
  position: relative;
  background: var(--ink); color: var(--on-dark);
  border-radius: var(--r);
  padding: clamp(1.4rem, 2.2vw, 1.9rem);
  overflow: hidden;
}
.results::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, .028) 0 1px, transparent 1px 4px);
}
.results-title {
  font-family: var(--font-hud); font-size: .66rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--orange);
  margin: 0 0 1rem;
}
.result-hero { margin-bottom: 1.25rem; }
.result-hero strong {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 2rem + 2.6vw, 3.6rem);
  line-height: 1; color: var(--orange);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 26px rgba(255, 148, 8, .5);
}
.result-hero span { display: block; font-size: .92rem; color: var(--on-dark-mute); margin-top: .3rem; }
.results ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.results li { position: relative; padding-left: 1.4rem; font-size: .92rem; color: var(--on-dark-mute); }
.results li::before {
  content: ''; position: absolute; left: 0; top: .5em;
  width: 8px; height: 8px; border: 2px solid var(--orange);
}
.results-note { font-size: .85rem; color: var(--on-dark-mute); margin: 1rem 0 0; }
.result-shot { margin: 1.35rem 0 0; border-radius: var(--r); overflow: hidden; }
.result-shot img { width: 100%; }

/* ---------- galeria / arcade ---------- */
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(.85rem, 1.6vw, 1.25rem); }
.shot {
  position: relative; margin: 0; overflow: hidden;
  border-radius: var(--r);
  border: 1px solid var(--line-dark);
  grid-column: span 2; background: #111;
  transition: border-color .3s, box-shadow .3s, transform .35s var(--ease);
}
.shot:nth-child(1), .shot:nth-child(2) { grid-column: span 3; }
.shot img {
  width: 100%; aspect-ratio: 16/10; object-fit: cover;
  transition: transform .6s var(--ease), filter .4s;
  filter: saturate(.92);
}
.shot:hover { border-color: var(--orange); box-shadow: 0 24px 60px -30px rgba(255, 148, 8, .6); transform: translateY(-4px); }
.shot:hover img { transform: scale(1.06); filter: saturate(1.1); }
.shot-hud {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(.85);
  font-family: var(--font-hud); font-size: .72rem; font-weight: 700;
  letter-spacing: .2em; color: #241a06;
  background: var(--orange);
  padding: .5rem 1rem;
  opacity: 0; transition: opacity .3s, transform .35s var(--ease);
  pointer-events: none;
}
.shot:hover .shot-hud { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.shot figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 2.5rem 1.2rem 1.1rem;
  background: linear-gradient(transparent, rgba(20, 20, 21, .94));
  color: var(--on-dark);
}
.shot figcaption strong { display: block; font-family: var(--font-head); font-size: 1.02rem; }
.shot figcaption span {
  font-family: var(--font-hud); font-size: .66rem;
  letter-spacing: .08em; color: var(--on-dark-mute);
}
@media (max-width: 820px) {
  .gallery { grid-template-columns: 1fr; }
  .shot, .shot:nth-child(1), .shot:nth-child(2) { grid-column: span 1; }
}

/* ---------- parceria co-op ---------- */
.coop {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
}
@media (max-width: 820px) { .coop { grid-template-columns: 1fr; } }
.coop-plus {
  font-family: var(--font-hud); font-size: .7rem; font-weight: 700;
  letter-spacing: .18em; color: var(--orange);
  border: 1px dashed rgba(255, 148, 8, .6);
  padding: .6rem .5rem;
  writing-mode: vertical-rl;
  justify-self: center;
}
@media (max-width: 820px) { .coop-plus { writing-mode: horizontal-tb; padding: .45rem 1.2rem; } }

.partner {
  position: relative;
  background: #fff;
  border: 1px solid var(--line-light);
  border-top: 3px solid var(--orange);
  border-radius: var(--r);
  padding: clamp(1.6rem, 2.4vw, 2.1rem);
  height: 100%;
}
.player {
  display: inline-block;
  font-family: var(--font-hud); font-size: .64rem; font-weight: 700;
  letter-spacing: .16em;
  background: var(--ink); color: var(--orange);
  padding: .25rem .6rem; margin-bottom: .9rem;
}
.partner h3 { font-size: 1.6rem; margin-bottom: 1rem; }

/* Dois "players" distintos: o card da aaldeia é escuro inteiro (a marca
   dela é a versão branca) e o da Devaholics fica claro. O contraste
   entre os dois cards é proposital. */
.partner-p1 {
  background: var(--ink);
  border-color: var(--ink);
  border-top-color: var(--orange);   /* mantém o traço de topo dos dois cards */
  color: var(--on-dark);
}
.partner-p1 .player { background: var(--orange); color: #241a06; }
.partner-p1 .check li { color: var(--on-dark-mute); }

.partner-logo {
  margin: 0 0 1.4rem;
  display: flex; align-items: center;
  min-height: 84px;
}
.partner-logo img { max-height: 84px; width: auto; }
.partner-p1 .partner-logo img { max-height: 52px; }
.check { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.check li { position: relative; padding-left: 1.85rem; color: var(--on-light-mute); }
.check li::before {
  content: ''; position: absolute; left: 0; top: .45em;
  width: 12px; height: 7px;
  border-left: 2.5px solid var(--orange);
  border-bottom: 2.5px solid var(--orange);
  transform: rotate(-45deg);
}
.gain {
  padding: 1.4rem 1.5rem; background: var(--cream-2);
  border-radius: var(--r);
  border-left: 3px solid transparent;
  transition: border-color .3s, transform .3s var(--ease);
}
.gain:hover { border-left-color: var(--orange); transform: translateX(4px); }
.gain h4 { font-family: var(--font-head); margin-bottom: .4rem; }
.gain p { font-size: .93rem; color: var(--on-light-mute); margin: 0; }

/* =========================================================
   CONTATO
   ========================================================= */
.section-contact { background: var(--ink-deep); }
.contact-inner {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem); align-items: start;
}
@media (max-width: 900px) { .contact-inner { grid-template-columns: 1fr; } }

.contact-copy h2 { margin-bottom: 1rem; }
.contact-list { list-style: none; margin: 2.25rem 0 0; padding: 0; display: grid; gap: 1.1rem; }
.contact-list li { border-top: 1px solid var(--line-dark); padding-top: 1.1rem; }
.contact-label {
  display: block;
  font-family: var(--font-hud); font-size: .64rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--orange);
  margin-bottom: .25rem;
}
.contact-list a { text-decoration: none; font-weight: 700; font-size: 1.05rem; transition: color .2s; }
.contact-list a:hover { color: var(--orange); }

.contact-form {
  background: rgba(255, 251, 248, .05);
  border: 1px solid var(--line-dark);
  border-radius: var(--r);
  padding: clamp(1.25rem, 3vw, 2rem);
  display: grid; gap: 1rem;
}
.term-head {
  display: flex; align-items: center; gap: .4rem;
  margin: 0 0 .5rem; padding-bottom: .9rem;
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--font-hud); font-size: .66rem;
  letter-spacing: .12em; color: var(--on-dark-mute);
}
.term-head i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-dark); }
.term-head i:first-child { background: var(--orange); margin-right: .1rem; }

.field { display: grid; gap: .4rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.field label {
  font-family: var(--font-hud); font-size: .66rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-mute);
}
.field input, .field select, .field textarea {
  width: 100%;
  background: rgba(0, 0, 0, .32);
  border: 1px solid var(--line-dark);
  border-radius: var(--r);
  padding: .8rem 1rem;
  color: var(--on-dark);
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--orange); background: rgba(0, 0, 0, .45);
  box-shadow: 0 0 0 3px rgba(255, 148, 8, .16);
  outline: none;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255, 251, 248, .32); }
.field select option { background: var(--ink-deep); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #ff6b6b; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .78rem; color: var(--on-dark-mute); text-align: center; margin: 0; font-family: var(--font-hud); letter-spacing: .06em; }
.form-status { margin: 0; font-size: .92rem; font-weight: 600; text-align: center; }
.form-status.ok { color: #6ee7a8; }
.form-status.err { color: #ff8f8f; }

/* =========================================================
   RODAPÉ
   ========================================================= */
.site-footer { background: var(--ink); color: var(--on-dark); padding-top: clamp(3rem, 5vw, 4rem); }
.footer-inner {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
  gap: clamp(2rem, 4vw, 3.5rem); padding-bottom: 2.5rem;
}
@media (max-width: 820px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-brand img { width: 190px; margin-bottom: 1rem; }
.footer-brand p { color: var(--on-dark-mute); font-size: .93rem; max-width: 30ch; }

.footer-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 560px) { .footer-nav { grid-template-columns: 1fr 1fr; } }
.footer-nav h5 {
  font-family: var(--font-hud); font-size: .66rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--orange);
  margin: 0 0 .9rem;
}
.footer-nav a {
  display: block; text-decoration: none;
  font-size: .92rem; color: var(--on-dark-mute);
  padding: .28rem 0; transition: color .2s, padding-left .2s var(--ease);
}
.footer-nav a:hover { color: var(--on-dark); padding-left: .35rem; }

.footer-bottom {
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
  border-top: 1px solid var(--line-dark);
  padding-block: 1.35rem;
  font-family: var(--font-hud); font-size: .68rem; letter-spacing: .04em;
  color: var(--on-dark-mute);
}
.footer-bottom p { margin: 0; }

/* =========================================================
   CHAT — briefing conversacional + assistente de IA
   ========================================================= */

/* ---- lançador flutuante ---- */
.chat-launcher {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 150;
  width: 58px; height: 58px;
  display: grid; place-items: center;
  border: 2px solid rgba(255, 148, 8, .5);
  border-radius: 50%;
  background: var(--orange); color: #241a06;
  cursor: pointer;
  box-shadow: 0 14px 34px -12px rgba(255, 148, 8, .8);
  transition: transform .25s var(--ease), background-color .2s;
}
.chat-launcher:hover { transform: scale(1.08) rotate(-6deg); background: #ffa42c; }
.chat-launcher.is-open { transform: scale(.9); opacity: .5; }
.chat-launcher-dot {
  position: absolute; top: 3px; right: 3px;
  width: 12px; height: 12px; border-radius: 50%;
  background: #4ade80; border: 2px solid var(--ink-deep);
  animation: pulse 1.8s ease-in-out infinite;
}

/* ---- convite ---- */
.chat-invite {
  position: fixed; right: 1.1rem; bottom: 5.4rem; z-index: 149;
  max-width: min(310px, calc(100vw - 2.2rem));
  background: var(--ink-deep); color: var(--on-dark);
  border: 1px solid var(--line-dark);
  border-left: 3px solid var(--orange);
  box-shadow: 0 24px 50px -22px rgba(0, 0, 0, .85);
  animation: inviteIn .5s var(--ease) both;
}
@keyframes inviteIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
.chat-invite[hidden] { display: none; }
.chat-invite-body {
  display: block; width: 100%;
  background: none; border: 0; cursor: pointer;
  text-align: left; padding: .95rem 2.2rem .95rem 1rem;
}
.chat-invite-body b {
  display: block;
  font-family: var(--font-head); font-size: .95rem;
  margin-bottom: .2rem;
}
.chat-invite-body span { font-size: .82rem; color: var(--on-dark-mute); line-height: 1.45; }
.chat-invite-x {
  position: absolute; top: .35rem; right: .35rem;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  background: none; border: 0; cursor: pointer;
  color: var(--on-dark-mute);
  transition: color .2s;
}
.chat-invite-x:hover { color: var(--orange); }
.chat-invite-x svg { width: 13px; height: 13px; }

/* ---- dock ---- */
.chat-dock {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 160;
  width: min(400px, calc(100vw - 2.2rem));
  opacity: 0; transform: translateY(18px) scale(.98);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.chat-dock[hidden] { display: none; }
.chat-dock.is-on { opacity: 1; transform: none; }

.chat {
  position: relative;
  display: flex; flex-direction: column;
  max-height: min(620px, calc(100vh - 2.2rem));
  background: var(--ink-deep); color: var(--on-dark);
  border: 1px solid rgba(255, 148, 8, .35);
  border-radius: var(--r);
  box-shadow: 0 50px 110px -40px rgba(0, 0, 0, .95);
  overflow: hidden;
}
.chat-head {
  display: flex; align-items: center; gap: .75rem;
  padding: .9rem 1rem;
  border-bottom: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, .035);
}
.chat-av {
  position: relative; flex: none;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: var(--ink); border: 1px solid rgba(255, 148, 8, .4);
  border-radius: 50%;
}
.chat-av img { width: 26px; height: auto; }
.chat-av::after {
  content: ''; position: absolute; right: -1px; bottom: -1px;
  width: 11px; height: 11px; border-radius: 50%;
  background: #4ade80; border: 2px solid var(--ink-deep);
}
.chat-id { min-width: 0; }
.chat-id .n { display: block; font-family: var(--font-head); font-weight: 700; font-size: .95rem; }
.chat-id .s { display: block; font-size: .72rem; color: var(--on-dark-mute); }
.chat-steps {
  margin-left: auto; flex: none;
  font-family: var(--font-hud); font-size: .64rem; font-weight: 700;
  letter-spacing: .12em; color: var(--orange); white-space: nowrap;
}
.chat-x {
  flex: none; width: 30px; height: 30px;
  display: grid; place-items: center;
  background: none; cursor: pointer; color: var(--on-dark-mute);
  border: 1px solid var(--line-dark); border-radius: var(--r);
  transition: color .2s, border-color .2s, transform .3s var(--ease);
}
.chat-x:hover { color: var(--orange); border-color: var(--orange); transform: rotate(90deg); }
.chat-x svg { width: 14px; height: 14px; }

.chat-bar { height: 3px; background: rgba(255, 255, 255, .08); }
.chat-bar i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--orange-dim), var(--orange));
  box-shadow: 0 0 10px rgba(255, 148, 8, .8);
  transition: width .5s var(--ease);
}

.chat-body {
  flex: 1 1 auto;
  padding: 1.15rem 1rem;
  display: flex; flex-direction: column; gap: .6rem;
  min-height: 250px;
  overflow-y: auto;
  scrollbar-width: thin; scrollbar-color: rgba(255, 148, 8, .35) transparent;
  background-image: radial-gradient(rgba(255, 251, 248, .05) 1px, transparent 1px);
  background-size: 20px 20px;
}
.chat-body::-webkit-scrollbar { width: 5px; }
.chat-body::-webkit-scrollbar-thumb { background: rgba(255, 148, 8, .35); }

/* bolhas */
.cb {
  max-width: 86%;
  padding: .65rem .85rem;
  border-radius: var(--r);
  font-size: .9rem; line-height: 1.5;
  animation: cbIn .32s var(--ease) both;
}
.cb.bot { align-self: flex-start; background: rgba(255, 255, 255, .07); border: 1px solid var(--line-dark); }
.cb.me  { align-self: flex-end; background: var(--orange); color: #241a06; font-weight: 600; }
.cb.err { align-self: flex-start; background: rgba(255, 107, 107, .12); border: 1px solid rgba(255, 107, 107, .45); color: #ffc9c9; }
.cb b { color: var(--orange); }
.cb.me b { color: #241a06; }
@keyframes cbIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.chat-ia-tag {
  display: block;
  font-family: var(--font-hud); font-size: .58rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--orange); opacity: .8; margin-bottom: .3rem;
}

.typing {
  align-self: flex-start;
  display: flex; gap: 4px;
  padding: .75rem .85rem;
  background: rgba(255, 255, 255, .07);
  border: 1px solid var(--line-dark);
  border-radius: var(--r);
}
.typing i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--orange);
  animation: dot 1.2s ease-in-out infinite;
}
.typing i:nth-child(2) { animation-delay: .18s; }
.typing i:nth-child(3) { animation-delay: .36s; }
@keyframes dot { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-4px); } }

/* rodapé / entrada */
.chat-foot {
  flex: none;
  border-top: 1px solid var(--line-dark);
  padding: .8rem;
  background: rgba(255, 255, 255, .02);
}
.chat-form { display: flex; gap: .5rem; align-items: center; }
.chat-form input {
  flex: 1; min-width: 0;
  background: rgba(0, 0, 0, .35);
  border: 1px solid var(--line-dark);
  border-radius: var(--r);
  padding: .75rem .85rem;
  color: var(--on-dark); font-size: .9rem;
  outline: none;
  transition: border-color .2s, background-color .2s;
}
.chat-form input::placeholder { color: rgba(255, 251, 248, .3); }
.chat-form input:focus { border-color: var(--orange); background: rgba(0, 0, 0, .5); }
.chat-send {
  flex: none; width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 0; border-radius: var(--r); cursor: pointer;
  background: var(--orange); color: #241a06;
  transition: background-color .2s, transform .2s var(--ease);
}
.chat-send:hover { background: #ffa42c; transform: translateY(-2px); }
.chat-send:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.chat-send svg { width: 18px; height: 18px; }

/* chips de escolha */
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chips button {
  background: rgba(255, 148, 8, .1);
  border: 1px solid rgba(255, 148, 8, .4);
  border-radius: var(--r);
  color: var(--on-dark);
  padding: .5rem .75rem;
  font-size: .82rem; font-weight: 600;
  cursor: pointer;
  transition: background-color .2s, transform .2s var(--ease);
}
.chips button:hover { background: var(--orange); color: #241a06; transform: translateY(-2px); }

/* CTA do WhatsApp no fim do fluxo */
.chat-wa {
  display: flex; align-items: center; gap: .7rem;
  padding: .7rem .8rem; margin-bottom: .7rem;
  background: rgba(37, 211, 102, .1);
  border: 1px solid rgba(37, 211, 102, .35);
  border-radius: var(--r);
}
.chat-wa .txt { flex: 1; min-width: 0; font-size: .78rem; color: var(--on-dark-mute); line-height: 1.4; }
.chat-wa a {
  flex: none;
  display: inline-flex; align-items: center; gap: .4rem;
  background: #25D366; color: #fff;
  border-radius: var(--r);
  padding: .6rem .85rem;
  font-family: var(--font-hud); font-size: .66rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  transition: background-color .2s;
}
.chat-wa a:hover { background: #1FBF5A; }
.chat-wa a svg { width: 14px; height: 14px; }
@media (max-width: 460px) {
  .chat-wa { flex-direction: column; align-items: stretch; }
  .chat-wa a { justify-content: center; }
}

.chat-priv {
  display: flex; align-items: center; gap: .45rem;
  margin-top: .6rem;
  font-size: .68rem; color: rgba(255, 251, 248, .38);
}
.chat-priv svg { width: 12px; height: 12px; flex: none; }

@media (max-width: 560px) {
  .chat-dock { right: .6rem; left: .6rem; bottom: .6rem; width: auto; }
  .chat { max-height: calc(100vh - 1.2rem); }
  .chat-steps { display: none; }
  .chat-body { min-height: 200px; }
  .chat-invite { right: .6rem; left: .6rem; max-width: none; bottom: 5rem; }
}

/* =========================================================
   REVEAL / SCROLL
   ========================================================= */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* modo turbo (easter egg do Konami) */
body.turbo { --orange: #FF7A00; }
body.turbo .hero-grid { animation-duration: 5s; }
body.turbo .hero-scan::after { animation-duration: 2.2s; }
body.turbo .card:hover, body.turbo .pack:hover { box-shadow: 0 0 0 2px var(--orange), 0 30px 70px -30px rgba(255, 148, 8, .9); }

/* =========================================================
   MOVIMENTO REDUZIDO
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .tabpanel, .hero-noise, .hero-grid, .hero-scan::after,
  .hud-tag .dot, .scroll-cue span::after, .eyebrow::after { animation: none !important; }
  .glitch::before, .glitch::after, .glitch-btn::after { display: none; }
  .btn::before { display: none; }
  .card-bar i, .skill i { transition: none; }
  .btn:hover, .card:hover, .pack:hover, .pillar:hover, .shot:hover,
  .shot:hover img, .chat-launcher:hover, .gain:hover, .tablist button:hover,
  .chips button:hover, .chat-send:hover, .chat-x:hover { transform: none; }
  .xp-bar span, .chat-bar i { transition: none; }
  .hero-video { display: none; }
  .cb, .chat-invite, .chat-dock { animation: none; }
  .chat-launcher-dot, .typing i { animation: none; }
}

@media print {
  .site-header, .chat-launcher, .chat-invite, .chat-dock, .contact-form,
  .nav-toggle, .xp-bar, .reticle, .achievements,
  .hero-media, .hud-frame, .hero-foot { display: none !important; }
  body { background: #fff; color: #000; }
  .section-dark, .section-contact, .results, .hero { background: #fff !important; color: #000 !important; }
}
