/* ==========================================================================
   KOVEX — kovex.ia.br
   Implementação do design "KOVEX Site.dc.html" (Claude Design)
   Paleta e escala tipográfica vindas direto do arquivo de design.
   ========================================================================== */

:root {
  --accent: #F2621F;
  --bg: #14161f;
  --bg-alt: #171923;
  --bg-foot: #101219;
  --bg-hover: #191c27;
  --bg-hover-alt: #1c1f2b;
  --ink: #e9e9ed;
  --ink-soft: #b7bac9;
  --ink-mut: #9aa0b1;
  --ink-mut2: #9397ab;
  --ink-dim: #75798c;
  --rule: #2b2e3d;
  --line: #3f424d;
  --ok: #2ee06a;
  --wrap: 1240px;
  --gut: 40px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p { margin: 0; }

a { color: var(--ink); text-decoration: none; transition: color .2s ease, background-color .2s ease, border-color .2s ease; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

::selection { background: rgba(242, 98, 31, .32); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut); }
.mono { font-family: var(--mono); }
.accent { color: var(--accent); }

/* --------------------------------------------------------------- animações */
@keyframes kvRise   { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes kvRiseSm { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes kvFade   { from { opacity: 0; } to { opacity: 1; } }
@keyframes kvGrow   { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes kvPulse  { 0% { opacity: 1; } 50% { opacity: .25; } 100% { opacity: 1; } }
@keyframes kvSweep  { 0% { opacity: .15; } 45% { opacity: 1; } 100% { opacity: .15; } }

.rise    { animation: kvRise .9s cubic-bezier(.2,.8,.2,1) both; }
.rise-sm { animation: kvRiseSm .7s ease-out both; }
.fade    { animation: kvFade 1s ease-out both; }

/* Entrada por scroll: só esconde quando o JS está ativo. */
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* -------------------------------------------------------------------- topo */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(20, 22, 31, .92);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--rule);
}
.topbar__inner {
  max-width: var(--wrap); margin: 0 auto; padding: 16px var(--gut);
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.brand { display: flex; align-items: center; gap: 14px; animation: kvFade .6s ease-out both; }
.brand:hover { color: var(--ink); }
.brand__word { font-family: 'Archivo Black', sans-serif; font-size: 19px; letter-spacing: .05em; text-transform: uppercase; }

.mark { display: grid; grid-template-columns: repeat(2, 20px); grid-template-rows: repeat(2, 20px); gap: 2px; }
.mark__cell { border: 2px solid var(--ink); border-radius: 1px; }
.mark__cell--letter { display: flex; align-items: center; justify-content: center; font-family: 'Archivo Black', sans-serif; font-size: 10px; }
.mark__cell--fill { background: var(--accent); border: 0; }
.mark--sm { grid-template-columns: repeat(2, 18px); grid-template-rows: repeat(2, 18px); }
.mark--sm .mark__cell { border-color: var(--ink-dim); }
.mark--sm .mark__cell--fill { border: 0; }

.topnav { display: flex; align-items: center; gap: 34px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }

.btn-outline-accent { padding: 11px 18px; border: 2px solid var(--accent); color: var(--accent); }
.btn-outline-accent:hover { background: var(--accent); color: var(--bg); }

.btn-solid {
  padding: 16px 26px; background: var(--accent); color: var(--bg);
  font-size: 13px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600;
}
.btn-solid:hover { background: #ffffff; color: var(--bg); }

.btn-outline { padding: 16px 26px; border: 2px solid var(--line); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }

/* Âncoras não ficam escondidas atrás da barra fixa. */
[id] { scroll-margin-top: 96px; }

/* -------------------------------------------------------------------- hero */
.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;
}

/* O hero é de borda a borda: o palco não fica preso à largura do conteúdo,
   senão a composição — autorada em 1920 — encolhe junto com ele. */
.hero { padding-top: 32px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 36px; }

/* O palco reproduz a composição em 1920x1080; o conteúdo interno usa
   coordenadas absolutas dessa base e é escalado inteiro por transform,
   então nada precisa ser recalculado quando a largura muda. */
.stage {
  order: 2;
  position: relative; aspect-ratio: 16 / 9; margin: 0 auto;
  overflow: hidden; background: var(--bg);
  animation: kvFade .8s ease-out both;
  /* Ocupa o máximo possível, cedendo largura só quando a altura da janela
     não comportaria os botões logo abaixo. */
  width: min(100%, max(560px, calc((100vh - 250px) * 16 / 9)));
  width: min(100%, max(560px, calc((100svh - 250px) * 16 / 9)));
}
.stage__scaler {
  position: absolute; left: 0; top: 0; width: 1920px; height: 1080px;
  transform-origin: 0 0;
}
.stage__root { position: absolute; inset: 0; overflow: hidden; background: var(--bg); }

.hero__compact { order: 1; display: none; flex-direction: column; gap: 22px; }
.hero__foot { order: 3; }

.hero__title {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(32px, 8vw, 48px); line-height: 1.04; letter-spacing: -.01em; font-weight: 400;
}
.hero__lead { font-size: 17px; line-height: 1.6; color: var(--ink-soft); max-width: 620px; }

.hero__foot { display: flex; flex-direction: column; gap: 26px; }
.hero__actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero__live { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--ink-mut2); }
.dot { width: 9px; height: 9px; background: var(--ok); flex: none; animation: kvPulse 2.4s ease-in-out infinite; }

.kicker { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-dim); }
.kicker--accent { color: var(--accent); letter-spacing: .18em; }


/* Três colunas iguais + `aspect-ratio: 1` nas células: quadrado em qualquer
   largura, sem altura fixa por breakpoint. */
.cellgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }

