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

:root {
    --brand: #ea3343;
    --brand-dark: #c41e2e;
    --brand-light: #ff5a6a;
    --brand-bg: #fff5f5;
    --dark: #1a1a2e;
    --gray: #6b6b80;
    --gray-light: #e8e8ed;
    --white: #ffffff;
    --radius: 16px;
    --shadow: 0 4px 24px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 32px rgba(234,51,67,0.15);
    --max-width: 1140px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    color: var(--dark);
    line-height: 1.6;
    background: var(--white);
    overflow-x: hidden;
}

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

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
    transition: box-shadow 0.3s;
}

.header.scrolled {
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}

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

.logo-img {
    height: 44px;
    width: auto;
}

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

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

.nav a:hover {
    color: var(--brand);
}

.nav-cta {
    background: var(--brand);
    color: var(--white) !important;
    padding: 8px 20px;
    border-radius: 100px;
    transition: background 0.2s, transform 0.2s;
}

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

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ===== Hero ===== */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8ec 50%, #ffdde3 100%);
    position: relative;
    overflow: hidden;
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
    max-width: 580px;
}

.hero-title {
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    color: var(--dark);
    margin-bottom: 20px;
}

.hero-title .accent {
    color: var(--brand);
}

.hero-subtitle {
    font-size: 18px;
    color: var(--gray);
    margin-bottom: 32px;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 28px;
    font-weight: 800;
    color: var(--brand);
}

.stat-label {
    font-size: 14px;
    color: var(--gray);
}

.hero-visual {
    flex: 0 0 340px;
    display: flex;
    justify-content: center;
}

.hero-logo {
    width: 280px;
    height: 280px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 60px rgba(234,51,67,0.2);
    animation: float 4s ease-in-out infinite;
}

.hero-logo-img {
    width: 160px;
    height: 160px;
}

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

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    line-height: 0;
}

.hero-wave svg {
    width: 100%;
    height: 80px;
}

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

.btn-primary {
    background: var(--brand);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(234,51,67,0.3);
}

.btn-primary:hover {
    background: var(--brand-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(234,51,67,0.4);
}

.btn-ghost {
    background: transparent;
    color: var(--dark);
    border: 2px solid var(--dark);
}

.btn-ghost:hover {
    background: var(--dark);
    color: var(--white);
}

.btn-white {
    background: var(--white);
    color: var(--brand);
}

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

.btn-full {
    width: 100%;
}

/* ===== Section Headers ===== */
.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--brand-bg);
    color: var(--brand);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    color: var(--dark);
}

.section-desc {
    font-size: 16px;
    color: var(--gray);
    margin-top: 12px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
}

.feature-card {
    padding: 36px 28px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--gray-light);
}

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

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

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark);
}

.feature-card p {
    font-size: 15px;
    color: var(--gray);
    line-height: 1.7;
}

/* ===== Courses ===== */
.courses {
    padding: 100px 0;
    background: #fafafa;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.course-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px 32px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    position: relative;
    border: 2px solid transparent;
}

.course-card:hover {
    transform: translateY(-4px);
}

.course-card.featured {
    border-color: var(--brand);
    transform: scale(1.03);
}

.course-card.featured:hover {
    transform: scale(1.03) translateY(-4px);
}

.course-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--brand);
    color: var(--white);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.course-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark);
}

.course-card > p {
    font-size: 15px;
    color: var(--gray);
    margin-bottom: 20px;
}

.course-card ul {
    list-style: none;
}

.course-card ul li {
    padding: 8px 0;
    font-size: 15px;
    color: var(--dark);
    padding-left: 28px;
    position: relative;
}

.course-card ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--brand);
    font-weight: 700;
}

/* ===== Games ===== */
.games {
    padding: 100px 0;
}

.games-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
}

.game-item {
    text-align: center;
    padding: 32px;
}

.game-emoji {
    font-size: 48px;
    margin-bottom: 20px;
}

.game-item h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark);
}

.game-item p {
    font-size: 15px;
    color: var(--gray);
}

/* ===== CTA ===== */
.cta-section {
    padding: 80px 0 100px;
    background: #fafafa;
}

.cta-box {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    border-radius: 32px;
    padding: 64px 40px;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.cta-white-logo {
    margin-bottom: 24px;
}

.cta-white-logo img {
    height: 60px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

.cta-title {
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 800;
    margin-bottom: 12px;
}

.cta-text {
    font-size: 17px;
    opacity: 0.9;
    margin-bottom: 32px;
    line-height: 1.8;
}

.cta-actions {
    margin-bottom: 32px;
}

.cta-contact {
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.2);
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.cta-contact p {
    font-size: 15px;
    opacity: 0.9;
}

/* ===== Booking Form ===== */
.booking-form-wrap {
    max-width: 500px;
    margin: 0 auto 32px;
}

.booking-form {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    text-align: left;
}

.form-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.form-row input,
.form-row select {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--gray-light);
    border-radius: 10px;
    font-size: 15px;
    font-family: var(--font);
    color: var(--dark);
    transition: border-color 0.2s;
}

.form-row input:focus,
.form-row select:focus {
    outline: none;
    border-color: var(--brand);
}

.form-row input::placeholder {
    color: #aaa;
}

.form-note {
    text-align: center;
    font-size: 13px;
    color: var(--gray);
    margin-top: 12px;
}

.booking-form .btn-primary {
    background: var(--brand);
}

/* ===== Footer ===== */
.footer {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    padding: 40px 0;
}

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

.footer-logo-img {
    height: 40px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer-info p {
    font-size: 14px;
}

.footer-domain {
    color: var(--brand-light);
    font-weight: 600;
}

.footer-copy p {
    font-size: 13px;
    opacity: 0.6;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .nav {
        display: none;
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    }

    .nav.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .hero-inner {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
        gap: 24px;
    }

    .hero-visual {
        flex: none;
    }

    .hero-logo {
        width: 200px;
        height: 200px;
    }

    .hero-logo-img {
        width: 120px;
        height: 120px;
    }

    .course-card.featured {
        transform: none;
    }

    .course-card.featured:hover {
        transform: translateY(-4px);
    }

    .cta-contact {
        flex-direction: column;
        gap: 12px;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .form-row {
        flex-direction: column;
    }
}
