:root {
    --bg-dark: #020408;
    --bg-card: rgba(8, 12, 20, 0.9);
    --primary: #0066ff;
    --primary-light: #00f2ff;
    --primary-glow: rgba(0, 102, 255, 0.8);
    --secondary: #101827;
    --accent: #ff00c3;
    --accent-glow: rgba(255, 0, 195, 0.6);
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border: rgba(255, 255, 255, 0.1);
    --glass: rgba(255, 255, 255, 0.03);
    --success: #00ffa3;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--primary), var(--accent));
    border-radius: 20px;
    border: 2px solid var(--bg-dark);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
    box-shadow: 0 0 15px var(--primary-glow);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 15px; /* Redução global sutil */
    line-height: 1.6;
    overflow-x: hidden;
    opacity: 0;
    transition: opacity 0.5s ease;
}

body.loaded {
    opacity: 1;
}

h1, h2, h3, .brand {
    font-family: 'Nulshock Rg', 'Orbitron', sans-serif;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Utils */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Cinematic Backgrounds */
.bg-scene {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -2;
    background: radial-gradient(circle at 50% 50%, #0a1220 0%, #020408 100%);
    overflow: hidden;
}

.grid-3d {
    position: absolute;
    width: 200%; height: 200%;
    top: -50%; left: -50%;
    background-image: 
        linear-gradient(rgba(0, 242, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 242, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(500px) rotateX(60deg);
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: perspective(500px) rotateX(60deg) translateY(0); }
    100% { transform: perspective(500px) rotateX(60deg) translateY(50px); }
}

.flare {
    position: absolute;
    width: 600px; height: 600px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    filter: blur(80px);
    opacity: 0.3;
    pointer-events: none;
    mix-blend-mode: screen;
}

.flare-1 { top: -10%; left: -10%; background: var(--primary-glow); }
.flare-2 { bottom: -10%; right: -10%; background: var(--primary-light); opacity: 0.2; }

.particles {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(#fff 1px, transparent 1px);
    background-size: 100px 100px;
    opacity: 0.1;
    animation: particlesMove 100s linear infinite;
}

@keyframes particlesMove {
    from { transform: translateY(0); }
    to { transform: translateY(-1000px); }
}

.blobs {
    position: absolute;
    inset: 0;
    overflow: hidden;
    filter: blur(80px);
    opacity: 0.4;
    z-index: -1;
}

.blob {
    position: absolute;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    animation: blobFloat 20s infinite alternate cubic-bezier(0.45, 0, 0.55, 1);
}

.blob:nth-child(1) {
    top: -20%;
    left: -10%;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    animation-duration: 25s;
}

.blob:nth-child(2) {
    bottom: -10%;
    right: -10%;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    animation-duration: 30s;
    animation-delay: -5s;
}

.blob:nth-child(3) {
    top: 30%;
    left: 40%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
    animation-duration: 20s;
    animation-delay: -10s;
}

@keyframes blobFloat {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(10vw, 5vh) scale(1.1); }
    66% { transform: translate(-5vw, 15vh) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}

.silver-text {
    background: linear-gradient(
        to bottom,
        #f8f9fa 0%,
        #e9ecef 20%,
        #adb5bd 45%,
        #495057 50%,
        #adb5bd 55%,
        #dee2e6 80%,
        #f8f9fa 100%
    );
    background-size: 100% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.3));
    animation: shine 8s linear infinite;
}

.gradient-text {
    background: linear-gradient(to right, #fff, var(--primary-light), var(--primary), #fff);
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: flow 5s ease-in-out infinite;
    filter: drop-shadow(0 0 15px var(--primary-glow));
}

@keyframes shine {
    0% { background-position: 0% 0%; }
    100% { background-position: 0% 200%; }
}

@keyframes flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 2.8rem; /* Reduzido de 1.2rem 3.5rem */
    border-radius: 100px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    font-size: 0.95rem; /* Reduzido de 1.1rem */
    text-transform: uppercase;
    letter-spacing: 0.15em; /* Reduzido levemente para elegância */
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: #fff;
    color: #000;
    box-shadow: 0 0 30px var(--primary-glow);
}

.btn-primary:hover {
    transform: scale(1.1);
    background: var(--primary-light);
    box-shadow: 0 0 60px var(--primary-glow);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 2rem 0;
    background: linear-gradient(to bottom, rgba(2,4,8,0.9), transparent);
    backdrop-filter: blur(10px);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 800;
    font-size: 1.5rem;
    color: white;
    text-decoration: none;
}

.nav-logo img {
    display: block;
    width: auto;
}

.nav-logo img:first-child {
    height: 44px; /* Ícone levemente maior para peso visual */
    filter: drop-shadow(0 0 10px var(--primary-glow));
}

.nav-logo img:last-child {
    height: 30px; /* Texto ajustado para alinhar com o centro ótico */
    opacity: 0.9;
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
}

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

/* Hero Section */
.hero {
    position: relative;
    padding: 10rem 0 8rem; /* Reduzido de 15rem 0 10rem */
    text-align: center;
    overflow: visible;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--primary-light);
    padding: 0.8rem 2rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 800;
    margin-bottom: 3rem;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    backdrop-filter: blur(20px);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    animation: fadeInBlur 1.5s ease-out;
}

@keyframes fadeInBlur {
    0% { opacity: 0; filter: blur(20px); transform: scale(0.9); }
    100% { opacity: 1; filter: blur(0); transform: scale(1); }
}

.hero h1 {
    font-size: clamp(3rem, 9vw, 5.5rem); /* Reduzido de 8rem */
    line-height: 0.9;
    margin-bottom: 2.5rem;
    font-weight: 900;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    animation: heroReveal 2s cubic-bezier(0.19, 1, 0.22, 1);
}

@keyframes heroReveal {
    0% { opacity: 0; letter-spacing: 0.2em; transform: translateY(50px); }
    100% { opacity: 1; letter-spacing: -0.05em; transform: translateY(0); }
}

.hero p {
    font-size: 1.25rem; /* Reduzido de 1.5rem */
    color: var(--text-secondary);
    max-width: 700px; /* Ajustado para melhor leitura com fonte menor */
    margin: 0 auto 4rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    animation: fadeInUp 1s ease 0.5s forwards;
    opacity: 0;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

.hero-stats {
    display: flex;
    justify-content: space-around;
    gap: 3rem;
    max-width: 1000px;
    margin: 8rem auto 0;
    padding: 4rem;
    background: rgba(255, 255, 255, 0.01);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(50px);
    animation: fadeInUp 1.5s cubic-bezier(0.19, 1, 0.22, 1) 0.8s forwards;
    opacity: 0;
    perspective: 1000px; /* Adicionado para efeito 3D */
}

.stat-item {
    opacity: 0;
    transform: translateY(40px) rotateY(-90deg); /* Começa girado */
    transition: all 1.2s cubic-bezier(0.19, 1, 0.22, 1);
    backface-visibility: hidden;
}

.stat-item.active {
    opacity: 1;
    transform: translateY(0) rotateY(0deg); /* Gira para a posição normal */
}

.stat-item:nth-child(1) { transition-delay: 0.2s; }
.stat-item:nth-child(2) { transition-delay: 0.4s; }
.stat-item:nth-child(3) { transition-delay: 0.6s; }

.stat-item h3 {
    font-size: 4rem; /* Reduzido de 5rem */
    color: white;
    margin-bottom: 0.5rem;
    font-weight: 900;
    letter-spacing: -0.05em;
    text-shadow: 0 0 30px var(--primary-glow);
}

.stat-item p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 800;
}

/* Features Section */
.features {
    padding: 8rem 0;
    background: linear-gradient(to bottom, var(--bg-dark), #0f172a);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-header.active {
    opacity: 1;
    transform: translateY(0);
}

.section-header h2 {
    font-size: 2.2rem; /* Reduzido de 2.5rem */
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

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

.card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 32px;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    opacity: 0;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.05),
        transparent
    );
    transition: 0.5s;
}

