/* ==========================================================================
   AURAX — Design System Tokens & Base Foundation
   Architectural & Developer Visual System
   ========================================================================== */

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    background-color: #0A0A0A;
    color: #F8F7F5;
    font-size: 16px;
}

body {
    min-height: 100vh;
    font-family: var(--font-body, 'Inter', -apple-system, BlinkMacSystemFont, sans-serif);
    font-weight: 400;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--color-black);
    color: var(--color-white);
    overflow-x: hidden;
}

ul, ol {
    list-style: none;
}

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

input, button, textarea, select {
    font: inherit;
    color: inherit;
}

button {
    background: transparent;
    border: none;
    cursor: pointer;
}

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

/* ==========================================================================
   Design Tokens
   ========================================================================== */

:root {
    /* Architectural Color Palette */
    --color-black: #0A0A0A;
    --color-charcoal: #141414;
    --color-graphite: #1F1F1F;
    --color-slate: #2E2E2E;
    --color-ash: #666666;
    --color-stone: #9E9E9E;
    --color-cement: #D1CEC7;
    --color-sand: #E5E2DC;
    --color-ivory: #F5F3EF;
    --color-paper: #EDE9E3;
    --color-white: #F8F7F5;
    --color-pure-white: #FFFFFF;
    
    /* Architectural Accent Tones */
    --color-green: #2D5A3D;
    --color-green-deep: #1E3F2B;
    --color-green-light: #3E7C54;
    --color-green-glow: rgba(45, 90, 61, 0.25);
    
    --color-bronze: #8B7355;
    --color-bronze-light: #A89070;
    
    --color-success: #2D7A4F;
    --color-error: #9A2E2E;
    --color-warning: #B8860B;

    /* Architectural Spacing Scale */
    --space-2xs: 4px;
    --space-xs: 8px;
    --space-sm: 12px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;
    --space-5xl: 128px;
    --space-6xl: 180px;

    /* Typography */
    --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

    /* Fluid Typographic Scale using clamp() */
    --text-hero: clamp(2.5rem, 1.5rem + 5.5vw, 6.25rem);       /* 40px -> 100px */
    --text-display: clamp(2.2rem, 1.4rem + 4.2vw, 4.75rem);   /* 35px -> 76px */
    --text-h1: clamp(2rem, 1.3rem + 3.2vw, 3.75rem);           /* 32px -> 60px */
    --text-h2: clamp(1.65rem, 1.2rem + 2.2vw, 2.75rem);        /* 26px -> 44px */
    --text-h3: clamp(1.35rem, 1.1rem + 1.2vw, 2rem);           /* 22px -> 32px */
    --text-h4: clamp(1.15rem, 1rem + 0.6vw, 1.5rem);           /* 18px -> 24px */
    --text-h5: clamp(1rem, 0.95rem + 0.3vw, 1.25rem);          /* 16px -> 20px */
    --text-body-lg: clamp(1.05rem, 1rem + 0.25vw, 1.2rem);      /* 17px -> 19px */
    --text-body: 1rem;                                          /* 16px */
    --text-sm: 0.875rem;                                        /* 14px */
    --text-xs: 0.75rem;                                         /* 12px */
    --text-meta: 0.6875rem;                                     /* 11px */

    /* Letter Spacing */
    --tracking-tighter: -0.04em;
    --tracking-tight: -0.025em;
    --tracking-normal: 0em;
    --tracking-wide: 0.08em;
    --tracking-wider: 0.15em;
    --tracking-widest: 0.25em;

    /* Transitions & Motion */
    --transition-fast: 180ms cubic-bezier(0.16, 1, 0.3, 1);
    --transition-base: 300ms cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 600ms cubic-bezier(0.16, 1, 0.3, 1);
    --transition-reveal: 800ms cubic-bezier(0.16, 1, 0.3, 1);

    /* Layout Constraints */
    --container-max: 1360px;
    --container-narrow: 980px;
    --container-padding: clamp(1.25rem, 4vw, 3.5rem);
    --section-padding-y: clamp(4rem, 8vw, 8.5rem);
    --section-padding-sm: clamp(2.5rem, 5vw, 5rem);
    --header-height: 80px;
    --header-height-mobile: 68px;
    --mobile-cta-height: 60px;
}

/* ==========================================================================
   Typography Rules
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: var(--tracking-tight);
    color: var(--color-white);
}

.hero-display {
    font-size: var(--text-hero);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: var(--tracking-tighter);
    text-transform: uppercase;
}

.h1 {
    font-size: var(--text-h1);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: var(--tracking-tight);
}

.h2 {
    font-size: var(--text-h2);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: var(--tracking-tight);
}

.h3 {
    font-size: var(--text-h3);
    font-weight: 600;
    line-height: 1.2;
}

.h4 {
    font-size: var(--text-h4);
    font-weight: 600;
    line-height: 1.25;
}

p {
    font-size: var(--text-body);
    line-height: 1.7;
    color: var(--color-sand);
}

p.lead {
    font-size: var(--text-body-lg);
    line-height: 1.6;
    color: var(--color-white);
    font-weight: 400;
}

/* Architectural Eyebrows & Metadata */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-family: var(--font-body);
    font-size: var(--text-meta);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: var(--tracking-widest);
    color: var(--color-green-light);
    margin-bottom: var(--space-md);
}

.eyebrow::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 1px;
    background-color: currentColor;
}

.mono-meta {
    font-family: var(--font-mono);
    font-size: var(--text-meta);
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
    color: var(--color-ash);
}

.section-number {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: var(--text-sm);
    letter-spacing: var(--tracking-widest);
    color: var(--color-ash);
}

/* Selection */
::selection {
    background-color: var(--color-green);
    color: var(--color-white);
}

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

::-webkit-scrollbar-track {
    background: #0A0A0A;
}

::-webkit-scrollbar-thumb {
    background: #2E2E2E;
    border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-green);
}

/* Accessibility Focus States */
:focus-visible {
    outline: 2px solid var(--color-green-light);
    outline-offset: 3px;
}

@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;
    }
}
