/**
 * NilusLab Zenith v28.0 - Profile High-Fidelity Cohesive Redesign
 * Pure White Theme & Electric Cobalt Accent Styling
 * Enhanced Design System with Comprehensive Token Architecture
 */

/* ============================================================
   DESIGN TOKENS — Comprehensive :root Variables
   ============================================================ */
:root {
    /* ── Brand Palette ── */
    --nilus-cobalt: #2563eb;
    --nilus-cobalt-hover: #1d4ed8;
    --nilus-teal: #2563eb;
    --nilus-purple: #7c3aed;
    --nilus-gradient: linear-gradient(135deg, var(--nilus-teal) 0%, var(--nilus-cobalt) 50%, var(--nilus-purple) 100%);

    /* ── Surfaces ── */
    --surface-primary: #ffffff;
    --surface-elevated: #f8fafc;
    --surface-glass: rgba(255, 255, 255, 0.8);
    --surface-dark: #0f172a;

    /* ── Text ── */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #94a3b8;

    /* ── Status ── */
    --status-healthy: #3b82f6;
    --status-monitor: #f59e0b;
    --status-alert: #ef4444;

    /* ── Shadows ── */
    --shadow-card: 0 30px 60px -15px rgba(15, 23, 42, 0.06);
    --shadow-card-hover: 0 40px 80px -15px rgba(15, 23, 42, 0.12);
    --shadow-glow: 0 0 40px rgba(37, 99, 235, 0.15);

    /* ── Borders ── */
    --border-subtle: rgba(15, 23, 42, 0.06);
    --border-default: rgba(15, 23, 42, 0.08);
    --border-strong: rgba(15, 23, 42, 0.14);
    --border-accent: rgba(37, 99, 235, 0.25);

    /* ── Radius Scale ── */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 100px;

    /* ── Typography ── */
    --font-display: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-serif: 'Playfair Display', serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;

    /* ── Animation ── */
    --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --duration-fast: 0.2s;
    --duration-normal: 0.4s;
    --duration-slow: 0.7s;

    /* ── Legacy Tokens (preserved for backward compat) ── */
    --bg-agency-pure: #ffffff;
    --bg-agency-soft: #f8fafc;
    --text-agency-black: #0f172a;
    --text-agency-muted: #64748b;
    --dna-blue-glow: rgba(37, 99, 235, 0.04);
    --dna-teal-accent: #2563eb;
    --dna-teal-hover: #1d4ed8;
    --glass-20-bg: rgba(255, 255, 255, 0.8);
    --glass-20-border: rgba(15, 23, 42, 0.08);
    --glass-shadow: 0 30px 60px -15px rgba(15, 23, 42, 0.06);
}

/* ============================================================
   ANIMATION KEYFRAMES
   ============================================================ */
@keyframes floatingHelix {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
}

@keyframes countUp {
    0% {
        opacity: 0;
        transform: translateY(12px);
    }
    60% {
        opacity: 1;
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.45);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(100%);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================================
   BASE / BODY
   ============================================================ */
body.light-mode-profile {
    background-color: var(--bg-agency-pure);
    color: var(--text-agency-black);
    font-family: var(--font-body);
    letter-spacing: -0.01em;
}

/* ============================================================
   HIGH-FIDELITY HERO COMPOSITION
   ============================================================ */
.agency-hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%, #ffffff 0%, #f8fafc 100%);
}

/* The DNA Focal Point — Multiply blend makes white video backdrop disappear */
#dna-focal-layer {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.95;
    mix-blend-mode: multiply;
}

.dna-visual-asset {
    width: 80%;
    max-width: 1100px;
    height: auto;
    filter: drop-shadow(0 0 80px rgba(37, 99, 235, 0.05));
    animation: floatingHelix 8s ease-in-out infinite;
}

/* ============================================================
   PRECISE TYPOGRAPHY
   ============================================================ */
.agency-hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 1000px;
}

