
/* =====================================
   SNITCH. — DESIGN SYSTEM
   ===================================== */

:root {
    --bg: #0b1018;
    --surface: #111b28;
    --surface-hover: #162333;
    --border: #293847;

    --text: #edf3f8;
    --muted: #91a3b7;

    --accent: #50dec7;
    --accent-dark: #143a39;

    --warning: #e9bd74;
    --radius: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    background: var(--bg);
    color: var(--text);

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Inter,
        sans-serif;

    line-height: 1.5;

    -webkit-font-smoothing: antialiased;
}

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

button {
    font: inherit;
}

/* =====================================
   NAVIGATION
   ===================================== */

.topbar {
    min-height: 78px;
    padding: 0 5%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 24px;

    background: #0e1520;
    border-bottom: 1px solid var(--border);
}

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

    font-size: 19px;
    font-weight: 800;
    letter-spacing: 1.3px;
}

.brand-symbol {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    border-radius: 10px;

    color: var(--accent);
    background: var(--accent-dark);

    font-size: 23px;
    font-weight: 800;
}

.brand-dot {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 30px;

    color: var(--muted);
    font-size: 13px;
}

.nav-links a {
    transition: color 0.2s;
}

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

.live-indicator {
    display: flex;
    align-items: center;
    gap: 9px;

    color: var(--muted);

    font-size: 10px;
    letter-spacing: 1px;
    white-space: nowrap;
}

.live-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;
    background: var(--accent);

    box-shadow: 0 0 12px var(--accent);

    animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
    50% {
        opacity: 0.4;
        box-shadow: 0 0 4px var(--accent);
    }
}

/* =====================================
   MAIN
   ===================================== */

.container {
    width: 100%;
    max-width: 1250px;

    margin: auto;
    padding: 0 25px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;

    font-size: 11px;
    font-weight: 700;

    color: var(--accent);
    letter-spacing: 1.5px;
}

.eyebrow-line {
    width: 20px;
    height: 2px;
    background: var(--accent);
}

/* =====================================
   HERO
   ===================================== */

.hero {
    min-height: 420px;

    display: grid;
    grid-template-columns: 1.4fr 1fr;
    align-items: center;

    gap: 40px;
    padding: 65px 0;

    position: relative;
}

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

.hero h1 {
    margin: 22px 0;

    font-size: clamp(35px, 4.1vw, 60px);
    font-weight: 750;

    letter-spacing: -2px;
    line-height: 1.12;
}

.hero h1 span {
    display: block;
    color: var(--accent);
}

.hero-description {
    max-width: 530px;

    margin: 0;

    color: var(--muted);

    font-size: 15px;
    line-height: 1.9;
}

/* SCAN PROGRESS */

.scan-box {
    max-width: 490px;
    margin-top: 40px;
}

.scan-details {
    display: flex;
    justify-content: space-between;
    gap: 12px;

    margin-bottom: 12px;

    color: var(--muted);
    font-size: 12px;
}

#scan-progress {
    color: var(--accent);
    font-family: monospace;
    white-space: nowrap;
}

.progress-track {
    height: 5px;

    overflow: hidden;
    border-radius: 20px;

    background: #273849;
}

#progress-fill {
    width: 0%;
    height: 100%;

    border-radius: 20px;

    background: linear-gradient(
        90deg,
        #318faf,
        var(--accent)
    );

    box-shadow: 0 0 18px rgba(80, 222, 199, 0.4);

    transition: width 0.6s ease;
}

.scan-hint {
    display: block;

    margin-top: 15px;

    color: #657c90;

    font-size: 10px;
    letter-spacing: 1.3px;
}

/* =====================================
   FINGERPRINT HERO ART
   ===================================== */

.scanner-art {
    width: 330px;
    height: 330px;

    position: relative;

    display: grid;
    place-items: center;

    justify-self: center;
}

.scanner-art::before {
    content: "";

    position: absolute;

    width: 330px;
    height: 330px;

    background: radial-gradient(
        circle,
        rgba(80, 222, 199, 0.12),
        transparent 70%
    );

    filter: blur(20px);
}

