/*
 * ALTARS STUDIO - CORE STYLES
 * Tactical Dashboard Aesthetic - Refined Monochrome
 * Top 0.1% Design System
 */

/* ==========================================
   CSS VARIABLES - Design System
   ========================================== */
:root {
    /* Colors - Professional Charcoal Base (Innovation Studio, not Nightclub) */
    --black: #0f0f0f;                 /* Sophisticated charcoal, not pure black */
    --black-darker: #0a0a0a;          /* Deeper charcoal for contrast */
    --black-lighter: #1a1a1a;         /* Lighter charcoal for elevation */
    --white: #FFFFFF;
    --gray-50: #FAFAFA;
    --gray-100: #F5F5F5;
    --gray-200: #E5E5E5;
    --gray-300: #D4D4D4;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;

    /* Accent Colors - Hopeful, Industrial Renaissance */
    --accent-primary: #FFFFFF;        /* Primary accent is white */
    --accent-secondary: #E5E5E5;      /* Subtle gray */
    --accent-gold: #D4AF6A;           /* Warmer, more hopeful gold - industrial brass */
    --accent-glow: rgba(255, 255, 255, 0.15);  /* White glow */

    /* Glass Morphism - Sophisticated Charcoal with Warmth */
    --glass-bg: rgba(15, 15, 15, 0.80);           /* Charcoal base, not pure black */
    --glass-bg-light: rgba(26, 26, 26, 0.70);     /* Lighter charcoal for elevation */
    --glass-bg-strong: rgba(15, 15, 15, 0.92);    /* Strong charcoal */
    --glass-bg-darker: rgba(10, 10, 10, 0.96);    /* Deepest charcoal */
    --glass-border: rgba(255, 255, 255, 0.14);    /* Slightly more visible borders */
    --glass-border-strong: rgba(255, 255, 255, 0.24);
    --glass-border-subtle: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.08);
    --glass-highlight-strong: rgba(255, 255, 255, 0.14);

    /* Noise Texture (for tactical feel) */
    --noise-opacity: 0.018;

    /* Typography */
    --font-display: 'Readex Pro', sans-serif;
    --font-mono: 'Anonymous Pro', monospace;

    /* Text Colors */
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.70);
    --text-tertiary: rgba(255, 255, 255, 0.45);
    --text-muted: rgba(255, 255, 255, 0.30);

    /* Spacing Scale */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 600ms cubic-bezier(0.16, 1, 0.3, 1);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.6);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 25px rgba(255, 255, 255, 0.15);
    --shadow-glow-strong: 0 0 35px rgba(255, 255, 255, 0.25);

    /* Z-index Scale */
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-overlay: 400;
    --z-modal: 500;
    --z-popover: 600;
    --z-tooltip: 700;
}

/* ==========================================
   RESET & BASE
   ========================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-mono);
    color: var(--text-primary);
    background: var(--black);
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* Subtle noise texture for tactical feel */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: var(--noise-opacity);
    z-index: -1;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='2.5' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* ==========================================
   TYPOGRAPHY
   ========================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

h1 { font-size: clamp(2.5rem, 6vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 4rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    line-height: 1.7;
    color: var(--text-secondary);
}

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

/* Monospace accent text */
.mono {
    font-family: var(--font-mono);
}

/* Label/tag style text - Now white/gray instead of gold */
.label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-secondary);
    font-weight: 400;
}

/* ==========================================
   GLASS MORPHISM SYSTEM
   ========================================== */

/* Base glass container */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

/* Glass variants */
.glass-light {
    background: var(--glass-bg-light);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.glass-strong {
    background: var(--glass-bg-strong);
    backdrop-filter: blur(36px) saturate(200%);
    -webkit-backdrop-filter: blur(36px) saturate(200%);
    border-color: var(--glass-border-strong);
}

/* Tactical panel style */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border: 1px solid var(--glass-border);
    position: relative;
    box-shadow: var(--shadow-lg);
}

/* Panel with top accent line - Now white instead of gold */
.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        var(--white) 20%,
        var(--white) 80%,
        transparent
    );
    opacity: 0.15;
    animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.3; }
}

/* Inner glow highlight */
.glass-highlight::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(180deg,
        var(--glass-highlight-strong) 0%,
        transparent 100%
    );
    pointer-events: none;
}

/* Ultra-premium glass effects */
.glass-ultra-premium {
    background: rgba(15, 15, 15, 0.92);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.8),
        0 8px 24px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 0 0 1px rgba(0, 0, 0, 0.8);
}

.glass-ultra-premium:hover {
    background: rgba(10, 10, 10, 0.96);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.9),
        0 12px 32px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 0 0 1px rgba(0, 0, 0, 0.9),
        0 0 60px rgba(212, 175, 106, 0.15);
}

/* Deep glass - for overlays */
.glass-deep {
    background: rgba(10, 10, 10, 0.96);
    backdrop-filter: blur(48px) saturate(180%);
    -webkit-backdrop-filter: blur(48px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Light glass - for floating elements */
.glass-light {
    background: rgba(26, 26, 26, 0.65);
    backdrop-filter: blur(32px) saturate(180%);
    -webkit-backdrop-filter: blur(32px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

/* ==========================================
   ENHANCED TYPOGRAPHY
   ========================================== */

/* Premium hero titles */
.hero-title-premium {
    font-size: clamp(3.5rem, 10vw, 7rem);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg,
        var(--white) 0%,
        rgba(255, 255, 255, 0.85) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
}

/* Premium body text */
.text-premium {
    font-size: 1.25rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.88);
}

/* Large lead text */
.text-lead {
    font-size: 1.375rem;
    line-height: 1.7;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.90);
}

/* Premium subheadings */
.subheading-premium {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--white);
}

/* ==========================================
   BUTTONS & INTERACTIVE ELEMENTS
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
    white-space: nowrap;
}

/* Primary button - White, clean, bold */
.btn-primary {
    background: var(--white);
    color: var(--black);
    font-weight: 700;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-strong);
    background: var(--gray-100);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--glass-border-strong);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.10);
    border-color: var(--white);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: none;
}

.btn-ghost:hover {
    color: var(--white);
}

/* Gold CTA - ONLY for critical conversion points */
.btn-gold {
    background: linear-gradient(135deg, var(--accent-gold), #B89968);
    color: var(--black);
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(201, 169, 97, 0.3);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(201, 169, 97, 0.4);
}

/* ==========================================
   UTILITIES
   ========================================== */

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.container-narrow {
    max-width: 900px;
}

.container-wide {
    max-width: 1600px;
}

/* Spacing */
.section {
    padding: var(--space-2xl) var(--space-lg);
}

/* Text alignment */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Flex utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

/* Grid utilities */
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

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

/* Scroll behavior */
html {
    scroll-behavior: smooth;
}

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

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

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
    :root {
        --space-2xl: 4rem;
        --space-xl: 3rem;
    }

    .container {
        padding: 0 var(--space-md);
    }
}

@media (max-width: 768px) {
    :root {
        --space-2xl: 3rem;
        --space-xl: 2rem;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
}