.agency-label {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6em;
    color: var(--dna-teal-accent);
    margin-bottom: 2.5rem;
}

.agency-title {
    font-family: var(--font-display);
    font-size: 112px;
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 0.95;
    color: var(--text-agency-black);
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #0f172a 30%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.agency-subtitle {
    font-size: 24px;
    font-weight: 500;
    color: var(--text-agency-muted);
    max-width: 750px;
    margin: 0 auto 4rem;
    line-height: 1.5;
}

.serif-accent {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--dna-teal-accent);
    font-weight: 400;
}

/* ============================================================
   LIGHT GLASSMORPHISM 2.0 — Stat Cards
   ============================================================ */
.glass-stat-card {
    background: var(--glass-20-bg);
    backdrop-filter: blur(35px) saturate(180%);
    -webkit-backdrop-filter: blur(35px) saturate(180%);
    border: 1px solid var(--glass-20-border);
    border-radius: var(--radius-xl);
    padding: 2.5rem 2rem;
    box-shadow: var(--glass-shadow);
    transition: all 0.5s var(--ease-spring);
    text-align: center;
}

.glass-stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--border-accent);
}

.stat-value {
    font-family: var(--font-display);
    font-size: 38px;
    font-weight: 900;
    color: var(--text-agency-black);
    line-height: 1;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #0f172a 40%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--text-agency-muted);
}

/* ============================================================
   PREMIUM COBALT BUTTON
   ============================================================ */
.btn-agency-primary {
    background: linear-gradient(135deg, var(--dna-teal-accent) 0%, #1e40af 100%);
    color: #fff;
    padding: 1.5rem 4rem;
    border-radius: var(--radius-full);
    font-size: 15px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: all 0.5s var(--ease-spring);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.2);
}

.btn-agency-primary:hover {
    background: linear-gradient(135deg, var(--dna-teal-hover) 0%, var(--dna-teal-accent) 100%);
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.35);
}

/* ============================================================
   NEW COMPONENTS — Case Study Card
   ============================================================ */
.nilus-case-study-card {
    background: var(--surface-glass);
    backdrop-filter: blur(30px) saturate(160%);
    -webkit-backdrop-filter: blur(30px) saturate(160%);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: 2rem 2rem 1.75rem;
    box-shadow: var(--shadow-card);
    transition:
        transform var(--duration-normal) var(--ease-spring),
        box-shadow var(--duration-normal) var(--ease-spring),
        border-color var(--duration-normal) var(--ease-smooth);
    position: relative;
    overflow: hidden;
}

.nilus-case-study-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--nilus-gradient);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform var(--duration-normal) var(--ease-spring);
}

.nilus-case-study-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--border-accent);
}

.nilus-case-study-card:hover::after {
    transform: scaleX(1);
}

/* ============================================================
   NEW COMPONENTS — Metric Card (compact)
   ============================================================ */
.nilus-metric-card {
    width: 160px;
    min-height: 100px;
    background: var(--surface-glass);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.35rem;
    transition: all var(--duration-normal) var(--ease-spring);
}

.nilus-metric-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
    border-color: var(--border-accent);
}

.nilus-metric-card__value {
    font-family: var(--font-mono);
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    animation: countUp var(--duration-slow) var(--ease-spring) both;
}

.nilus-metric-card__label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-tertiary);
}

/* ============================================================
   NEW COMPONENTS — Tag Badge
   ============================================================ */
.nilus-tag-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.65rem;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: var(--radius-full);
    background: rgba(37, 99, 235, 0.06);
    color: var(--nilus-cobalt);
    border: 1px solid rgba(37, 99, 235, 0.12);
    white-space: nowrap;
    transition: all var(--duration-fast) var(--ease-smooth);
}

.nilus-tag-badge:hover {
    background: rgba(37, 99, 235, 0.10);
    border-color: rgba(37, 99, 235, 0.20);
}

