/* ==========================================================================
   ATLAS STUDIO — geo.css
   Página SEO x GEO: fundo técnico, chip de IA, varredura a laser,
   constelação de tópicos e simulação de busca. Carregar depois de style.css.
   ========================================================================== */

body.geo {
  --ink: #f2f2f0;
  --ink-soft: #dcdcda;
  --paper: #05060a;
  --fog: #0b0d14;
  --fog-deep: #11141d;
  --line: #1e2230;
  --line-strong: #2b3145;
  --mute: #8d93a6;
  --mute-light: #626879;

  --seo: #6ee7b7;   /* verde: busca tradicional */
  --geo: #7dd3fc;   /* azul: IA generativa */
  --hot: #c4b5fd;   /* violeta: destaque */

  background: var(--paper);
  color: var(--ink);
}

body.geo ::selection { background: var(--geo); color: #04121c; }
body.geo .header { background: rgba(5, 6, 10, 0.84); }
body.geo .header.is-stuck { border-bottom-color: var(--line); }
body.geo .drawer { background: var(--paper); border-bottom-color: var(--line); }
/* Aqui os tokens estão invertidos (--ink é claro), então o rodapé base ficaria
   com fundo claro e os links brancos herdados — invisíveis. Fixamos escuro. */
body.geo .footer {
  background: var(--fog);
  color: #fff;
  border-top-color: var(--line);
}
body.geo .footer h4 { color: var(--geo); }
body.geo .footer__links a { color: rgba(255, 255, 255, 0.8); }
body.geo .footer__links a:hover { color: #fff; }
body.geo .footer__links span { color: rgba(255, 255, 255, 0.55); }
body.geo .footer__bar { border-top-color: var(--line); color: rgba(255, 255, 255, 0.55); }
body.geo .footer__bar a { color: rgba(255, 255, 255, 0.75); }
body.geo .footer__word { color: #fff; }
body.geo .footer__word span { color: rgba(255, 255, 255, 0.4); }

body.geo .btn { background: var(--ink); color: var(--paper); border-color: var(--ink); }
body.geo .btn:hover { background: #fff; }
body.geo .btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
body.geo .btn--ghost:hover { background: var(--ink); color: var(--paper); }

body.geo .faq__icon { border-color: var(--line-strong); }
body.geo .faq__icon::before, body.geo .faq__icon::after { background: var(--ink); }
body.geo .faq__q[aria-expanded="true"] .faq__icon { background: var(--geo); border-color: var(--geo); }
body.geo .faq__q[aria-expanded="true"] .faq__icon::before { background: #04121c; }

/* --------------------------------------------------------------------------
   Fundo: grade + varredura a laser
   -------------------------------------------------------------------------- */
.geo-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }

.geo-bg__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(125, 211, 252, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(125, 211, 252, 0.055) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 20%, transparent 78%);
}

/* feixe horizontal que varre a tela */
.geo-bg__laser {
  position: absolute;
  left: -20%; right: -20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--geo), var(--seo), transparent);
  filter: blur(1px);
  opacity: 0.5;
  animation: laserY 9s linear infinite;
}

.geo-bg__laser:nth-child(3) { animation-delay: -4.5s; opacity: 0.28; }

@keyframes laserY {
  0%   { top: -5%;  opacity: 0; }
  8%   { opacity: 0.5; }
  92%  { opacity: 0.5; }
  100% { top: 105%; opacity: 0; }
}

/* feixe vertical */
.geo-bg__laser--v {
  left: 50%; right: auto; top: -20%; bottom: -20%;
  width: 2px; height: auto;
  background: linear-gradient(180deg, transparent, var(--hot), transparent);
  animation: laserX 13s linear infinite;
}

@keyframes laserX {
  0%   { left: -5%;  opacity: 0; }
  10%  { opacity: 0.35; }
  90%  { opacity: 0.35; }
  100% { left: 105%; opacity: 0; }
}

.geo-bg__glow {
  position: absolute;
  width: 620px; height: 620px;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.16;
}

.geo-bg__glow--1 { background: var(--geo); top: -14%; right: -8%; animation: bob 22s ease-in-out infinite; }
.geo-bg__glow--2 { background: var(--seo); bottom: -18%; left: -10%; animation: bob 26s ease-in-out infinite reverse; }

@keyframes bob {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(-40px, 40px, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .geo-bg__laser, .geo-bg__glow { animation: none; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.geo-hero { position: relative; padding-block: clamp(50px, 7vw, 96px) clamp(40px, 5vw, 72px); }

.geo-hero h1 {
  font-size: clamp(2.5rem, 7vw, 5.4rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.97;
}

.geo-grad {
  background: linear-gradient(96deg, var(--seo), var(--geo) 55%, var(--hot));
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: flow 7s linear infinite;
}

@keyframes flow { to { background-position: 220% center; } }

.geo-hero__lead {
  font-size: var(--fs-lead);
  color: var(--mute);
  max-width: 58ch;
  margin-top: 24px;
  line-height: 1.6;
}

.geo-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* --------------------------------------------------------------------------
   Chip de IA processando
   -------------------------------------------------------------------------- */
.chip-wrap {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(20px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(125, 211, 252, 0.05), transparent 60%), var(--fog);
  overflow: hidden;
}

.chip-svg { width: 100%; max-width: 480px; height: auto; }

/* trilhas de circuito preenchendo */
.chip-svg .trilha {
  stroke: var(--line-strong);
  stroke-width: 1.4;
  fill: none;
}

.chip-svg .pulso {
  stroke: var(--geo);
  stroke-width: 1.8;
  fill: none;
  stroke-dasharray: 26 200;
  stroke-dashoffset: 226;
  filter: drop-shadow(0 0 4px var(--geo));
  animation: correr 2.8s linear infinite;
}

.chip-svg .pulso:nth-of-type(2) { animation-delay: 0.35s; stroke: var(--seo); filter: drop-shadow(0 0 4px var(--seo)); }
.chip-svg .pulso:nth-of-type(3) { animation-delay: 0.7s; }
.chip-svg .pulso:nth-of-type(4) { animation-delay: 1.05s; stroke: var(--hot); filter: drop-shadow(0 0 4px var(--hot)); }
.chip-svg .pulso:nth-of-type(5) { animation-delay: 1.4s; stroke: var(--seo); filter: drop-shadow(0 0 4px var(--seo)); }
.chip-svg .pulso:nth-of-type(6) { animation-delay: 1.75s; }
.chip-svg .pulso:nth-of-type(7) { animation-delay: 2.1s; stroke: var(--hot); filter: drop-shadow(0 0 4px var(--hot)); }
.chip-svg .pulso:nth-of-type(8) { animation-delay: 2.45s; stroke: var(--seo); filter: drop-shadow(0 0 4px var(--seo)); }

@keyframes correr { to { stroke-dashoffset: -226; } }

.chip-svg .nucleo {
  fill: none;
  stroke: var(--geo);
  stroke-width: 1.6;
  transform-origin: center;
  animation: respira 3s ease-in-out infinite;
}

@keyframes respira {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.chip-svg .pino { fill: var(--line-strong); }
.chip-svg .pino--on { fill: var(--geo); animation: piscar 1.6s steps(2) infinite; }
.chip-svg .pino--on:nth-of-type(even) { animation-delay: 0.4s; }

@keyframes piscar { 50% { fill: var(--line-strong); } }

.chip-svg .rotulo {
  font-family: var(--mono);
  font-size: 11px;
  fill: var(--mute);
  letter-spacing: 1.4px;
}

/* barra de carga do modelo */
.chip-load {
  margin-top: 22px;
  width: 100%;
  max-width: 480px;
}

.chip-load__bar {
  height: 4px;
  border-radius: 4px;
  background: var(--fog-deep);
  overflow: hidden;
}

.chip-load__fill {
  height: 100%;
  width: 0;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--seo), var(--geo), var(--hot));
  animation: carregar 4.2s var(--ease-out) infinite;
}

@keyframes carregar {
  0%   { width: 0; }
  70%  { width: 100%; }
  100% { width: 100%; opacity: 0.35; }
}

.chip-load__txt {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
}

.chip-load__txt b { color: var(--geo); font-weight: 500; }

/* --------------------------------------------------------------------------
   Constelação de tópicos (mapa de conteúdo)
   -------------------------------------------------------------------------- */
.topicos {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(22px, 3vw, 38px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--fog);
}

@media (max-width: 940px) { .topicos { grid-template-columns: 1fr; } }

.topicos__svg { width: 100%; height: auto; }

.topicos__svg .raio {
  stroke: var(--line-strong);
  stroke-width: 1;
  opacity: 0;
  animation: raioIn 0.6s var(--ease-out) forwards;
}

@keyframes raioIn { to { opacity: 0.75; } }

.topicos__svg .kw {
  font-family: var(--body);
  font-size: 11.5px;
  fill: var(--mute);
  opacity: 0;
  animation: kwIn 0.6s var(--ease-out) forwards;
}

.topicos__svg .kw--forte { fill: var(--geo); font-weight: 600; }

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

.topicos__svg .centro {
  font-family: var(--display);
  font-weight: 900;
  font-size: 19px;
  fill: var(--ink);
  letter-spacing: -0.5px;
}

.topicos__svg .anel {
  fill: none;
  stroke: var(--geo);
  stroke-width: 1;
  opacity: 0.18;
  animation: pulsarAnel 3.4s var(--ease) infinite;
}

.topicos__svg .anel:nth-of-type(2) { animation-delay: 1.1s; }
.topicos__svg .anel:nth-of-type(3) { animation-delay: 2.2s; }

@keyframes pulsarAnel {
  0%   { r: 46; opacity: 0.3; }
  100% { r: 150; opacity: 0; }
}

.topicos__lista { display: grid; gap: 12px; }

.topicos__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  font-size: 0.88rem;
  transition: border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}

.topicos__item:hover { border-color: var(--line-strong); transform: translateX(3px); }

.topicos__item i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--geo);
  flex: none;
}

.topicos__item span { color: var(--ink); }

.topicos__item b {
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--mute);
  white-space: nowrap;
}

