/* Agência Ciber · estúdio
   Home nova (24/09/2026). As páginas antigas (/apostilas) continuam em site.css. */

:root {
  --noite: #12110F;
  --noite-2: #1B1A17;
  --noite-3: #26241F;
  --papel: #F1ECE3;
  --papel-2: #E6DFD2;
  --tinta: #F1ECE3;
  --tinta-suave: #A8A193;
  --tinta-escura: #1A1916;
  --brasa: #FF5B35;
  --brasa-escura: #D9441F;
  --linha: rgba(241, 236, 227, .14);
  --linha-escura: rgba(26, 25, 22, .14);

  --display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;

  --margem: clamp(20px, 5vw, 72px);
  --largura: 1320px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--noite);
  color: var(--tinta);
  font-family: var(--display);
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.55;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.035em; line-height: .98; }
p { margin: 0; }
::selection { background: var(--brasa); color: var(--noite); }

.pular { position: absolute; left: -999px; top: 8px; background: var(--brasa); color: var(--noite); padding: 10px 14px; z-index: 50; border-radius: 8px; }
.pular:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--brasa); outline-offset: 3px; border-radius: 4px; }

/* ---------- topo ---------- */
.topo {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--margem);
  transition: background .4s var(--ease), padding .4s var(--ease), border-color .4s;
  border-bottom: 1px solid transparent;
}
.topo.rolou { background: rgba(18, 17, 15, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding-block: 12px; border-color: var(--linha); }
.marca { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; letter-spacing: -.02em; text-decoration: none; }
.marca-ponto { width: 12px; height: 12px; border-radius: 50%; background: var(--brasa); box-shadow: 0 0 0 4px rgba(255, 91, 53, .18); }
.topo nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 34px); font-size: .92rem; }
.topo nav a { text-decoration: none; color: var(--tinta-suave); transition: color .2s; }
.topo nav a:hover { color: var(--tinta); }
.topo nav a.topo-cta { color: var(--noite); background: var(--tinta); padding: 9px 16px; border-radius: 999px; font-weight: 600; }
.topo nav a.topo-cta:hover { background: var(--brasa); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  padding: calc(96px + 3vh) var(--margem) clamp(36px, 6vh, 72px);
  display: grid; grid-template-rows: auto 1fr auto; gap: clamp(20px, 3.4vh, 40px);
  overflow: clip;
  max-width: calc(var(--largura) + 2 * var(--margem)); margin: 0 auto;
}
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: min(70vw, 900px); aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(255, 91, 53, .16), transparent 70%);
  pointer-events: none; z-index: -1; filter: blur(10px);
}
.hero-etiqueta { color: var(--tinta-suave); font-size: .9rem; letter-spacing: .02em; }
.hero-titulo {
  font-size: clamp(3.1rem, min(8.4vw, 13.2vh), 9.2rem);
  font-weight: 650; letter-spacing: -.055em; line-height: .9;
  align-self: end;
}
.hero-titulo .linha { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-titulo .linha > span { display: inline-block; transform: translateY(105%); animation: sobe 1.1s var(--ease) forwards; }
.hero-titulo .linha:nth-child(2) > span { animation-delay: .08s; }
.hero-titulo .linha:nth-child(3) > span { animation-delay: .16s; }
.hero-titulo .linha:nth-child(4) > span { animation-delay: .24s; }
.hero-titulo em { color: var(--brasa); font-size: 1.04em; }
@keyframes sobe { to { transform: none; } }

.hero-base { display: grid; grid-template-columns: minmax(0, 1.1fr) auto; gap: 32px; align-items: end; }
.hero-texto { max-width: 34ch; font-size: clamp(1.05rem, 1.5vw, 1.3rem); color: var(--tinta-suave); line-height: 1.45; }
.hero-acoes { display: flex; flex-wrap: wrap; gap: 12px; }

.relogio {
  position: absolute; right: var(--margem); top: calc(110px + 4vh);
  display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: baseline; column-gap: 4px;
  text-align: right; max-width: 14rem;
}
.relogio-num { font-size: clamp(2.2rem, 4.4vw, 4.4rem); font-weight: 300; letter-spacing: -.04em; font-variant-numeric: tabular-nums; color: var(--brasa); }
.relogio-un { font-family: var(--serif); font-style: italic; font-size: 1.6rem; color: var(--brasa); }
.relogio-leg { flex-basis: 100%; font-size: .78rem; color: var(--tinta-suave); letter-spacing: .02em; }

/* ---------- botões ---------- */
.botao {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 22px; border-radius: 999px; font-weight: 600; text-decoration: none;
  font-size: .98rem; letter-spacing: -.01em;
  transition: transform .35s var(--ease), background .25s, color .25s, border-color .25s;
}
.botao:hover { transform: translateY(-2px); }
.botao-cheio { background: var(--brasa); color: var(--noite); }
.botao-cheio:hover { background: var(--tinta); }
.botao-linha { border: 1px solid var(--linha); color: var(--tinta); }
.botao-linha:hover { border-color: var(--tinta); }

/* ---------- faixa ---------- */
.faixa { border-block: 1px solid var(--linha); overflow: hidden; padding: 22px 0; }
.faixa-trilho { display: flex; align-items: center; gap: 36px; width: max-content; animation: corre 38s linear infinite; }
.faixa-trilho span { font-size: clamp(1.4rem, 3vw, 2.6rem); font-weight: 500; letter-spacing: -.04em; white-space: nowrap; }
.faixa-trilho i { width: 10px; height: 10px; border-radius: 50%; background: var(--brasa); flex: none; }
@keyframes corre { to { transform: translateX(-50%); } }

/* ---------- seções ---------- */
section { position: relative; }
.diferenca, .servicos, .processo, .principios, .contato {
  padding: clamp(80px, 13vh, 160px) var(--margem);
  max-width: calc(var(--largura) + 2 * var(--margem)); margin: 0 auto;
}
.secao-cab { display: grid; grid-template-columns: 80px minmax(0, 1fr); column-gap: 24px; row-gap: 18px; margin-bottom: clamp(40px, 7vh, 80px); }
.numero { font-size: .85rem; color: var(--brasa); font-weight: 600; letter-spacing: .04em; padding-top: .7em; }
.secao-cab h2 { font-size: clamp(2.4rem, 6vw, 5.6rem); }
.secao-cab h2 em { color: var(--tinta-suave); }
.secao-texto { grid-column: 2; max-width: 46ch; color: var(--tinta-suave); font-size: 1.1rem; }

/* ---------- comparador ---------- */
.comparador {
  --corte: 38%;
  position: relative; margin: 0; aspect-ratio: 16 / 9.4;
  border-radius: 22px; overflow: hidden;
  border: 1px solid var(--linha);
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .7);
  user-select: none; touch-action: pan-y;
  container-type: inline-size;
}
.tela { position: absolute; inset: 0; }
.tela-antes { z-index: 1; clip-path: inset(0 calc(100% - var(--corte)) 0 0); }
.tela-depois { z-index: 0; }

