:root {
    /* 1. PALETTE: DEEP VOID */
    --color-bg-deep: #020617;
    /* Slate 950 */
    --color-bg-surface: rgba(15, 23, 42, 0.4);

    /* 2. ACCENTS: NEON FLUX */
    --color-primary: #6366f1;
    /* Indigo */
    --color-primary-glow: rgba(99, 102, 241, 0.5);
    --color-success: #10b981;
    /* Emerald */
    --color-success-glow: rgba(16, 185, 129, 0.5);
    --color-accent: #f43f5e;
    /* Rose */

    /* 3. TYPOGRAPHY: FUTURE TECH */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    /* Inter Tight if available, falling back to Inter */
    --font-mono: 'JetBrains Mono', monospace;

    /* 4. DIAMOND GLASS (THE SECRET SAUCE) */
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    --glass-highlight: 1px solid rgba(255, 255, 255, 0.2);
    /* High Blur + High Saturation = Premium Feel */
    --glass-filter: blur(24px) saturate(180%);

    --shadow-soft: 0 20px 40px -20px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.15);

    /* 5. MOTION */
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
    --anim-fast: 0.2s ease;
    --anim-medium: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* BASE */
body {
    background-color: var(--color-bg-deep);
    /* #020617 */
    color: #f8fafc;
    font-family: var(--font-body);
    /* Background handled by aurora_universe.css */
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* TYPOGRAPHY OVERRIDES FOR CONTRAST */
h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

p,
span,
li,
td,
th {
    color: #e2e8f0;
    /* Slate 200 - Very Light Grey */
}

.text-muted {
    color: #cbd5e1 !important;
    /* Slate 300 - Readable even when 'muted' */
}

/* COMPONENT: DIAMOND GLASS CARD */
.glass-card {
    background: radial-gradient(800px circle at var(--mouse-x, 0px) var(--mouse-y, 0px),
            rgba(255, 255, 255, 0.06),
            transparent 40%), var(--color-bg-surface);
    backdrop-filter: var(--glass-filter);
    -webkit-backdrop-filter: var(--glass-filter);
    border: var(--glass-border);
    border-radius: 20px;
    /* More rounded */
    box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all var(--anim-medium);
    color: #f8fafc;
    /* Ensure contrast inside cards */
}

.glass-card:hover {
    border: var(--glass-highlight);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.6), var(--shadow-glow);
}

/* COMPONENT: LUMINESCENT BUTTONS */
.btn-primary-glow {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 10px 24px;
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    transition: all var(--anim-fast);
    position: relative;
    overflow: hidden;
}

.btn-primary-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.5);
    color: white;
}

.btn-primary-glow:active {
    transform: translateY(0);
}

/* INPUTS */
.form-control-glass {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 12px;
    padding: 12px 16px;
    transition: all 0.2s;
}

.form-control-glass:focus {
    background: rgba(15, 23, 42, 0.8);
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
    color: #fff;
}

.form-control-glass::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* NAVBAR GLASS */
.navbar-glass {
    background: rgba(15, 23, 42, 0.85) !important;
    backdrop-filter: blur(16px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar-brand-text {
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.text-gradient-silver {
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    /* Reduced shadow for general use */
}

.text-gradient-silver-glow {
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

/* ANIMATIONS */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.fade-in-up {
    animation: fadeInUp 0.6s var(--ease-out-back) forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* URGENT: RESTORE CURSOR GLOBALLY */
* {
    cursor: auto !important;
}

a,
button,
.btn,
input[type="submit"],
input[type="button"],
select,
[role="button"],
i.fas,
i.fab,
i.far {
    cursor: pointer !important;
}

/* Ensure inputs utilize text cursor */
input[type="text"],
input[type="email"],
input[type="password"],
textarea {
    cursor: text !important;
}
}

a:hover {
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    mix-blend-mode: exclusion;
    /* Blends with background */
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background: white;
    margin-top: -4px;
    margin-left: -4px;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-top: -20px;
    margin-left: -20px;
    transition: width 0.2s, height 0.2s, background-color 0.2s, transform 0.2s;
}

.cursor-hover {
    transform: scale(1.5);
    background: rgba(255, 255, 255, 0.1);
    border-color: transparent;
}

.cursor-hidden {
    opacity: 0;
}

/* CINEMATIC INTRO (Immersive-G Style) */
#cinematic-loader {
    position: fixed;
    inset: 0;
    background: #020617;
    /* Deep Void */
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: var(--font-mono);
    transition: opacity 0.8s ease-in-out;
}

.loader-text {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: var(--color-primary);
    margin-top: 20px;
    opacity: 0.7;
}

.loader-bar {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}

.loader-progress {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: var(--color-success);
    transition: width 0.1s linear;
}

/* LENIS UTILITIES */
html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}