:root {
    --bg: #050816;
    --bg-2: #0b1022;
    --card: rgba(10, 15, 35, 0.68);
    --text: #eef2ff;
    --muted: rgba(238, 242, 255, 0.72);
    --accent: #7c3aed;
    --accent-2: #2563eb;
    --line: rgba(255, 255, 255, 0.08);
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
    --radius: 24px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(124, 58, 237, 0.28), transparent 32%),
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.22), transparent 28%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

.background {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

.blur {
    position: absolute;
    border-radius: 999px;
    filter: blur(120px);
    opacity: 0.75;
    animation: float 14s ease-in-out infinite;
}

.blur1 {
    width: 360px;
    height: 360px;
    top: -80px;
    left: -120px;
    background: rgba(124, 58, 237, 0.34);
}

.blur2 {
    width: 320px;
    height: 320px;
    bottom: 10%;
    right: -90px;
    background: rgba(37, 99, 235, 0.28);
    animation-delay: 2s;
}

.blur3 {
    width: 260px;
    height: 260px;
    top: 35%;
    left: 55%;
    background: rgba(34, 197, 94, 0.14);
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0) scale(1);
    }
    50% {
        transform: translateY(24px) translateX(18px) scale(1.05);
    }
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(18px);
    background: rgba(5, 8, 22, 0.64);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.navbar {
    max-width: 1180px;
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.logo {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.4px;
    background: linear-gradient(135deg, #fff 0%, #c4b5fd 45%, #93c5fd 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav-links a {
    color: var(--muted);
    font-size: 0.95rem;
    padding: 10px 14px;
    border-radius: 999px;
    transition: 0.25s ease;
}

.nav-links a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
}

.hero {
    max-width: 1180px;
    margin: 0 auto;
    padding: 88px 24px 48px;
    min-height: calc(100vh - 84px);
    display: flex;
    align-items: center;
}

.hero-content {
    width: 100%;
    max-width: 920px;
    padding: 42px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
    box-shadow: var(--shadow);
    backdrop-filter: blur(24px);
    border-radius: 32px;
    position: relative;
    overflow: hidden;
}

.hero-content::before {
    content: "";
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.18), rgba(37, 99, 235, 0.12), transparent 70%);
    pointer-events: none;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #dbeafe;
    font-size: 0.86rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(2.6rem, 6vw, 5rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}

.hero p {
    font-size: clamp(1rem, 2.2vw, 1.18rem);
    color: var(--muted);
    max-width: 62ch;
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
}

.primary-btn,
.secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 22px;
    border-radius: 16px;
    font-weight: 700;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.primary-btn {
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: white;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    box-shadow: 0 16px 40px rgba(37, 99, 235, 0.28);
    cursor: pointer;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 50px rgba(124, 58, 237, 0.38);
}

.secondary-btn {
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.secondary-btn:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    position: relative;
    z-index: 1;
}

.stat-card {
    padding: 18px 18px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.stat-card strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 6px;
}

.stat-card span {
    color: var(--muted);
    font-size: 0.92rem;
}

.section {
    max-width: 1180px;
    margin: 0 auto;
    padding: 32px 24px 10px;
}

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

.section-head h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    margin-bottom: 8px;
    letter-spacing: -0.03em;
}

.section-head p {
    color: var(--muted);
}

.result-card,
.about-card {
    border-radius: 28px;
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow);
    backdrop-filter: blur(22px);
    padding: 24px;
}

.result-card {
    min-height: 180px;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.section h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.test-list {
    list-style: none;
    display: grid;
    gap: 10px;
}

.test-list li,
.about-card p {
    color: var(--muted);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.about-card h3 {
    margin-bottom: 10px;
}

.footer {
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 24px 40px;
    color: rgba(238, 242, 255, 0.55);
    text-align: center;
}

hr {
    border: none;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 18px 0;
}

.progress-container {
    display: none;
    margin-bottom: 20px;
    padding: 18px 20px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 0.95rem;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
}

.progress-fill {
    width: 0%;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #7c3aed, #2563eb);
    transition: width 0.35s ease;
}

@media (max-width: 900px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero {
        padding-top: 56px;
        min-height: auto;
    }

    .hero-content {
        padding: 28px;
    }

    .hero-stats,
    .result-grid,
    .about-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .navbar,
    .hero,
    .section,
    .footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    .nav-links {
        gap: 8px;
        flex-wrap: wrap;
    }

    .nav-links a {
        padding: 8px 10px;
    }

    .hero-content {
        padding: 22px;
        border-radius: 24px;
    }

    .primary-btn,
    .secondary-btn {
        width: 100%;
    }

    .hero-actions {
        flex-direction: column;
    }
        }
