/* ===== CSS VARIABLES & THEMES ===== */
:root {
    /* Light theme (default) */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F7F8FC;
    --bg-tertiary: #EEF0F6;
    --bg-card: #FFFFFF;
    --bg-card-hover: #F7F8FC;
    --text-primary: #1A1D2E;
    --text-secondary: #5A5F7A;
    --text-tertiary: #8B90A5;
    --border: #E2E5F0;
    --border-light: #F0F1F7;
    --accent-1: #6C5CE7;
    --accent-2: #00B4D8;
    --accent-gradient: linear-gradient(135deg, #6C5CE7 0%, #00B4D8 100%);
    --accent-gradient-text: linear-gradient(135deg, #6C5CE7 0%, #00B4D8 100%);
    --accent-soft: rgba(108, 92, 231, 0.08);
    --accent-soft-2: rgba(0, 180, 216, 0.08);
    --shadow-sm: 0 1px 3px rgba(26, 29, 46, 0.06);
    --shadow-md: 0 4px 16px rgba(26, 29, 46, 0.08);
    --shadow-lg: 0 8px 32px rgba(26, 29, 46, 0.1);
    --shadow-xl: 0 16px 48px rgba(26, 29, 46, 0.12);
    --glass: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --header-bg: rgba(255, 255, 255, 0.85);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', var(--font-sans);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Dark theme */
[data-theme="dark"] {
    --bg-primary: #0F1119;
    --bg-secondary: #161825;
    --bg-tertiary: #1E2030;
    --bg-card: #1A1D2E;
    --bg-card-hover: #222540;
    --text-primary: #F0F1F7;
    --text-secondary: #A0A4B8;
    --text-tertiary: #6B7090;
    --border: #2A2D42;
    --border-light: #222540;
    --accent-soft: rgba(108, 92, 231, 0.15);
    --accent-soft-2: rgba(0, 180, 216, 0.12);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.35);
    --glass: rgba(22, 24, 37, 0.8);
    --glass-border: rgba(42, 45, 66, 0.5);
    --header-bg: rgba(15, 17, 25, 0.85);
}

/* System theme via media query */
@media (prefers-color-scheme: dark) {
    [data-theme="system"] {
        --bg-primary: #0F1119;
        --bg-secondary: #161825;
        --bg-tertiary: #1E2030;
        --bg-card: #1A1D2E;
        --bg-card-hover: #222540;
        --text-primary: #F0F1F7;
        --text-secondary: #A0A4B8;
        --text-tertiary: #6B7090;
        --border: #2A2D42;
        --border-light: #222540;
        --accent-soft: rgba(108, 92, 231, 0.15);
        --accent-soft-2: rgba(0, 180, 216, 0.12);
        --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
        --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.25);
        --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
        --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.35);
        --glass: rgba(22, 24, 37, 0.8);
        --glass-border: rgba(42, 45, 66, 0.5);
        --header-bg: rgba(15, 17, 25, 0.85);
    }
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background var(--transition), color var(--transition);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

button {
    border: none;
    background: none;
    cursor: pointer;
    font: inherit;
    color: inherit;
}

/* ===== CONTAINER ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== TYPOGRAPHY ===== */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 5vw, 44px);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: clamp(15px, 2vw, 18px);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.gradient-text {
    background: var(--accent-gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all var(--transition);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn--primary {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 4px 16px rgba(108, 92, 231, 0.3);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(108, 92, 231, 0.4);
}

.btn--primary:active {
    transform: translateY(0);
}

.btn--outline {
    border: 2px solid var(--border);
    color: var(--text-primary);
    background: transparent;
}

.btn--outline:hover {
    border-color: var(--accent-1);
    color: var(--accent-1);
    background: var(--accent-soft);
}

.btn--sm {
    font-size: 14px;
    padding: 10px 20px;
}

.btn--lg {
    font-size: 16px;
    padding: 14px 28px;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--header-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    transition: all var(--transition);
}

.header--scrolled {
    box-shadow: var(--shadow-md);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    z-index: 1001;
}

.logo__icon {
    font-size: 24px;
}

.nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 1000;
}

.nav--open {
    display: flex;
}

.nav__link {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition);
    position: relative;
}