.scanner-grid {
    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(
            rgba(80, 222, 199, 0.045) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(80, 222, 199, 0.045) 1px,
            transparent 1px
        );

    background-size: 25px 25px;

    mask-image: radial-gradient(
        circle,
        black 15%,
        transparent 73%
    );
}

.orbit {
    position: absolute;

    border: 1px solid rgba(80, 222, 199, 0.18);
    border-radius: 50%;
}

.orbit-1 {
    width: 165px;
    height: 165px;
}

.orbit-2 {
    width: 245px;
    height: 245px;
}

.orbit-3 {
    width: 320px;
    height: 320px;

    border-style: dashed;

    animation: rotate 75s linear infinite;
}

@keyframes rotate {
    to {
        transform: rotate(360deg);
    }
}

.fingerprint-art {
    position: relative;
    z-index: 1;

    width: 145px;
    height: 145px;

    display: grid;
    place-items: center;

    color: var(--accent);

    filter: drop-shadow(
        0 0 20px rgba(80, 222, 199, 0.3)
    );
}

.fingerprint-art svg {
    width: 100%;
    height: 100%;
}

.art-caption {
    position: absolute;
    bottom: -15px;

    color: #779a9e;

    font-family: monospace;
    font-size: 10px;

    letter-spacing: 2px;
}

/* =====================================
   OVERVIEW
   ===================================== */

.overview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 18px;
}

.overview-subtitle {
    font-size: 10px;
    color: var(--muted);
    letter-spacing: 1px;
}

.summary-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 16px;
}

.summary-card {
    display: flex;
    flex-direction: column;

    min-width: 0;
    gap: 12px;

    padding: 23px;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: var(--radius);

    transition:
        transform 0.25s,
        border-color 0.25s,
        box-shadow 0.25s;
}

.summary-card:hover {
    transform: translateY(-3px);

    border-color: #39756f;

    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.15);
}

.summary-label {
    color: var(--muted);

    font-size: 10px;
    font-weight: 600;

    letter-spacing: 1.3px;
}

.summary-card strong {
    font-size: 18px;
    font-weight: 650;

    overflow-wrap: anywhere;
}

.summary-detail {
    color: var(--accent);
    font-size: 11px;
}

/* =====================================
   RESULTS
   ===================================== */

.results {
    padding-top: 55px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;

    gap: 20px;
    margin-bottom: 25px;
}

.section-heading h2 {
    margin: 8px 0 5px;

    font-size: 29px;
    letter-spacing: -0.5px;
}

.section-heading h2 span {
    color: var(--accent);
}

.section-heading p {
    margin: 0;
    color: var(--muted);

    font-size: 13px;
}

.section-counter {
    color: #6b8298;

    font-family: monospace;
    font-size: 11px;

    letter-spacing: 1.5px;
    white-space: nowrap;
}

/* =====================================
   MODULE CARDS
   ===================================== */

.modules-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 18px;
}

.panel {
    min-width: 0;
    padding: 26px;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: var(--radius);

    transition:
        border-color 0.25s,
        background 0.25s;
}

.panel:hover {
    border-color: #37635f;
    background: var(--surface-hover);
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 14px;
}

.module-heading {
    display: flex;
    align-items: center;
    gap: 14px;
}

.module-icon {
    width: 44px;
    height: 44px;

    display: grid;
    place-items: center;

    flex-shrink: 0;

    color: var(--accent);
    background: var(--accent-dark);

    border-radius: 11px;

    font-size: 24px;
}

.module-number {
    color: var(--muted);

    font-size: 10px;
    letter-spacing: 1.2px;
}

.module-heading h3 {
    margin: 3px 0 0;

    font-size: 18px;
    font-weight: 650;
}

.module-description {
    margin: 18px 0 22px;

    color: var(--muted);

    font-size: 12px;
    line-height: 1.8;
}

.module-status {
    flex-shrink: 0;

    padding: 6px 10px;

    color: #b9c8d8;
    background: #273648;

    border: 1px solid transparent;
    border-radius: 7px;

    font-size: 11px;
}

.module-status.complete {
    color: var(--accent);
    background: var(--accent-dark);

    border-color: #255850;
}

.module-status.error {
    color: var(--warning);
    background: #342a1d;

    border-color: #654c2a;
}

