/* ============================================================
   GIDA — site institucional · folha de estilo de referência
   Identidade: Grafite & Ciano  ·  Manrope + IBM Plex Mono
   Depende de: gida-tokens.css (variáveis --gida-*)
   ============================================================ */

/* ---------- reset mínimo ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--gida-bg);
  color: var(--gida-text);
  font-family: var(--gida-font-ui);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, figure { margin: 0; }
a { color: var(--gida-cyan); text-decoration: none; }
a:hover { color: var(--gida-cyan-2); }
img, canvas, svg { display: block; max-width: 100%; }
.mono { font-family: var(--gida-font-mono); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.eyebrow {
  font-family: var(--gida-font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase; color: var(--gida-cyan);
}

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--gida-font-ui); font-weight: 800; font-size: 15px;
  padding: 15px 24px; border-radius: 11px; border: 0; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn--primary {
  background: linear-gradient(120deg, var(--gida-cyan), var(--gida-cyan-2));
  color: #052; box-shadow: 0 18px 40px -18px rgba(34,211,238,.65);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 22px 46px -18px rgba(34,211,238,.8); }
.btn--ghost { background: transparent; border: 1px solid var(--gida-border-2); color: var(--gida-text); font-weight: 700; }
.btn--ghost:hover { border-color: rgba(34,211,238,.5); color: var(--gida-cyan-2); }
:focus-visible { outline: 2px solid var(--gida-cyan); outline-offset: 3px; border-radius: 6px; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12,17,20,.82); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--gida-border);
}
.site-head__in { height: 68px; display: flex; align-items: center; gap: 28px; }
.site-head nav { display: flex; gap: 26px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.site-head nav a { font-size: 14px; font-weight: 600; color: var(--gida-text-2); }
.site-head nav a:hover { color: var(--gida-text); }

/* ---------- logotipo (CSS puro, sem imagem) ----------
   O "i" é a única letra em cor: haste ciano + pingo luminoso = IA.       */
.gida-logo {
  display: inline-flex; align-items: flex-end; line-height: 1;
  font-weight: 800; letter-spacing: -.03em; color: var(--gida-text);
  font-size: var(--logo-size, 24px);
}
.gida-logo__i {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: flex-end;
  gap: calc(var(--logo-size, 24px) * .08);
  height: calc(var(--logo-size, 24px) * .72);
  margin: 0 calc(var(--logo-size, 24px) * .09);
}
.gida-logo__dot {
  width: calc(var(--logo-size, 24px) * .24); height: calc(var(--logo-size, 24px) * .24);
  border-radius: 50%; background: var(--gida-cyan-3);
  box-shadow: 0 0 calc(var(--logo-size, 24px) * .38) var(--gida-cyan);
}
.gida-logo__stem {
  width: calc(var(--logo-size, 24px) * .21); height: calc(var(--logo-size, 24px) * .46);
  border-radius: 999px; background: linear-gradient(180deg, var(--gida-cyan-2), var(--gida-cyan));
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--gida-border); }
.hero__mesh {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: .55;                                   /* SUTIL — não aumentar */
  -webkit-mask-image: radial-gradient(120% 100% at 70% 40%, #000 20%, transparent 78%);
          mask-image: radial-gradient(120% 100% at 70% 40%, #000 20%, transparent 78%);
}
.hero__glow {
  position: absolute; top: -320px; right: -200px; width: 820px; height: 820px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(34,211,238,.14), transparent 68%);
}
.hero__in {
  position: relative; padding: 92px 28px 96px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 56px; align-items: center;
}
.hero h1 { font-size: clamp(38px, 4.6vw, 58px); line-height: 1.04; letter-spacing: -.035em; font-weight: 800; }
.hero p.lead { font-size: clamp(16px, 1.4vw, 18px); line-height: 1.62; color: var(--gida-text-2); font-weight: 500; max-width: 33em; }
.pill {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px; border-radius: 999px;
  background: rgba(34,211,238,.09); border: 1px solid rgba(34,211,238,.28);
  font-weight: 600; font-size: 12.5px; color: var(--gida-cyan-2);
}
.pill__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gida-cyan); box-shadow: 0 0 9px var(--gida-cyan); animation: gida-pulse 2s infinite; }

