:root {
    --bg: #09101d;
    --panel: #0f172a;
    --panel-2: #111c32;
    --text: #e5edf9;
    --muted: #9fb0cd;
    --border: rgba(148, 163, 184, 0.16);
    --primary: #2563eb;
    --success: #22c55e;
    --warn: #f59e0b;
    --danger: #ef4444;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Inter, Segoe UI, Arial, sans-serif;
    background: linear-gradient(180deg, #050b16 0%, #0a1324 100%);
    color: var(--text);
}
a { color: #c9ddff; text-decoration: none; }
a:hover { text-decoration: underline; }
button, .button-link {
    background: var(--primary);
    color: white;
    border: 0;
    border-radius: 14px;
    padding: 0.9rem 1.2rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.button-link.secondary { background: #1e293b; }
input, select, textarea {
    width: 100%;
    margin-top: 0.45rem;
    background: #081120;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.9rem 1rem;
}
code {
    display: inline-block;
    background: #081120;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.35rem 0.55rem;
    color: #bfdbfe;
}
.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px 1fr;
}
.sidebar {
    border-right: 1px solid var(--border);
    background: rgba(7, 13, 26, 0.84);
    padding: 1.5rem;
    position: sticky;
    top: 0;
    height: 100vh;
}
.brand-block {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 2rem;
}
.brand-block h1 { font-size: 1.05rem; margin: 0; }
.brand-block p { margin: 0.2rem 0 0; color: var(--muted); font-size: 0.9rem; }
.brand-mark {
    width: 48px; height: 48px; border-radius: 16px; background: linear-gradient(135deg, #2563eb, #38bdf8);
    display: grid; place-items: center; font-weight: 800; font-size: 1.2rem;
}
.nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.nav-links a {
    padding: 0.9rem 1rem;
    border-radius: 12px;
    color: var(--text);
}
.nav-links a:hover { background: rgba(37, 99, 235, 0.12); text-decoration: none; }
.main-content { padding: 2rem; }
.auth-layout {
    display: grid;
    place-items: center;
    padding: 2rem;
}
.panel, .public-panel {
    background: rgba(15, 23, 42, 0.82);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 1.4rem;
    box-shadow: 0 18px 50px rgba(2, 6, 23, 0.28);
}
.auth-card {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1.5rem;
    width: min(1100px, 100%);
}
.auth-copy {
    padding: 1rem 0.5rem;
    align-self: center;
}
.auth-copy h2 { font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.05; margin: 0.35rem 0 1rem; }
.auth-copy p { color: var(--muted); max-width: 60ch; }
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    margin-bottom: 1.4rem;
}
.page-header h2 { font-size: 2rem; margin: 0.25rem 0; }
.page-header p, .eyebrow { color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}
.stat-card strong { display: block; font-size: 2rem; margin-top: 0.4rem; }
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.tight-top { margin-top: 1rem; }
.panel-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
table { width: 100%; border-collapse: collapse; }
th, td {
    text-align: left;
    padding: 0.9rem 0.7rem;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}
th { color: var(--muted); font-weight: 600; }
.alert-list { display: grid; gap: 0.8rem; }
.alert-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: rgba(8, 17, 32, 0.75);
}
.alert-row p { margin: 0.3rem 0 0; color: var(--muted); }
.badge, .severity-pill {
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.severity-low, .severity-pill.severity-low { border-left: 4px solid #38bdf8; }
.severity-medium, .severity-pill.severity-medium { border-left: 4px solid var(--warn); }
.severity-high, .severity-pill.severity-high { border-left: 4px solid var(--danger); }
.severity-pill.severity-low { background: rgba(56, 189, 248, 0.12); }
.severity-pill.severity-medium { background: rgba(245, 158, 11, 0.12); }
.severity-pill.severity-high { background: rgba(239, 68, 68, 0.12); }
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.compact-form { align-self: start; }
.full-width { grid-column: 1 / -1; }
.actions-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.flash-stack { display: grid; gap: 0.6rem; margin-bottom: 1rem; }
.flash {
    padding: 0.9rem 1rem;
    border-radius: 14px;
    border: 1px solid var(--border);
}
.flash-success { background: rgba(34, 197, 94, 0.12); }
.flash-error { background: rgba(239, 68, 68, 0.12); }
.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 0;
}
.details-grid dt { color: var(--muted); margin-bottom: 0.35rem; }
.details-grid dd { margin: 0; }
.public-shell {
    max-width: 860px;
    margin: 2rem auto;
    display: grid;
    gap: 1rem;
}
.hero-panel h2 { margin: 0.35rem 0; }
.success-panel { border-color: rgba(34, 197, 94, 0.3); }
@media (max-width: 980px) {
    .app-shell { grid-template-columns: 1fr; }
    .sidebar { position: relative; height: auto; }
    .auth-card, .two-column, .stats-grid, .form-grid, .details-grid { grid-template-columns: 1fr; }
}

.landing-body {
    background: radial-gradient(circle at top left, rgba(37,99,235,0.2), transparent 30%), linear-gradient(180deg, #050b16 0%, #0a1324 100%);
}
.landing-wrap { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; }
.narrow-wrap { width: min(760px, calc(100% - 2rem)); }
.top-gap { margin-top: 1rem; }
.site-header, .site-footer {
    border-bottom: 1px solid var(--border);
    background: rgba(5, 11, 22, 0.78);
    backdrop-filter: blur(14px);
}
.site-footer { border-top: 1px solid var(--border); border-bottom: 0; margin-top: 3rem; }
.header-row, .footer-grid {
    display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 0;
}
.brand-inline { display: flex; align-items: center; gap: 0.85rem; }
.header-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.muted-small { color: var(--muted); font-size: 0.9rem; margin: 0.3rem 0 0; }
.hero-section, .content-section { padding: 4.5rem 0; }
.hero-grid, .split-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 1.25rem; align-items: center; }
.hero-section h1 { font-size: clamp(2.6rem, 5vw, 4.8rem); line-height: 0.98; margin: 0.5rem 0 1rem; max-width: 11ch; }
.hero-copy { color: var(--muted); font-size: 1.1rem; max-width: 56ch; }
.hero-points { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.25rem 0 0; }
.hero-points span, .trust-grid div {
    border: 1px solid var(--border); background: rgba(8,17,32,0.62); padding: 0.8rem 1rem; border-radius: 999px;
}
.hero-card { padding: 1.6rem; }
.hero-card h3 { font-size: 1.6rem; margin: 0.5rem 0 1rem; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin: 1rem 0 1.2rem; }
.mini-stats div, .mini-card, .preview-card {
    border: 1px solid var(--border); background: rgba(8,17,32,0.78); border-radius: 18px; padding: 1rem;
}
.mini-stats strong, .preview-card strong { display: block; font-size: 1.8rem; }
.mini-stats span, .mini-card span, .preview-card span { display: block; margin-top: 0.25rem; color: var(--muted); }
.feature-list { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.65rem; }
.trust-strip { padding: 1.25rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(8,17,32,0.38); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; text-align: center; }
.solution-cards, .pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.mini-card strong { display: block; font-size: 1.05rem; margin-bottom: 0.35rem; }
.section-head { margin-bottom: 1.4rem; }
.center-text { text-align: center; }
.price-card h3 { font-size: 2.4rem; margin: 0.5rem 0 1rem; }
.price-card h3 span { font-size: 1rem; color: var(--muted); margin-left: 0.3rem; }
.featured { outline: 2px solid rgba(37,99,235,0.48); box-shadow: 0 0 0 1px rgba(56,189,248,0.18) inset; }
.alt-align { align-items: stretch; }
.dashboard-preview { min-height: 320px; display: flex; flex-direction: column; justify-content: center; }
.dashboard-bars { display: flex; gap: 0.45rem; margin-bottom: 1rem; }
.dashboard-bars span { width: 12px; height: 12px; border-radius: 999px; background: rgba(148,163,184,0.45); }
.preview-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.9rem; }
.preview-card.alert { border-color: rgba(239,68,68,0.35); }
.final-cta { padding-bottom: 2rem; }
.lead-form { padding: 1.5rem; }
.center-actions { justify-content: center; }
@media (max-width: 980px) {
    .hero-grid, .split-grid, .pricing-grid, .solution-cards, .trust-grid, .mini-stats, .preview-grid { grid-template-columns: 1fr; }
    .header-row, .footer-grid { flex-direction: column; align-items: flex-start; }
    .hero-section h1 { max-width: none; }
}
