:root {
    --background: #06111f;
    --background-light: #091729;
    --surface: #0d1d31;
    --surface-light: #12243a;

    --primary: #22d3ee;
    --primary-light: #67e8f9;

    --text: #f8fafc;
    --text-muted: #94a3b8;
    --text-soft: #cbd5e1;

    --border: rgba(148, 163, 184, 0.18);

    --critical: #ef4444;
    --high: #f97316;
    --medium: #eab308;
    --low: #3b82f6;
    --informational: #64748b;
    --success: #22c55e;

    --shadow: 0 22px 55px rgba(0, 0, 0, 0.24);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    min-width: 320px;
    background: var(--background);
    color: var(--text);
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    line-height: 1.6;
}

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
    outline: 3px solid rgba(34, 211, 238, 0.45);
    outline-offset: 3px;
}

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

code {
    color: var(--primary);
}

.container {
    width: min(1180px, 92%);
    margin-inline: auto;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    background: rgba(6, 17, 31, 0.9);
    backdrop-filter: blur(18px);
}

.navigation {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

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

.brand-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(34, 211, 238, 0.4);
    border-radius: 13px;
    background: rgba(34, 211, 238, 0.1);
    color: var(--primary);
    font-weight: 800;
}

.brand-text strong,
.brand-text small {
    display: block;
}

.brand-text strong {
    font-size: 1.05rem;
}

.brand-text small {
    color: var(--text-muted);
    font-size: 0.72rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
}

.nav-links a {
    color: var(--text-muted);
    font-size: 0.92rem;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Hero */

.hero {
    padding: 105px 0 90px;
    background:
        radial-gradient(
            circle at 85% 12%,
            rgba(34, 211, 238, 0.13),
            transparent 31%
        ),
        var(--background);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
    align-items: center;
    gap: 64px;
}

.eyebrow {
    margin-bottom: 10px;
    color: var(--primary);
    font-size: 0.76rem;
    font-weight: 750;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 790px;
    font-size: clamp(2.5rem, 5.2vw, 4.7rem);
    line-height: 1.04;
    letter-spacing: -0.045em;
}

.hero-description {
    max-width: 720px;
    margin-top: 24px;
    color: var(--text-muted);
    font-size: 1.08rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.privacy-note {
    max-width: 720px;
    margin-top: 24px;
    padding: 13px 15px;
    border-left: 3px solid var(--primary);
    background: rgba(34, 211, 238, 0.06);
    color: var(--text-muted);
    font-size: 0.86rem;
}

.privacy-note strong {
    color: var(--text-soft);
}

/* Buttons */

.button {
    min-height: 46px;
    padding: 11px 20px;
    border: 1px solid transparent;
    border-radius: 9px;
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        opacity 0.2s ease;
}

.button:hover:not(:disabled) {
    transform: translateY(-2px);
}

.button:disabled {
    cursor: not-allowed;
    opacity: 0.48;
}

.button-primary {
    background: var(--primary);
    color: #021019;
    font-weight: 750;
}

.button-primary:hover:not(:disabled) {
    background: var(--primary-light);
}

.button-secondary {
    border-color: rgba(34, 211, 238, 0.48);
    background: transparent;
    color: var(--primary);
}

.button-secondary:hover:not(:disabled) {
    background: rgba(34, 211, 238, 0.08);
}

.full-width {
    width: 100%;
}

.text-button {
    border: 0;
    background: transparent;
    color: var(--primary);
    font-size: 0.86rem;
}

/* Upload */

.upload-card {
    padding: 34px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background:
        linear-gradient(
            145deg,
            rgba(18, 36, 58, 0.97),
            rgba(10, 23, 40, 0.97)
        );
    box-shadow: var(--shadow);
}

.upload-icon {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    margin-bottom: 20px;
    border: 1px solid rgba(34, 211, 238, 0.42);
    border-radius: 16px;
    background: rgba(34, 211, 238, 0.1);
    color: var(--primary);
    font-weight: 800;
}

.upload-card h2 {
    font-size: 1.48rem;
}

.upload-card > p:not(.eyebrow):not(.upload-status) {
    margin-top: 8px;
    color: var(--text-muted);
}

.file-label {
    display: block;
    margin-top: 24px;
    padding: 15px;
    border: 1px dashed rgba(34, 211, 238, 0.5);
    border-radius: 10px;
    background: rgba(34, 211, 238, 0.04);
    color: var(--primary);
    text-align: center;
    cursor: pointer;
}

.file-label:hover {
    background: rgba(34, 211, 238, 0.08);
}

#scanFile {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.selected-file {
    min-height: 46px;
    margin: 14px 0;
    padding: 11px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.025);
    color: var(--text-muted);
    overflow-wrap: anywhere;
}

