/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: #1f2937;
    background: #fff;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #e5e7eb;
}

.logo h2 {
    color: #071d49;
    font-weight: 800;
    letter-spacing: -0.5px;
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: #1f2937;
    font-weight: 600;
    transition: .2s ease;
}

nav a:hover {
    color: #071d49;
    transform: translateY(-2px);
}

nav a.active {
    color: #071d49;
    position: relative;
}

nav a.active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -22px;
    height: 3px;
    background: #071d49;
    border-radius: 2px 2px 0 0;
}

.success-message {
    color: #16a34a;
    font-weight: 600;
    margin-top: 10px;
}

/* HERO */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 90px 8%;
    background: linear-gradient(135deg, #eef2f6, #f8fafc);
    gap: 50px;
}

.hero-content {
    flex: 1;
}

.badge {
    display: inline-block;
    padding: 10px 18px;
    background: #dbeafe;
    color: #071d49;
    border-radius: 999px;
    font-size: .9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 3.2rem;
    line-height: 1.1;
    color: #071d49;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero p {
    font-size: 1.15rem;
    color: #4b5563;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn-primary,
.btn-secondary {
    padding: 14px 30px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: .25s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    display: inline-block;
}

.btn-primary {
    background: #071d49;
    color: white;
}

.btn-primary:hover {
    background: #0a2a6b;
    transform: translateY(-2px);
}

.btn-secondary {
    border: 2px solid #071d49;
    color: #071d49;
    background: transparent;
}

.btn-secondary:hover {
    background: #071d49;
    color: white;
    transform: translateY(-2px);
}

/* HERO IMAGE */
.hero-image img {
    width: 260px;
    height: 260px;
    object-fit: cover;
    border-radius: 50%;
    border: 6px solid white;
    box-shadow: 0 12px 35px rgba(0,0,0,.15);
}

/* STATS */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    padding: 40px 8%;
    background: #071d49;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
}

.stat-card h3 {
    font-size: 1.9rem;
    color: #071d49;
    font-weight: 800;
}

/* SECTIONS */
.section {
    padding: 70px 0;
}

.gray {
    background: #f8fafc;
}

.section h2 {
    font-size: 2.4rem;
    margin-bottom: 20px;
    color: #071d49;
    font-weight: 800;
}

/* GRID */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* CARDS */
.card {
    background: white;
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0,0,0,.06);
    transition: .25s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(0,0,0,.08);
}

.card h3 {
    margin-bottom: 10px;
    color: #071d49;
    font-weight: 700;
}

/* CERTIFICATIONS */
.cert {
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
}

/* CONTACT */
.contact-card {
    margin-top: 20px;
    padding: 30px;
    background: white;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0,0,0,.06);
}

.contact-card p {
    margin-bottom: 15px;
}

/* FOOTER */
footer {
    background: #071d49;
    color: white;
    text-align: center;
    padding: 40px;
}

footer h3 {
    margin-bottom: 10px;
    font-weight: 700;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .hero {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .stats {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.4rem;
    }
}

/* ===================================================
   SECURITY CHECK WIDGET
   =================================================== */

.sc-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0 40px;
}

.sc-stat {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.sc-stat h3 {
    color: #071d49;
    font-size: 1.9rem;
    font-weight: 800;
}

.sc-stat p {
    color: #4b5563;
    font-size: .85rem;
    margin-top: 4px;
}

.sc-widget {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 12px 30px rgba(0,0,0,.06);
}

/* START SCREEN */
.sc-meta {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.sc-meta div {
    display: flex;
    flex-direction: column;
}

.sc-meta strong {
    color: #071d49;
    font-size: 1.2rem;
    font-weight: 800;
}

.sc-meta span {
    color: #6b7280;
    font-size: .85rem;
}

/* QUIZ SCREEN */
.sc-progress-track {
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 10px;
}

.sc-progress-fill {
    height: 100%;
    background: #071d49;
    border-radius: 3px;
    width: 0%;
    transition: width .35s ease;
}

.sc-progress-label {
    font-size: .8rem;
    color: #9ca3af;
    font-weight: 600;
    margin-bottom: 30px;
}

.sc-q-cat {
    font-size: .8rem;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: #071d49;
    font-weight: 700;
    margin-bottom: 10px;
}

.sc-q-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: #071d49;
    line-height: 1.35;
    margin-bottom: 26px;
}

.sc-option {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    text-align: left;
    background: #f8fafc;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px 18px;
    margin-bottom: 10px;
    font-family: 'Inter', sans-serif;
    font-size: .98rem;
    font-weight: 600;
    color: #1f2937;
    cursor: pointer;
    transition: .15s ease;
}

.sc-option:hover {
    border-color: #9ca3af;
}

.sc-option.selected {
    border-color: #071d49;
    background: #eef2f6;
}

.sc-option-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    flex-shrink: 0;
    position: relative;
}

.sc-option.selected .sc-option-dot {
    border-color: #071d49;
}

.sc-option.selected .sc-option-dot::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: #071d49;
}

.sc-nav-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
}

/* RESULTS SCREEN */
.sc-grade-block {
    display: flex;
    align-items: center;
    gap: 30px;
}

.sc-gauge-wrap {
    position: relative;
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.sc-gauge-label {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.sc-gauge-grade {
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1;
}

.sc-gauge-sub {
    font-size: .7rem;
    color: #9ca3af;
    margin-top: 4px;
    font-weight: 600;
}

.sc-grade-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.sc-grade-desc {
    font-size: .95rem;
    color: #4b5563;
    line-height: 1.55;
}

.sc-cat-row {
    margin-bottom: 16px;
}

.sc-cat-top {
    display: flex;
    justify-content: space-between;
    font-size: .9rem;
    font-weight: 700;
    color: #071d49;
    margin-bottom: 6px;
}

.sc-cat-track {
    height: 8px;
    background: #f1f5f9;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.sc-cat-fill {
    height: 100%;
    border-radius: 4px;
    width: 0%;
    transition: width .6s ease;
}

.sc-reco-card {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-left: 4px solid #d97706;
    border-radius: 10px;
    padding: 16px 18px;
    margin-bottom: 10px;
}

.sc-reco-card.crit {
    border-left-color: #dc2626;
}

.sc-reco-card.good {
    border-left-color: #16a34a;
}

.sc-reco-card h4 {
    color: #071d49;
    font-size: .95rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.sc-reco-card p {
    color: #4b5563;
    font-size: .9rem;
    line-height: 1.5;
}

.sc-cta {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    margin-top: 20px;
}

.sc-cta h3 {
    color: #071d49;
    margin-bottom: 8px;
}

.sc-cta p {
    color: #4b5563;
    font-size: .9rem;
    margin-bottom: 18px;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
}

.sc-restart {
    display: block;
    margin: 18px auto 0;
    background: none;
    border: none;
    color: #6b7280;
    font-size: .85rem;
    text-decoration: underline;
    cursor: pointer;
}

@media (max-width: 700px) {
    .sc-stats {
        grid-template-columns: 1fr;
    }

    .sc-widget {
        padding: 24px;
    }

    .sc-grade-block {
        flex-direction: column;
        text-align: center;
    }

    .sc-meta {
        flex-wrap: wrap;
        gap: 16px;
    }
}