/* ==========================================================================
   DEBUG ARENA — Dark Cyber Design System & Tokens
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&family=Orbitron:wght@600;700;800;900&display=swap');

:root {
    /* Color Tokens */
    --bg-darkest: #05070a;
    --bg-primary: #080c14;
    --bg-secondary: #0d1322;
    --bg-tertiary: #131b30;
    --bg-card: rgba(13, 19, 34, 0.78);
    --bg-card-hover: rgba(19, 27, 48, 0.9);
    --bg-glass: rgba(10, 15, 26, 0.65);

    /* Cyber Accents */
    --cyber-cyan: #00f0ff;
    --cyber-cyan-dim: rgba(0, 240, 255, 0.2);
    --cyber-blue: #0066ff;
    --cyber-purple: #7928ca;
    --cyber-magenta: #ff0080;
    --cyber-green: #00ff66;
    --cyber-amber: #ffaa00;
    --cyber-red: #ff3366;

    /* Glows */
    --glow-cyan: 0 0 15px rgba(0, 240, 255, 0.45);
    --glow-cyan-lg: 0 0 30px rgba(0, 240, 255, 0.6);
    --glow-magenta: 0 0 15px rgba(255, 0, 128, 0.45);
    --glow-purple: 0 0 20px rgba(121, 40, 202, 0.5);
    --glow-green: 0 0 15px rgba(0, 255, 102, 0.4);

    /* Borders */
    --border-subtle: rgba(0, 240, 255, 0.12);
    --border-accent: rgba(0, 240, 255, 0.35);
    --border-bright: #00f0ff;

    /* Text */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-highlight: #ffffff;

    /* Fonts */
    --font-heading: 'Orbitron', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', Menlo, Consolas, monospace;

    /* Transitions */
    --ease-cyber: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 150ms var(--ease-cyber);
    --transition-base: 250ms var(--ease-cyber);
    --transition-slow: 400ms var(--ease-cyber);
}

/* Base Resets */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    background-color: var(--bg-darkest);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    min-height: 100vh;
    background: radial-gradient(circle at 50% 0%, #0d162d 0%, #080c14 45%, #05070a 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    overflow-x: hidden;
    position: relative;
}

/* Subtle Cyber Grid Overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 240, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.025) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

/* Typography Scale */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    letter-spacing: 0.04em;
    color: var(--text-primary);
    font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.15; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); line-height: 1.25; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); line-height: 1.35; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.05rem; }
h6 { font-size: 0.9rem; letter-spacing: 0.08em; text-transform: uppercase; }

p {
    color: var(--text-secondary);
}

a {
    color: var(--cyber-cyan);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: #ffffff;
    text-shadow: var(--glow-cyan);
}

code, pre {
    font-family: var(--font-mono);
}

/* Container */
.container {
    width: 100%;
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    position: relative;
    z-index: 1;
}

.container-fluid {
    width: 100%;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    position: relative;
    z-index: 1;
}

/* Visible Keyboard Focus */
:focus-visible {
    outline: 2px solid var(--cyber-cyan);
    outline-offset: 3px;
    box-shadow: var(--glow-cyan);
}

/* Reduced Motion Override */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
