* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: radial-gradient(circle at 10% 10%, rgba(0, 206, 209, .35), transparent 45%), radial-gradient(circle at 80% 15%, rgba(139, 92, 246, .25), transparent 50%), linear-gradient(180deg, #030914, #020510 65%, #010307);
    background-attachment: fixed;
    color: white;
    min-height: 100vh;
    font-family: "Sora", sans-serif;
}

.page {
    width: 100%;
    min-height: 100vh;
    padding-top: 2rem;
}

.title-section {
    text-align: center;
    margin-top: 1rem;
}

.title-section h2 {
    font-family: "Orbitron", sans-serif;
    font-weight: 900;
    font-size: 3.2rem;
}

.title-section h3 {
    font-family: "Sora", sans-serif;
    font-weight: 300;
    font-size: 2.5rem;
    letter-spacing: 0.75rem;
}

.title-hr {
    width: min(30%, 540px);
    margin: 1rem auto 0;
    border: 1px solid lime;
}

.ecosystem-section {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
    padding: 0 1rem 2rem;
}

.ecosystem-map {
    position: relative;
    width: min(550px, 90vw);
    aspect-ratio: 1 / 1;
    overflow: visible;
    background-image: url("./brand.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.ecosystem-link {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: 11%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    text-decoration: none;
    border-radius: 50%;
    overflow: visible;
}

/* Later siblings would otherwise paint over this node's tooltip (::after is inside this context). */
.ecosystem-link:hover,
.ecosystem-link:focus-visible {
    z-index: 50;
}

.ecosystem-link img {
    width: 136%;
    height: 136%;
    object-fit: contain;
    /* Padding expands the filter paint region so drop-shadow is not clipped to a square. */
    padding: 22px;
    margin: -22px;
    box-sizing: content-box;
    transition:
        transform 0.22s ease,
        filter 0.22s ease;
}

/* Shared hover behavior */
.ecosystem-link:hover img {
    transform: scale(1.14);
    filter:
        brightness(1.08)
        drop-shadow(0 0 6px var(--glow-color))
        drop-shadow(0 0 12px var(--glow-color));
}

/* Glow color groups */
.glow-green {
    --glow-color: rgba(57, 255, 20, 0.75);
}

.glow-cyan {
    --glow-color: rgba(0, 255, 255, 0.75);
}

.glow-purple {
    --glow-color: rgba(162, 89, 255, 0.75);
}

.glow-blue {
    --glow-color: rgba(70, 140, 255, 0.75);
}

.core {
    position: absolute;
    left: 49.6%;
    top: 51%;
    transform: translate(-50%, -50%);
    width: 18%; /* adjust this to fit your inner ring */
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2; /* ensure it's above background but below hover effects if needed */
}

.core img {
    width: 150%;
    height: 150%;
    object-fit: contain;
    pointer-events: none; /* prevents blocking clicks on nearby icons */
}

.ecosystem-link::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 120%; /* positions above icon */
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    
    background: rgba(0, 0, 0, 0.85);
    color: white;
    font-family: "Sora", sans-serif;
    font-size: 0.9rem;          /* increase size (try 0.9–1.1rem) */
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 6px 10px;
    border-radius: 6px;
    white-space: nowrap;

    opacity: 0;
    pointer-events: none;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;

    z-index: 10;
}

.ecosystem-link:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.glow-green:hover::after {
    box-shadow:
        0 0 6px rgba(57, 255, 20, 0.6),
        0 0 12px rgba(57, 255, 20, 0.4);
    border: 1px solid rgba(57, 255, 20, 0.6);
}

.glow-cyan:hover::after {
    box-shadow:
        0 0 6px rgba(0, 255, 255, 0.6),
        0 0 12px rgba(0, 255, 255, 0.4);
    border: 1px solid rgba(0, 255, 255, 0.6);
}

.glow-purple:hover::after {
    box-shadow:
        0 0 6px rgba(162, 89, 255, 0.6),
        0 0 12px rgba(162, 89, 255, 0.4);
    border: 1px solid rgba(162, 89, 255, 0.6);
}

.glow-blue:hover::after {
    box-shadow:
        0 0 6px rgba(70, 140, 255, 0.6),
        0 0 12px rgba(70, 140, 255, 0.4);
    border: 1px solid rgba(70, 140, 255, 0.6);
}

.ecosystem-link::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: calc(120% - 6px);
    transform: translateX(-50%);
    width: 0;
    height: 0;

    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid rgba(0, 0, 0, 0.85);

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 11;
}

.ecosystem-link:hover::before {
    opacity: 1;
}

.ecosystem-link.disabled {
    pointer-events: none; 
    opacity: 0.88;         
}
.ecosystem-link .badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    font-family: "Sora", sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;

    padding: 4px 8px;
    border-radius: 4px;

    color: white;
    
    pointer-events: none; /* don't block hover/click logic */
    
    z-index: 3;
}

.glow-green.disabled .badge {
    background: rgba(0, 106, 5, 0.85);
    border: 1px solid rgba(57, 255, 20, 0.7);
    color:#dadada;
    box-shadow: 0 0 6px rgba(57, 255, 20, 0.5);
}

.glow-cyan.disabled .badge {
    background: rgba(0, 122, 133, 0.85);
    border: 1px solid rgba(0, 255, 255, 0.7);
    color:#dadada;
    box-shadow: 0 0 6px rgba(0, 255, 255, 0.5);
}

.glow-purple.disabled .badge {
    background: rgba(90, 0, 119, 0.85);
    border: 1px solid rgba(162, 89, 255, 0.7);
    box-shadow: 0 0 6px rgba(162, 89, 255, 0.5);
}

.glow-blue.disabled .badge {
    background: rgba(0, 11, 106, 0.85);
    border: 1px solid rgba(70, 140, 255, 0.7);
    box-shadow: 0 0 6px rgba(70, 140, 255, 0.5);
}

.ecosystem-link.disabled img {
    opacity: 0.85;
    filter: brightness(0.7);
    filter: grayscale(100%);
}

@keyframes badgePulse {
    0% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.05); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

.ecosystem-link.disabled .badge {
    animation: badgePulse 2.5s ease-in-out infinite;
}

.sandbox-notice {
    width: min(860px, calc(100% - 2rem));
    margin: 0 auto 4rem;
    padding: 1.25rem 1.4rem;
    border-radius: 16px;
    border: 1px solid rgba(0, 255, 255, 0.26);
    background:
        linear-gradient(145deg, rgba(2, 16, 28, 0.86), rgba(2, 7, 16, 0.9)),
        radial-gradient(circle at top left, rgba(0, 255, 255, 0.16), transparent 42%);
    box-shadow:
        0 20px 46px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    text-align: center;
}

.sandbox-notice__eyebrow {
    margin: 0 0 0.35rem;
    color: rgba(0, 255, 255, 0.78);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.sandbox-notice h2 {
    margin: 0;
    font-family: "Orbitron", sans-serif;
    font-size: clamp(1.25rem, 4vw, 2rem);
    letter-spacing: 0.08em;
}

.sandbox-notice p:not(.sandbox-notice__eyebrow) {
    max-width: 720px;
    margin: 0.8rem auto 0;
    color: rgba(232, 248, 255, 0.82);
    line-height: 1.7;
    font-size: 0.95rem;
}

@media (max-width: 680px) {
    .title-section h2 {
        font-size: 2.35rem;
    }

    .title-section h3 {
        font-size: 1.7rem;
        letter-spacing: 0.46rem;
    }

    .ecosystem-section {
        margin-top: 2rem;
    }

    .sandbox-notice {
        margin-bottom: 2.5rem;
    }
}