/* ------------------------------------------------------------------- split */
.split { border-top: 2px solid var(--rule); border-bottom: 2px solid var(--rule); background: var(--bg-alt); }
.split__inner { display: grid; grid-template-columns: 1fr 1fr; padding-left: var(--gut); padding-right: var(--gut); }
.split__col { padding: 44px 44px 44px 0; display: flex; flex-direction: column; gap: 12px; }
.split__col--right { padding: 44px 0 44px 44px; border-left: 2px solid var(--rule); }
.split__line { font-size: 21px; }
.split__line--muted { color: var(--ink-soft); }

/* ----------------------------------------------------------------- seções */
.section { padding-top: 104px; padding-bottom: 104px; }
.section__head { display: flex; flex-direction: column; gap: 18px; max-width: 800px; }
.section__head--row {
  flex-direction: row; align-items: flex-end; justify-content: space-between;
  gap: 40px; flex-wrap: wrap; max-width: none;
}
.section__head--row > div { display: flex; flex-direction: column; gap: 16px; max-width: 700px; }
.section__aside { font-size: 14px; color: var(--ink-mut2); max-width: 320px; }

.h2 { font-family: 'Archivo Black', sans-serif; font-weight: 400; font-size: clamp(26px, 3.4vw, 44px); line-height: 1.08; }
.h3 { font-family: 'Archivo Black', sans-serif; font-weight: 400; font-size: clamp(24px, 2.8vw, 36px); line-height: 1.1; }
.h4 { font-family: 'Archivo Black', sans-serif; font-weight: 400; font-size: 28px; line-height: 1.12; }

