:root {
    --bg: #07090d;
    --bg-soft: #0b0e13;
    --panel: #0d1117;
    --panel-light: #11161d;
    --border: #202731;
    --border-light: #29313c;
    --text: #f1f4f7;
    --muted: #87919e;
    --dim: #535e6b;
    --accent: #dce5ed;
    --green: #5fe0a3;
    --red: #ff6262;
    --orange: #f0a35b;
    --yellow: #e8c66d;
    --blue: #76a9ff;
    --sidebar: 264px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: "Inter", sans-serif;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

::selection {
    background: #dce5ed;
    color: #080a0d;
}

/* =========================================
   GLOBAL
========================================= */

.eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #929ca8;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

.eyebrow span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 12px rgba(95, 224, 163, .45);
}

.status-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 12px rgba(95, 224, 163, .55);
}

.positive {
    color: var(--green) !important;
}

.negative {
    color: var(--red) !important;
}

.critical-text {
    color: var(--red) !important;
}

.high-text {
    color: var(--orange) !important;
}

.medium-text {
    color: var(--yellow) !important;
}

.low-text {
    color: var(--blue) !important;
}

/* =========================================
   BRAND
========================================= */

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid #3a444f;
    background: #11161c;
    color: #eef3f7;
    font-family: "Space Grotesk", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}

.brand-name {
    color: #f1f4f6;
    font-family: "Space Grotesk", sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
}

.brand-sub {
    margin-top: 2px;
    color: #68727e;
    font-size: 8px;
    letter-spacing: 3px;
}

/* =========================================
   APP SHELL
========================================= */

.app-shell {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar);
    display: flex;
    flex-direction: column;
    padding: 26px 18px 18px;
    background: #090c11;
    border-right: 1px solid var(--border);
    z-index: 20;
}

.sidebar .brand {
    padding: 0 9px 25px;
}

.system-status {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 0 2px 26px;
    padding: 12px;
    border: 1px solid #1b2524;
    background: rgba(95, 224, 163, .025);
}

.system-status strong {
    display: block;
    color: #aeb8c2;
    font-size: 9px;
    letter-spacing: 1.3px;
}

.system-status small {
    display: block;
    margin-top: 4px;
    color: #56616d;
    font-size: 9px;
}

.navigation {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.nav-label {
    margin: 0 10px 9px;
    color: #46515e;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1.8px;
}

.nav-label.second {
    margin-top: 28px;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 13px;
    height: 43px;
    padding: 0 11px;
    color: #737e8a;
    border: 1px solid transparent;
    font-size: 12px;
    transition: .2s ease;
}

.nav-item:hover {
    color: #dce2e8;
    background: #0d1218;
}

.nav-item.active {
    color: #eef2f5;
    border-color: #242d37;
    background: #11161c;
}

.nav-item.active::before {
    content: "";
    position: absolute;
    left: -1px;
    top: 10px;
    width: 2px;
    height: 23px;
    background: #dce5ed;
}

.nav-icon {
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    color: #4f5b67;
    border: 1px solid #242d36;
    font-family: "Space Grotesk", sans-serif;
    font-size: 8px;
}

.nav-item.active .nav-icon {
    color: #dbe4eb;
    border-color: #47515d;
}

.sidebar-bottom {
    margin-top: auto;
}

.operator-card {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 12px;
    border: 1px solid #1d252e;
    background: #0d1117;
}

.operator-avatar {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border: 1px solid #3a454f;
    color: #e8edf1;
    font-size: 11px;
    font-weight: 700;
}

.operator-info {
    min-width: 0;
}

.operator-info strong {
    display: block;
    color: #cbd2d9;
    font-size: 10px;
}

.operator-info span {
    display: block;
    margin-top: 3px;
    color: #56616d;
    font-size: 8px;
}

.logout-button {
    margin-left: auto;
    color: #596571;
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logout-button:hover {
    color: #e2e7eb;
}

.version {
    margin-top: 12px;
    padding-left: 4px;
    color: #3e4853;
    font-family: "Space Grotesk", sans-serif;
    font-size: 8px;
    letter-spacing: 1px;
}

/* =========================================
   TOPBAR
========================================= */

.main-content {
    width: calc(100% - var(--sidebar));
    margin-left: var(--sidebar);
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    height: 67px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 34px;
    background: rgba(7, 9, 13, .92);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(14px);
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.breadcrumb {
    color: #4c5661;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1.2px;
}

.breadcrumb-separator {
    color: #303943;
}

.breadcrumb-current {
    color: #a7b0b9;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1px;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #66717d;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1px;
}

.live-indicator span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 9px rgba(95, 224, 163, .6);
}

.topbar-time {
    padding-left: 13px;
    border-left: 1px solid #242c34;
    color: #a9b2bb;
    font-family: "Space Grotesk", sans-serif;
    font-size: 10px;
    letter-spacing: 1px;
}

/* =========================================
   PAGE
========================================= */

.page-content {
    padding: 36px;
    max-width: 1700px;
    margin: auto;
}

.page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 30px;
}

.page-header h1 {
    margin-top: 9px;
    color: #edf1f4;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1;
    letter-spacing: -1.5px;
}

.page-header p {
    margin-top: 9px;
    color: #68737f;
    font-size: 11px;
}

.header-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 13px;
    border: 1px solid #202c29;
    color: #6eaa8c;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1px;
}

