:root {
    --nb-black-hole: #000000;
    --nb-lunar-white: #ffffff;

    --nb-void-900: #0c0c0c;
    --nb-void-700: #1a1a1a;
    --nb-void-500: #303030;
    --nb-void-200: #d0d0d0;

    --nb-nebula-blue: #00c8ff;
    --nb-quantum-blue: #148dff;

    --nb-radius-lg: 14px;
    --nb-transition-fast: 0.2s ease-out;
    --nb-transition-med: 0.35s ease-out;
}

/* LIGHT THEME OVERRIDES */
body.theme-light {
    --nb-black-hole: #e6e7eb;
    --nb-lunar-white: #080808;

    --nb-void-900: #ffffff;
    --nb-void-700: #d6d7da;
    --nb-void-500: #9ea0a7;
    --nb-void-200: #6d6f74;

    --nb-nebula-blue: #148dff;
    --nb-quantum-blue: #0067d9;
}

body.theme-light .link-card {
    background: rgba(255,255,255,0.4);
    border: 1px solid rgba(0,0,0,0.25);

    box-shadow:
            inset 0 0 25px rgba(255,255,255,0.15),
            0 8px 20px rgba(0,0,0,0.25);

    color: #0a0a0a;
}

body.theme-light .link-card:hover {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(0, 0, 0, 0.4);

    box-shadow:
            0 3px 12px rgba(0, 0, 0, 0.15),
            0 7px 22px rgba(0, 0, 0, 0.20),
            0 0 22px rgba(13, 137, 255, 0.3);
}

body.theme-light .link-card__label {
    color: #0e0e0e;
}

body.theme-light .link-card__emoji {
    filter: brightness(0.8);
}
.link-card__icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    filter: invert(1);
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

body.theme-light .link-card__icon {
    filter: brightness(0.1);
    opacity: 0.9;
}

body.theme-light .logo {
    filter: drop-shadow(0 0 18px rgba(255,255,255,0.6));
}

body.theme-light::before {
    background:
            radial-gradient(circle at 50% -10%, #d8d8da 0%, rgba(255,255,255,0) 60%),
            radial-gradient(circle at 90% 120%, #b6b8be 0%, rgba(255,255,255,0) 70%),
            radial-gradient(circle at 20% 40%, #9ea0a7 0%, rgba(255,255,255,0) 80%);
}

/* ===========================
   GLOBAL
   =========================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Kanit", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--nb-black-hole);
    color: var(--nb-lunar-white);
    overflow-x: hidden;
}

/* Fondo degradado */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
            radial-gradient(circle at 15% -10%, #222 0%, transparent 55%),
            radial-gradient(circle at 80% 120%, #111 0%, transparent 60%),
            radial-gradient(circle at 50% -20%, #1a1a1a 0%, transparent 65%);
}

/* Layout columna para footer al fondo */
.layout {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Canvas de estrellas */
#stars {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* ===========================
   CONTENIDO PRINCIPAL
   =========================== */

.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 20px 24px;
    text-align: center;
}

.logo {
    width: 150px;
    margin-bottom: 12px;
    filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.3));
    transition: transform var(--nb-transition-med), filter var(--nb-transition-med);
}

body.is-ready .logo {
    transform: translateY(0);
}

.header-text {
    margin-bottom: 24px;
}

.studio-name {
    margin: 0;
    font-size: 32px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tagline {
    margin: 8px 0 0;
    font-size: 14px;
    line-height: 1.4;
    opacity: 0.85;
}

/* ===========================
   THEME TOGGLE
   =========================== */

.theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01));
    color: inherit;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: border var(--nb-transition-fast), background var(--nb-transition-fast), transform var(--nb-transition-fast), box-shadow var(--nb-transition-fast);
}

.theme-toggle__icon {
    font-size: 16px;
}

.theme-toggle:hover {
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 0 18px rgba(0, 200, 255, 0.6);
    transform: translateY(-1px);
}

/* ===========================
   LINK CARDS
   =========================== */

.links {
    width: 100%;
    max-width: 460px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Cards base */
.link-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 15px 18px;
    border-radius: var(--nb-radius-lg);
    text-decoration: none;
    color: var(--nb-lunar-white);
    font-size: 17px;
    font-weight: 600;

    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    box-shadow: 0 0 0 rgba(0, 200, 255, 0);
    overflow: hidden;

    transform: translateY(10px) scale(0.98);
    opacity: 0;
    transition:
            transform var(--nb-transition-med),
            opacity var(--nb-transition-med),
            box-shadow var(--nb-transition-med),
            border var(--nb-transition-fast),
            background var(--nb-transition-fast);
}

/* Animación de entrada escalonada */
body.is-ready .link-card {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.link-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 0% 0%, rgba(0, 200, 255, 0.25), transparent 60%);
    opacity: 0;
    transition: opacity var(--nb-transition-fast);
}

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

.link-card:hover {
    box-shadow: 0 0 25px rgba(0, 200, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-3px) scale(1.01);
}

/* Icono dentro del link */
.link-card__emoji {
    font-size: 20px;
}

/* Tipo de link (opcional) */
.link-card__label {
    white-space: nowrap;
}

/* ===========================
   FOOTER
   =========================== */

footer {
    padding: 14px 10px 18px;
    text-align: center;
    font-size: 13px;
    opacity: 0.65;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

footer .highlight {
    color: var(--nb-nebula-blue);
}

footer:hover {
    opacity: 0.95;
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 480px) {
    .logo {
        width: 120px;
    }
    .studio-name {
        font-size: 26px;
    }
    .tagline {
        font-size: 13px;
    }
    .link-card {
        font-size: 16px;
        padding: 13px 16px;
    }
}

@media (min-width: 900px) {
    .container {
        padding-top: 60px;
        padding-bottom: 40px;
    }
}