/* faixa de métricas */
.metrics { position: relative; border-top: 1px solid var(--gida-border); background: rgba(12,17,20,.6); }
.metrics__in { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); padding: 0; }
.metrics__cell { padding: 26px 28px; border-right: 1px solid var(--gida-border); }
.metrics__cell:last-child { border-right: 0; }
.metrics__n { font-family: var(--gida-font-mono); font-weight: 600; font-size: 32px; color: var(--gida-cyan-2); letter-spacing: -.02em; }
.metrics__l { font-size: 13px; color: var(--gida-text-2); margin-top: 6px; }

/* ---------- seções 01/02/03 ---------- */
.feature { padding: 48px 0; }
.feature__in { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 52px; align-items: center; }
.feature__num { font-family: var(--gida-font-mono); font-size: 12px; color: var(--gida-cyan); letter-spacing: .18em; }
.feature h2 { font-size: clamp(28px, 3vw, 36px); font-weight: 800; letter-spacing: -.025em; line-height: 1.1; margin-top: 12px; }
.feature p { font-size: 16px; line-height: 1.65; color: var(--gida-text-2); margin-top: 16px; max-width: 30em; }
.card { background: var(--gida-surface); border: 1px solid var(--gida-border); border-radius: 20px; }

/* ---------- chat do WhatsApp ---------- */
.gida-chat {
  background: var(--gida-surface); border: 1px solid var(--gida-border);
  border-radius: 22px; overflow: hidden; box-shadow: 0 50px 100px -50px rgba(0,0,0,.95);
}
.gida-chat__head {
  display: flex; align-items: center; gap: 11px; padding: 16px 20px;
  border-bottom: 1px solid var(--gida-border); background: var(--gida-elevated);
}
.gida-chat__avatar {
  width: 36px; height: 36px; border-radius: 50%; flex: none;
  background: linear-gradient(155deg, var(--gida-raised), var(--gida-bg));
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
}
.gida-chat__avatar i { width: 5px; height: 5px; border-radius: 50%; background: var(--gida-cyan-3); box-shadow: 0 0 7px var(--gida-cyan); }
.gida-chat__avatar b { width: 4px; height: 11px; border-radius: 2px; background: linear-gradient(180deg, var(--gida-cyan-2), var(--gida-cyan)); }
.gida-chat__name { font-weight: 700; font-size: 14.5px; }
.gida-chat__status { font-size: 11px; color: var(--gida-proc-sucesso); }
.gida-chat__tag { margin-left: auto; font-family: var(--gida-font-mono); font-size: 10px; color: var(--gida-text-3); letter-spacing: .12em; text-transform: uppercase; }

.gida-chat__log {
  height: 430px; overflow-y: auto; padding: 20px;
  display: flex; flex-direction: column; gap: 11px;
  background: linear-gradient(180deg, #12191D, #0F1518);
  scrollbar-width: thin; scrollbar-color: var(--gida-raised) transparent;
}
.gida-row { display: flex; animation: gida-bubble .28s ease both; }
.gida-row--bot { justify-content: flex-start; }
.gida-row--user { justify-content: flex-end; }
.gida-row--btns { flex-wrap: wrap; gap: 8px; padding-left: 2px; }

.gida-msg { border-radius: 16px; padding: 12px 15px; }
.gida-msg--bot { max-width: 90%; background: var(--gida-raised); border-bottom-left-radius: 5px; box-shadow: 0 8px 20px -12px rgba(0,0,0,.8); }
.gida-msg--user { max-width: 82%; background: rgba(34,211,238,.16); border: 1px solid rgba(34,211,238,.3); border-bottom-right-radius: 5px; font-size: 13.5px; line-height: 1.5; }
.gida-msg__badge {
  display: inline-flex; padding: 4px 9px; border-radius: 6px; margin-bottom: 9px;
  background: rgba(34,211,238,.16); color: var(--gida-cyan-2);
  font-weight: 700; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase;
}
.gida-msg__text { font-size: 13.5px; line-height: 1.55; }
.gida-msg__rows { display: flex; flex-direction: column; gap: 6px; margin-top: 11px; padding-top: 11px; border-top: 1px solid rgba(255,255,255,.09); }
.gida-msg__row { display: flex; align-items: baseline; gap: 10px; }
.gida-msg__row .k { font-size: 12px; color: var(--gida-text-3); min-width: 82px; }
.gida-msg__row .v { font-family: var(--gida-font-mono); font-size: 12.5px; font-weight: 600; }
.gida-msg__row .v.is-warn { color: var(--gida-amber); }
.gida-msg__doc {
  display: flex; align-items: center; gap: 11px; margin-top: 11px; padding: 11px 13px;
  border-radius: 11px; background: rgba(12,17,20,.7); border: 1px solid var(--gida-border-2);
}
.gida-msg__doc-meta { min-width: 0; }
.gida-msg__doc-meta .n { font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gida-msg__doc-meta .s { font-family: var(--gida-font-mono); font-size: 10.5px; color: var(--gida-text-3); margin-top: 2px; }
.gida-msg__doc svg:last-child { margin-left: auto; flex: none; }
.gida-msg__time { font-family: var(--gida-font-mono); font-size: 9.5px; color: var(--gida-text-3); margin-top: 8px; text-align: right; }

.gida-typing { background: var(--gida-raised); border-radius: 16px 16px 16px 5px; padding: 14px 17px; display: flex; gap: 5px; }
.gida-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--gida-cyan-2); animation: gida-dot 1.2s infinite; }
.gida-typing span:nth-child(2) { animation-delay: .18s; }
.gida-typing span:nth-child(3) { animation-delay: .36s; }

