/**
 * Site CSS - Landing Page
 * Tema Light/Clean Moderno - Inspirado na imagem
 */

/* ============================================
   VARIÁVEIS CSS - TEMA LIGHT
   ============================================ */
:root {
    /* Cores Principais - Tema Gamificado */
    --primary: #6366f1; /* Roxo vibrante */
    --primary-dark: #4f46e5;
    --primary-light: #8b5cf6;
    --secondary: #f59e0b; /* Laranja gamificado */
    --secondary-dark: #d97706;
    --accent: #10b981; /* Verde sucesso */
    --accent-dark: #059669;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;

    /* Background */
    --bg-white: #ffffff;
    --bg-light: #fefefe;
    --bg-lighter: #f8fafc;
    --bg-card: #ffffff;
    --bg-hover: #f0f9ff;
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

    /* Text */
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --text-white: #ffffff;

    /* Borders */
    --border-light: #e5e7eb;
    --border-medium: #d1d5db;
    --border-dark: #9ca3af;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;
    --spacing-4xl: 8rem;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-secondary: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --gradient-accent: linear-gradient(135deg, #10b981 0%, #22c55e 100%);
    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-card: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);

    /* Transition */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ============================================
   SECTION DEFAULTS (faxina de espaçamento)
   ============================================ */
section {
    scroll-margin-top: 96px; /* header fixo */
}

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.container-wide {
    max-width: 1400px;
}

/* ============================================
   HEADER / NAVBAR
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
}

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

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    gap: var(--spacing-lg);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-fast);
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition-fast);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

/* Botões */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-white);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

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

.btn-outline:hover {
    background: var(--bg-lighter);
    border-color: var(--primary);
    color: var(--primary);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
}

/* ============================================
   HERO SECTION - GAMIFICADO
   ============================================ */
.hero {
    min-height: min(920px, 100vh);
    display: flex;
    align-items: center;
    padding: calc(82px + var(--spacing-3xl)) 0 var(--spacing-3xl);
    background-color: #dcecff;
    background:
        radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 30%),
        linear-gradient(120deg, #4f46e5 0%, #5b21b6 42%, #2563eb 100%);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: white;
}

.hero::before {
    content: '';
    position: absolute;
    left: -6%;
    right: -6%;
    bottom: -10%;
    height: clamp(180px, 28vw, 320px);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.88) 52%, rgba(255, 255, 255, 0.98) 100%);
    pointer-events: none;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 19%, rgba(255, 224, 120, 0.34) 0%, rgba(255, 224, 120, 0) 7%),
        radial-gradient(circle at 72% 26%, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 16%);
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
    justify-content: space-between;
    gap: clamp(2rem, 5vw, 4rem);
    min-height: clamp(520px, 66vh, 700px);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    max-width: 620px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: var(--radius-full);
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.18);
}

.hero-text h1 {
    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
    color: white;
    letter-spacing: -1px;
    text-shadow: 0 10px 24px rgba(15, 23, 42, 0.22);
}

.hero-text h1 .highlight {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.hero-text p {
    max-width: 580px;
    font-size: clamp(1.1rem, 1.8vw, 1.42rem);
    color: rgba(255, 255, 255, 0.96);
    margin-bottom: var(--spacing-xl);
    line-height: 1.8;
    text-shadow: 0 3px 14px rgba(30, 64, 175, 0.24);
}

.hero-actions {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.hero-actions .btn-primary {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #1e293b;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
    font-weight: 700;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.hero-actions .btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.6);
    background: linear-gradient(135deg, #ffed4e, #ffd700);
}

.hero-actions .btn-outline {
    background: rgba(129, 159, 255, 0.28);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.36);
    backdrop-filter: blur(10px);
    box-shadow: 0 12px 24px rgba(59, 130, 246, 0.18);
}

.hero-actions .btn-outline:hover {
    background: rgba(255, 255, 255, 0.24);
    border-color: rgba(255, 255, 255, 0.52);
    color: white;
    transform: translateY(-2px);
}

.hero-image {
    display: block;
    width: 100%;
    max-width: 480px;
    margin: 0 0 0 auto;
}

.hero-image img,
.hero-image iframe,
.hero-image svg {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}

/* Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-2xl);
}

.stat-item {
    text-align: center;
    padding: var(--spacing-md);
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ============================================
   COURSES SECTION
   ============================================ */
.courses-section,
.courses {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-white);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
    position: relative;
    margin-top: 0;
}

.section-header::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-full);
    color: var(--secondary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.section-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.section-header h2 .highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
    max-width: 100%;
}

.course-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.course-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.course-card:hover .course-image img {
    transform: scale(1.05);
}

.course-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--text-muted);
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.course-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(10px);
}

.course-badge.free {
    background: rgba(16, 185, 129, 0.9);
    color: white;
}

