/* ============================================================
   Innovative AI Labs — Premium design system (additive layer)
   Loaded AFTER style.css / service-page.css. No existing rules
   are modified here; everything below is additive + overrides.
   Palette: Deep Navy / Near Black → Electric Blue → AI Violet
   ============================================================ */
:root {
  --prem-navy: #060a14;
  --prem-navy-2: #0b1b3a;
  --prem-blue: #3b6bff;
  --prem-cyan: #22d3ee;
  --prem-violet: #7c5cff;
  --prem-grad: linear-gradient(135deg, #060a14 0%, #0b1b3a 55%, #123a7a 100%);
  --prem-grad-accent: linear-gradient(90deg, #3b6bff, #7c5cff);
  --prem-glass: rgba(255,255,255,.06);
  --prem-glass-border: rgba(255,255,255,.14);
  --prem-grid-line: rgba(255,255,255,.05);
}

/* ---------- Accessible focus ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--prem-cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Reveal on scroll (JS adds .in) ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }

/* ============================================================
   HERO upgrades
   ============================================================ */
.hero-trustline {
  margin: 18px 0 0;
  font-size: .78rem;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.62);
  font-weight: 600;
}
.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.btn-ghost-light {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.4);
  color: #fff;
  font-weight: 700;
  font-size: .92rem;
  transition: .25s;
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(6px);
}
.btn-ghost-light:hover {
  border-color: #fff;
  background: rgba(255,255,255,.14);
  transform: translateY(-2px);
}
.btn-ghost-light svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }

/* ---------- AI Core visual (replaces doodle badges) ---------- */
.hero-doodle {
  right: 460px;
  top: -8px;
  width: 300px;
  height: 300px;
}
.ai-core { position: relative; width: 300px; height: 300px; }
.ai-core-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,.28);
}
.ai-core-ring.r2 { inset: 42px; border-style: solid; border-color: rgba(124,92,255,.4); animation: aiSpin 26s linear infinite; }
.ai-core-ring.r3 { inset: 84px; border-color: rgba(34,211,238,.4); animation: aiSpinRev 20s linear infinite; }
.ai-core-ring.r1 { animation: aiSpin 40s linear infinite; }
.ai-core-center {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 104px;
  height: 104px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 3px;
  color: #fff;
  background: radial-gradient(circle at 35% 30%, #7c5cff 0%, #3b6bff 45%, #0b1b3a 100%);
  box-shadow: 0 0 44px rgba(124,92,255,.55), 0 0 90px rgba(59,107,255,.3), inset 0 0 24px rgba(255,255,255,.15);
  animation: aiPulse 4s ease-in-out infinite;
}
.ai-node {
  position: absolute;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .6px;
  white-space: nowrap;
  color: #fff;
  background: rgba(11,27,58,.82);
  border: 1px solid var(--prem-glass-border);
  backdrop-filter: blur(4px);
  box-shadow: 0 8px 22px -8px rgba(0,0,0,.6);
  animation: aiFloat 5s ease-in-out infinite;
}
.ai-node::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 7px;
  vertical-align: 1px;
  background: var(--prem-cyan);
  box-shadow: 0 0 8px var(--prem-cyan);
}
.ai-node.n1 { top: 6px; left: 50%; transform: translateX(-50%); }
.ai-node.n2 { top: 26%; right: -6px; animation-delay: .8s; }
.ai-node.n2::before { background: #7c5cff; box-shadow: 0 0 8px #7c5cff; }
.ai-node.n3 { bottom: 24%; right: 0; animation-delay: 1.6s; }
.ai-node.n4 { bottom: 6px; left: 50%; transform: translateX(-50%); animation-delay: 2.4s; }
.ai-node.n4::before { background: #7c5cff; box-shadow: 0 0 8px #7c5cff; }
.ai-node.n5 { top: 26%; left: -6px; animation-delay: 3.2s; }
@keyframes aiSpin { to { transform: rotate(360deg); } }
@keyframes aiSpinRev { to { transform: rotate(-360deg); } }
@keyframes aiPulse {
  0%, 100% { box-shadow: 0 0 44px rgba(124,92,255,.55), 0 0 90px rgba(59,107,255,.3), inset 0 0 24px rgba(255,255,255,.15); }
  50% { box-shadow: 0 0 60px rgba(124,92,255,.75), 0 0 120px rgba(59,107,255,.4), inset 0 0 30px rgba(255,255,255,.22); }
}
@keyframes aiFloat {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -7px; }
}

/* ============================================================
   TRUST BAR — premium stat band (verified numbers only)
   ============================================================ */
.trust-bar {
  background: linear-gradient(180deg, #060a14 0%, #0a1330 100%);
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.trust-bar-inner {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 34px;
  position: relative;
}
.trust-item + .trust-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 24px;
  bottom: 24px;
  width: 1px;
  background: rgba(255,255,255,.1);
}
.trust-value {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(90deg, #fff, #9db8ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}
.trust-label, .trust-desc {
  font-size: .78rem;
  line-height: 1.5;
  color: rgba(255,255,255,.6);
  max-width: 200px;
}
.trust-item-highlight .trust-label { color: rgba(255,255,255,.75); font-weight: 700; }
.trust-item-stars .trust-stars { color: #fbbf24; letter-spacing: 2px; font-size: .95rem; }

/* ============================================================
   GLOBAL DELIVERY section
   ============================================================ */
.global-section {
  background: var(--prem-grad);
  position: relative;
  overflow: hidden;
}
.global-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--prem-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--prem-grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 70% at 50% 40%, #000 30%, transparent 75%);
  pointer-events: none;
}
.global-section .section-head h2,
.global-section .eyebrow { color: #fff; }
.global-section .section-desc { color: rgba(255,255,255,.72); }
.global-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
  margin-top: 8px;
}
.region-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 6px;
}
.region-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--prem-glass);
  border: 1px solid var(--prem-glass-border);
  color: #fff;
  font-size: .86rem;
  font-weight: 600;
  backdrop-filter: blur(6px);
  transition: .25s;
}
.region-pill:hover { border-color: var(--prem-cyan); transform: translateY(-2px); }
.region-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 10px #34d399; }
.region-pill.hq .dot { background: var(--prem-cyan); box-shadow: 0 0 10px var(--prem-cyan); }
.region-pill small { font-weight: 400; color: rgba(255,255,255,.6); }
.global-points { margin: 20px 0 28px; display: grid; gap: 13px; }
.global-points li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: rgba(255,255,255,.82);
  font-size: .93rem;
  line-height: 1.6;
  list-style: none;
}
.global-points svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; stroke: #34d399; fill: none; stroke-width: 2.4; }
/* orbit visual */
.orbit-wrap { position: relative; width: min(420px, 100%); aspect-ratio: 1; margin: 0 auto; }
.orbit-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,.14); }
.orbit-ring.o2 { inset: 16%; border-color: rgba(124,92,255,.35); animation: aiSpin 30s linear infinite; }
.orbit-ring.o3 { inset: 32%; border-color: rgba(34,211,238,.3); animation: aiSpinRev 24s linear infinite; }
.orbit-hub {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
}
.orbit-hub strong { display: block; font-size: 1.05rem; }
.orbit-hub span { font-size: .74rem; color: rgba(255,255,255,.6); letter-spacing: 1.5px; text-transform: uppercase; }
.orbit-city {
  position: absolute;
  transform: translate(-50%, -50%);
  padding: 7px 15px;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 700;
  color: #fff;
  background: rgba(11,27,58,.9);
  border: 1px solid var(--prem-glass-border);
  white-space: nowrap;
  animation: aiFloat 6s ease-in-out infinite;
}