/* =========================================
   BUTTONS
========================================= */

.button-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    min-height: 48px;
    padding: 0 20px;
    background: #e6ebef;
    color: #080a0d;
    border: 1px solid #e6ebef;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .8px;
    transition: .25s ease;
}

.button-primary:hover {
    background: #ffffff;
    transform: translateY(-2px);
}

.button-primary span {
    font-size: 15px;
}

.small-button {
    min-height: 40px;
    font-size: 9px;
}

.button-secondary,
.outline-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 19px;
    border: 1px solid #303943;
    background: transparent;
    color: #9da7b1;
    font-size: 10px;
    font-weight: 600;
    transition: .2s ease;
}

.button-secondary:hover,
.outline-button:hover {
    border-color: #586470;
    color: #f0f3f5;
}

/* =========================================
   STAT CARDS
========================================= */

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}

.stat-card {
    position: relative;
    min-height: 150px;
    padding: 21px;
    border: 1px solid var(--border);
    background: var(--panel);
    overflow: hidden;
}

.stat-card::after {
    content: "";
    position: absolute;
    right: -35px;
    bottom: -45px;
    width: 130px;
    height: 130px;
    border: 1px solid #202831;
    border-radius: 50%;
}

.stat-card.critical-stat {
    border-color: #302224;
}

.stat-label {
    color: #606b77;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1.6px;
}

.stat-card strong {
    display: block;
    margin-top: 20px;
    color: #e9edf0;
    font-family: "Space Grotesk", sans-serif;
    font-size: 36px;
    font-weight: 500;
}

.stat-card small {
    display: block;
    margin-top: 7px;
    color: #59646f;
    font-size: 8px;
}

/* =========================================
   PANELS
========================================= */

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(310px, .8fr);
    gap: 12px;
    margin-bottom: 12px;
}

.panel {
    border: 1px solid var(--border);
    background: var(--panel);
}

.panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 21px;
    border-bottom: 1px solid #1c232b;
}

.panel-kicker {
    display: block;
    color: #4f5b67;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1.7px;
}

.panel-header h2 {
    margin-top: 6px;
    color: #cdd4da;
    font-family: "Space Grotesk", sans-serif;
    font-size: 17px;
    font-weight: 600;
}

.panel-live {
    color: var(--green);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1px;
}

.panel-link {
    color: #79848f;
    font-size: 9px;
}

.panel-link:hover {
    color: #e1e6ea;
}

/* =========================================
   CHART
========================================= */

.chart {
    display: flex;
    height: 330px;
    padding: 20px 20px 15px;
}

.chart-y {
    width: 42px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-bottom: 25px;
    color: #414b56;
    font-size: 8px;
}

.chart-area {
    position: relative;
    flex: 1;
}

.grid-line {
    height: 1px;
    margin-bottom: 57px;
    background: #171e25;
}

.chart-area svg {
    position: absolute;
    inset: 0 0 25px;
    width: 100%;
    height: calc(100% - 25px);
    color: #cbd5dd;
}

.chart-x {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    color: #414b56;
    font-size: 8px;
}