.nav__link:hover,
.nav__link:focus {
    color: var(--accent-1);
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1001;
}

.header__cta {
    display: none;
}

/* Theme toggle */
.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    transition: all var(--transition);
}

.theme-toggle:hover {
    background: var(--accent-soft);
    color: var(--accent-1);
}

.theme-icon { display: none; }
[data-theme="light"] .theme-icon--light { display: block; }
[data-theme="dark"] .theme-icon--dark { display: block; }
[data-theme="system"] .theme-icon--system { display: block; }

@media (prefers-color-scheme: light) {
    [data-theme="system"] .theme-icon--system { display: block; }
}
@media (prefers-color-scheme: dark) {
    [data-theme="system"] .theme-icon--system { display: block; }
}

/* Burger */
.burger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 24px;
    padding: 4px 0;
}

.burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition);
}

.burger--open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger--open span:nth-child(2) {
    opacity: 0;
}

.burger--open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 100px 0 40px;
    position: relative;
    overflow: hidden;
}

.hero__bg-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero__shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.hero__shape--1 {
    width: 300px;
    height: 300px;
    background: rgba(108, 92, 231, 0.3);
    top: -50px;
    right: -50px;
    animation: float 8s ease-in-out infinite;
}

.hero__shape--2 {
    width: 250px;
    height: 250px;
    background: rgba(0, 180, 216, 0.2);
    bottom: 10%;
    left: -80px;
    animation: float 10s ease-in-out infinite reverse;
}

.hero__shape--3 {
    width: 200px;
    height: 200px;
    background: rgba(108, 92, 231, 0.15);
    top: 40%;
    right: 20%;
    animation: float 12s ease-in-out infinite 2s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -20px) scale(1.05); }
    66% { transform: translate(-10px, 15px) scale(0.95); }
}

.hero__inner {
    position: relative;
    z-index: 1;
}

.hero__content {
    text-align: center;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--accent-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 500;
    color: var(--accent-1);
    margin-bottom: 24px;
}

.hero__badge-dot {
    width: 8px;
    height: 8px;
    background: #00D26A;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(32px, 7vw, 60px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.hero__subtitle {
    font-size: clamp(16px, 2.5vw, 20px);
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

.hero__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    margin-bottom: 40px;
}

.hero__stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.hero__stat {
    text-align: center;
}

.hero__stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.hero__stat-label {
    font-size: 13px;
    color: var(--text-tertiary);
}

/* Hero visual */
.hero__visual {
    display: none;
}

.hero__card-stack {
    position: relative;
    width: 100%;
    height: 350px;
}

.hero__floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    font-weight: 600;
    font-size: 15px;
    animation: float-card 6s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.hero__floating-card:hover {
    transform: scale(1.05);
}

.hero__floating-icon {
    font-size: 28px;
}

.hero__floating-card--1 { top: 20px; left: 10%; animation-delay: 0s; }
.hero__floating-card--2 { top: 100px; right: 5%; animation-delay: 1.5s; }
.hero__floating-card--3 { top: 190px; left: 5%; animation-delay: 3s; }
.hero__floating-card--4 { top: 270px; right: 15%; animation-delay: 4.5s; }

@keyframes float-card {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* AI Orbit */
.hero__ai-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    pointer-events: none;
}

.hero__orbit-ring {
    position: absolute;
    inset: 0;
    border: 2px dashed var(--border);
    border-radius: 50%;
    animation: spin 20s linear infinite;
}

.hero__orbit-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: spin 20s linear infinite;
}

.hero__orbit-dot--1 {
    background: var(--accent-1);
    top: -6px;
    left: calc(50% - 6px);
}

.hero__orbit-dot--2 {
    background: var(--accent-2);
    bottom: 20%;
    right: -6px;
    animation-delay: -7s;
}

.hero__orbit-dot--3 {
    background: #FF6B6B;
    bottom: -6px;
    left: 30%;
    animation-delay: -14s;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* Scroll hint */
.hero__scroll-hint {
    display: flex;
    justify-content: center;
    margin-top: auto;
    padding-top: 20px;
}

.hero__scroll-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--text-tertiary);
    border-radius: 12px;
    position: relative;
    opacity: 0.5;
}

.hero__scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--text-tertiary);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: calc(50% - 2px);
    animation: scroll-wheel 2s ease-in-out infinite;
}

