/* Reset and Base Styles */
:root {
    --color-primary: #2563eb;
    --color-primary-strong: #1d4ed8;
    --color-accent: #6366f1;
    --color-dark: #0f172a;
    --color-text: #1f2937;
    --color-muted: #475569;
    --color-surface: #ffffff;
    --color-surface-muted: #f5f7fb;
    --color-outline: rgba(37, 99, 235, 0.18);
    --shadow-soft: 0 18px 38px rgba(15, 23, 42, 0.12);
    --shadow-elevated: 0 28px 48px rgba(37, 99, 235, 0.14);

    --space-2xs: 0.35rem;
    --space-xs: 0.6rem;
    --space-sm: 0.85rem;
    --space-md: 1.15rem;
    --space-lg: clamp(1.75rem, 3vw, 2.6rem);
    --space-xl: clamp(2.5rem, 4vw, 3.8rem);

    --radius-md: 18px;
    --radius-lg: 32px;

    --container-max: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.65;
    color: var(--color-text);
    background: radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.08), transparent 55%),
        radial-gradient(circle at 80% 0%, rgba(37, 99, 235, 0.08), transparent 60%),
        #f8faff;
    -webkit-font-smoothing: antialiased;
}

body.modal-open {
    overflow: hidden;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    padding: 1.1rem clamp(1.5rem, 4vw, 2.5rem);
    width: 100%;
}

.nav-brand .logo {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-dark);
}

.logo-link {
    text-decoration: none;
}

.logo-symbol {
    width: 32px;
    height: 32px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 6px 12px rgba(37, 99, 235, 0.18);
}

.logo-text {
    line-height: 1;
}


.nav-link {
    text-decoration: none;
    color: rgba(15, 23, 42, 0.75);
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
    color: var(--color-primary);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-strong) 100%);
    color: #ffffff;
    font-weight: 600;
    font-size: 1.02rem;
    padding: 0.85rem 1.9rem;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.22);
}

.cta-button:hover,
.cta-button:focus-visible {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
    filter: brightness(1.03);
}

.cta-button:active {
    transform: translateY(0);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.25);
}

.cta-button.join-btn {
    margin-left: auto;
    padding: 0.85rem 2rem;
}

.cta-button.join-style {
    padding: 0.95rem 2.4rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(160deg, #f1f5ff 0%, #ffffff 48%, #e9efff 100%);
    color: var(--color-dark);
    padding: clamp(7rem, 12vw, 9rem) 0 clamp(5rem, 8vw, 6.5rem);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
    align-items: end;
    gap: clamp(2.5rem, 6vw, 4.25rem);
}

.hero-copy {
    max-width: 520px;
    text-align: left;
    grid-column: 1;
}

.hero-visual {
    grid-column: 2;
    justify-self: center;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    min-height: clamp(360px, 42vw, 560px);
    position: relative;
}

.hero-cta {
    grid-column: 1;
    margin-top: 2.5rem;
    justify-self: start;
    display: inline-flex;
}

.hero-title {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.36em;
    margin-bottom: 1.5rem;
    color: var(--color-accent);
}

.hero-subtitle {
    font-size: clamp(2.8rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    color: var(--color-dark);
}

.hero-description {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    max-width: 600px;
    color: var(--color-muted);
}

.hero-visual-scene {
    position: relative;
    display: grid;
    place-items: end center;
    width: clamp(320px, 48vw, 580px);
    min-height: clamp(360px, 44vw, 600px);
}

.hero-figure {
    grid-area: 1 / 1;
    position: relative;
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 24px 38px rgba(15, 23, 42, 0.18));
    transition: transform 0.35s ease;
    --hero-translate-x: 0;
    --hero-translate-y: 0;
    --hero-scale: 1;
    transform: translate(var(--hero-translate-x), var(--hero-translate-y)) scale(var(--hero-scale));
}

.hero-figure:hover {
    --hero-scale: 1.05;
}

.hero-figure--robo {
    width: clamp(260px, 34vw, 360px);
    --hero-translate-y: 3%;
    z-index: 5;
}

.hero-figure--alex {
    width: clamp(240px, 32vw, 300px);
    --hero-translate-x: -58%;
    --hero-translate-y: 4%;
    z-index: 4;
}

.hero-figure--sophia {
    width: clamp(240px, 32vw, 300px);
    --hero-translate-x: 58%;
    --hero-translate-y: 4%;
    z-index: 4;
}

.hero-figure--elena {
    width: clamp(130px, 20vw, 210px);
    --hero-translate-x: -50%;
    --hero-translate-y: -100%;
    z-index: 3;
}

.hero-figure--benjamin {
    width: clamp(200px, 26vw, 260px);
    --hero-translate-x: 40%;
    --hero-translate-y: -50%;
    z-index: 3;
}


.modal-overlay[hidden] {
    display: none !important;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(2rem, 6vw, 4rem) clamp(1rem, 4vw, 3rem);
    z-index: 2000;
    backdrop-filter: blur(6px);
    overflow-y: auto;
}

.modal-dialog {
    position: relative;
    width: min(1180px, 100%);
    background: #ffffff;
    border-radius: 28px;
    box-shadow: 0 40px 80px rgba(15, 23, 42, 0.25);
    overflow: hidden;
    max-height: min(82vh, 760px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.modal-close {
    position: absolute;
    top: clamp(0.65rem, 1.8vw, 1.1rem);
    right: clamp(0.65rem, 2.2vw, 1.2rem);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: rgba(15, 23, 42, 0.08);
    color: #1f2937;
    font-size: 1.5rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 5;
}

.modal-close:hover {
    background: rgba(37, 99, 235, 0.15);
    transform: rotate(90deg);
}

.modal-content {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 0;
}

.modal-section {
    padding: clamp(1.3rem, 3vw, 1.9rem);
    display: flex;
    flex-direction: column;
    gap: clamp(0.7rem, 2.6vw, 1rem);
}

.modal-section--features {
    background: linear-gradient(180deg, #eef2ff 0%, #dbe4ff 100%);
}

.modal-section__header h2 {
    font-size: clamp(1.1rem, calc(0.88rem + 1.6vw), 1.85rem);
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 0.4rem;
}

.modal-section__header p {
    color: var(--color-muted);
    font-size: clamp(0.68rem, calc(0.46rem + 0.9vw), 0.86rem);
    line-height: 1.45;
}

.feature-compare {
    display: flex;
    flex-direction: column;
    gap: clamp(0.75rem, 2.3vw, 0.9rem);
}

.feature-compare__header {
    display: grid;
    grid-template-columns: minmax(0, 3fr) repeat(2, minmax(0, 0.95fr));
    align-items: center;
    font-size: clamp(0.46rem, calc(0.36rem + 0.78vw), 0.7rem);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(71, 85, 105, 0.85);
    padding: 0 0.7rem;
}

.feature-compare__label {
    color: var(--color-muted);
}

.feature-compare__column {
    justify-self: center;
    padding: 0.28rem 0.75rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.18);
    color: var(--color-muted);
    font-size: clamp(0.5rem, calc(0.38rem + 0.9vw), 0.75rem);
    backdrop-filter: blur(3px);
}

.feature-compare__column--pro {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-strong));
    color: #fff;
    box-shadow: 0 12px 20px rgba(37, 99, 235, 0.22);
}

.feature-compare__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: clamp(0.55rem, 2vw, 0.75rem);
}

