:root {
    --home-blue: #3d63ad;
    --home-sky: #66b7e4;
    --home-pink: #f42f91;
    --home-yellow: #f4ff3e;
    --home-ink: #242223;
    --home-purple: #4c4cab;
    --home-muted: #858585;
    --home-pale: #f4f8fc;
    --home-gradient: linear-gradient(115deg, #65b9e5 0%, #3c60ae 100%);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    background: #fff;
    color: var(--home-ink);
    font-family: "Poppins", sans-serif;
}

body * {
    font-family: "Poppins", sans-serif;
}

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

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

.home-nav {
    position: relative;
    z-index: 20;
    height: 101px;
    background: #fff;
}

.home-nav .home-container {
    width: min(1080px, calc(100% - 40px));
}

.nav-content {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 42px;
}

.brand {
    width: 108px;
    margin-right: auto;
}

.brand img {
    display: block;
    width: 100%;
    height: auto;
}

.nav-links,
.nav-actions {
    display: flex;
    align-items: center;
}

.nav-links {
    gap: 38px;
}

.nav-links a {
    color: #596984;
    font-size: 14px;
    font-weight: 400;
    white-space: nowrap;
    transition: color .2s ease;
}

.nav-links a:hover,
.home-footer a:hover {
    color: var(--home-pink);
}

.nav-actions {
    gap: 9px;
}

.home-button {
    display: inline-flex;
    min-height: 27px;
    padding: 5px 20px;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 999px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.home-button:hover {
    transform: translateY(-2px);
}

.button-blue {
    color: #fff;
    background: var(--home-blue);
    box-shadow: 0 5px 15px rgb(61 99 173 / 18%);
}

.button-pink {
    min-height: 42px;
    padding: 10px 19px;
    color: #fff;
    background: var(--home-pink);
    border-radius: 11px;
    font-size: 16px;
    box-shadow: 0 7px 18px rgb(244 47 145 / 20%);
}

.button-outline {
    color: var(--home-purple);
    border-color: #aaa;
    background: #fff;
}

.button-large {
    min-height: 42px;
    padding: 9px 16px;
    border-radius: 11px;
    font-size: 16px;
}

.hero {
    position: relative;
    height: 560px;
    overflow: hidden;
}

.hero-gradient {
    position: absolute;
    z-index: 0;
    top: 0;
    right: 0;
    width: calc(50% + 327px);
    height: 465px;
    overflow: hidden;
    background: var(--home-gradient);
    border-bottom-left-radius: 76% 100%;
}

.hero-gradient::after {
    content: "";
    position: absolute;
    inset: -20%;
    background: radial-gradient(circle at 21% 12%, rgb(255 255 255 / 18%), transparent 36%);
}

.hero-content {
    position: relative;
    z-index: 1;
    height: 100%;
}

.hero-copy {
    position: absolute;
    z-index: 3;
    top: 146px;
    left: 0;
    width: 420px;
}

.hero-copy h1 {
    margin: 0;
    color: var(--home-ink);
    font-size: 39px;
    font-weight: 600;
    letter-spacing: -.04em;
    line-height: 1.45;
}

.hero-copy p {
    margin: 19px 0 13px;
    color: #4f4f4f;
    font-size: 16px;
}

.hero-copy small {
    display: block;
    color: #595959;
    font-size: 13px;
    font-style: italic;
}

.hero-actions {
    display: flex;
    gap: 13px;
    margin-top: 95px;
}

.product-visual {
    position: absolute;
    top: 73px;
    right: -75px;
    width: 515px;
    height: 390px;
    perspective: 1100px;
}

.monitor {
    position: absolute;
    top: 38px;
    right: 68px;
    width: 275px;
    transform: rotateY(-7deg) rotateX(2deg);
    filter: drop-shadow(12px 19px 12px rgb(22 45 83 / 28%));
}

.monitor::after {
    content: "";
    position: absolute;
    right: -8px;
    bottom: 17px;
    width: 8px;
    height: 152px;
    border-radius: 0 7px 7px 0;
    background: #20262f;
}

.monitor-screen {
    height: 203px;
    overflow: hidden;
    border: 10px solid #242629;
    border-radius: 8px;
    background: #f5f8fd;
    box-shadow: inset 0 0 0 2px #050505;
}

.mock-nav {
    height: 25px;
    padding: 5px 9px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 11px;
    background: #fff;
    color: #6e7687;
    font-size: 5px;
}

.mock-nav img {
    width: 45px;
    margin-right: auto;
}

.mock-page {
    padding: 16px 19px;
}

.mock-kicker {
    display: inline-block;
    padding: 3px 8px;
    color: #fff;
    background: linear-gradient(90deg, #54b5dd, #3567b4);
    font-size: 5px;
}

.mock-page > strong {
    display: block;
    width: 150px;
    margin: 7px 0 12px;
    font-size: 11px;
    line-height: 1.2;
}

.mock-subjects {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.mock-subjects > div {
    min-height: 42px;
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 4px 10px rgb(38 62 102 / 15%);
    color: #555;
    font-size: 6px;
    font-weight: 600;
}

.mock-subjects b,
.subjects b {
    display: inline-flex;
    color: #fff;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.mock-subjects b {
    width: 13px;
    height: 13px;
    border-radius: 3px;
    font-size: 8px;
}

.subject-writing { background: #f47d20; }
.subject-english { background: #4d8c7e; }
.subject-maths { background: #5554ad; }
.subject-thinking { background: #ed5483; }
.subject-general { background: #ef3e84; }

.monitor-neck {
    width: 60px;
    height: 51px;
    margin: -1px auto 0;
    background: linear-gradient(90deg, #bfc3c7, #fff 36%, #bbb);
    clip-path: polygon(35% 0, 69% 0, 80% 100%, 20% 100%);
}

.monitor-base {
    width: 139px;
    height: 13px;
    margin: -2px auto 0;
    border-radius: 50%;
    background: linear-gradient(#f6f6f6, #989a9c);
}

.floating-ui {
    position: absolute;
    z-index: 3;
    overflow: hidden;
    padding: 13px;
    border: 1px solid #e3e9f0;
    border-radius: 3px;
    background: rgb(255 255 255 / 96%);
    box-shadow: 0 14px 18px rgb(29 53 90 / 18%);
    transform-style: preserve-3d;
}

.floating-left {
    top: 106px;
    left: 42px;
    width: 185px;
    height: 88px;
    transform: rotateY(18deg) rotateZ(-8deg);
}

.floating-right {
    top: 155px;
    right: 0;
    width: 128px;
    height: 154px;
    transform: rotateY(-15deg) rotateZ(4deg);
}

.floating-bottom {
    top: 316px;
    left: 167px;
    width: 220px;
    height: 67px;
    transform: rotateX(69deg) rotateZ(1deg);
    transform-origin: top;
}

.ui-label {
    display: block;
    margin-bottom: 8px;
    color: #3766b1;
    font-size: 6px;
    font-weight: 700;
}

.ui-row {
    height: 25px;
    margin-top: 5px;
    padding: 5px;
    display: flex;
    align-items: center;
    gap: 7px;
    border: 1px solid #f0b7d1;
    border-radius: 3px;
}

.ui-row b {
    color: #f27821;
    font-size: 7px;
}

.ui-row i,
.floating-ui > i {
    display: block;
    height: 3px;
    border-radius: 3px;
    background: #e4e8ee;
}

.ui-row i { width: 47px; }
.ui-row i:last-child { width: 24px; }
.ui-row.blue { border-color: #a7cce9; }
.ui-row.blue b { color: #5554ad; }

.floating-right strong {
    display: block;
    margin-bottom: 15px;
    color: #3862a8;
    font-size: 8px;
    text-transform: uppercase;
}

.floating-right > i {
    width: 100%;
    margin: 8px 0;
    height: 6px;
    background: #eef3f7;
    border: 1px solid #dbe5ee;
}

.feature-band {
    padding: 34px 0 35px;
    background: var(--home-pale);
}

.feature-panel {
    padding: 24px 14px 18px;
    border: 1px solid #b7b7b7;
    border-radius: 14px;
    background: #fff;
}

.feature-panel h2 {
    margin: 0 0 20px;
    text-align: center;
    font-size: 26px;
    line-height: 1;
}

.feature-pills {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.feature-pills > div {
    min-height: 68px;
    padding: 11px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 12px;
    color: #fff;
    background: #66b9e5;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.25;
}

.pill-icon {
    width: 33px;
    height: 33px;
    flex: 0 0 33px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fff;
}

.pill-icon svg {
    width: 21px;
    fill: none;
    stroke: #4f82d1;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.courses-section {
    padding: 48px 0 55px;
}

.gradient-panel {
    color: #fff;
    background: var(--home-gradient);
    border-radius: 40px;
}

.courses-panel {
    min-height: 535px;
    padding: 27px 22px 42px;
}

.panel-label {
    text-align: center;
    font-size: 13px;
    font-weight: 600;
}

.course-tabs {
    margin: 25px 0 23px;
    display: flex;
    justify-content: flex-end;
    gap: 39px;
    font-size: 19px;
    font-weight: 600;
}

.course-tabs span {
    padding-bottom: 8px;
}

.course-tabs .active {
    border-bottom: 3px solid var(--home-pink);
}

.courses-panel > h2 {
    margin: 0 0 20px;
    color: var(--home-yellow);
    font-size: 39px;
    font-weight: 600;
    text-align: center;
}

.courses-panel > p,
.how-panel > p {
    margin: 0 auto 28px;
    font-size: 12px;
    text-align: center;
}

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

.year-card {
    position: relative;
    min-height: 108px;
    padding: 17px 10px 22px;
    color: #263e75;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 5px 12px rgb(24 55 101 / 12%);
    transition: transform .2s ease, box-shadow .2s ease;
}

.year-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 11px 20px rgb(24 55 101 / 23%);
}

.year-pin {
    position: absolute;
    top: 0;
    left: 50%;
    width: 155px;
    max-width: 70%;
    height: 3px;
    background: #aeb1b3;
    transform: translateX(-50%);
}

.year-card h3 {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 500;
    text-align: center;
}

.subjects {
    display: flex;
    justify-content: center;
    gap: 8px;
    color: #777;
    font-size: 7px;
    white-space: nowrap;
}

.subjects span {
    display: flex;
    align-items: center;
    gap: 2px;
}

.subjects b {
    width: 10px;
    height: 10px;
    font-size: 7px;
}

.card-arrow {
    position: absolute;
    right: 14px;
    bottom: 11px;
    width: 19px;
    height: 19px;
    display: grid;
    place-items: center;
    color: var(--home-pink);
    border: 1px solid var(--home-pink);
    border-radius: 50%;
    font-size: 12px;
    line-height: 1;
}

.light-section {
    background: var(--home-pale);
}

.section-content {
    text-align: center;
}

.outcomes-section {
    padding: 55px 0 112px;
}

.section-label {
    margin-bottom: 25px;
    color: var(--home-pink);
    font-size: 13px;
    font-weight: 600;
}

.section-content > h2,
.how-panel > h2 {
    margin: 0;
    font-size: 39px;
    font-weight: 600;
    letter-spacing: -.025em;
    line-height: 1.25;
}

.section-content > p {
    margin: 33px 0 32px;
    color: #6e6e6e;
    font-size: 12px;
}

.outcome-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.outcome-grid article {
    min-height: 138px;
    padding: 16px 11px;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 7px 15px rgb(47 62 78 / 16%);
}

.outcome-grid h3 {
    margin: 0;
    padding: 0 0 8px;
    color: #263f76;
    border-bottom: 1px solid;
    border-image: linear-gradient(90deg, #4f6ac0, var(--home-pink)) 1;
    font-size: 18px;
    font-weight: 600;
}

.outcome-grid p {
    margin: 12px 0 0;
    color: #969696;
    font-size: 12px;
    line-height: 1.55;
}

.how-section {
    padding: 32px 0 37px;
}

.how-panel {
    min-height: 533px;
    padding: 47px 33px 38px;
    text-align: center;
}

.how-panel > h2 {
    margin-top: 27px;
    color: var(--home-yellow);
}

.how-panel > p {
    margin-top: 39px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 31px;
    margin-top: 52px;
}

.steps-grid article {
    min-height: 199px;
    padding: 23px 24px;
    color: #969696;
    border-radius: 11px;
    background: rgb(255 255 255 / 88%);
    box-shadow: 0 8px 20px rgb(30 62 112 / 20%);
}

.steps-grid h3 {
    margin: 0;
    padding: 0 0 15px;
    color: var(--home-purple);
    border-bottom: 1px solid #4e6fc1;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.2;
}

.steps-grid p {
    margin: 19px 0 0;
    font-size: 12px;
    line-height: 1.55;
}

.learning-section {
    padding: 54px 0 100px;
}

.learning-section .section-content > p {
    margin-bottom: 49px;
}

.learning-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 19px 17px;
    text-align: left;
}

.learning-grid article {
    min-height: 254px;
    padding: 24px 18px 19px;
    border-radius: 12px;
    background: #fff;
}

.learning-icon {
    display: block;
    height: 29px;
    color: #f2a7cb;
    font-size: 22px;
    font-weight: 600;
    line-height: 1;
}

.learning-icon.target,
.learning-icon.rocket {
    color: var(--home-pink);
}

.learning-icon.shield {
    color: #55a8ff;
}

.learning-icon.camera {
    color: #51515a;
}

.learning-grid h3 {
    margin: 4px 0 27px;
    color: var(--home-purple);
    font-size: 19px;
    font-weight: 600;
    line-height: 1.2;
}

.learning-grid p {
    margin: 0;
    color: #979797;
    font-size: 11px;
    line-height: 1.55;
}

.home-footer {
    min-height: 79px;
    color: #626262;
    background: #f7f8fa;
}

.footer-content {
    min-height: 79px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.footer-content p {
    margin: 0;
    font-size: 14px;
}

.footer-content > div {
    display: flex;
    align-items: center;
    gap: 29px;
}

.footer-content a {
    color: #64718b;
    font-size: 13px;
}

.footer-content .footer-signup {
    padding: 4px 16px;
    color: var(--home-purple);
    border: 1px solid #aaa;
    border-radius: 999px;
}

@media (max-width: 840px) {
    .home-nav {
        height: auto;
        padding: 18px 0;
    }

    .nav-content {
        flex-wrap: wrap;
    }

    .nav-links {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 20px;
    }

    .hero {
        height: 740px;
    }

    .hero-gradient {
        top: 310px;
        width: 100%;
        height: 430px;
        border-radius: 42% 42% 0 0 / 20% 20% 0 0;
    }

    .hero-copy {
        top: 60px;
        width: 100%;
        text-align: center;
    }

    .hero-copy h1 {
        font-size: 35px;
        line-height: 1.25;
    }

    .hero-actions {
        justify-content: center;
        margin-top: 30px;
    }

    .product-visual {
        top: 360px;
        left: 50%;
        right: auto;
        transform: translateX(-50%) scale(.9);
        transform-origin: top center;
    }

    .feature-pills {
        grid-template-columns: 1fr;
    }

    .year-grid,
    .learning-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .outcome-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-grid {
        gap: 14px;
    }
}

@media (max-width: 600px) {
    .home-container {
        width: min(100% - 28px, 826px);
    }

    .nav-content {
        gap: 14px;
    }

    .brand {
        width: 95px;
    }

    .nav-links {
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 3px;
    }

    .nav-actions .home-button {
        padding: 5px 12px;
    }

    .hero {
        height: 675px;
    }

    .hero-copy {
        top: 45px;
    }

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

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

    .hero-gradient {
        top: 300px;
        height: 375px;
    }

    .product-visual {
        top: 335px;
        transform: translateX(-50%) scale(.68);
    }

    .feature-panel h2 {
        font-size: 22px;
    }

    .feature-pills > div {
        font-size: 14px;
    }

    .courses-panel,
    .how-panel {
        padding: 32px 16px;
        border-radius: 27px;
    }

    .course-tabs {
        justify-content: center;
        gap: 25px;
        font-size: 15px;
    }

    .courses-panel > h2,
    .section-content > h2,
    .how-panel > h2 {
        font-size: 29px;
    }

    .year-grid,
    .learning-grid,
    .steps-grid {
        grid-template-columns: 1fr;
    }

    .year-card {
        min-height: 112px;
    }

    .outcomes-section,
    .learning-section {
        padding: 60px 0;
    }

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

    .how-panel > p {
        line-height: 1.6;
    }

    .steps-grid {
        margin-top: 32px;
    }

    .steps-grid article {
        min-height: 0;
    }

    .learning-grid article {
        min-height: 220px;
    }

    .footer-content {
        padding: 24px 0;
        flex-direction: column;
        text-align: center;
    }

    .footer-content > div {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
}
