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

html {
    scroll-behavior: smooth;
}

body {
    background: #0a0a0f;
}

#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a0a0f;
}
::-webkit-scrollbar-thumb {
    background: #8B5CF6;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a78bfa;
}

/* Glow text */
.glow-text {
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.8),
                 0 0 40px rgba(139, 92, 246, 0.4),
                 0 0 80px rgba(139, 92, 246, 0.2);
}

.glow-text-cyan {
    text-shadow: 0 0 20px rgba(6, 182, 212, 0.8),
                 0 0 40px rgba(6, 182, 212, 0.4);
}

.glow-text-magenta {
    text-shadow: 0 0 20px rgba(236, 72, 153, 0.8),
                 0 0 40px rgba(236, 72, 153, 0.4);
}

/* Glass card */
.glass-card {
    background: rgba(17, 17, 24, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(139, 92, 246, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.15),
                inset 0 0 30px rgba(139, 92, 246, 0.05);
    transform: translateY(-4px);
}

.glass-card-static {
    background: rgba(17, 17, 24, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(139, 92, 246, 0.15);
}

/* Recommended card */
.recommended-card {
    border: 2px solid rgba(139, 92, 246, 0.6);
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.2),
                inset 0 0 40px rgba(139, 92, 246, 0.05);
}

.recommended-card:hover {
    border-color: rgba(139, 92, 246, 0.8);
    box-shadow: 0 0 60px rgba(139, 92, 246, 0.3),
                inset 0 0 60px rgba(139, 92, 246, 0.08);
}

/* CTA Button */
.cta-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.cta-btn:hover::before {
    left: 100%;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.5);
}

/* Nav active link */
.nav-link-active {
    color: #8B5CF6 !important;
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

/* Fade in animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Hero title animation */
@keyframes heroGlow {
    0%, 100% {
        text-shadow: 0 0 20px rgba(139, 92, 246, 0.8),
                     0 0 40px rgba(139, 92, 246, 0.4),
                     0 0 80px rgba(139, 92, 246, 0.2);
    }
    50% {
        text-shadow: 0 0 30px rgba(139, 92, 246, 1),
                     0 0 60px rgba(139, 92, 246, 0.6),
                     0 0 100px rgba(139, 92, 246, 0.3),
                     0 0 140px rgba(236, 72, 153, 0.15);
    }
}

.hero-title {
    animation: heroGlow 3s ease-in-out infinite;
}

/* Bounce arrow */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(12px); }
}

.bounce-arrow {
    animation: bounce 2s ease-in-out infinite;
}

/* Gauge fill */
.gauge-fill {
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* FAQ accordion */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
}

.faq-content.open {
    max-height: 500px;
}

/* Tag cloud */
.tag-bubble {
    transition: all 0.3s ease;
    cursor: pointer;
}

.tag-bubble:hover, .tag-bubble.active {
    background: rgba(139, 92, 246, 0.3);
    border-color: rgba(139, 92, 246, 0.8);
    transform: scale(1.08);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

/* Lightbox */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(8px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Mobile menu */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open {
    transform: translateX(0);
}

/* Toast notification */
.toast {
    animation: slideInRight 0.4s ease, fadeOut 0.4s ease 2.6s forwards;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Counter animation */
@keyframes countUp {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

/* Section divider */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.3), rgba(6, 182, 212, 0.3), transparent);
}

/* Version ribbon */
.ribbon {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 100px;
    height: 100px;
    overflow: hidden;
    z-index: 10;
}

.ribbon span {
    position: absolute;
    display: block;
    width: 160px;
    padding: 6px 0;
    background: linear-gradient(135deg, #8B5CF6, #EC4899);
    color: white;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 1px;
    right: -40px;
    top: 25px;
    transform: rotate(45deg);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

/* Install step number */
.step-number {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.25rem;
    background: linear-gradient(135deg, #8B5CF6, #06B6D4);
    color: white;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 50;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B5CF6, #EC4899);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.6);
}