/* o site "antes": deliberadamente datado */
.tela-antes { background: #fff; color: #333; font-family: "Times New Roman", Times, serif; }
.velho-topo { background: linear-gradient(#5b7fbf, #34569a); color: #fff; padding: 2cqw 3cqw; display: flex; flex-direction: column; gap: .8cqw; }
.velho-logo { font-family: "Comic Sans MS", "Trebuchet MS", sans-serif; font-weight: 700; font-size: 2.3cqw; text-shadow: 1px 1px 0 #000; }
.velho-menu { font-size: 1.15cqw; }
.velho-banner { margin: 2cqw 3cqw; padding: 2.4cqw; background: #e9eef8; border: 1px dashed #8aa0cc; text-align: left; max-width: 34cqw; }
.velho-bemvindo { color: #c0392b; font-size: 2.6cqw; font-weight: 700; }
.velho-sub { font-size: 1.25cqw; margin-top: .8cqw; }
.velho-colunas { display: grid; grid-template-columns: 1fr; gap: 1cqw; margin: 0 3cqw; font-size: 1.1cqw; max-width: 34cqw; }
.velho-colunas div { border: 1px solid #ccc; padding: 1.2cqw; }
.velho-colunas b { color: #34569a; }
.velho-contato { margin: 2cqw 3cqw; font-size: 1cqw; color: #777; }

/* o site "depois" */
.tela-depois { background: #F4EFE8; color: #1F1C18; display: grid; grid-template-columns: .82fr 1.18fr; }
.tela-depois .novo-foto { grid-column: 1; grid-row: 1; }
.tela-depois .novo-corpo { grid-column: 2; grid-row: 1; }
.novo-topo { position: absolute; inset: 0 0 auto 0; display: flex; justify-content: space-between; align-items: center; padding: 2.4cqw 3.4cqw; z-index: 2; }
.novo-logo { font-family: var(--serif); font-size: 2.4cqw; }
.novo-logo span { color: #C2654A; }
.novo-agendar { font-family: var(--display); font-size: 1.1cqw; font-weight: 600; background: #1F1C18; color: #F4EFE8; padding: .8cqw 1.6cqw; border-radius: 99px; }
.novo-corpo { padding: 9cqw 3.4cqw 3cqw; display: flex; flex-direction: column; justify-content: center; gap: 2cqw; font-family: var(--display); }
.novo-etiqueta { font-size: 1.05cqw; letter-spacing: .12em; text-transform: uppercase; color: #8B7B6B; }
.novo-titulo { font-size: 4.2cqw; line-height: 1; letter-spacing: -.045em; font-weight: 600; }
.novo-titulo em { color: #C2654A; }
.novo-botoes { display: flex; gap: 1.6cqw; align-items: center; }
.novo-btn { background: #C2654A; color: #fff; font-weight: 600; font-size: 1.2cqw; padding: 1.1cqw 2cqw; border-radius: 99px; }
.novo-link { font-size: 1.15cqw; font-weight: 600; }
.novo-provas { display: flex; gap: 2.4cqw; margin-top: 1cqw; }
.novo-provas span { font-size: .95cqw; color: #7A6E62; display: flex; flex-direction: column; }
.novo-provas b { font-size: 1.4cqw; color: #1F1C18; letter-spacing: -.02em; }
.novo-foto {
  margin: 7cqw 0 3.4cqw 3.4cqw; border-radius: 2cqw; visibility: hidden;
  background:
    radial-gradient(60% 50% at 35% 35%, rgba(255, 236, 214, .95), transparent 70%),
    radial-gradient(70% 60% at 70% 80%, rgba(194, 101, 74, .55), transparent 70%),
    linear-gradient(160deg, #E9CDB6, #B98B73);
  position: relative; overflow: hidden;
}
.novo-cartao {
  position: absolute; left: 2.4cqw; right: 2.4cqw; bottom: 2.4cqw;
  background: rgba(255, 255, 255, .86); backdrop-filter: blur(6px);
  border-radius: 1.4cqw; padding: 1.6cqw 1.8cqw; font-family: var(--display);
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .4cqw 1.2cqw;
  box-shadow: 0 1.6cqw 4cqw rgba(80, 40, 20, .18);
}
.novo-cartao small { grid-column: 1; font-size: .95cqw; color: #8B7B6B; letter-spacing: .06em; text-transform: uppercase; }
.novo-cartao b { grid-column: 1; font-size: 1.7cqw; letter-spacing: -.03em; color: #1F1C18; }
.novo-cartao span { grid-column: 2; grid-row: 1 / span 2; font-size: 1.1cqw; font-weight: 600; color: #fff; background: #C2654A; padding: .9cqw 1.4cqw; border-radius: 99px; }
.novo-selo { position: absolute; top: 2.4cqw; left: 2.4cqw; font-family: var(--serif); font-style: italic; font-size: 1.4cqw; color: #5A3A2C; background: rgba(255, 255, 255, .6); padding: .5cqw 1.2cqw; border-radius: 99px; }

.alca { position: absolute; top: 0; bottom: 0; left: var(--corte); z-index: 3; width: 0; pointer-events: none; }
.alca-linha { position: absolute; inset: 0 auto 0 -1px; width: 2px; background: var(--brasa); }
.alca-botao {
  position: absolute; top: 50%; left: 0; transform: translate(-50%, -50%);
  width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: grab;
  background: var(--brasa); color: var(--noite); display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35); pointer-events: auto;
  transition: transform .25s var(--ease);
}
.alca-botao:active { cursor: grabbing; transform: translate(-50%, -50%) scale(.94); }
.alca-botao svg { width: 22px; height: 22px; }
.rotulo { position: absolute; bottom: 16px; z-index: 4; font-size: .78rem; font-weight: 600; padding: 6px 12px; border-radius: 99px; background: rgba(18, 17, 15, .82); color: var(--tinta); letter-spacing: .02em; }
.rotulo-antes { left: 16px; }
.rotulo-depois { right: 16px; }
.comparador-faixa { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; z-index: 5; margin: 0; }
.nota { margin-top: 14px; font-size: .85rem; color: var(--tinta-suave); }

.diagnostico { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); margin-top: clamp(40px, 7vh, 80px); }
.diag { border-top: 1px solid var(--linha); padding-top: 22px; }
.diag-num { display: block; font-size: clamp(2.2rem, 4.2vw, 3.8rem); font-weight: 300; letter-spacing: -.05em; color: var(--brasa); line-height: 1; margin-bottom: 14px; }
.diag p { color: var(--tinta-suave); max-width: 30ch; }

/* ---------- serviços ---------- */
.servicos { background: var(--papel); color: var(--tinta-escura); max-width: none; }
.servicos > * { max-width: var(--largura); margin-inline: auto; }
.servicos .secao-cab h2 em { color: #7C7466; }
.servico {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 80px);
  padding-block: clamp(36px, 6vh, 64px); border-top: 1px solid var(--linha-escura);
}
.servico-nome { display: flex; align-items: flex-start; gap: 20px; }
.servico-idx { font-family: var(--serif); font-style: italic; font-size: 1.6rem; color: var(--brasa-escura); line-height: 1; padding-top: .4em; }
.servico h3 { font-size: clamp(3.2rem, 8vw, 7.4rem); letter-spacing: -.06em; }
.servico-frase { font-size: clamp(1.3rem, 2.2vw, 1.9rem); letter-spacing: -.02em; line-height: 1.2; margin-bottom: 26px; font-weight: 500; }
.servico ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.servico li { padding-left: 30px; position: relative; color: #4A453D; }
.servico li::before { content: ""; position: absolute; left: 0; top: .72em; width: 16px; height: 1.5px; background: var(--brasa-escura); }

.servico-link { display: inline-block; margin-top: 26px; font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--brasa-escura); padding-bottom: 4px; }
.servico-link:hover { color: var(--brasa-escura); }

/* ---------- processo ---------- */
.etapas { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.etapa {
  position: sticky; top: calc(96px + var(--i, 0) * 18px);
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: start;
  background: var(--noite-2); border: 1px solid var(--linha); border-radius: 22px;
  padding: clamp(28px, 4.4vw, 56px);
  box-shadow: 0 -20px 60px -30px rgba(0, 0, 0, .8);
}
.etapa:nth-child(1) { --i: 0; }
.etapa:nth-child(2) { --i: 1; background: var(--noite-3); }
.etapa:nth-child(3) { --i: 2; background: #302D27; }
.etapa-num { font-size: clamp(3.6rem, 8vw, 7rem); font-weight: 300; line-height: .8; letter-spacing: -.06em; color: var(--brasa); }
.etapa h3 { font-size: clamp(1.6rem, 3.2vw, 2.8rem); margin-bottom: 14px; }
.etapa p { color: var(--tinta-suave); max-width: 52ch; font-size: 1.08rem; }

/* ---------- princípios ---------- */
.principios { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
.principio { padding: clamp(28px, 5vh, 56px) clamp(0px, 2vw, 32px) clamp(28px, 5vh, 56px) 0; border-top: 1px solid var(--linha); }
.principio:nth-child(even) { padding-left: clamp(20px, 3vw, 48px); border-left: 1px solid var(--linha); }
.principio h3 { font-size: clamp(1.8rem, 3.6vw, 3.2rem); margin-bottom: 12px; }
.principio p { color: var(--tinta-suave); max-width: 36ch; }

/* ---------- contato ---------- */
.contato { text-align: left; }
.contato-titulo { font-size: clamp(2.8rem, 8.4vw, 8.4rem); letter-spacing: -.06em; margin: 20px 0 clamp(36px, 6vh, 64px); }
.contato-titulo em { color: var(--brasa); }
.contato-email {
  display: inline-flex; align-items: center; gap: 16px;
  font-size: clamp(1.25rem, 3.4vw, 2.8rem); font-weight: 500; letter-spacing: -.03em;
  text-decoration: none; padding-bottom: 10px; border-bottom: 2px solid var(--brasa);
  word-break: break-all;
  transition: gap .35s var(--ease), color .2s;
}
.contato-email svg { width: .8em; height: .8em; flex: none; transition: transform .35s var(--ease); }
.contato-email:hover { color: var(--brasa); gap: 24px; }
.contato-email:hover svg { transform: rotate(45deg); }
.contato-nota { margin-top: 22px; color: var(--tinta-suave); }

/* ---------- rodapé ---------- */
.rodape {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px;
  padding: 36px var(--margem); border-top: 1px solid var(--linha);
  color: var(--tinta-suave); font-size: .9rem;
}
.rodape a { text-decoration: none; }
.rodape a:hover { color: var(--tinta); }
.rodape .marca { color: var(--tinta); font-size: .95rem; }

/* ---------- revelar ao rolar ---------- */
.js .revela { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .revela.visivel { opacity: 1; transform: none; }

/* ---------- telas menores ---------- */
@media (max-width: 900px) {
  .topo nav a:not(.topo-cta):not(.topo-fixo) { display: none; }
  .hero-base { grid-template-columns: 1fr; }
  .relogio { position: static; text-align: left; justify-content: flex-start; grid-row: 2; align-self: end; }
  .hero { grid-template-rows: auto auto auto auto; min-height: auto; padding-top: 110px; }
  .hero-titulo { grid-row: 3; }
  .hero-base { grid-row: 4; }
  .secao-cab { grid-template-columns: 1fr; }
  .secao-texto { grid-column: 1; }
  .numero { padding-top: 0; }
  .diagnostico { grid-template-columns: 1fr; }
  .servico { grid-template-columns: 1fr; }
  .principios { grid-template-columns: 1fr; }
  .principio:nth-child(even) { padding-left: 0; border-left: 0; }
  .comparador { aspect-ratio: 4 / 5; }
  .tela-depois { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .tela-depois .novo-corpo { grid-column: 1; grid-row: 1; }
  .tela-depois .novo-foto { grid-column: 1; grid-row: 2; }
  .novo-cartao small { font-size: 2cqw; } .novo-cartao b { font-size: 3.6cqw; } .novo-cartao span { font-size: 2.6cqw; padding: 1.8cqw 3cqw; }
  .novo-selo { font-size: 3cqw; }
  .novo-corpo { padding: 16cqw 5cqw 4cqw 15cqw; gap: 3.4cqw; }
  .novo-titulo { font-size: 8.2cqw; }
  .novo-etiqueta { font-size: 2.4cqw; }
  .novo-logo { font-size: 5cqw; }
  .novo-agendar, .novo-btn, .novo-link { font-size: 2.8cqw; }
  .novo-btn { padding: 2.4cqw 4cqw; }
  .novo-agendar { padding: 1.8cqw 3.4cqw; }
  .novo-provas span { font-size: 2.2cqw; }
  .novo-provas b { font-size: 3.2cqw; }
  .novo-foto { margin: 0 5cqw 16cqw; border-radius: 4cqw; visibility: visible; }
  .velho-banner, .velho-colunas { max-width: none; }
  .velho-topo { flex-direction: column; gap: 1.4cqw; padding: 4cqw; }
  .velho-logo { font-size: 5.4cqw; }
  .velho-menu { font-size: 2.4cqw; }
  .velho-bemvindo { font-size: 5.4cqw; }
  .velho-sub { font-size: 2.8cqw; }
  .velho-colunas { grid-template-columns: 1fr; font-size: 2.6cqw; }
  .velho-contato { font-size: 2.4cqw; }
  .etapa { position: static; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-titulo .linha > span { transform: none; }
  .js .revela { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