/* Grades separadas por régua de 2px (o fundo faz as linhas). */
.rule-grid { display: grid; gap: 2px; background: var(--rule); margin-top: 56px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.tile { background: var(--bg); padding: 38px 40px; display: flex; flex-direction: column; gap: 14px; transition: background .25s ease; }
.tile:hover { background: var(--bg-hover); }
.tile__title { font-family: 'Archivo Black', sans-serif; font-weight: 400; font-size: 21px; line-height: 1.15; }
.tile__title--sm { font-size: 20px; }
.tile__text { font-size: 15px; color: var(--ink-mut); line-height: 1.6; }

.tile--band { background: var(--bg-alt); padding: 34px 32px; }
.tile--band:hover { background: var(--bg-hover-alt); }
.tile--band .tile__text { font-size: 14px; }

.tile--dec { padding: 34px 32px; gap: 16px; }
.tile--dec .tile__text { font-size: 14px; }
.dec__num { font-family: 'Archivo Black', sans-serif; font-size: 30px; color: var(--accent); line-height: 1; }
.dec__bar { display: block; width: 44px; height: 2px; background: var(--accent); transform-origin: left; }
.js .reveal .dec__bar { transform: scaleX(0); }
.js .reveal.is-in .dec__bar { animation: kvGrow .7s ease-out .15s both; }
.dec__title { font-family: 'Archivo', sans-serif; font-weight: 500; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; line-height: 1.4; }

/* ------------------------------------------------------------------ poster */
.poster { background: var(--accent); color: var(--bg); }
.poster__inner { padding-top: 84px; padding-bottom: 84px; display: flex; flex-direction: column; gap: 24px; }
.poster__title {
  font-family: 'Archivo Black', sans-serif; font-weight: 400;
  font-size: clamp(28px, 4.4vw, 58px); line-height: 1.04; letter-spacing: -.01em; max-width: 1000px;
}
.poster__text { font-size: 19px; max-width: 720px; line-height: 1.55; }

/* ------------------------------------------------------------------- suíte */
.suite { display: grid; grid-template-columns: 360px 1fr; gap: 64px; margin-top: 64px; align-items: start; }
.suite__sticky { position: sticky; top: 128px; display: flex; flex-direction: column; gap: 20px; }
.scell {
  aspect-ratio: 1;
  border: 2px solid var(--line); border-radius: 3px; background: transparent;
  transition: background .35s ease, border-color .35s ease;
  display: flex; align-items: flex-end; padding: 10px;
}
.scell span { font-family: var(--mono); font-size: 10px; color: #4f5364; transition: color .35s ease; }
.scell.is-on { background: var(--dom); border-color: transparent; }
.scell.is-on span { color: var(--bg); }

.suite__active { display: flex; flex-direction: column; gap: 6px; }
.suite__activeName { font-family: 'Archivo Black', sans-serif; font-size: 17px; letter-spacing: .02em; text-transform: uppercase; }
.suite__activeDom { font-size: 13px; color: var(--ink-mut2); }

.suite__list { display: flex; flex-direction: column; }
.module {
  border-top: 2px solid var(--rule); padding: 26px 0;
  display: grid; grid-template-columns: 62px 1fr; gap: 24px;
}
.module__end { border-top: 2px solid var(--rule); }
.module__code { font-size: 12px; color: #5c6072; padding-top: 5px; transition: color .3s ease; }
.module.is-active .module__code { color: var(--dom); }
.module__body { display: flex; flex-direction: column; gap: 10px; }
.module__head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.module__name {
  font-family: 'Archivo Black', sans-serif; font-weight: 400; font-size: 22px; line-height: 1.1;
  color: var(--ink); transition: color .3s ease;
}
.module.is-active .module__name { color: #ffffff; }
.module__tag {
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--dom); border: 2px solid var(--dom); padding: 3px 7px;
}
.module__text { font-size: 15px; color: var(--ink-mut); line-height: 1.6; max-width: 620px; }

/* -------------------------------------------------------------------- band */
.band { border-top: 2px solid var(--rule); background: var(--bg-alt); }
.band--edged { border-bottom: 2px solid var(--rule); }
.band__inner { padding-top: 88px; padding-bottom: 88px; }
.band__head { display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap; }
.band__note { font-size: 13px; color: var(--ink-dim); }
.rule-grid--band { margin-top: 44px; }

/* -------------------------------------------------------------- integração */
.integra { padding-top: 88px; padding-bottom: 88px; display: grid; grid-template-columns: 1fr 1fr; gap: 72px; }
.integra__col { display: flex; flex-direction: column; gap: 18px; }
.integra__text { font-size: 16px; color: var(--ink-mut); line-height: 1.65; }

.stats { border-top: 2px solid var(--rule); }
.stats__inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 40px 28px 40px 0; display: flex; flex-direction: column; gap: 8px; }
.stat--edge { border-left: 2px solid var(--rule); padding-left: 28px; }
.stat__value { font-family: 'Archivo Black', sans-serif; font-size: 40px; line-height: 1; color: var(--ink); }
.stat__value--accent { color: var(--accent); }
.stat__label { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mut2); }

/* ----------------------------------------------------------------- contato */
.contato { display: grid; grid-template-columns: 1fr 380px; gap: 72px; align-items: center; padding-top: 112px; padding-bottom: 112px; }
.contato__copy { display: flex; flex-direction: column; gap: 28px; }
.contato__title { font-family: 'Archivo Black', sans-serif; font-weight: 400; font-size: clamp(30px, 4.2vw, 56px); line-height: 1.04; }
.contato__lead { font-size: 18px; color: var(--ink-soft); max-width: 620px; line-height: 1.6; }
.contato__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.contato__actions .btn-solid, .contato__actions .btn-outline { padding: 17px 28px; }

.contato__visual { display: flex; justify-content: flex-end; }
.lettergrid { display: grid; grid-template-columns: repeat(3, 96px); grid-template-rows: repeat(3, 96px); gap: 6px; }
.lcell {
  border: 2px solid var(--ink); border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Archivo Black', sans-serif; font-size: 42px;
}
.lcell--sweep { background: var(--accent); border-color: transparent; animation: kvSweep 3.4s ease-in-out infinite; }

/* ------------------------------------------------------------------ rodapé */
.foot { border-top: 2px solid var(--rule); background: var(--bg-foot); }
.foot__inner { padding-top: 44px; padding-bottom: 44px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.brand--foot { animation: none; }
.brand--foot .brand__word { font-size: 14px; color: var(--ink-mut2); }
.footnav { display: flex; gap: 28px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.footnav a { color: var(--ink-dim); }
.footnav a:hover { color: var(--accent); }
.foot__domain { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-dim); }

/* ================================================================ responsivo */
@media (max-width: 1100px) {
  .suite { grid-template-columns: 300px 1fr; gap: 44px; }
  .contato { grid-template-columns: 1fr 320px; gap: 48px; }
  .lettergrid { grid-template-columns: repeat(3, 84px); grid-template-rows: repeat(3, 84px); }
  .lcell { font-size: 36px; }
}

@media (max-width: 900px) {
  :root { --gut: 24px; }

  .topnav { gap: 20px; }
  .topnav a:not(.btn-outline-accent) { display: none; }

  /* Abaixo disto a tipografia da composição viraria borrão, então o palco
     entra só com a parte gráfica (hero.js corta as camadas de texto) e as
     palavras aparecem em HTML de verdade, acima dele. */
  .hero { gap: 28px; padding-top: 36px; padding-bottom: 56px; }
  .hero__compact { display: flex; }
  .stage { width: 100%; }

  .split__inner { grid-template-columns: 1fr; }
  .split__col { padding: 32px 0; }
  .split__col--right { padding: 32px 0; border-left: 0; border-top: 2px solid var(--rule); }

  .section { padding-top: 72px; padding-bottom: 72px; }
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .rule-grid { margin-top: 40px; }
  .tile { padding: 30px 26px; }
  .tile--band, .tile--dec { padding: 30px 26px; }

  .poster__inner { padding-top: 64px; padding-bottom: 64px; }

  /* A grade fixa dos módulos não cabe no celular: some e cada linha
     assume a cor do próprio domínio. */
  .suite { grid-template-columns: 1fr; gap: 0; margin-top: 40px; }
  .suite__sticky { display: none; }
  .module { grid-template-columns: 54px 1fr; gap: 16px; padding: 22px 0; }
  .module__code { color: var(--dom); }
  .module__name { font-size: 20px; }

  .band__inner { padding-top: 64px; padding-bottom: 64px; }
  .integra { grid-template-columns: 1fr; gap: 40px; padding-top: 64px; padding-bottom: 64px; }
  .stats__inner { grid-template-columns: 1fr 1fr; }
  .stat { padding: 28px 20px 28px 0; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(3), .stat:nth-child(4) { border-top: 2px solid var(--rule); }

  .contato { grid-template-columns: 1fr; gap: 48px; padding-top: 80px; padding-bottom: 80px; }
  .contato__visual { justify-content: flex-start; }

  .foot__inner { flex-direction: column; align-items: flex-start; gap: 22px; }
}

@media (max-width: 520px) {
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions a, .contato__actions a { text-align: center; }
  .contato__actions { flex-direction: column; align-items: stretch; }
  .lettergrid { grid-template-columns: repeat(3, 72px); grid-template-rows: repeat(3, 72px); }
  .lcell { font-size: 30px; }
  .footnav { gap: 18px; flex-wrap: wrap; }
}