.topicos__head {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 4px;
}

/* --------------------------------------------------------------------------
   Comparação SEO x GEO
   -------------------------------------------------------------------------- */
.duo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.duo__col {
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--fog);
  position: relative;
  overflow: hidden;
}

.duo__col::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
}

.duo__col--seo::before { background: linear-gradient(90deg, transparent, var(--seo), transparent); }
.duo__col--geo::before { background: linear-gradient(90deg, transparent, var(--geo), transparent); }

.duo__sigla {
  font-family: var(--display);
  font-size: clamp(2.6rem, 6vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 6px;
}

.duo__col--seo .duo__sigla { color: var(--seo); }
.duo__col--geo .duo__sigla { color: var(--geo); }

.duo__nome {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 18px;
}

.duo__col p { color: var(--mute); font-size: 0.94rem; line-height: 1.6; margin-bottom: 18px; }

.duo__lista { display: grid; gap: 10px; }

.duo__lista li {
  position: relative;
  padding-left: 22px;
  font-size: 0.88rem;
  color: var(--mute);
  line-height: 1.5;
}

.duo__lista li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 9px; height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.duo__lista li b { color: var(--ink); font-weight: 600; }

/* --------------------------------------------------------------------------
   Terminal de resposta de IA
   -------------------------------------------------------------------------- */
.ia-box {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, #0a0c14, #06070c);
  overflow: hidden;
  box-shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.9);
}

