/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: #000000;
    color: #FFFFFF;
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== VARIÁVEIS ===== */
:root {
    --black: #000000;
    --black-elevated: #0D0D0D;
    --black-light: #111111;
    --purple-dark: #1A012E;
    --purple-medium: #2A0A4A;
    --purple-light: #4A1B8C;
    --purple-vibrant: #6D28D9;
    --purple-glow: rgba(109, 40, 217, 0.3);
    --yellow-neon: #FFD633;
    --yellow-glow: rgba(255, 214, 51, 0.2);
    --white: #FFFFFF;
    --gray: #888888;
    --orange: #FF6B00;
    
    /* Gradientes */
    --gradient-hero: linear-gradient(135deg, #1A012E 0%, #000000 100%);
    --gradient-card: linear-gradient(145deg, #111111 0%, #0D0D0D 100%);
    --gradient-ranking: linear-gradient(135deg, #FF6B00 0%, #000000 100%);
    --gradient-purple: linear-gradient(90deg, #4A1B8C 0%, #6D28D9 100%);
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--purple-dark);
    z-index: 1000;
    padding: 1.2rem 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo .lightning {
    color: var(--yellow-neon);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: var(--yellow-neon);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--purple-vibrant);
    transition: width 0.3s;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn {
    padding: 0.75rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-login {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--purple-medium);
}

.btn-login:hover {
    background: rgba(109, 40, 217, 0.1);
    border-color: var(--purple-vibrant);
}

.btn-download {
    background: var(--purple-vibrant);
    color: var(--white);
    box-shadow: 0 4px 20px var(--purple-glow);
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--purple-glow);
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    background: var(--gradient-hero);
    padding: 8rem 0 4rem;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 70%;
    height: 150%;
    background: radial-gradient(circle, var(--purple-medium) 0%, transparent 70%);
    opacity: 0.3;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #FFFFFF, #B794F4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.hero-subtitle {
    display: inline-block;
    background: rgba(26, 1, 46, 0.5);
    color: #B794F4;
    padding: 0.6rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    margin-bottom: 2.5rem;
    border: 1px solid var(--purple-light);
    font-size: 1rem;
}

.hero-description {
    color: var(--gray);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn-primary {
    background: var(--purple-vibrant);
    color: white;
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 1px solid var(--purple-medium);
}

.btn-primary:hover {
    background: #5B21B6;
    transform: translateY(-2px);
}

/* ===== APP MOCKUP ===== */
.app-mockup {
    background: var(--black-elevated);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--purple-dark);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.mockup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.mockup-title {
    font-size: 1.2rem;
    font-weight: 600;
}

.mockup-badge {
    background: var(--purple-vibrant);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.streak-card {
    background: linear-gradient(135deg, #2A0A4A 0%, #1A012E 100%);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.streak-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.streak-label {
    font-size: 0.9rem;
    color: var(--gray);
}

.streak-days {
    color: var(--yellow-neon);
    font-weight: 700;
    font-size: 1.8rem;
}

.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--purple-vibrant);
    width: 60%;
    border-radius: 4px;
}

.quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.action-btn {
    background: var(--black-light);
    border: 1px solid var(--purple-dark);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.action-btn:hover {
    background: var(--purple-dark);
    border-color: var(--purple-vibrant);
}

.action-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.action-label {
    font-size: 0.9rem;
    font-weight: 600;
}

.tasks-list {
    background: var(--black-elevated);
    border-radius: 12px;
    padding: 1.5rem;
}

.task-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--purple-dark);
}

.task-item:last-child {
    border-bottom: none;
}

.task-subject {
    color: var(--yellow-neon);
    font-weight: 600;
}

.task-topic {
    color: var(--gray);
    font-size: 0.9rem;
}

.task-status {
    background: var(--purple-dark);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* ===== STATS SECTION ===== */
.stats {
    padding: 6rem 0;
    background: var(--black);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    text-align: center;
}

.stat-card {
    background: var(--gradient-card);
    border-radius: 20px;
    padding: 3rem 2rem;
    border: 1px solid var(--purple-dark);
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(109, 40, 217, 0.2);
    border-color: var(--purple-vibrant);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(to right, var(--purple-vibrant), var(--yellow-neon));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--gray);
    font-size: 1.1rem;
    font-weight: 500;
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
    padding: 6rem 0;
    background: var(--black-elevated);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #FFFFFF, #B794F4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.step-card {
    background: var(--gradient-card);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    border: 1px solid var(--purple-dark);
    position: relative;
    overflow: hidden;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--purple-vibrant);
}

.step-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.step-number {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--purple-dark);
    color: var(--gray);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.step-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.step-description {
    color: var(--gray);
    font-size: 0.95rem;
}

/* ===== VIDEO SECTION ===== */
.video-section {
    padding: 6rem 0;
    background: var(--black);
}

.video-container {
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--purple-medium) 0%, var(--purple-dark) 100%);
    border-radius: 24px;
    padding: 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.video-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(109, 40, 217, 0.1) 0%, transparent 70%);
}