/* =========================================
   RISK
========================================= */

.risk-panel {
    min-height: 100%;
}

.risk-score {
    display: flex;
    justify-content: center;
    padding: 31px 20px 15px;
}

.score-ring {
    position: relative;
    width: 155px;
    height: 155px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, #0d1117 57%, transparent 58%),
        conic-gradient(#dce5ed 0 86%, #252d35 86% 100%);
}

.score-ring::after {
    content: "";
    position: absolute;
    inset: 8px;
    border: 1px solid #252e37;
    border-radius: 50%;
}

.score-ring div {
    position: relative;
    z-index: 2;
    text-align: center;
}

.score-ring strong {
    font-family: "Space Grotesk", sans-serif;
    font-size: 38px;
    font-weight: 500;
}

.score-ring span {
    color: #5e6975;
    font-size: 9px;
}

.risk-label {
    text-align: center;
    padding: 0 25px 25px;
}

.risk-label strong {
    display: block;
    color: var(--green);
    font-size: 9px;
    letter-spacing: 1.5px;
}

.risk-label span {
    display: block;
    max-width: 250px;
    margin: 7px auto 0;
    color: #5d6873;
    font-size: 9px;
    line-height: 1.6;
}

.risk-bars {
    padding: 0 21px 21px;
}

.risk-bars > div:not(.risk-bar) {
    display: flex;
    justify-content: space-between;
    margin-top: 14px;
    color: #66717c;
    font-size: 8px;
}

.risk-bars strong {
    color: #9da7b0;
}

.risk-bar {
    height: 3px;
    margin-top: 6px;
    background: #202830;
}

.risk-bar i {
    display: block;
    height: 100%;
    background: #aab7c2;
}

/* =========================================
   EVENTS
========================================= */

.event-list {
    padding: 5px 21px 10px;
}

.event-row {
    display: grid;
    grid-template-columns: 62px 8px minmax(0, 1fr) 75px;
    align-items: center;
    gap: 13px;
    min-height: 66px;
    border-bottom: 1px solid #1a2129;
}

.event-row:last-child {
    border-bottom: 0;
}

.event-time {
    color: #48535f;
    font-family: "Space Grotesk", sans-serif;
    font-size: 8px;
}

.event-indicator {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #65707b;
}

.event-row.critical .event-indicator {
    background: var(--red);
    box-shadow: 0 0 10px rgba(255, 98, 98, .45);
}

.event-row.high .event-indicator {
    background: var(--orange);
}

.event-row.medium .event-indicator {
    background: var(--yellow);
}

.event-main strong {
    display: block;
    color: #aeb6be;
    font-size: 10px;
    font-weight: 500;
}

.event-main span {
    display: block;
    margin-top: 4px;
    color: #4f5a66;
    font-size: 8px;
}

.severity {
    font-size: 7px;
    font-weight: 700;
    letter-spacing: 1px;
    text-align: right;
}

/* =========================================
   SYSTEM LIST
========================================= */

.system-list {
    padding: 8px 21px 10px;
}

.system-list > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    border-bottom: 1px solid #1a2129;
}

.system-list > div:last-child {
    border-bottom: 0;
}

.system-list span {
    color: #68737e;
    font-size: 9px;
}

.system-list strong {
    color: var(--green);
    font-size: 7px;
    letter-spacing: 1px;
}

/* =========================================
   LANDING PAGE
========================================= */

.landing {
    min-height: 100vh;
    overflow: hidden;
    background:
        radial-gradient(circle at 78% 35%, rgba(85, 104, 120, .10), transparent 30%),
        #07090d;
}

.landing-nav {
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: auto;
    padding: 0 35px;
    border-bottom: 1px solid rgba(40, 48, 57, .55);
}

.landing-links {
    display: flex;
    gap: 33px;
    margin-left: auto;
    margin-right: 40px;
}

.landing-links a {
    color: #69737e;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .8px;
}

.landing-links a:hover {
    color: #e4e8eb;
}

.nav-login {
    padding: 10px 15px;
    border: 1px solid #323b45;
    color: #c5cdd4;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1px;
}

.hero {
    position: relative;
    min-height: 680px;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    max-width: 1400px;
    margin: auto;
    padding: 80px 35px;
}

