:root {
    --bg: #080d14;
    --panel: #101827;
    --text: #f4f7fb;
    --muted: #aeb8c7;
    --blue: #2ea8ff;
    --blue2: #6bd6ff;
    --green: #42f5a7;
    --yellow: #ffd166;
    --red: #ff6b6b;
    --line: rgba(255, 255, 255, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(46, 168, 255, 0.25), transparent 35%),
        radial-gradient(circle at bottom right, rgba(107, 214, 255, 0.12), transparent 35%),
        var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a {
    color: inherit;
}

.wrap {
    width: min(1120px, 92%);
    margin: auto;
}

header {
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    background: rgba(8, 13, 20, 0.72);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 20;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.brand-block {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
}

.site-logo {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    object-fit: cover;
    filter: drop-shadow(0 0 18px rgba(46, 168, 255, 0.35));
}

.brand-title {
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 20px;
}

.tag {
    color: var(--muted);
    font-size: 14px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    color: var(--muted);
    font-weight: 700;
    font-size: 14px;
}

.nav-links a {
    text-decoration: none;
}

.nav-links a:hover {
    color: var(--blue2);
}

.analyzer-page {
    padding: 44px 0 72px;
    display: grid;
    gap: 18px;
}

.label {
    color: var(--blue2);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 800;
}

.hero-panel,
.analyzer-panel,
.results-panel,
.help-panel {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 26px;
}

h1 {
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.05;
    margin: 10px 0 16px;
    letter-spacing: -0.03em;
}

h2 {
    margin: 0 0 10px;
    font-size: clamp(26px, 3.8vw, 40px);
    letter-spacing: -0.02em;
}

h3 {
    margin: 0 0 8px;
    font-size: 22px;
}

.lead {
    font-size: clamp(17px, 2vw, 21px);
    color: var(--muted);
    max-width: 860px;
    margin: 0 0 18px;
}

.hero-actions {
    margin-top: 8px;
}

.privacy-note {
    color: var(--muted);
    margin: 0 0 14px;
}

.input-label {
    display: block;
    font-weight: 700;
    margin-bottom: 10px;
}

.input-helper {
    margin: -2px 0 10px;
    color: var(--muted);
    font-size: 14px;
}

.email-input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    padding: 14px;
    font: inherit;
    resize: vertical;
    min-height: 240px;
}

.actions-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    cursor: pointer;
}

.btn.primary {
    background: linear-gradient(135deg, var(--blue), var(--blue2));
    color: #04101d;
    border: none;
}

.btn:focus-visible,
.email-input:focus-visible,
details summary:focus-visible {
    outline: 2px solid var(--blue2);
    outline-offset: 3px;
}

.validation-message {
    min-height: 22px;
    margin: 10px 0 0;
    color: var(--muted);
}

.validation-message.error {
    color: #ffb4a8;
}

.is-hidden {
    display: none;
}

.score-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.score-row h2 {
    margin: 4px 0 0;
}

.result-caution {
    margin: 0 0 14px;
    color: #ffdca3;
    font-weight: 700;
}

.risk-badge {
    border-radius: 999px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 12px;
}

.risk-low {
    color: #aaf5ce;
    background: rgba(66, 245, 167, 0.14);
    border-color: rgba(66, 245, 167, 0.36);
}

.risk-medium {
    color: #ffe8a6;
    background: rgba(255, 209, 102, 0.16);
    border-color: rgba(255, 209, 102, 0.38);
}

.risk-high {
    color: #ffc2b8;
    background: rgba(255, 107, 107, 0.16);
    border-color: rgba(255, 107, 107, 0.38);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.result-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.04);
}

.result-card ul {
    margin: 0;
    padding-left: 20px;
    color: var(--muted);
}

.result-card li + li {
    margin-top: 8px;
}

details summary {
    cursor: pointer;
    font-weight: 800;
    color: var(--blue2);
}

.help-content {
    margin-top: 14px;
    color: var(--muted);
}

.help-content h3 {
    margin-top: 14px;
    margin-bottom: 4px;
    font-size: 18px;
    color: var(--text);
}

.help-content p {
    margin: 0;
}

footer {
    padding: 36px 0;
    color: var(--muted);
    border-top: 1px solid var(--line);
    font-size: 14px;
    text-align: center;
}

footer a {
    color: var(--blue2);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .results-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: flex !important;
        width: 100%;
        justify-content: flex-start;
        gap: 10px 14px;
    }

    .nav-links span {
        display: none;
    }
}

@media (max-width: 520px) {
    .actions-row {
        display: grid;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}
