:root {
    --accent: #2563eb;
    --accent-dark: #1d4ed8;
    --accent-soft: #eff6ff;
    --success: #047857;
    --warning: #b45309;
    --danger: #b91c1c;
    --ink: #111827;
    --text: #374151;
    --muted: #64748b;
    --line: #e2e8f0;
    --surface: #ffffff;
    --canvas: #f8fafc;
    --radius: 18px;
    --shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--canvas);
    color: var(--text);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.7;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent-dark);
}

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

img {
    height: auto;
    max-width: 100%;
}

.site-header {
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--line);
}

.nav-shell {
    align-items: center;
    display: flex;
    gap: 1.5rem;
    margin: 0 auto;
    max-width: 1160px;
    min-height: 76px;
    padding: 0 24px;
}

.brand {
    align-items: center;
    color: var(--ink);
    display: inline-flex;
    font-size: 1.05rem;
    font-weight: 800;
    gap: 0.7rem;
    margin-right: auto;
    text-decoration: none;
}

.brand img {
    border-radius: 9px;
    height: 34px;
    width: 34px;
}

.primary-nav {
    align-items: center;
    display: flex;
    gap: 1.25rem;
}

.primary-nav a {
    color: #475569;
    font-size: 0.92rem;
    font-weight: 650;
    text-decoration: none;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
    color: var(--accent);
}

.button {
    align-items: center;
    background: var(--accent);
    border: 0;
    border-radius: 999px;
    color: white;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 750;
    gap: 0.5rem;
    justify-content: center;
    line-height: 1.2;
    padding: 0.85rem 1.25rem;
    text-decoration: none;
}

.button:hover {
    background: var(--accent-dark);
    color: white;
}

.button.secondary {
    background: white;
    border: 1px solid #cbd5e1;
    color: var(--ink);
}

.button.secondary:hover {
    background: #f1f5f9;
    color: var(--ink);
}

.page-hero {
    background:
        radial-gradient(circle at 12% 15%, rgba(37, 99, 235, 0.13), transparent 30%),
        radial-gradient(circle at 87% 10%, rgba(16, 185, 129, 0.1), transparent 26%),
        white;
    border-bottom: 1px solid var(--line);
}

.hero-shell {
    margin: 0 auto;
    max-width: 960px;
    padding: 58px 24px 62px;
    text-align: center;
}

.breadcrumbs {
    color: var(--muted);
    font-size: 0.86rem;
    margin-bottom: 1.5rem;
}

.breadcrumbs a {
    color: var(--muted);
    text-decoration: none;
}

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

.eyebrow {
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.13em;
    margin: 0 0 0.8rem;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    color: var(--ink);
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.35rem, 6vw, 4.15rem);
    letter-spacing: -0.045em;
    margin: 0 auto 1.25rem;
    max-width: 900px;
}

.hero-lede {
    color: #475569;
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    margin: 0 auto;
    max-width: 760px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.75rem;
}

.content-shell {
    margin: 0 auto;
    max-width: 1160px;
    padding: 54px 24px 76px;
}

.article-layout {
    align-items: start;
    display: grid;
    gap: 34px;
    grid-template-columns: minmax(0, 1fr) 270px;
}

.article {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    min-width: 0;
    padding: clamp(25px, 5vw, 54px);
}

.article > :first-child {
    margin-top: 0;
}

.article h2 {
    font-size: clamp(1.65rem, 3vw, 2.05rem);
    letter-spacing: -0.025em;
    margin: 3rem 0 1rem;
    scroll-margin-top: 24px;
}

.article h3 {
    font-size: 1.25rem;
    margin: 2rem 0 0.65rem;
}

.article p,
.article li {
    font-size: 1.04rem;
}

.article li + li {
    margin-top: 0.6rem;
}

.article code {
    background: #f1f5f9;
    border-radius: 5px;
    overflow-wrap: anywhere;
    padding: 0.14rem 0.35rem;
}

.toc {
    background: white;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1.25rem;
    position: sticky;
    top: 18px;
}

.toc h2 {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    margin: 0 0 0.85rem;
    text-transform: uppercase;
}

.toc ol {
    margin: 0;
    padding-left: 1.25rem;
}

.toc li + li {
    margin-top: 0.55rem;
}

.toc a {
    color: #475569;
    font-size: 0.91rem;
    text-decoration: none;
}

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

.callout {
    background: var(--accent-soft);
    border: 1px solid #bfdbfe;
    border-left: 5px solid var(--accent);
    border-radius: 12px;
    margin: 1.75rem 0;
    padding: 1.1rem 1.25rem;
}

.callout.warning {
    background: #fffbeb;
    border-color: #fde68a;
    border-left-color: #f59e0b;
}

.callout.danger {
    background: #fef2f2;
    border-color: #fecaca;
    border-left-color: #ef4444;
}

.callout p:first-child {
    margin-top: 0;
}

.callout p:last-child {
    margin-bottom: 0;
}

.checklist,
.signal-grid,
.related-grid,
.stats-grid {
    display: grid;
    gap: 1rem;
}

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

.check-card,
.signal-card,
.related-card,
.stat-card {
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1.25rem;
}