.feature-compare__list li {
    display: grid;
    grid-template-columns: minmax(0, 3fr) repeat(2, minmax(0, 0.95fr));
    align-items: stretch;
    gap: clamp(0.4rem, 1.4vw, 0.7rem);
    padding: clamp(0.52rem, 1.8vw, 0.78rem) clamp(0.8rem, 2.4vw, 1.15rem);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 20px 34px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.feature-compare__info {
    display: grid;
    grid-template-columns: auto auto 1fr;
    gap: clamp(0.3rem, 1vw, 0.55rem);
    align-items: center;
}

.feature-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-accent);
    display: inline-block;
}

.feature-emoji {
    font-size: 1.35rem;
}

.feature-compare__info h3 {
    font-size: clamp(0.6rem, calc(0.5rem + 1.1vw), 1rem);
    font-weight: 600;
    color: #1f2937;
    margin-bottom: clamp(0.06rem, 0.6vw, 0.25rem);
}

.feature-compare__info p {
    color: var(--color-muted);
    font-size: clamp(0.6rem, calc(0.46rem + 1vw), 0.88rem);
    line-height: 1.35;
    margin: 0;
}

.feature-compare__status {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    align-items: center;
    justify-content: center;
    padding: 0.48rem 0.7rem;
    border-radius: 16px;
    background: rgba(148, 163, 184, 0.12);
    color: var(--color-muted);
    position: relative;
    text-align: center;
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.feature-compare__status--pro {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.25), rgba(99, 102, 241, 0.6));
    color: #ffffff;
    box-shadow: inset 0 0 0 1.5px rgba(37, 99, 235, 0.22);
}

.feature-compare__status--limited,
.feature-compare__status--locked {
    background: rgba(226, 232, 240, 0.4);
}

.feature-compare__status--check .status-text {
    color: inherit;
}

.feature-compare__status--limited .status-text,
.feature-compare__status--locked .status-text {
    color: #64748b;
}

.feature-compare__status--pro .status-text {
    color: rgba(255, 255, 255, 0.9);
}

.status-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-primary-strong);
    background: rgba(37, 99, 235, 0.12);
}

.feature-compare__status--pro .status-icon {
    background: #ffffff;
    color: var(--color-primary-strong);
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.22);
}

.status-icon--dash,
.status-icon--lock {
    border: 2px solid rgba(148, 163, 184, 0.5);
    background: transparent;
    color: rgba(100, 116, 139, 0.9);
    font-size: 1rem;
    font-weight: 600;
}

.status-icon--lock {
    font-size: 0.85rem;
    padding-left: 1px;
}

.status-text {
    font-size: clamp(0.53rem, calc(0.4rem + 1vw), 0.78rem);
    line-height: 1.25;
}

@media (max-width: 768px) {
    .modal-overlay {
        padding: clamp(0.75rem, 3.6vw, 1.2rem) clamp(0.5rem, 3.3vw, 1rem);
    }

    .modal-dialog {
        max-height: min(80vh, 720px);
    }

    .modal-close {
        top: clamp(0.55rem, 2.4vw, 0.95rem);
        right: clamp(0.5rem, 2.6vw, 1rem);
    }
}

@media (max-width: 560px) {
    .feature-compare__header {
        grid-template-columns: minmax(0, 2.4fr) repeat(2, minmax(0, 0.9fr));
        padding: 0 0.5rem;
        gap: 0.5rem;
    }

    .feature-compare__column {
        padding: 0.25rem 0.7rem;
    }

    .feature-compare__list {
        gap: 0.75rem;
    }

    .feature-compare__list li {
        grid-template-columns: minmax(0, 2.4fr) repeat(2, minmax(0, 0.9fr));
        padding: 0.85rem 1rem;
        gap: 0.75rem;
        border-radius: 20px;
    }

    .feature-compare__info {
        gap: clamp(0.4rem, 1.4vw, 0.55rem);
    }

    .feature-dot {
        width: 6px;
        height: 6px;
    }

    .feature-emoji {
        font-size: 1.35rem;
    }

    .feature-compare__status {
        padding: 0.55rem 0.75rem;
        border-radius: 16px;
    }

    .status-icon {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }
}


.modal-section--plans {
    background: #ffffff;
    border-left: 1px solid rgba(148, 163, 184, 0.25);
    gap: clamp(0.75rem, 2.4vw, 1rem);
}

.plans-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

.plans-badge {
    align-self: flex-start;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.12);
    color: var(--color-primary-strong);
    font-weight: 600;
    font-size: clamp(0.56rem, calc(0.42rem + 1vw), 0.8rem);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.plans-header h3 {
    font-size: clamp(1.1rem, calc(0.82rem + 2.6vw), 1.8rem);
    font-weight: 700;
    color: #1f2937;
}

.plans-header p {
    color: var(--color-muted);
    font-size: clamp(0.7rem, calc(0.52rem + 1.3vw), 0.94rem);
    line-height: 1.45;
}

