/* ============================================
   SonnerStudio Design System - Base Styles
   ============================================ */

/* CSS Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   CSS Custom Properties (Design Tokens)
   ============================================ */

:root {
    /* Colors - Background */
    --bg-primary: #020617;
    --bg-secondary: #0f172a;
    --bg-tertiary: #1e293b;
    --bg-quaternary: #334155;

    /* Colors - Accent */
    --accent-gold: #FFD700;
    --accent-lightning: #FDE047;
    --accent-blue: #3b82f6;
    --accent-emerald: #34d399;
    --accent-red: #ef4444;

    /* Colors - Text */
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    --text-tertiary: #94a3b8;
    --text-muted: #64748b;

    /* Colors - Borders */
    --border-subtle: #334155;
    --border-medium: #475569;
    --border-strong: #64748b;

    /* Spacing (8px Grid) */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 40px;
    --space-xl: 64px;
    --space-2xl: 96px;

    /* Typography */
    --font-main: 'Inter', -apple-system, system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Font Sizes */
    --text-hero: 72px;
    --text-h1: 48px;
    --text-h2: 36px;
    --text-h3: 24px;
    --text-h4: 20px;
    --text-body: 18px;
    --text-small: 14px;
    --text-xs: 12px;

    /* Font Weights */
    --weight-regular: 400;
    --weight-medium: 500;
    --weight-semibold: 600;
    --weight-bold: 700;
    --weight-extrabold: 800;
    --weight-black: 900;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.7);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.8);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;

    /* Z-Index Scale */
    --z-base: 0;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-overlay: 400;
    --z-modal: 500;
}

/* ============================================
   Typography
   ============================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: var(--weight-black);
    line-height: 1.2;
    color: var(--text-primary);
    text-shadow: var(--shadow-sm);
}

h1 {
    font-size: var(--text-h1);
}

h2 {
    font-size: var(--text-h2);
}

h3 {
    font-size: var(--text-h3);
}

h4 {
    font-size: var(--text-h4);
}

p {
    font-size: var(--text-body);
    color: var(--text-secondary);
    line-height: 1.6;
}

a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover {
    color: var(--accent-lightning);
}

/* ============================================
   Utilities
   ============================================ */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.container-wide {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Text Utilities */
.text-gold {
    color: var(--accent-gold);
}

.text-white {
    color: var(--text-primary);
}

.text-muted {
    color: var(--text-muted);
}

.text-center {
    text-align: center;
}

.text-bold {
    font-weight: var(--weight-bold);
}

.text-black {
    font-weight: var(--weight-black);
}

/* Display Utilities */
.hidden {
    display: none;
}

.block {
    display: block;
}

.flex {
    display: flex;
}

.grid {
    display: grid;
}

/* Spacing Utilities */
.mt-auto {
    margin-top: auto;
}

.mb-auto {
    margin-bottom: auto;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    :root {
        --text-hero: 48px;
        --text-h1: 36px;
        --text-h2: 28px;
        --text-h3: 20px;
        --text-body: 16px;
    }

    .container,
    .container-wide {
        padding: 0 var(--space-md);
    }
}

@media (max-width: 480px) {
    :root {
        --text-hero: 36px;
        --text-h1: 28px;
        --text-h2: 24px;
    }
}