.upload-status {
    margin-top: 13px;
    color: var(--text-muted);
    font-size: 0.78rem;
    text-align: center;
}

.upload-status.success {
    color: #86efac;
}

.upload-status.error {
    color: #fca5a5;
}

/* Sections */

.section {
    padding: 90px 0;
}

.alternate-section {
    background: var(--background-light);
}

.section-heading {
    margin-bottom: 32px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 25px;
}

.section-heading h2 {
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    letter-spacing: -0.025em;
}

.table-count {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Summary */

.summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.summary-card {
    position: relative;
    min-height: 154px;
    padding: 24px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
}

.summary-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: var(--primary);
}

.summary-card strong {
    display: block;
    margin: 10px 0 5px;
    font-size: 2.4rem;
    line-height: 1;
}

.summary-card small {
    color: var(--text-muted);
}

.summary-label {
    color: var(--text-soft);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.critical-card::before {
    background: var(--critical);
}

.high-card::before {
    background: var(--high);
}

.medium-card::before {
    background: var(--medium);
}

.low-card::before {
    background: var(--low);
}

/* Risk */

.risk-badge {
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 750;
}

.risk-none {
    color: var(--text-muted);
}

.risk-low {
    background: rgba(59, 130, 246, 0.12);
    color: #93c5fd;
}

.risk-medium {
    background: rgba(234, 179, 8, 0.12);
    color: #fde047;
}

.risk-high {
    background: rgba(249, 115, 22, 0.12);
    color: #fdba74;
}

.risk-critical {
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
}

/* Panels */

.dashboard-panels {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 18px;
    margin-top: 18px;
}

.dashboard-panel {
    padding: 26px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
}

.dashboard-panel h3 {
    margin-bottom: 24px;
}

.severity-summary {
    display: grid;
    gap: 18px;
}

.severity-row {
    display: grid;
    grid-template-columns: 76px 1fr 30px;
    align-items: center;
    gap: 14px;
    font-size: 0.88rem;
}

.severity-track {
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.12);
}

.severity-fill {
    width: 0;
    height: 100%;
    border-radius: inherit;
    transition: width 0.35s ease;
}

.critical-fill {
    background: var(--critical);
}

.high-fill {
    background: var(--high);
}

.medium-fill {
    background: var(--medium);
}

.low-fill {
    background: var(--low);
}

.status-list > div {
    padding: 13px 0;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid var(--border);
}

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

.status-list dt {
    color: var(--text-muted);
}

.status-list dd {
    color: var(--text-soft);
    font-weight: 650;
    text-align: right;
}

/* Tables */

.table-container {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
}

table {
    width: 100%;
    min-width: 850px;
    border-collapse: collapse;
}

