* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #fbfdff;
    color: #25324c;
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    -webkit-font-smoothing: antialiased;
}

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


/* HEADER */

.site-header {
    width: min(1120px, calc(100% - 48px));
    min-height: 82px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo img {
    display: block;
    width: 138px;
    height: auto;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
    color: #53627e;
    font-size: 14px;
    font-weight: 700;
}

.main-nav a {
    transition: color .2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: #3169ed;
}

.nav-play {
    padding: 12px 20px;
    border-radius: 11px;
    background: #3169ed;
    color: #fff !important;
    box-shadow: 0 7px 18px rgba(49, 105, 237, .18);
}

.nav-play span,
.primary-button span,
.secondary-button span,
.cta-button span {
    margin-left: 5px;
}


/* COMMON */

.eyebrow {
    display: inline-block;
    color: #3169ed;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .13em;
}

.section-heading h2,
.principles-copy h2,
.team-copy h2 {
    margin: 11px 0 12px;
    color: #17233f;
    font-size: clamp(32px, 4vw, 45px);
    line-height: 1.04;
    letter-spacing: -.04em;
}

.section-heading p {
    max-width: 550px;
    margin: 0;
    color: #697892;
    font-size: 17px;
    line-height: 1.6;
}


/* HERO */

.about-hero {
    width: min(1080px, calc(100% - 48px));
    min-height: 530px;
    margin: 12px auto 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
}

.about-hero-copy h1 {
    margin: 14px 0 17px;
    color: #17233f;
    font-size: clamp(52px, 6vw, 72px);
    line-height: .96;
    letter-spacing: -.055em;
    font-weight: 850;
}

.about-hero-copy h1 span {
    color: #3169ed;
}

.about-hero-copy > p {
    max-width: 520px;
    margin: 0 0 26px;
    color: #697892;
    font-size: 18px;
    line-height: 1.6;
}

.primary-button,
.secondary-button,
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
}

.primary-button {
    padding: 14px 21px;
    border-radius: 11px;
    background: #3169ed;
    color: #fff;
    box-shadow: 0 9px 22px rgba(49, 105, 237, .2);
}


/* HERO GAME ILLUSTRATION */

.about-illustration {
    position: relative;
    height: 410px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-window {
    position: relative;
    z-index: 3;
    width: 370px;
    border: 1px solid #dce7f5;
    border-radius: 22px;
    background: #fff;
    box-shadow:
        0 25px 55px rgba(44, 74, 120, .13),
        0 4px 10px rgba(44, 74, 120, .05);
    transform: rotate(-2deg);
}

.game-window-top {
    height: 38px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid #edf2f8;
}

.game-window-top span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #dbe5f2;
}

.game-content {
    padding: 30px 27px 27px;
}

.game-label {
    color: #3169ed;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .13em;
}

.game-question {
    margin: 10px 0 24px;
    color: #17233f;
    font-size: 25px;
    font-weight: 800;
}

