/* Reset e configurações base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Cores da Atividade Digital */
    --primary-color: #3700FE;
    --secondary-color: #2BD9E2;
    --text-primary: #1f1f1f;
    --text-secondary: #666;
    --text-light: #8f9091;
    --background: #ffffff;
    --background-light: #f8f9fa;
    --background-grey: #f0f0f0;
    --border-light: #e8eaed;
    --border-medium: #dadce0;
    --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-strong: 0 4px 16px rgba(0, 0, 0, 0.12);
    --radius-small: 8px;
    --radius-medium: 12px;
    --radius-large: 16px;
    --radius-xl: 24px;

    /* Typography */
    --font-family: 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-family-headings: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-xs: 14px;
    --font-size-sm: 16px;
    --font-size-base: 18px;
    --font-size-lg: 20px;
    --font-size-xl: 24px;
    --font-size-2xl: 32px;
    --font-size-3xl: 40px;
    --font-size-4xl: 48px;

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

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Layout containers */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-sm);
    }
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-family-headings);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

h1 {
    font-size: var(--font-size-4xl);
    line-height: 1.2;
}

h2 {
    font-size: var(--font-size-3xl);
    line-height: 1.25;
}

h3 {
    font-size: var(--font-size-xl);
    line-height: 1.3;
}

p {
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

@media (max-width: 768px) {
    h1 {
        font-size: var(--font-size-3xl);
    }

    h2 {
        font-size: var(--font-size-2xl);
    }

    h3 {
        font-size: var(--font-size-lg);
    }
}

/* Buttons */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: var(--radius-large);
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.cta-button.primary {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-medium);
}

.cta-button.primary:hover {
    background: #0577a3;
    box-shadow: var(--shadow-strong);
    transform: translateY(-1px);
}

.cta-button.large {
    padding: 18px 40px;
    font-size: var(--font-size-base);
}

.text-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.text-link:hover {
    color: #0577a3;
}

/* Header */
.main-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafe 100%);
    padding: 30px 0 30px 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo img {
    height: 52px;
    width: auto;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

.header-logo:hover img {
    transform: scale(1.05);
}

.header-nav {
    display: flex;
    align-items: center;
}

.header-btn {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 14px 24px;
    background: white;
    /* border: 2px solid var(--primary-color); */
    border-radius: 30px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--font-size-sm);
    transition: all 0.3s ease;
    /* box-shadow: 0 4px 12px rgba(55, 0, 254, 0.15); */
}

.header-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(55, 0, 254, 0.3);
}

.header-btn span {
    font-size: 1.1em;
}

/* Hero Section - Novo Design Inspirado no Vimeo */
.hero-new {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafe 100%);
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    position: relative;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 80px);
}

.hero-main {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
    padding: var(--space-3xl) 0;
}

.hero-content {
    max-width: 600px;
}



.hero-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.hero-description {
    font-size: var(--font-size-xl);
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: var(--space-2xl);
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: 8px;
    font-family: var(--font-family-headings);
    font-size: var(--font-size-base);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(55, 0, 254, 0.3);
}

.btn-primary:hover {
    background: #2f00d9;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(55, 0, 254, 0.4);
}

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

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

