/* Hero ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 100px;
  overflow: hidden;
  background: #05000A;
}

/* Deeper, more premium ambient background */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 40% at 20% 20%, rgba(78, 17, 189, 0.22), transparent 70%),
    radial-gradient(ellipse 40% 35% at 85% 75%, rgba(161, 0, 255, 0.18), transparent 70%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(10, 0, 26, 1), transparent 70%),
    linear-gradient(180deg, #05000A 0%, #0A0014 100%);
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 85%);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 960px) { .hero-inner { grid-template-columns: 1fr; } }

.hero-left { max-width: 580px; }
/* Removed staggered entry animation — hero is always above-the-fold and
   browser animation throttling in iframes can leave elements stuck at opacity:0. */

.hero-headline {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(40px, 4.8vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.028em;
  color: #fff;
  margin: 24px 0 28px;
  text-wrap: balance;
}
.hero-headline em {
  font-style: normal;
  font-weight: 300;
  background: linear-gradient(90deg, #D7C3F9 0%, #A100FF 50%, #FF80FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: 18px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.65);
  max-width: 520px;
  margin-bottom: 40px;
  font-weight: 400;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

.hero-meta {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  max-width: 580px;
}
.hero-meta-item { display: flex; flex-direction: column; gap: 4px; }
.hero-meta-item .num {
  font-size: 28px; font-weight: 300; color: #fff;
  letter-spacing: -0.02em; font-family: var(--font-display); line-height: 1;
}
.hero-meta-item .label { font-size: 12px; color: rgba(255, 255, 255, 0.5); letter-spacing: 0.02em; }
.hero-meta-divider { width: 1px; height: 32px; background: rgba(255, 255, 255, 0.08); }

.hero-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.hero-lockup .lockup-chip {
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #A100FF, #FF80FF);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ============ AGENT MESH (right side) ============ */
.mesh {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 640px;
  margin-left: auto;
}

.mesh svg.mesh-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: visible;
}

/* Agent nodes */
.mesh-node {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 5px;
  border-radius: 999px;
  background: rgba(14, 2, 30, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(161, 0, 255, 0.25);
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0,0,0,0.2) inset;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.mesh-node:hover,
.mesh-node.auto-hover {
  transform: translate(-50%, -50%) scale(1.06);
  border-color: rgba(255, 128, 255, 0.65);
  background: rgba(30, 8, 60, 0.95);
  z-index: 6;
}
.mesh-node .mono {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--mono-bg, #A100FF);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.mesh-node .mono svg {
  width: 15px; height: 15px;
  display: block;
  color: #fff;
}
.mesh-node .dmono {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.7);
}
.mesh-node .dmono svg { color: rgba(255, 255, 255, 0.85); }
.mesh-node .nkind {
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 999px;
  margin-left: 2px;
}
.mesh-node.is-agent .nkind {
  background: rgba(161, 0, 255, 0.18);
  color: #E3B8FF;
  border: 1px solid rgba(161, 0, 255, 0.3);
}
.mesh-node.is-data {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(20, 20, 30, 0.85);
}
.mesh-node.is-data .nkind {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Subtle pulse on agent mono circles */
.mesh-node.is-agent .mono {
  box-shadow: 0 0 0 0 rgba(161, 0, 255, 0.6);
  animation: monoPulse 3.2s ease-in-out infinite;
  animation-delay: var(--pdelay, 0s);
}
@keyframes monoPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(161, 0, 255, 0.0); }
  50%      { box-shadow: 0 0 0 5px rgba(161, 0, 255, 0.0), 0 0 12px 2px rgba(161, 0, 255, 0.35); }
}

/* Mesh edges (drawn in JS) */
.mesh-line {
  fill: none;
  stroke-linecap: round;
}
.mesh-line.agent-link {
  stroke: rgba(161, 0, 255, 0.28);
  stroke-width: 1;
}
.mesh-line.data-link {
  stroke: rgba(180, 180, 200, 0.12);
  stroke-width: 0.9;
  stroke-dasharray: 2 4;
}

/* Traveling pulse along edges */
.mesh-pulse {
  fill: #FF80FF;
  filter: drop-shadow(0 0 4px rgba(255, 128, 255, 0.9));
}

/* Remove shiny particles — keep one or two very faint stars */
.mesh-particle { display: none; }