/* =====================================
   DATA TABLES
   ===================================== */

table {
    width: 100%;

    border-collapse: collapse;
    table-layout: fixed;
}

td {
    padding: 14px 6px;

    border-bottom: 1px solid var(--border);

    font-size: 12px;
    vertical-align: top;

    overflow-wrap: anywhere;
}

tr:last-child td {
    border-bottom: none;
}

td:first-child {
    width: 44%;

    color: var(--muted);
}

td:last-child {
    color: var(--text);

    font-family:
        "Cascadia Code",
        Consolas,
        monospace;

    font-size: 11px;
    line-height: 1.8;
}

/* =====================================
   DIGITAL FINGERPRINT
   ===================================== */

.fingerprint-panel {
    grid-column: 1 / -1;
}

.hash-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    gap: 20px;

    margin: 25px 0;
    padding: 26px;

    background: linear-gradient(
        125deg,
        #142f32,
        #101d2a
    );

    border: 1px solid #2d625a;
    border-radius: 12px;
}

.hash-top {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;
}

.hash-label {
    color: #9db9b5;

    font-size: 10px;
    letter-spacing: 1.2px;
}

.hash-algorithm {
    color: var(--accent);

    font-family: monospace;
    font-size: 11px;
}

#hash {
    max-width: 100%;

    color: var(--accent);

    font-family:
        "Cascadia Code",
        Consolas,
        monospace;

    font-size: 15px;
    line-height: 1.9;

    overflow-wrap: anywhere;
    user-select: all;
}

#copy-hash {
    padding: 11px 18px;

    color: var(--accent);
    background: #1c4440;

    border: 1px solid #397e70;
    border-radius: 8px;

    font-size: 12px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s,
        transform 0.2s;
}

#copy-hash:hover:not(:disabled) {
    background: #286056;
    transform: translateY(-1px);
}

#copy-hash:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.fingerprint-note {
    margin: 20px 0 0;

    color: var(--muted);

    font-size: 12px;
    line-height: 1.8;
}

/* =====================================
   PRIVACY NOTICE
   ===================================== */

.privacy-notice {
    display: flex;
    align-items: flex-start;

    gap: 17px;

    margin: 35px 0 65px;
    padding: 23px;

    background: #101b28;

    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.privacy-icon {
    color: var(--accent);
    font-size: 24px;
}

.privacy-notice h3 {
    margin: 0 0 8px;
    font-size: 14px;
}

.privacy-notice p {
    margin: 0;

    color: var(--muted);

    font-size: 12px;
    line-height: 1.9;
}

/* =====================================
   FOOTER
   ===================================== */

.footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 18px;

    padding: 28px 5%;

    border-top: 1px solid var(--border);

    color: #75899e;
    font-size: 11px;
}

.footer-brand {
    color: var(--text);

    font-size: 15px;
    font-weight: 800;
}

.footer-brand span {
    color: var(--accent);
}

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

@media (max-width: 950px) {

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

    .scanner-art {
        display: none;
    }

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

@media (max-width: 700px) {

    .topbar {
        min-height: 68px;
        padding: 0 16px;
    }

    .nav-links {
        display: none;
    }

    .live-indicator {
        font-size: 9px;
    }

    .container {
        padding: 0 15px;
    }

    .hero {
        min-height: auto;
        padding: 55px 0;
    }

    .hero h1 {
        font-size: 37px;
        letter-spacing: -1px;
    }

    .hero-description {
        font-size: 14px;
    }

    .overview-subtitle {
        display: none;
    }

    .summary-grid {
        gap: 10px;
    }

    .summary-card {
        padding: 17px;
    }

    .summary-card strong {
        font-size: 14px;
    }

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

    .panel {
        padding: 19px;
    }

    .fingerprint-panel {
        grid-column: auto;
    }

    .module-status {
        font-size: 10px;
    }

    .section-heading h2 {
        font-size: 25px;
    }

    .section-counter {
        display: none;
    }

    .hash-container {
        padding: 18px;
    }

    #hash {
        font-size: 12px;
    }

    .footer {
        flex-wrap: wrap;
        padding: 25px 16px;
    }
}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
