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

:root {
    --bg: #0d0b14;
    --surface: #171321;
    --surface-light: #211a30;
    --purple: #a77bff;
    --purple-light: #c5a8ff;
    --text: #f4f0fa;
    --muted: #a49bad;
    --border: rgba(255, 255, 255, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Manrope', sans-serif;
    line-height: 1.6;
}

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

/* HEADER */

.header {
    width: 100%;
    min-height: 76px;
    padding: 18px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    background: rgba(13, 11, 20, 0.9);
}

.logo {
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo span {
    color: var(--purple);
}

.navigation {
    display: flex;
    gap: 32px;
}

.navigation a {
    color: var(--muted);
    font-size: 14px;
    transition: color 0.3s;
}

.navigation a:hover {
    color: var(--purple-light);
}

/* HERO */

.hero {
    min-height: 520px;
    padding: 100px 8%;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 75% 40%, rgba(125, 74, 205, 0.2), transparent 50%),
        var(--bg);
}

.hero-content {
    max-width: 680px;
    position: relative;
    z-index: 1;
}

.eyebrow {
    color: var(--purple-light);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 3px;
}

.hero h1 {
    font-size: clamp(38px, 6vw, 66px);
    line-height: 1.15;
    margin: 22px 0;
    letter-spacing: -2px;
}

.hero h1 span {
    color: var(--purple);
}

.hero p {
    max-width: 510px;
    color: var(--muted);
    font-size: 15px;
    margin-bottom: 32px;
}

.main-button {
    display: inline-block;
    padding: 14px 26px;
    border-radius: 10px;
    background: var(--purple);
    color: #160e25;
    font-size: 14px;
    font-weight: 800;
    transition: 0.3s;
}

.main-button:hover {
    background: var(--purple-light);
    transform: translateY(-3px);
}

/* TESTS */

.tests-section {
    padding: 85px 8%;
}

.section-heading {
    margin-bottom: 38px;
}

.section-heading h2,
.about-section h2 {
    font-size: clamp(25px, 4vw, 36px);
    margin: 12px 0;
    letter-spacing: -1px;
}

.section-heading p {
    color: var(--muted);
    font-size: 14px;
}

.test-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.test-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    transition: 0.3s;
}

.test-card:hover {
    transform: translateY(-5px);
    border-color: rgba(167, 123, 255, 0.5);
    background: var(--surface-light);
}

.card-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(167, 123, 255, 0.13);
    color: var(--purple-light);
    border-radius: 12px;
    font-size: 23px;
    margin-bottom: 22px;
}

.card-category {
    color: var(--purple-light);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
}

.test-card h3 {
    font-size: 20px;
    margin: 9px 0;
}

.test-card p {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 22px;
}

.card-link {
    color: var(--purple-light);
    font-size: 13px;
    font-weight: 700;
}

/* ABOUT */

.about-section {
    margin: 20px 8% 90px;
    padding: 55px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background:
        radial-gradient(ellipse at 90% 20%, rgba(125, 74, 205, 0.16), transparent 55%),
        var(--surface);
}

.about-section p {
    max-width: 600px;
    color: var(--muted);
    font-size: 14px;
}

/* FOOTER */

.footer {
    padding: 30px 8%;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

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

/* MOBILE */

@media (max-width: 650px) {
    .header {
        padding: 16px 5%;
    }

    .logo {
        font-size: 20px;
    }

    .navigation {
        gap: 15px;
    }

    .navigation a {
        font-size: 12px;
    }

    .hero {
        min-height: 460px;
        padding: 75px 6%;
    }

    .hero h1 {
        letter-spacing: -1.5px;
    }

    .hero p {
        font-size: 14px;
    }

    .tests-section {
        padding: 65px 6%;
    }

    .test-grid {
        grid-template-columns: 1fr;
    }

    .test-card {
        padding: 24px;
    }

    .about-section {
        margin: 10px 6% 65px;
        padding: 30px 24px;
    }

    .footer {
        padding: 25px 6%;
        flex-direction: column;
        text-align: center;
    }
}

/* ANIMATION */

.test-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease,
                border-color 0.3s ease, background 0.3s ease;
}

.test-card.visible {
    opacity: 1;
    transform: translateY(0);
}
