:root {
    /* Future Tech Palette - Reference: DesignPrinciples/css/style.css */
    --bg-main: #0a0a0a;
    --bg-card: #111111;
    --bg-card-hover: #161616;

    --text-main: #ffffff;
    --text-muted: #888888;

    --accent: #FF3300;
    /* Electric Orange */
    --accent-gradient: linear-gradient(135deg, #FF3300, #FF6600);

    --border-subtle: rgba(255, 255, 255, 0.05);
    --border-glow: rgba(255, 51, 0, 0.3);

    /* Mapping old variables to new system for compatibility */
    --bg-color: var(--bg-main);
    --bg-secondary: var(--bg-card);
    --primary-color: var(--accent);
    --border-color: var(--border-subtle);

    /* Typography */
    --font-sans: 'Inter', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
    --font-mono: 'JetBrains Mono', 'PingFang SC', 'Microsoft YaHei', monospace;

    --font-main: var(--font-sans);
    /* Compat */

    /* Spacing */
    --radius-sm: 0px;
    /* Sharp corners for Future Tech look */
    --radius-md: 0px;
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-sans);
    height: 100vh;
    overflow: hidden;
    /* App-like feel */
    display: flex;
    flex-direction: column;
}

/* Material Icons Helper */
.material-symbols-outlined {
    font-variation-settings:
        'FILL' 0,
        'wght' 400,
        'GRAD' 0,
        'opsz' 24;
    vertical-align: middle;
    font-size: 20px;
}

/* Typography Helpers from Reference */
h1,
h2,
h3 {
    font-weight: 800;
    letter-spacing: -0.02em;
}

.text-mono {
    font-family: var(--font-mono);
}

.text-accent {
    color: var(--accent);
}

.text-muted {
    color: var(--text-muted);
}

/* Effects - Only apply to landing/dashboard, not viewers */
.noise-overlay {
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
}

.scanline {
    position: fixed;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.2) 50%);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 2;
    opacity: 0.3;
}

/* Viewer containers should be above effects */
.viewer-container {
    position: relative;
    z-index: 10;
}

/* Components */
.primary-btn {
    background: var(--accent);
    color: #000;
    border: none;
    padding: 12px 24px;
    font-weight: 700;
    font-family: var(--font-mono);
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.primary-btn:hover {
    background: #fff;
    color: #000;
}

.icon-btn,
.btn-icon {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    transition: all 0.2s;
}

.icon-btn:hover,
.btn-icon:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--bg-card-hover);
}