.gida-quick {
  font-family: var(--gida-font-ui); font-weight: 700; font-size: 12.5px;
  padding: 9px 15px; border-radius: 999px; cursor: pointer;
  background: transparent; border: 1px solid rgba(34,211,238,.45); color: var(--gida-cyan-2);
  transition: background .15s ease, color .15s ease;
}
.gida-quick:hover { background: rgba(34,211,238,.12); }
.gida-quick.is-chosen { background: var(--gida-cyan); border-color: var(--gida-cyan); color: #052; }

.gida-chat__foot { padding: 14px 18px 16px; border-top: 1px solid var(--gida-border); background: var(--gida-elevated); }
.gida-chat__hint { font-family: var(--gida-font-mono); font-size: 9.5px; color: var(--gida-text-3); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; }
.gida-chat__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.gida-chip {
  font-family: var(--gida-font-ui); font-weight: 600; font-size: 12.5px;
  padding: 9px 14px; border-radius: 999px; cursor: pointer;
  background: var(--gida-bg); border: 1px solid var(--gida-border-2); color: var(--gida-text-2);
  transition: border-color .15s ease, color .15s ease;
}
.gida-chip:hover { border-color: rgba(34,211,238,.5); color: var(--gida-cyan-2); }

/* ---------- barras (motivos) ---------- */
.bar { height: 9px; border-radius: 999px; background: var(--gida-raised); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--gida-cyan), var(--gida-cyan-2)); }

/* ---------- trilha de auditoria ---------- */
.audit { background: #080E11; border: 1px solid var(--gida-border); border-radius: 20px; overflow: hidden; }
.audit__bar { display: flex; align-items: center; gap: 8px; padding: 13px 18px; border-bottom: 1px solid var(--gida-border); background: var(--gida-surface); }
.audit__bar i { width: 9px; height: 9px; border-radius: 50%; display: block; }
.audit__body { padding: 20px; font-family: var(--gida-font-mono); font-size: 12px; line-height: 2.1; color: var(--gida-text-2); }
.audit__ts { color: var(--gida-text-3); }

/* ---------- animações ---------- */
@keyframes gida-pulse { 0%,100% { opacity: .45 } 50% { opacity: 1 } }
@keyframes gida-bubble { from { opacity: 0; transform: translateY(8px) scale(.97) } to { opacity: 1; transform: none } }
@keyframes gida-dot { 0%,60%,100% { transform: translateY(0); opacity: .4 } 30% { transform: translateY(-4px); opacity: 1 } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}

/* ---------- responsivo ---------- */
@media (max-width: 720px) {
  .hero__in { padding: 60px 20px 64px; gap: 40px; }
  .wrap { padding: 0 20px; }
  .gida-chat__log { height: 380px; }
  .metrics__cell { border-right: 0; border-bottom: 1px solid var(--gida-border); }
}
