/* Reset & Base */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #6C5CE7;
    --primary-light: #A29BFE;
    --primary-dark: #5A4BD1;
    --accent: #00CEC9;
    --bg: #FAFBFF;
    --bg-card: #FFFFFF;
    --text: #2D3436;
    --text-light: #636E72;
    --text-muted: #B2BEC3;
    --border: #E8ECF4;
    --shadow: 0 4px 24px rgba(108, 92, 231, 0.08);
    --shadow-lg: 0 12px 48px rgba(108, 92, 231, 0.12);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Badge */
.badge {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.1), rgba(0, 206, 201, 0.1));
    color: var(--primary);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    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-lg { padding: 18px 40px; font-size: 18px; border-radius: var(--radius); }
.btn-full { width: 100%; }

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(250, 251, 255, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo { display: flex; align-items: center; text-decoration: none; }
.logo-img { height: 40px; width: auto; }

.nav { display: flex; align-items: center; gap: 32px; }

.nav-link {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
}

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

.btn-nav {
    background: var(--primary);
    color: #fff !important;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
}

.btn-nav:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

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

/* Hero */
.hero {
    position: relative;
    padding: 140px 0 100px;
    overflow: hidden;
}

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

.hero-content h1 {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.15;
    margin: 16px 0 24px;
    background: linear-gradient(135deg, var(--text) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 32px;
    line-height: 1.7;
}

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

.hero-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.hero-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.hero-card:first-child { grid-column: 1 / -1; }

.emoji-big { font-size: 40px; margin-bottom: 8px; }

.hero-card p { font-weight: 600; color: var(--text); font-size: 15px; }

.hero-bg-shape {
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
}

/* Section */
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 40px; font-weight: 800; margin: 12px 0; }
.section-desc { color: var(--text-light); font-size: 18px; max-width: 600px; margin: 0 auto; }

/* About */
.about { padding: 100px 0; }

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.feature-icon { font-size: 40px; margin-bottom: 16px; }

.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }

.feature-card p { color: var(--text-light); font-size: 14px; line-height: 1.6; }

/* Lessons */
.lessons { padding: 100px 0; background: linear-gradient(180deg, #F0EDFF 0%, var(--bg) 100%); }

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

.lesson-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 28px;
    transition: var(--transition);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.lesson-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-light), var(--accent));
    opacity: 0;
    transition: var(--transition);
}

.lesson-card:hover::before,
.lesson-card.featured::before { opacity: 1; }

.lesson-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.lesson-card.featured {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-lg);
}

.lesson-number {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.lesson-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }

.lesson-card p { color: var(--text-light); margin-bottom: 20px; line-height: 1.6; }

.lesson-tags {
    list-style: none;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.lesson-tags li {
    padding: 4px 12px;
    background: rgba(108, 92, 231, 0.08);
    color: var(--primary);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
}

/* Signup */
.signup { padding: 100px 0; }

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

.signup-info h2 {
    font-size: 40px;
    font-weight: 800;
    margin: 12px 0 16px;
    line-height: 1.2;
}

.signup-info > p { color: var(--text-light); font-size: 17px; line-height: 1.7; margin-bottom: 32px; }

.signup-benefits { display: flex; flex-direction: column; gap: 16px; }

.benefit {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.benefit-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

/* Form */
.signup-form-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.signup-form h3 { font-size: 22px; font-weight: 700; margin-bottom: 4px; }

.form-subtitle { color: var(--text-light); margin-bottom: 24px; font-size: 15px; }

.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    color: var(--text);
}

.optional { font-weight: 400; color: var(--text-muted); }

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 15px;
    transition: var(--transition);
    background: var(--bg);
    outline: none;
}

.form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.1);
}

.form-group input.error { border-color: #FF6B6B; }

.error-msg { color: #FF6B6B; font-size: 13px; margin-top: 4px; display: block; min-height: 0; }

/* Checkbox */
.checkbox-group { margin-top: 4px; }

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] { display: none; }

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 5px;
    flex-shrink: 0;
    position: relative;
    transition: var(--transition);
    margin-top: 2px;
}

.checkbox-label input:checked + .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox-label input:checked + .checkmark::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 6px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label a { color: var(--primary); text-decoration: underline; }

/* Footer */
.footer {
    background: var(--text);
    color: #fff;
    padding: 40px 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo { height: 32px; filter: brightness(0) invert(1); margin-bottom: 8px; }

.footer-left p { font-size: 14px; color: rgba(255,255,255,0.6); }

.footer-right { display: flex; gap: 24px; }

.footer-right a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

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

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 24px;
}

.modal-overlay.active { display: flex; }

.modal {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 48px 40px;
    max-width: 440px;
    width: 100%;
    text-align: center;
    position: relative;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover { background: var(--border); color: var(--text); }

.modal-icon { font-size: 56px; margin-bottom: 16px; }

.modal h3 { font-size: 22px; font-weight: 700; margin-bottom: 12px; }

.modal p { color: var(--text-light); margin-bottom: 28px; line-height: 1.6; }

/* Mobile */
@media (max-width: 992px) {
    .hero-inner { grid-template-columns: 1fr; text-align: center; }
    .hero-content h1 { font-size: 40px; }
    .hero-visual { max-width: 400px; margin: 0 auto; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .signup-wrapper { grid-template-columns: 1fr; }
    .signup-info { text-align: center; }
    .signup-benefits { align-items: center; }
}

@media (max-width: 768px) {
    .nav { display: none; }
    .nav.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--bg-card);
        padding: 24px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
    }
    .burger { display: flex; }
    .burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .burger.active span:nth-child(2) { opacity: 0; }
    .burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
    .hero { padding: 120px 0 60px; }
    .hero-content h1 { font-size: 32px; }
    .section-header h2 { font-size: 28px; }
    .signup-info h2 { font-size: 28px; }
    .lessons-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .signup-form-wrapper { padding: 28px 20px; }
    .footer-inner { flex-direction: column; text-align: center; gap: 20px; }
}

/* Icon circles (replacing emojis) */
.icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}
.icon-circle.accent { background: linear-gradient(135deg, var(--accent), #00B4D8); }
.icon-circle.green { background: linear-gradient(135deg, #00B894, #55EFC4); }
.icon-text { color: #fff; font-weight: 800; font-size: 18px; letter-spacing: 1px; }

/* Feature icon styled */
.feature-icon-styled {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-weight: 800;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.feature-icon-styled.accent { background: linear-gradient(135deg, #A29BFE, #6C5CE7); }
.feature-icon-styled.green { background: linear-gradient(135deg, var(--accent), #00B4D8); }
.feature-icon-styled.orange { background: linear-gradient(135deg, #FDCB6E, #F39C12); }

/* Modal icon */
.modal-icon-styled-lg {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00B894, #55EFC4);
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

/* Enhanced checkbox visibility */
.checkbox-group {
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.04), rgba(0, 206, 201, 0.04));
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    margin-top: 8px;
    transition: var(--transition);
}
.checkbox-group:hover {
    border-color: var(--primary-light);
}
.checkbox-label {
    gap: 12px;
    font-size: 15px;
    color: var(--text);
}
.checkmark {
    width: 24px;
    height: 24px;
    border: 2.5px solid var(--primary-light);
    border-radius: 6px;
    margin-top: 0;
    background: #fff;
}
.checkbox-label:hover .checkmark {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.12);
}
.checkbox-label input:checked + .checkmark {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
}
.checkbox-label input:checked + .checkmark::after {
    top: 4px;
    left: 7px;
    width: 6px;
    height: 10px;
}