.course-badge.premium {
    background: rgba(99, 102, 241, 0.9);
    color: white;
}

.course-content {
    padding: var(--spacing-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-light);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.meta-item i {
    color: var(--primary);
    font-size: 0.9rem;
}

.course-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
}

.course-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.btn-course-action {
    padding: 0.75rem 1.5rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    flex: 1;
    justify-content: center;
}

.btn-course-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

/* Empty State */
.empty-courses {
    text-align: center;
    padding: var(--spacing-3xl);
    color: var(--text-secondary);
}

.empty-courses i {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-md);
}

.empty-courses h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-2xl);
}

.pagination-btn,
.pagination-number {
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-fast);
    border: 1px solid var(--border-light);
    background: var(--bg-white);
    color: var(--text-primary);
}

.pagination-btn:hover,
.pagination-number:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
    color: var(--primary);
}

.pagination-number.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features-section,
.features {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-2xl);
}

.feature-card {
    background: var(--gradient-card);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    transition: var(--transition-bounce);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-md);
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    transition: var(--transition-bounce);
    position: relative;
    z-index: 1;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-glow);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--text-primary);
    color: var(--text-white);
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
    margin-top: 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-xl);
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: var(--spacing-md);
    color: white;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition-fast);
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
    color: white;
}

.footer-links {
    list-style: none;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: block;
    padding: 0.5rem 0;
    transition: var(--transition-fast);
}

.footer-link:hover {
    color: white;
    padding-left: 4px;
}

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

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

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

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

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    /* Ocultar imagem/vídeo do hero no mobile */
    .hero-image {
        display: none !important;
    }

    .hero {
        padding: 110px 0 48px;
        min-height: auto;
        background-position: center top, center top, center center, 64% center;
        background-size: cover;
    }

    .hero::before,
    .hero::after {
        width: auto;
        height: auto;
    }

    .hero::before {
        left: -12%;
        right: -12%;
        bottom: -5%;
        height: 170px;
    }

    .hero::after {
        inset: 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
        min-height: auto;
    }

    .hero-text {
        text-align: center;
        max-width: none;
    }

    .hero-text h1 {
        font-size: clamp(2.4rem, 10vw, 3.5rem);
        line-height: 1.15;
    }

    .hero-text p {
        max-width: none;
        font-size: 1rem;
        line-height: 1.7;
    }

    .hero-badge {
        padding: 10px 16px;
        font-size: 0.85rem;
        max-width: 100%;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

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

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-md);
    }

    .hero {
        padding: 100px 0 40px;
        background-position: center top, center top, center center, 62% center;
    }

    .hero-text h1 {
        font-size: 1.85rem;
    }

    .hero-badge {
        width: 100%;
        justify-content: center;
    }

    .btn {
        padding: 0.65rem 1.25rem;
        font-size: 0.9rem;
    }

    .course-footer {
        flex-direction: column;
    }

    .btn-course-action {
        width: 100%;
    }
}

/* ============================================
   BADGES ADICIONAIS PARA CURSOS
   ============================================ */
.course-badge-featured {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 215, 0, 0.9);
    color: #000;
    backdrop-filter: blur(10px);
    z-index: 5;
}

.course-badge-order {
    position: absolute;
    top: 45px;
    left: 12px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(10px);
    z-index: 5;
}

.course-badge-order.badge-new {
    background: rgba(16, 185, 129, 0.9);
    color: white;
}

.course-badge-order.badge-popular {
    background: rgba(245, 158, 11, 0.9);
    color: white;
}