.hero-grid {
    position: absolute;
    inset: 0;
    opacity: .32;
    background-image:
        linear-gradient(#182028 1px, transparent 1px),
        linear-gradient(90deg, #182028 1px, transparent 1px);
    background-size: 70px 70px;
    mask-image: linear-gradient(to bottom, black, transparent 90%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    margin-top: 25px;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(48px, 6.5vw, 91px);
    font-weight: 600;
    line-height: .91;
    letter-spacing: -5px;
}

.hero h1 span {
    color: #596570;
}

.hero-content > p {
    max-width: 570px;
    margin-top: 27px;
    color: #707b86;
    font-size: 13px;
    line-height: 1.9;
}

.hero-actions {
    display: flex;
    gap: 10px;
    margin-top: 34px;
}

.hero-metrics {
    display: flex;
    gap: 45px;
    margin-top: 58px;
}

.hero-metrics div {
    border-left: 1px solid #303943;
    padding-left: 13px;
}

.hero-metrics strong {
    display: block;
    color: #d9e0e5;
    font-family: "Space Grotesk", sans-serif;
    font-size: 19px;
    font-weight: 500;
}

.hero-metrics span {
    display: block;
    margin-top: 5px;
    color: #4f5a65;
    font-size: 8px;
}

.hero-console {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: flex-end;
}

.console-window {
    width: min(100%, 550px);
    border: 1px solid #2b353f;
    background: rgba(9, 13, 18, .93);
    box-shadow: 0 35px 100px rgba(0, 0, 0, .4);
}

.console-header {
    display: flex;
    justify-content: space-between;
    padding: 15px 17px;
    border-bottom: 1px solid #202831;
}

.console-title {
    color: #77838e;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.console-live {
    color: var(--green);
    font-size: 7px;
    font-weight: 700;
    letter-spacing: 1px;
}

.console-body {
    padding: 12px 17px 17px;
}

.console-line {
    display: grid;
    grid-template-columns: 65px 75px 1fr;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid #171e25;
    font-family: "Space Grotesk", sans-serif;
    font-size: 8px;
}

.console-line span {
    color: #46515c;
}

.console-line b {
    color: #707c88;
    font-size: 7px;
    letter-spacing: 1px;
}

.console-line strong {
    color: #9ca6af;
    font-weight: 500;
}

.console-line.warning strong {
    color: #c2a16d;
}

.console-line.danger strong {
    color: #d66c6c;
}

/* =========================================
   LANDING SECTIONS
========================================= */

.landing-section {
    max-width: 1400px;
    margin: auto;
    padding: 120px 35px;
}

.section-heading h2,
.architecture-content h2,
.security-panel h2 {
    margin-top: 18px;
    color: #e8edf0;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(36px, 5vw, 67px);
    line-height: .98;
    letter-spacing: -3px;
}

.capability-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 55px;
}

.capability-card {
    min-height: 260px;
    padding: 25px;
    border: 1px solid #202831;
    background: #0a0e13;
    transition: .25s ease;
}

.capability-card:hover {
    border-color: #3c4752;
    transform: translateY(-5px);
}

.card-number {
    color: #47525e;
    font-family: "Space Grotesk", sans-serif;
    font-size: 9px;
}

.capability-card h3 {
    margin-top: 75px;
    color: #d8dfe4;
    font-family: "Space Grotesk", sans-serif;
    font-size: 18px;
}

.capability-card p {
    margin-top: 12px;
    color: #59646f;
    font-size: 9px;
    line-height: 1.8;
}

.architecture-section {
    border-top: 1px solid #171e25;
}

.architecture-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.architecture-content h2 span {
    color: #596570;
}

.architecture-content p {
    max-width: 510px;
    margin-top: 25px;
    color: #67727d;
    font-size: 11px;
    line-height: 1.9;
}

.architecture-stack {
    border-left: 1px solid #303943;
}

.stack-item {
    position: relative;
    display: grid;
    grid-template-columns: 55px 110px 1fr;
    align-items: center;
    min-height: 78px;
    padding-left: 25px;
    border-bottom: 1px solid #1b232b;
}

.stack-item::before {
    content: "";
    position: absolute;
    left: -4px;
    width: 7px;
    height: 7px;
    background: #0d1117;
    border: 1px solid #aeb9c2;
}

.stack-item span {
    color: #46515c;
    font-size: 8px;
}

.stack-item strong {
    color: #bfc7ce;
    font-size: 9px;
    letter-spacing: 1.3px;
}

.stack-item small {
    color: #525d68;
    font-size: 8px;
}

.security-section {
    border-top: 1px solid #171e25;
}

.security-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 55px;
    border: 1px solid #29323b;
    background:
        radial-gradient(circle at 80% 50%, rgba(125, 145, 160, .08), transparent 35%),
        #0b0f14;
}

.landing-footer {
    display: flex;
    justify-content: space-between;
    max-width: 1400px;
    margin: auto;
    padding: 30px 35px;
    border-top: 1px solid #171e25;
    color: #414b55;
    font-size: 8px;
    letter-spacing: 1.2px;
}

/* =========================================
   LOGIN
========================================= */

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    position: relative;
    background:
        radial-gradient(circle at 50% 30%, rgba(87, 108, 124, .10), transparent 35%),
        #07090d;
    overflow: hidden;
}

