@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
    color-scheme: dark;
    --bg: radial-gradient(circle at 20% 20%, #1f2d4f, #081224 65%);
    --panel: rgba(7, 15, 26, 0.75);
    --accent: #50f2c2;
    --accent-soft: rgba(80, 242, 194, 0.15);
    --text: #f5f8ff;
    --muted: #9da8c7;
    --mono: 'IBM Plex Mono', monospace;
    --sans: 'Space Grotesk', system-ui;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--sans);
    background-image: var(--bg);
    color: var(--text);
    padding: 2rem clamp(1rem, 4vw, 4rem) 3rem;
}

.page {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    align-items: end;
}

.hero h1 {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    margin: 0;
    line-height: 1.1;
}

.hero p {
    margin: 0;
    color: var(--muted);
}

.cta-button {
    justify-self: start;
    background: var(--accent);
    color: #04151f;
    border: none;
    font-size: 1rem;
    padding: 0.9rem 1.6rem;
    border-radius: 999px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: transform 180ms ease, box-shadow 180ms ease;
    cursor: pointer;
}

.cta-button[disabled] {
    opacity: 0.5;
    cursor: progress;
}

.cta-button:not([disabled]):hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(80, 242, 194, 0.45);
}

.hash-panel {
    background: var(--panel);
    border: 1px solid var(--accent-soft);
    border-radius: 1.2rem;
    padding: 1.5rem;
    display: grid;
    gap: 0.5rem;
}

.hash-panel h2 {
    margin: 0;
    font-size: 1rem;
    letter-spacing: 0.2em;
    color: var(--muted);
}

.hash-panel .hash {
    font-family: var(--mono);
    font-size: clamp(1.1rem, 3vw, 1.6rem);
    word-break: break-all;
}

.hash-panel .status {
    color: var(--accent);
    font-size: 0.9rem;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.panel {
    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.1rem;
    padding: 1.5rem;
    backdrop-filter: blur(16px);
}

.panel h3 {
    margin-top: 0;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-size: 0.95rem;
    color: var(--muted);
}

.panel table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--mono);
    font-size: 0.85rem;
}

.panel th,
.panel td {
    padding: 0.4rem 0.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.panel th {
    text-align: left;
    color: var(--muted);
    font-weight: 500;
}

.stat-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.stat-list li {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 0.6rem;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.stat-list span {
    font-size: 0.75rem;
    color: var(--muted);
}

.stat-list strong {
    font-family: var(--mono);
    font-size: 1rem;
}

.bucket-chart {
    display: flex;
    gap: 0.2rem;
    align-items: flex-end;
    height: 160px;
}

.bucket-chart .bar {
    flex: 1;
    background: var(--accent);
    border-radius: 0.25rem 0.25rem 0 0;
    opacity: 0.65;
}

.hint {
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 0.75rem;
}

.detection-row {
    display: grid;
    grid-template-columns: 1.2fr auto auto;
    gap: 0.4rem 0.8rem;
    align-items: center;
    padding: 0.75rem 0.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.detection-row:last-child {
    border-bottom: none;
}

.detection-label {
    text-transform: capitalize;
    letter-spacing: 0.04em;
}

.detection-confidence {
    font-family: var(--mono);
    color: var(--muted);
    text-align: right;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.badge-likely {
    background: rgba(255, 99, 132, 0.15);
    color: #ff9cab;
    border-color: rgba(255, 99, 132, 0.4);
}

.badge-possible {
    background: rgba(255, 206, 86, 0.15);
    color: #ffd66b;
    border-color: rgba(255, 206, 86, 0.4);
}

.badge-unlikely {
    background: rgba(80, 242, 194, 0.15);
    color: #50f2c2;
    border-color: rgba(80, 242, 194, 0.4);
}

.badge-unknown {
    background: rgba(157, 168, 199, 0.12);
    color: #d1d9f5;
    border-color: rgba(157, 168, 199, 0.3);
}

.badge-enabled {
    background: rgba(80, 242, 194, 0.12);
    color: #8cf8d9;
    border-color: rgba(80, 242, 194, 0.4);
}

.badge-default {
    background: rgba(157, 168, 199, 0.12);
    color: #d1d9f5;
    border-color: rgba(157, 168, 199, 0.3);
}

footer {
    font-size: 0.85rem;
    color: var(--muted);
}

@media (max-width: 640px) {
    body {
        padding: 1.5rem;
    }

    .panel table {
        font-size: 0.75rem;
    }
}