:root {
    /* PREMIUM HIGH-CONTRAST PALETTE */
    --c-bg-app: #020202;
    /* Absolute void */
    --c-bg-panel: rgba(12, 12, 14, 0.85);
    /* Much darker, less transparent for contrast */
    --c-bg-panel-hover: rgba(22, 22, 24, 0.95);

    --c-border-dim: rgba(255, 255, 255, 0.12);
    /* Brighter borders */
    --c-border-highlight: rgba(56, 189, 248, 0.6);
    /* Vibrant Blue */

    --c-primary: #38bdf8;
    /* Electric Cyan */
    --c-secondary: #c084fc;
    /* Electric Purple */
    --c-accent: #f472b6;
    /* Neon Pink */

    /* Text Contrast Fix */
    --c-text-main: #ffffff;
    --c-text-muted: #cbd5e1;
    /* Much lighter gray (was too dark) */
    --c-text-dim: #94a3b8;
    /* Secondary dim */

    --c-status-safe: #4ade80;
    /* Neon Green */
    --c-status-warn: #fbbf24;
    /* Neon Amber */
    --c-status-danger: #f87171;
    /* Neon Red */

    /* Spacing & Layout */
    --radius-sm: 4px;
    --radius-md: 12px;
    --radius-lg: 16px;

    /* Fonts - Sharp & Technical */
    --font-mono: 'JetBrains Mono', 'SF Mono', 'Menlo', monospace;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--c-bg-app);
    color: var(--c-text-main);
    font-family: var(--font-sans);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-image:
        radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 10%, rgba(168, 85, 247, 0.05) 0%, transparent 30%);
}

/* Typography & Utilities */
.font-mono {
    font-family: var(--font-mono);
}

.text-xs {
    font-size: 0.75rem;
    letter-spacing: 0.02em;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.5;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.text-dim {
    color: var(--c-text-muted);
}

.text-primary {
    color: var(--c-primary);
}

.text-center {
    text-align: center;
}

h1,
h2,
h3 {
    font-weight: 600;
    color: var(--c-text-main);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* Glassmorphism Panel */
.glass-panel {
    background: var(--c-bg-panel);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--c-border-dim);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--c-border-highlight), transparent);
    opacity: 0.5;
}

.glass-panel:hover {
    border-color: var(--c-border-highlight);
    background: var(--c-bg-panel-hover);
    transform: translateY(-2px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

.btn-small {
    background: transparent;
    border: 1px solid var(--c-primary);
    color: #fff;
    padding: 8px 16px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-small:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 10px var(--c-accent);
}

/* Header */
header {
    padding: 32px 0;
    margin-bottom: 20px;
}

.logo {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.03em;
}

.logo-icon {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--c-primary), var(--c-secondary));
    border-radius: 6px;
    box-shadow: 0 0 20px -5px var(--c-primary-glow);
}

/* Button */
.btn {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--c-border-dim);
    color: var(--c-text-main);
    padding: 14px 28px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn:hover {
    background: var(--c-text-main);
    color: #000;
    border-color: var(--c-text-main);
    box-shadow: 0 0 30px -5px rgba(255, 255, 255, 0.15);
}

.btn:active {
    transform: scale(0.98);
}

/* Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Status Indicators */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.75rem;
    font-family: var(--font-mono);
    border: 1px solid var(--c-border-dim);
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--c-text-muted);
}

.status-safe .status-dot {
    background: var(--c-status-safe);
    box-shadow: 0 0 10px var(--c-status-safe);
}

.status-warn .status-dot {
    background: var(--c-status-warn);
    box-shadow: 0 0 10px var(--c-status-warn);
}

.status-danger .status-dot {
    background: var(--c-status-danger);
    box-shadow: 0 0 10px var(--c-status-danger);
}

/* Section Titles */
.section-title {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: var(--font-mono);
    font-size: 1.1rem;
    letter-spacing: -0.02em;
}

.section-line {
    flex-grow: 1;
    height: 1px;
    background: var(--c-border-dim);
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .text-xl {
        font-size: 2rem !important;
    }

    /* Restore larger hero on mobile but controlled */

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .glass-panel {
        padding: 24px;
    }

    .hero-section h1 {
        font-size: 2.25rem !important;
        word-break: break-word;
    }

    .hero-section p {
        font-size: 1rem;
    }

    header {
        padding: 20px 0;
    }
}