/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    /* Colors */
    --primary: #0066FF;
    --primary-light: #3385FF;
    --primary-dark: #0052CC;
    --primary-extra-light: #E6F0FF;

    --secondary: #7C3AED;
    --secondary-light: #A78BFA;
    --secondary-dark: #6D28D9;

    --accent: #FF6B35;
    --accent-light: #FF8A5C;

    --text-primary: #1A202C;
    --text-secondary: #4A5568;
    --text-tertiary: #718096;

    --bg-white: #FFFFFF;
    --bg-light: #F7FAFC;
    --bg-gray: #EDF2F7;
    --border-gray: #E2E8F0;

    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;

    /* Typography */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Poppins', 'Inter', sans-serif;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;
    --space-5xl: 128px;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15), 0 10px 10px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 0 3px rgba(0, 102, 255, 0.1), 0 4px 12px rgba(0, 102, 255, 0.3);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    transition: var(--transition-base);
}

ul {
    list-style: none;
}

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

@media (min-width: 768px) {
    .container {
        padding: 0 40px;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 80px;
    }
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

h1 {
    font-size: clamp(36px, 8vw, 64px);
    font-weight: 800;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(28px, 6vw, 48px);
    font-weight: 700;
    letter-spacing: -0.015em;
}

h3 {
    font-size: clamp(22px, 4vw, 32px);
    font-weight: 600;
    letter-spacing: -0.01em;
}

h4 {
    font-size: clamp(18px, 3vw, 24px);
    font-weight: 600;
}

p {
    margin-bottom: var(--space-md);
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-md);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 18px;
    margin-bottom: var(--space-3xl);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    text-align: center;
    white-space: nowrap;
}

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

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

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
}

.btn-large {
    padding: 18px 36px;
    font-size: 18px;
}

.btn-full {
    width: 100%;
}

@media (hover: hover) {
    .btn-primary:hover {
        background: var(--primary-light);
        transform: translateY(-2px);
        box-shadow: 0 8px 16px rgba(0, 102, 255, 0.3);
    }

    .btn-secondary:hover {
        background: var(--primary);
        color: white;
    }

    .btn-ghost:hover {
        background: var(--bg-light);
    }
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition-base);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.logo a {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: none;
    gap: 32px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-secondary);
}

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

.cta-btn {
    display: none;
}

/* Hamburger Menu */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    height: 28px;
    z-index: 1001;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-base);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu */
@media (max-width: 1023px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 400px;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 40px;
        box-shadow: var(--shadow-lg);
        transition: right var(--transition-slow);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 24px;
    }
}

/* Desktop Navigation */
@media (min-width: 1024px) {
    .nav-links {
        display: flex;
    }

    .cta-btn {
        display: inline-block;
    }

    .hamburger {
        display: none;
    }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    margin-top: 64px;
}

.hero-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
    text-align: center;
}

.hero-content {
    order: 1;
}

.hero h1 {
    color: white;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: clamp(16px, 4vw, 20px);
    line-height: 1.7;
    opacity: 0.95;
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    margin-bottom: 32px;
}

.hero-buttons .btn-primary {
    background: white;
    color: var(--primary);
}

.hero-buttons .btn-ghost {
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.hero-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.9;
}

.stars {
    color: #FFD700;
    font-size: 20px;
}

.hero-image {
    order: 2;
    max-width: 500px;
    margin: 0 auto;
}

