* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
    color: #1f2937;
}

.container {
    width: min(920px, 92%);
    margin: 40px auto;
}

.card {
    background: #ffffff;
    border-radius: 24px;
    padding: 34px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

h1, h2 {
    margin-top: 0;
}

.eyebrow {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4338ca;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.hero-card {
    text-align: center;
    padding: 64px 36px;
}

.hero-card h1 {
    font-size: 42px;
    margin-bottom: 12px;
}

.hero-desc,
.subtext,
.empty-text {
    color: #6b7280;
    line-height: 1.7;
}

.hero-actions {
    margin-top: 28px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    border: none;
    border-radius: 14px;
    padding: 15px 22px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(17, 24, 39, 0.12);
}

.btn.primary {
    background: #111827;
    color: white;
}

label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 14px;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    font-size: 15px;
    margin-bottom: 16px;
    background: #fff;
}

input[type="text"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

hr {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 30px 0;
}

.question-box {
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 22px;
    margin-bottom: 18px;
    background: #fcfcff;
}

.question-number {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    color: #4f46e5;
    margin-bottom: 10px;
    padding: 6px 10px;
    background: #eef2ff;
    border-radius: 999px;
}

.question-text {
    font-size: 19px;
    font-weight: 800;
    margin-bottom: 18px;
    line-height: 1.6;
}

.answer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.ox-card {
    position: relative;
    margin: 0;
}

.ox-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.ox-card span {
    display: block;
    height: 100%;
    padding: 16px 18px;
    border: 2px solid #dbe2ea;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    transition: 0.2s ease;
    background: #fff;
}

.ox-card span:hover {
    border-color: #9ca3af;
}

.ox-card input[type="radio"]:checked + span {
    border-color: #111827;
    background: #111827;
    color: #fff;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.18);
}

.submit-btn {
    width: 100%;
    margin-top: 12px;
    font-size: 16px;
}

.alert {
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 18px;
    font-weight: 700;
}

.alert.error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.result-container,
.home-container {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-card {
    text-align: center;
}

.score-text {
    font-size: 24px;
    margin: 24px 0;
}

@media (max-width: 768px) {
    .container {
        width: 94%;
        margin: 20px auto;
    }

    .card {
        padding: 22px;
        border-radius: 20px;
    }

    .hero-card {
        padding: 48px 22px;
    }

    .hero-card h1 {
        font-size: 32px;
    }

    .info-grid,
    .answer-grid {
        grid-template-columns: 1fr;
    }

    .question-text {
        font-size: 16px;
    }

    .ox-card span {
        font-size: 15px;
    }
}