.check-card h3,
.signal-card h3,
.related-card h3 {
    font-size: 1.05rem;
    margin: 0 0 0.45rem;
}

.check-card p,
.signal-card p,
.related-card p {
    color: #526075;
    font-size: 0.94rem;
    margin: 0;
}

.related-card {
    color: inherit;
    display: block;
    text-decoration: none;
}

.related-card:hover {
    background: white;
    border-color: #93c5fd;
}

.related-card span {
    color: var(--accent);
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 750;
    margin-top: 0.8rem;
}

.stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 1.75rem 0;
}

.stat-card {
    background: white;
    text-align: center;
}

.stat-number {
    color: var(--accent-dark);
    display: block;
    font-size: clamp(1.65rem, 4vw, 2.35rem);
    font-weight: 850;
    letter-spacing: -0.035em;
    line-height: 1.1;
}

.stat-label {
    color: var(--muted);
    display: block;
    font-size: 0.84rem;
    line-height: 1.35;
    margin-top: 0.5rem;
}

.table-wrap {
    margin: 1.5rem 0;
    overflow-x: auto;
}

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

th,
td {
    border-bottom: 1px solid var(--line);
    padding: 0.8rem 0.7rem;
    text-align: left;
}

th {
    background: #f8fafc;
    color: var(--ink);
    font-size: 0.86rem;
}

td {
    font-size: 0.95rem;
}

.checker-panel {
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin: -28px auto 48px;
    max-width: 820px;
    padding: clamp(22px, 4vw, 34px);
    position: relative;
}

.checker-panel label {
    color: var(--ink);
    display: block;
    font-weight: 750;
    margin-bottom: 0.55rem;
}

.checker-row {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: minmax(0, 1fr) auto;
}

.checker-row input {
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    font: inherit;
    min-width: 0;
    padding: 0.9rem 1rem;
}

.checker-row input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    outline: none;
}

.checker-help {
    color: var(--muted);
    font-size: 0.83rem;
    margin: 0.65rem 0 0;
}

.checker-error {
    color: var(--danger);
    font-size: 0.92rem;
    margin: 0.75rem 0 0;
}

.scan-result {
    border: 1px solid var(--line);
    border-radius: 14px;
    margin-top: 1.25rem;
    padding: 1.25rem;
}

.scan-result[hidden] {
    display: none;
}

.scan-result-header {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.scan-url {
    color: var(--ink);
    font-weight: 750;
    overflow-wrap: anywhere;
}

.verdict {
    border-radius: 999px;
    flex: 0 0 auto;
    font-size: 0.75rem;
    font-weight: 850;
    padding: 0.3rem 0.7rem;
    text-transform: uppercase;
}

.verdict.safe { background: #d1fae5; color: #065f46; }
.verdict.suspicious { background: #fef3c7; color: #92400e; }
.verdict.dangerous { background: #fee2e2; color: #991b1b; }
.verdict.unknown,
.verdict.error { background: #e2e8f0; color: #475569; }

.scan-meta {
    color: #526075;
    font-size: 0.92rem;
    margin: 0.85rem 0 0;
}

.scan-reasons {
    margin-bottom: 0;
}

.byline {
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 1.15rem;
}

.page-cta {
    background: #0f172a;
    border-radius: var(--radius);
    color: #e2e8f0;
    margin-top: 3rem;
    padding: clamp(24px, 5vw, 38px);
    text-align: center;
}

.page-cta h2 {
    color: white;
    margin: 0 0 0.7rem;
}

.page-cta p {
    margin: 0 auto 1.25rem;
    max-width: 650px;
}

.site-footer {
    background: white;
    border-top: 1px solid var(--line);
    padding: 34px 24px;
}

.footer-shell {
    align-items: center;
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 0.88rem;
    gap: 1rem 1.5rem;
    justify-content: center;
    margin: 0 auto;
    max-width: 1100px;
    text-align: center;
}

.footer-shell a {
    color: #526075;
    text-decoration: none;
}

.footer-shell a:hover {
    color: var(--accent);
}

@media (max-width: 880px) {
    .primary-nav {
        display: none;
    }

    .article-layout {
        grid-template-columns: 1fr;
    }

    .toc {
        position: static;
    }
}

@media (max-width: 680px) {
    .nav-shell {
        min-height: 68px;
        padding: 0 16px;
    }

    .nav-shell > .button {
        font-size: 0.82rem;
        padding: 0.72rem 0.9rem;
    }

    .brand {
        font-size: 0.94rem;
    }

    .brand img {
        height: 30px;
        width: 30px;
    }

    .hero-shell {
        padding: 44px 18px 50px;
    }

    .content-shell {
        padding: 36px 16px 54px;
    }

    .article {
        border-radius: 14px;
        padding: 24px 20px;
    }

    .checklist,
    .signal-grid,
    .related-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .checker-panel {
        border-radius: 14px;
        margin: -22px 16px 36px;
    }

    .checker-row {
        grid-template-columns: 1fr;
    }

    .scan-result-header {
        flex-direction: column;
    }
}

@media (max-width: 420px) {
    .brand {
        font-size: 0;
        gap: 0;
    }

    .nav-shell > .button {
        font-size: 0.78rem;
        padding: 0.68rem 0.82rem;
    }
}
