/* ===================================================================
   Systems Network – Layout & Visual Styles
   =================================================================== */

.axion-systems-network {
    aspect-ratio: 1 / 1;
    max-width: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* -----------------------------------------------------------------------
   Central Hub
   ----------------------------------------------------------------------- */
.sn-hub {
    position: relative;
    z-index: 10;
    width: 6rem;
    height: 6rem;
    border-radius: 1.5rem;
    background: white;
    border: 2px solid #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.4);
    animation: sn-pulse 3s ease-in-out infinite;
}

.dark .sn-hub {
    background: black;
}

.sn-hub-inner {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, #2d69fb 0%, #d278fe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sn-hub-icon {
    width: 2rem;
    height: 2rem;
    color: white;
}

/* -----------------------------------------------------------------------
   Orbiting Nodes
   ----------------------------------------------------------------------- */
.sn-orbits {
    position: absolute;
    inset: 0;
}

.sn-orbit-wrapper {
    position: absolute;
    inset: 0;
    animation: sn-spin var(--sn-duration) linear infinite;
}

.sn-node-arm {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    transform-origin: 0 0;
}

.sn-connect-line {
    position: absolute;
    width: 1px;
    height: 40%;
    bottom: 0;
    left: 0;
    transform-origin: bottom center;
    background: linear-gradient(to top, rgba(59, 130, 246, 0.2), transparent);
}

.sn-node {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -180px);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background: white;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.dark .sn-node {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.sn-node-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, #2d69fb 0%, #d278fe 100%);
}

/* Counter-rotate nodes so they stay upright */
.sn-orbit-wrapper .sn-node {
    animation: sn-counter-spin var(--sn-duration) linear infinite;
}

/* -----------------------------------------------------------------------
   Floating Labels
   ----------------------------------------------------------------------- */
.sn-labels {
    position: absolute;
    inset: 0;
    z-index: 20;
    pointer-events: none;
}

.sn-label {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    white-space: nowrap;
}

.sn-label-strategy  { top: 15%; left: 15%; color: #3b82f6; }
.sn-label-narrative { top: 20%; right: 10%; color: #a855f7; }
.sn-label-launch    { bottom: 25%; left: 5%; color: #10b981; }
.sn-label-growth    { bottom: 15%; right: 20%; color: #60a5fa; }

.sn-label-dot {
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 9999px;
    flex-shrink: 0;
}

.sn-ldot-blue      { background: #3b82f6; }
.sn-ldot-purple    { background: #a855f7; }
.sn-ldot-emerald   { background: #10b981; }
.sn-ldot-lightblue { background: #60a5fa; }

/* -----------------------------------------------------------------------
   Dark Mode
   ----------------------------------------------------------------------- */
.dark .sn-hub {
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.5);
}

.dark .sn-label {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.85);
}

.dark .sn-connect-line {
    background: linear-gradient(to top, rgba(59, 130, 246, 0.35), transparent);
}

/* -----------------------------------------------------------------------
   Keyframes
   ----------------------------------------------------------------------- */
@keyframes sn-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@keyframes sn-counter-spin {
    from { transform: translate(-50%, -180px) rotate(0deg); }
    to   { transform: translate(-50%, -180px) rotate(-360deg); }
}

@keyframes sn-pulse {
    0%, 100% { box-shadow: 0 0 30px rgba(59, 130, 246, 0.4); }
    50%      { box-shadow: 0 0 50px rgba(59, 130, 246, 0.6); }
}

/* -----------------------------------------------------------------------
   Responsive – Tablet
   ----------------------------------------------------------------------- */
@media (max-width: 768px) {
    .sn-hub {
        width: 5rem;
        height: 5rem;
        border-radius: 1.25rem;
    }
    .sn-hub-inner {
        width: 3.25rem;
        height: 3.25rem;
        border-radius: 0.75rem;
    }
    .sn-hub-icon {
        width: 1.5rem;
        height: 1.5rem;
    }
    .sn-node {
        width: 2rem;
        height: 2rem;
        border-radius: 0.625rem;
        transform: translate(-50%, -130px);
    }
    .sn-orbit-wrapper .sn-node {
        animation-name: sn-counter-spin-tablet;
    }
    @keyframes sn-counter-spin-tablet {
        from { transform: translate(-50%, -130px) rotate(0deg); }
        to   { transform: translate(-50%, -130px) rotate(-360deg); }
    }
    .sn-node-dot {
        width: 0.375rem;
        height: 0.375rem;
    }
    .sn-label {
        font-size: 8px;
        padding: 0.375rem 0.75rem;
        letter-spacing: 0.15em;
    }
}

/* -----------------------------------------------------------------------
   Responsive – Mobile
   ----------------------------------------------------------------------- */
@media (max-width: 480px) {
    .sn-hub {
        width: 4rem;
        height: 4rem;
        border-radius: 1rem;
    }
    .sn-hub-inner {
        width: 2.5rem;
        height: 2.5rem;
        border-radius: 0.625rem;
    }
    .sn-hub-icon {
        width: 1.25rem;
        height: 1.25rem;
    }
    .sn-node {
        width: 1.75rem;
        height: 1.75rem;
        border-radius: 0.5rem;
        transform: translate(-50%, -90px);
    }
    .sn-orbit-wrapper .sn-node {
        animation-name: sn-counter-spin-mobile;
    }
    @keyframes sn-counter-spin-mobile {
        from { transform: translate(-50%, -90px) rotate(0deg); }
        to   { transform: translate(-50%, -90px) rotate(-360deg); }
    }
    .sn-node-dot {
        width: 0.3rem;
        height: 0.3rem;
    }
    .sn-label {
        font-size: 7px;
        padding: 0.25rem 0.5rem;
        letter-spacing: 0.1em;
    }
    .sn-label-dot {
        width: 0.25rem;
        height: 0.25rem;
    }
    .sn-label-strategy  { top: 12%; left: 5%; }
    .sn-label-narrative { top: 18%; right: 3%; }
    .sn-label-launch    { bottom: 20%; left: 2%; }
    .sn-label-growth    { bottom: 12%; right: 8%; }
}