.hero-image-placeholder {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* Tablet */
@media (min-width: 768px) {
    .hero {
        padding: 140px 0 80px;
    }

    .hero-wrapper {
        gap: 48px;
    }

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

/* Desktop */
@media (min-width: 1024px) {
    .hero {
        padding: 160px 0 100px;
        min-height: 90vh;
        display: flex;
        align-items: center;
    }

    .hero-wrapper {
        flex-direction: row;
        gap: 64px;
        text-align: left;
        align-items: center;
    }

    .hero-content {
        flex: 1;
    }

    .hero-image {
        flex: 1;
        max-width: none;
    }

    .hero-buttons {
        justify-content: flex-start;
    }

    .hero-rating {
        flex-direction: row;
    }
}

/* ============================================
   BENEFITS SECTION
   ============================================ */
.benefits {
    padding: 80px 0;
    background: var(--bg-white);
}

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

.benefit-card {
    background: white;
    padding: 32px;
    border-radius: var(--radius-md);
    border: 2px solid var(--border-gray);
    text-align: center;
    transition: var(--transition-base);
}

.benefit-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.benefit-card h3 {
    margin-bottom: 12px;
    color: var(--text-primary);
}

.benefit-card p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

@media (hover: hover) {
    .benefit-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-md);
        border-color: var(--primary);
    }
}

/* Tablet */
@media (min-width: 768px) {
    .benefits {
        padding: 100px 0;
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .benefits {
        padding: 120px 0;
    }

    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================
   PROGRAM SECTION
   ============================================ */
.program {
    padding: 80px 0;
    background: var(--bg-light);
}

.program-accordion {
    max-width: 900px;
    margin: 0 auto 48px;
}

.accordion-item {
    background: white;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    overflow: hidden;
    border: 2px solid var(--border-gray);
    transition: var(--transition-base);
}

.accordion-item.active {
    border-color: var(--primary);
}

.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    text-align: left;
    cursor: pointer;
    transition: var(--transition-base);
}

.accordion-header:hover {
    background: var(--bg-light);
}

.accordion-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 16px;
}

.accordion-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--primary-extra-light);
    color: var(--primary);
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
}

.accordion-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-tertiary);
    font-size: 14px;
}

.accordion-icon {
    font-size: 24px;
    font-weight: 300;
    color: var(--primary);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-item.active .accordion-content {
    max-height: 500px;
}

.module-topics {
    padding: 0 20px 20px;
}

.module-topics li {
    padding: 12px 0;
    padding-left: 24px;
    border-bottom: 1px solid var(--border-gray);
    color: var(--text-secondary);
}

.module-topics li:last-child {
    border-bottom: none;
}

.program-cta {
    text-align: center;
}

/* Tablet & Desktop */
@media (min-width: 768px) {
    .program {
        padding: 100px 0;
    }

    .accordion-header {
        padding: 24px 32px;
    }

    .accordion-title {
        font-size: 18px;
    }

    .module-topics {
        padding: 0 32px 24px;
    }
}

/* ============================================
   INSTRUCTORS SECTION
   ============================================ */
.instructors {
    padding: 80px 0;
    background: white;
}

.instructors-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.instructor-card {
    background: white;
    border: 2px solid var(--border-gray);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    transition: var(--transition-base);
}

.instructor-image {
    margin-bottom: 24px;
}

.instructor-image-placeholder {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.instructor-card h3 {
    margin-bottom: 8px;
}

.instructor-title {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 16px !important;
}

.instructor-bio {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px !important;
}

.instructor-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 24px;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat strong {
    font-size: 24px;
    color: var(--primary);
}

.stat span {
    font-size: 14px;
    color: var(--text-tertiary);
}

.instructor-social {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.instructor-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-light);
    color: var(--text-secondary);
    font-weight: 600;
    transition: var(--transition-base);
}

.instructor-social a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

@media (hover: hover) {
    .instructor-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-md);
        border-color: var(--primary);
    }
}

/* Desktop */
@media (min-width: 768px) {
    .instructors {
        padding: 100px 0;
    }

    .instructors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 48px;
        max-width: 1000px;
    }
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonials {
    padding: 80px 0;
    background: var(--bg-light);
}

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

