@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&display=swap');

:root {
    --bg: #f5f3ef;
    --ink: #13131b;
    --muted: #74727b;
    --line: #dcd9d3;
    --purple: #b6a0ff;
    --pink: #f2b2d0;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--bg);
    font-family: 'DM Sans', sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

.page-width {
    width: min(1180px, calc(100% - 80px));
    margin: 0 auto;
}

.site-nav {
    width: min(1280px, calc(100% - 80px));
    height: 86px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid var(--line);
}

.brand {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    font-weight: 500;
}

.brand__mark {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border: 1px solid #17161e;
    border-radius: 50%;
    overflow: hidden;
}

.brand__mark img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.site-nav nav {
    display: flex;
    gap: 32px;
    color: #77747f;
    font-size: 11px;
}

.site-nav nav a {
    transition: color .2s ease;
}

.site-nav nav a:hover,
.site-nav nav .is-active {
    color: var(--ink);
}

.nav-cta,
.primary-button {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    border: 1px solid #17161e;
    border-radius: 99px;
    padding: 11px 12px 11px 17px;
    font-size: 11px;
}

.nav-cta span,
.primary-button span {
    display: grid;
    place-items: center;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    color: white;
    background: #17161e;
}

.section-kicker,
.section-label {
    color: #77747f;
    font-size: 10px;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.section-kicker span {
    display: inline-block;
    width: 25px;
    height: 1px;
    margin: 0 9px 3px 0;
    background: #77747f;
}

.catalog-hero {
    min-height: 440px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    padding: 85px 0 68px;
}

.catalog-hero h1 {
    margin: 25px 0 24px;
    font-size: clamp(54px, 8vw, 112px);
    font-weight: 400;
    line-height: .9;
    letter-spacing: -.08em;
}

.catalog-hero h1 em,
.course-cta h2 em {
    font-style: normal;
    color: #8b72e9;
}

.hero-copy {
    width: 320px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.hero-orbit {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 210px;
    height: 210px;
    margin-right: 8%;
    border: 1px solid #d2cbdc;
    border-radius: 50%;
    color: #8b72e9;
    transform: rotate(8deg);
}

.hero-orbit::before {
    content: '';
    position: absolute;
    inset: 17px;
    border: 1px solid #ddd8ea;
    border-radius: 50%;
}

.hero-orbit strong {
    font-size: 51px;
    font-weight: 400;
    letter-spacing: -.09em;
}

.hero-orbit small {
    color: var(--muted);
    font-size: 10px;
    line-height: 1.2;
    text-align: center;
}

.orbit-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #8b72e9;
}

.orbit-dot--one {
    top: 23px;
    right: 27px;
}

.orbit-dot--two {
    bottom: 25px;
    left: 26px;
    background: #e5a3c2;
}

.catalog {
    padding-bottom: 130px;
}

.catalog-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
}

.result-count {
    color: var(--muted);
    font-size: 11px;
}

.filters {
    display: flex;
    gap: 10px;
    padding: 22px 0 38px;
}

.filter {
    border: 1px solid var(--line);
    border-radius: 99px;
    padding: 10px 18px;
    color: var(--muted);
    background: transparent;
    font: inherit;
    font-size: 11px;
    cursor: pointer;
}

.filter.is-active,
.filter:hover {
    border-color: var(--ink);
    color: var(--bg);
    background: var(--ink);
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.course-card {
    min-height: 435px;
    overflow: hidden;
    border-radius: 5px;
    transition: transform .25s ease, box-shadow .25s ease;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 30px rgba(35, 28, 55, .14);
}

.course-card[hidden] {
    display: none;
}

.course-visual {
    position: relative;
    height: 285px;
    overflow: hidden;
}

.course-tag {
    color: rgba(19, 19, 27, .57);
    font-size: 10px;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.course-info {
    display: flex;
    justify-content: space-between;
    min-height: 150px;
    padding: 22px 24px;
}

.course-info h2 {
    margin: 12px 0 0;
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 400;
    line-height: .94;
    letter-spacing: -.065em;
}

.course-arrow {
    display: grid;
    place-items: center;
    align-self: flex-start;
    width: 31px;
    height: 31px;
    border: 1px solid rgba(19, 19, 27, .28);
    border-radius: 50%;
    font-size: 16px;
}

.course-card--violet {
    background: #bcaaff;
}

.course-card--blue {
    background: #9eb3e7;
}

.course-card--peach {
    background: #f0bfad;
}

.course-card--green {
    background: #b7cfad;
}

.course-card--dark {
    color: white;
    background: #292936;
}

.course-card--pink {
    background: #efa9ca;
}
.course-card--red {
    background: #eb4141;
}

.course-card--dark .course-tag {
    color: rgba(255, 255, 255, .56);
}

.course-card--dark .course-arrow {
    border-color: rgba(255, 255, 255, .3);
}

.visual-label {
    position: absolute;
    top: 20px;
    left: 22px;
    color: rgba(19, 19, 27, .58);
    font-size: 10px;
}

.visual-code {
    position: absolute;
    top: 50%;
    left: 50%;
    color: #f4edff;
    font-size: 110px;
    font-weight: 700;
    letter-spacing: -.18em;
    transform: translate(-46%, -50%) rotate(-13deg);
    text-shadow: 8px 9px 0 rgba(110, 81, 185, .45);
}

.visual-circle {
    position: absolute;
    right: -75px;
    bottom: -105px;
    width: 260px;
    height: 260px;
    border: 28px solid rgba(255, 255, 255, .42);
    border-radius: 50%;
}

.visual-bars {
    position: absolute;
    left: 19%;
    bottom: 35px;
    display: flex;
    align-items: end;
    gap: 11px;
    height: 170px;
    transform: rotate(-11deg);
}

.visual-bars i {
    display: block;
    width: 28px;
    height: 75px;
    background: #e9f2f5;
    border-radius: 5px 5px 0 0;
    box-shadow: 4px 4px 0 rgba(74, 101, 177, .24);
}

.visual-bars i:nth-child(2) {
    height: 115px;
}

.visual-bars i:nth-child(3) {
    height: 150px;
}

.visual-bars i:nth-child(4) {
    height: 95px;
}

.visual-shape {
    position: absolute;
    top: 42px;
    left: 25%;
    width: 170px;
    height: 170px;
    border-radius: 50% 0 50% 50%;
    background: #c15c4d;
    transform: rotate(25deg);
}

.visual-shape--small {
    top: 104px;
    left: 52%;
    width: 80px;
    height: 80px;
    background: #fbe0c5;
}

.visual-ai {
    position: absolute;
    top: 49px;
    left: 50%;
    display: grid;
    place-items: center;
    width: 185px;
    height: 185px;
    border: 1px solid rgba(19, 19, 27, .36);
    border-radius: 50%;
    color: #477243;
    font-size: 58px;
    font-weight: 700;
    transform: translateX(-50%) rotate(-8deg);
}

.visual-stack {
    position: absolute;
    top: 48px;
    left: 30%;
    display: flex;
    flex-direction: column;
    gap: 9px;
    transform: rotate(-13deg);
}

.visual-stack b {
    display: grid;
    place-items: center;
    width: 155px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 3px;
    color: white;
    font-size: 21px;
    font-weight: 400;
    background: rgba(255, 255, 255, .08);
}

.visual-stack b:nth-child(2) {
    margin-left: 25px;
    background: #e5a3c2;
    color: #292936;
}

.visual-stack b:nth-child(3) {
    margin-left: 50px;
    background: #9489d1;
}

.visual-python {
    position: absolute;
    top: 52px;
    left: 50%;
    display: grid;
    place-items: center;
    width: 180px;
    height: 180px;
    border: 1px solid rgba(19, 19, 27, .3);
    border-radius: 43% 57% 60% 40%;
    color: #224b70;
    font-size: 70px;
    font-weight: 700;
    transform: translateX(-50%) rotate(9deg);
}

.course-cta {
    margin-bottom: 80px;
    padding: 90px 8%;
    text-align: center;
    border-radius: 5px;
    background: #ded5f9;
}

.course-cta h2 {
    margin: 21px auto 30px;
    font-size: clamp(44px, 6vw, 80px);
    font-weight: 400;
    line-height: .9;
    letter-spacing: -.075em;
}

.course-cta .primary-button {
    border-color: #17161e;
    background: #17161e;
    color: white;
}

.course-cta .primary-button span {
    color: #17161e;
    background: var(--lilac);
}

.site-footer {
    display: flex;
    justify-content: space-between;
    padding: 25px 0 30px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 10px;
}

.site-footer a {
    color: #8b72e9;
}

@media (max-width: 700px) {

    .page-width,
    .site-nav {
        width: calc(100% - 40px);
    }

    .site-nav {
        height: 72px;
    }

    .site-nav nav {
        display: none;
    }

    .nav-cta {
        font-size: 10px;
    }

    .catalog-hero {
        min-height: 590px;
        display: block;
        padding: 100px 0 60px;
    }

    .catalog-hero h1 {
        font-size: clamp(54px, 15vw, 84px);
    }

    .hero-copy {
        width: 290px;
    }

    .hero-orbit {
        width: 160px;
        height: 160px;
        margin: 58px 0 0 auto;
    }

    .hero-orbit strong {
        font-size: 39px;
    }

    .hero-orbit::before {
        inset: 13px;
    }

    .catalog {
        padding-bottom: 85px;
    }

    .filters {
        overflow-x: auto;
        padding-bottom: 25px;
    }

    .filter {
        flex: 0 0 auto;
    }

    .course-grid {
        grid-template-columns: 1fr;
    }

    .course-card {
        min-height: 390px;
    }

    .course-visual {
        height: 250px;
    }

    .course-info {
        min-height: 140px;
    }

    .course-cta {
        margin-bottom: 45px;
        padding: 70px 20px;
    }

    .site-footer {
        display: grid;
        gap: 12px;
    }
}

/* Shared Academy dark theme */
body {
    color: #f4f1fb;
    background: #070811;
}

.site-nav {
    border-color: rgba(244, 241, 251, .14);
}

.brand__mark {
    border-color: rgba(255, 255, 255, .5);
}

.site-nav nav,
.result-count,
.hero-copy,
.section-kicker,
.section-label {
    color: #9291a4;
}

.site-nav nav a:hover,
.site-nav nav .is-active {
    color: #f4f1fb;
}

.nav-cta,
.primary-button {
    border-color: #a45bc6;
}

.nav-cta span,
.primary-button span {
    color: #24142a;
    background: #d898f4;
}

.catalog-hero h1 em,
.course-cta h2 em {
    color: #d898f4;
}

.hero-orbit {
    border-color: rgba(216, 152, 244, .42);
    color: #d898f4;
}

.hero-orbit::before {
    border-color: rgba(216, 152, 244, .2);
}

.catalog-top,
.course-cta,
.site-footer {
    border-color: rgba(244, 241, 251, .14);
}

.filter {
    border-color: rgba(244, 241, 251, .18);
    color: #9291a4;
}

.filter.is-active,
.filter:hover {
    border-color: #d898f4;
    color: #24142a;
    background: #d898f4;
}

.course-cta {
    background: #0d0f1d;
}

.course-cta .primary-button {
    background: #d898f4;
    border-color: #d898f4;
    color: #24142a;
}

.course-cta .primary-button span {
    color: #d898f4;
    background: #24142a;
}

.site-footer {
    color: #9291a4;
}

.site-footer a {
    color: #d898f4;
}