/* =========================================
   CORE TOKENS & RESET (DARK 2.0)
   ========================================= */
:root {
    --token-d98a4c00-7e0c-42c7-87be-9d10760cb03b: #d5ff40;
    --accent: var(--token-d98a4c00-7e0c-42c7-87be-9d10760cb03b);
    --accent-dim: rgba(213, 255, 64, 0.15);
    --accent-glow: rgba(213, 255, 64, 0.4);
    --bg-body: #0a0a0c;
    --bg-surface: #0f0f13;
    --bg-highlight: #15151a;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-light: #64748b;
    --border-light: rgba(255, 255, 255, 0.1);
    --accent-primary: var(--accent);
    --accent-secondary: #3b82f6;
    --accent-tertiary: #8b5cf6;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out-expo: cubic-bezier(0.87, 0, 0.13, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
}

/* TEXT OUTLINE (lettering transparente - branco) */
.text-outline {
    -webkit-text-stroke: 1px #f8fafc;
    color: transparent;
    transition: all 0.5s ease;
}

.text-outline-glow {
    -webkit-text-stroke: 1px #f8fafc;
    color: transparent;
    text-shadow: 0 0 30px rgba(248, 250, 252, 0.3);
    transition: all 0.5s ease;
}

.text-stroke-outline {
    color: transparent;
    -webkit-text-stroke: 1px rgba(248, 250, 252, 0.3);
    transition: all 0.5s ease;
}

.text-stroke-outline:hover {
    -webkit-text-stroke: 1px #f8fafc;
}

/* NOISE Overlay */
.noise-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0.04;
    pointer-events: none;
    z-index: 9999;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* BEAM BUTTON (dark - emerald) */
.btn-beam {
    position: relative;
    z-index: 10;
    overflow: hidden;
}
.btn-beam::before {
    content: "";
    position: absolute;
    inset: -2px;
    z-index: -1;
    background: conic-gradient(from 90deg at 50% 50%, var(--accent) 0%, #f8fafc 50%, var(--accent) 100%);
    animation: spin 4s linear infinite;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s;
}
.btn-beam:hover::before { opacity: 1; }
.btn-beam-content {
    background-color: #0a0a0c;
    color: var(--accent);
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--accent-dim);
}

/* GLOW BUTTON */
.btn-glow {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--accent) 0%, #a8c91a 100%);
    color: #0a0a0c;
    border: none;
    transition: all 0.3s ease;
}
.btn-glow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}
.btn-glow:hover::before {
    width: 300px;
    height: 300px;
}
.btn-glow:hover {
    box-shadow: 0 0 30px var(--accent-glow);
    transform: translateY(-2px);
}

/* SHIMMER BUTTON */
.btn-shimmer {
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, #15151a 0%, #1a1a20 50%, #15151a 100%);
    background-size: 200% 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}
.btn-shimmer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(213, 255, 64, 0.15), transparent);
    transition: left 0.5s;
}
.btn-shimmer:hover::before {
    left: 100%;
}

/* Reveal Animations */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(15px);
    will-change: transform, opacity, filter;
    transition: all 1.2s var(--ease-out-expo);
}
.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}
.reveal-zoom {
    opacity: 0;
    transform: scale(0.95);
    filter: blur(10px);
    transition: all 1s var(--ease-out-expo);
}
.reveal-zoom.active {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
}
.reveal-fade {
    opacity: 0;
    transition: opacity 1s var(--ease-out-expo);
}
.reveal-fade.active {
    opacity: 1;
}

/* Float Animation */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(2deg); }
    66% { transform: translateY(-10px) rotate(-2deg); }
}
.animate-float {
    animation: float 6s ease-in-out infinite;
}
.animate-float-slow {
    animation: float 10s ease-in-out infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Marquee */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 40s linear infinite;
}

/* Glass / Grid (dark) */
.glass-panel {
    background: rgba(10, 10, 12, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.bg-grid {
    background-size: 40px 40px;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

/* Flashlight Card (dark) */
.flashlight-card {
    --mouse-x: 150px;
    --mouse-y: 150px;
}
.flashlight-card::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle at center, var(--accent-dim) 0%, transparent 60%);
    top: var(--mouse-y);
    left: var(--mouse-x);
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}
.flashlight-card:hover::before { opacity: 1; }

/* Glow Card (dark) */
.glow-card {
    background: rgba(21, 21, 26, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}
.glow-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(213, 255, 64, 0.12) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s;
}
.glow-card:hover::after {
    opacity: 1;
}

/* Beam Button (dark - emerald) */
.beam-btn {
    position: relative;
    overflow: hidden;
    border-radius: 999px;
    padding: 1px;
    cursor: pointer;
}
.beam-btn-content {
    background: #0a0a0c;
    color: var(--accent);
    padding: 12px 32px;
    border-radius: 999px;
    position: relative;
    z-index: 2;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.8rem;
    border: 1px solid var(--accent-dim);
}
.beam-spinner {
    position: absolute;
    inset: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent 0 340deg, var(--accent) 360deg);
    animation: spin 3s linear infinite;
}

/* Stagger Delays */
.delay-100 { animation-delay: 0.1s; transition-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; transition-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; transition-delay: 0.3s; }
.delay-500 { animation-delay: 0.5s; transition-delay: 0.5s; }
.delay-700 { animation-delay: 0.7s; transition-delay: 0.7s; }
.delay-1000 { animation-delay: 1s; transition-delay: 1s; }

/* Scroll line */
@keyframes scroll-line {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}
.animate-scroll-line {
    animation: scroll-line 1.5s cubic-bezier(0.77, 0, 0.175, 1) infinite;
}

/* Gradient Background Animation */
.gradient-bg {
    background: linear-gradient(-45deg, #0a0a0c, #0f0f13, #15151a, #0a0a0c);
    background-size: 400% 400%;
    animation: gradient-shift 15s ease infinite;
}
@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Particle Background */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}
.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--accent);
    border-radius: 50%;
    animation: particle-float 20s infinite;
}
@keyframes particle-float {
    0% { transform: translateY(100vh) translateX(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) translateX(100px); opacity: 0; }
}

/* Custom Scrollbar (dark) — accent */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0a0a0c; }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #e0ff60; }

/* Selection — accent */
::selection {
    background: var(--accent-dim);
    color: var(--accent);
}

/* Accent utilities */
.text-accent { color: var(--accent); }
.bg-accent { background-color: var(--accent); }
.border-accent { border-color: var(--accent); }
.border-accent-dim { border-color: var(--accent-dim); }
.hover\:text-accent:hover { color: var(--accent); }