.nilus-tag-badge--teal {
    background: rgba(37, 99, 235, 0.06);
    color: var(--nilus-teal);
    border-color: rgba(37, 99, 235, 0.12);
}

.nilus-tag-badge--purple {
    background: rgba(124, 58, 237, 0.06);
    color: var(--nilus-purple);
    border-color: rgba(124, 58, 237, 0.12);
}

/* ============================================================
   NEW COMPONENTS — Section Label (Eyebrow)
   ============================================================ */
.nilus-section-label {
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--nilus-cobalt);
    margin-bottom: 0.75rem;
    display: block;
}

/* ============================================================
   NEW COMPONENTS — Section Title (Gradient Heading)
   ============================================================ */
.nilus-section-title {
    font-family: var(--font-display);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--nilus-cobalt) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================================
   NEW COMPONENTS — Narrative Paragraph
   ============================================================ */
.nilus-narrative {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-secondary);
    max-width: 700px;
    line-height: 1.7;
}

/* ============================================================
   NEW COMPONENTS — Researcher Card
   ============================================================ */
.researcher-card {
    background: var(--surface-glass);
    backdrop-filter: blur(30px) saturate(160%);
    -webkit-backdrop-filter: blur(30px) saturate(160%);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-card);
    transition: all var(--duration-normal) var(--ease-spring);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.researcher-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.researcher-card__radar-area {
    width: 100%;
    aspect-ratio: 1 / 1;
    max-width: 200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.researcher-card__badge-rack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

/* ============================================================
   NEW COMPONENTS — Status Dot
   ============================================================ */
.status-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-tertiary);
    flex-shrink: 0;
}

.status-dot--healthy {
    background: var(--status-healthy);
}

.status-dot--monitor {
    background: var(--status-monitor);
}

.status-dot--alert {
    background: var(--status-alert);
    animation: pulseGlow 1.8s ease-in-out infinite;
}

/* ============================================================
   HERO BUTTONS — Premium Interactive Styles
   ============================================================ */
.hero-btn-primary, .hero-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0.875rem 2.25rem;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    text-decoration: none;
    transition: all var(--duration-normal) var(--ease-spring);
    position: relative;
    overflow: hidden;
    height: 48px; /* Force exact same height */
    box-sizing: border-box;
}

.hero-btn-primary {
    background: linear-gradient(135deg, var(--nilus-cobalt) 0%, var(--nilus-cobalt-hover) 100%);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.18);
}

.hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.hero-btn-primary .hero-btn-arrow {
    transition: transform var(--duration-normal) var(--ease-spring);
}

.hero-btn-primary:hover .hero-btn-arrow {
    transform: translateX(4px);
}

.hero-btn-secondary {
    background: var(--surface-dark);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.hero-btn-secondary:hover {
    background: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.22);
}

.hero-btn-secondary .hero-btn-terminal {
    opacity: 0.7;
    transition: opacity var(--duration-fast) var(--ease-smooth);
}

.hero-btn-secondary:hover .hero-btn-terminal {
    opacity: 1;
    animation: terminalBlink 1s infinite;
}

@keyframes terminalBlink {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* ============================================================
   HERO HUD CARD — Frosted Diagnostic Console
   ============================================================ */
.hero-hud-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: 0 30px 60px -15px rgba(15, 23, 42, 0.08), 
                0 0 50px rgba(37, 99, 235, 0.03);
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    font-family: var(--font-body);
    transition: all var(--duration-normal) var(--ease-spring);
    position: relative;
    overflow: hidden;
}

.hero-hud-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 40px 80px -15px rgba(15, 23, 42, 0.12),
                0 0 60px rgba(37, 99, 235, 0.06);
    border-color: var(--border-accent);
}

.hero-hud-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    padding-bottom: 0.85rem;
    margin-bottom: 1rem;
}

.hero-hud-card__title {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-hud-card__status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 9px;
    font-weight: 800;
    color: var(--status-healthy);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-hud-card__dot {
    width: 6px;
    height: 6px;
    background-color: var(--status-healthy);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--status-healthy);
    animation: pulse 1.8s infinite;
}

