/* Custom styles beyond Tailwind */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }

/* ─── Navbar ─── */
#navbar { color: #fff; }
#navbar a { color: rgba(255,255,255,0.9); }
#navbar .nav-logo-text { color: #fff; }
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
    color: #0f172a;
}
#navbar.scrolled a { color: #334155; }
#navbar.scrolled a:hover { color: #1E3A8A; }
#navbar.scrolled .nav-logo-text { color: #0f172a; }
#navbar.scrolled .nav-mobile-btn { color: #334155; }

/* ─── NEW: Dark hero with animated grid + glow orbs ─── */
.hero-dark {
    position: relative;
    background:
        radial-gradient(1200px 600px at 85% -10%, rgba(16,185,129,0.25) 0%, transparent 60%),
        radial-gradient(900px 500px at 10% 10%, rgba(59,130,246,0.28) 0%, transparent 55%),
        linear-gradient(180deg, #060B1F 0%, #0B1F4D 55%, #091538 100%);
    color: #fff;
    overflow: hidden;
    isolation: isolate;
}
.hero-dark::before {
    content: "";
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 40%, transparent 85%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 40%, transparent 85%);
    animation: grid-drift 30s linear infinite;
    z-index: -1;
}
.hero-dark::after {
    content: "";
    position: absolute; inset: 0;
    background:
        radial-gradient(400px 400px at 75% 70%, rgba(34,211,238,0.18), transparent 70%),
        radial-gradient(500px 500px at 20% 90%, rgba(139,92,246,0.15), transparent 70%);
    pointer-events: none;
    z-index: -1;
}
@keyframes grid-drift {
    from { background-position: 0 0, 0 0; }
    to   { background-position: 56px 56px, 56px 56px; }
}

/* Floating glow orbs used inside hero */
.orb {
    position: absolute;
    border-radius: 9999px;
    filter: blur(60px);
    opacity: 0.6;
    pointer-events: none;
    animation: float 12s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); }
    50%      { transform: translateY(-24px) translateX(12px); }
}

/* Decorative floating metric cards on home hero */
.metric-card {
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow: 0 20px 60px -20px rgba(0,0,0,0.5);
}
.metric-card.float-a { animation: float 8s ease-in-out infinite; }
.metric-card.float-b { animation: float 10s ease-in-out -2s infinite; }
.metric-card.float-c { animation: float 12s ease-in-out -4s infinite; }

/* Gradient text helper */
.text-gradient {
    background: linear-gradient(90deg, #fff 0%, #a7f3d0 40%, #67e8f9 80%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Legacy mesh (kept in case) */
.hero-mesh {
    background-image:
        radial-gradient(at 20% 20%, rgba(59, 130, 246, 0.18) 0, transparent 50%),
        radial-gradient(at 80% 0%,  rgba(11, 31, 77, 0.15) 0, transparent 50%),
        radial-gradient(at 80% 80%, rgba(34, 211, 238, 0.15) 0, transparent 50%);
}

/* ─── Logo marquee ─── */
@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 30s linear infinite;
}

/* ─── Carousel ─── */
[data-carousel] { overflow: hidden; }
[data-track] {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
[data-track] > * { flex: 0 0 100%; }

/* ─── Reduce-motion ─── */
@media (prefers-reduced-motion: reduce) {
    .marquee-track, .animate-pulse, .animate-ping,
    .hero-dark::before, .orb, .metric-card { animation: none !important; }
}
