/* =============================================================
   ai-hero.css  —  AI MLM Software  |  Hero Section
   Global MLM Software Solutions
   Design: Split-screen dark left + glowing neural-net right,
           typewriter headline, floating AI feature pills,
           animated node connections, gradient pulse orbs.
   Namespace: .ai-hero-*
   ============================================================= */

/* ── Root tokens (AI theme) ── */
:root {
  --ai-bg:          #050b18;
  --ai-bg2:         #080f20;
  --ai-bg3:         #0d1630;
  --ai-accent:      #6366f1;       /* indigo */
  --ai-accent2:     #8b5cf6;       /* violet */
  --ai-accent3:     #06b6d4;       /* cyan */
  --ai-green:       #10b981;
  --ai-gold:        #f59e0b;
  --ai-white:       #ffffff;
  --ai-text-dim:    rgba(255,255,255,.65);
  --ai-text-muted:  rgba(255,255,255,.4);
  --ai-border:      rgba(255,255,255,.08);
  --ai-border-glow: rgba(99,102,241,.35);
  --ai-radius:      1rem;
  --ai-radius-lg:   1.5rem;
  --ai-radius-full: 9999px;
  --ai-trans:       all .3s cubic-bezier(.4,0,.2,1);
  --ai-grad-title:  linear-gradient(135deg,#c7d2fe 0%,#a5b4fc 30%,#818cf8 60%,#6366f1 100%);
  --ai-grad-btn:    linear-gradient(135deg,#6366f1 0%,#8b5cf6 100%);
  --ai-glow-indigo: 0 0 60px rgba(99,102,241,.45), 0 0 120px rgba(99,102,241,.2);
  --ai-glow-cyan:   0 0 40px rgba(6,182,212,.35);
}

/* ─────────────────────────────────────────
   HERO WRAPPER
───────────────────────────────────────── */
.ai-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--ai-bg);
  overflow: hidden;
  padding: 0;
}

/* ─────────────────────────────────────────
   AMBIENT BACKGROUND LAYERS
───────────────────────────────────────── */
.ai-hero-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* Large radial orbs */
.ai-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .55;
  animation: ai-orb-pulse 8s ease-in-out infinite;
}
.ai-orb-1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(99,102,241,.6) 0%, transparent 70%);
  top: -120px; left: -80px;
  animation-delay: 0s;
}
.ai-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(139,92,246,.5) 0%, transparent 70%);
  bottom: -100px; right: 10%;
  animation-delay: 3s;
}
.ai-orb-3 {
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(6,182,212,.4) 0%, transparent 70%);
  top: 40%; right: 32%;
  animation-delay: 5s;
}

@keyframes ai-orb-pulse {
  0%,100% { transform: scale(1);   opacity: .55; }
  50%      { transform: scale(1.12); opacity: .75; }
}

/* Dot-grid pattern */
.ai-dot-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 30px 30px;
}

/* Diagonal divider line (right panel accent) */
.ai-hero-divider {
  position: absolute;
  top: 0; right: 42%;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom,
    transparent 0%,
    rgba(99,102,241,.4) 30%,
    rgba(99,102,241,.6) 50%,
    rgba(99,102,241,.4) 70%,
    transparent 100%);
}

/* ─────────────────────────────────────────
   MAIN GRID  (left copy | right visual)
───────────────────────────────────────── */
.ai-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 5rem 2rem 4rem;
  align-items: center;
  min-height: 100vh;
}

/* ─────────────────────────────────────────
   LEFT — COPY PANEL
───────────────────────────────────────── */
.ai-hero-copy {
  padding-right: 3rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Eyebrow pill */
.ai-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(99,102,241,.15);
  border: 1px solid rgba(99,102,241,.4);
  border-radius: var(--ai-radius-full);
  padding: .375rem 1rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #a5b4fc;
  width: fit-content;
  margin-bottom: 1.5rem;
  animation: ai-fadein .6s ease both;
}
.ai-hero-eyebrow .ai-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ai-green);
  box-shadow: 0 0 6px var(--ai-green);
  animation: ai-blink 1.4s ease infinite;
}
@keyframes ai-blink {
  0%,100% { opacity:1; } 50% { opacity:.25; }
}

/* H1 headline */
.ai-hero-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.1;
  color: #fff;
  letter-spacing: -.03em;
  margin-bottom: 1.25rem;
  animation: ai-fadein .7s .1s ease both;
}
.ai-hero-title .ai-line-dim {
  color: rgba(255,255,255,.45);
  font-weight: 600;
  font-size: .85em;
  display: block;
}
.ai-grad-text {
  background: var(--ai-grad-title);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Typewriter cursor */
.ai-cursor {
  display: inline-block;
  width: 3px;
  height: .9em;
  background: #a5b4fc;
  margin-left: 3px;
  vertical-align: middle;
  border-radius: 1px;
  animation: ai-blink 0.8s step-end infinite;
}

/* Description */
.ai-hero-desc {
  font-size: 1.0625rem;
  color: var(--ai-text-dim);
  line-height: 1.8;
  max-width: 500px;
  margin-bottom: 2rem;
  animation: ai-fadein .7s .2s ease both;
}

/* Feature pills row */
.ai-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2rem;
  animation: ai-fadein .7s .3s ease both;
}
.ai-pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--ai-radius-full);
  padding: .3rem .85rem;
  font-size: .75rem;
  font-weight: 600;
  color: rgba(255,255,255,.8);
  transition: var(--ai-trans);
}
.ai-pill:hover {
  background: rgba(99,102,241,.2);
  border-color: rgba(99,102,241,.5);
  color: #c7d2fe;
}
.ai-pill i { font-size: .7rem; color: #a5b4fc; }

/* CTA buttons */
.ai-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .875rem;
  margin-bottom: 2.5rem;
  animation: ai-fadein .7s .4s ease both;
}
.ai-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .875rem 1.75rem;
  border-radius: var(--ai-radius);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: .9375rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: var(--ai-trans);
  border: none;
}
.ai-btn-primary {
  background: var(--ai-grad-btn);
  color: #fff;
  box-shadow: 0 4px 24px rgba(99,102,241,.45);
}
.ai-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(99,102,241,.6);
}
.ai-btn-ghost {
  background: transparent;
  color: rgba(255,255,255,.85);
  border: 1.5px solid rgba(255,255,255,.2);
}
.ai-btn-ghost:hover {
  border-color: rgba(99,102,241,.6);
  color: #c7d2fe;
  background: rgba(99,102,241,.08);
  transform: translateY(-2px);
}
.ai-btn-icon {
  width: 1.1em; height: 1.1em;
  display: flex; align-items: center; justify-content: center;
}

/* Trust row */
.ai-hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  animation: ai-fadein .7s .5s ease both;
}
.ai-trust-item {
  display: flex;
  align-items: center;
  gap: .375rem;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--ai-text-dim);
}
.ai-trust-item i { color: var(--ai-green); font-size: .8rem; }

/* ─────────────────────────────────────────
   RIGHT — VISUAL PANEL
───────────────────────────────────────── */
.ai-hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 2rem;
  animation: ai-fadein .8s .2s ease both;
}

/* Neural hub — central circle with spinning ring */
.ai-neural-hub {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Outer spinning orbit ring */
.ai-orbit-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px dashed rgba(99,102,241,.3);
  animation: ai-spin-slow 18s linear infinite;
}
.ai-orbit-ring-2 {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  border: 1px solid rgba(6,182,212,.2);
  animation: ai-spin-slow 12s linear infinite reverse;
}
@keyframes ai-spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Center AI brain icon */
.ai-brain-core {
  position: relative;
  z-index: 4;
  width: 110px; height: 110px;
  border-radius: 50%;
  background: linear-gradient(135deg, #312e81 0%, #4c1d95 50%, #1e1b4b 100%);
  border: 2px solid rgba(99,102,241,.6);
  box-shadow: var(--ai-glow-indigo), inset 0 0 30px rgba(99,102,241,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  color: #a5b4fc;
  animation: ai-core-pulse 3s ease-in-out infinite;
}
@keyframes ai-core-pulse {
  0%,100% { box-shadow: var(--ai-glow-indigo), inset 0 0 30px rgba(99,102,241,.2); }
  50%      { box-shadow: 0 0 80px rgba(99,102,241,.7), 0 0 160px rgba(99,102,241,.3), inset 0 0 40px rgba(99,102,241,.3); }
}

/* Satellite feature nodes — positioned around the hub */
.ai-node {
  position: absolute;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  cursor: default;
}
.ai-node-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
  transition: var(--ai-trans);
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
  animation: ai-float-node 4s ease-in-out infinite;
}
.ai-node:hover .ai-node-icon {
  transform: scale(1.12);
}
.ai-node-label {
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: rgba(255,255,255,.6);
  white-space: nowrap;
}

/* Node colour variants */
.ai-node-indigo .ai-node-icon  { background: rgba(99,102,241,.25);  color: #a5b4fc; }
.ai-node-cyan   .ai-node-icon  { background: rgba(6,182,212,.22);   color: #67e8f9; }
.ai-node-violet .ai-node-icon  { background: rgba(139,92,246,.25);  color: #c4b5fd; }
.ai-node-green  .ai-node-icon  { background: rgba(16,185,129,.22);  color: #6ee7b7; }
.ai-node-gold   .ai-node-icon  { background: rgba(245,158,11,.22);  color: #fde68a; }
.ai-node-rose   .ai-node-icon  { background: rgba(244,63,94,.22);   color: #fda4af; }

/* Staggered float animations per node */
.ai-node:nth-child(1) .ai-node-icon  { animation-delay: 0s; }
.ai-node:nth-child(2) .ai-node-icon  { animation-delay: .5s; }
.ai-node:nth-child(3) .ai-node-icon  { animation-delay: 1s; }
.ai-node:nth-child(4) .ai-node-icon  { animation-delay: 1.5s; }
.ai-node:nth-child(5) .ai-node-icon  { animation-delay: 2s; }
.ai-node:nth-child(6) .ai-node-icon  { animation-delay: 2.5s; }

@keyframes ai-float-node {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}

/* Node positions (clock positions around 50% circle) */
.ai-node-top    { top: 2%;  left: 50%; transform: translateX(-50%); }
.ai-node-tr     { top: 14%; right: 4%; }
.ai-node-br     { bottom: 14%; right: 4%; }
.ai-node-bot    { bottom: 2%; left: 50%; transform: translateX(-50%); }
.ai-node-bl     { bottom: 14%; left: 4%; }
.ai-node-tl     { top: 14%;  left: 4%; }

/* SVG connection lines (drawn in JS via canvas or inline SVG) */
.ai-node-lines {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.ai-node-lines line {
  stroke: rgba(99,102,241,.25);
  stroke-width: 1;
  stroke-dasharray: 4 4;
  animation: ai-line-dash 3s linear infinite;
}
@keyframes ai-line-dash {
  from { stroke-dashoffset: 24; }
  to   { stroke-dashoffset: 0; }
}

/* ─────────────────────────────────────────
   STATS STRIP (below hero grid, inside hero)
───────────────────────────────────────── */
.ai-hero-stats {
  position: relative;
  z-index: 3;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255,255,255,.07);
  margin-top: 2rem;
  padding-top: 2rem;
  animation: ai-fadein .8s .6s ease both;
}
.ai-hero-stat {
  text-align: center;
  padding: 1.25rem 1rem;
  border-right: 1px solid rgba(255,255,255,.07);
  transition: var(--ai-trans);
}
.ai-hero-stat:last-child { border-right: none; }
.ai-hero-stat:hover { background: rgba(99,102,241,.05); }

.ai-stat-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  font-weight: 900;
  color: #fff;
  line-height: 1;
  margin-bottom: .3rem;
  background: var(--ai-grad-title);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.ai-stat-label {
  font-size: .78rem;
  color: var(--ai-text-muted);
  font-weight: 500;
  letter-spacing: .02em;
}

/* ─────────────────────────────────────────
   SCROLL INDICATOR
───────────────────────────────────────── */
.ai-scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  color: var(--ai-text-muted);
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  animation: ai-fadein 1s 1s ease both;
}
.ai-scroll-mouse {
  width: 22px; height: 34px;
  border: 1.5px solid rgba(255,255,255,.2);
  border-radius: 11px;
  position: relative;
  overflow: hidden;
}
.ai-scroll-mouse::after {
  content: '';
  position: absolute;
  top: 5px; left: 50%;
  transform: translateX(-50%);
  width: 3px; height: 6px;
  background: rgba(255,255,255,.4);
  border-radius: 2px;
  animation: ai-scroll-dot 1.6s ease infinite;
}
@keyframes ai-scroll-dot {
  0%   { top: 5px; opacity: 1; }
  80%  { top: 18px; opacity: 0; }
  100% { top: 5px; opacity: 0; }
}

/* ─────────────────────────────────────────
   UTILITY ANIMATION
───────────────────────────────────────── */
@keyframes ai-fadein {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 1100px) {
  .ai-hero-grid {
    grid-template-columns: 1fr;
    padding: 5rem 1.5rem 3rem;
    min-height: auto;
    gap: 3rem;
  }
  .ai-hero-copy { padding-right: 0; }
  .ai-hero-divider { display: none; }
  .ai-hero-visual {
    padding-left: 0;
    justify-content: center;
  }
  .ai-neural-hub { max-width: 360px; }
  .ai-hero-stats {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 0;
  }
  .ai-hero-stat:nth-child(3) { border-right: none; }
  .ai-hero-stat:nth-child(4) { border-top: 1px solid rgba(255,255,255,.07); }
  .ai-hero-stat:nth-child(5) { border-top: 1px solid rgba(255,255,255,.07); border-right: none; }
}

@media (max-width: 640px) {
  .ai-hero-title { font-size: 2rem; }
  .ai-hero-stats { grid-template-columns: repeat(2, 1fr); }
  .ai-hero-stat:nth-child(2) { border-right: none; }
  .ai-hero-stat:nth-child(3) { border-top: 1px solid rgba(255,255,255,.07); }
  .ai-neural-hub { max-width: 300px; }
  .ai-hero { padding-top: 1rem; }
  .ai-scroll-hint { display: none; }
}
