:root {
    --ink: #263440;
    --muted: #64727b;
    --line: #eadfd7;
    --paper: #fffdfb;
    --white: #fff;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    --accent: #e76f2a;
    --accent-dark: #a84818;
    --accent-soft: #ffe1c9;
    --accent-pale: #fff5ed;
    --accent-ink: #713a1f;
    --accent-shadow: #e76f2a2e;
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font: 15px/1.6 "DM Sans", sans-serif;
}

body.theme-institutes {
    --accent: #3977d5;
    --accent-dark: #184fbc;
    --accent-soft: #dce9ff;
    --accent-pale: #f2f6ff;
    --accent-ink: #29466e;
    --accent-shadow: #3977d52e;
}

body.theme-adults {
    --accent: #a34ff1;
    --accent-dark: #74309b;
    --accent-soft: #efd8ff;
    --accent-pale: #fbf4ff;
    --accent-ink: #58306e;
    --accent-shadow: #a34ff12e;
}

img {
    max-width: 100%;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    font: inherit;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 4px;
}

.container {
    width: min(1160px, calc(100% - 48px));
    margin-inline: auto;
}

.detail-header {
    position: sticky;
    z-index: 20;
    top: 0;
    height: 78px;
    border-bottom: 1px solid color-mix(in srgb, var(--accent) 18%, white);
    background: color-mix(in srgb, var(--accent-pale) 72%, white 28%);
    backdrop-filter: blur(12px);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.brand img {
    display: block;
    width: 170px;
    height: 150px;
    object-fit: contain;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-left: auto;
}

.back-link {
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.back-link:hover {
    color: var(--accent-dark);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    min-height: 48px;
    padding: 12px 19px;
    border: 0;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

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

.button.primary {
    color: var(--white);
    background: var(--accent);
    box-shadow: 0 12px 24px var(--accent-shadow);
}

.button.primary:hover {
    background: var(--accent-dark);
}

.button.secondary {
    border: 1px solid color-mix(in srgb, var(--accent) 35%, white);
    color: var(--accent-dark);
    background: var(--white);
}

.button.dark {
    color: var(--white);
    background: var(--ink);
}

.button.cta-button {
    transition: all .5s ease;
}

.button.cta-button:hover {
    transform: translateY(-10px);
    color: var(--accent);
    background-color: #000;
}

.button span {
    font-size: 19px;
    line-height: 1;
}

.kicker {
    margin: 0 0 16px;
    color: var(--accent-dark);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.kicker i {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 7px;
    border-radius: 50%;
    background: var(--accent);
}

h1,
h2,
h3 {
    font-family: "Plus Jakarta Sans", sans-serif;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 83% 37%, color-mix(in srgb, var(--accent-soft) 78%, white), transparent 29%),
        linear-gradient(115deg, var(--accent-pale), var(--white));
}

.detail-hero::after {
    content: "";
    position: absolute;
    right: -120px;
    bottom: -180px;
    width: 460px;
    height: 460px;
    border: 1px solid color-mix(in srgb, var(--accent) 20%, white);
    border-radius: 50%;
}

.hero-grid {
    min-height: 620px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, .75fr);
    align-items: center;
    gap: 80px;
    padding-block: 70px;
}

.hero-copy {
    position: relative;
    z-index: 2;
    max-width: 650px;
}

.hero-copy h1 {
    max-width: 650px;
    margin: 0;
    font-size: clamp(43px, 5vw, 64px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -3.5px;
}

.hero-copy h1 em {
    color: var(--accent-dark);
    font-style: normal;
}

.hero-lead {
    max-width: 580px;
    margin: 24px 0 31px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
}

.hero-visual {
    min-height: 485px;
    position: relative;
    z-index: 2;
    align-self: end;
}

.hero-shape {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 390px;
    height: 390px;
    border-radius: 50% 50% 28px 28px;
    background: var(--accent-soft);
}

.hero-character {
    position: absolute;
    z-index: 2;
    right: 12px;
    bottom: 0;
    width: min(360px, 95%);
    height: 485px;
    object-fit: contain;
    object-position: center bottom;
}

.theme-schools .hero-character {
    right: 25px;
    width: 340px;
}

.hero-bubble {
    position: absolute;
    z-index: 3;
    top: 75px;
    left: -25px;
    max-width: 190px;
    margin: 0;
    padding: 15px 18px;
    border-radius: 15px 15px 15px 4px;
    color: var(--accent-ink);
    background: var(--white);
    box-shadow: 0 16px 35px var(--accent-shadow);
    font-size: 13px;
    font-weight: 700;
}

.capabilities-section {
    padding-block: 90px;
}

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

.section-heading.centered {
    margin-inline: auto;
    text-align: center;
}

.section-heading h2,
.chat-intro h2,
.adapt-heading h2,
.final-cta h2 {
    margin: 0;
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -2.2px;
}

.section-heading>p:last-child,
.chat-intro>p:last-of-type,
.adapt-heading>p:last-child {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 16px;
}

.capability-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.capability-card {
    min-height: 250px;
    padding: 30px;
    border: 1px solid color-mix(in srgb, var(--accent) 16%, white);
    border-radius: 20px;
    background: var(--white);
    box-shadow: 0 18px 45px #2634400a;
}

.capability-card span {
    display: grid;
    width: 43px;
    height: 43px;
    place-items: center;
    border-radius: 13px;
    color: var(--accent-dark);
    background: var(--accent-pale);
    font: 800 13px "Plus Jakarta Sans", sans-serif;
}

.capability-card h3 {
    margin: 24px 0 10px;
    font-size: 20px;
    line-height: 1.25;
    letter-spacing: -.6px;
}

.capability-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.meet-section {
    scroll-margin-top: 78px;
    padding-block: 92px;
    background: var(--accent-pale);
}

.meet-grid {
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(440px, 1.18fr);
    align-items: center;
    gap: 78px;
}

.chat-intro {
    max-width: 490px;
}

.chat-points {
    display: grid;
    gap: 11px;
    padding: 0;
    margin: 28px 0 0;
    list-style: none;
    font-size: 13px;
    font-weight: 700;
}

.chat-points li::before {
    content: "✓";
    display: inline-grid;
    width: 20px;
    height: 20px;
    margin-right: 9px;
    place-items: center;
    border-radius: 50%;
    color: var(--accent-dark);
    background: var(--accent-soft);
    font-size: 11px;
}

.chat-preview {
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--accent) 18%, white);
    border-radius: 24px;
    background: var(--white);
    box-shadow: 0 24px 65px var(--accent-shadow);
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 17px 20px;
    border-bottom: 1px solid var(--line);
}

.chat-avatar {
    width: 46px;
    height: 46px;
    padding: 2px;
    border-radius: 50%;
    background: var(--accent-soft);
    object-fit: cover;
    object-position: top;
}

.chat-header strong,
.chat-header small {
    display: block;
}

.chat-header strong {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 14px;
}

.chat-header small {
    color: var(--muted);
    font-size: 11px;
}

.chat-status {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 5px;
    border-radius: 50%;
    background: #52b96a;
}

.chat-label {
    margin-left: auto;
    padding: 5px 9px;
    border-radius: 30px;
    color: var(--accent-dark);
    background: var(--accent-pale);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .4px;
    text-transform: uppercase;
}

.chat-messages {
    display: grid;
    gap: 12px;
    max-height: 470px;
    padding: 22px;
    overflow-y: auto;
    background: linear-gradient(180deg, #fff, color-mix(in srgb, var(--accent-pale) 48%, white));
}

.message {
    width: fit-content;
    max-width: 82%;
    margin: 0;
    padding: 11px 14px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.55;
}

.message.bot {
    border-bottom-left-radius: 4px;
    background: #f1efed;
}

.message.user {
    justify-self: end;
    border-bottom-right-radius: 4px;
    color: var(--accent-ink);
    background: var(--accent-soft);
}

.chat-coming-soon {
    margin: 0;
    padding: 14px 20px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    background: var(--white);
    font-size: 12px;
    text-align: center;
}

.chat-coming-soon i {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 7px;
    border-radius: 50%;
    background: var(--accent);
}

.adapt-section {
    padding-block: 100px;
}

.adapt-heading {
    max-width: 680px;
    margin-bottom: 45px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    counter-reset: adaptation;
}

.step {
    position: relative;
    padding-top: 25px;
    border-top: 2px solid var(--accent-soft);
    counter-increment: adaptation;
}

.step::before {
    content: "0" counter(adaptation);
    display: block;
    margin-bottom: 25px;
    color: var(--accent);
    font: 800 25px "Plus Jakarta Sans", sans-serif;
}

.step h3 {
    margin: 0 0 9px;
    font-size: 18px;
}

.step p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.partners-section {
    padding-block: 90px;
    margin-bottom: 80px;
    background: var(--accent-pale);
}

.partners-section .section-heading {
    margin-bottom: 40px;
}

.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 310px));
    justify-content: center;
    gap: 20px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.partner-card {
    display: flex;
    min-height: 300px;
    height: 100%;
    padding: 24px;
    border: 1px solid color-mix(in srgb, var(--accent) 16%, white);
    border-radius: 20px;
    flex-direction: column;
    align-items: center;
    color: var(--ink);
    background: var(--white);
    box-shadow: 0 18px 45px #2634400a;
    text-align: center;
    text-decoration: none;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.partner-card:hover {
    border-color: color-mix(in srgb, var(--accent) 38%, white);
    box-shadow: 0 22px 48px var(--accent-shadow);
    transform: translateY(-5px);
}

.partner-logo {
    display: grid;
    width: 100%;
    height: 145px;
    margin-bottom: 21px;
    place-items: center;
}

.partner-logo img {
    display: block;
    width: auto;
    max-width: 220px;
    max-height: 135px;
    object-fit: contain;
}

.partner-card strong {
    font: 800 18px/1.3 "Plus Jakarta Sans", sans-serif;
}

.partner-location {
    margin-top: 5px;
    color: var(--muted);
    font-size: 13px;
}

.partner-link {
    margin-top: auto;
    padding-top: 18px;
    color: var(--accent-dark);
    font-size: 13px;
    font-weight: 800;
}

.partner-link i {
    margin-left: 4px;
    font-style: normal;
}

.final-cta-section {
    padding: 0 0 80px;
}

.final-cta {
    position: relative;
    overflow: hidden;
    padding: 64px;
    border-radius: 28px;
    color: var(--accent-ink);
    background: var(--accent-soft);
}

.final-cta::after {
    content: "";
    position: absolute;
    top: -95px;
    right: -55px;
    width: 300px;
    height: 300px;
    border: 55px solid color-mix(in srgb, var(--accent) 17%, transparent);
    border-radius: 50%;
}

.final-cta>div {
    position: relative;
    z-index: 1;
    max-width: 750px;
}

.final-cta h2 {
    max-width: 680px;
}

.final-cta p {
    max-width: 650px;
    margin: 17px 0 25px;
    font-size: 16px;
}

.detail-footer {
    padding: 24px 0;
    border-top: 1px solid var(--line);
    background: var(--white);
}

.detail-footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.contact-dialog {
    width: min(470px, calc(100% - 32px));
    padding: 38px;
    border: 0;
    border-radius: 18px;
    color: var(--ink);
    background: var(--white);
    box-shadow: 0 24px 70px #26344040;
}

.contact-dialog::backdrop {
    background: #26344099;
    backdrop-filter: blur(3px);
}

.contact-dialog-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: var(--muted);
    background: #f7f3ef;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.contact-dialog h2 {
    margin: 0;
    font: 800 30px/1.15 "Plus Jakarta Sans", sans-serif;
    letter-spacing: -1.5px;
}

