/* SalePage App Styles */

/* Smooth transitions */
* {
    transition-property: background-color, border-color, color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Loading spinner */
.spinner {
    border: 3px solid #e5e7eb;
    border-top: 3px solid #4f46e5;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Pulse animation for AI generating */
.pulse-ai {
    animation: pulse-ai 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-ai {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* =============================================
   MAINPAGE — Modern SaaS Landing Page Styles
   ============================================= */

/* Hero gradient mesh background */
.hero-gradient-mesh {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}
.hero-gradient-mesh::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    top: -25%;
    left: -25%;
    background:
        radial-gradient(ellipse 600px 600px at 20% 30%, rgba(99, 102, 241, 0.15), transparent),
        radial-gradient(ellipse 500px 500px at 70% 60%, rgba(168, 85, 247, 0.12), transparent),
        radial-gradient(ellipse 400px 400px at 50% 80%, rgba(59, 130, 246, 0.08), transparent);
    animation: gradient-shift 12s ease-in-out infinite alternate;
}
@keyframes gradient-shift {
    0% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(2%, -3%) rotate(1deg); }
    100% { transform: translate(-2%, 2%) rotate(-1deg); }
}

/* Grid pattern overlay */
.grid-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 1;
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #818cf8, #a78bfa, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Brand gradient text */
.gradient-text-brand {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Gradient button with glow */
.btn-glow {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}
.btn-glow::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #818cf8, #a78bfa);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.btn-glow:hover::before {
    opacity: 1;
}
.btn-glow:hover {
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.4), 0 0 60px rgba(139, 92, 246, 0.2);
    transform: translateY(-1px);
}
.btn-glow span {
    position: relative;
    z-index: 1;
}

/* Glass card */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Glass card light variant */
.glass-card-light {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

/* Browser chrome frame */
.browser-chrome {
    background: white;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}
.browser-chrome .browser-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}
.browser-chrome .browser-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.browser-chrome .browser-url {
    display: none;
}

/* Floating animation */
.animate-float {
    animation: float 6s ease-in-out infinite;
}
.animate-float-delayed {
    animation: float 6s ease-in-out 3s infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* Marquee infinite scroll */
.marquee-container {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.marquee-track {
    display: flex;
    gap: 3rem;
    animation: marquee 30s linear infinite;
    width: max-content;
}
.marquee-track:hover {
    animation-play-state: paused;
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Gradient border card */
.gradient-border-card {
    position: relative;
    background: linear-gradient(135deg, #6366f1, #a855f7, #34d399);
    padding: 1px;
    border-radius: 16px;
    transition: all 0.3s ease;
}
.gradient-border-card:hover {
    background: linear-gradient(135deg, #818cf8, #c084fc, #6ee7b7);
    box-shadow: 0 10px 40px -10px rgba(99, 102, 241, 0.15);
}
.gradient-border-card .card-inner {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    height: 100%;
}

/* Pricing card popular glow */
.pricing-popular-glow {
    position: relative;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    padding: 2px;
    border-radius: 16px;
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.2);
}
.pricing-popular-glow .card-inner {
    background: #0f172a;
    border-radius: 14px;
}

/* Scroll-aware navbar — dark glass style */
.navbar-scrolled {
    background: rgba(3, 7, 18, 0.85) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3) !important;
}
.navbar-transparent {
    background: transparent !important;
    border-bottom-color: transparent !important;
}
