/* ============================================
   QuantSwarms Storefront — Global Styles
   Mirrors control_center/ui/css/main.css
   ============================================ */

body {
    font-family: 'Inter', sans-serif;
    background-color: #0f172a;
    color: #cbd5e1;
    position: relative;
    overflow-x: hidden;
}

/* Large decorative honeycomb pattern at bottom left */
body::before {
    content: '';
    position: fixed;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    z-index: 0;
    opacity: 0.06;
    background-image: url("data:image/svg+xml,%3Csvg width='400' height='400' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M 100,40 L 140,60 L 140,100 L 100,120 L 60,100 L 60,60 Z' stroke='%23a855f7' stroke-width='2' fill='none'/%3E%3Cpath d='M 55,100 L 95,120 L 95,160 L 55,180 L 15,160 L 15,120 Z' stroke='%23a855f7' stroke-width='2' fill='none'/%3E%3Cpath d='M 100,100 L 140,120 L 140,160 L 100,180 L 60,160 L 60,120 Z' stroke='%23a855f7' stroke-width='2' fill='none'/%3E%3Cpath d='M 145,100 L 185,120 L 185,160 L 145,180 L 105,160 L 105,120 Z' stroke='%23a855f7' stroke-width='2' fill='none'/%3E%3Cpath d='M 55,160 L 95,180 L 95,220 L 55,240 L 15,220 L 15,180 Z' stroke='%23a855f7' stroke-width='2' fill='none'/%3E%3Cpath d='M 100,160 L 140,180 L 140,220 L 100,240 L 60,220 L 60,180 Z' stroke='%23a855f7' stroke-width='2' fill='none'/%3E%3Cpath d='M 145,160 L 185,180 L 185,220 L 145,240 L 105,220 L 105,180 Z' stroke='%23a855f7' stroke-width='2' fill='none'/%3E%3Cpath d='M 190,100 L 230,120 L 230,160 L 190,180 L 150,160 L 150,120 Z' stroke='%23a855f7' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
}

/* Second honeycomb cluster top-right */
body::after {
    content: '';
    position: fixed;
    top: -60px;
    right: -80px;
    width: 300px;
    height: 300px;
    z-index: 0;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg width='300' height='300' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M 80,30 L 110,50 L 110,80 L 80,100 L 50,80 L 50,50 Z' stroke='%2384cc16' stroke-width='1.5' fill='none'/%3E%3Cpath d='M 120,50 L 150,70 L 150,100 L 120,120 L 90,100 L 90,70 Z' stroke='%2384cc16' stroke-width='1.5' fill='none'/%3E%3Cpath d='M 80,80 L 110,100 L 110,130 L 80,150 L 50,130 L 50,100 Z' stroke='%2384cc16' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
}

/* Ensure content stays above patterns */
body>* {
    position: relative;
    z-index: 1;
}

.font-mono {
    font-family: 'JetBrains Mono', monospace;
}

/* ---- Glassmorphism ---- */
.glass {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.glass-strong {
    background: rgba(30, 41, 59, 0.85);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(148, 163, 184, 0.15);
}

/* ---- Gradient Text ---- */
.gradient-text {
    background: linear-gradient(135deg, #a855f7, #6366f1, #84cc16);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-hero {
    background: linear-gradient(135deg, #ffffff 0%, #a855f7 50%, #84cc16 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- Animated Glow ---- */
.glow-purple {
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.15), 0 0 60px rgba(168, 85, 247, 0.05);
}

.glow-lime {
    box-shadow: 0 0 30px rgba(132, 204, 22, 0.15), 0 0 60px rgba(132, 204, 22, 0.05);
}

.glow-indigo {
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.2), 0 0 60px rgba(99, 102, 241, 0.08);
}

/* ---- Hover Lift ---- */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* ---- Animations ---- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(168, 85, 247, 0.2);
    }

    50% {
        box-shadow: 0 0 40px rgba(168, 85, 247, 0.4);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out both;
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out both;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-pulse-glow {
    animation: pulse-glow 3s ease-in-out infinite;
}

.animate-shimmer {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
}

/* Staggered delays */
.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-500 {
    animation-delay: 0.5s;
}

.delay-600 {
    animation-delay: 0.6s;
}

/* ---- Decorative Grid ---- */
.grid-pattern {
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* ---- Gradient Borders ---- */
.gradient-border {
    position: relative;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, #a855f7, #6366f1, #84cc16);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* ---- Pricing Card Highlight ---- */
.pricing-popular {
    border: 2px solid transparent;
    background-image: linear-gradient(rgba(30, 41, 59, 0.9), rgba(30, 41, 59, 0.9)), linear-gradient(135deg, #a855f7, #6366f1);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

/* ---- Smooth scroll ---- */
html {
    scroll-behavior: smooth;
}

/* ---- Selection ---- */
::selection {
    background: rgba(168, 85, 247, 0.3);
    color: #fff;
}

/* ---- Page Transitions ---- */
.page-enter-active {
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.page-leave-active {
    transition: opacity 0.15s ease;
}

.page-enter-from {
    opacity: 0;
    transform: translateY(12px);
}

.page-leave-to {
    opacity: 0;
}

/* ---- Fade Transition (BackToTop, etc) ---- */
.fade-enter-active,
.fade-leave-active {
    transition: opacity 0.3s ease;
}

.fade-enter-from,
.fade-leave-to {
    opacity: 0;
}