.login-background {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(#141b22 1px, transparent 1px),
        linear-gradient(90deg, #141b22 1px, transparent 1px);
    background-size: 75px 75px;
    opacity: .22;
    mask-image: radial-gradient(circle, black, transparent 75%);
}

.login-panel {
    position: relative;
    z-index: 2;
    width: min(430px, calc(100% - 35px));
    padding: 42px;
    border: 1px solid #29323b;
    background: rgba(10, 14, 19, .95);
    box-shadow: 0 40px 120px rgba(0, 0, 0, .5);
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.login-heading {
    margin-top: 55px;
}

.login-heading > span {
    color: #596570;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1.7px;
}

.login-heading h1 {
    margin-top: 8px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 38px;
    font-weight: 500;
    letter-spacing: -1.5px;
}

.login-heading p {
    margin-top: 10px;
    color: #626d78;
    font-size: 10px;
    line-height: 1.7;
}

.login-error {
    margin-top: 22px;
    padding: 12px;
    border: 1px solid #4b292b;
    background: rgba(255, 98, 98, .04);
    color: #db7777;
    font-size: 9px;
    line-height: 1.5;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 19px;
    margin-top: 30px;
}

.login-form label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #69747f;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.login-form input {
    width: 100%;
    height: 48px;
    padding: 0 13px;
    outline: none;
    border: 1px solid #252e37;
    background: #080c11;
    color: #e2e7eb;
    font-size: 10px;
    transition: .2s ease;
}

.login-form input:focus {
    border-color: #586571;
}

.login-form input::placeholder {
    color: #3f4a55;
}

.login-submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 48px;
    padding: 0 16px;
    margin-top: 8px;
    border: 1px solid #e4e9ed;
    background: #e4e9ed;
    color: #080a0d;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
}

.login-submit:hover {
    background: #fff;
}

.login-submit span {
    font-size: 16px;
}

.login-security {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #1d252d;
}

.login-security strong {
    display: block;
    color: #707b85;
    font-size: 8px;
    letter-spacing: 1px;
}

.login-security small {
    display: block;
    margin-top: 3px;
    color: #424d58;
    font-size: 8px;
}

.demo-credentials {
    margin-top: 20px;
    color: #414c57;
    font-size: 8px;
    text-align: center;
}

.demo-credentials strong {
    color: #66717d;
}

.back-home {
    display: block;
    margin-top: 25px;
    color: #58636e;
    font-size: 8px;
    text-align: center;
}

.back-home:hover {
    color: #c4cbd1;
}

/* =========================================
   THREATS
========================================= */

.threat-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}

.threat-summary > div {
    padding: 20px;
    border: 1px solid var(--border);
    background: var(--panel);
}

.threat-summary span {
    display: block;
    color: #58636e;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1.3px;
}

.threat-summary strong {
    display: block;
    margin-top: 14px;
    color: #dfe5e9;
    font-family: "Space Grotesk", sans-serif;
    font-size: 30px;
    font-weight: 500;
}