.ia-box__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.ia-box__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }

.ia-box__nome {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  color: var(--mute);
  margin-left: 4px;
}

.ia-tabs { display: flex; gap: 6px; padding: 12px 15px 0; }

.ia-tab {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: transparent;
  font-size: 0.74rem;
  color: var(--mute);
  transition: all var(--t-fast) var(--ease);
}

.ia-tab.is-on { border-color: var(--geo); color: var(--geo); background: rgba(125, 211, 252, 0.08); }

.ia-box__body { padding: 16px 18px 20px; }

.ia-pergunta {
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  font-size: 0.86rem;
  color: var(--ink);
  margin-bottom: 14px;
}

.ia-pergunta em {
  display: block;
  font-family: var(--mono);
  font-size: 0.58rem;
  font-style: normal;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 7px;
}

.ia-resposta {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--ink-soft);
  min-height: 150px;
}

.ia-resposta mark {
  background: rgba(125, 211, 252, 0.16);
  color: var(--geo);
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: 600;
}

.ia-cursor {
  display: inline-block;
  width: 7px; height: 1em;
  background: var(--geo);
  vertical-align: text-bottom;
  animation: piscaCursor 1s steps(2) infinite;
}

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

.ia-fonte {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 7px 13px;
  border: 1px solid var(--geo);
  border-radius: var(--r-pill);
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  color: var(--geo);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.ia-fonte.is-on { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Etapas / cards
   -------------------------------------------------------------------------- */
.geo-card {
  position: relative;
  padding: clamp(22px, 2.8vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.028), transparent);
  overflow: hidden;
  transition: transform var(--t-mid) var(--ease), border-color var(--t-mid) var(--ease);
}

.geo-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }

.geo-card__n {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  color: var(--geo);
  margin-bottom: 14px;
}

.geo-card h3 { font-size: 1.16rem; margin-bottom: 9px; letter-spacing: -0.02em; }
.geo-card h4 { font-family: var(--body); font-size: 1rem; font-weight: 600; letter-spacing: 0; margin-bottom: 8px; }
.geo-card p { color: var(--mute); font-size: 0.9rem; line-height: 1.6; }

.g3-geo { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: clamp(14px, 1.8vw, 20px); }
.g4-geo { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: clamp(12px, 1.4vw, 16px); }

/* --------------------------------------------------------------------------
   Números
   -------------------------------------------------------------------------- */
.geo-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  border-block: 1px solid var(--line);
}

.geo-kpi { padding: clamp(24px, 3vw, 38px) clamp(16px, 2vw, 28px); border-left: 1px solid var(--line); }
.geo-kpi:first-child { border-left: 0; }

.geo-kpi__n {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  background: linear-gradient(96deg, var(--seo), var(--geo));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.geo-kpi__n small { font-size: 0.42em; }

.geo-kpi__l {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
  margin-top: 11px;
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   CTA final
   -------------------------------------------------------------------------- */
.geo-final {
  position: relative;
  text-align: center;
  padding: clamp(40px, 6vw, 82px) clamp(20px, 4vw, 58px);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(700px circle at 50% 0%, rgba(125, 211, 252, 0.12), transparent 62%),
    var(--fog);
}

.geo-final h2 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  margin-bottom: 18px;
}

.geo-final p { color: var(--mute); font-size: var(--fs-lead); max-width: 58ch; margin-inline: auto; }
.geo-final__cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }
