/* ===== AIMA Neural Core hero visual — 2026-10-11 ===== */
.hero-world{
  min-height:620px;
  display:grid;
  place-items:center;
  overflow:visible;
}
.neural-stage{
  position:relative;
  width:min(100%,660px);
  aspect-ratio:620/520;
  min-height:520px;
  display:grid;
  place-items:center;
  isolation:isolate;
}
.neural-aurora{
  position:absolute;
  inset:11% 7%;
  border-radius:50%;
  background:
    radial-gradient(circle at 47% 48%,rgba(86,114,255,.13),transparent 33%),
    radial-gradient(circle at 61% 43%,rgba(91,205,235,.10),transparent 34%);
  filter:blur(34px);
  opacity:.95;
  animation:neuralBreath 5.4s ease-in-out infinite;
}
.neural-ring{
  position:absolute;
  width:405px;
  height:405px;
  border-radius:50%;
  border:1px solid rgba(56,78,112,.11);
  transform:rotateX(72deg) rotateZ(15deg);
  pointer-events:none;
}
.neural-ring::before,
.neural-ring::after{
  content:"";
  position:absolute;
  width:7px;
  height:7px;
  border-radius:50%;
  background:#5b78ff;
  box-shadow:0 0 18px rgba(91,120,255,.45);
}
.neural-ring::before{left:19%;top:7%}
.neural-ring::after{right:10%;bottom:15%;background:#69d1e9;box-shadow:0 0 18px rgba(105,209,233,.38)}
.neural-ring-a{animation:neuralRingA 16s linear infinite}
.neural-ring-b{
  width:510px;
  height:510px;
  border-style:dashed;
  border-color:rgba(80,104,151,.08);
  transform:rotateX(72deg) rotateZ(-12deg);
  animation:neuralRingB 25s linear infinite;
}
.neural-ring-b::before{top:15%;left:75%;background:#8b80ff}
.neural-ring-b::after{right:auto;left:7%;bottom:28%;background:#65cee8}
.neural-links{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  overflow:visible;
  z-index:2;
  pointer-events:none;
}
.neural-links path{
  fill:none;
  stroke:rgba(65,86,126,.19);
  stroke-width:1.25;
  stroke-linecap:round;
}
.neural-links path:not(.loop-trace){
  stroke-dasharray:7 9;
  animation:neuralDash 7.5s linear infinite;
}
.neural-links .loop-trace{
  stroke:rgba(87,113,255,.11);
  stroke-dasharray:2 13;
  opacity:.72;
}
.neural-links .loop-trace-b{
  stroke:rgba(79,190,219,.10);
  animation:neuralDashReverse 11s linear infinite;
}
.signal-dot{fill:#5e7aff}
.signal-two{fill:#67cfe9}
.signal-three{fill:#887cff}
.signal-four{fill:#62c8df}

.neural-hub{
  width:218px;
  height:218px;
  position:relative;
  z-index:5;
  display:grid;
  place-items:center;
  border-radius:48px;
  overflow:hidden;
  border:1px solid rgba(15,20,32,.11);
  background:
    linear-gradient(145deg,rgba(255,255,255,.92),rgba(233,239,247,.82));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.9),
    inset -22px -26px 48px rgba(96,117,147,.10),
    0 26px 80px rgba(33,50,83,.14);
  transform-style:preserve-3d;
}
.neural-hub::before{
  content:"";
  position:absolute;
  inset:-35%;
  background:
    conic-gradient(from 35deg,
      transparent 0 23%,
      rgba(95,119,255,.15) 30%,
      transparent 36% 62%,
      rgba(88,205,235,.13) 68%,
      transparent 75%);
  animation:hubSpin 11s linear infinite;
}
.neural-hub::after{
  content:"";
  position:absolute;
  inset:10px;
  border:1px solid rgba(15,20,32,.07);
  border-radius:40px;
  pointer-events:none;
}
.hub-depth{
  position:absolute;
  inset:23px;
  border-radius:31px;
  background:
    radial-gradient(circle at 38% 29%,rgba(255,255,255,.96),transparent 13%),
    radial-gradient(circle at 54% 50%,rgba(100,189,235,.09),transparent 40%),
    linear-gradient(145deg,rgba(255,255,255,.66),rgba(223,231,241,.48));
  box-shadow:inset 0 0 42px rgba(58,79,111,.07);
}
.hub-grid{
  position:absolute;
  inset:-12%;
  opacity:.18;
  background-image:
    linear-gradient(rgba(78,103,149,.12) 1px,transparent 1px),
    linear-gradient(90deg,rgba(78,103,149,.12) 1px,transparent 1px);
  background-size:18px 18px;
  transform:rotate(13deg);
  mask-image:linear-gradient(180deg,transparent 7%,#000 28%,#000 76%,transparent 94%);
}
.hub-scan{
  position:absolute;
  left:18px;
  right:18px;
  height:1px;
  top:22%;
  background:linear-gradient(90deg,transparent,#667cff,transparent);
  box-shadow:0 0 16px rgba(102,124,255,.24);
  opacity:.58;
  animation:hubScan 4.2s ease-in-out infinite;
}
.hub-logo{
  position:absolute;
  top:45px;
  width:56px;
  height:56px;
  display:grid;
  place-items:center;
  z-index:3;
}
.hub-logo svg{width:49px;height:49px;fill:none}
.hub-logo path{stroke:#151c27;stroke-width:1.25;stroke-linecap:round;stroke-linejoin:round}
.hub-logo circle{stroke:rgba(83,105,148,.22);stroke-width:.8}
.neural-hub>strong{
  position:absolute;
  top:111px;
  z-index:3;
  color:#111823;
  font-size:18px;
  font-weight:900;
  letter-spacing:.22em;
  padding-left:.22em;
}
.neural-hub>span{
  position:absolute;
  top:139px;
  z-index:3;
  color:#7a8593;
  font-size:6px;
  font-weight:900;
  letter-spacing:.22em;
}
.hub-live{
  position:absolute;
  bottom:31px;
  z-index:3;
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:#7c8794;
  font-size:5.5px;
  font-weight:900;
  font-style:normal;
  letter-spacing:.13em;
}
.hub-live i{
  width:5px;
  height:5px;
  border-radius:50%;
  background:#43b789;
  box-shadow:0 0 10px rgba(67,183,137,.38);
  animation:pulse 2s ease-in-out infinite;
}
.neural-node{
  position:absolute;
  z-index:6;
  width:142px;
  min-height:59px;
  display:grid;
  grid-template-columns:25px 1fr 8px;
  gap:8px;
  align-items:center;
  padding:10px 11px;
  border:1px solid rgba(15,20,32,.09);
  border-radius:17px;
  background:rgba(255,255,255,.72);
  box-shadow:0 12px 32px rgba(23,34,52,.055);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  animation:nodeFloat 5s ease-in-out infinite;
}
.neural-node>i{
  width:25px;
  height:25px;
  display:grid;
  place-items:center;
  border-radius:8px;
  background:#f0f3f7;
  color:#6d7887;
  font-size:6px;
  font-weight:900;
  font-style:normal;
}
.neural-node>div{display:flex;flex-direction:column;gap:2px}
.neural-node b{
  color:#161d28;
  font-size:8px;
  line-height:1;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.neural-node span{
  color:#8a94a1;
  font-size:5.5px;
  white-space:nowrap;
}
.neural-node>em{
  width:6px;
  height:6px;
  border-radius:50%;
  background:#617cff;
  box-shadow:0 0 12px rgba(97,124,255,.32);
}
.node-observe{left:13px;top:91px}
.node-reason{right:4px;top:102px;animation-delay:-1.1s}
.node-act{right:14px;bottom:70px;animation-delay:-2.4s}
.node-learn{left:17px;bottom:72px;animation-delay:-3.6s}
.node-reason>em,.node-act>em{background:#65cce5;box-shadow:0 0 12px rgba(101,204,229,.28)}
.node-learn>em{background:#897dff;box-shadow:0 0 12px rgba(137,125,255,.28)}
.neural-readout{
  position:absolute;
  z-index:4;
  display:flex;
  align-items:center;
  gap:7px;
  color:#87919e;
  font-size:5px;
  font-weight:800;
  letter-spacing:.11em;
}
.neural-readout b{
  color:#4f5c6b;
  font-size:5px;
  letter-spacing:.08em;
}
.readout-a{top:38px;left:50%;transform:translateX(-50%)}
.readout-b{bottom:33px;left:50%;transform:translateX(-50%)}

@keyframes neuralBreath{
  0%,100%{opacity:.66;transform:scale(.95)}
  50%{opacity:1;transform:scale(1.035)}
}
@keyframes neuralRingA{to{transform:rotateX(72deg) rotateZ(375deg)}}
@keyframes neuralRingB{to{transform:rotateX(72deg) rotateZ(-372deg)}}
@keyframes neuralDash{to{stroke-dashoffset:-96}}
@keyframes neuralDashReverse{to{stroke-dashoffset:96}}
@keyframes hubSpin{to{transform:rotate(360deg)}}
@keyframes hubScan{
  0%,100%{top:22%;opacity:.18}
  50%{top:76%;opacity:.72}
}
@keyframes nodeFloat{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-5px)}
}

/* Dark theme */
html[data-theme="dark"] .neural-aurora{
  background:
    radial-gradient(circle at 46% 48%,rgba(92,112,255,.24),transparent 33%),
    radial-gradient(circle at 61% 43%,rgba(78,204,236,.14),transparent 34%);
}
html[data-theme="dark"] .neural-ring{
  border-color:rgba(120,143,190,.13);
}
html[data-theme="dark"] .neural-ring-b{
  border-color:rgba(115,136,177,.09);
}
html[data-theme="dark"] .neural-links path{
  stroke:rgba(130,153,205,.24);
}
html[data-theme="dark"] .neural-links .loop-trace{
  stroke:rgba(113,135,255,.18);
}
html[data-theme="dark"] .neural-links .loop-trace-b{
  stroke:rgba(91,208,235,.14);
}
html[data-theme="dark"] .neural-hub{
  border-color:rgba(255,255,255,.10);
  background:
    linear-gradient(145deg,rgba(27,39,61,.96),rgba(10,16,28,.93));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    inset -26px -30px 54px rgba(0,0,0,.28),
    0 32px 90px rgba(0,0,0,.34),
    0 0 70px rgba(77,104,215,.12);
}
html[data-theme="dark"] .neural-hub::before{
  background:
    conic-gradient(from 35deg,
      transparent 0 23%,
      rgba(112,135,255,.21) 30%,
      transparent 36% 62%,
      rgba(90,213,240,.15) 68%,
      transparent 75%);
}
html[data-theme="dark"] .neural-hub::after{
  border-color:rgba(255,255,255,.07);
}
html[data-theme="dark"] .hub-depth{
  background:
    radial-gradient(circle at 38% 29%,rgba(255,255,255,.16),transparent 13%),
    radial-gradient(circle at 54% 50%,rgba(88,185,238,.12),transparent 40%),
    linear-gradient(145deg,rgba(27,39,61,.78),rgba(9,14,24,.48));
  box-shadow:inset 0 0 46px rgba(0,0,0,.20);
}
html[data-theme="dark"] .hub-grid{
  opacity:.28;
  background-image:
    linear-gradient(rgba(120,143,205,.13) 1px,transparent 1px),
    linear-gradient(90deg,rgba(120,143,205,.13) 1px,transparent 1px);
}
html[data-theme="dark"] .hub-logo path{stroke:#f3f6fb}
html[data-theme="dark"] .hub-logo circle{stroke:rgba(129,148,200,.30)}
html[data-theme="dark"] .neural-hub>strong{color:#f2f5fa}
html[data-theme="dark"] .neural-hub>span,
html[data-theme="dark"] .hub-live{color:#75849b}
html[data-theme="dark"] .neural-node{
  border-color:rgba(255,255,255,.08);
  background:rgba(14,22,37,.72);
  box-shadow:0 14px 36px rgba(0,0,0,.18);
}
html[data-theme="dark"] .neural-node>i{
  background:#172235;
  color:#7f8da2;
}
html[data-theme="dark"] .neural-node b{color:#e9eef6}
html[data-theme="dark"] .neural-node span{color:#718097}
html[data-theme="dark"] .neural-readout{color:#65758c}
html[data-theme="dark"] .neural-readout b{color:#9aabc0}

/* Responsive */
@media(max-width:980px){
  .hero-world{min-height:560px}
  .neural-stage{
    width:min(100%,620px);
    min-height:500px;
  }
}
@media(max-width:700px){
  .hero-world{
    min-height:440px!important;
    overflow:visible!important;
  }
  .neural-stage{
    width:100%;
    min-height:410px;
    aspect-ratio:auto;
  }
  .neural-hub{
    width:164px;
    height:164px;
    border-radius:38px;
  }
  .neural-hub::after{inset:8px;border-radius:31px}
  .hub-depth{inset:18px;border-radius:25px}
  .hub-logo{top:31px;width:45px;height:45px}
  .hub-logo svg{width:41px;height:41px}
  .neural-hub>strong{top:84px;font-size:14px}
  .neural-hub>span{top:106px;font-size:4.8px}
  .hub-live{bottom:21px;font-size:4.2px}
  .neural-ring-a{width:300px;height:300px}
  .neural-ring-b{width:370px;height:370px}
  .neural-links{
    width:112%;
    height:112%;
    left:-6%;
    top:-6%;
  }
  .neural-node{
    width:112px;
    min-height:49px;
    grid-template-columns:21px 1fr 6px;
    gap:6px;
    padding:8px 8px;
    border-radius:14px;
  }
  .neural-node>i{width:21px;height:21px;border-radius:7px;font-size:5px}
  .neural-node b{font-size:6.5px}
  .neural-node span{font-size:4.5px}
  .node-observe{left:0;top:45px}
  .node-reason{right:0;top:58px}
  .node-act{right:2px;bottom:42px}
  .node-learn{left:3px;bottom:45px}
  .neural-readout{font-size:4.3px}
  .neural-readout b{font-size:4.3px}
  .readout-a{top:14px}
  .readout-b{bottom:11px}
}
@media(max-width:420px){
  .hero-world{min-height:405px!important}
  .neural-stage{min-height:385px}
  .neural-hub{width:148px;height:148px;border-radius:34px}
  .hub-logo{top:27px}
  .neural-hub>strong{top:76px;font-size:13px}
  .neural-hub>span{top:96px}
  .hub-live{bottom:18px}
  .neural-ring-a{width:270px;height:270px}
  .neural-ring-b{width:330px;height:330px}
  .neural-node{
    width:101px;
    min-height:46px;
    padding:7px;
  }
  .neural-node span{display:none}
  .node-observe{top:45px}
  .node-reason{top:56px}
  .node-act{bottom:39px}
  .node-learn{bottom:41px}
}
@media(prefers-reduced-motion:reduce){
  .neural-aurora,.neural-ring,.neural-hub::before,.hub-scan,.neural-node{
    animation:none!important;
  }
  .neural-links path{animation:none!important}
}
