/* ========================================
   Base Styles - Reset & Typography
   ======================================== */

/* Modern CSS Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-mono);
    background-color: var(--bg-primary);
    color: var(--fg-primary);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

h1 {
    font-size: clamp(32px, 6vw, 56px);
}

h2 {
    font-size: clamp(24px, 4vw, 40px);
}

h3 {
    font-size: clamp(20px, 3vw, 28px);
}

h4 {
    font-size: clamp(16px, 2vw, 22px);
}

p {
    margin-bottom: var(--space-md);
}

/* Links */
a {
    color: var(--cyan-glow);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-out);
}

a:hover {
    color: var(--cyan-dim);
}

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

/* Text Selection */
::selection {
    background-color: var(--cyan-dim);
    color: white;
}

::-moz-selection {
    background-color: var(--cyan-dim);
    color: white;
}

/* Scrollbar - Webkit */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--border-hover);
    border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--cyan-glow);
}

/* Scrollbar - Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--border-hover) var(--bg-primary);
}

/* Container */
.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-md);
    padding-right: var(--space-md);
}

/* Utility classes */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sr-only {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Body scroll lock */
.no-scroll {
    overflow: hidden;
}

/* Scan line overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(30, 195, 210, 0.02) 2px,
        rgba(30, 195, 210, 0.02) 4px
    );
    pointer-events: none;
    z-index: 9999;
}