.table-filter {
    padding: 7px 9px;
    border: 1px solid #2a333c;
    color: #66717d;
    font-size: 7px;
    letter-spacing: 1px;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    padding: 14px 21px;
    color: #46515c;
    border-bottom: 1px solid #202831;
    text-align: left;
    font-size: 7px;
    letter-spacing: 1.2px;
}

td {
    padding: 18px 21px;
    border-bottom: 1px solid #191f26;
    color: #7a8590;
    font-size: 9px;
}

td strong {
    display: block;
    color: #b9c1c8;
    font-weight: 500;
}

td small {
    display: block;
    margin-top: 4px;
    color: #46515f;
    font-size: 7px;
}

.table-status {
    font-size: 7px;
    font-weight: 700;
    letter-spacing: .7px;
}

.table-status.investigating {
    color: var(--orange);
}

.table-status.blocked {
    color: var(--green);
}

.table-status.monitoring {
    color: var(--blue);
}

/* =========================================
   NETWORK
========================================= */

.network-overview {
    display: grid;
    grid-template-columns: 1.7fr .8fr;
    gap: 12px;
}

.network-map {
    position: relative;
    height: 550px;
    overflow: hidden;
    background:
        linear-gradient(#151c23 1px, transparent 1px),
        linear-gradient(90deg, #151c23 1px, transparent 1px);
    background-size: 50px 50px;
}

.network-map::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 10%, #0d1117 75%);
    pointer-events: none;
}

.network-node {
    position: absolute;
    z-index: 3;
    min-width: 125px;
    padding: 14px;
    border: 1px solid #33404b;
    background: #0c1117;
    text-align: center;
}

.network-node span {
    display: block;
    width: 8px;
    height: 8px;
    margin: 0 auto 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 12px rgba(95, 224, 163, .5);
}

.network-node strong {
    display: block;
    color: #aeb7bf;
    font-size: 8px;
    letter-spacing: 1px;
}

.network-node small {
    display: block;
    margin-top: 4px;
    color: #4d5965;
    font-size: 7px;
}

.core-node {
    top: 42%;
    left: 42%;
}

.node-one {
    top: 17%;
    left: 10%;
}

.node-two {
    top: 18%;
    right: 9%;
}

.node-three {
    bottom: 17%;
    left: 10%;
}

.node-four {
    bottom: 18%;
    right: 9%;
}

.connection {
    position: absolute;
    z-index: 1;
    height: 1px;
    background: #33404b;
    transform-origin: left center;
}

.connection-one {
    top: 43%;
    left: 27%;
    width: 190px;
    transform: rotate(20deg);
}

.connection-two {
    top: 43%;
    left: 52%;
    width: 180px;
    transform: rotate(-20deg);
}

.connection-three {
    top: 57%;
    left: 27%;
    width: 190px;
    transform: rotate(-20deg);
}

.connection-four {
    top: 57%;
    left: 52%;
    width: 180px;
    transform: rotate(20deg);
}

.network-health {
    height: fit-content;
}

.health-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 17px 21px;
    border-bottom: 1px solid #1b2229;
}

.health-item strong {
    display: block;
    color: #9da6ae;
    font-size: 9px;
    font-weight: 500;
}

.health-item span {
    display: block;
    margin-top: 4px;
    color: #4d5863;
    font-size: 7px;
}

.health-item b {
    color: var(--green);
    font-family: "Space Grotesk", sans-serif;
    font-size: 11px;
    font-weight: 500;
}

/* =========================================
   INCIDENTS
========================================= */

.incident-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}

.incident-card {
    padding: 22px;
    border: 1px solid var(--border);
    background: var(--panel);
}

.incident-card strong {
    display: block;
    margin-top: 17px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 33px;
    font-weight: 500;
}

.incident-card p {
    margin-top: 5px;
    color: #525d68;
    font-size: 8px;
}

.incident-label {
    color: #5a6570;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1.4px;
}

.critical-card strong {
    color: var(--red);
}

.high-card strong {
    color: var(--orange);
}

.open-card strong {
    color: #cbd3da;
}

.incident-list {
    padding: 4px 21px;
}

.incident-row {
    display: grid;
    grid-template-columns: 80px minmax(220px, 1fr) 80px 90px 100px;
    gap: 15px;
    align-items: center;
    min-height: 76px;
    border-bottom: 1px solid #1a2129;
}

