/* ═══════════════════════════════════════════════════════════════════════════════
   BASE.CSS — Wilx Design System Foundation
   Single source of truth: variables, reset, typography, utilities
   Mobile-first: base styles for XS, scale up via min-width queries
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ─── DESIGN TOKENS ─────────────────────────────────────────────────────────── */
:root {
    /* Core Palette */
    --bg-dark: #030304;
    --surface-dark: #0B0B0F;
    --surface-elevated: #111116;
    --surface-card: rgba(255, 255, 255, 0.02);

    /* Brand Colors */
    --primary-gold: #FFD700;
    --primary-cyan: #00F0FF;
    --primary-purple: #8A2BE2;
    --accent-green: #27c93f;

    /* Gold Variants */
    --gold-subtle: rgba(255, 215, 0, 0.08);
    --gold-border: rgba(255, 215, 0, 0.2);
    --gold-glow: rgba(255, 215, 0, 0.3);

    /* Cyan Variants */
    --cyan-subtle: rgba(0, 240, 255, 0.08);
    --cyan-border: rgba(0, 240, 255, 0.2);
    --cyan-glow: rgba(0, 240, 255, 0.3);

    /* Purple Variants */
    --purple-subtle: rgba(138, 43, 226, 0.08);
    --purple-border: rgba(138, 43, 226, 0.2);
    --purple-glow: rgba(138, 43, 226, 0.3);

    /* Glass */
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-bg-hover: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.06);
    --glass-border-hover: rgba(255, 255, 255, 0.12);
    --glass-highlight: rgba(255, 255, 255, 0.1);

    /* Text */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-tertiary: rgba(255, 255, 255, 0.5);
    --text-muted: rgba(255, 255, 255, 0.4);
    --text-faint: rgba(255, 255, 255, 0.3);

    /* Gradients */
    --gradient-gold: linear-gradient(135deg, #FFD700 0%, #D4AF37 100%);
    --gradient-cyan: linear-gradient(135deg, #00F0FF 0%, #00BCD4 100%);
    --gradient-purple: linear-gradient(135deg, #8A2BE2 0%, #6600AA 100%);
    --gradient-premium: linear-gradient(135deg, #FFF 0%, #AAA 100%);

    /* Spacing Scale */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-pill: 50px;
    --radius-circle: 50%;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.4);
    --shadow-gold: 0 0 30px rgba(255, 215, 0, 0.15);
    --shadow-cyan: 0 0 30px rgba(0, 240, 255, 0.15);
    --shadow-purple: 0 0 30px rgba(138, 43, 226, 0.15);

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-bounce: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --transition-fast: 0.2s var(--ease-out);
    --transition-base: 0.3s var(--ease-out);
    --transition-slow: 0.4s var(--ease-out);

    /* Layout */
    --header-height: 80px;
    --container-max: 1320px;

    /* 5-Stage Breakpoints (reference — used in @media queries) */
    /* XS: < 576px (base)       — Mobile Portrait   */
    /* SM: >= 576px              — Mobile Landscape  */
    /* MD: >= 768px              — Tablet            */
    /* LG: >= 992px              — Laptop            */
    /* XL: >= 1200px             — Desktop           */
    /* XXL: >= 1400px            — Ultra-Wide        */
}


/* ─── GLOBAL RESET ──────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
    padding: 0;
    margin: 0;
}


/* ─── TYPOGRAPHY ────────────────────────────────────────────────────────────── */
.font-outfit {
    font-family: 'Outfit', sans-serif !important;
    letter-spacing: -0.5px;
}

/* Fluid Typography — scales smoothly between breakpoints */
h1, .display-1, .display-2, .display-3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

h2, .display-4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    line-height: 1.3;
}

/* Fluid display sizes */
.display-1 { font-size: clamp(2.5rem, 5vw + 1rem, 5rem); }
.display-2 { font-size: clamp(2.2rem, 4vw + 1rem, 4rem); }
.display-3 { font-size: clamp(2rem, 3.5vw + 0.8rem, 3.5rem); }
.display-4 { font-size: clamp(1.75rem, 3vw + 0.5rem, 2.8rem); }
.display-5 { font-size: clamp(1.5rem, 2.5vw + 0.5rem, 2.25rem); }

.lead {
    font-size: clamp(1rem, 1.2vw + 0.2rem, 1.25rem);
    font-weight: 300;
    line-height: 1.7;
    color: var(--text-secondary);
}


/* ─── GRADIENT TEXT ─────────────────────────────────────────────────────────── */
.text-gradient,
.text-gradient-gold {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-cyan {
    background: var(--gradient-cyan);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-purple {
    background: var(--gradient-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-glow {
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.3));
}


/* ─── COLOR UTILITIES ───────────────────────────────────────────────────────── */
.text-primary-cyan { color: var(--primary-cyan) !important; }
.text-primary-purple { color: var(--primary-purple) !important; }
.text-primary-gold { color: var(--primary-gold) !important; }
.text-gold { color: var(--primary-gold) !important; }
.text-secondary-light { color: var(--text-secondary) !important; }
.text-white-50 { color: var(--text-tertiary) !important; }

.bg-surface { background-color: var(--surface-dark) !important; }
.bg-elevated { background-color: var(--surface-elevated) !important; }
.bg-gold-subtle { background: var(--gold-subtle); }
.bg-cyan-subtle { background: var(--cyan-subtle); }
.bg-purple-subtle { background: var(--purple-subtle); }

.border-white-10 { border-color: var(--glass-border) !important; }
.border-gold-opacity { border-color: var(--gold-border) !important; }
.border-cyan-opacity { border-color: var(--cyan-border) !important; }
.border-purple-opacity { border-color: var(--purple-border) !important; }
.border-gold-subtle { border-color: var(--gold-border) !important; }
.border-purple-subtle { border-color: var(--purple-border) !important; }


/* ─── SPACING & LAYOUT UTILITIES ────────────────────────────────────────────── */
.ls-2 { letter-spacing: 2px; }
.spacing-1 { letter-spacing: 1px; }
.transition-all { transition: all var(--transition-base); }
.opacity-05 { opacity: 0.05 !important; }
.opacity-10 { opacity: 0.10 !important; }
.z-0 { z-index: 0; }
.z-1 { z-index: 1; }
.z-2 { z-index: 2; }

/* Min-height helpers */
.min-vh-85 { min-height: 85vh; }


/* ─── SELECTION ─────────────────────────────────────────────────────────────── */
::selection {
    background: rgba(255, 215, 0, 0.3);
    color: #fff;
}

::-moz-selection {
    background: rgba(255, 215, 0, 0.3);
    color: #fff;
}


/* ─── SCROLLBAR ─────────────────────────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}