/* ============================================================
   AI PIPELINE section (From AI Ideas to Production Systems)
   ============================================================ */
.pipeline-flow {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 36px 0 8px;
  overflow-x: auto;
  padding-bottom: 14px;
  scrollbar-width: thin;
}
.pipe-step {
  flex: 1 0 150px;
  min-width: 150px;
  text-align: center;
  padding: 20px 10px;
  background: #fff;
  border: 1px solid var(--border);
  position: relative;
  transition: .25s;
}
.pipe-step:first-child { border-radius: 16px 0 0 16px; }
.pipe-step:last-child { border-radius: 0 16px 16px 0; }
.pipe-step + .pipe-step { border-left: none; }
.pipe-step:hover { background: #f6f9ff; border-color: rgba(59,107,255,.4); }
.pipe-step .pipe-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: .78rem;
  font-weight: 800;
  color: #fff;
  background: var(--prem-grad-accent);
  margin-bottom: 10px;
}
.pipe-step strong { display: block; font-size: .86rem; color: var(--text); margin-bottom: 4px; }
.pipe-step span { font-size: .74rem; color: #6b768c; line-height: 1.5; display: block; }
.pipe-step:not(:last-child)::after {
  content: '→';
  position: absolute;
  right: -9px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 18px;
  height: 18px;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
  color: #fff;
  background: var(--prem-blue);
  border-radius: 50%;
}
.ai-cap-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 30px;
}
.ai-cap {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 18px;
  transition: .25s;
  color: inherit;
}
.ai-cap:hover { transform: translateY(-5px); border-color: rgba(124,92,255,.45); box-shadow: 0 20px 36px -20px rgba(124,92,255,.4); }
.ai-cap-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(59,107,255,.12), rgba(124,92,255,.12));
  border: 1px solid rgba(124,92,255,.25);
  margin-bottom: 12px;
}
.ai-cap-icon svg { width: 22px; height: 22px; stroke: var(--prem-blue); fill: none; stroke-width: 1.8; }
.ai-cap h3 { font-size: .94rem; margin: 0 0 6px; }
.ai-cap p { font-size: .8rem; color: #5b6478; line-height: 1.6; margin: 0 0 10px; flex: 1; }
.ai-cap .go { font-size: .8rem; font-weight: 700; color: var(--prem-blue); }

/* ---------- Responsive ---------- */
@media (max-width: 1220px) {
  .hero-doodle { display: none; }
}
@media (max-width: 1024px) {
  .global-grid { grid-template-columns: 1fr; gap: 36px; }
  .ai-cap-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .trust-item { padding: 16px 18px; }
  .trust-item + .trust-item::before { display: none; }
  .trust-value { font-size: 1.6rem; }
  .ai-cap-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .ai-cap { padding: 16px 14px; }
  .hero-cta-row .btn, .hero-cta-row .btn-ghost-light { width: 100%; justify-content: center; }
}

/* ---------- Reduced motion: honor user preference ---------- */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .ai-core-ring, .ai-core-center, .ai-node, .orbit-ring, .orbit-city,
  .hero-text .eyebrow, .hero-heading, .hero-sub, .hero-heading .line {
    animation: none !important;
  }
  html { scroll-behavior: auto; }
}