/* App Showcase Section */
.app-showcase-section {
    padding: var(--spacing-3xl) 0;
    background:
        radial-gradient(circle at top left, rgba(99, 102, 241, 0.08), transparent 26%),
        linear-gradient(180deg, #f8fafc 0%, #eef4ff 100%);
}

.app-showcase-grid {
    display: grid;
    gap: var(--spacing-xl);
}

.app-showcase-card {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.app-showcase-copy {
    padding: clamp(2rem, 4vw, 3rem);
}

.app-showcase-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 1rem;
    border-radius: var(--radius-full);
    background: rgba(99, 102, 241, 0.08);
    color: var(--primary-dark);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.app-showcase-copy h3 {
    font-size: clamp(1.6rem, 2vw, 2.25rem);
    line-height: 1.12;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.app-showcase-copy p {
    color: var(--text-secondary);
    font-size: 1.02rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    max-width: 52ch;
}

.app-showcase-list {
    list-style: none;
    display: grid;
    gap: 0.85rem;
}

.app-showcase-list li {
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.app-showcase-list li::before {
    content: '';
    position: absolute;
    top: 0.7rem;
    left: 0;
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--secondary) 0%, #facc15 100%);
    box-shadow: 0 0 0 5px rgba(245, 158, 11, 0.14);
}

.app-showcase-preview {
    position: relative;
    min-height: 100%;
    padding: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    isolation: isolate;
    background: var(--showcase-gradient, linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%));
}

.app-showcase-preview::before {
    content: '';
    position: absolute;
    inset: 20px;
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.16);
    z-index: -1;
}

.app-showcase-preview::after {
    content: '';
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: var(--showcase-glow, rgba(255, 255, 255, 0.18));
    filter: blur(28px);
    top: -50px;
    right: -40px;
    z-index: -1;
}

.app-preview-shell {
    width: min(100%, 360px);
    color: white;
}

.app-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.app-preview-header span {
    font-size: 0.98rem;
    letter-spacing: 0.01em;
}

.app-preview-highlight {
    font-size: clamp(1.6rem, 2vw, 2.2rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.35rem;
}

.app-preview-status {
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 1rem;
}

.app-preview-progress {
    width: 100%;
    height: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    overflow: hidden;
    margin-bottom: 1.4rem;
}

.app-preview-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #fde68a 0%, #f59e0b 45%, #fb7185 100%);
}

.app-preview-phone {
    width: min(100%, 240px);
    margin: 0 auto;
    padding: 12px;
    border-radius: 30px;
    background: rgba(15, 23, 42, 0.78);
    box-shadow: 0 24px 40px rgba(15, 23, 42, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.app-preview-screen {
    border-radius: 22px;
    padding: 1rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(15, 23, 42, 0.3) 100%);
    backdrop-filter: blur(8px);
}

.app-preview-screen-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.app-preview-pill,
.app-preview-score,
.app-preview-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
}

.app-preview-pill {
    padding: 0.35rem 0.7rem;
    background: rgba(34, 197, 94, 0.22);
    color: #dcfce7;
}

.app-preview-score {
    padding: 0.35rem 0.65rem;
    background: rgba(255, 255, 255, 0.16);
}

.app-preview-module-card {
    padding: 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: grid;
    gap: 0.35rem;
    margin-bottom: 1rem;
}

.app-preview-module-card strong {
    font-size: 0.96rem;
}

.app-preview-module-card span {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.78);
}

.app-preview-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
    margin-bottom: 0.9rem;
}

.app-preview-mini-grid span,
.app-preview-footer-row span {
    display: block;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
}

.app-preview-mini-grid span {
    height: 42px;
}

.app-preview-footer-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
}

.app-preview-footer-row span {
    height: 10px;
}

.app-preview-chip {
    position: absolute;
    padding: 0.45rem 0.85rem;
    background: rgba(255, 255, 255, 0.92);
    color: #312e81;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.16);
}

.app-preview-chip-top {
    top: 1.6rem;
    right: 1.5rem;
}

.app-preview-chip-bottom {
    left: 1.4rem;
    bottom: 1.8rem;
}

.app-showcase-missions {
    --showcase-gradient: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
    --showcase-glow: rgba(250, 204, 21, 0.28);
}

.app-showcase-goals {
    --showcase-gradient: linear-gradient(135deg, #9333ea 0%, #6d28d9 100%);
    --showcase-glow: rgba(255, 255, 255, 0.24);
}

.app-showcase-badges {
    --showcase-gradient: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    --showcase-glow: rgba(253, 224, 71, 0.24);
}

.app-showcase-notices {
    --showcase-gradient: linear-gradient(135deg, #6d28d9 0%, #4338ca 100%);
    --showcase-glow: rgba(96, 165, 250, 0.26);
}

/* Animações de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
    will-change: transform, opacity;
}

.fade-in-up:nth-child(1) { animation-delay: 0.1s; }
.fade-in-up:nth-child(2) { animation-delay: 0.2s; }
.fade-in-up:nth-child(3) { animation-delay: 0.3s; }
.fade-in-up:nth-child(4) { animation-delay: 0.4s; }
.fade-in-up:nth-child(5) { animation-delay: 0.5s; }
.fade-in-up:nth-child(6) { animation-delay: 0.6s; }

@media (max-width: 980px) {
    .app-showcase-card {
        grid-template-columns: 1fr;
    }

    .app-showcase-preview {
        min-height: 420px;
    }
}

@media (max-width: 768px) {
    .fade-in-up {
        animation: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}

@media (max-width: 640px) {
    .app-showcase-copy,
    .app-showcase-preview {
        padding: 1.25rem;
    }

    .app-showcase-card {
        border-radius: 24px;
    }

    .app-preview-chip {
        font-size: 0.68rem;
        padding: 0.4rem 0.7rem;
    }

    .app-preview-chip-top {
        top: 1rem;
        right: 1rem;
    }

    .app-preview-chip-bottom {
        left: 1rem;
        bottom: 1rem;
    }

    .app-preview-phone {
        width: min(100%, 220px);
    }
}
