@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --bg: #071426;
    --panel: rgba(12, 30, 51, 0.96);
    --gold: #e8bd45;
    --gold-light: #ffd65a;
    --blue: #61b8f5;
    --green: #42d78a;
    --text: #eef6ff;
    --muted: #b6c7d9;
    --border: rgba(92, 169, 225, 0.24);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--text);
    background: var(--bg);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

.glow {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 18% 8%, rgba(50,155,225,.16), transparent 42%),
        radial-gradient(ellipse at 85% 55%, rgba(58,205,132,.10), transparent 38%),
        linear-gradient(145deg, #071426, #102b48 55%, #06101d);
}

header {
    background: rgba(7,20,37,.97);
    border-bottom: 1px solid var(--border);
}

header > a {
    display: block;
    line-height: 0;
}

header img {
    display: block;
    width: 100%;
    height: clamp(105px, 20vw, 220px);
    max-height: 220px;
    object-fit: cover;
}

nav {
    min-height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 8px;
    font-size: 11px;
    letter-spacing: 1px;
}

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

nav a:hover {
    color: var(--gold-light);
}

nav span {
    color: var(--gold);
    font-size: 8px;
}

nav strong {
    color: var(--green);
}

main {
    width: min(760px, 92%);
    margin: auto;
    padding: 48px 0;
}

.detector {
    padding: 38px;
    text-align: center;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(0,0,0,.25);
}

.scanner-icon {
    color: var(--green);
    font-size: 48px;
    filter: drop-shadow(0 0 14px rgba(66,215,138,.35));
}

.eyebrow {
    margin-top: 10px;
    color: var(--gold);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
}

h1 {
    margin-top: 7px;
    font: 700 clamp(32px, 6vw, 48px)/1.1 'Rajdhani', sans-serif;
    letter-spacing: 2px;
}

h1 span {
    display: block;
    color: var(--gold-light);
}

.intro {
    max-width: 510px;
    margin: 17px auto 24px;
    color: var(--muted);
    font-size: 13px;
}

.scan-status {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--green);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 12px var(--green);
    animation: pulse 1.3s infinite;
}

@keyframes pulse {
    50% { opacity: .35; }
}

.result {
    margin: 25px 0;
    padding: 24px 16px;
    border: 1px solid rgba(66,215,138,.3);
    border-radius: 10px;
    background: rgba(66,215,138,.055);
}

.result-icon {
    font-size: 36px;
}

.result h2 {
    margin: 7px 0;
    color: var(--green);
    font: 700 25px 'Rajdhani', sans-serif;
    letter-spacing: 1px;
}

.result p {
    color: var(--muted);
    font-size: 12px;
}

.result .countdown {
    margin-top: 10px;
    color: var(--gold-light);
    font-weight: 700;
}

.choices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 25px;
}

.choice {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 19px 12px;
    border: 1px solid var(--border);
    border-radius: 9px;
    text-decoration: none;
    background: rgba(7,20,37,.6);
    transition: transform .2s, border-color .2s;
}

.choice:hover {
    transform: translateY(-3px);
    border-color: var(--gold);
}

.choice > span {
    font-size: 30px;
}

.choice strong {
    color: var(--gold-light);
    font: 700 24px 'Rajdhani', sans-serif;
    letter-spacing: 2px;
}

.choice small {
    color: var(--muted);
    font-size: 10px;
}

.manual-note {
    margin-top: 18px;
    color: var(--muted);
    font-size: 10px;
}

.back {
    display: inline-block;
    margin-top: 20px;
    color: var(--muted);
    font-size: 11px;
    text-decoration: none;
}

.back:hover {
    color: var(--gold-light);
}

footer {
    padding: 17px;
    border-top: 1px solid var(--border);
    background: rgba(7,20,37,.88);
    color: #8298ad;
    text-align: center;
    font-size: 9px;
    letter-spacing: 1.5px;
}

@media (max-width: 520px) {
    main {
        padding: 28px 0;
    }

    .detector {
        padding: 25px 17px;
    }

    .choices {
        gap: 9px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}
