/* ===== Base Styles ===== */
body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: #0b0e11;
    color: #ffffff;
    background-image:
        radial-gradient(circle at 50% 0%, rgba(160, 32, 240, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(20, 241, 149, 0.1) 0%, transparent 50%),
        linear-gradient(rgba(11, 14, 17, 0.97), rgba(11, 14, 17, 0.97));
    overflow-x: hidden;
}
html { scroll-behavior: smooth; overflow-x: hidden; }

/* ===== Preloader ===== */
.preloader {
    position: fixed; inset: 0; z-index: 9999;
    background: #0b0e11;
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.preloader.loaded { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-logo {
    font-size: 2rem; font-weight: 900; letter-spacing: -0.05em;
    background: linear-gradient(135deg, #14F195 0%, #a020f0 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    animation: preloaderPulse 1.2s ease-in-out infinite;
}
@keyframes preloaderPulse {
    0%, 100% { opacity: 0.4; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1.05); }
}

/* ===== Page Fade In ===== */
.page-content { opacity: 0; transition: opacity 0.6s ease; }
.page-content.visible { opacity: 1; }

/* ===== Navigation ===== */
.nav-glass {
    background: rgba(11, 14, 17, 0.6);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}
.nav-glass.nav-scrolled {
    background: rgba(11, 14, 17, 0.92);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* ===== Mobile Menu ===== */
.mobile-menu {
    max-height: 0; overflow: hidden; opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}
.mobile-menu.open { max-height: 400px; opacity: 1; }
.hamburger-line {
    display: block; width: 24px; height: 2px; background: #a3abc0;
    transition: all 0.3s ease; border-radius: 2px;
}
.hamburger.active .hamburger-line:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active .hamburger-line:nth-child(2) { opacity: 0; }
.hamburger.active .hamburger-line:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== Glass Cards & Panels ===== */
.glass-card {
    background: rgba(17, 20, 23, 0.6);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(39, 42, 46, 0.6);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}
.glass-card:hover { transform: translateY(-4px); box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.glass-panel {
    background: rgba(17, 20, 23, 0.5);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.glass-panel:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(0,0,0,0.3); }

/* ===== Gradients ===== */
.solana-gradient { background: linear-gradient(135deg, #14F195 0%, #a020f0 100%); }
.solana-text-gradient {
    background: linear-gradient(135deg, #14F195 0%, #a020f0 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.gradient-text {
    background: linear-gradient(135deg, #14F195 0%, #a020f0 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.solana-gradient-btn {
    background: linear-gradient(135deg, #14F195 0%, #a020f0 100%);
    transition: all 0.3s ease;
}
.solana-gradient-btn:hover { opacity: 0.9; transform: scale(0.98); }

/* ===== Material Symbols ===== */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ===== Status Pill ===== */
.status-pill {
    background: rgba(20, 241, 149, 0.08);
    border: 1px solid rgba(20, 241, 149, 0.15);
}

/* ===== Premium Glow ===== */
.premium-glow { box-shadow: 0 0 60px rgba(20,241,149,0.1), 0 0 120px rgba(160,32,240,0.05); }

/* ===== FAQ ===== */
.sidebar-active {
    background: linear-gradient(90deg, rgba(20,241,149,0.1) 0%, rgba(160,32,240,0.05) 100%);
    border-left: 3px solid #14F195;
}
.faq-section { scroll-margin-top: 8rem; }
.faq-answer {
    max-height: 0; overflow: hidden; opacity: 0;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease, opacity 0.3s ease;
}
.faq-answer.open { opacity: 1; }
.faq-icon { transition: transform 0.3s ease; }
.faq-item.active .faq-icon { transform: rotate(180deg); }
.faq-card {
    position: relative;
    border-left: 2px solid transparent;
    transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.faq-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(20,241,149,0.05), 0 10px 40px rgba(0,0,0,0.2);
    border-left-color: #14F195;
}
.faq-card.active {
    border-left-color: #14F195;
    box-shadow: 0 0 30px rgba(20,241,149,0.08), 0 10px 40px rgba(0,0,0,0.25);
}
.faq-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 8px; font-size: 11px;
    font-weight: 800; flex-shrink: 0;
    background: rgba(20,241,149,0.1); color: #14F195;
    transition: background 0.3s ease, color 0.3s ease;
}
.faq-card.active .faq-num,
.faq-card:hover .faq-num {
    background: linear-gradient(135deg, #14F195, #a020f0);
    color: #000;
}
.faq-search-input:focus {
    box-shadow: 0 0 0 2px rgba(20,241,149,0.3), 0 0 30px rgba(20,241,149,0.08);
}
.helpful-btn {
    transition: all 0.2s ease;
}
.helpful-btn:hover { background: rgba(20,241,149,0.15); }
.helpful-btn.voted { background: rgba(20,241,149,0.2); color: #14F195; pointer-events: none; }
.popular-card {
    transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.popular-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 30px rgba(20,241,149,0.08), 0 15px 40px rgba(0,0,0,0.25);
    border-color: rgba(20,241,149,0.3);
}

/* ===== Ticker Scroll ===== */
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.animate-scroll { display: flex; animation: scroll 40s linear infinite; }

/* ===== Aurora Background ===== */
.aurora-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.aurora-blob {
    position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.12;
    animation: auroraFloat 20s ease-in-out infinite alternate;
}
.aurora-blob:nth-child(1) { width:600px; height:600px; background:#a020f0; top:-10%; left:30%; animation-duration:25s; }
.aurora-blob:nth-child(2) { width:500px; height:500px; background:#14F195; bottom:-10%; right:10%; animation-duration:20s; animation-delay:-5s; }
.aurora-blob:nth-child(3) { width:400px; height:400px; background:#a020f0; top:40%; right:30%; animation-duration:30s; animation-delay:-10s; }
@keyframes auroraFloat {
    0% { transform: translate(0,0) scale(1); }
    33% { transform: translate(60px,-40px) scale(1.1); }
    66% { transform: translate(-40px,30px) scale(0.9); }
    100% { transform: translate(20px,-20px) scale(1.05); }
}

/* ===== Hero Float ===== */
.solana-3d-spin {
    animation: solana3dRotate 8s ease-in-out infinite;
    perspective: 800px;
    transform-style: preserve-3d;
}
@keyframes solana3dRotate {
    0%   { transform: translate(-50%, -50%) rotateY(0deg)   rotateX(0deg)   scale(1);   }
    25%  { transform: translate(-50%, -50%) rotateY(30deg)  rotateX(10deg)  scale(1.05); }
    50%  { transform: translate(-50%, -50%) rotateY(0deg)   rotateX(-5deg)  scale(1);   }
    75%  { transform: translate(-50%, -50%) rotateY(-30deg) rotateX(10deg)  scale(1.05); }
    100% { transform: translate(-50%, -50%) rotateY(0deg)   rotateX(0deg)   scale(1);   }
}
.float-card-1 { animation: floatCard1 6s ease-in-out infinite; }
.float-card-2 { animation: floatCard2 7s ease-in-out infinite; }
@keyframes floatCard1 { 0%,100% { transform: rotate(3deg) translateY(0); } 50% { transform: rotate(3deg) translateY(-15px); } }
@keyframes floatCard2 { 0%,100% { transform: rotate(-6deg) translateY(0); } 50% { transform: rotate(-6deg) translateY(-12px); } }

/* ===== Gradient Word ===== */
.gradient-word {
    background: linear-gradient(270deg, #14F195, #a020f0, #14F195);
    background-size: 400% 400%;
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    animation: gradientShift 4s ease infinite;
}
@keyframes gradientShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

/* ===== Particles ===== */
.particles-container { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.particle {
    position: absolute; width: 3px; height: 3px; background: rgba(20,241,149,0.3);
    border-radius: 50%; animation: particleFloat linear infinite;
}
.particle:nth-child(odd) { background: rgba(160,32,240,0.25); width: 2px; height: 2px; }
@keyframes particleFloat {
    0% { transform: translateY(100vh) translateX(0); opacity: 0; }
    10% { opacity: 1; } 90% { opacity: 1; }
    100% { transform: translateY(-10vh) translateX(50px); opacity: 0; }
}

/* ===== Back to Top ===== */
.back-to-top {
    position: fixed; bottom: 2rem; right: 2rem; z-index: 40;
    width: 48px; height: 48px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #14F195 0%, #a020f0 100%);
    color: #000; box-shadow: 0 0 30px rgba(20,241,149,0.3);
    opacity: 0; visibility: hidden; transform: translateY(20px);
    transition: all 0.3s ease; cursor: pointer; border: none;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-3px) scale(1.1); }

/* ===== Step Cards ===== */
.step-number {
    width: 56px; height: 56px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 1.25rem; position: relative;
}
.step-number::after {
    content: ''; position: absolute; inset: -4px; border-radius: 50%;
    border: 2px solid transparent;
    background: linear-gradient(135deg, rgba(20,241,149,0.3), rgba(160,32,240,0.3)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    animation: stepPulse 3s ease-in-out infinite;
}
@keyframes stepPulse { 0%,100% { opacity:0.5; transform:scale(1); } 50% { opacity:1; transform:scale(1.1); } }

/* ===== Testimonial Cards ===== */
.testimonial-card {
    background: rgba(17,20,23,0.6); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.4s ease, border-color 0.4s ease;
}
.testimonial-card:hover { transform: translateY(-6px); border-color: rgba(20,241,149,0.2); }

/* ===== Comparison Table ===== */
.comparison-table { border-collapse: separate; border-spacing: 0; width: 100%; }
.comparison-table th, .comparison-table td { padding: 1rem 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.05); text-align: left; }
.comparison-table thead th { border-bottom: 2px solid rgba(20,241,149,0.2); }
.comparison-table tbody tr { transition: background 0.2s ease; }
.comparison-table tbody tr:hover { background: rgba(20,241,149,0.03); }

/* ===== Form Validation ===== */
.form-input { transition: border-color 0.3s ease, box-shadow 0.3s ease; }
.form-input.error { border-color: #ff716c !important; box-shadow: 0 0 0 3px rgba(255,113,108,0.15); }
.form-input.success { border-color: #14F195 !important; box-shadow: 0 0 0 3px rgba(20,241,149,0.1); }
.error-message { color: #ff716c; font-size: 0.75rem; font-weight: 600; margin-top: 0.25rem; display: none; }
.error-message.show { display: block; animation: shakeError 0.3s ease; }
@keyframes shakeError { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* ===== Social Icons ===== */
.social-icon {
    transition: transform 0.3s ease, color 0.3s ease;
    display: inline-flex; align-items: center; gap: 0.5rem;
}
.social-icon:hover { transform: translateY(-2px); }
.social-icon svg { width: 18px; height: 18px; fill: currentColor; }

/* ===== Toast ===== */
.toast {
    position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%) translateY(100px);
    padding: 1rem 2rem; border-radius: 1rem; z-index: 100;
    font-weight: 700; font-size: 0.875rem;
    opacity: 0; transition: all 0.4s ease;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast.success { background: rgba(20,241,149,0.15); border: 1px solid rgba(20,241,149,0.3); color: #14F195; }

/* ===== Step Connector ===== */
.step-connector {
    position: absolute; top: 28px; left: 16.67%; width: 66.67%; height: 2px;
    background: linear-gradient(90deg, rgba(20,241,149,0.3), rgba(160,32,240,0.3));
    z-index: 0;
}

/* ===== Activity Feed ===== */
.activity-item {
    animation: activityFadeIn 0.35s ease-out both;
}
@keyframes activityFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Trading Arsenal Cards ===== */
.arsenal-card {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}
.arsenal-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 40px rgba(20, 241, 149, 0.08), 0 20px 60px rgba(0,0,0,0.3);
    border-color: rgba(20, 241, 149, 0.25);
}
.arsenal-card-purple:hover {
    box-shadow: 0 0 40px rgba(160, 32, 240, 0.1), 0 20px 60px rgba(0,0,0,0.3);
    border-color: rgba(160, 32, 240, 0.25);
}
.scanner-sweep {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #14F195, transparent);
    animation: scanSweep 3s ease-in-out infinite;
    opacity: 0.6;
}
@keyframes scanSweep {
    0% { top: 0; opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { top: 100%; opacity: 0; }
}
.pnl-bar {
    transform-origin: bottom;
    animation: barGrow 1.2s ease-out both;
}
@keyframes barGrow {
    from { transform: scaleY(0); }
    to { transform: scaleY(1); }
}
.badge-pulse {
    animation: badgePulse 2s ease-in-out infinite;
}
@keyframes badgePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}
.snipe-line {
    background-size: 200% 100%;
    animation: snipeFlow 2s linear infinite;
}
@keyframes snipeFlow {
    0% { background-position: -100% 0; }
    100% { background-position: 200% 0; }
}
.arsenal-stat {
    transition: text-shadow 0.3s ease;
}
.arsenal-card:hover .arsenal-stat {
    text-shadow: 0 0 20px rgba(74, 222, 128, 0.4);
}
