:root {
    --bg-dark: #050505;
    --purple-main: #7b2cbf;
    --purple-light: #9d4edd;
    --purple-glow: rgba(123, 44, 191, 0.6);
    --text-white: #ffffff;
    --text-gray: #b0b0b0;
    --gold: #ffaa00;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    overflow-x: hidden;
    /* Cursor personalizado apenas para desktop */
    cursor: default; 
}

/* Cursor customizado - Escondido no mobile via Media Query no final */
#custom-cursor {
    width: 25px;
    height: 25px;
    background: transparent;
    border: 2px solid var(--purple-light);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s ease-out, width 0.3s, height 0.3s;
    box-shadow: 0 0 15px var(--purple-glow), inset 0 0 10px var(--purple-main);
    display: flex;
    justify-content: center;
    align-items: center;
}

#custom-cursor::after {
    content: '';
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px #fff;
}

.cursor-trail {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--purple-main);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.6;
    filter: blur(2px);
    transition: transform 0.2s ease-out;
}

#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 10%;
    display: flex;
    justify-content: center;
    z-index: 1000;
    transition: 0.3s;
}

.navbar.scrolled {
    background: rgba(5, 5, 5, 0.95); /* Mais escuro para leitura */
    backdrop-filter: blur(10px);
    padding: 1rem 10%;
    border-bottom: 1px solid rgba(123, 44, 191, 0.3);
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-white);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 50px;
    width: auto;
    border-radius: 50%;
    border: 2px solid var(--purple-main);
    box-shadow: 0 0 10px var(--purple-glow);
}

.logo span {
    color: var(--purple-main);
}

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

.nav-links a {
    color: var(--text-white);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 400;
    transition: 0.3s;
    position: relative;
    white-space: nowrap;
}

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

/* Hero Section */
.hero {
    min-height: 100vh; /* Mudado de height para min-height para evitar cortes */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.hero-content {
    max-width: 50%;
    z-index: 2;
}

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-content h1 span {
    color: var(--purple-main);
    text-shadow: 0 0 30px var(--purple-glow);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
}

.btn-glow {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--purple-main);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 0 20px var(--purple-glow);
    transition: 0.3s;
    border: 2px solid transparent;
    text-align: center;
}

/* Urgency Badge */
.urgency-badge {
    background: rgba(123, 44, 191, 0.2);
    border: 1px solid var(--purple-main);
    color: var(--purple-light);
    display: inline-block;
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(123, 44, 191, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(123, 44, 191, 0); }
    100% { box-shadow: 0 0 0 0 rgba(123, 44, 191, 0); }
}

