/* 
   ==========================================================================
   DESIGN SYSTEM: THE OBSIDIAN PULSE (v4.0)
   ==========================================================================
   A sovereign intelligence aesthetic for the executive elite.
*/

:root {
    /* Atmospheric Void & Surfaces */
    --surface-bg: #131313;
    --surface-lowest: #0e0e0e;
    --surface-container: #201f1f;
    --surface-high: #2a2a2a;
    --surface-bright: #3a3939;
    
    /* The Pulse (Primary) */
    --primary: #ffb59d;
    --primary-container: #ff5711; /* Vibrant Neon Orange */
    --on-primary: #5d1800;
    
    /* The Atmosphere (Accents) */
    --secondary: #bdf4ff; /* Electric Cyan */
    --tertiary: #bac3ff;  /* Deep Indigo */
    
    /* Typography Tokens */
    --on-surface: #e5e2e1;
    --on-surface-variant: #e5beb2;
    
    /* Effects */
    --glass-blur: blur(20px);
    --border-glass: rgba(255, 255, 255, 0.05);
    --transition-smooth: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Global Base Overrides --- */
body {
    background-color: var(--surface-bg);
    color: var(--on-surface);
    font-family: 'Inter', sans-serif;
    margin: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

.max-w-7xl, .max-w-5xl {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (min-width: 1024px) {
    .max-w-7xl, .max-w-5xl {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

h1, h2, h3, h4, .font-outfit {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
}

/* Typography Scaling */
h1 { font-size: 3rem; line-height: 1; }
@media (min-width: 768px) { h1 { font-size: 5rem; } }
@media (min-width: 1024px) { h1 { font-size: 7rem; } }

h2 { font-size: 2.25rem; line-height: 1.1; }
@media (min-width: 1024px) { h2 { font-size: 4rem; } }

.text-gradient {
    background: linear-gradient(135deg, #e5e2e1 0%, #ffb59d 50%, #ff5711 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* --- Core Obsidian Components --- */

/* The Glass Panel */
.glass-panel {
    background: rgba(25, 25, 25, 0.4);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-glass);
}

/* Footer Overrides (The Obsidian Pulse) */
.site-footer {
    background-color: var(--surface-bg) !important;
    border-top: 1px solid var(--border-glass) !important;
    padding: 80px 0 40px !important;
}

.footer-widgets {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 60px !important;
}

@media (min-width: 768px) {
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (min-width: 1024px) {
    .footer-widgets {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

.widget-title {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 800 !important;
    color: var(--primary) !important;
    letter-spacing: -0.02em !important;
    margin-bottom: 24px !important;
}

.footer-bottom {
    border-top: 1px solid var(--border-glass) !important;
    flex-direction: column !important;
    gap: 20px !important;
    text-align: center !important;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row !important;
        text-align: left !important;
    }
}

.social-links a {
    background-color: var(--surface-container) !important;
    width: 48px !important;
    height: 48px !important;
    line-height: 48px !important;
    border: 1px solid var(--border-glass) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.social-links a:hover {
    background-color: var(--primary-container) !important;
    transform: translateY(-4px);
}

/* Bento Grid Spacing Fix */
.grid {
    gap: 1.5rem !important;
}

@media (min-width: 1024px) {
    .grid {
        gap: 2rem !important;
    }
}

/* The Sovereign Motion */
.hover-glow:hover {
    box-shadow: 0 0 30px rgba(255, 181, 157, 0.15);
    transform: translateY(-5px);
}

/* Buttons (Obsidian Style) */
.btn-pulse {
    background: linear-gradient(to right, var(--primary), var(--primary-container));
    color: var(--on-primary);
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 900;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 8px 32px rgba(255, 87, 17, 0.2);
}

.btn-pulse:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 48px rgba(255, 87, 17, 0.4);
}

.btn-ghost {
    background: transparent;
    border: 1px solid rgba(255, 181, 157, 0.3);
    color: var(--primary);
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-ghost:hover {
    background: rgba(255, 181, 157, 0.05);
    box-shadow: 0 0 30px rgba(255, 181, 157, 0.2);
}

/* Layout Utilities */
.tonal-card {
    background: var(--surface-container);
    border-radius: 16px;
    padding: 32px;
    transition: var(--transition-smooth);
}

.tonal-card:hover {
    background: var(--surface-high);
}

/* Pulse Indicator Anim */
@keyframes pulse-dot {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--secondary);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}
