/* ───────────────────────────────────────────────────────────────
   Hero animado (motion) — Inundaweb
   Tudo escopado em .ihero. Usa as variaveis do site.css quando existem.
   ─────────────────────────────────────────────────────────────── */
.ihero {
  --ih-bg: var(--bg-deep, #0a1628);
  --ih-surface: var(--bg-surface, #152743);
  --ih-border: var(--border, #1f3458);
  --ih-cyan: var(--cyan, #00d4e8);
  --ih-cyan-bright: var(--cyan-bright, #1fe5f7);
  --ih-cyan-deep: var(--cyan-deep, #00a8b8);
  --ih-text: var(--text, #fff);
  --ih-muted: var(--text-muted, #8fa9c4);
  --ih-faded: var(--text-faded, #5c7691);
  --ih-dur: 5s; /* duracao de cada cena (sincronizada com o JS) */

  position: relative;
  /* altura dada pelo conteudo (nao pela tela): em monitores altos nao sobra espaco vazio
     e a faixa de clientes aparece logo abaixo */
  padding: 76px 0 0; /* topo: menu fixo do site; base zerada (o site.css da 140px a toda section) */
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  /* profundidade: mais claro perto da superficie, escurecendo ate o azul da marca */
  background: linear-gradient(180deg, #0b2238 0%, var(--ih-bg) 60%);
  color: var(--ih-text);
  font-family: Inter, system-ui, -apple-system, sans-serif;
}

/* ─── fundo: fundo do mar (gradiente de profundidade + canvas) ─── */
.ihero__sea { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
/* faixa da superficie da agua, ondulando no topo */
.ihero::before {
  content: ""; position: absolute; left: -10%; right: -10%; top: -40px; height: 120px; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 100% at 50% 0%, rgba(120, 230, 245, 0.06), transparent 70%);
  animation: ihero-surface 9s ease-in-out infinite alternate;
}
@keyframes ihero-surface { to { transform: translateX(6%) scaleY(1.25); } }
@media (prefers-reduced-motion: reduce) { .ihero::before { animation: none; } }
.ihero__visual { min-width: 0; }
.ihero__inner {
  width: 100%; max-width: 1320px; margin: 0 auto; padding: 48px 40px 28px;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center;
}

/* ─── coluna de texto ─── */
.ih-w { display: inline-block; } /* palavras do titulo, animadas pelo JS */
/* Titulos empilhados na mesma celula: a troca nao muda a altura */
.ihero__heads { display: grid; align-items: center; }
.ihero__heads > * { grid-area: 1 / 1; }
.ihero__title { margin: 0; font-size: clamp(40px, 5vw, 74px); font-weight: 700; line-height: 1.04; letter-spacing: -0.03em; color: #fff; }
.ih-acc { font-weight: inherit; color: var(--ih-cyan-deep); }
/* so o texto inicial aparece sem JS; as cenas sao reveladas pelo script */
.ih-h[data-scene] { visibility: hidden; }
.ih-h.is-on { visibility: visible; }

.ihero__actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; }
.ihero__btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 16px 28px; border-radius: 999px;
  font-size: 15px; font-weight: 600; text-decoration: none; transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.ihero__btn--primary { background: var(--ih-cyan); color: #04121c; }
.ihero__btn--primary:hover { transform: translateY(-2px); background: var(--ih-cyan-bright); }
.ihero__btn--ghost { border: 1px solid rgba(255, 255, 255, 0.22); color: #fff; }
.ihero__btn--ghost:hover { border-color: var(--ih-cyan); color: var(--ih-cyan); }
.ihero__btn span { transition: transform 0.2s; }
.ihero__btn:hover span { transform: translateX(4px); }

/* navegacao por bolinhas: a ativa vira pilula e se preenche com o tempo da cena */
.ihero__dots { display: flex; justify-content: center; gap: 10px; margin-top: 22px; }
.ihero__tab {
  appearance: none; position: relative; width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, 0.22); overflow: hidden; transition: width 0.35s ease, background 0.3s;
}
.ihero__tab::after { content: ""; position: absolute; inset: -10px -4px; } /* area de toque maior */
.ihero__tab b { position: absolute; inset: 0; border-radius: inherit; background: var(--ih-cyan); transform: scaleX(0); transform-origin: left center; }
.ihero__tab:hover { background: rgba(255, 255, 255, 0.4); }
.ihero__tab.is-active { width: 34px; }
.ihero__tab:focus-visible { outline: 2px solid var(--ih-cyan); outline-offset: 4px; }

/* ─── palco das cenas ─── */
.ihero__stage { position: relative; width: 100%; aspect-ratio: 1 / 0.84; max-height: 580px; }
.ihero__scene { position: absolute; inset: 0; visibility: hidden; }
.ihero__scene.is-static { visibility: visible; } /* reduzir movimento */
.ihero__kicker { font-family: "JetBrains Mono", monospace; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ih-cyan); }

/* Cena 1 — anos */
.ih-years { display: flex; flex-direction: column; justify-content: center; height: 100%; padding: 0 4%; }
.ih-years__num { display: flex; align-items: flex-start; font-weight: 700; line-height: 0.82; letter-spacing: -0.05em; font-size: clamp(150px, 17vw, 260px); }
.ih-years__num small { font-size: 0.42em; margin-top: 0.12em; margin-left: 0.04em; color: var(--ih-cyan-deep); font-weight: 700; }
.ih-years__label { margin-top: 18px; font-size: clamp(22px, 2.2vw, 32px); font-weight: 500; line-height: 1.25; max-width: 480px; }
.ih-years__label b { font-weight: 700; color: var(--ih-cyan-deep); }
.ih-line { position: relative; margin-top: 54px; height: 60px; }
.ih-line__track { position: absolute; left: 0; right: 0; top: 10px; height: 2px; background: rgba(255, 255, 255, 0.1); }
.ih-line__fill { position: absolute; left: 0; right: 0; top: 10px; height: 2px; background: linear-gradient(90deg, rgba(0, 212, 232, 0.2), var(--ih-cyan)); transform-origin: left center; }
.ih-line__comet { position: absolute; top: 4px; left: 0; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: #fff; box-shadow: 0 0 16px 4px var(--ih-cyan); }
.ih-line__tick { position: absolute; top: 4px; width: 14px; margin-left: -7px; text-align: center; }
.ih-line__tick i { display: block; width: 14px; height: 14px; border-radius: 50%; background: var(--ih-bg); border: 2px solid var(--ih-border); }
.ih-line__tick span { position: absolute; top: 24px; left: 50%; transform: translateX(-50%); font: 500 12px "JetBrains Mono", monospace; color: var(--ih-faded); }

/* Cena 2 — alcance */
.ih-reach { height: 100%; display: flex; flex-direction: column; }
.ih-reach__map { position: relative; flex: 1; min-height: 0; }
.ih-reach__map svg { width: 100%; height: 100%; display: block; }
.ih-reach__map .world-markers { display: none; } /* usamos marcadores proprios */
.ih-reach__map pattern circle { fill: rgba(143, 169, 196, 0.6); }
.ih-reach__arc { fill: none; stroke: var(--ih-cyan); stroke-width: 1.4; stroke-linecap: round; opacity: 0.85; }
.ih-reach__dot { fill: var(--ih-cyan); }
.ih-reach__ring { fill: none; stroke: var(--ih-cyan); stroke-width: 1.2; }
.ih-reach__stats { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 14px; }
.ih-stat { padding: 18px 20px; border-radius: 16px; background: rgba(21, 39, 67, 0.72); border: 1px solid var(--ih-border); backdrop-filter: blur(6px); }
.ih-stat b { display: block; font-size: clamp(30px, 3vw, 44px); font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.ih-stat b em { font-style: normal; color: var(--ih-cyan-deep); }
.ih-stat b span { display: inline; margin: 0; font-size: inherit; color: inherit; }
.ih-stat span { display: block; margin-top: 8px; font-size: 13px; color: var(--ih-muted); }

/* Cena 3 — cases */
.ih-cases { height: 100%; display: flex; flex-direction: column; justify-content: center; }
.ih-cases__deck { position: relative; height: 72%; margin-top: 22px; perspective: 1600px; }
.ih-case {
  position: absolute; left: 50%; top: 50%; width: 76%; margin-left: -38%; aspect-ratio: 16 / 9; transform: translateY(-50%);
  border-radius: 16px; overflow: hidden; display: block; text-decoration: none; color: #fff;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08);
  background: var(--ih-surface);
}
.ih-case img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ih-case__tag {
  position: absolute; left: 14px; bottom: 14px; display: flex; flex-direction: column; padding: 10px 14px; border-radius: 12px;
  background: rgba(6, 14, 26, 0.82); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, 0.1);
}
.ih-case__tag b { font-size: 15px; font-weight: 600; }
.ih-case__tag span { font-size: 12px; color: var(--ih-muted); }
.ih-case:focus-visible { outline: 3px solid var(--ih-cyan); outline-offset: 4px; }

/* Cena 4 — IA */
.ih-ai { position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; }
.ih-ai__orbit { position: relative; flex: 0 1 auto; height: calc(100% - 120px); max-height: 500px; max-width: 82%; aspect-ratio: 1; }
.ih-ai__ring { position: absolute; border-radius: 50%; border: 1px dashed rgba(0, 212, 232, 0.28); }
.ih-ai__ring--1 { inset: 12%; }
.ih-ai__ring--2 { inset: 0; border-style: solid; border-color: rgba(255, 255, 255, 0.07); }
.ih-ai__core {
  position: absolute; left: 50%; top: 50%; width: 34%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: radial-gradient(circle at 50% 35%, #12304f, #0a1628 70%); border: 1px solid rgba(0, 212, 232, 0.45);
  box-shadow: 0 0 60px rgba(0, 212, 232, 0.25), inset 0 0 40px rgba(0, 212, 232, 0.12);
}
.ih-ai__core img { width: 64%; height: auto; }
.ih-ai__core span { font: 600 13px "JetBrains Mono", monospace; letter-spacing: 0.1em; color: var(--ih-cyan); }
.ih-ai__spin { position: absolute; inset: 0; }
.ih-ai__chip {
  position: absolute; left: 50%; top: 50%; width: 0; height: 0;
}
.ih-ai__chip span {
  position: absolute; transform: translate(-50%, -50%); white-space: nowrap; padding: 9px 16px; border-radius: 999px;
  background: rgba(21, 39, 67, 0.92); border: 1px solid rgba(0, 212, 232, 0.35); font-size: 14px; font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.ih-ai__line { position: absolute; left: 50%; top: 50%; height: 1px; transform-origin: 0 0; background: linear-gradient(90deg, rgba(0, 212, 232, 0.6), rgba(0, 212, 232, 0)); }
.ih-ai__title { text-align: center; font-size: clamp(20px, 2.2vw, 30px); font-weight: 500; line-height: 1.25; }
.ih-ai__title b { font-weight: 700; color: var(--ih-cyan-deep); }
.ih-ai .ihero__kicker { text-align: center; }

/* ─── responsivo ─── */
/* telas grandes (ex.: monitor 27"): conteudo e palco maiores, sem esticar a altura */
@media (min-width: 1680px) {
  .ihero__inner { max-width: 1560px; padding: 64px 48px 36px; }
  .ihero__stage { max-height: 680px; }
  .ihero__title { font-size: clamp(64px, 4.2vw, 88px); }
}

@media (max-width: 960px) {
  .ihero__inner { grid-template-columns: 1fr; gap: 36px; padding: 48px 20px 32px; }
  .ihero__stage { aspect-ratio: 1 / 0.95; max-height: 520px; }
  .ih-reach__stats { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .ih-stat { padding: 12px; }
  .ih-stat span { font-size: 11px; }
  .ih-ai__chip span { font-size: 12px; padding: 7px 12px; }
}
@media (max-width: 520px) {
  .ih-line__tick span { font-size: 10px; }
  .ih-cases__deck { height: 78%; }
  .ih-case { width: 84%; margin-left: -42%; }
}