@keyframes scroll-wheel {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(12px); }
}

/* ===== MARQUEE ===== */
.marquee {
    padding: 20px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    overflow: hidden;
}

.marquee__track {
    display: flex;
    width: max-content;
}

.marquee__content {
    display: flex;
    gap: 40px;
    animation: marquee 30s linear infinite;
    padding-right: 40px;
}

.marquee__item {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-tertiary);
    white-space: nowrap;
}

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

/* ===== FEATURES ===== */
.features {
    padding: 80px 0;
}

.features__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.feature-card {
    padding: 28px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-1);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-card__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    border-radius: var(--radius-md);
    color: var(--accent-1);
    margin-bottom: 16px;
    transition: all var(--transition);
}

.feature-card:hover .feature-card__icon {
    background: var(--accent-gradient);
    color: #fff;
    transform: scale(1.1);
}

.feature-card__title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-card__text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== COURSES ===== */
.courses {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.courses__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.course-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition);
    position: relative;
}

.course-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.course-card__badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}

.course-card__badge--popular {
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
}

.course-card__badge--new {
    background: linear-gradient(135deg, #00D26A, #00B4D8);
}

.course-card__image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.course-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.course-card:hover .course-card__image img {
    transform: scale(1.08);
}

.course-card__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
}

.course-card__category {
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    border-radius: var(--radius-full);
}

.course-card__body {
    padding: 20px;
}

.course-card__title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
}

.course-card__desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.5;
}

.course-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--text-tertiary);
}

.course-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}

.course-card__price-old {
    font-size: 14px;
    color: var(--text-tertiary);
    text-decoration: line-through;
    margin-right: 8px;
}

.course-card__price-new {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    background: var(--accent-gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== HOW IT WORKS ===== */
.how {
    padding: 80px 0;
}

.how__timeline {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
}

.how__timeline::before {
    content: '';
    position: absolute;
    left: 27px;
    top: 60px;
    bottom: 60px;
    width: 2px;
    background: var(--border);
}

.how__step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    position: relative;
}

.how__step-number {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gradient);
    color: #fff;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    border-radius: var(--radius-md);
    position: relative;
    z-index: 1;
}

.how__step-content h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    margin-top: 4px;
}

.how__step-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== STATS ===== */
.stats {
    padding: 60px 0;
    background: var(--bg-secondary);
}

.stats__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.stats__item {
    text-align: center;
    padding: 24px 16px;
}