.trust-rating {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-btns {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stars {
    color: var(--gold);
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.rating-text {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-top: 5px;
}

.btn-glow.large {
    padding: 1.5rem 4rem;
    font-size: 1.3rem;
}

/* Knight Mascot */
.hero-image {
    width: 45%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.knight-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    animation: float 4s ease-in-out infinite;
    transform-style: preserve-3d;
}

.knight-container img {
    width: 100%;
    filter: drop-shadow(0 0 50px var(--purple-glow));
    transition: 0.5s ease-out;
    background: transparent !important;
}

.energy-balloon {
    position: absolute;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, var(--purple-light) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(5px);
    box-shadow: 0 0 20px var(--purple-glow);
    animation: balloonFloat 6s ease-in-out infinite;
    pointer-events: none;
    opacity: 0.6;
}

.b1 { top: 10%; left: -10%; animation-delay: 0s; width: 40px; height: 40px; }
.b2 { bottom: 20%; right: -5%; animation-delay: 1.5s; width: 80px; height: 80px; }
.b3 { top: 40%; right: 10%; animation-delay: 3s; width: 50px; height: 50px; }

@keyframes balloonFloat {
    0%, 100% { transform: translate(0, 0); opacity: 0.4; }
    50% { transform: translate(20px, -40px); opacity: 0.8; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-30px); }
}

/* About Section */
.about {
    padding: 100px 10%;
    background: linear-gradient(to bottom, #0a0a0a, var(--bg-dark));
}

.about-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.about-text h2 {
    font-size: 3.5rem;
    margin-bottom: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.about-text p {
    font-size: 1.15rem;
    color: var(--text-gray);
    line-height: 1.9;
    margin-bottom: 2rem;
    text-align: justify;
    padding: 0 20px;
}

.stats-row {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.stat-item h4 {
    font-size: 2.5rem;
    color: var(--purple-main);
    margin-bottom: 0.5rem;
}

.features {
    padding: 100px 10%;
    background: linear-gradient(to bottom, var(--bg-dark), #0a0a0a);
    position: relative;
    z-index: 1;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 3rem;
}

.section-title span {
    color: var(--purple-main);
}

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

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(123, 44, 191, 0.1);
    transition: 0.3s;
    text-align: center;
    backdrop-filter: blur(5px);
}

.feature-card:hover {
    background: rgba(123, 44, 191, 0.1);
    border-color: var(--purple-light);
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 10px 30px rgba(123, 44, 191, 0.2);
}

.feature-card .icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 { font-size: 1.5rem; margin-bottom: 15px; }
.feature-card p { color: var(--text-gray); }

.resources {
    padding: 100px 10%;
    background: radial-gradient(circle at top right, rgba(123, 44, 191, 0.1), transparent);
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.resource-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(123, 44, 191, 0.2);
    padding: 30px;
    border-radius: 20px;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: left;
}

.resource-card:hover {
    transform: translateY(-10px) scale(1.05);
    background: rgba(123, 44, 191, 0.1);
    border-color: var(--purple-light);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(123, 44, 191, 0.2);
}

.resource-icon { font-size: 2.5rem; margin-bottom: 1.5rem; }
.resource-card h3 { font-size: 1.4rem; margin-bottom: 1rem; color: var(--text-white); }
.resource-card p { color: var(--text-gray); font-size: 1rem; line-height: 1.5; }

.final-cta {
    padding: 120px 10%;
    text-align: center;
    background: linear-gradient(to top, #0a0a0a, var(--bg-dark));
}

.cta-container h2 { font-size: 3.5rem; margin-bottom: 1.5rem; }
.cta-container p { font-size: 1.3rem; color: var(--text-gray); margin-bottom: 3rem; max-width: 700px; margin-left: auto; margin-right: auto; }

.footer {
    padding: 50px 10%;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-gray);
}

.fade-in { opacity: 0; transform: translateY(30px); animation: fadeInUp 1s forwards; }
.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }

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

/* ========================================= */
/* RESPONSIVIDADE (MOBILE)             */
/* ========================================= */

@media (max-width: 968px) {
    /* Esconder o cursor personalizado no mobile */
    #custom-cursor, .cursor-trail {
        display: none !important;
    }
    body {
        cursor: auto;
    }

    /* Navbar Mobile: Empilhar Logo e Links */
    .navbar {
        padding: 1rem 5%;
        background: rgba(5, 5, 5, 0.95); /* Fundo sólido para não misturar com o conteúdo */
    }
    
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }

    .logo {
        font-size: 1.5rem;
    }
    
    .logo img {
        height: 40px;
    }

    .nav-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        width: 100%;
    }

    .nav-links a {
        margin: 0;
        font-size: 0.9rem;
    }
    
    .btn-primary {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    /* Hero Mobile */
    .hero {
        flex-direction: column;
        padding-top: 160px; /* Espaço extra para o menu empilhado */
        padding-bottom: 50px;
        height: auto;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
        margin-bottom: 40px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-content h1 {
        font-size: 2.8rem; /* Fonte menor */
    }

    .hero-btns, .trust-rating {
        align-items: center; /* Centralizar botões */
    }
    
    .urgency-badge {
        font-size: 0.75rem;
    }

    /* Cavaleiro Mobile */
    .hero-image {
        width: 100%;
        margin-top: 20px;
    }
    
    .knight-container {
        max-width: 280px; /* Limitar tamanho para não cortar */
        margin: 0 auto;
    }

    /* Ajustes Gerais de Seções */
    .about, .features, .resources, .final-cta {
        padding: 60px 5%;
    }

    .about-text h2, .section-title h2, .cta-container h2 {
        font-size: 2.2rem;
    }
    
    .stat-item h4 {
        font-size: 2rem;
    }
}
