@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

body {
    font-family: 'Outfit', sans-serif;
    scroll-behavior: smooth;
    background-color: #f8fafc; /* Slate 50 */
    color: #0f172a; /* Slate 900 */
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.glass-nav {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

#mobile-menu {
    z-index: 49;
    background: white;
}

/* Page Loader */
#page-preloader {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 999999;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
#page-preloader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    display: none !important;
}
.loader-spinner-outer {
    position: relative;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.loader-spinner-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3.5px solid #dcfce7;
    border-top-color: #22c55e;
    animation: spinLoader 0.75s linear infinite;
}
@keyframes spinLoader {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.text-gradient {
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 50%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #22c55e 0%, #10b981 100%);
}

.bg-gradient-hover {
    background: linear-gradient(135deg, #16a34a 0%, #059669 100%);
}

/* Primary Button Styles */
.btn-brand, .btn-gradient, .btn-primary {
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%) !important;
    color: #ffffff !important;
    transition: all 0.3s ease;
}
.btn-brand:hover, .btn-gradient:hover, .btn-primary:hover {
    background: linear-gradient(135deg, #15803d 0%, #16a34a 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(34, 197, 94, 0.4) !important;
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(1deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

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

.animate-float-delayed {
    animation: float 6s ease-in-out 2.5s infinite;
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { box-shadow: 0 0 15px 10px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.pulse-button {
    animation: pulse-glow 2s infinite;
}

@keyframes drawBorder {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.creative-border {
    position: relative;
    background-clip: padding-box;
    border: 2px solid transparent;
}
.creative-border::before {
    content: '';
    position: absolute;
    top: -2px; bottom: -2px;
    left: -2px; right: -2px;
    background: linear-gradient(90deg, #22c55e, #3b82f6, #22c55e);
    background-size: 200% auto;
    border-radius: inherit;
    z-index: -1;
    animation: drawBorder 3s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.creative-border:hover::before {
    opacity: 1;
}

/* Hero Section Attractive Animations */
@keyframes textGradientShimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-gradient-animated {
    background: linear-gradient(135deg, #15803d 0%, #16a34a 25%, #10b981 50%, #06b6d4 75%, #16a34a 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    animation: textGradientShimmer 5s ease infinite;
}

@keyframes auraPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.45; }
    50% { transform: translate(-50%, -50%) scale(1.18); opacity: 0.75; }
}

.hero-aurora-glow {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(750px, 90vw);
    height: min(450px, 60vw);
    background: radial-gradient(circle, rgba(34,197,94,0.28) 0%, rgba(6,182,212,0.18) 40%, rgba(59,130,246,0.12) 65%, transparent 80%);
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    animation: auraPulse 8s ease-in-out infinite;
    z-index: 0;
}

@keyframes badgeShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}

.meta-partner-badge {
    position: relative;
    overflow: hidden;
    font-size: 0.875rem !important; /* 14px */
    line-height: 1.25rem !important;
}
.meta-partner-badge span {
    font-size: 0.875rem !important;
}
.meta-partner-badge i {
    font-size: 0.875rem !important;
}
.meta-partner-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    animation: badgeShimmer 3.5s infinite;
    pointer-events: none;
}

/* 3D Hover Effects for Cards */
.hover-3d {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}
.hover-3d:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.08);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

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

.marquee-track {
    display: flex;
    width: max-content;
}

.animate-marquee {
    animation: marquee 25s linear infinite;
}

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

/* Fixed Blob Backgrounds (Prevents document layout shift & top whitespace on mobile) */
.blob-1, .blob-2, .blob-3 {
    position: fixed;
    pointer-events: none;
    z-index: 0;
}

.blob-1 {
    top: -50px;
    left: -50px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(34,197,94,0.12) 0%, rgba(248,250,252,0) 70%);
    filter: blur(60px);
    animation: float 10s ease-in-out infinite;
}

.blob-2 {
    top: 30%;
    right: -100px;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(59,130,246,0.1) 0%, rgba(248,250,252,0) 70%);
    filter: blur(70px);
    animation: float 12s ease-in-out infinite reverse;
}

.blob-3 {
    bottom: 5%;
    left: 10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(234,179,8,0.08) 0%, rgba(248,250,252,0) 70%);
    filter: blur(60px);
    animation: float 8s ease-in-out infinite;
}

@media (max-width: 768px) {
    .blob-1 {
        width: 250px;
        height: 250px;
        top: -30px;
        left: -30px;
        filter: blur(35px);
    }
    .blob-2 {
        width: 280px;
        height: 280px;
        top: 40%;
        right: -50px;
        filter: blur(40px);
    }
    .blob-3 {
        width: 220px;
        height: 220px;
        bottom: 5%;
        left: 0;
        filter: blur(35px);
    }
    .hover-3d:hover {
        transform: translateY(-3px) scale(1.01);
    }
}

/* Prevent horizontal overflow on mobile webkit engines */
html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

/* ── Front-facing website standard typography ──────────────── */
/* These apply ONLY to public/front website pages, NOT the inner app. */

/* Hero headings — standard readable sizes */
body:not(.app-page) #main-content h1,
body:not(.app-page) main h1 {
    font-size: clamp(2.25rem, 6vw, 3.5rem);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.02em;
}

/* Section headings — smaller than hero, readable content sizes */
body:not(.app-page) #main-content h2,
body:not(.app-page) main h2 {
    font-size: clamp(1.35rem, 2.8vw, 1.875rem);
    line-height: 1.25;
    font-weight: 700;
}

body:not(.app-page) #main-content h3,
body:not(.app-page) main h3 {
    font-size: clamp(1.05rem, 1.8vw, 1.375rem);
    line-height: 1.35;
    font-weight: 600;
}

body:not(.app-page) #main-content h4,
body:not(.app-page) main h4 {
    font-size: clamp(0.95rem, 1.4vw, 1.125rem);
    line-height: 1.45;
    font-weight: 600;
}

body:not(.app-page) #main-content p,
body:not(.app-page) main p {
    font-size: clamp(0.9rem, 1.2vw, 1rem);
    line-height: 1.7;
}

/* Responsive adjustments for content sections */
@media (max-width: 640px) {
    body:not(.app-page) #main-content h1,
    body:not(.app-page) main h1 {
        font-size: clamp(2rem, 9vw, 3rem);
        line-height: 1.1;
    }
    body:not(.app-page) #main-content h2,
    body:not(.app-page) main h2 {
        font-size: clamp(1.2rem, 5vw, 1.5rem);
    }
    body:not(.app-page) #main-content h3,
    body:not(.app-page) main h3 {
        font-size: clamp(1rem, 4vw, 1.2rem);
    }
    body:not(.app-page) #main-content p,
    body:not(.app-page) main p {
        font-size: 0.9375rem;
    }
}

/* ── Inner app sidebar only ─────────────────────────────────── */
#sidebar .nav-text { font-size: 0.7rem; }