.plans-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.plan-confirmation {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin: 0.7rem 0 0.9rem;
    font-size: clamp(0.78rem, calc(0.58rem + 1.3vw), 0.95rem);
    color: #475569;
}

.plan-confirmation__checkbox {
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.15rem;
    accent-color: var(--color-primary);
    cursor: pointer;
}

.plan-confirmation__label {
    line-height: 1.4;
    cursor: pointer;
}

.plan-card {
    position: relative;
    display: block;
    border-radius: 20px;
    border: 1.5px solid rgba(148, 163, 184, 0.28);
    padding: 0.3rem;
    cursor: pointer;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.08);
}

.plan-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.plan-card__body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: clamp(0.6rem, 2vw, 1rem);
    padding: clamp(0.62rem, 1.8vw, 0.88rem) clamp(0.76rem, 2.2vw, 1.1rem);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(248, 250, 255, 0.95), rgba(229, 238, 255, 0.95));
}

.plan-card__meta {
    display: flex;
    flex-direction: column;
    gap: 0.26rem;
}

.plan-name {
    font-size: clamp(0.72rem, calc(0.52rem + 1.6vw), 1.05rem);
    font-weight: 600;
    color: #1f2937;
}

.plan-desc {
    color: var(--color-muted);
    font-size: clamp(0.64rem, calc(0.46rem + 1.3vw), 0.92rem);
}

.plan-card__price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: clamp(0.09rem, 0.4vw, 0.16rem);
}

.plan-price {
    font-size: clamp(0.9rem, calc(0.6rem + 2.6vw), 1.4rem);
    font-weight: 700;
    color: var(--color-primary-strong);
}

.plan-sublabel {
    font-size: clamp(0.58rem, calc(0.42rem + 1.1vw), 0.8rem);
    color: #94a3b8;
}

.plan-tag {
    position: absolute;
    top: -12px;
    right: 18px;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-strong));
    color: #fff;
    font-size: clamp(0.52rem, calc(0.4rem + 1vw), 0.75rem);
    font-weight: 600;
    letter-spacing: 0.04em;
}

.plan-card--popular {
    border-color: var(--color-outline);
    box-shadow: 0 24px 44px rgba(37, 99, 235, 0.18);
}

.plan-card input:focus-visible + .plan-card__body {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.plan-card input:checked + .plan-card__body,
.plan-card input:checked ~ .plan-card__body {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(99, 102, 241, 0.16));
    box-shadow: inset 0 0 0 1.5px rgba(37, 99, 235, 0.4);
}

.plan-card input:checked + .plan-card__body .plan-price,
.plan-card input:checked + .plan-card__body .plan-sublabel {
    color: #1d4ed8;
}

.plan-card input:checked + .plan-card__body .plan-desc {
    color: var(--color-muted);
}

.modal-action {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 360px;
    align-self: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 0.96rem;
    margin-top: 0.2rem;
    padding: 0.65rem 1.8rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-strong));
    color: #ffffff;
    border: none;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.modal-action:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
    background: linear-gradient(135deg, rgba(148, 163, 184, 0.6), rgba(148, 163, 184, 0.8));
}

.modal-action:hover,
.modal-action:focus-visible {
    box-shadow: var(--shadow-elevated);
}

.plans-secure-note {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--color-muted);
}

.plans-secure-icons {
    display: inline-flex;
    gap: 0.75rem;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--color-dark);
}

.plans-secure-note a {
    color: var(--color-primary);
    text-decoration: none;
}

.plans-secure-note a:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .modal-content {
        grid-template-columns: 1fr;
    }

    .modal-section--plans {
        border-left: none;
        border-top: 1px solid rgba(148, 163, 184, 0.2);
    }

    .modal-dialog {
        max-height: min(80vh, 740px);
    }
}

@media (max-width: 640px) {
    .modal-dialog {
        border-radius: 20px;
    }

    .modal-close {
        position: sticky;
        top: clamp(0.45rem, 2vw, 0.75rem);
        right: auto;
        align-self: flex-end;
        margin: clamp(0.3rem, 1.8vw, 0.6rem) clamp(0.45rem, 2.6vw, 0.85rem) 0;
    }
}

@media (max-width: 480px) {
    .modal-close {
        width: 36px;
        height: 36px;
        font-size: 1.3rem;
    }
}

@media (min-height: 900px) {
    .modal-overlay {
        align-items: center;
    }
}
.hero .cta-button {
    padding: 1rem 2.4rem;
    font-size: 1.05rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-strong));
    box-shadow: var(--shadow-elevated);
}

.hero .cta-button:hover,
.hero .cta-button:focus-visible {
    box-shadow: 0 26px 54px rgba(37, 99, 235, 0.2);
}

/* Tutors Section */
.tutors-section {
    padding: clamp(5rem, 8vw, 6.5rem) 0;
    background: linear-gradient(180deg, #ffffff 0%, #f3f6ff 100%);
}

.tutors-header {
    text-align: center;
    margin-bottom: 3rem;
}

.tutors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    justify-items: center;
}

.tutors-carousel {
    position: relative;
}

.tutors-track {
    width: 100%;
}

.tutors-controls {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: nowrap;
}

.tutors-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: #e2e8f0;
    color: #1e293b;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.tutors-nav:hover {
    background: #1d4ed8;
    color: #ffffff;
    transform: translateY(-1px);
}

.tutors-nav:active {
    transform: translateY(0);
}

.tutors-nav:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.tutors-nav:disabled {
    background: #e2e8f0;
    color: #94a3b8;
    cursor: default;
    opacity: 0.6;
    transform: none;
}

.tutors-dots {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.tutors-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5f5;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.tutors-dot.active {
    background: var(--color-primary);
    transform: scale(1.1);
}

.tutors-dot:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.tutor-card {
    background: var(--color-surface);
    padding: 2rem;
    border-radius: 22px 22px 18px 18px;
    text-align: center;
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    width: 100%;
    max-width: 240px;
    border: 1.5px solid rgba(148, 163, 184, 0.3);
    --avatar-pos-x: 50%;
    --avatar-pos-y: 0%;
    --avatar-shift-x: 0px;
    --avatar-shift-y: 0px;
    --avatar-scale: 1;
    backdrop-filter: blur(2px);
}

.tutor-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 26px 48px rgba(37, 99, 235, 0.16);
    border-color: var(--color-outline);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, #edf2ff 100%);
}