.testimonial-card {
    background: white;
    padding: 32px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

.testimonial-stars {
    color: #FFD700;
    font-size: 20px;
    margin-bottom: 16px;
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 24px !important;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: 700;
    flex-shrink: 0;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.author-info strong {
    color: var(--text-primary);
}

.author-info span {
    font-size: 14px;
    color: var(--text-tertiary);
}

@media (hover: hover) {
    .testimonial-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-md);
    }
}

/* Tablet */
@media (min-width: 768px) {
    .testimonials {
        padding: 100px 0;
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================
   PRICING SECTION
   ============================================ */
.pricing {
    padding: 80px 0;
    background: white;
}

.pricing-card {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    border: 2px solid var(--border-gray);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-md);
}

.pricing-badge {
    position: absolute;
    top: -16px;
    right: 24px;
    background: var(--accent);
    color: white;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    box-shadow: var(--shadow-md);
}

.pricing-card h3 {
    font-size: 28px;
    margin-bottom: 24px;
}

.pricing-price {
    margin-bottom: 16px;
}

.price-current {
    font-size: clamp(40px, 8vw, 56px);
    font-weight: 800;
    color: var(--primary);
    display: block;
    font-family: var(--font-heading);
}

.price-old {
    font-size: 24px;
    color: var(--text-tertiary);
    text-decoration: line-through;
    display: block;
    margin-top: 8px;
}

.pricing-note {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 32px !important;
}

.pricing-features {
    text-align: left;
    margin-bottom: 32px;
}

.pricing-features li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-gray);
    color: var(--text-secondary);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-guarantees {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.guarantee-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-tertiary);
}

/* Tablet & Desktop */
@media (min-width: 768px) {
    .pricing {
        padding: 100px 0;
    }

    .pricing-card {
        padding: 48px 40px;
    }
}

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

.faq-accordion {
    max-width: 800px;
    margin: 0 auto 48px;
}

.faq-item {
    background: white;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    overflow: hidden;
    border: 2px solid var(--border-gray);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    text-align: left;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition-base);
}

.faq-question:hover {
    background: var(--bg-light);
}

.faq-icon {
    font-size: 24px;
    font-weight: 300;
    color: var(--primary);
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer p {
    padding: 0 20px 20px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

.faq-cta {
    text-align: center;
}

.faq-cta p {
    margin-bottom: 16px;
    color: var(--text-secondary);
}

/* Tablet & Desktop */
@media (min-width: 768px) {
    .faq {
        padding: 100px 0;
    }

    .faq-question {
        padding: 24px 32px;
        font-size: 18px;
    }

    .faq-answer p {
        padding: 0 32px 24px;
    }
}

/* ============================================
   FINAL CTA SECTION
   ============================================ */
.final-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    text-align: center;
}

.final-cta-content h2 {
    color: white;
    margin-bottom: 16px;
}

.final-cta-content p {
    font-size: 18px;
    opacity: 0.95;
    margin-bottom: 32px;
}

.final-cta-content .btn {
    background: white;
    color: var(--primary);
    margin-bottom: 24px;
}

.final-cta-note {
    font-size: 14px;
    opacity: 0.9;
}

/* Desktop */
@media (min-width: 768px) {
    .final-cta {
        padding: 100px 0;
    }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 60px 0 32px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h4 {
    margin-bottom: 16px;
    font-size: 18px;
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-base);
}

.footer-column a:hover {
    color: white;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 16px;
}

.footer-column p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-weight: 600;
    transition: var(--transition-base);
}

.footer-social a:hover {
    background: var(--primary);
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

.footer-links {
    margin-top: 16px;
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
    color: white;
}

/* Tablet */
@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 48px;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .footer {
        padding: 80px 0 40px;
    }

    .footer-content {
        grid-template-columns: 2fr 1fr 1fr 1fr;
        gap: 64px;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Focus styles */
*:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .navbar,
    .hamburger,
    .hero-buttons,
    .final-cta,
    .footer-social {
        display: none;
    }

    body {
        font-size: 12pt;
        color: black;
    }
}
