/*
 * CAPIVERSO - MAIN DESIGN STYLESHEET
 */

:root {
    --cap-primary-green: #046a38;
    --cap-dark-green: #064e28;
    --cap-lime: #84cc16;
    --cap-lime-bright: #a3e635;
    --cap-blue: #0284c7;
    --cap-cyan: #0284c7;
    --cap-indigo: #374898;

    --cap-text-dark: #1e293b;
    --cap-text-body: #475569;
    --cap-text-muted: #64748b;

    --cap-font-heading: 'Outfit', sans-serif;
    --cap-font-body: 'Inter', sans-serif;

    --cap-radius-sm: 8px;
    --cap-radius-md: 16px;
    --cap-radius-lg: 24px;

    --cap-shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --cap-shadow-md: 0 10px 25px rgba(0, 0, 0, 0.08);
    --cap-shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);

    --cap-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--cap-font-body);
    color: var(--cap-text-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--cap-font-heading);
    color: var(--cap-text-dark);
    font-weight: 700;
    line-height: 1.2;
}

a,
a *,
button,
button *,
[role="button"],
input[type="submit"],
input[type="button"],
select {
    cursor: pointer !important;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--cap-transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.cap-container {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
}

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

.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

/* Highlights */
.text-highlight-blue {
    color: var(--cap-blue);
}

.text-highlight-cyan {
    color: var(--cap-cyan);
}

.text-highlight-lime {
    color: var(--cap-lime-bright);
}

.text-highlight-brown {
    color: #925d31;
}

.text-highlight-lavender {
    color: #a5b4fc;
}

/* Float Micro-animation */
.float-animation {
    animation: floatAnim 4s ease-in-out infinite;
}

@keyframes floatAnim {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Common Headings */
.cap-section-heading {
    font-size: 2.3rem;
    font-weight: 800;
    color: var(--cap-text-dark);
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.cap-section-heading.light-heading {
    color: #ffffff;
}

.cap-section-desc {
    font-size: 1.1rem;
    color: var(--cap-text-body);
    max-width: 720px;
    margin: 0 auto 2.5rem;
}

.cap-section-desc.light-desc {
    color: #e2e8f0;
}

/* -------------------------------------------------------------
 * 1. HEADER / MENU FULL-WIDTH FIXO (DESCEU 25PX DO TOPO)
 * ------------------------------------------------------------- */
.cap-header {
    position: absolute;
    top: 25px;
    left: 0;
    width: 100%;
    height: 75px;
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.cap-header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
}

.cap-nav-left ul,
.cap-nav-right ul {
    display: flex;
    align-items: center;
    gap: 2.2rem;
}

.cap-nav-left ul {
    justify-content: flex-start;
}

.cap-nav-right ul {
    justify-content: flex-end;
}

.cap-nav-left ul li a,
.cap-nav-right ul li a {
    font-size: 0.95rem;
    font-weight: 500;
    color: #475569;
}

.cap-nav-left ul li a:hover,
.cap-nav-right ul li a:hover {
    color: var(--cap-text-dark);
}

.cap-logo-center {
    display: flex;
    justify-content: center;
    padding: 0 1rem;
}

.cap-logo-img {
    height: 38px;
    object-fit: contain;
}

.cap-mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.cap-mobile-toggle span {
    width: 25px;
    height: 3px;
    background: var(--cap-text-dark);
    border-radius: 3px;
    transition: var(--cap-transition);
}

.cap-mobile-menu {
    display: none;
    position: absolute;
    top: 75px;
    left: 0;
    width: 100%;
    background: #ffffff;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 999;
}

.cap-mobile-menu.active {
    display: block;
}

.cap-mobile-menu ul {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    align-items: center;
}

/* -------------------------------------------------------------
 * 2. TOP HERO SECTION
 * ------------------------------------------------------------- */
.cap-hero-section {
    position: relative;
    padding: 145px 0 140px;
    background: linear-gradient(180deg, #eef8fc 0%, #f0fdf4 60%, #ffffff 100%);
    overflow: hidden;
}

.cap-hero-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.cap-hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: bottom center;
}

.cap-hero-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 3rem;
}

.cap-hero-title {
    font-size: 3.4rem;
    font-weight: 900;
    color: var(--cap-text-dark);
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.cap-hero-subtitle {
    font-size: 1.2rem;
    color: #475569;
    margin-bottom: 2.2rem;
    max-width: 520px;
}

.cap-apple-link {
    display: inline-block;
    transition: var(--cap-transition);
    cursor: pointer;
}

.cap-apple-link:hover {
    transform: translateY(-3px);
    opacity: 0.9;
    cursor: pointer;
}

.cap-apple-img {
    height: 46px;
    width: auto;
    object-fit: contain;
    cursor: pointer;
}

.cap-hero-graphic {
    display: flex;
    justify-content: center;
    align-items: center;
}

.cap-jumping-img {
    max-width: 420px;
    width: 100%;
}

/* -------------------------------------------------------------
 * 3. FEATURE CARDS BOX
 * ------------------------------------------------------------- */
.cap-features-section {
    position: relative;
    z-index: 10;
    margin-top: -60px;
    margin-bottom: 80px;
}

.cap-features-box {
    background: #ffffff;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.12);
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.cap-feature-card {
    text-align: center;
    padding: 2.5rem 1.2rem;
    border-radius: 0px;
    border-right: 1px solid #e2e8f0;
    transition: var(--cap-transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cap-feature-card:last-child {
    border-right: none;
}

.cap-feature-card:hover {
    transform: translateY(-5px);
    background: #f8fafc;
}

.cap-feature-icon-wrapper {
    width: 7vw;
    height: 7vw;
    min-width: 45px;
    min-height: 45px;
    margin: 0 auto 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cap-feature-icon-wrapper img {
    max-height: 100%;
    object-fit: contain;
}

.cap-feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--cap-text-dark);
    margin-bottom: 0.4rem;
}

.cap-feature-card p {
    font-size: 0.9rem;
    color: var(--cap-text-muted);
}

/* -------------------------------------------------------------
 * 4. AVATARES & BATE-PAPO (SEÇÃO VERDE METADE PARA BAIXO)
 * ------------------------------------------------------------- */
.cap-green-section {
    background: linear-gradient(180deg, #ffffff 0%, #ffffff 50%, var(--cap-primary-green) 50%, var(--cap-dark-green) 100%);
    padding: 90px 0 100px;
    color: var(--cap-text-dark);
}

.cap-green-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.cap-characters-img {
    max-width: 100%;
    border-radius: 0px;
}

.green-section-heading {
    color: var(--cap-text-dark);
    margin-bottom: 1.2rem;
}

.green-section-desc {
    color: var(--cap-text-body);
    margin: 0 0 2rem 0;
}

.cap-gaming-wrapper {
    margin-top: 2rem;
}

.cap-gaming-img {
    max-width: 100%;
}

/* -------------------------------------------------------------
 * 5. EXPLORE MUNDOS SECTION
 * ------------------------------------------------------------- */
.cap-worlds-section {
    padding: 100px 0 80px;
    background: #ffffff;
}

.cap-worlds-graphic {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

.cap-worlds-img {
    max-width: 900px;
    width: 100%;
}

/* -------------------------------------------------------------
 * 6. RPG CLASSROOM MAP SECTION (ICO-LIVE-CLASS.PNG COMO BACKGROUND 100% WIDTH)
 * ------------------------------------------------------------- */
.cap-rpg-classroom-section {
    background-image: url('/assets/ico-live-class.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    min-height: 680px;
    padding: 120px 0;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.cap-rpg-left {
    max-width: 520px;
    text-align: left;
    background: rgba(17, 30, 21, 0.75);
    backdrop-filter: blur(8px);
    padding: 2.5rem;
    border-radius: var(--cap-radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.rpg-title {
    font-size: 2.6rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 1.8rem;
    color: #ffffff;
}

.cap-rpg-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #f1f5f9;
    margin-bottom: 1.5rem;
}

.cap-rpg-text:last-child {
    margin-bottom: 0;
}

/* -------------------------------------------------------------
 * 7. TEACHERS SECTION (ANEXO 1, ANEXO 2, ANEXO 3)
 * ------------------------------------------------------------- */
.cap-teachers-section {
    padding: 100px 0;
    background: #ffffff;
}

.cap-teachers-header {
    text-align: left;
    margin-bottom: 3.5rem;
}

.cap-teachers-title {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.1;
    color: #262626;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.cap-teachers-subtitle {
    font-size: 1.15rem;
    color: #333333;
    max-width: 880px;
    line-height: 1.6;
}

.cap-teachers-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.cap-teacher-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: var(--cap-transition);
}

.cap-teacher-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.cap-teacher-bg-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.cap-teacher-overlay {
    position: absolute;
    top: 2.2rem;
    left: 2.2rem;
    max-width: 270px;
    text-align: left;
    z-index: 2;
}

.cap-teacher-overlay h3 {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.15;
    color: #1a1a1a;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.cap-teacher-overlay p {
    font-size: 1.02rem;
    line-height: 1.5;
    color: #333333;
    font-weight: 400;
}

/* -------------------------------------------------------------
 * 8. SEGMENTED CONTENT & AVATARS (BLUE SECTION - FULL WIDTH 100%)
 * ------------------------------------------------------------- */
.cap-blue-section {
    background: #4455a5;
    padding: 90px 0 0 0;
    color: #ffffff;
    overflow: hidden;
}

.cap-blue-section-title {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.15;
    color: #ffffff;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.cap-blue-section-desc {
    font-size: 1.15rem;
    color: #e2e8f0;
    max-width: 780px;
    margin: 0 auto 3.5rem;
    line-height: 1.6;
}

.cap-age-columns-full {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    margin: 0;
    padding: 0;
}

.cap-age-col {
    padding: 4.5rem 2.8rem;
    text-align: center;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.cap-age-criancas {
    background: #5065eb;
}

.cap-age-adolescentes {
    background: #253360;
}

.cap-age-adultos {
    background: #56688d;
}

.cap-age-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cap-age-icon img {
    max-height: 100%;
    filter: brightness(0) invert(1);
    object-fit: contain;
}

.cap-age-col h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.cap-age-col p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #f1f5f9;
    max-width: 320px;
}

.cap-capibots-full-width {
    width: 100%;
    margin: 0;
    padding: 0;
    display: block;
    line-height: 0;
}

.cap-capibots-full-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* -------------------------------------------------------------
 * 9. EDUCATIONAL GAMES SECTION
 * ------------------------------------------------------------- */
.cap-games-section {
    padding: 110px 0;
    background: #ffffff;
}

.cap-games-box {
    position: relative;
    background: #ffffff;
    border: 2px solid #475569;
    border-radius: 24px;
    padding: 4.5rem 4rem 4rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.cap-games-badge-wrapper {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    padding: 0 1.2rem;
}

.cap-games-badge {
    display: flex;
    align-items: center;
    justify-content: center;
}

.controller-icon {
    width: 60px;
    height: auto;
}

.cap-games-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 4rem;
    align-items: center;
}

.cap-games-left {
    text-align: left;
}

.cap-games-title {
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1.1;
    color: #1e293b;
    margin-bottom: 1.8rem;
    letter-spacing: -0.5px;
}

.cap-games-desc {
    font-size: 1.15rem;
    line-height: 1.65;
    color: #334155;
    max-width: 440px;
}

.cap-minigames-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem 1.8rem;
}

.cap-minigame-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cap-minigame-card {
    width: 120px;
    height: 120px;
    background: #ffffff;
    border: 1.5px solid #64748b;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    transition: var(--cap-transition);
    margin: 0 auto;
}

.cap-minigame-card:hover {
    border-color: var(--cap-primary-green);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.cap-minigame-card img {
    max-height: 80px;
    max-width: 100%;
    object-fit: contain;
}

.cap-minigame-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    margin-top: 0.7rem;
    text-transform: lowercase;
    letter-spacing: -0.2px;
}

/* -------------------------------------------------------------
 * 10. BOTTOM SECTION & FOOTER ON GREEN HILL
 * ------------------------------------------------------------- */
.cap-bottom-section {
    position: relative;
    padding: 150px 0 60px;
    background: transparent;
    overflow: hidden;
}

.cap-bottom-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.cap-bottom-bg-img {
    width: 100%;
    height: 100%;
}

.cap-bottom-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 3rem;
    align-items: flex-start;
    margin-bottom: 17rem; /* DESCEU O CONTEÚDO CAP-FOOTER-GREEN-CONTAINER EM 50PX ADICIONAIS */
}

.cap-bottom-left {
    text-align: left;
    padding-top: 1rem;
}

.cap-bottom-title {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.1;
    color: #1e293b;
    margin-bottom: 1.8rem;
    letter-spacing: -0.5px;
}

.cap-bottom-desc {
    font-size: 1.12rem;
    line-height: 1.65;
    color: #475569;
    max-width: 380px;
}

.cap-bottom-right {
    position: relative;
}

.cap-contact-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2.2rem 2.5rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    position: relative;
    z-index: 2;
}

.form-row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: #94a3b8;
    margin-bottom: 0.4rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.form-control {
    width: 100%;
    height: 46px;
    padding: 0.75rem 0.9rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    color: #1e293b;
    transition: var(--cap-transition);
    background-color: #ffffff;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

textarea.form-control {
    height: auto;
}

select.form-control {
    padding-right: 2.2rem;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23475569%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    background-size: 0.65rem auto;
    cursor: pointer;
}

.form-control:focus {
    outline: none;
    border-color: var(--cap-primary-green);
    box-shadow: 0 0 0 3px rgba(4, 106, 56, 0.1);
}

.form-actions-right {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.5rem;
}

.btn-cap-send {
    padding: 0.75rem 2rem;
    background: #5bca25;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 800;
    font-family: var(--cap-font-heading);
    cursor: pointer;
    transition: var(--cap-transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 14px rgba(91, 202, 37, 0.3);
}

.btn-cap-send:hover {
    background: #4eb71c;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(91, 202, 37, 0.4);
}

.btn-cap-send:disabled,
.btn-cap-send.is-loading {
    cursor: wait;
    opacity: 0.7;
    transform: none;
    box-shadow: none;
}

.btn-cap-send.is-loading::before {
    content: '';
    width: 0.85rem;
    height: 0.85rem;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: cap-button-spinner 0.7s linear infinite;
}

@keyframes cap-button-spinner {
    to { transform: rotate(360deg); }
}

/* Capybara Overlap */
.cap-capi-run-overlap {
    position: absolute;
    right: 180px;
    bottom: -260px;
    z-index: 3;
    pointer-events: none;
}

.cap-capi-run-overlap .cap-run-img {
    max-width: 240px;
    height: auto;
}

/* Footer Links Directly Inside Green Hill Landscape */
.cap-footer-green-container {
    position: relative;
    z-index: 2;
    padding-top: 4rem;
}

.cap-footer-green-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
}

.cap-footer-green-col h4 {
    color: #2b4404;
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    font-weight: 800;
}

.cap-footer-green-col ul {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.cap-footer-green-col ul li a {
    font-size: 0.9rem;
    color: #3b5e08;
    font-weight: 500;
}

.cap-footer-green-col ul li a:hover {
    color: #1a2c02;
    text-decoration: underline;
}

/* -------------------------------------------------------------
 * 11. BARRA DE DIREITOS E SLOGAN (ANEXO 2)
 * ------------------------------------------------------------- */
.cap-bottom-legal-bar {
    background: #231609;
    color: #e2d8b5;
    padding: 1.1rem 0;
    font-size: 0.88rem;
    position: relative;
    z-index: 10;
}

.cap-legal-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cap-legal-copyright {
    color: #e2d8b5;
    font-weight: 500;
}

.cap-legal-slogan {
    color: #e2d8b5;
    font-style: italic;
    font-weight: 500;
}

.cap-legal-company-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    max-width: 38rem;
    color: #e2d8b5;
    font-size: 0.72rem;
    font-style: normal;
    line-height: 1.35;
    text-align: right;
}

.cap-legal-company-info strong {
    font-size: 0.78rem;
}

.cap-legal-company-info a {
    color: #e2d8b5;
    text-decoration: underline;
}

/* -------------------------------------------------------------
 * RESPONSIVE BREAKPOINTS
 * ------------------------------------------------------------- */
@media (max-width: 1024px) {
    .cap-header-inner {
        width: 95%;
    }

    .cap-nav-left ul, .cap-nav-right ul {
        gap: 1.2rem;
    }

    .cap-hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .cap-hero-subtitle {
        margin: 0 auto 2rem;
    }

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

    .cap-feature-card {
        border-bottom: 1px solid #e2e8f0;
    }

    .cap-feature-card:nth-child(2n) {
        border-right: none;
    }

    .cap-green-container {
        grid-template-columns: 1fr;
    }

    .cap-rpg-left {
        max-width: 100%;
    }

    .cap-teachers-grid {
        grid-template-columns: 1fr;
    }

    .cap-age-columns-full {
        grid-template-columns: 1fr;
    }

    .cap-games-grid-layout {
        grid-template-columns: 1fr;
    }

    .cap-bottom-container {
        grid-template-columns: 1fr;
        margin-bottom: 6rem;
    }

    .form-row-3 {
        grid-template-columns: 1fr;
    }

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

    .cap-legal-bar-inner {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .cap-legal-company-info {
        max-width: none;
        text-align: center;
    }
}

@media (max-width: 840px) {
    .cap-nav-left, .cap-nav-right {
        display: none;
    }

    .cap-mobile-toggle {
        display: flex;
    }

    .cap-header-inner {
        grid-template-columns: auto 1fr auto;
    }

    .cap-hero-title {
        font-size: 2.4rem;
    }

    .cap-features-box {
        grid-template-columns: 1fr;
    }

    .cap-feature-card {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }

    .cap-feature-card:last-child {
        border-bottom: none;
    }

    .cap-teacher-overlay {
        position: relative;
        top: 0;
        left: 0;
        max-width: 100%;
        padding: 1.5rem;
    }

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

    .cap-footer-green-grid {
        grid-template-columns: 1fr;
    }

    .cap-capi-run-overlap {
        display: none;
    }
}

@media (max-width: 480px) {
    .cap-games-box {
        padding: 4rem 1rem 2rem;
    }

    .cap-games-left,
    .cap-games-right,
    .cap-minigames-grid {
        min-width: 0;
        width: 100%;
    }

    .cap-games-title {
        font-size: 2.2rem;
    }

    .cap-minigames-grid {
        gap: 1.5rem 0.75rem;
    }

    .cap-minigame-item {
        min-width: 0;
    }

    .cap-minigame-card {
        width: 100px;
        height: 100px;
    }

    .cap-minigame-label {
        max-width: 100%;
        overflow-wrap: anywhere;
        text-align: center;
    }
}