.tutor-avatar {
    width: 200px;
    height: 200px;
    border-radius: 18px;
    margin: 0 auto 1.25rem;
    overflow: hidden;
    border: none;
    box-shadow: none;
    background: none;
}

.tutor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
    object-position: var(--avatar-pos-x, 50%) var(--avatar-pos-y, 0%);
    transform: translate(var(--avatar-shift-x, 0px), var(--avatar-shift-y, 0px)) scale(var(--avatar-scale, 1));
    transition: transform 0.3s ease;
}

.tutor-card:hover .tutor-avatar {
    transform: none;
    box-shadow: none;
}

/* Individual tutor tuning – tweak vars as needed */
.tutor-card--alex {
    --avatar-pos-y: 0%;
    --avatar-shift-x: -10px;
}

.tutor-card--elena {
    --avatar-pos-y: 0%;
    --avatar-shift-x: -15px;
}

.tutor-card--sophia {
    --avatar-pos-y: 0%;
    --avatar-shift-x: -15px;
}

.tutor-card--benjamin {
    --avatar-pos-y: 0%;
    --avatar-shift-x: -15px;
}

@media (max-width: 1024px) {
    .tutor-card--alex,
    .tutor-card--elena,
    .tutor-card--sophia,
    .tutor-card--benjamin {
        --avatar-shift-x: 0px;
    }
}

@media (max-width: 640px) {
    .tutor-card--alex,
    .tutor-card--elena,
    .tutor-card--sophia,
    .tutor-card--benjamin {
        --avatar-shift-x: 0px;
    }
}

.about-page {
    padding-top: clamp(6rem, 10vw, 7rem);
}

.about-hero {
    background: linear-gradient(180deg, #f4f7ff 0%, #e8eeff 100%);
    padding: clamp(4rem, 8vw, 6rem) 0;
    text-align: center;
}

.about-hero__content h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--color-dark);
    margin-bottom: 1rem;
}

.about-hero__content p {
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--color-muted);
    line-height: 1.7;
}

.about-section {
    padding: clamp(3rem, 6vw, 4.5rem) 0;
    scroll-margin-top: clamp(5rem, 8vw, 6.5rem);
}

.about-section__content {
    max-width: 840px;
    margin: 0 auto;
    text-align: center;
}

.about-section__content h2 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1.5rem;
}

.about-section__content p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--color-muted);
    margin: 0 auto;
}

.about-section .cta-button {
    margin-top: 2rem;
}

.tutor-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--color-dark);
}

.tutor-info p {
    color: var(--color-muted);
    font-size: 0.92rem;
}

/* Improve Speaking Section */
.improve-speaking {
    padding: clamp(5rem, 8vw, 6.5rem) 0;
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #f3f6ff 100%);
}

.section-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2.8rem, 6vw, 4rem);
    align-items: center;
}

.section-title {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    color: var(--color-accent);
    margin-bottom: 1.1rem;
    text-transform: uppercase;
}

.section-subtitle {
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.12;
    color: var(--color-dark);
}

.section-description {
    font-size: 1.05rem;
    color: var(--color-muted);
    margin-bottom: 2.1rem;
    line-height: 1.65;
}

.language-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    max-width: 440px;
}

.lang-btn {
    padding: 1rem 1.3rem;
    border: 1.5px solid rgba(148, 163, 184, 0.4);
    background: var(--color-surface);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1.02rem;
    cursor: default;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
    min-height: 58px;
}

.lang-btn .flag {
    font-size: 1.5rem;
}

.lang-btn.active,
.lang-btn:hover {
    border-color: var(--color-outline);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(59, 130, 246, 0.12));
    color: var(--color-dark);
    box-shadow: 0 18px 30px rgba(37, 99, 235, 0.12);
}

.chat-interface-demo {
    width: 100%;
    max-width: clamp(260px, 42vw, 420px);
    min-height: clamp(280px, 48vw, 480px);
    position: relative;
    background: linear-gradient(160deg, #f8faff 0%, #eef2ff 100%);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
    margin: 0 auto;
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 22px 40px rgba(15, 23, 42, 0.16);
}

.chat-interface-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: calc(var(--radius-md) - 6px);
    position: relative;
    z-index: 1;
    max-width: 100%;
    max-height: 100%;
}

/* Personalized Section */
.personalized-section {
    padding: clamp(5rem, 8vw, 6.5rem) 0;
    background: linear-gradient(180deg, #f7f9ff 0%, #eef2ff 100%);
}

.personalized-section .section-content {
    align-items: flex-start;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .personalized-section .section-content {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    }
}

.exercise-categories {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    max-width: 400px;
    margin: 0;
    justify-items: stretch;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0.9rem;
    background: var(--color-surface);
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.3;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
    cursor: pointer;
    border: 1.5px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 12px 22px rgba(15, 23, 42, 0.08);
}

.category-item:hover {
    transform: translateY(-3px);
    border-color: var(--color-outline);
    box-shadow: 0 18px 30px rgba(37, 99, 235, 0.14);
}

.category-item.active {
    border-color: var(--color-outline);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(59, 130, 246, 0.16));
    box-shadow: 0 22px 34px rgba(37, 99, 235, 0.16);
}

.category-icon {
    font-size: 1.2rem;
}

.category-dialogs {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: clamp(1.8rem, 4vw, 2.5rem);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.1);
    min-height: 300px;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.category-dialog {
    display: none;
}

.category-dialog.active {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dialog-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.dialog-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
}

.dialog-meta h4 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: #0f172a;
}

.dialog-meta span {
    display: block;
    font-size: 0.85rem;
    color: #64748b;
}

.chat-message {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    max-width: 100%;
}

.chat-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(148, 163, 184, 0.45);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
    flex-shrink: 0;
}

.message-bubble {
    padding: 0.95rem 1.15rem;
    border-radius: 18px;
    box-shadow: 0 18px 28px rgba(15, 23, 42, 0.08);
    background: rgba(248, 250, 252, 0.95);
    max-width: 85%;
    text-align: left;
}

.message-bubble p {
    margin: 0;
    line-height: 1.5;
}