.play-button {
    width: 80px;
    height: 80px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    z-index: 1;
}

.play-button:hover {
    transform: scale(1.1);
    background: var(--yellow-neon);
}

.play-icon {
    color: var(--purple-vibrant);
    font-size: 2rem;
    margin-left: 5px;
}

.video-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.video-description {
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ===== COGNITIVE PROFILE ===== */
.cognitive-profile {
    padding: 6rem 0;
    background: var(--black-elevated);
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.profile-card {
    background: linear-gradient(135deg, var(--purple-medium) 0%, var(--purple-dark) 100%);
    border-radius: 24px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.profile-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--yellow-neon);
    color: var(--black);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.2rem;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--yellow-neon);
    margin-bottom: 0.3rem;
}

.stat-label-small {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* ===== RANKING SECTION ===== */
.ranking {
    padding: 6rem 0;
    background: var(--gradient-ranking);
}

.ranking-header {
    text-align: center;
    margin-bottom: 3rem;
}

.ranking-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.top-students {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 24px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.student-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.student-item:last-child {
    border-bottom: none;
}

.student-avatar {
    width: 50px;
    height: 50px;
    background: var(--purple-vibrant);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.student-info {
    flex: 1;
}

.student-name {
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.student-class {
    color: var(--gray);
    font-size: 0.9rem;
}

.student-score {
    color: var(--yellow-neon);
    font-weight: 700;
    font-size: 1.2rem;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--black-elevated);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--purple-dark);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.footer-description {
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--black-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s;
}

.social-link:hover {
    background: var(--purple-vibrant);
    transform: translateY(-3px);
}

.footer-heading {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--yellow-neon);
}

.copyright {
    text-align: center;
    color: var(--gray);
    padding-top: 2rem;
    border-top: 1px solid var(--purple-dark);
    font-size: 0.9rem;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 1024px) {
    .hero-content,
    .profile-grid,
    .ranking-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-text h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-text h1 {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* Custom CSS para complementar o Tailwind */

/* Estilos para animações personalizadas */
@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.shimmer {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Estilos para scrollbar customizada */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0D0D0D;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #6D28D9, #4A1B8C);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #7C3AED, #5B21B6);
}

/* Seleção de texto customizada */
::selection {
    background: rgba(109, 40, 217, 0.3);
    color: white;
}

/* Estilos para focus states */
*:focus {
    outline: 2px solid rgba(109, 40, 217, 0.5);
    outline-offset: 2px;
}

/* Smooth transitions para todos os elementos */
* {
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

/* Efeito de glass morphism */
.glass {
    background: rgba(13, 13, 13, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(109, 40, 217, 0.2);
}

/* Tooltip customizado */
[data-tooltip] {
    position: relative;
}

[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1A012E;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    white-space: nowrap;
    border: 1px solid #6D28D9;
    z-index: 50;
}

/* Loading skeleton */
.skeleton {
    background: linear-gradient(90deg, #111 25%, #1a1a1a 50%, #111 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Estilos para o efeito de partículas (opcional) */
.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(109, 40, 217, 0.1);
    pointer-events: none;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .mobile-fade-in {
        animation: slideIn 0.5s ease-out forwards;
    }
}

/* Impedir scroll horizontal */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}