.letter-row {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.letter-row span {
    width: 34px;
    height: 38px;
    border: 1px solid #dce6f3;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fbff;
    color: #25324c;
    font-size: 16px;
    font-weight: 800;
}

.game-bottom {
    margin-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.timer,
.score {
    font-size: 13px;
    font-weight: 800;
}

.timer {
    color: #697892;
}

.timer-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 5px;
    border-radius: 50%;
    background: #3169ed;
}

.score {
    color: #2baa68;
}

.floating-card {
    position: absolute;
    z-index: 5;
    padding: 10px 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #e0e9f5;
    border-radius: 12px;
    background: #fff;
    color: #53627e;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 10px 22px rgba(44, 74, 120, .1);
}

.card-one {
    top: 54px;
    left: 2px;
    transform: rotate(-7deg);
}

.card-two {
    top: 38px;
    right: 5px;
    transform: rotate(7deg);
}

.card-three {
    right: 1px;
    bottom: 57px;
    transform: rotate(-5deg);
}

.mini-icon {
    width: 27px;
    height: 27px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 850;
}

.mini-icon.blue {
    background: #e7f0ff;
    color: #3169ed;
}

.mini-icon.yellow {
    background: #fff2bd;
    color: #d29c00;
}

.mini-icon.green {
    background: #e1f7e9;
    color: #2da765;
}

.orbit {
    position: absolute;
    border: 1px dashed #dce8f7;
    border-radius: 50%;
}

.orbit-one {
    width: 440px;
    height: 300px;
    transform: rotate(-13deg);
}

.orbit-two {
    width: 350px;
    height: 390px;
    transform: rotate(22deg);
}


/* INTRO */

.about-section {
    width: min(920px, calc(100% - 48px));
    margin: 65px auto 100px;
}

.intro-section {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 80px;
    align-items: start;
}

.intro-copy {
    padding-top: 4px;
}

.intro-copy p {
    margin: 0 0 17px;
    color: #5d6d88;
    font-size: 16px;
    line-height: 1.7;
}


/* HOW IT WORKS */

.how-section {
    padding: 85px 24px;
    background: #f2f7ff;
}

.centered {
    text-align: center;
}

.centered p {
    margin-left: auto;
    margin-right: auto;
}

.how-grid {
    width: min(930px, 100%);
    margin: 38px auto 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 17px;
}

.how-card {
    position: relative;
    padding: 26px;
    border: 1px solid #e2eaf5;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(35, 67, 112, .035);
}

.how-icon {
    width: 47px;
    height: 47px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 850;
}

.blue-icon {
    background: #e8f1ff;
    color: #3169ed;
}

.yellow-icon {
    background: #fff4c8;
    color: #d79e00;
}

.green-icon {
    background: #e4f8eb;
    color: #2ca967;
}

.how-number {
    position: absolute;
    top: 25px;
    right: 25px;
    color: #dce5f1;
    font-size: 28px;
    font-weight: 850;
}

.how-card h3 {
    margin: 23px 0 8px;
    color: #17233f;
    font-size: 18px;
}

.how-card p {
    margin: 0;
    color: #697892;
    font-size: 14px;
    line-height: 1.6;
}


/* PRINCIPLES */

.principles-section {
    width: min(930px, calc(100% - 48px));
    margin: 105px auto;
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 80px;
    align-items: center;
}

.principles-visual {
    position: relative;
    height: 330px;
}

.principle-center {
    position: absolute;
    top: 92px;
    left: 50%;
    width: 145px;
    height: 145px;
    transform: translateX(-50%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #3169ed;
    color: #fff;
    box-shadow: 0 20px 40px rgba(49, 105, 237, .22);
}

.principle-center span {
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -.05em;
}

.principle-circle {
    position: absolute;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 850;
}

.circle-blue {
    top: 20px;
    left: 30px;
    background: #e6f0ff;
    color: #3169ed;
}

.circle-yellow {
    top: 42px;
    right: 22px;
    background: #fff3c2;
    color: #dda300;
}

.circle-green {
    bottom: 34px;
    left: 72px;
    background: #e2f8ea;
    color: #2aa767;
}

.principle-list {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.principle {
    display: grid;
    grid-template-columns: 43px 1fr;
    gap: 13px;
}

.principle-icon {
    width: 43px;
    height: 43px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: 850;
}

.principle h3 {
    margin: 1px 0 4px;
    color: #17233f;
    font-size: 16px;
}

.principle p {
    margin: 0;
    color: #697892;
    font-size: 13px;
    line-height: 1.55;
}


/* TEAM */

.team-section {
    width: min(930px, calc(100% - 48px));
    margin: 0 auto 95px;
}

.team-card {
    display: grid;
    grid-template-columns: .75fr 1.25fr;
    gap: 60px;
    align-items: center;
    padding: 48px;
    border-radius: 23px;
    background: #fff;
    border: 1px solid #e2eaf5;
    box-shadow: 0 10px 30px rgba(35, 67, 112, .045);
}

.team-illustration {
    display: flex;
    justify-content: center;
}

.team-circle {
    position: relative;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: #edf4ff;
}

.person {
    position: absolute;
    display: block;
    border-radius: 50%;
    background: #3169ed;
}

.person::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -53px;
    width: 70px;
    height: 68px;
    border-radius: 38px 38px 15px 15px;
    background: inherit;
}

.person-one {
    width: 46px;
    height: 46px;
    left: 87px;
    top: 48px;
    background: #3169ed;
}

.person-two {
    width: 38px;
    height: 38px;
    left: 40px;
    top: 82px;
    background: #ffcf32;
}

.person-three {
    width: 38px;
    height: 38px;
    right: 40px;
    top: 82px;
    background: #7a62e7;
}

.team-copy h2 {
    max-width: 460px;
}

.team-copy p {
    max-width: 530px;
    margin: 0 0 13px;
    color: #697892;
    font-size: 15px;
    line-height: 1.65;
}

.secondary-button {
    margin-top: 10px;
    padding: 12px 18px;
    border: 1px solid #d8e4f3;
    border-radius: 10px;
    color: #3169ed;
    background: #f8fbff;
}


/* CTA */

.about-cta {
    width: min(930px, calc(100% - 48px));
    margin: 0 auto 85px;
    padding: 38px 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    border-radius: 22px;
    background: #3169ed;
    color: #fff;
    box-shadow: 0 17px 38px rgba(49, 105, 237, .2);
}

.about-cta .eyebrow {
    color: #bcd2ff;
}

.about-cta h2 {
    margin: 8px 0 6px;
    font-size: 28px;
    letter-spacing: -.035em;
}

.about-cta p {
    margin: 0;
    color: rgba(255,255,255,.82);
    font-size: 14px;
}

.cta-button {
    flex: 0 0 auto;
    padding: 14px 20px;
    border-radius: 11px;
    background: #fff;
    color: #3169ed;
}


/* FOOTER */

.site-footer {
    width: 100%;
    min-height: 78px;
    padding: 18px max(24px, calc((100vw - 1180px) / 2));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: #fff;
    border-top: 1px solid #e6edf5;
    color: #53627e;
    font-size: 14px;
    font-weight: 700;
}

.footer-brand {
    display: flex;
    align-items: center;
    padding-right: 20px;
    border-right: 1px solid #dce4ee;
}

.footer-brand img {
    width: 115px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    padding-right: 20px;
    border-right: 1px solid #dce4ee;
    white-space: nowrap;
}

.footer-links a:hover {
    color: #3169ed;
}

.coffee-link {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.coffee-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffd21a;
}

.social-links {
    display: flex;
    gap: 17px;
    font-size: 25px;
    color: #25324c;
}


/* TABLET */

@media (max-width: 900px) {

    .about-hero {
        grid-template-columns: 1fr .9fr;
        gap: 25px;
    }

    .game-window {
        width: 330px;
    }

    .intro-section,
    .principles-section {
        gap: 45px;
    }

    .team-card {
        gap: 35px;
        padding: 35px;
    }

    .footer-links {
        gap: 14px;
    }
}


/* MOBILE */

@media (max-width: 760px) {

    .site-header {
        width: calc(100% - 32px);
        min-height: 72px;
    }

    .header-logo img {
        width: 126px;
    }

    .main-nav {
        gap: 0;
    }

    .main-nav > a:not(.nav-play) {
        display: none;
    }

    .nav-play {
        padding: 11px 16px;
        font-size: 13px;
    }


    .about-hero {
        width: calc(100% - 32px);
        min-height: 0;
        margin-top: 15px;
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .about-hero-copy {
        padding-top: 20px;
    }

    .about-hero-copy h1 {
        font-size: clamp(46px, 13vw, 62px);
    }

    .about-hero-copy > p {
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
        font-size: 16px;
    }

    .about-illustration {
        width: 100%;
        height: 330px;
        transform: scale(.76);
        transform-origin: center top;
    }


    .about-section {
        width: calc(100% - 32px);
        margin-top: 35px;
        margin-bottom: 70px;
    }

    .intro-section {
        display: flex;
        flex-direction: column;
        gap: 22px;
    }

    .section-heading h2,
    .principles-copy h2,
    .team-copy h2 {
        font-size: 34px;
    }

    .section-heading p {
        font-size: 15px;
    }

    .intro-copy p {
        font-size: 15px;
    }


    .how-section {
        padding: 65px 16px;
    }

    .how-grid {
        grid-template-columns: 1fr;
        max-width: 440px;
    }


    .principles-section {
        width: calc(100% - 32px);
        margin: 75px auto;
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .principles-visual {
        width: 100%;
        height: 270px;
        transform: scale(.82);
    }

    .principles-copy {
        width: 100%;
    }


    .team-section {
        width: calc(100% - 32px);
        margin-bottom: 65px;
    }

    .team-card {
        display: flex;
        flex-direction: column;
        gap: 30px;
        padding: 30px 23px;
        text-align: center;
    }

    .team-copy p {
        margin-left: auto;
        margin-right: auto;
    }


    .about-cta {
        width: calc(100% - 32px);
        margin-bottom: 55px;
        padding: 28px 24px;
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .cta-button {
        width: 100%;
    }


    .site-footer {
        width: 100%;
        min-height: 0;
        padding: 22px 18px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "brand brand"
            "links links"
            "coffee social";
        align-items: center;
        gap: 18px 0;
    }

    .site-footer .footer-brand {
        grid-area: brand;
        width: 100%;
        padding: 0 0 16px;
        justify-content: center;
        border: 0;
        border-bottom: 1px solid #dce4ee;
    }

    .site-footer .footer-links {
        grid-area: links;
        width: 100%;
        padding: 0 0 4px;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px 18px;
        border: 0;
        white-space: normal;
    }

    .site-footer .coffee-link {
        grid-area: coffee;
        justify-self: end;
        padding-right: 18px;
        border-right: 1px solid #dce4ee;
        font-size: 13px;
    }

    .site-footer .social-links {
        grid-area: social;
        justify-self: start;
        gap: 17px;
        font-size: 23px;
    }
}


/* SMALL PHONES */

@media (max-width: 420px) {

    .about-hero {
        width: calc(100% - 22px);
    }

    .about-hero-copy h1 {
        font-size: 43px;
    }

    .about-hero-copy > p {
        font-size: 15px;
    }

    .about-illustration {
        height: 300px;
        transform: scale(.63);
    }

    .about-section,
    .principles-section,
    .team-section,
    .about-cta {
        width: calc(100% - 22px);
    }

    .section-heading h2,
    .principles-copy h2,
    .team-copy h2 {
        font-size: 31px;
    }

    .principles-visual {
        transform: scale(.72);
    }

    .site-footer .footer-links {
        gap: 9px 14px;
        font-size: 13px;
    }

    .site-footer .coffee-link {
        font-size: 12px;
        padding-right: 13px;
    }

    .site-footer .social-links {
        gap: 14px;
        font-size: 21px;
    }
}