.tutor-message .message-bubble {
    background: linear-gradient(140deg, var(--color-primary) 0%, var(--color-primary-strong) 100%);
    color: #ffffff;
    box-shadow: 0 22px 36px rgba(37, 99, 235, 0.18);
}

.user-message {
    flex-direction: row;
    justify-content: flex-end;
    margin-left: auto;
    text-align: left;
}

.user-message .chat-avatar {
    order: 2;
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 12px 24px rgba(245, 158, 11, 0.2);
}

.user-message .message-bubble {
    order: 1;
    background: rgba(248, 248, 252, 0.95);
    color: var(--color-dark);
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.08);
}

.user-avatar {
    background: #fff8eb;
}

.chat-controls {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.mic-button {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1.8rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(226, 232, 240, 0.95));
    color: var(--color-dark);
    border: 1.5px solid rgba(148, 163, 184, 0.5);
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 16px 26px rgba(15, 23, 42, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mic-button[disabled] {
    cursor: default;
    pointer-events: none;
    background: #f1f5f9;
    color: #64748b;
    border-color: rgba(148, 163, 184, 0.35);
    box-shadow: none;
}

.mic-button i {
    font-size: 1.1rem;
}

.mic-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 34px rgba(15, 23, 42, 0.18);
}

.mic-button:active {
    transform: translateY(1px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
}

/* Feedback Section */
.feedback-section {
    padding: clamp(5rem, 8vw, 6.5rem) 0;
    background: linear-gradient(180deg, #ffffff 0%, #f2f5ff 100%);
}

.feedback-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

.feedback-content .feedback-text {
    order: 1;
}

.feedback-content .feedback-demo {
    order: 2;
}

.feedback-header {
    text-align: center;
    margin-bottom: 3rem;
}

.feedback-text {
    width: 100%;
    display: flex;
    justify-content: center;
}

.feedback-text .feedback-header {
    width: 100%;
    max-width: 520px;
    margin-bottom: 0;
}

.feedback-demo {
    width: 100%;
    max-width: clamp(260px, 44vw, 440px);
    min-height: clamp(280px, 50vw, 500px);
    position: relative;
    background: linear-gradient(160deg, #f8faff 0%, #eef2ff 100%);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0 auto;
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 22px 40px rgba(15, 23, 42, 0.16);
}

.feedback-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: calc(var(--radius-md) - 6px);
}

@media (min-width: 1024px) {
    .feedback-content {
        display: grid;
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
        align-items: center;
        gap: 4rem;
    }
    
    .feedback-content .feedback-text,
    .feedback-content .feedback-demo {
        order: initial;
    }
    
    .feedback-text {
        justify-content: flex-start;
    }
    
    .feedback-text .feedback-header {
        text-align: left;
    }

    .chat-interface-demo,
    .feedback-demo {
        margin: 0;
    }
}

/* Skill Building Section */
.skill-building {
    padding: 6rem 0;
    background: #f8fafc;
    text-align: center;
}

.skill-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.skill-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
}

.skill-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.skill-card h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.skill-card p {
    color: #6b7280;
    line-height: 1.6;
}

/* Languages Section */
.languages-section {
    position: relative;
    padding: clamp(5rem, 9vw, 6.8rem) 0;
    background: linear-gradient(180deg, #f6f9ff 0%, #e9efff 100%);
    overflow: hidden;
}



.languages-inner {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: center;
}

.languages-header .section-subtitle {
    font-size: clamp(2.3rem, 4vw, 2.9rem);
}

.languages-header .accent {
    color: var(--color-accent);
}

.languages-map {
    position: relative;
    margin: 3rem auto 2.5rem;
    min-height: 360px;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.94), rgba(238, 244, 255, 0.92)),
        url("assets/en/SA_map.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: var(--radius-lg);
    box-shadow: 0 34px 60px rgba(37, 99, 235, 0.16);
    padding: clamp(1.9rem, 4.2vw, 2.9rem);
    overflow: hidden;
    border: 1px solid rgba(37, 99, 235, 0.18);
}

.languages-chip {
    position: absolute;
    top: clamp(1.6rem, 4vw, 2.4rem);
    left: clamp(1.6rem, 4vw, 2.4rem);
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem 1.2rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 20px 36px rgba(37, 99, 235, 0.18);
    border: 1px solid rgba(37, 99, 235, 0.16);
    backdrop-filter: blur(8px);
    z-index: 6;
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.chip-flag {
    font-size: 1.6rem;
}

.chip-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.chip-label {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    color: rgba(71, 85, 105, 0.85);
    font-weight: 600;
}

.chip-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-dark);
}

.languages-chip i {
    color: var(--color-primary);
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

.languages-chip:focus-visible {
    outline: 2px solid rgba(37, 99, 235, 0.4);
    outline-offset: 4px;
}

.languages-chip.open i {
    transform: rotate(180deg);
}

.languages-dropdown {
    position: fixed;
    top: var(--dropdown-top, 0px);
    left: var(--dropdown-left, 0px);
    width: var(--dropdown-width, min(280px, 32vw));
    max-height: 320px;
    padding: 0.5rem 0;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.18);
    border: 1px solid rgba(37, 99, 235, 0.16);
    backdrop-filter: blur(12px);
    overflow-y: auto;
    z-index: 40;
    opacity: 0;
    pointer-events: none;
    transform: translate3d(0, 12px, 0);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.languages-dropdown.open {
    opacity: 1;
    pointer-events: auto;
    transform: translate3d(0, 0, 0);
}

.language-option {
    width: 100%;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.98rem;
    font-weight: 600;
    color: #0f172a;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    text-align: left;
}

.language-option:hover,
.language-option:focus-visible {
    background: rgba(37, 99, 235, 0.12);
    color: var(--color-primary);
    outline: none;
}

.language-option.active {
    background: rgba(37, 99, 235, 0.18);
    color: var(--color-primary);
}

.language-option .option-flag {
    font-size: 1.3rem;
}

.language-option .option-name {
    flex: 1;
}

.languages-bubble {
    position: absolute;
    display: flex;
    gap: 1.3rem;
    align-items: flex-start;
    max-width: clamp(320px, 46vw, 460px);
    z-index: 1;
}

.languages-bubble .bubble-content {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 18px;
    padding: 1.1rem 1.55rem;
    box-shadow: 0 26px 50px rgba(15, 23, 42, 0.2);
    border: 1px solid rgba(148, 163, 184, 0.14);
    backdrop-filter: blur(7px);
}

.ai-bubble .bubble-content {
    text-align: right;
}

.languages-bubble p {
    margin: 0;
    color: #1f2937;
    font-weight: 600;
    line-height: 1.55;
    font-size: 0.98rem;
}

.bubble-translation {
    display: block;
    margin-top: 0.6rem;
    font-size: 0.88rem;
    color: var(--color-accent);
    font-weight: 600;
}

.bubble-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ffffff;
    box-shadow: 0 24px 48px rgba(37, 99, 235, 0.26);
}

.learner-bubble {
    bottom: clamp(4.4rem, 7.6vw, 5.4rem);
    left: clamp(1.8rem, 5vw, 2.8rem);
    flex-direction: row;
}

.ai-bubble {
    top: clamp(24%, 34vw, 36%);
    right: clamp(1.8rem, 5vw, 2.8rem);
    flex-direction: row-reverse;
    text-align: right;
}

.languages-tags {
    display: none;
}

.languages-marquee {
    position: relative;
    overflow: hidden;
    margin-top: 2.5rem;
    display: flex;
    align-items: center;
    padding: 0 1.25rem;
}

.languages-track {
    display: inline-flex;
    gap: 0.85rem;
    flex-shrink: 0;
    align-items: center;
    animation: languages-scroll 26s linear infinite;
    will-change: transform;
}

.languages-track.clone {
    margin-left: 0;
    animation-delay: -13s;
    transform: translateX(100%);
}

.language-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.4rem;
    background: white;
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    font-weight: 600;
    color: #1f2937;
    white-space: nowrap;
    flex: 0 0 auto;
}

