:root {
    --blue-500: #3b82f6;
    --indigo-400: #818cf8;
}

* {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    scrollbar-width: thin;
    scrollbar-color: rgba(59, 130, 246, 0.2) transparent;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.2);
    border-radius: 10px;
}

.grid-bg {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.03) 1px, transparent 0);
    background-size: 40px 40px;
}

/* Nav Link Hover */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0%;
    height: 1px;
    background: var(--blue-500);
    transition: width 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.nav-link:hover {
    color: white;
}

.nav-link:hover::after {
    width: 100%;
}

/* Animations */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-up {
    animation: fadeUp 1s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.animate-float {
    animation: float 5s ease-in-out infinite;
}

@keyframes pulseSlow {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.05); }
}

.animate-pulse-slow {
    animation: pulseSlow 8s ease-in-out infinite;
}

/* Glassmorphism */
.glass-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.5rem;
}

/* Hero Globe Animation Removed as requested */

/* Cards */
.stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 1.5rem;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-5px);
}

.solution-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem 2.5rem;
    border-radius: 2.5rem;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.05), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.solution-card:hover {
    transform: translateY(-10px);
    border-color: rgba(59, 130, 246, 0.2);
    background: rgba(15, 23, 42, 0.8);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.4);
}

.solution-card:hover::before {
    opacity: 1;
}

.active-card {
    background: rgba(59, 130, 246, 0.05);
    border-color: rgba(59, 130, 246, 0.3);
}

.log-line {
    opacity: 0;
    transform: translateX(-10px);
    animation: logSlide 0.3s forwards ease-out;
}

@keyframes logSlide {
    to { opacity: 1; transform: translateX(0); }
}

.scanning-effect {
    position: relative;
    overflow: hidden;
}

.scanning-effect::after {
    content: "";
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(59, 130, 246, 0.1), transparent);
    animation: scanMove 3s infinite linear;
}

@keyframes scanMove {
    0% { top: -100%; }
    100% { top: 100%; }
}

.dashboard-preview {
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.8), 0 0 40px rgba(59, 130, 246, 0.1);
}

/* Marquee Animation */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.marquee-content {
    animation: marquee 40s linear infinite;
    display: flex;
}

.marquee-content:hover {
    animation-play-state: paused;
}

/* Pulse for device intel */
#device-intel {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.1);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    h1 {
        font-size: 3rem !important;
        line-height: 1 !important;
    }
    .hero-globe {
        max-width: 300px;
    }
    .py-32 {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
}