.card:hover::before {
    left: 100%;
}

.card.active {
    animation: cardRevealDefault 1s forwards;
}

@keyframes cardRevealDefault {
    0% { opacity: 0; transform: translateY(30px); filter: blur(5px); }
    100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* Entrance Animations Improved */
.step-card-1.active { animation: cardRevealLeft 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.step-card-2.active { animation: cardRevealCenter 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.2s; }
.step-card-3.active { animation: cardRevealRight 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.4s; }

@keyframes cardRevealLeft {
    0% { opacity: 0; transform: translateX(-100px) rotate(-10deg); filter: blur(20px); }
    100% { opacity: 1; transform: translateX(0) rotate(0); filter: blur(0); }
}

@keyframes cardRevealCenter {
    0% { opacity: 0; transform: scale(0.5) translateY(50px); filter: brightness(3); }
    100% { opacity: 1; transform: scale(1) translateY(0); filter: brightness(1); }
}

@keyframes cardRevealRight {
    0% { opacity: 0; transform: translateX(100px) rotate(10deg); filter: blur(20px); }
    100% { opacity: 1; transform: translateX(0) rotate(0); filter: blur(0); }
}

/* Enhanced Hover Effects */
.step-card-1:hover {
    transform: translateY(-20px) rotate(-3deg);
    border-color: var(--primary);
    box-shadow: 0 30px 60px -15px rgba(46, 109, 255, 0.4), 0 0 20px rgba(46, 109, 255, 0.2);
}

.step-card-2:hover {
    transform: translateY(-25px) scale(1.08);
    border-color: #ffffff;
    box-shadow: 0 35px 70px -15px rgba(255, 255, 255, 0.2), 0 0 30px rgba(255, 255, 255, 0.1);
}

.step-card-3:hover {
    transform: translateY(-20px) rotate(3deg);
    border-color: var(--primary-light);
    box-shadow: 0 30px 60px -15px rgba(0, 242, 255, 0.4), 0 0 20px rgba(0, 242, 255, 0.2);
}

.card:hover .card-icon {
    transform: scale(1.2) rotate(360deg);
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
}

.card-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(46, 109, 255, 0.1), rgba(112, 0, 255, 0.1));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-light);
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.card h3 {
    font-size: 1.3rem; /* Reduzido de 1.5rem */
    margin-bottom: 1rem;
    color: white;
}

