/* ==========================================================================
   Helmann's Fine Tuning — Core Design System & Tokens
   Aesthetic: Sleek Minimalist High-Tech with Electric Gold Accents
   ========================================================================== */

:root {
    /* Color Palette - Minimalist High-Contrast Monochrome */
    --color-ebony: #07080a;
    --color-carbon: #0f1117;
    --color-charcoal: #171b24;
    --color-surface-card: rgba(15, 17, 23, 0.75);
    --color-surface-hover: rgba(23, 27, 36, 0.9);
    
    /* Electric Gold Accents */
    --color-gold-electric: #e5c158;
    --color-gold-bright: #f5d77f;
    --color-gold-muted: #9e853c;
    --color-gold-glow: rgba(229, 193, 88, 0.18);
    --color-gold-border: rgba(229, 193, 88, 0.35);

    /* Text & Hierarchy */
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #8492a6;
    --text-dim: #4b5563;

    /* Technical / Status */
    --color-success: #10b981;
    --color-success-glow: rgba(16, 185, 129, 0.25);
    --color-error: #f43f5e;
    --color-info: #38bdf8;

    /* Borders & Glassmorphism */
    --border-subtle: 1px solid rgba(255, 255, 255, 0.08);
    --border-high-tech: 1px solid rgba(229, 193, 88, 0.2);
    --border-active: 1px solid rgba(229, 193, 88, 0.6);
    --glass-blur: blur(14px);
    --shadow-deep: 0 20px 40px -15px rgba(0, 0, 0, 0.8);
    --shadow-gold: 0 0 30px rgba(229, 193, 88, 0.12);

    /* Typography Fonts */
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-mono: 'Space Grotesk', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

    /* Spacing & Radii */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    --container-max: 1240px;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--color-ebony);
    color: var(--text-secondary);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    background-color: var(--color-ebony);
    background-image: 
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(229, 193, 88, 0.06), transparent 70%),
        radial-gradient(circle at 10% 40%, rgba(24, 27, 36, 0.4), transparent 40%),
        radial-gradient(circle at 90% 70%, rgba(24, 27, 36, 0.3), transparent 40%);
    background-attachment: fixed;
}

/* Cybernetic Grid Background Overlay */
.grid-bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    background-size: 40px 40px;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    mask-image: radial-gradient(circle at 50% 50%, black, transparent 85%);
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 1.8rem + 3.5vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(1.8rem, 1.3rem + 2vw, 2.75rem);
    font-weight: 600;
}

h3 {
    font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.6rem);
    font-weight: 600;
}

h4 {
    font-size: 1.15rem;
    font-weight: 600;
}

p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.mono-tag {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-gold-electric);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    position: relative;
    z-index: 1;
}

.section {
    padding-top: clamp(5rem, 8vw, 8rem);
    padding-bottom: clamp(5rem, 8vw, 8rem);
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto clamp(3rem, 5vw, 4.5rem);
}

.section-header .mono-tag {
    margin-bottom: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.section-header .mono-tag::before,
.section-header .mono-tag::after {
    content: '';
    width: 16px;
    height: 1px;
    background: var(--color-gold-electric);
    opacity: 0.6;
}

.section-header h2 {
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}
::-webkit-scrollbar-track {
    background: var(--color-ebony);
}
::-webkit-scrollbar-thumb {
    background: var(--color-charcoal);
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.05);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-gold-muted);
}

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