th,
td {
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

th {
    background: rgba(255, 255, 255, 0.025);
    color: var(--text-soft);
    font-size: 0.77rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

td {
    color: var(--text-muted);
    font-size: 0.9rem;
}

tbody tr:last-child td {
    border-bottom: 0;
}

.empty-row td {
    padding: 34px;
    text-align: center;
}

.status-up {
    color: #86efac;
    font-weight: 650;
}

/* Filters */

.findings-heading {
    align-items: center;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.filters input,
.filters select {
    min-height: 44px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--surface);
    color: var(--text);
}

.filters input {
    width: min(320px, 100%);
    padding: 10px 13px;
}

.filters select {
    padding: 10px 35px 10px 13px;
}

.findings-toolbar {
    margin: -15px 0 17px;
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.severity-badge {
    display: inline-flex;
    min-width: 88px;
    justify-content: center;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 750;
}

.severity-critical {
    background: rgba(239, 68, 68, 0.13);
    color: #fca5a5;
}

.severity-high {
    background: rgba(249, 115, 22, 0.13);
    color: #fdba74;
}

.severity-medium {
    background: rgba(234, 179, 8, 0.13);
    color: #fde047;
}

.severity-low {
    background: rgba(59, 130, 246, 0.13);
    color: #93c5fd;
}

.severity-informational {
    background: rgba(100, 116, 139, 0.18);
    color: #cbd5e1;
}

/* Remediation */

.remediation-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.remediation-card,
.empty-state {
    padding: 26px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
}

.remediation-card {
    border-left: 3px solid var(--primary);
}

.remediation-card p,
.empty-state p {
    color: var(--text-muted);
}

.remediation-meta {
    margin-top: 16px;
    display: flex;
    gap: 8px;
}

.remediation-meta span {
    padding: 5px 9px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-soft);
    font-size: 0.73rem;
}

/* Footer */

.disclaimer-section {
    padding-top: 20px;
}

.disclaimer-card {
    padding: 26px;
    border: 1px solid rgba(234, 179, 8, 0.28);
    border-radius: 14px;
    background: rgba(234, 179, 8, 0.055);
}

.disclaimer-card h2 {
    color: #fde047;
}

.disclaimer-card p {
    margin-top: 8px;
    color: var(--text-muted);
}

.site-footer {
    padding: 34px 0;
    border-top: 1px solid var(--border);
    background: #04101d;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Responsive */

@media (max-width: 980px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

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

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

    .findings-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 760px) {
    .navigation {
        align-items: flex-start;
        flex-direction: column;
        padding: 13px 0;
    }

    .nav-links {
        width: 100%;
        overflow-x: auto;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .footer-content {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 540px) {
    .summary-grid {
        grid-template-columns: 1fr;
    }

    .filters {
        width: 100%;
        flex-direction: column;
    }

    .filters input,
    .filters select {
        width: 100%;
    }
}

/* Print */
@media print {
    @page {
        size: A4 landscape;
        margin: 12mm;
    }

    body {
        background: #ffffff;
        color: #111827;
        font-size: 10px;
    }

    .site-header,
    .hero,
    .filters,
    .findings-toolbar,
    .button,
    .site-footer {
        display: none !important;
    }

    .section,
    .alternate-section {
        padding: 14px 0;
        background: #ffffff;
        break-inside: avoid;
    }

    .container {
        width: 100%;
        max-width: none;
    }

    .summary-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .summary-card {
        min-height: auto;
        padding: 12px;
        break-inside: avoid;
    }

    .summary-card strong {
        font-size: 1.6rem;
    }

    .dashboard-panels {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .dashboard-panel,
    .table-container,
    .remediation-card,
    .disclaimer-card {
        border-color: #d1d5db;
        background: #ffffff;
        box-shadow: none;
        break-inside: avoid;
    }

    .table-container {
        overflow: visible;
    }

    table {
        width: 100%;
        min-width: 0;
        table-layout: fixed;
    }

    th,
    td {
        padding: 6px;
        font-size: 8px;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    #assets table th:nth-child(1),
    #assets table td:nth-child(1) {
        width: 18%;
    }

    #services table th:nth-child(1),
    #services table td:nth-child(1) {
        width: 16%;
    }

    #findings table th:nth-child(1),
    #findings table td:nth-child(1) {
        width: 9%;
    }

    #findings table th:nth-child(2),
    #findings table td:nth-child(2) {
        width: 12%;
    }

    #findings table th:nth-child(3),
    #findings table td:nth-child(3) {
        width: 7%;
    }

    #findings table th:nth-child(4),
    #findings table td:nth-child(4) {
        width: 10%;
    }

    #findings table th:nth-child(5),
    #findings table td:nth-child(5) {
        width: 22%;
    }

    #findings table th:nth-child(6),
    #findings table td:nth-child(6) {
        width: 26%;
    }

    #findings table th:nth-child(7),
    #findings table td:nth-child(7) {
        width: 14%;
    }

    h2,
    h3,
    th,
    td,
    p,
    small,
    strong,
    .summary-label,
    .status-list dt,
    .status-list dd {
        color: #111827 !important;
    }
}