.card p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Video Section */
.video-section {
    padding: 8rem 0;
    background: #0f172a;
}

.video-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    border: 1px solid var(--border);
    aspect-ratio: 16/9;
    opacity: 0;
    transform: scale(0.9) translateY(50px);
    filter: blur(10px);
    transition: all 1.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.video-container.active {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
    box-shadow: 0 0 100px -20px var(--primary-glow);
}

.video-placeholder {
    width: 100%;
    height: 100%;
    background: #07090e url('https://images.unsplash.com/photo-1639762681485-074b7f938ba0?auto=format&fit=crop&q=80&w=2000') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative; /* Adicionado para conter o overlay ::after */
}

.video-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.play-button {
    position: relative;
    z-index: 2;
    width: 80px;
    height: 80px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s;
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
    animation: pulse 2s infinite;
}

/* Referral Section */
.referral {
    padding: 8rem 0;
}

.referral-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.referral-list {
    list-style: none;
    margin-top: 2rem;
}

.referral-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.referral-item.active {
    opacity: 1;
    transform: translateX(0);
}

.ref-level {
    font-weight: 700;
    color: var(--primary);
    width: 100px;
}

.ref-bar-bg {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.ref-bar-fill {
    height: 100%;
    width: 0; /* Começa em 0 */
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 4px;
    box-shadow: 0 0 15px var(--primary-glow);
    transition: width 1.2s cubic-bezier(0.65, 0, 0.35, 1);
}

.ref-pct {
    font-weight: 800;
    width: 50px;
    text-align: right;
    color: white;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ref-pct.show {
    opacity: 1;
    transform: scale(1);
}

#total-bonus-card {
    opacity: 0;
    transform: translateY(40px) scale(0.9);
    filter: blur(10px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

#total-bonus-card.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

/* Final CTA */
.cta-footer {
    padding: 8rem 0; /* Reduzido de 12rem */
    text-align: center;
    position: relative;
    overflow: hidden;
    background: #020617;
    opacity: 0;
    transform: scale(0.95) translateY(20px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.cta-footer.active {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.cta-glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(46, 109, 255, 0.15) 0%, transparent 70%);
    filter: blur(80px);
    animation: ctaPulse 6s infinite alternate;
    pointer-events: none;
}

@keyframes ctaPulse {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

.btn-mega {
    display: inline-flex;
    padding: 1.2rem 3.5rem; /* Reduzido */
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    color: #020617;
    border-radius: 100px;
    font-size: 1.1rem; /* Reduzido de 1.25rem */
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.btn-mega:hover {
    transform: translateY(-5px) scale(1.05);
    background: #ffffff;
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.4), 0 0 30px rgba(255, 255, 255, 0.2);
    color: var(--primary);
}

.security-badge {
    margin-top: 4rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 100px;
    color: var(--text-muted);
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

.security-badge i {
    color: #10b981; /* Green check */
}

/* Language Switcher */
.lang-switcher {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1001;
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    padding: 0.5rem;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lang-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
    background: #222;
    color: #666;
}

.lang-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary-light);
    box-shadow: 0 0 10px var(--primary-glow);
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(59, 130, 246, 0); }
    100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero h1 { font-size: 3rem; }
    .hero-stats { flex-direction: column; gap: 2rem; padding: 2rem; }
    .referral-content { grid-template-columns: 1fr; }
    .cta-footer h2 { font-size: 2.5rem; }
}