.contact-dialog>p:not(.kicker) {
    margin: 16px 0 14px;
    color: var(--muted);
}

.contact-dialog-email {
    display: block;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 9px;
    color: var(--accent-dark);
    background: var(--accent-pale);
    font-size: 16px;
    overflow-wrap: anywhere;
    user-select: all;
}

.contact-dialog-confirm {
    width: 100%;
    margin-top: 22px;
}

@media(max-width: 960px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1fr) 330px;
        gap: 35px;
    }

    .hero-visual {
        min-height: 430px;
    }

    .hero-shape {
        width: 325px;
        height: 350px;
    }

    .hero-character {
        height: 430px;
    }

    .hero-bubble {
        left: -10px;
    }

    .meet-grid {
        grid-template-columns: minmax(0, .75fr) minmax(400px, 1.25fr);
        gap: 42px;
    }
}

@media(max-width: 760px) {
    .container {
        width: min(100% - 32px, 620px);
    }

    .detail-header {
        height: 68px;
    }

    .back-link {
        display: none;
    }

    .nav-actions {
        gap: 10px;
    }

    .detail-header .button {
        min-height: 40px;
        padding: 9px 13px;
        font-size: 12px;
    }

    .hero-grid {
        min-height: 0;
        display: block;
        padding: 62px 0 0;
    }

    .hero-copy h1 {
        font-size: clamp(38px, 11vw, 50px);
        letter-spacing: -2.5px;
    }

    .hero-lead {
        font-size: 16px;
    }

    .hero-visual {
        width: min(400px, 100%);
        min-height: 425px;
        margin: 25px auto 0;
    }

    .hero-shape {
        right: 4%;
        width: 92%;
        height: 350px;
    }

    .hero-character,
    .theme-schools .hero-character {
        right: 5%;
        width: 90%;
        height: 420px;
    }

    .hero-bubble {
        top: 65px;
        left: 0;
    }

    .capabilities-section,
    .meet-section,
    .adapt-section,
    .partners-section {
        padding-block: 68px;
    }

    .partners-section {
        margin-bottom: 50px;
    }

    .capability-grid,
    .steps,
    .meet-grid {
        grid-template-columns: 1fr;
    }

    .capability-card {
        min-height: 0;
    }

    .meet-grid {
        gap: 35px;
    }

    .meet-section {
        scroll-margin-top: 68px;
    }

    .chat-intro {
        max-width: none;
    }

    .chat-messages {
        max-height: none;
    }

    .final-cta-section {
        padding-bottom: 50px;
    }

    .final-cta {
        padding: 45px 27px;
    }

    .detail-footer .container {
        align-items: flex-end;
    }
}

@media(max-width: 440px) {
    .hero-actions .button {
        width: 100%;
    }

    .chat-header {
        padding: 14px;
    }

    .chat-label {
        display: none;
    }

    .chat-messages {
        padding: 16px;
    }

    .message {
        max-width: 90%;
    }

    .contact-dialog {
        padding: 32px 24px 24px;
    }

    .contact-dialog h2 {
        font-size: 26px;
    }
}

@media(prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .button {
        transition: none;
    }

    .partner-card {
        transition: none;
    }
}
