/* ================================================================
   MUTABOT "GLASS CORE" DESIGN SYSTEM
   Design Tokens - CSS Custom Properties
   ================================================================ */

:root {
    /* ===== CORE PALETTE ===== */

    /* The Void - Deep Space Backgrounds */
    --bg-deep-space: #0F0F1A;
    --bg-nebula-dark: #1a1a2e;
    --bg-nebula-gradient: linear-gradient(135deg, #0F0F1A 0%, #1a1a2e 100%);

    /* The Accents (Player Colors) */
    --accent-sapphire: #3399ff;
    --accent-ruby: #ff4d4d;
    --accent-emerald: #00cc66;
    --accent-copper: #ffaa00;

    /* Typography Colors */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-tertiary: rgba(255, 255, 255, 0.4);


    /* ===== GLASSMORPHISM STYLES ===== */

    /* Base transparency levels for glass panes */
    --glass-bg-light: rgba(255, 255, 255, 0.05);
    --glass-bg-dark: rgba(0, 0, 0, 0.2);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-border-bright: rgba(255, 255, 255, 0.2);

    /* Blur and shadows */
    --glass-blur: blur(16px);
    --glass-blur-heavy: blur(24px);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --glass-shadow-hover: 0 12px 40px 0 rgba(0, 0, 0, 0.5);

    /* Glow effects for accent colors */
    --glow-sapphire: 0 0 20px rgba(51, 153, 255, 0.3);
    --glow-ruby: 0 0 20px rgba(255, 77, 77, 0.3);
    --glow-emerald: 0 0 20px rgba(0, 204, 102, 0.3);


    /* ===== SPACING & LAYOUT ===== */

    --section-spacing: 120px;
    --container-max-width: 1400px;
    --container-padding: 40px;

    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 40px;
    --spacing-xl: 64px;
    --spacing-2xl: 96px;


    /* ===== TYPOGRAPHY ===== */

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

    /* Font sizes */
    --text-xs: 12px;
    --text-sm: 14px;
    --text-base: 16px;
    --text-lg: 18px;
    --text-xl: 24px;
    --text-2xl: 32px;
    --text-3xl: 48px;
    --text-4xl: 64px;
    --text-5xl: 80px;

    /* Line heights */
    --leading-tight: 1.2;
    --leading-normal: 1.5;
    --leading-relaxed: 1.6;

    /* Letter spacing */
    --tracking-tight: -0.02em;
    --tracking-normal: 0;
    --tracking-wide: 0.02em;
    --tracking-wider: 0.1em;


    /* ===== BORDERS & RADIUS ===== */

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;


    /* ===== Z-INDEX LAYERS ===== */

    --z-background-video: -1;
    --z-background: 0;
    --z-3d-assets: 10;
    --z-glass-ui: 20;
    --z-navigation: 100;
    --z-modal: 1000;


    /* ===== TRANSITIONS & ANIMATIONS ===== */

    /* Durations */
    --duration-instant: 0.1s;
    --duration-quick: 0.3s;
    --duration-medium: 0.6s;
    --duration-slow: 1.2s;
    --duration-drift: 3s;

    /* Easing curves */
    --ease-float: cubic-bezier(0.4, 0.0, 0.2, 1);
    --ease-snap: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --ease-drift: cubic-bezier(0.33, 1, 0.68, 1);
    --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-in: cubic-bezier(0.4, 0, 1, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);


    /* ===== RESPONSIVE BREAKPOINTS (for JS) ===== */

    --breakpoint-sm: 640px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 1024px;
    --breakpoint-xl: 1280px;
    --breakpoint-2xl: 1536px;
}


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

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    color: var(--text-secondary);
    background: var(--bg-deep-space);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--text-primary);
    line-height: var(--leading-tight);
}

a {
    color: var(--accent-sapphire);
    text-decoration: none;
    transition: color var(--duration-quick) var(--ease-standard);
}

a:hover {
    color: var(--accent-ruby);
}

button {
    font-family: var(--font-display);
    border: none;
    background: none;
    cursor: pointer;
    transition: all var(--duration-quick) var(--ease-standard);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

svg {
    display: block;
}


/* ===== UTILITY CLASSES ===== */

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section-title {
    font-size: var(--text-3xl);
    margin-bottom: var(--spacing-xl);
    text-align: center;
}

/* Gradient text effect */
.gradient-text {
    background: linear-gradient(90deg, var(--accent-sapphire), var(--accent-ruby));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


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

@media (max-width: 768px) {
    :root {
        --text-3xl: 36px;
        --text-4xl: 48px;
        --text-5xl: 56px;
        --section-spacing: 80px;
        --container-padding: 20px;
    }
}

@media (max-width: 480px) {
    :root {
        --text-3xl: 28px;
        --text-4xl: 36px;
        --text-5xl: 40px;
        --section-spacing: 60px;
    }
}
