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

:root {
    --bg: #f5f7fb;
    --surface: rgba(255, 255, 255, 0.86);
    --surface-solid: #ffffff;
    --text: #172033;
    --muted: #687386;
    --primary: #5b5cf0;
    --primary-dark: #4546d6;
    --border: rgba(23, 32, 51, 0.08);
    --shadow: 0 20px 55px rgba(31, 41, 70, 0.09);
    --radius: 22px;
}

[data-theme="dark"] {
    --bg: #0d1220;
    --surface: rgba(23, 30, 49, 0.86);
    --surface-solid: #171e31;
    --text: #f3f5fb;
    --muted: #9da7bc;
    --primary: #7b7cf7;
    --primary-dark: #6667ea;
    --border: rgba(255, 255, 255, 0.08);
    --shadow: 0 20px 55px rgba(0, 0, 0, 0.25);
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: 'Inter', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

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

.background-shape {
    position: fixed;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .18;
    pointer-events: none;
    z-index: -1;
}

.shape-one {
    top: -180px;
    right: -100px;
    background: #7b7cf7;
}

.shape-two {
    bottom: -220px;
    left: -120px;
    background: #37c6c0;
}

.topbar {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    gap: 12px;
    align-items: center;
}

.brand-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--primary);
    color: #fff;
    font-size: 23px;
    box-shadow: 0 10px 25px rgba(91, 92, 240, .25);
}

.brand strong {
    display: block;
    font-size: 15px;
}

.brand small {
    display: block;
    color: var(--muted);
    margin-top: 3px;
    font-size: 12px;
}

.theme-toggle {
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    font-size: 18px;
    backdrop-filter: blur(14px);
    transition: .2s ease;
}

.theme-toggle:hover {
    transform: translateY(-2px);
    border-color: rgba(91, 92, 240, .3);
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.hero {
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 60px 0 45px;
}

.hero-content {
    max-width: 720px;
}

.eyebrow,
.section-kicker {
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.hero h1 {
    margin-top: 14px;
    font-size: clamp(38px, 6vw, 66px);
    line-height: 1.04;
    letter-spacing: -3px;
}

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

.hero p {
    max-width: 650px;
    margin-top: 20px;
    color: var(--muted);
    line-height: 1.8;
    font-size: 16px;
}

.hero-card {
    min-width: 205px;
    padding: 24px;
    display: flex;
    gap: 14px;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
    backdrop-filter: blur(15px);
}

.hero-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: rgba(91, 92, 240, .12);
    color: var(--primary);
    font-size: 25px;
    font-weight: 800;
}

.hero-card strong,
.hero-card span {
    display: block;
}

.hero-card span {
    color: var(--muted);
    margin-top: 4px;
    font-size: 12px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 20px;
}

.section-heading h2 {
    margin-top: 6px;
    font-size: 27px;
}

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

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

.module-card {
    position: relative;
    min-height: 150px;
    padding: 22px;
    display: flex;
    gap: 17px;
    align-items: flex-start;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 8px 30px rgba(31, 41, 70, .04);
    backdrop-filter: blur(15px);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    overflow: hidden;
}

.module-card::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    right: -50px;
    bottom: -55px;
    border-radius: 50%;
    background: rgba(91, 92, 240, .07);
}

.module-card:hover {
    transform: translateY(-5px);
    border-color: rgba(91, 92, 240, .22);
    box-shadow: var(--shadow);
}

.module-icon {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    display: grid;
    place-items: center;
    border-radius: 17px;
    background: rgba(91, 92, 240, .10);
    font-size: 24px;
}

.module-body h3 {
    font-size: 17px;
    margin-bottom: 8px;
}

.module-body p {
    color: var(--muted);
    line-height: 1.55;
    font-size: 13px;
    max-width: 390px;
}

.module-arrow {
    position: absolute;
    right: 20px;
    bottom: 18px;
    color: var(--primary);
    font-size: 20px;
    font-weight: 700;
}

.info-panel {
    margin: 28px 0 50px;
    padding: 20px 22px;
    display: flex;
    gap: 15px;
    align-items: center;
    border-radius: var(--radius);
    background: var(--surface-solid);
    border: 1px solid var(--border);
}

.info-icon {
    font-size: 23px;
}

.info-panel strong {
    font-size: 14px;
}

.info-panel p {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

footer {
    text-align: center;
    padding: 25px 20px 35px;
    color: var(--muted);
    font-size: 11px;
}

@media (max-width: 760px) {
    .hero {
        flex-direction: column;
        align-items: flex-start;
        padding-top: 35px;
    }

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

    .hero-card {
        width: 100%;
    }

    .section-heading {
        display: block;
    }

    .section-heading p {
        margin-top: 8px;
    }

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

@media (max-width: 430px) {
    .topbar,
    .container {
        width: min(100% - 26px, 1180px);
    }

    .hero {
        padding-top: 25px;
    }

    .module-card {
        padding: 18px;
    }
}