.language-tag .flag {
    font-size: 1.2rem;
}

@keyframes languages-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 1024px) {
    .languages-map {
        min-height: 420px;
        padding: 2.2rem 1.6rem 3rem;
    }

    .languages-chip {
        position: static;
        margin: 0 auto clamp(1.2rem, 4vw, 1.8rem);
    }

    .languages-dropdown {
        width: min(320px, calc(100% - 2rem));
        max-height: 280px;
    }

    .languages-bubble {
        position: static;
        flex-direction: row;
        text-align: left;
        max-width: min(100%, 420px);
        width: 100%;
        margin-top: 1.3rem;
        gap: 1.1rem;
    }

    .ai-bubble {
        flex-direction: row;
    }

    .ai-bubble .bubble-content {
        text-align: left;
    }

    .bubble-avatar {
        width: 105px;
        height: 105px;
    }

    .languages-track {
        animation-duration: 20s;
    }

    .pricing-layout {
        flex-direction: column;
        gap: 2.5rem;
        align-items: center;
    }

    .comparison-column {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }

    .comparison-panel {
        width: 310px;
    }

    .pricing-copy {
        text-align: center;
        align-items: center;
        max-width: 580px;
        order: -1;
    }

    .pricing-copy p {
        font-size: 1rem;
    }
}

