:root {
    --bg-deep: #141820;
    --bg: #1a1e2a;
    --surface: #212636;
    --surface-2: #162035;
    --surface-3: #1d2a42;
    --border: #1e2d47;
    --border-2: #263a58;
    --text: #b6bfcf;
    --text-muted: #7a8ba0;
    --text-dim: #667890;
    --heading: #dde2ee;
    --heading-2: #f0f3fa;
    --accent: #00d4ff;
    --accent-dim: rgba(0, 212, 255, 0.10);
    --accent-glow: rgba(0, 212, 255, 0.22);
    --accent-2: #ff5e1a;
    --accent-2dim: rgba(255, 94, 26, 0.12);
    --green: #00e88a;
    --red: #ff5252;
    --amber: #ffb547;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    --font-body: 'Open Sans', 'Segoe UI', sans-serif;
    --max: 1240px;
    --radius: 5px;
    --radius-lg: 10px;
    --shadow-sm: 0 2px 14px rgba(0, 0, 0, 0.35);
    --glow: 0 0 20px var(--accent-glow);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg-deep);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.75;
    min-height: 100vh;
    overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--heading-2); text-decoration: underline; }

code {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2px 7px;
    font-family: var(--font-mono);
    font-size: 0.88em;
    color: var(--accent);
    word-break: break-all;
}

#page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#site-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: rgba(20, 24, 32, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-logo-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--heading-2);
}
.site-logo-link:hover { text-decoration: none; }

.site-logo-hex { flex-shrink: 0; }

.site-name {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
    color: var(--heading-2);
}

.primary-nav .menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 6px;
}

.primary-nav .menu a {
    display: inline-block;
    padding: 8px 14px;
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 500;
    border-radius: var(--radius);
    transition: background 0.15s, color 0.15s;
}

.primary-nav .menu a:hover {
    background: var(--accent-dim);
    color: var(--accent);
    text-decoration: none;
}

.primary-nav .menu li.active a {
    color: var(--accent);
    background: var(--accent-dim);
}

.primary-nav .menu li.lang-toggle {
    margin-left: 8px;
    padding-left: 12px;
    border-left: 1px solid var(--border-2);
}

.primary-nav .menu li.lang-toggle a {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.primary-nav .menu li.lang-toggle a:hover {
    color: var(--accent);
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 48px 24px 64px;
    flex: 1;
    width: 100%;
}

.project-header { margin-bottom: 32px; }

.project-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    color: var(--accent);
    text-transform: lowercase;
    margin-bottom: 12px;
}

.project-header h1 {
    margin: 0 0 12px;
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    color: var(--heading-2);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.project-subtitle {
    margin: 0;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.check-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-sm);
}

.check-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--heading);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.check-form .row {
    display: flex;
    gap: 10px;
}

.check-form input[type="text"] {
    flex: 1;
    background: var(--bg-deep);
    border: 1px solid var(--border-2);
    color: var(--heading-2);
    border-radius: var(--radius);
    padding: 12px 14px;
    font-size: 1rem;
    font-family: var(--font-mono);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.check-form input[type="text"]:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}

.check-form button {
    background: var(--accent-dim);
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0 22px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: background 0.15s, box-shadow 0.15s;
}

.check-form button:hover {
    background: var(--accent);
    color: var(--bg-deep);
    box-shadow: var(--glow);
}

.check-form .hint {
    margin: 12px 0 0;
    font-size: 0.82rem;
    color: var(--text-dim);
    font-family: var(--font-mono);
}

.check-form button:disabled {
    opacity: 0.55;
    cursor: wait;
}

.recaptcha-note {
    margin: 10px 0 0;
    font-size: 0.75rem;
    color: var(--text-dim);
    font-family: var(--font-mono);
}
.recaptcha-note a { color: var(--text-muted); }
.recaptcha-note a:hover { color: var(--accent); }

.grecaptcha-badge { visibility: hidden; }

.result {
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 32px;
    border: 1px solid var(--border);
    background: var(--surface);
    border-left: 4px solid var(--border-2);
}

.result-head { margin-bottom: 18px; }

.result h2 {
    margin: 10px 0 0;
    font-size: 1.15rem;
    line-height: 1.45;
    color: var(--heading-2);
    font-weight: 600;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.result.vuln     { border-left-color: var(--red); }
.result.vuln .badge    { background: rgba(255, 82, 82, 0.15); color: var(--red); border: 1px solid var(--red); }

.result.safe     { border-left-color: var(--green); }
.result.safe .badge    { background: rgba(0, 232, 138, 0.12); color: var(--green); border: 1px solid var(--green); }

.result.obscured { border-left-color: var(--amber); }
.result.obscured .badge { background: rgba(255, 181, 71, 0.15); color: var(--amber); border: 1px solid var(--amber); }

.result.error    { border-left-color: var(--text-dim); }
.result.error .badge   { background: rgba(122, 139, 160, 0.15); color: var(--text-muted); border: 1px solid var(--text-dim); }

.details {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 10px 20px;
    margin: 0;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.details dt {
    color: var(--text-dim);
    font-size: 0.82rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-top: 3px;
}

.details dd {
    margin: 0;
    word-break: break-word;
    color: var(--text);
}

.info {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 24px;
}

.info h2 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 1.4rem;
    color: var(--heading-2);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.info h3 {
    margin-top: 24px;
    margin-bottom: 10px;
    font-size: 1rem;
    color: var(--accent);
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.info p { color: var(--text); }

.affected {
    margin: 12px 0 20px;
    padding-left: 22px;
}

.affected li {
    margin-bottom: 6px;
    color: var(--text);
}

.affected strong { color: var(--heading-2); }

.info .disclaimer {
    margin-bottom: 0;
    color: var(--text-muted);
    font-size: 0.92rem;
    border-left: 3px solid var(--accent-2);
    padding-left: 14px;
    background: var(--accent-2dim);
    padding: 12px 14px;
    border-radius: var(--radius);
    margin-top: 20px;
}

#site-footer {
    border-top: 1px solid var(--border);
    background: var(--bg);
    margin-top: auto;
}

.footer-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--text-dim);
}

.footer-brand { color: var(--text-muted); }
.footer-tag   { color: var(--accent); }

@media (max-width: 720px) {
    .header-inner { flex-direction: column; gap: 12px; padding: 12px 16px; }
    .primary-nav .menu { flex-wrap: wrap; justify-content: center; }
    .primary-nav .menu a { padding: 6px 10px; font-size: 0.85rem; }
    .container { padding: 32px 16px 48px; }
    .check-form .row { flex-direction: column; }
    .check-form button { padding: 12px; }
    .details { grid-template-columns: 1fr; gap: 2px; }
    .details dt { padding-top: 12px; }
    .footer-inner { flex-direction: column; gap: 8px; text-align: center; }
}