.incident-row:last-child {
    border-bottom: 0;
}

.incident-id {
    color: #596570;
    font-family: "Space Grotesk", sans-serif;
    font-size: 8px;
}

.incident-details strong {
    display: block;
    color: #abb4bc;
    font-size: 9px;
    font-weight: 500;
}

.incident-details span {
    display: block;
    margin-top: 5px;
    color: #4d5863;
    font-size: 7px;
}

.incident-priority {
    font-size: 7px;
    font-weight: 700;
    letter-spacing: .7px;
}

.incident-owner,
.incident-state {
    color: #58636e;
    font-size: 7px;
    letter-spacing: .8px;
}

.incident-state {
    color: #77828d;
}

/* =========================================
   SETTINGS
========================================= */

.settings-grid {
    display: grid;
    grid-template-columns: 1.3fr .8fr;
    gap: 12px;
}

.setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    min-height: 78px;
    padding: 15px 21px;
    border-bottom: 1px solid #1b2229;
}

.setting-row strong {
    display: block;
    color: #abb4bc;
    font-size: 9px;
    font-weight: 500;
}

.setting-row span {
    display: block;
    margin-top: 5px;
    color: #4e5964;
    font-size: 8px;
}

.toggle {
    position: relative;
    width: 35px;
    height: 19px;
    flex-shrink: 0;
    border: 1px solid #303a44;
    background: #151b21;
    cursor: pointer;
}

.toggle span {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 11px;
    height: 11px;
    margin: 0;
    background: #596571;
    transition: .2s ease;
}

.toggle.active {
    border-color: #53625e;
}

.toggle.active span {
    left: 19px;
    background: var(--green);
}

.environment-list {
    padding: 8px 21px;
}

.environment-list > div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 17px 0;
    border-bottom: 1px solid #1a2129;
}

.environment-list span {
    color: #5f6a75;
    font-size: 8px;
}

.environment-list strong {
    color: #aab3bb;
    font-size: 8px;
    font-weight: 500;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1100px) {

    :root {
        --sidebar: 220px;
    }

    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-grid,
    .network-overview,
    .settings-grid,
    .architecture-content {
        grid-template-columns: 1fr;
    }

    .capability-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero {
        grid-template-columns: 1fr;
    }

    .hero-console {
        justify-content: flex-start;
        margin-top: 70px;
    }

    .architecture-content {
        gap: 55px;
    }

    .incident-row {
        grid-template-columns: 70px minmax(180px, 1fr) 70px;
    }

    .incident-owner,
    .incident-state {
        display: none;
    }
}

@media (max-width: 760px) {

    :root {
        --sidebar: 0px;
    }

    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        min-height: 0;
    }

    .app-shell {
        display: block;
    }

    .navigation {
        display: none;
    }

    .sidebar-bottom {
        display: none;
    }

    .main-content {
        width: 100%;
        margin-left: 0;
    }

    .topbar {
        padding: 0 18px;
    }

    .page-content {
        padding: 24px 17px;
    }

    .page-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .stat-grid,
    .threat-summary,
    .incident-grid,
    .capability-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .landing-nav {
        padding: 0 18px;
    }

    .landing-links {
        display: none;
    }

    .hero,
    .landing-section {
        padding-left: 18px;
        padding-right: 18px;
    }

    .hero h1 {
        font-size: 52px;
        letter-spacing: -3px;
    }

    .hero-metrics {
        flex-wrap: wrap;
        gap: 20px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .console-line {
        grid-template-columns: 58px 65px 1fr;
        font-size: 7px;
    }

    .security-panel {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
        padding: 30px;
    }

    .landing-footer {
        flex-direction: column;
        gap: 10px;
        padding-left: 18px;
        padding-right: 18px;
    }

    .network-map {
        height: 430px;
    }

    .network-node {
        min-width: 95px;
        padding: 10px;
    }

    .core-node {
        left: 35%;
    }

    .node-one {
        left: 3%;
    }

    .node-two {
        right: 3%;
    }

    .node-three {
        left: 3%;
    }

    .node-four {
        right: 3%;
    }

    .login-panel {
        padding: 28px 23px;
    }

    .table-panel {
        overflow: hidden;
    }

}