@media (max-width: 640px) {
    .languages-header .section-subtitle {
        font-size: 2rem;
    }

    .languages-map {
        min-height: 320px;
        padding: 1.6rem 1.2rem 2.4rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .languages-chip {
        margin-bottom: 1.2rem;
    }

    .languages-dropdown {
        width: min(calc(100vw - 2.8rem), 280px);
        max-height: 240px;
    }

    .languages-bubble {
        margin-top: 2.8rem;
        gap: 1rem;
    }

    .languages-bubble .bubble-content {
        padding: 0.85rem 1.15rem;
    }

    .bubble-avatar {
        width: 100px;
        height: 100px;
    }

    .ai-bubble {
        order: 1;
    }

    .learner-bubble {
        order: 2;
    }
    
    .languages-track {
        animation-duration: 16s;
    }

    .comparison-column {
        width: 100%;
        display: flex;
        justify-content: center;
        gap: 0.75rem;
    }

    .comparison-panel {
        width: calc(50% - 0.75rem);
        max-width: none;
    }

    .pricing-heading {
        font-size: 2.2rem;
    }

    .pricing-copy {
        order: -1;
        align-items: center;
        text-align: center;
    }
}

/* Pricing Section */
.pricing-section {
    padding: clamp(5rem, 8vw, 6.5rem) 0;
    background: linear-gradient(180deg, #f7f9ff 0%, #eef2ff 100%);
}

.pricing-layout {
    display: flex;
    gap: 3rem;
    align-items: stretch;
    justify-content: space-between;
    flex-wrap: wrap;
}

.comparison-column {
    display: flex;
    gap: 1.5rem;
    align-items: stretch;
}

.comparison-panel {
    background: var(--color-surface);
    border-radius: 28px;
    padding: 1.9rem 1.9rem 2.4rem;
    box-shadow: 0 24px 46px rgba(15, 23, 42, 0.12);
    width: 280px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.comparison-panel.real-tutor {
    background: rgba(248, 250, 253, 0.9);
    box-shadow: none;
}

.panel-badge {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.32rem 1.05rem;
    border-radius: 999px;
    background: #d7dce5;
    color: #111827;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.panel-badge.accent {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-strong));
    color: #ffffff;
    box-shadow: 0 14px 26px rgba(37, 99, 235, 0.18);
}

.badge-icon {
    margin-left: 0;
}

.panel-avatar {
    width: 132px;
    height: 132px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 18px 34px rgba(37, 99, 235, 0.18);
    margin-bottom: 1.5rem;
    border: 2px solid rgba(148, 163, 184, 0.25);
    background: linear-gradient(150deg, rgba(248, 250, 255, 0.85), rgba(226, 232, 240, 0.9));
}

.panel-avatar.muted {
    filter: grayscale(100%);
    box-shadow: none;
}

.panel-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.panel-features {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.panel-features li {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1.25rem;
    border-radius: 18px;
    background: rgba(248, 250, 255, 0.82);
    box-shadow: 0 16px 26px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.comparison-panel.real-tutor .panel-features li {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: none;
}

.panel-features li div {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.95rem;
}

.panel-features li strong {
    font-weight: 600;
    color: var(--color-dark);
}

.panel-features li span {
    color: var(--color-primary);
    font-weight: 500;
}

.comparison-panel.real-tutor .panel-features li span {
    color: var(--color-muted);
}

.feature-icon {
    font-size: 1.3rem;
}

.pricing-copy {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    max-width: 500px;
}

.copy-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 1.1rem;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.12);
    color: var(--color-accent);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
}

.pricing-heading {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: var(--color-dark);
}

.pricing-heading span {
    color: var(--color-accent);
}

.pricing-copy p {
    color: var(--color-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.pricing-copy .copy-badge,
.pricing-copy .cta-button {
    align-self: center;
}

@media (max-width: 480px) {
    .comparison-column {
        gap: 0.6rem;
    }

    .comparison-panel {
        width: calc(50% - 0.6rem);
        padding: 1.4rem 1.35rem 2rem;
    }

    .panel-avatar {
        width: 110px;
        height: 110px;
        margin-bottom: 1.25rem;
    }

    .panel-features {
        gap: 0.75rem;
    }

    .panel-features li {
        padding: 0.7rem 0.8rem;
        gap: 0.7rem;
    }

    .panel-features li div {
        font-size: 0.85rem;
    }

    .panel-features li strong {
        font-size: 0.9rem;
    }

    .pricing-heading {
        font-size: 2rem;
    }
}

/* Testimonials Section */
.testimonials-section {
    padding: clamp(5rem, 8vw, 6.5rem) 0;
    background: linear-gradient(180deg, #ffffff 0%, #f5f7ff 100%);
}

.rating-badge {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: clamp(1.5rem, 4vw, 2.5rem) auto;
    padding: clamp(0.6rem, 2vw, 1rem);
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.1);
    box-shadow: 0 22px 44px rgba(37, 99, 235, 0.16);
}

.rating-badge__halo {
    position: absolute;
    inset: -18px;
    border-radius: 999px;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.14), transparent 65%);
    filter: blur(6px);
    pointer-events: none;
}

.rating-badge__content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    min-width: clamp(220px, 38vw, 280px);
    padding: clamp(1.25rem, 4vw, 1.75rem) clamp(1.5rem, 5vw, 2.5rem);
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(226, 236, 254, 0.95));
    border: 1px solid rgba(148, 163, 184, 0.18);
    backdrop-filter: blur(6px);
}

.rating-badge__score {
    font-size: clamp(2.25rem, 5vw, 2.9rem);
    font-weight: 700;
    color: #1f2937;
    line-height: 1;
}

.rating-badge__stars {
    display: inline-flex;
    gap: 0.35rem;
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    color: #fbbf24;
}

.rating-badge__label {
    font-size: clamp(0.8rem, 2.2vw, 0.95rem);
    font-weight: 500;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.rating-badge__label::after {
    content: '';
    display: block;
    width: 64px;
    height: 3px;
    margin: 0.6rem auto 0;
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.1) 0%, rgba(37, 99, 235, 0.6) 50%, rgba(37, 99, 235, 0.1) 100%);
    border-radius: 999px;
}

.testimonials-section .section-subtitle {
    text-align: center;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: var(--color-surface);
    padding: 2.2rem;
    border-radius: 20px;
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.08);
    border: 1.5px solid rgba(148, 163, 184, 0.18);
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    inset: -60% 40% 40% -40%;
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.12), transparent 60%);
    pointer-events: none;
}

.testimonial-text {
    margin-bottom: 1.6rem;
    font-style: italic;
    line-height: 1.65;
    color: var(--color-muted);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-author-info {
    display: flex;
    flex-direction: column;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(148, 163, 184, 0.3);
    box-shadow: 0 12px 20px rgba(37, 99, 235, 0.14);
}

.author-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.author-location {
    color: var(--color-muted);
    font-size: 0.92rem;
}

/* FAQ Section */
.faq-section {
    padding: clamp(5rem, 8vw, 6.5rem) 0;
    background: linear-gradient(180deg, #f8faff 0%, #eef2ff 100%);
}

.faq-list {
    max-width: 800px;
    margin: 3rem auto 0;
}

.faq-section .section-subtitle {
    text-align: center;
}

.faq-item {
    background: var(--color-surface);
    margin-bottom: 1rem;
    border-radius: 16px;
    box-shadow: 0 14px 24px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
}

.faq-question:hover {
    background: rgba(248, 250, 255, 0.82);
    color: var(--color-dark);
}

/* Footer */
.footer {
    background: radial-gradient(circle at top, #1f3b8a 0%, #0f172a 68%);
    color: #e2e8f0;
    padding: clamp(3rem, 8vw, 4.5rem) 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    align-items: flex-start;
}

.footer-brand .logo {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
}

.footer-tagline {
    margin-top: 0.75rem;
    color: rgba(226, 232, 240, 0.78);
    max-width: 360px;
    line-height: 1.6;
}

.footer-actions {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    width: 100%;
}

.footer-app-button {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(37, 99, 235, 0.55));
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 18px;
    text-decoration: none;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(148, 163, 184, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    max-width: 320px;
}

.footer-app-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 26px 50px rgba(15, 23, 42, 0.4);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.32), rgba(37, 99, 235, 0.68));
}

.footer-app-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.55);
    font-size: 1.4rem;
}

.footer-app-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    color: inherit;
}

.footer-app-text small {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(226, 232, 240, 0.76);
}