.hero-hud-card__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.hero-hud-card__logs {
    background: rgba(15, 23, 42, 0.03);
    border: 1px solid rgba(15, 23, 42, 0.04);
    border-radius: var(--radius-md);
    padding: 1rem;
    font-family: var(--font-mono);
    font-size: 9.5px;
    line-height: 1.6;
    color: var(--text-secondary);
    max-height: 125px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hero-hud-card__log-line {
    display: flex;
    gap: 6px;
}

.hero-hud-card__log-time {
    color: var(--nilus-cobalt);
    font-weight: 700;
}

.hero-hud-card__log-text {
    word-break: break-all;
}

.hero-hud-card__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.hero-hud-card__stat-box {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(15, 23, 42, 0.05);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    text-align: center;
}

.hero-hud-card__stat-label {
    font-family: var(--font-display);
    font-size: 8px;
    font-weight: 800;
    color: var(--text-tertiary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.hero-hud-card__stat-value {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.hero-hud-card__progress-container {
    margin-top: 0.25rem;
}

.hero-hud-card__progress-header {
    font-family: var(--font-display);
    display: flex;
    justify-content: space-between;
    font-size: 9.5px;
    font-weight: 800;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.35rem;
}

.hero-hud-card__progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(15, 23, 42, 0.05);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.hero-hud-card__progress-fill {
    height: 100%;
    background: var(--nilus-gradient);
    width: 94%;
    border-radius: var(--radius-full);
    animation: fillProgress 2.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fillProgress {
    from { width: 0%; }
    to { width: 94%; }
}

/* ============================================================
   ROBUST SEMANTIC LAYOUTS (No CDN dependencies)
   ============================================================ */
.hero-section {
    position: relative;
    z-index: 10;
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 5rem 0;
    width: 100%;
}

.hero-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 3rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4rem;
}

.hero-text-col {
    width: 58%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    z-index: 20;
}

.hero-hud-col {
    width: 42%;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 1024px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        padding: 0 1.5rem;
        gap: 3rem;
    }
    .hero-text-col {
        width: 100%;
        align-items: center;
        text-align: center;
    }
    .hero-hud-col {
        width: 100%;
        margin-top: 2rem;
    }
}

/* ============================================================
   FLOATING GLASSMORPHIC NAV DOCK
   ============================================================ */
.nav-dock-wrapper {
    position: sticky;
    top: 1.5rem;
    left: 0;
    right: 0;
    width: 100%;
    padding: 0 1.5rem;
    z-index: 1000;
}

.nav-dock {
    max-width: 1280px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(190%);
    -webkit-backdrop-filter: blur(20px) saturate(190%);
    border: 1px solid rgba(15, 23, 42, 0.05);
    border-radius: var(--radius-full);
    padding: 0.85rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.01),
        0 8px 32px rgba(15, 23, 42, 0.05),
        0 24px 64px rgba(15, 23, 42, 0.04);
    transition: all 0.4s var(--ease-spring);
}

.nav-dock:hover {
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.01),
        0 12px 48px rgba(15, 23, 42, 0.07),
        0 32px 80px rgba(15, 23, 42, 0.05);
}

/* Nav links styling inside dock */
.nav-dock-link {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    position: relative;
    padding: 0.25rem 0;
    transition: color var(--duration-fast) var(--ease-smooth);
}

.nav-dock-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--nilus-cobalt);
    transform: scaleX(0);
    transition: transform var(--duration-fast) var(--ease-spring);
    transform-origin: center;
}

.nav-dock-link:hover {
    color: var(--text-primary);
}

.nav-dock-link:hover::after {
    transform: scaleX(1);
}

.nav-dock-link.active {
    color: var(--text-primary);
}

.nav-dock-link.active::after {
    transform: scaleX(1);
}

