:root {
    --bg: #0d0b16;
    --surface: #18141f;
    --surface-border: #2a2436;
    --text: #f3f0f8;
    --muted: #948da3;

    --pink: #ff3d94;
    --cyan: #39e6d0;
    --amber: #ffb648;
    --violet: #7c5cff;

    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }

html, body {
    height: 100%;
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    overflow: hidden;
}

.stage {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Faint radial glow behind everything, echoes the logo's gradient */
.stage::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 50%, rgba(124, 92, 255, 0.10), transparent 45%);
    pointer-events: none;
}

.orbit-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.orbit-lines path {
    fill: none;
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    opacity: 0;
    transition: stroke-dashoffset 0.5s ease, opacity 0.3s ease;
    vector-effect: non-scaling-stroke;
    pathLength: 1;
}

.stage.revealed .orbit-lines path {
    stroke-dashoffset: 0;
    opacity: 0.55;
}

.hub {
    position: relative;
    z-index: 3;
    width: clamp(90px, 12vw, 150px);
    height: clamp(90px, 12vw, 150px);
    border-radius: 28%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
    transition: transform 0.35s ease;
}

.hub:hover,
.hub:focus-visible,
.stage.revealed .hub {
    transform: scale(1.05);
}

.hub-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 24px rgba(255, 61, 148, 0.25))
            drop-shadow(0 0 40px rgba(124, 92, 255, 0.18));
}

.satellites {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 148px;
    padding: 12px 14px;
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: 14px;
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
    gap: 6px;
    transform: translate(-50%, -50%) scale(0.4);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.stage.revealed .card {
    opacity: 1;
    pointer-events: auto;
    transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(1);
    transition-delay: var(--delay);
}

.card[data-published="true"]:hover {
    border-color: var(--cyan);
    box-shadow: 0 0 0 1px rgba(57, 230, 208, 0.25), 0 8px 24px rgba(0, 0, 0, 0.35);
}

.card[data-published="false"] {
    cursor: default;
}

.card[data-published="false"]:hover {
    border-color: var(--amber);
}

.card-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    color: var(--muted);
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--amber);
    flex-shrink: 0;
}

.card[data-published="true"] .status-dot {
    background: var(--cyan);
}

.card-name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.2;
}

.card-types {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.type-tag {
    font-size: 0.68rem;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid var(--surface-border);
    color: var(--muted);
    white-space: nowrap;
}

.type-tag[data-platform="android"] { border-color: rgba(57, 230, 208, 0.4); color: var(--cyan); }
.type-tag[data-platform="ios"] { border-color: rgba(124, 92, 255, 0.4); color: var(--violet); }
.type-tag[data-platform="web"] { border-color: rgba(255, 182, 72, 0.4); color: var(--amber); }
.type-tag[data-platform="escritorio"] { border-color: rgba(255, 61, 148, 0.4); color: var(--pink); }

@media (prefers-reduced-motion: reduce) {
    .card, .orbit-lines path, .hub { transition: none !important; }
}

@media (max-width: 600px) {
    .card { width: 122px; padding: 10px 12px; }
    .card-name { font-size: 0.85rem; }
}