.footer-app-text strong {
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links a {
    color: rgba(226, 232, 240, 0.82);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        text-align: center;
        gap: 2.5rem;
    }

    .hero-copy {
        text-align: center;
        margin: 0 auto;
        grid-column: 1;
        grid-row: 1;
    }

    .hero-visual {
        grid-column: 1;
        grid-row: 2;
    }

    .hero-cta {
        grid-column: 1;
        grid-row: 3;
        justify-self: center;
    }

    .hero-subtitle {
        font-size: 2.5rem;
    }

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

    .hero-visual-scene {
        max-width: 360px;
        min-height: 360px;
    }

    .hero-figure--robo {
        width: clamp(200px, 40vw, 260px);
    }

    .hero-figure--alex,
    .hero-figure--sophia {
        width: clamp(130px, 30vw, 180px);
        --hero-translate-y: 0;
    }

    .hero-figure--elena,
    .hero-figure--benjamin {
        width: clamp(120px, 26vw, 165px);
    }

    .hero-figure--alex {
        --hero-translate-x: -60%;
        --hero-translate-y: 2%;
    }

    .hero-figure--sophia {
        --hero-translate-x: 60%;
        --hero-translate-y: 2%;
    }

    .hero-figure--elena {
        --hero-translate-x: -40%;
        --hero-translate-y: -80%;
    }

    .hero-figure--benjamin {
        --hero-translate-x: 40%;
        --hero-translate-y: -60%;
    }

    .section-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .section-subtitle {
        font-size: 2.5rem;
    }

    .improve-speaking .text-content {
        order: -1; /* Make text appear before image on mobile */
        text-align: center;
    }

    .improve-speaking .text-content > * {
        margin-left: auto;
        margin-right: auto;
    }

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

    .personalized-section .text-content > * {
        margin-left: auto;
        margin-right: auto;
    }

    .comparison-table {
        grid-template-columns: 1fr;
    }


    .footer-content {
        align-items: center;
        text-align: center;
    }

    .footer-actions {
        align-items: center;
    }

    .footer-links {
        justify-content: center;
    }
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .footer-actions {
        align-items: flex-end;
        width: auto;
        text-align: right;
    }

    .footer-links {
        justify-content: flex-end;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 6.5rem 0 4.5rem;
    }
    
    .hero-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 2rem;
    }

    .hero-copy {
        grid-row: 1;
        text-align: center;
    }

    .hero-visual {
        grid-row: 2;
    }

    .hero-cta {
        grid-row: 3;
        justify-self: center;
    }

    .hero-subtitle {
        font-size: 2rem;
    }

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

    .hero-visual-scene {
        max-width: 280px;
        min-height: 300px;
    }

    .hero-figure--robo {
        width: 200px;
    }

    .hero-figure--alex,
    .hero-figure--sophia {
        width: 145px;
        --hero-translate-y: 0;
    }

    .hero-figure--elena,
    .hero-figure--benjamin {
        width: 120px;
    }

    .hero-figure--alex {
        --hero-translate-x: -60%;
    }

    .hero-figure--sophia {
        --hero-translate-x: 60%;
    }

    .hero-figure--elena {
        --hero-translate-x: -40%;
        --hero-translate-y: -90%;
    }

    .hero-figure--benjamin {
        --hero-translate-x: 40%;
        --hero-translate-y: -70%;
    }

    .hero-cta {
        grid-column: 1;
        grid-row: 3;
    }
    
    .section-subtitle {
        font-size: 2rem;
    }
    
    .tutor-card {
        flex: 0 0 90%;
        min-width: 220px;
        width: auto;
    }
    
    .tutor-avatar {
        width: 140px;
        height: 140px;
    }
    
    .chat-interface-demo {
        min-height: 360px;
        padding: 0.1rem;
    }
    
    .improve-header {
        margin-bottom: 1.5rem;
    }
    
    .feedback-demo {
        min-height: 360px;
        padding: 0.1rem;
    }
    
    .feedback-header {
        margin-bottom: 1.5rem;
    }
    
    .skill-cards {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .language-buttons {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 320px;
        gap: 0.7rem;
    }
    
    .lang-btn {
        padding: 0.85rem 1rem;
        font-size: 0.95rem;
        min-height: 50px;
        box-shadow: 0 5px 12px rgba(15, 23, 42, 0.08);
    }
    
    .lang-btn .flag {
        font-size: 1.25rem;
    }
    
    .exercise-categories {
        max-width: 320px;
        gap: 0.6rem;
    }
    
    .category-item {
        padding: 0.65rem 0.85rem;
        font-size: 0.9rem;
    }
    
    .category-icon {
        font-size: 1.05rem;
    }
}

@media (max-width: 1024px) {
    .tutors-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .tutors-track {
        overflow: hidden;
    }
    
    .tutors-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1.25rem;
        padding: 0 0.75rem 1.5rem;
        max-width: none;
        justify-content: flex-start;
        scroll-padding-left: 0.75rem;
        scroll-padding-right: 0.75rem;
        margin: 0;
    }
    
    .tutors-grid {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    
    .tutors-grid::-webkit-scrollbar {
        display: none;
    }
    
    .tutor-card {
        flex: 0 0 80%;
        max-width: none;
        min-width: 240px;
        padding: 1.5rem;
        scroll-snap-align: center;
        width: auto;
    }
    
    .tutor-avatar {
        width: 160px;
        height: 160px;
    }
    
    .tutors-controls {
        display: flex;
    }
}
    .languages-map {
        min-height: 640px;
    }


/* Legal Pages */
.legal-page-body {
    background: #f8fafc;
}

.legal-page {
    max-width: min(960px, 90vw);
    margin: 0 auto;
    padding: clamp(3rem, 6vw, 5rem) var(--space-lg);
}

.legal-content {
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: clamp(2rem, 5vw, 3rem);
}

.legal-content h1,
.legal-content h2,
.legal-content h3 {
    color: var(--color-dark);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.legal-content h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-top: 0;
}

.legal-content h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-top: 2rem;
}

.legal-content h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.6rem);
    margin-top: 1.5rem;
}

.legal-content p {
    margin-bottom: 1rem;
    color: var(--color-text);
}

.legal-content p strong {
    font-weight: 600;
    color: var(--color-dark);
}

.legal-content a {
    color: var(--color-primary);
    text-decoration: underline;
}

.legal-content a:hover {
    text-decoration: none;
}

@media (max-width: 640px) {
    .legal-page {
        padding: clamp(2rem, 8vw, 2.5rem) var(--space-md);
    }

    .legal-content {
        padding: clamp(1.5rem, 6vw, 2rem);
    }
}
@media (max-width: 600px) {
    .nav-brand .logo {
        font-size: 1.2rem;
        gap: 0.45rem;
    }

    .logo-symbol {
        width: 26px;
        height: 26px;
        border-radius: 10px;
    }
}
