/* ============================================================
   AI Infra — gateway, Model Hub, Agent Platform and Token Plan
   (sections themselves are styled by style.css)
   ============================================================ */

.inf-hero__inner { display: grid; grid-template-columns: 1fr 0.92fr; gap: 56px; align-items: center; min-height: 600px; }
.inf-hero__title { font-size: clamp(38px, 4.4vw, 62px); }
.inf-hero__visual { display: grid; gap: 18px; }

/* Apps → gateway → models */
.inf-map { display: grid; grid-template-columns: 1fr 34px auto 34px 1fr; align-items: center; padding: 24px; border-radius: var(--r-lg); border: 1px solid var(--line-strong); background: radial-gradient(rgba(120, 160, 255, 0.12) 1px, transparent 1px) 0 0 / 18px 18px, rgba(5, 12, 34, 0.7); box-shadow: 0 40px 80px -30px rgba(47, 107, 255, 0.55); }
.inf-map__in { display: grid; gap: 8px; }
.inf-map__in li { padding: 8px 10px; border-radius: 9px; border: 1px solid var(--line-strong); background: rgba(16, 32, 78, 0.8); font-size: 12.5px; color: var(--ice); text-align: center; }
.inf-map__link { position: relative; height: 2px; background: repeating-linear-gradient(90deg, var(--cyan) 0 4px, transparent 4px 8px); background-size: 16px 2px; animation: flowRight .8s linear infinite; }
.inf-map__link::after { content: ""; position: absolute; right: -2px; top: -4px; border-block: 5px solid transparent; border-left: 8px solid var(--cyan); }
.inf-map__core { display: grid; justify-items: center; gap: 6px; padding: 18px 16px; border-radius: 16px; border: 1px solid rgba(60, 211, 255, 0.6); background: linear-gradient(160deg, rgba(47, 107, 255, 0.55), rgba(47, 107, 255, 0.12)); box-shadow: 0 0 0 6px rgba(47, 107, 255, 0.08), 0 20px 40px -14px rgba(60, 211, 255, 0.6); text-align: center; }
.inf-map__glyph { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(4, 10, 28, 0.6); border: 1px solid var(--line-strong); }
.inf-map__core b { font-size: 15px; color: #fff; white-space: nowrap; }
.inf-map__core small { font-size: 10px; letter-spacing: .04em; color: #cfe0ff; white-space: nowrap; }
.inf-map__out { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.inf-map__out i { display: grid; place-items: center; aspect-ratio: 1; border-radius: 10px; border: 1px solid var(--line-strong); background: rgba(4, 10, 28, 0.75); }
.inf-map__out img { width: 22px; height: 22px; }

.inf-trace.trace { position: relative; left: auto; bottom: auto; width: 100%; }

/* CTA card */
.inf-cta__card { display: grid; gap: 14px; padding: 30px; border-radius: var(--r-lg); background: rgba(4, 10, 28, 0.88); border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6); }
.inf-cta__card h3 { font-size: 18px; }
.inf-cta__card ol { display: grid; gap: 10px; margin: 4px 0 10px; counter-reset: s; }
.inf-cta__card li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; color: var(--text); counter-increment: s; }
.inf-cta__card li::before { content: counter(s); flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: rgba(47, 107, 255, 0.25); border: 1px solid var(--line-strong); color: var(--cyan); font: 500 12px/1 var(--f-mono); }

@media (max-width: 1024px) {
  .inf-hero__inner { grid-template-columns: 1fr; min-height: 0; gap: 40px; }
  .inf-hero__visual { max-width: 620px; width: 100%; justify-self: center; }
}
@media (max-width: 720px) {
  .inf-map { grid-template-columns: 1fr; gap: 12px; padding: 18px; }
  .inf-map__in { grid-template-columns: 1fr 1fr; }
  .inf-map__link { width: 2px; height: 22px; justify-self: center; background: repeating-linear-gradient(180deg, var(--cyan) 0 4px, transparent 4px 8px); background-size: 2px 16px; animation-name: flowDown; }
  .inf-map__link::after { right: -4px; top: auto; bottom: -4px; border-inline: 5px solid transparent; border-block: 0; border-top: 8px solid var(--cyan); }
  .inf-map__out { grid-template-columns: repeat(5, 1fr); }
}
