/* ============================================
   Fleetive Landing Page — Custom Styles
   Only for things Tailwind can't handle:
   complex animations, gradients, scroll-triggered
   classes, pricing slider, Framer-style effects.
   ============================================ */

/* ---- Base animation state ---- */
[data-animate] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        filter 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-animate="fade-up"].animate-in {
    opacity: 1;
    transform: translateY(0);
}

[data-animate="fade-in"] {
    transform: none;
}

[data-animate="fade-in"].animate-in {
    opacity: 1;
}

[data-animate="slide-left"] {
    transform: translateX(-60px);
}

[data-animate="slide-left"].animate-in {
    opacity: 1;
    transform: translateX(0);
}

[data-animate="slide-right"] {
    transform: translateX(60px);
}

[data-animate="slide-right"].animate-in {
    opacity: 1;
    transform: translateX(0);
}

[data-animate="scale-in"] {
    transform: scale(0.9);
}

[data-animate="scale-in"].animate-in {
    opacity: 1;
    transform: scale(1);
}

[data-animate="blur-in"] {
    filter: blur(10px);
    transform: translateY(20px);
}

[data-animate="blur-in"].animate-in {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

/* ---- Hero entrance stagger ---- */
.hero-stagger>* {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-stagger.loaded>*:nth-child(1) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

.hero-stagger.loaded>*:nth-child(2) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.25s;
}

.hero-stagger.loaded>*:nth-child(3) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.45s;
}

.hero-stagger.loaded>*:nth-child(4) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s;
}

.hero-stagger.loaded>*:nth-child(5) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.75s;
}

/* ---- Hero gradient background ---- */
.hero-bg {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f5ff 25%, #f5f0ff 50%, #fff 100%);
    background-size: 200% 200%;
    animation: gradientShift 12s ease infinite;
}

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

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ---- Gradient text ---- */
.gradient-text {
    background: linear-gradient(135deg, #0066FF 0%, #00B8D9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- Pulse dot ---- */
.pulse-dot {
    width: 8px;
    height: 8px;
    background: #00D68F;
    border-radius: 50%;
    display: inline-block;
    animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(0, 214, 143, 0.6);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(0, 214, 143, 0);
    }
}

/* ---- Feature card hover ---- */
.feature-card {
    position: relative;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px -12px rgba(0, 102, 255, 0.12),
        0 8px 16px -8px rgba(0, 0, 0, 0.06);
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, #0066FF, #00B8D9);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

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

/* ---- Primary button glow ---- */
.btn-glow {
    position: relative;
    overflow: visible;
}

.btn-glow::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #0066FF, #00B8D9, #0066FF);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    border-radius: inherit;
    z-index: -1;
    filter: blur(12px);
    opacity: 0.5;
}

/* ---- Navbar scrolled ---- */
#navbar {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
        background 0.3s ease,
        box-shadow 0.3s ease;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* ---- Dashboard tilt ---- */
.tilt-card {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Toast notification ---- */
.toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: #1f2937;
    color: white;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9375rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.toast-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast-error {
    background: #dc2626;
}

/* ---- Section divider ---- */
.section-divider {
    position: relative;
}

.section-divider::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 80px;
    background: inherit;
    clip-path: ellipse(60% 100% at 50% 0%);
}

/* ---- Pricing slider ---- */
.pricing-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(90deg, #0066FF 0%, #00B8D9 100%);
    outline: none;
}

.pricing-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    border: 3px solid #0066FF;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 102, 255, 0.3);
}

.pricing-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    border: 3px solid #0066FF;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 102, 255, 0.3);
}

/* ---- Form tab active ---- */
.form-tab {
    transition: all 0.3s ease;
}

.form-tab.active {
    background: linear-gradient(135deg, #0066FF, #00B8D9);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

/* ---- Mobile menu ---- */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.open {
    transform: translateX(0);
}

/* ---- Smooth scroll ---- */
html {
    scroll-behavior: smooth;
}

/* ---- Feature filter pills ---- */
.feature-pill {
    background: white;
    color: #64748b;
    border-color: #e2e8f0;
    cursor: pointer;
}

.feature-pill:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #334155;
}

.feature-pill.active {
    background: linear-gradient(135deg, #0066FF, #00B8D9);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(0, 102, 255, 0.3);
}

/* ---- Feature row filter transitions ---- */
.feature-row {
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.feature-row.hidden-row {
    opacity: 0;
    transform: scale(0.95);
    max-height: 0;
    padding: 0;
    overflow: hidden;
    border: none;
}

.feature-row.hidden-row td {
    padding-top: 0;
    padding-bottom: 0;
    line-height: 0;
    border: none;
}