/*--------------------------------------------------------------
# Hero com vídeo interativo (núcleo que se transforma em cada solução)
# Vídeos em assets/videos/hero/, lógica em assets/js/hero-video.js.
# Os seletores usam #hero.ic-hero para vencer as regras antigas de #hero.
--------------------------------------------------------------*/
#hero.ic-hero {
  --ic-bg: #0d0d0d;
  --ic-ink: #f2f4f2;
  --ic-mute: #a3aba5;
  --ic-green: #3dd66a;
  --ic-line: rgba(61, 214, 106, .28);
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background: var(--ic-bg);
  color: var(--ic-ink);
  padding: 0;
}

#hero.ic-hero .ic-stage {
  position: absolute;
  inset: -2%;
  z-index: -2;
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
  will-change: transform;
}

#hero.ic-hero .ic-stage video,
#hero.ic-hero .ic-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 50%;
  opacity: 0;
  transition: opacity .5s ease;
}

#hero.ic-hero .ic-stage .on { opacity: 1; }

#hero.ic-hero .ic-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(13, 13, 13, .92) 0%, rgba(13, 13, 13, .7) 34%, rgba(13, 13, 13, 0) 62%),
    linear-gradient(0deg, rgba(13, 13, 13, .85) 0%, rgba(13, 13, 13, 0) 28%),
    linear-gradient(180deg, rgba(13, 13, 13, .7) 0%, rgba(13, 13, 13, 0) 18%);
}

#hero.ic-hero .ic-glow {
  position: absolute;
  z-index: -1;
  width: 520px;
  height: 520px;
  left: 0;
  top: 0;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(61, 214, 106, .16), rgba(61, 214, 106, 0) 65%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity .4s;
  mix-blend-mode: screen;
}

#hero.ic-hero .ic-wrap {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 140px max(5vw, 16px) 80px;
}

#hero.ic-hero .ic-copy { max-width: 580px; }

#hero.ic-hero .hero-badge { margin-bottom: 22px; }

#hero.ic-hero h1 {
  font: 700 clamp(32px, 4.4vw, 52px)/1.08 'JetBrains Mono', Consolas, monospace;
  letter-spacing: -.02em;
  color: var(--ic-ink);
  margin: 0 0 18px;
  text-wrap: balance;
}

#hero.ic-hero .ic-sub {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ic-mute);
  margin: 0 0 30px;
  max-width: 46ch;
}

#hero.ic-hero .ic-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 44px;
}

#hero.ic-hero .ic-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 10px;
  font: 600 16px/1 Roboto, system-ui, sans-serif;
  letter-spacing: 0;
  text-decoration: none;
  transition: transform .15s, box-shadow .2s, background .2s, border-color .2s;
}

#hero.ic-hero .ic-btn.pri { background: var(--ic-green); color: #06140a; }
#hero.ic-hero .ic-btn.pri:hover { box-shadow: 0 0 28px rgba(61, 214, 106, .45); transform: translateY(-1px); }
#hero.ic-hero .ic-btn.sec { border: 1px solid var(--ic-line); color: var(--ic-ink); background: rgba(13, 13, 13, .4); }
#hero.ic-hero .ic-btn.sec:hover { border-color: var(--ic-green); }
#hero.ic-hero .ic-btn:focus-visible,
#hero.ic-hero .ic-tab:focus-visible { outline: 2px solid var(--ic-green); outline-offset: 3px; }

#hero.ic-hero .ic-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }

#hero.ic-hero .ic-tab {
  position: relative;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--ic-line);
  background: rgba(13, 13, 13, .55);
  color: var(--ic-mute);
  font: 500 15px/1 Roboto, system-ui, sans-serif;
  cursor: pointer;
  overflow: hidden;
  transition: color .2s, border-color .2s, background .2s;
  backdrop-filter: blur(6px);
}

#hero.ic-hero .ic-tab:hover { color: var(--ic-ink); border-color: rgba(61, 214, 106, .6); }
#hero.ic-hero .ic-tab[aria-selected="true"] { color: #06140a; background: var(--ic-green); border-color: var(--ic-green); }
#hero.ic-hero .ic-tab .bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--ic-green); }
#hero.ic-hero .ic-tab[aria-selected="true"] .bar { background: #06140a; opacity: .35; }

#hero.ic-hero .ic-info { min-height: 52px; color: var(--ic-mute); font-size: 15px; line-height: 1.55; margin: 0; }
#hero.ic-hero .ic-info strong { color: var(--ic-ink); font-weight: 600; }
#hero.ic-hero .ic-info a { color: var(--ic-green); text-decoration: none; white-space: nowrap; }
#hero.ic-hero .ic-info a:hover { text-decoration: underline; }
#hero.ic-hero .ic-info .soon {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid var(--ic-line);
  color: var(--ic-green);
  font-size: 13px;
}

@media (max-width: 760px) {
  #hero.ic-hero { display: block; min-height: auto; padding-top: 72px; }
  #hero.ic-hero .ic-stage {
    position: relative;
    inset: auto;
    height: 50svh;
    min-height: 300px;
    margin-bottom: -80px;
    -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 98%);
    mask-image: linear-gradient(180deg, #000 55%, transparent 98%);
  }
  #hero.ic-hero .ic-stage video,
  #hero.ic-hero .ic-stage img { object-position: 74% 50%; }
  #hero.ic-hero .ic-shade { display: none; }
  #hero.ic-hero .ic-wrap { padding-top: 0; padding-bottom: 56px; position: relative; }
  #hero.ic-hero .ic-copy { display: flex; flex-direction: column; }
  #hero.ic-hero .hero-badge { align-self: flex-start; }
  #hero.ic-hero .ic-tabs {
    order: 4;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin-inline: calc(-1 * max(5vw, 16px));
    padding-inline: max(5vw, 16px);
  }
  #hero.ic-hero .ic-tabs::-webkit-scrollbar { display: none; }
  #hero.ic-hero .ic-tab { flex: none; }
  #hero.ic-hero .ic-info { order: 5; }
  #hero.ic-hero .ic-cta { order: 6; margin: 8px 0 0; }
  #hero.ic-hero .ic-btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  #hero.ic-hero .ic-stage,
  #hero.ic-hero .ic-stage video { transition: none; }
}
