/* =========================================================
   ALPHA STRIKE — HERO NETWORK COMPONENT
   Version: 1.0
   Status: Active

   The Enterprise-page hero visual: a network topology diagram -
   server rack, workstation, laptop, router/switch and a cloud/
   web-technology node radiating from a central hub, connected by
   glowing lines with animated data pulses - sitting over the same
   perspective wire-mesh floor used on the Trading page, tying the
   two division pages into one visual family.

   Colour: the exact same locked accent used everywhere else on the
   site - ALPHA Yellow/Gold in dark theme, the locked v1.1 ALPHA
   Chrome (Steel/Silver) in light theme. No new colours.
   ========================================================= */

.as-network-outer {
    --as-network-accent-rgb: 245, 184, 0;    /* ALPHA Yellow #F5B800 */
    --as-network-accent: var(--alpha-color-brand-yellow, #F5B800);

    position: relative;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    overflow: hidden;
}

[data-theme="light"] .as-network-outer {
    --as-network-accent-rgb: 75, 85, 99;     /* ALPHA Steel #4B5563 */
    --as-network-accent: var(--alpha-color-brand-chrome-steel, #4B5563);
}

/* ---------------------------------------------------------
   Backdrop: perspective wire-mesh floor with a dot at every
   grid intersection - same technique as the Trading page floor.
   --------------------------------------------------------- */

.as-network-mesh-wrap {
    position: absolute;
    inset: 0;
    perspective: 620px;
    perspective-origin: 50% 30%;
    overflow: hidden;
}

.as-network-mesh {
    position: absolute;
    left: 50%;
    top: 56%;
    width: 680px;
    height: 680px;
    margin: -340px 0 0 -340px;
    transform: rotateX(64deg);
    background-image:
        repeating-linear-gradient(0deg, rgba(var(--as-network-accent-rgb), .12) 0 1px, transparent 1px 40px),
        repeating-linear-gradient(90deg, rgba(var(--as-network-accent-rgb), .12) 0 1px, transparent 1px 40px),
        radial-gradient(circle, rgba(var(--as-network-accent-rgb), .5) 1px, transparent 1.6px);
    background-size: 40px 40px, 40px 40px, 40px 40px;
    background-color: transparent;
    -webkit-mask-image: radial-gradient(circle at 50% 32%, #000 0%, #000 34%, transparent 66%);
    mask-image: radial-gradient(circle at 50% 32%, #000 0%, #000 34%, transparent 66%);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    animation: as-network-mesh-drift 9s linear infinite;
}

@keyframes as-network-mesh-drift {
    from { background-position: 0 0, 0 0, 0 0; }
    to   { background-position: 0 40px, 0 0, 0 40px; }
}

/* ---------------------------------------------------------
   Diagram: static spokes + animated "packet" pulses
   --------------------------------------------------------- */

.as-network-svg {
    position: relative;
    width: 100%;
    height: 100%;
    display: block;
}

.as-network-link {
    stroke: var(--as-network-accent);
    stroke-width: 1;
    opacity: .26;
}

.as-network-flow {
    stroke: var(--as-network-accent);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 2 20;
    opacity: .85;
    animation: as-network-flow 5.2s linear infinite;
}

@keyframes as-network-flow {
    to { stroke-dashoffset: -176; }
}

.as-network-hub__glow { fill: rgba(var(--as-network-accent-rgb), .20); }
.as-network-hub__ring { fill: none; stroke: rgba(var(--as-network-accent-rgb), .5); stroke-width: 1; }
.as-network-hub__core { fill: var(--as-network-accent); }

.as-network-icon {
    stroke: var(--as-network-accent);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    animation: as-network-twinkle 14s ease-in-out infinite;
}

.as-network-icon--server      { animation-duration: 14s;   animation-delay: 0s; }
.as-network-icon--workstation { animation-duration: 16.4s; animation-delay: -4s; }
.as-network-icon--laptop      { animation-duration: 12.8s; animation-delay: -6.8s; }
.as-network-icon--router      { animation-duration: 18s;   animation-delay: -2.2s; }
.as-network-icon--cloud       { animation-duration: 15.2s; animation-delay: -8.4s; }

@keyframes as-network-twinkle {
    0%, 100% { opacity: .78; }
    50%      { opacity: 1; }
}

.as-network-icon__glow { fill: rgba(var(--as-network-accent-rgb), .16); stroke: none; }

.as-network-led {
    fill: var(--as-network-accent);
    stroke: none;
    animation: as-network-led-blink 4.8s ease-in-out infinite;
}

@keyframes as-network-led-blink {
    0%, 100% { opacity: .35; }
    50%      { opacity: 1; }
}

.as-network-dot {
    fill: rgba(var(--as-network-accent-rgb), .5);
    stroke: none;
}

/* ---------------------------------------------------------
   Reduced motion
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    .as-network-mesh,
    .as-network-flow,
    .as-network-icon,
    .as-network-led {
        animation: none;
    }
    .as-network-flow { opacity: 0; }
    .as-network-icon { opacity: .9; }
    .as-network-led { opacity: .85; }
}

/* Below the desktop breakpoint hero.css already hides
   .alpha-hero__visual entirely, so this component simply never
   mounts on mobile - no separate mobile rule needed. */
