:root {
    --black: #000000;
    --white: #ffffff;
    --grey: #1a1a1a;
    --text-grey: #a0a0a0;
    --purple: #8A2BE2;
    --light-purple: #A276E8;
    --glow-color: var(--light-purple);
    --font-primary: 'Poppins', 'Noto Sans TC', sans-serif;
    --font-secondary: 'Roboto Mono', monospace;
    --spotlight-x: -1000px;
    --spotlight-y: -1000px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-primary);
    background-color: var(--black);
    color: var(--white);
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

#loading-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--black); z-index: 2000; display: flex; flex-direction: column; justify-content: center; align-items: center; opacity: 1; visibility: visible; transition: opacity 0.5s ease, visibility 0.5s ease; }
.spinner { width: 60px; height: 60px; border: 5px solid rgba(255, 255, 255, 0.3); border-top-color: var(--purple); border-radius: 50%; animation: spin 1s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
#loading-overlay p { margin-top: 1rem; font-family: var(--font-secondary); }

#particle-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.6; }

.custom-cursor { display: none; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

header { background: rgba(5, 5, 5, 0.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--grey); padding: 1rem 0; position: fixed; width: 100%; top: 0; z-index: 1000; }
nav { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; text-decoration: none; color: var(--white); }
.logo-img { width: 40px; height: 40px; margin-right: 12px; border-radius: 50%; }
.logo span { font-family: var(--font-secondary); font-size: 1.5rem; font-weight: 700; letter-spacing: 1px; }

.nav-right { display: flex; align-items: center; gap: 1.5rem; }
.nav-links ul { list-style: none; display: flex; align-items: center; gap: 2rem; }
.nav-links a { color: var(--text-grey); text-decoration: none; font-weight: 600; font-size: 0.9rem; transition: color 0.3s ease, text-shadow 0.3s ease; }
.nav-links a:hover { color: var(--white); text-shadow: 0 0 5px var(--glow-color); }
.nav-auth-item { list-style-type: none; }
.user-menu { display: flex; align-items: center; gap: 1rem; }
#user-avatar { width: 40px; height: 40px; border-radius: 50%; cursor: pointer; border: 2px solid rgba(255,255,255,0.5); }
.btn-logout { background: none; border: 1px solid var(--text-grey); color: var(--text-grey); padding: 6px 12px; border-radius: 5px; cursor: pointer; transition: all 0.3s ease; font-family: var(--font-secondary); }
.btn-logout:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.menu-toggle { display: none; }

.hero { height: 100vh; min-height: 700px; display: flex; align-items: center; justify-content: center; text-align: center; position: relative; overflow: hidden; background-color: var(--black); background-image: radial-gradient(ellipse at left top, rgba(30, 30, 40, 0.8) 0%, rgba(0, 0, 0, 0.9) 70%), radial-gradient(ellipse at right top, rgba(30, 30, 40, 0.8) 0%, rgba(0, 0, 0, 0.9) 70%), linear-gradient(to bottom, transparent 0%, rgba(60, 20, 90, 0.2) 20%, rgba(90, 40, 130, 0.4) 50%, rgba(60, 20, 90, 0.2) 80%, transparent 100%), linear-gradient(to right, transparent 0%, rgba(100, 70, 150, 0.3) 20%, rgba(130, 90, 180, 0.6) 50%, rgba(100, 70, 150, 0.3) 80%, transparent 100%); background-repeat: no-repeat; background-position: center center; background-size: cover; }
.light-beam { position: absolute; top: -50%; left: 50%; width: 8px; height: 200%; transform: translateX(-50%); z-index: 1; overflow: hidden; background: linear-gradient(to bottom, transparent 0%, var(--purple) 40%, var(--light-purple) 50%, var(--purple) 60%, transparent 100%); filter: blur(3px); animation: continuous-hourglass 3s linear infinite; }
@keyframes continuous-hourglass { 0% { transform: translateX(-50%) translateY(-50%); opacity: 0.3; } 20% { opacity: 0.8; } 50% { transform: translateX(-50%) translateY(50%); opacity: 0.3; } 70% { opacity: 0.8; } 100% { transform: translateX(-50%) translateY(-50%); opacity: 0.3; } }
.hero-logo-watermark { position: absolute; top: 48%; left: 50%; transform: translate(-50%, -50%); height: 60vh; max-height: 500px; width: auto; opacity: 0.1; z-index: 2; pointer-events: none; user-select: none; -webkit-mask-image: radial-gradient(circle 300px at var(--spotlight-x) var(--spotlight-y), black 20%, transparent 60%); mask-image: radial-gradient(circle 300px at var(--spotlight-x) var(--spotlight-y), black 20%, transparent 60%); }
.hero-content { position: relative; z-index: 10; display: flex; flex-direction: column; align-items: center; }
.hero-content h1 { font-family: var(--font-secondary); font-size: 3.5rem; margin-bottom: 1rem; font-weight: 700; text-shadow: 0 0 10px rgba(255,255,255,0.4); min-height: 56px; }
.hero-content .subtitle { font-size: 1.2rem; color: var(--text-grey); margin-bottom: 2rem; max-width: 600px; }

.btn { display: inline-block; padding: 12px 30px; border-radius: 5px; text-decoration: none; font-weight: 600; transition: all 0.3s ease; position: relative; overflow: hidden; z-index: 1; }
.btn-primary { background-color: rgba(255,255,255,0.1); color: var(--white); border: 1px solid rgba(255,255,255,0.3); backdrop-filter: blur(5px); cursor: pointer; overflow: visible; }
.btn-primary:hover { box-shadow: 0 0 15px var(--light-purple); }
.btn-secondary { background-color: transparent; color: var(--white); border: 1px solid var(--white); }
.btn-secondary:hover { background-color: var(--white); color: var(--black); }
.btn-glass { position: relative; padding: 8px 24px !important; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 50px; background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--white) !important; font-family: var(--font-secondary); font-weight: 600; letter-spacing: 1px; text-shadow: none !important; overflow: hidden; z-index: 1; transition: all 0.3s ease; }
.btn-glass:hover { color: var(--white) !important; text-shadow: 0 0 5px var(--white) !important; border-color: rgba(255, 255, 255, 0.5); box-shadow: 0 0 15px rgba(162, 118, 232, 0.5), 0 0 25px rgba(138, 43, 226, 0.3); transform: translateY(-2px); }
.btn-shine { position: relative; overflow: hidden; }
.btn-shine::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(120deg, transparent, rgba(162, 118, 232, 0.6), transparent); transition: left 0.5s ease; }
.btn-shine:hover::before { left: 100%; }