.hero-stats {
    display: flex;
    gap: var(--space-xl);
    opacity: 0.8;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stat-number {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    font-weight: 500;
}

.hero-video {
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-player {
    position: relative;
    width: 100%;
    max-width: 600px;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    background: #000;
    transition: all 0.3s ease;
}

.video-player:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.video-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    z-index: 2;
}

.video-overlay {
    position: absolute;
    bottom: var(--space-md);
    left: var(--space-md);
    z-index: 3;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-player:hover .video-overlay {
    opacity: 1;
}

.play-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 8px 12px;
    border-radius: 6px;
    color: var(--text-primary);
    font-size: var(--font-size-sm);
    font-weight: 500;
}

.play-indicator svg {
    width: 16px;
    height: 16px;
    color: var(--primary-color);
}

/* Responsividade */
@media (max-width: 1024px) {
    .hero-main {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
        text-align: center;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-stats {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: var(--space-xl) 0 var(--space-md) 0;
    }
    
    .header-container {
        padding: 0 var(--space-md);
        flex-direction: column;
        gap: var(--space-lg);
        text-align: center;
    }
    
    .header-logo img {
        height: 44px;
    }
    
    .header-btn {
        padding: 12px 20px;
        font-size: var(--font-size-sm);
    }
    
    .hero-container {
        padding: 0 var(--space-md);
    }
    
    .hero-main {
        padding: var(--space-2xl) 0;
        gap: var(--space-xl);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: var(--font-size-lg);
    }
    
    .hero-actions {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-stats {
        gap: var(--space-lg);
        flex-wrap: wrap;
    }
    
    .video-player {
        max-width: 100%;
    }
}

/* How it works */
.how-it-works {
    padding: var(--space-3xl) 0;
    background: var(--background);
}

.how-it-works h2 {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
}

.step-card {
    background: white;
    padding: var(--space-xl);
    border-radius: var(--radius-large);
    /* box-shadow: var(--shadow-light); */
    text-align: center;
    position: relative;
    /* border: 1px solid var(--border-light); */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: var(--background-light);
}

.step-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: var(--font-size-xs);
}

.step-icon {
    font-size: 48px;
    margin-bottom: var(--space-md);
    display: block;
}

.step-card h3 {
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.step-card p {
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .steps-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .step-card {
        padding: var(--space-lg);
    }
}

/* Features */
.features {
    padding: var(--space-3xl) 0;
    background: var(--background-light);
}

.features h2 {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.feature-card {
    background: white;
    padding: var(--space-lg);
    border-radius: var(--radius-medium);
    /* box-shadow: var(--shadow-light);
    border: 1px solid var(--border-light); */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.feature-icon {
    font-size: 40px;
    margin-bottom: var(--space-md);
    display: block;
}

.feature-card h3 {
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

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

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: var(--space-md);
    }
}

/* Stats */
.stats {
    padding: var(--space-3xl) 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0577a3 100%);
    color: white;
}

.stats h2 {
    text-align: center;
    margin-bottom: var(--space-2xl);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
}

.stat-card {
    text-align: center;
    padding: var(--space-lg);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-medium);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: white;
    margin-bottom: var(--space-xs);
}

.stat-label {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: var(--space-sm);
    }

    .stat-number {
        font-size: var(--font-size-2xl);
    }
}

/* Examples */
.examples {
    padding: var(--space-3xl) 0;
    background: var(--background);
}

.examples h2 {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.example-card {
    background: white;
    border-radius: var(--radius-large);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.example-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-strong);
}

.example-image {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: var(--background-light);
}

.example-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.example-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(55, 0, 254, 0.8) 0%, rgba(43, 217, 226, 0.6) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.example-card:hover .example-overlay {
    opacity: 1;
}

.example-badge {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: var(--font-size-sm);
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.example-card:hover .example-badge {
    transform: translateY(0);
}

.example-content {
    padding: var(--space-lg);
}

.example-content h3 {
    margin: 0 0 var(--space-sm) 0;
    font-size: var(--font-size-xl);
    color: var(--text-primary);
    font-weight: 600;
}

.example-content p {
    margin: 0;
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    line-height: 1.5;
}

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

@media (max-width: 768px) {
    .examples-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
}

/* Testimonials */
.testimonials {
    padding: var(--space-3xl) 0;
    background: var(--background-light);
}

.testimonials h2 {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.testimonial-card {
    background: white;
    padding: var(--space-xl);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-light);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: var(--space-lg);
    font-size: 60px;
    color: var(--primary-color);
    font-weight: bold;
    line-height: 1;
}

.quote {
    font-size: var(--font-size-base);
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    font-style: italic;
}

.author {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    font-weight: 500;
}

.school {
    font-size: var(--font-size-xs);
    color: var(--text-light);
    font-weight: 400;
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
}

/* FAQ Section */
.faq {
    padding: var(--space-3xl) 0;
    background: linear-gradient(135deg, #f8fafe 0%, #ffffff 50%, #f0f9ff 100%);
}

.faq h2 {
    text-align: center;
    margin-bottom: var(--space-2xl);
    color: var(--text-primary);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    max-width: 1100px;
    margin: 0 auto;
}

.faq-item {
    background: transparent;
    padding: var(--space-lg);
    border-left: 4px solid var(--primary-color);
    border-radius: 0 var(--radius-medium) var(--radius-medium) 0;
    position: relative;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.faq-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    transition: width 0.3s ease;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: translateX(8px);
    box-shadow: 0 8px 32px rgba(55, 0, 254, 0.15);
}

.faq-item:hover::before {
    width: 6px;
}

.faq-item h3 {
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    font-size: var(--font-size-lg);
    font-weight: 600;
    line-height: 1.3;
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}

.faq-item h3::before {
    content: attr(data-icon);
    font-size: 1.2em;
    flex-shrink: 0;
    margin-top: 2px;
}

.faq-item p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    padding-left: calc(1.2em + var(--space-sm));
    font-size: var(--font-size-base);
}

@media (max-width: 768px) {
    .faq-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .faq-item {
        padding: var(--space-md);
    }
    
    .faq-item h3 {
        font-size: var(--font-size-base);
    }
    
    .faq-item p {
        font-size: var(--font-size-sm);
    }
}

/* Final CTA */
.final-cta {
    padding: var(--space-3xl) 0;
    background: linear-gradient(135deg, #f8fafe 0%, #ffffff 100%);
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    margin-bottom: var(--space-md);
}

.cta-content p {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-xl);
    color: var(--text-secondary);
}

.cta-trust {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    margin-top: var(--space-lg);
    flex-wrap: wrap;
}

.cta-trust span {
    color: var(--primary-color);
    font-size: var(--font-size-sm);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

@media (max-width: 768px) {
    .cta-trust {
        flex-direction: column;
        align-items: center;
        gap: var(--space-sm);
    }
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: var(--space-xl) 0;
}

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

.footer-links {
    display: flex;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: var(--font-size-sm);
    transition: color 0.2s ease;
}

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

.copyright p {
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--font-size-xs);
    margin: 0;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}

/* Animations */
@media (prefers-reduced-motion: no-preference) {

    .hero-content,
    .hero-video,
    .video-player,
    .step-card,
    .feature-card,
    .example-card,
    .testimonial-card {
        opacity: 0;
        transform: translateY(20px);
        animation: fadeInUp 0.6s ease forwards;
    }

    .hero-content {
        animation-delay: 0.1s;
    }

    .hero-video,
    .video-player {
        animation-delay: 0.3s;
    }

    .step-card:nth-child(1) {
        animation-delay: 0.1s;
    }

    .step-card:nth-child(2) {
        animation-delay: 0.2s;
    }

    .step-card:nth-child(3) {
        animation-delay: 0.3s;
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading states */
.game-card,
.memory-card,
.preview-header {
    position: relative;
    overflow: hidden;
}

.game-card::before,
.memory-card::before,
.preview-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}