.stats__number {
    font-family: var(--font-display);
    font-size: clamp(32px, 6vw, 48px);
    font-weight: 700;
    background: var(--accent-gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline;
}

.stats__label {
    display: block;
    font-size: 13px;
    color: var(--text-tertiary);
    margin-top: 4px;
}

/* ===== REVIEWS ===== */
.reviews {
    padding: 80px 0;
}

.reviews__slider {
    overflow: hidden;
    position: relative;
    touch-action: pan-y;
}

.reviews__track {
    display: flex;
    gap: 20px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.review-card {
    flex: 0 0 calc(100% - 0px);
    min-width: 0;
    padding: 28px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    transition: all var(--transition);
}

.review-card__stars {
    font-size: 16px;
    margin-bottom: 16px;
}

.review-card__text {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}

.review-card__author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-card__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.review-card__name {
    font-weight: 600;
    font-size: 15px;
}

.review-card__role {
    font-size: 13px;
    color: var(--text-tertiary);
}

.reviews__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.reviews__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    padding: 0;
}

.reviews__dot--active {
    background: var(--accent-1);
    width: 24px;
    border-radius: 4px;
}

/* ===== FAQ ===== */
.faq {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.faq__list {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq__item {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
}

.faq__item:hover {
    border-color: var(--accent-1);
}

.faq__question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    gap: 16px;
}

.faq__icon {
    flex-shrink: 0;
    transition: transform var(--transition);
    color: var(--text-tertiary);
}

.faq__item--open .faq__icon {
    transform: rotate(180deg);
    color: var(--accent-1);
}

.faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq__answer p {
    padding: 0 20px 18px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== CTA ===== */
.cta {
    padding: 80px 0;
}

.cta__card {
    position: relative;
    padding: 48px 24px;
    background: var(--accent-gradient);
    border-radius: var(--radius-xl);
    text-align: center;
    overflow: hidden;
}

.cta__content {
    position: relative;
    z-index: 1;
}

.cta__title {
    font-family: var(--font-display);
    font-size: clamp(24px, 5vw, 36px);
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.2;
}

.cta__title .gradient-text {
    background: linear-gradient(135deg, #FFE66D, #FF6B6B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta__text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
    max-width: 500px;
    margin: 0 auto 24px;
    line-height: 1.6;
}

.cta__actions .btn {
    background: #fff;
    color: var(--accent-1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.cta__actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.cta__note {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    margin-top: 16px;
}

.cta__shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.cta__shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.cta__shape--1 {
    width: 200px;
    height: 200px;
    top: -80px;
    right: -40px;
}

.cta__shape--2 {
    width: 150px;
    height: 150px;
    bottom: -60px;
    left: -30px;
}

/* ===== FOOTER ===== */
.footer {
    padding: 48px 0 24px;
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border-light);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

.footer__brand .logo {
    margin-bottom: 12px;
}

.footer__desc {
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 300px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.footer__socials {
    display: flex;
    gap: 12px;
}

.footer__social {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    transition: all var(--transition);
}

.footer__social:hover {
    background: var(--accent-gradient);
    color: #fff;
    transform: translateY(-2px);
}

.footer__heading {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer__col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__link {
    font-size: 14px;
    color: var(--text-secondary);
    transition: color var(--transition);
}

.footer__link:hover {
    color: var(--accent-1);
}

.footer__bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 13px;
    color: var(--text-tertiary);
}

/* ===== ANIMATIONS ===== */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    transition-delay: calc(var(--delay, 0) * 0.1s);
}

.reveal-up.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE — TABLET ===== */
@media (min-width: 640px) {
    .container { padding: 0 32px; }

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

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

    .hero__actions {
        flex-direction: row;
        justify-content: center;
    }

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

    .review-card {
        flex: 0 0 calc(50% - 10px);
    }
}

/* ===== RESPONSIVE — DESKTOP ===== */
@media (min-width: 1024px) {
    .container { padding: 0 40px; }

    /* Nav desktop */
    .nav {
        display: flex;
        position: static;
        flex-direction: row;
        gap: 32px;
        background: none;
    }

    .nav__link {
        font-size: 14px;
    }

    .nav__link::after {
        content: '';
        position: absolute;
        bottom: -4px;
        left: 0;
        right: 0;
        height: 2px;
        background: var(--accent-gradient);
        transform: scaleX(0);
        transition: transform var(--transition);
    }

    .nav__link:hover::after {
        transform: scaleX(1);
    }

    .burger { display: none; }

    .header__cta { display: inline-flex; }

    /* Hero desktop */
    .hero {
        padding: 120px 0 60px;
    }

    .hero__inner {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 60px;
        align-items: center;
    }

    .hero__content {
        text-align: left;
    }

    .hero__subtitle {
        margin: 0 0 32px 0;
    }

    .hero__actions {
        justify-content: flex-start;
    }

    .hero__stats {
        justify-content: flex-start;
    }

    .hero__visual {
        display: block;
    }

    /* Features */
    .features { padding: 100px 0; }

    .features__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }

    /* Courses */
    .courses { padding: 100px 0; }

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

    /* Stats */
    .stats__grid {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Reviews */
    .reviews { padding: 100px 0; }

    .review-card {
        flex: 0 0 calc(33.333% - 14px);
    }

    /* How */
    .how { padding: 100px 0; }

    /* FAQ */
    .faq { padding: 100px 0; }

    /* CTA */
    .cta { padding: 100px 0; }
    .cta__card { padding: 72px 48px; }

    /* Footer */
    .footer { padding: 64px 0 32px; }

    .footer__grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

/* Large desktop */
@media (min-width: 1280px) {
    .courses__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal-up {
        opacity: 1;
        transform: none;
    }
}

/* Focus visible */
:focus-visible {
    outline: 2px solid var(--accent-1);
    outline-offset: 2px;
}

/* Selection */
::selection {
    background: rgba(108, 92, 231, 0.2);
    color: var(--text-primary);
}
