:root {
    --color-bg: #f9fafb;
    --color-bg-alt: #f3f4f6;
    --color-primary: #ff8c00;
    --color-primary-dark: #e67600;
    --color-secondary: #8a2be2;
    --color-accent: #005ca9;
    --color-content: #222;
    --color-muted: #666;
    --radius: 0.7rem;
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
    --shadow-strong: 0 8px 32px rgba(255, 140, 0, 0.12);
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: "Segoe UI", "Noto Sans", Arial, sans-serif;
    background: var(--color-bg);
    color: var(--color-content);
    margin: 0;
    line-height: 1.7;
    font-size: 1.07rem;
}

.header {
    background: #fff;
    border-bottom: 2px solid var(--color-primary);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-primary);
    text-decoration: none;
    letter-spacing: 0.01em;
}

.logo-icon {
    width: 34px;
    height: 34px;
    margin-right: 0.6rem;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
}

.language-toggle {
    display: flex;
    background: var(--color-bg-alt);
    border-radius: var(--radius);
    padding: 0.2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.lang-btn {
    background: transparent;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--color-primary-dark);
    transition:
        background var(--transition),
        color var(--transition);
    margin: 0 0.1rem;
}

.lang-btn.active {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(255, 140, 0, 0.12);
}

.lang-btn:hover:not(.active) {
    background: var(--color-secondary);
    color: #fff;
}

/* Hero */
.hero {
    background: linear-gradient(
        120deg,
        var(--color-primary) 0%,
        var(--color-secondary) 100%
    );
    color: #fff;
    padding: 4rem 0 3rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    letter-spacing: 0.01em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #fff;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all var(--transition);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    color: #fff;
    transform: translateY(-2px) scale(1.03);
}

.btn-secondary {
    background: #fff;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background: var(--color-secondary);
    color: #fff;
    border-color: var(--color-secondary);
}

/* Features */
.features {
    padding: 3.5rem 0;
    background: var(--color-bg-alt);
}

.features h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2.5rem;
    color: var(--color-primary-dark);
    font-weight: 800;
}

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

.feature-card {
    background: #fff;
    padding: 2rem 1.5rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--color-primary);
    transition:
        transform var(--transition),
        border-color var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px) scale(1.02);
    border-left: 5px solid var(--color-secondary);
}

.feature-icon {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.7rem;
    color: var(--color-primary-dark);
}

.feature-card p {
    color: var(--color-content);
    font-size: 1rem;
}

/* Video Section */
.video-section {
    padding: 3.5rem 0;
    background: #fff;
    text-align: center;
}

.video-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--color-primary-dark);
    font-weight: 800;
}

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto 1.5rem auto;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: var(--radius);
    box-shadow: var(--shadow-strong);
    overflow: hidden;
}
.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: var(--radius);
}

.video-caption {
    color: var(--color-muted);
    font-size: 1.05rem;
    margin-top: 1rem;
}

/* Book Offer */
.book-offer {
    padding: 3.5rem 0;
    background: var(--color-bg-alt);
}

.book-offer-flex {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.book-image img {
    width: 100%;
    max-width: 260px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-strong);
}

.book-details {
    flex: 1;
}

.book-details h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--color-primary-dark);
}

.book-details ul {
    list-style: none;
    margin-bottom: 1.5rem;
    padding-left: 0;
}

.book-details li {
    margin-bottom: 0.7rem;
    color: var(--color-content);
}

.book-cta {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.book-guarantee {
    color: var(--color-muted);
    font-size: 0.98rem;
    margin-top: 1rem;
}

/* Testimonials */
.testimonials {
    padding: 3.5rem 0;
    background: #fff;
}

.testimonials h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2.5rem;
    color: var(--color-primary-dark);
    font-weight: 800;
}

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

.testimonial-card {
    background: var(--color-bg-alt);
    padding: 2rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
    transition: transform var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-2px) scale(1.01);
}

.testimonial-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid var(--color-primary);
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 1rem;
    color: var(--color-content);
    line-height: 1.6;
}

.testimonial-author strong {
    color: var(--color-secondary);
    display: block;
    margin-bottom: 0.2rem;
}

.testimonial-author span {
    color: var(--color-muted);
    font-size: 0.95rem;
}

/* FAQ */
.faq {
    padding: 3.5rem 0;
    background: var(--color-bg-alt);
}

.faq h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2.5rem;
    color: var(--color-primary-dark);
    font-weight: 800;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.faq-item {
    background: #fff;
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.faq-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.7rem;
    color: var(--color-primary-dark);
}

.faq-item p {
    color: var(--color-content);
    line-height: 1.6;
}

/* Footer */
.footer {
    background: var(--color-primary-dark);
    color: #fff;
    padding: 2.5rem 0 1.2rem 0;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    transition: color var(--transition);
    font-weight: 500;
    padding: 0.2rem 0.7rem;
    border-radius: var(--radius);
}

.footer-links a:hover {
    color: var(--color-secondary);
    background: #fff;
}

.footer p {
    color: #ffe;
    font-size: 0.95rem;
}

.webgame-note {
    margin-top: 1.5rem;
    color: #ffe;
    font-size: 0.93rem;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 900px) {
    .container {
        padding: 0 1rem;
    }
    .book-offer-flex {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    .features-grid,
    .testimonials-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .nav {
        flex-direction: column;
        gap: 1rem;
    }
    .hero h1 {
        font-size: 1.5rem;
    }
    .cta-buttons {
        flex-direction: column;
        gap: 0.7rem;
    }
    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Accessibility */
.btn:focus,
.lang-btn:focus,
.footer-links a:focus {
    outline: 2px solid var(--color-secondary);
    outline-offset: 2px;
}
