/* =========================================================================
   TEMP IA — Responsivo
   Ordem: breakpoints do maior para o menor + ajustes de ponteiro/altura.
   ========================================================================= */

/* ---------------------------------------------------------- <= 1180px --- */
@media (max-width: 1180px) {
  :root {
    --g3d-radius: 380px;
    --g3d-card-w: 280px;
    --g3d-card-h: 396px;
  }
  .hero__inner { grid-template-columns: 1fr .82fr; }
  .core { width: min(400px, 74vw); }
}

/* ----------------------------------------------------------- <= 980px --- */
@media (max-width: 980px) {
  :root {
    --g3d-radius: 330px;
    --g3d-card-w: 262px;
    --g3d-card-h: 384px;
    --g3d-persp: 1200px;
  }

  /* Nav vira gaveta */
  .nav__burger { display: block; }
  .nav__links {
    position: fixed;
    top: 0; right: 0;
    width: min(340px, 86vw);
    height: 100svh;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: .3rem;
    padding: 5rem 1.5rem 2rem;
    background: rgba(8, 10, 17, .96);
    backdrop-filter: blur(24px);
    border-left: 1px solid var(--line-strong);
    box-shadow: -30px 0 90px rgba(0, 0, 0, .6);
    transform: translateX(105%);
    transition: transform .5s var(--e-out);
    z-index: 5;
  }
  .nav__links.is-open { transform: none; }
  .nav__links > a[data-nav] {
    padding: .95rem 1rem;
    font-size: 1.06rem;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }
  .nav__links > a[data-nav]::after { left: 1rem; transform: none; bottom: .55rem; }
  .nav__links > a[data-nav]:hover::after,
  .nav__links > a[data-nav].is-active::after { width: 26px; }
  .nav__cta { margin: 1.2rem 0 0; justify-content: center; }

  /* Hero empilha */
  .hero { min-height: auto; padding-top: 7.5rem; }
  .hero__inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero__visual { order: -1; }
  .core { width: min(340px, 72vw); }
  .core__hg { width: 96px; height: 130px; margin: -65px 0 0 -48px; }
  .core__cap { width: 110px; height: 110px; margin-left: -55px; }
  .core__cap--t { top: -55px; }
  .core__cap--b { bottom: -55px; }
  .core__sat { width: 46px; height: 46px; margin: -23px 0 0 -23px; }
  .core__sat .ico { width: 21px; height: 21px; }
  .hero__scroll { display: none; }

  /* Blocos de duas colunas viram uma */
  .platform__inner,
  .tech__inner,
  .cta__inner { grid-template-columns: 1fr; }
  .platform__stack { order: -1; min-height: 380px; }
  .tech__orbit { order: -1; min-height: 400px; }

  .steps { grid-template-columns: 1fr 1fr; }
  .steps__line { display: none; }

  .g3d__detail { grid-template-columns: 1fr; }
  .g3d__detail-side { justify-items: stretch; }

  .footer__inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__col--wide { grid-column: 1 / -1; }
  .footer__col--wide ul { columns: 3; }
}

/* ----------------------------------------------------------- <= 720px --- */
@media (max-width: 720px) {
  :root {
    /* raio maior no mobile: o cilindro é reescalado pelo nº de soluções,
       e sem folga aqui os cards vizinhos cobrem o que está em foco */
    --g3d-radius: 330px;
    --g3d-card-w: 232px;
    --g3d-card-h: 360px;
    --g3d-persp: 950px;
    --section-y: 4rem;
  }

  .hero__meta { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
  .hero__actions .btn { flex: 1 1 100%; }

  .g3d__viewport { height: 420px; }
  .g3d__rings i:nth-child(1) { width: 480px; height: 480px; }
  .g3d__rings i:nth-child(2) { width: 600px; height: 600px; }
  .g3d__rings i:nth-child(3) { width: 380px; height: 380px; }
  /* Card estreito: menos respiro, menos tags, descrição mais curta —
     senão o conteúdo estoura os 360px de altura. */
  .g3card__inner { padding: 1.15rem 1.1rem 1rem; gap: .58rem; }
  .g3card__icon { width: 48px; height: 48px; border-radius: 14px; }
  .g3card__icon .ico { width: 24px; height: 24px; }
  .g3card__name { font-size: 1.32rem; }
  .g3card__desc { -webkit-line-clamp: 3; font-size: .79rem; }
  .g3card__tags span:nth-child(n+4) { display: none; }
  .g3d__hint { display: none; }

  /* Muitos dots num espaço curto */
  .g3d__dots { gap: .32rem; }
  .g3d__dot { width: 7px; height: 7px; }
  .g3d__dot.is-active { width: 20px; }

  .cform__row { grid-template-columns: 1fr; }
  .tech__feats { grid-template-columns: 1fr; }
  .iso { width: 240px; height: 240px; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__col--wide ul { columns: 2; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: .4rem; }
}

/* ----------------------------------------------------------- <= 460px --- */
@media (max-width: 460px) {
  :root {
    --g3d-radius: 300px;
    --g3d-card-w: 210px;
    --g3d-card-h: 342px;
  }
  .steps { grid-template-columns: 1fr; }
  .g3card__tags span:nth-child(n+3) { display: none; }
  .g3d__auto { display: none; }
  .g3d__detail-idx { font-size: 1.6rem; }
  .brand__text { font-size: 1.02rem; }
}

/* --------------------------------------- Telas curtas: hero mais baixo --- */
@media (max-height: 700px) and (min-width: 981px) {
  .hero { min-height: auto; padding-block: 8rem 5rem; }
  .g3d__viewport { height: 400px; }
}

/* --------------------------------- Dispositivos sem hover (toque) -------- */
@media (hover: none) {
  .holo:hover::after { animation: none; }
  .trace:hover::before { animation: none; opacity: 0; }
  .scard:hover { transform: none; }
}

/* ------------------------------------------------------------ IMPRESSÃO -- */
@media print {
  .preloader, .cursor, .scroll-progress, .totop, .nav, .hero__canvas,
  .hero__orb, .hero__grid, .hero__scan, .g3d__rings, .g3d__beam { display: none !important; }
  body { background: #fff; color: #000; }
  .sec-title, .hero__title .line__in { color: #000 !important; -webkit-text-fill-color: #000; }
}