@media (max-width: 768px) {
    .nav-dock-wrapper {
        top: 0.75rem;
        padding: 0 0.75rem;
    }
    .nav-dock {
        padding: 0.75rem 1.5rem;
    }
}

/* ============================================================
   OBSIDIAN GLASS TERMINAL HUD (Refined Dark Theme)
   ============================================================ */
.hero-hud-card.obsidian-theme {
    background: rgba(15, 23, 42, 0.96) !important;
    backdrop-filter: blur(25px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(25px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 
        0 30px 70px -15px rgba(0, 0, 0, 0.4),
        0 0 50px rgba(37, 99, 235, 0.08) !important;
    color: #f1f5f9;
}

.hero-hud-card.obsidian-theme:hover {
    border-color: rgba(37, 99, 235, 0.3) !important;
    box-shadow: 
        0 40px 90px -15px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(37, 99, 235, 0.12) !important;
}

.hero-hud-card.obsidian-theme .hero-hud-card__title {
    color: #e2e8f0;
}

.hero-hud-card.obsidian-theme .hero-hud-card__header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-hud-card.obsidian-theme .hero-hud-card__logs {
    background: #090d16 !important;
    border: 1px solid rgba(255, 255, 255, 0.03) !important;
    color: #94a3b8 !important;
}

/* Monospace highlighting styles */
.log-line-highlight {
    display: flex;
    gap: 8px;
}

.log-time {
    color: #c084fc; /* soft violet */
    font-weight: 700;
}

.log-cmd {
    color: #38bdf8; /* electric cyan */
}

.log-success {
    color: #38bdf8; /* bright cobalt */
}

.log-warning {
    color: #fbbf24; /* deep amber */
}

.log-val {
    color: #60a5fa; /* cobalt blue */
}

.log-cursor {
    display: inline-block;
    width: 6px;
    height: 12px;
    background: #4ade80;
    margin-left: 2px;
    animation: cursorBlink 1s infinite;
}

@keyframes cursorBlink {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* Dark mode stats block inside card */
.hero-hud-card.obsidian-theme .hero-hud-card__stat-box {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.04) !important;
}

.hero-hud-card.obsidian-theme .hero-hud-card__stat-label {
    color: #64748b !important;
}

.hero-hud-card.obsidian-theme .hero-hud-card__stat-value {
    color: #e2e8f0 !important;
}

.hero-hud-card.obsidian-theme .hero-hud-card__progress-header {
    color: #94a3b8;
}

.hero-hud-card.obsidian-theme .hero-hud-card__progress-bar {
    background: rgba(255, 255, 255, 0.05);
}

/* Micro Sparkline Chart Container */
.hud-sparkline-wrap {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.5rem;
}

.hud-sparkline-label {
    font-family: var(--font-display);
    font-size: 8.5px;
    font-weight: 800;
    color: #64748b;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hud-sparkline-chart {
    flex: 1;
    height: 20px;
    max-width: 140px;
}

.hud-sparkline-val {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 900;
    color: #4ade80;
    letter-spacing: -0.02em;
}

/* ============================================================
   PREMIUM GLASSMORPHIC STATS TILES
   ============================================================ */
.stats-card-tile {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(24px) saturate(170%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(170%) !important;
    border: 1px solid rgba(15, 23, 42, 0.06) !important;
    border-radius: 20px !important;
    padding: 2.25rem 2rem !important;
    box-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.01),
        0 10px 30px rgba(15, 23, 42, 0.03) !important;
    transition: all 0.4s var(--ease-spring) !important;
    position: relative;
    overflow: hidden;
}

.stats-card-tile:hover {
    transform: translateY(-6px) scale(1.01) !important;
    border-color: rgba(37, 99, 235, 0.2) !important;
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.01),
        0 20px 48px rgba(15, 23, 42, 0.08) !important;
}

.stats-card-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--nilus-gradient);
    opacity: 0;
    transition: opacity 0.4s var(--ease-smooth);
}

.stats-card-tile:hover::before {
    opacity: 1;
}