.section { padding: 6rem 0; border-top: 1px solid var(--grey); }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 1rem; font-family: var(--font-secondary); letter-spacing: 2px; position: relative; overflow: hidden; }
.section-title.visible { animation: reveal-glitch 1.5s cubic-bezier(0.25, 0.1, 0.25, 1) forwards; }
@keyframes reveal-glitch { 0% { opacity: 0; transform: translateY(40px); text-shadow: 0 0 0 transparent; } 10% { opacity: 1; transform: translateY(0); text-shadow: 0 0 5px var(--white); } 15% { clip-path: inset(0 0 85% 0); transform: translateY(0px) skewX(-15deg); text-shadow: 0 0 10px var(--purple); } 20% { clip-path: inset(10% 0 75% 0); transform: translateY(0px) skewX(10deg); text-shadow: 0 0 10px var(--light-purple); } 25% { clip-path: inset(0 0 0 0); transform: translateY(0px) skewX(0deg); text-shadow: 0 0 5px var(--white); } 30% { clip-path: inset(70% 0 0 0); transform: translateY(-2px) skewX(5deg); text-shadow: 0 0 15px var(--purple); } 35% { clip-path: inset(0 0 0 0); transform: translateY(0) skewX(0); text-shadow: 0 0 5px var(--white); } 100% { opacity: 1; transform: translateY(0); text-shadow: 0 0 15px var(--light-purple), 0 0 25px var(--purple); } }
.section-subtitle { text-align: center; color: var(--text-grey); margin-bottom: 3rem; font-size: 1.1rem; }
.why-us-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; max-width: 900px; margin: 0 auto; }
.why-us-card { background-color: var(--grey); border: 1px solid #2a2a2a; border-radius: 8px; padding: 2rem; position: relative; overflow: hidden; display: flex; align-items: flex-start; gap: 1.5rem; transition: all 0.3s ease; }
.why-us-icon { flex-shrink: 0; width: 48px; height: 48px; color: var(--white); position: relative; z-index: 1; box-shadow: 0 0 10px rgba(255, 255, 255, 0.2); border-radius: 50%; padding: 10px; background: rgba(138, 43, 226, 0.2); display: flex; justify-content: center; align-items: center; }
.why-us-icon svg { width: 24px; height: 24px; stroke: var(--white); transition: transform 0.3s ease; }
.why-us-card:hover .why-us-icon svg { transform: scale(1.2); }
.why-us-content-text h3 { font-family: var(--font-primary); font-size: 1.5rem; margin-bottom: 0.5rem; }
.why-us-content-text p { color: var(--text-grey); font-size: 1rem; }
.grid-container { display: grid; gap: 2rem; max-width: 1100px; margin: 0 auto; }
#products .grid-container { grid-template-columns: repeat(3, 1fr); }
.data-card { background-color: var(--grey); border: 1px solid #2a2a2a; border-radius: 8px; padding: 2rem; transition: all 0.3s ease; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.card-glow { position: absolute; left: 0; bottom: -40px; width: 100%; height: 120px; background: linear-gradient(180deg, transparent 20%, var(--light-purple) 80%, rgba(138, 43, 226, 0.4) 100%); filter: blur(30px); opacity: 0.6; pointer-events: none; transition: transform 0.3s ease; transform: translateY(20px) translateX(var(--glow-x, 0)); z-index: 0; will-change: transform; }
.card-border { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 8px; background: linear-gradient(to right, transparent, var(--purple), transparent); background-size: 200% 100%; opacity: 0; animation: border-flow 4s linear infinite; transition: opacity 0.3s ease; z-index: 2; pointer-events: none; }
@keyframes border-flow { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
.data-card:hover .card-glow { opacity: 1; transform: translateY(0) translateX(var(--glow-x, 0)); }
.data-card:hover .card-border { opacity: 1; }
.creator { position: relative; z-index: 1; display: inline-block; background-color: #333; color: #ccc; padding: 4px 8px; border-radius: 5px; font-size: 0.8rem; font-weight: 600; margin-bottom: 1rem; align-self: flex-start; }
.data-card h3 { position: relative; z-index: 1; font-family: var(--font-secondary); font-size: 1.5rem; margin-bottom: 0.5rem; color: var(--white); }
.features { position: relative; z-index: 1; list-style: none; margin: 1rem 0; color: var(--text-grey); flex-grow: 1; }
.features li { padding-left: 1.5em; position: relative; margin-bottom: 0.5rem; }
.features li::before { content: '>>'; position: absolute; left: 0; color: var(--white); opacity: 0.7; }
.price-tag { position: relative; z-index: 1; align-self: flex-end; background: rgba(255, 255, 255, 0.05); color: var(--white); padding: 8px 16px; border-radius: 4px; font-size: 1.1rem; font-family: var(--font-secondary); margin-top: 1.5rem; border: 1px solid rgba(255, 255, 255, 0.2); backdrop-filter: blur(5px); transition: all 0.3s ease; box-shadow: 0 0 10px rgba(255, 255, 255, 0.05); }
.price-tag::before { content: 'R$ '; opacity: 0.7; margin-right: 4px; }
.data-card:hover .price-tag { background: rgba(138, 43, 226, 0.15); border-color: rgba(138, 43, 226, 0.4); box-shadow: 0 0 15px rgba(138, 43, 226, 0.1); }
.special-card { border: 1px solid var(--white); }
.special-card .price-tier { font-family: 'Poppins', sans-serif; margin-top: 1.5rem; text-align: center; position: relative; z-index: 1;}

.marquee-container { overflow: hidden; width: 100%; -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent); mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent); }
.marquee-content { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee-container:hover .marquee-content { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.review-card { flex-shrink: 0; width: 450px; background-color: var(--grey); border: 1px solid #2a2a2a; border-radius: 8px; padding: 2rem; margin: 0 1rem; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; transition: all 0.3s ease;}
.review-card:hover { transform: translateY(-5px) scale(1.02); box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3); }
.review-card p { font-style: italic; flex-grow: 1; margin-bottom: 1.5rem; font-size: 1.1rem; }
.review-card p::before { content: '“'; } .review-card p::after { content: '”'; }
.review-footer { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 1;}
.review-product-name { color: var(--text-grey); font-size: 0.9em; }
.star-rating { font-size: 1.2rem; color: var(--white); text-shadow: 0 0 5px var(--glow-color); }
.add-review-container { text-align: center; margin-bottom: 2rem; }
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: flex; justify-content: center; align-items: center; z-index: 2000; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; }
.modal-overlay.visible { opacity: 1; visibility: visible; }
.modal-content { background: var(--grey); padding: 2rem; border-radius: 8px; border: 1px solid var(--border-color); width: 90%; max-width: 500px; transform: scale(0.95); transition: transform 0.3s ease; }
.modal-overlay.visible .modal-content { transform: scale(1); }
.modal-content h2 { font-family: var(--font-secondary); margin-bottom: 1.5rem; text-align: center; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.5rem; color: var(--text-grey); }
.form-group input, .form-group textarea { width: 100%; padding: 0.75rem; background: #000; border: 1px solid var(--border-color); border-radius: 5px; color: var(--white); font-family: var(--font-primary); font-size: 1rem; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 10px var(--glow-color); }
.star-rating-input { font-size: 2rem; color: var(--text-grey); cursor: pointer; }
.star-rating-input span { transition: color 0.2s ease; }
.star-rating-input span:hover, .star-rating-input span.selected { color: #ffc107; }
.form-actions { margin-top: 2rem; display: flex; justify-content: flex-end; gap: 1rem; }

.payment-info { background-color: var(--grey); border: 1px solid #2a2a2a; border-radius: 8px; padding: 3rem; text-align: center; max-width: 700px; margin: 0 auto; position: relative; overflow: hidden; }
.robux-icon { font-family: var(--font-secondary); font-size: 4rem; font-weight: 700; color: var(--white); margin-bottom: 1rem; position: relative; z-index: 1;}
#staff .grid-container { grid-template-columns: repeat(2, 1fr); max-width: 900px; }
.staff-card { text-align: center; position: relative; overflow: hidden; }
.staff-avatar { width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 1.5rem; border: 2px solid #333; object-fit: cover; transition: border-color 0.3s ease, box-shadow 0.3s ease; position: relative; z-index: 1;}
.join-us-section { background-color: var(--grey); padding: 6rem 0; }
.join-us-section .container { display: flex; justify-content: space-between; align-items: center; }
.join-us-content { flex-grow: 1; text-align: right; margin-left: 2rem; align-self: center; }
.join-us-content h2 { font-family: var(--font-secondary); font-size: 2.5rem; margin-bottom: 1rem; }
#digital-clock-container { display: flex; align-items: center; justify-content: center; position: relative; width: 400px; height: 150px; background: rgba(50, 50, 50, 0.2); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 10px; box-shadow: 0 0 20px rgba(138, 43, 226, 0.2); backdrop-filter: blur(5px); overflow: hidden; }
#digital-clock { font-family: 'Roboto Mono', monospace; font-size: 4rem; color: var(--white); letter-spacing: 5px; text-shadow: 0 0 10px var(--light-purple), 0 0 20px var(--purple); z-index: 5; position: relative; }
@keyframes clock-pulse { from { transform: translate(-50%, -50%) scale(1); opacity: 0.5; } to { transform: translate(-50%, -50%) scale(1.1); opacity: 0.7; } }
footer { text-align: center; padding: 2rem 0; border-top: 1px solid var(--grey); color: var(--text-grey); }

.reveal-up { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; transition-delay: calc(80ms * var(--stagger, 0)); }
.reveal-up.visible { opacity: 1; transform: translateY(0); }
.back-to-top { position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px; background: rgba(26, 26, 26, 0.8); backdrop-filter: blur(5px); border: 1px solid var(--white); border-radius: 50%; display: flex; flex-direction: column; justify-content: center; align-items: center; text-decoration: none; color: var(--white); font-family: var(--font-secondary); z-index: 999; opacity: 0; visibility: hidden; transform: translateY(20px); transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1); }
.back-to-top .arrow { font-size: 20px; line-height: 1; }
.back-to-top .text { font-size: 10px; letter-spacing: 1px; }
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { box-shadow: 0 0 15px var(--glow-color); transform: scale(1.1); }
.trail { position: fixed; width: 6px; height: 6px; background-color: var(--white); border-radius: 50%; pointer-events: none; z-index: 1002; opacity: 0; animation: fade-out 1s forwards; box-shadow: 0 0 5px var(--white); }
@keyframes fade-out { from { transform: scale(1); opacity: 1; } to { transform: scale(0.5); opacity: 0; } }

@media (pointer: fine) {
    .custom-cursor { display: block; width: 25px; height: 25px; border: 2px solid var(--white); border-radius: 50%; position: fixed; transform: translate(-50%, -50%); pointer-events: none; z-index: 1003; transition: width 0.2s, height 0.2s, background-color 0.2s; }
    .custom-cursor.hover { width: 50px; height: 50px; background-color: rgba(255, 255, 255, 0.2); }
    body { cursor: none; }
    .data-card:hover { box-shadow: 0 0 25px rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.3); transform: translateY(-5px) !important; }
    .data-card.use-3d-effect { transform-style: preserve-3d; }
    .grid-container.use-3d-effect { perspective: 1000px; }
    .staff-card:hover .staff-avatar { border-color: var(--white); box-shadow: 0 0 15px var(--glow-color); }
}

@media (max-width: 992px) {
    #products .grid-container { grid-template-columns: repeat(2, 1fr); }
    .join-us-section .container { flex-direction: column; align-items: center; text-align: center; }
    .join-us-content { margin-left: 0; text-align: center; margin-top: 2rem; }
    #digital-clock-container { width: 100%; height: 120px; }
    #digital-clock { font-size: 3rem; }
    .why-us-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .hero-content { padding: 0 15px; width: 100%; }
    .hero-content h1 { font-size: 2.5rem; min-height: 0; }
    .hero-content .subtitle { font-size: 1rem; }
    .section { padding: 4rem 0; }
    .section-title { font-size: 2rem; }
    
    .menu-toggle { display: block; z-index: 1002; }
    .hamburger { width: 25px; height: 2px; background: white; position: relative; transition: all 0.3s ease; }
    .hamburger::before, .hamburger::after { content: ''; position: absolute; width: 25px; height: 2px; background: white; transition: all 0.3s ease; }
    .hamburger::before { top: -8px; } .hamburger::after { top: 8px; }
    .menu-toggle.active .hamburger { background: transparent; }
    .menu-toggle.active .hamburger::before { transform: rotate(45deg); top: 0; }
    .menu-toggle.active .hamburger::after { transform: rotate(-45deg); top: 0; }
    
    .nav-right { gap: 1rem; }
    .nav-links { position: fixed; top: 0; right: -100%; width: 100%; height: 100vh; background: rgba(5, 5, 5, 0.95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: flex; justify-content: center; align-items: center; transition: right 0.5s ease-in-out; z-index: 1001; }
    .nav-links.active { right: 0; }
    .nav-links ul { flex-direction: column; text-align: center; gap: 2.5rem; width: 80%; max-width: 300px; }
    .nav-links ul a { font-size: 1.5rem; }

    .nav-links .nav-auth-item { width: 100%; padding-top: 1rem; border-top: 1px solid var(--border-color); margin-top: 1rem; }
    .nav-links li .btn-glass { width: 100%; text-align: center; padding: 12px 20px !important; font-size: 1.5rem !important; }
    .nav-links .user-menu { justify-content: center; width: 100%; }

    #products .grid-container, #staff .grid-container { grid-template-columns: 1fr; }
    .review-card { width: 90vw; }
    .back-to-top { width: 50px; height: 50px; bottom: 20px; right: 20px; }
    .hero-logo-watermark { height: 40vh; opacity: 0.05; -webkit-mask-image: none; mask-image: none; }
}