/* NullShield Design System — .NET Edition */
/* Fonts: Plus Jakarta Sans (headings) + Inter (body) */

:root {
    --color-bg: #0a0a0a;
    --color-bg-card: #141414;
    --color-bg-elevated: #1a1a1a;
    --color-border: #262626;
    --color-border-hover: #3a3a3a;
    --color-text: #fafaf9;
    --color-text-secondary: #a3a3a3;
    --color-text-muted: #909090; /* WCAG AA: 4.5:1+ on #0a0a0a/#141414/#1a1a1a (was #737373 = 3.88) */
    --color-primary: #10b981;
    --color-primary-hover: #059669;
    --color-primary-subtle: rgba(16, 185, 129, 0.1);
    --color-danger: #ef4444;
    --color-warning: #eab308;
    --color-info: #3b82f6;
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

a { color: var(--color-primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-primary-hover); }

/* Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }

/* Navigation */
.navbar {
    position: sticky; top: 0; z-index: 50;
    background: rgba(10,10,10,0.85); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; }
.navbar-brand { font-family: 'Plus Jakarta Sans'; font-weight: 800; font-size: 1.25rem; color: var(--color-text); display: flex; align-items: center; gap: 0.5rem; }
.navbar-brand .shield { color: var(--color-primary); }
.nav-links { display: flex; gap: 2rem; align-items: center; list-style: none; }
.nav-links a { color: var(--color-text-secondary); font-size: 0.9rem; font-weight: 500; }
.nav-links a:hover { color: var(--color-text); }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.625rem 1.25rem; border-radius: var(--radius); font-weight: 600; font-size: 0.875rem;
    border: none; cursor: pointer; transition: all 0.2s; text-decoration: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
}
.btn-primary { background: var(--color-primary); color: #0a0a0a; }
.btn-primary:hover { background: var(--color-primary-hover); color: #0a0a0a; transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--color-text); border: 1px solid var(--color-border); }
.btn-secondary:hover { border-color: var(--color-border-hover); background: var(--color-bg-elevated); }
.btn-danger { background: var(--color-danger); color: white; }
.btn-lg { padding: 0.875rem 1.75rem; font-size: 1rem; }
.btn-sm { padding: 0.375rem 0.75rem; font-size: 0.8rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* Cards */
.card {
    background: var(--color-bg-card); border: 1px solid var(--color-border);
    border-radius: var(--radius-lg); padding: 1.5rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.card:hover { border-color: var(--color-border-hover); }
.card-elevated { box-shadow: 0 4px 24px rgba(0,0,0,0.3); }

/* Forms */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: 0.875rem; font-weight: 500; color: var(--color-text-secondary); margin-bottom: 0.375rem; }
.form-input {
    width: 100%; padding: 0.625rem 0.875rem;
    background: var(--color-bg); border: 1px solid var(--color-border);
    border-radius: var(--radius); color: var(--color-text);
    font-size: 0.9rem; transition: border-color 0.2s;
}
.form-input:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-primary-subtle); }
textarea.form-input { min-height: 120px; resize: vertical; }

/* Badge / Severity */
.badge {
    display: inline-flex; align-items: center; padding: 0.125rem 0.5rem;
    border-radius: 9999px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
}
.badge-critical { background: rgba(239,68,68,0.15); color: #ef4444; }
.badge-high { background: rgba(249,115,22,0.15); color: #f97316; }
.badge-medium { background: rgba(234,179,8,0.15); color: #eab308; }
.badge-low { background: rgba(59,130,246,0.15); color: #3b82f6; }
.badge-info { background: rgba(107,114,128,0.15); color: #9ca3af; }

/* Grade */
.grade-circle {
    width: 100px; height: 100px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem; font-weight: 800; font-family: 'Plus Jakarta Sans';
    border: 3px solid currentColor;
}

/* Grid */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 768px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* Table */
.table-container { overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius-lg); }
table { width: 100%; border-collapse: collapse; }
th { background: var(--color-bg-elevated); padding: 0.75rem 1rem; text-align: left; font-size: 0.8rem; font-weight: 600; color: var(--color-text-secondary); text-transform: uppercase; letter-spacing: 0.05em; }
td { padding: 0.75rem 1rem; border-top: 1px solid var(--color-border); font-size: 0.9rem; }
tr:hover td { background: var(--color-bg-elevated); }

/* Hero */
.hero { padding: 6rem 0 4rem; text-align: center; position: relative; overflow: hidden; }
.hero::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(16,185,129,0.08) 0%, transparent 60%);
    pointer-events: none;
}
.hero h1 { font-size: 3.5rem; font-weight: 800; margin-bottom: 1.5rem; max-width: 800px; margin-left: auto; margin-right: auto; }
.hero p { font-size: 1.25rem; color: var(--color-text-secondary); max-width: 600px; margin: 0 auto 2rem; }
@media (max-width: 768px) { .hero h1 { font-size: 2.25rem; } .hero p { font-size: 1rem; } }

/* Stats */
.stat-value { font-size: 2rem; font-weight: 800; font-family: 'Plus Jakarta Sans'; }
.stat-label { font-size: 0.8rem; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.05em; }

/* Footer */
.footer {
    border-top: 1px solid var(--color-border); padding: 3rem 0;
    color: var(--color-text-muted); font-size: 0.875rem;
}
.footer a { color: var(--color-text-secondary); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* Pricing */
.pricing-card { position: relative; }
.pricing-card.popular { border-color: var(--color-primary); }
.pricing-card.popular::before {
    content: 'Most Popular'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--color-primary); color: #0a0a0a; padding: 0.25rem 1rem;
    border-radius: 9999px; font-size: 0.75rem; font-weight: 700;
}
.pricing-price { font-size: 3rem; font-weight: 800; font-family: 'Plus Jakarta Sans'; }
.pricing-price span { font-size: 1rem; font-weight: 400; color: var(--color-text-muted); }
.feature-list { list-style: none; margin: 1.5rem 0; }
.feature-list li { padding: 0.375rem 0; display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: var(--color-text-secondary); }
.feature-list li::before { content: '✓'; color: var(--color-primary); font-weight: 700; }

/* Scan animation */
.scan-progress { height: 4px; background: var(--color-border); border-radius: 2px; overflow: hidden; }
.scan-progress-bar { height: 100%; background: var(--color-primary); border-radius: 2px; transition: width 0.3s; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }

/* Dashboard sidebar */
.dashboard-layout { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - 65px); }
.sidebar { background: var(--color-bg-card); border-right: 1px solid var(--color-border); padding: 1.5rem 0; }
.sidebar-nav { list-style: none; }
.sidebar-nav a {
    display: flex; align-items: center; gap: 0.75rem; padding: 0.625rem 1.5rem;
    color: var(--color-text-secondary); font-size: 0.9rem; font-weight: 500;
    transition: all 0.15s; border-left: 3px solid transparent;
}
.sidebar-nav a:hover { color: var(--color-text); background: var(--color-bg-elevated); }
.sidebar-nav a.active { color: var(--color-primary); border-left-color: var(--color-primary); background: var(--color-primary-subtle); }
.dashboard-content { padding: 2rem; overflow-y: auto; }
@media (max-width: 768px) { .dashboard-layout { grid-template-columns: 1fr; } .sidebar { display: none; } }

/* Utilities */
.text-center { text-align: center; }
.text-sm { font-size: 0.875rem; }
.text-muted { color: var(--color-text-muted); }
.text-secondary { color: var(--color-text-secondary); }
.text-primary { color: var(--color-primary); }
.text-danger { color: var(--color-danger); }
.mt-1 { margin-top: 0.25rem; } .mt-2 { margin-top: 0.5rem; } .mt-4 { margin-top: 1rem; } .mt-8 { margin-top: 2rem; }
.mb-2 { margin-bottom: 0.5rem; } .mb-4 { margin-bottom: 1rem; } .mb-8 { margin-bottom: 2rem; }
.flex { display: flex; } .flex-col { flex-direction: column; }
.items-center { align-items: center; } .justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; } .gap-4 { gap: 1rem; } .gap-8 { gap: 2rem; }
.w-full { width: 100%; }

/* Loading spinner */
.spinner { width: 24px; height: 24px; border: 3px solid var(--color-border); border-top-color: var(--color-primary); border-radius: 50%; animation: spin 0.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Alert */
.alert { padding: 1rem; border-radius: var(--radius); margin-bottom: 1rem; font-size: 0.9rem; }
.alert-success { background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.3); color: #10b981; }
.alert-error { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: #ef4444; }
.alert-warning { background: rgba(234,179,8,0.1); border: 1px solid rgba(234,179,8,0.3); color: #eab308; }
