/* ==========================================================================
   BillingTap Modern SaaS UI & Animations System (2026 Edition)
   Ultra-lightweight, 60fps GPU-accelerated micro-interactions
   ========================================================================== */

:root {
    --bt-primary: #3b82f6;
    --bt-primary-dark: #1d4ed8;
    --bt-slate-900: #0f172a;
    --bt-slate-800: #1e293b;
    --bt-slate-600: #475569;
    --bt-slate-400: #94a3b8;
    --bt-slate-100: #f1f5f9;
}

/* Typography & Badges */
.bt-tag {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 6px 14px;
    background-color: #eff6ff;
    color: var(--bt-primary);
    border-radius: 9999px;
    border: 1px solid #dbeafe;
}

.bt-badge-pill {
    padding: 6px 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--bt-slate-800);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.bt-badge-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
    animation: btPulseDot 2s infinite ease-in-out;
}

.bt-hero-title {
    font-size: 2.85rem;
    font-weight: 850;
    line-height: 1.15;
    color: var(--bt-slate-900);
    letter-spacing: -0.03em;
}

.bt-hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.6;
    max-width: 580px;
}

.bt-gradient-text {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 850;
}

.bt-cursor {
    color: var(--bt-primary);
    animation: btBlink 0.9s infinite;
    font-weight: 300;
}

/* Ambient Hero Mesh Background */
.bt-hero-mesh {
    position: absolute;
    top: -30%;
    right: -10%;
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, rgba(147, 51, 234, 0.05) 50%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

/* CTA Buttons */
.bt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.bt-btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #ffffff !important;
    border: none;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.bt-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
    color: #ffffff !important;
}

.bt-btn-secondary {
    background: #ffffff;
    color: var(--bt-slate-800) !important;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.bt-btn-secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

/* Floating Micro UI Chips */
.bt-floating-chip {
    position: absolute;
    background: #ffffff;
    padding: 10px 18px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    z-index: 10;
    pointer-events: auto;
}

.bt-floating-chip.chip-1 {
    top: 5%;
    left: -20px;
    animation: btFloatSlow 5s ease-in-out infinite;
}

.bt-floating-chip.chip-2 {
    bottom: 8%;
    right: -20px;
    animation: btFloatSlow 6s ease-in-out infinite 1.5s;
}

.chip-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.chip-title {
    font-size: 0.88rem;
    color: var(--bt-slate-800);
}

/* Dashboard Mockup Frame */
.bt-dashboard-frame {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    transition: transform 0.3s ease;
}

.bt-dashboard-frame:hover {
    transform: translateY(-4px);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

/* Interactive Tabs */
.bt-pill-tabs .nav-link {
    color: var(--bt-slate-600);
    border: none;
    transition: all 0.2s ease;
}

.bt-pill-tabs .nav-link.active {
    background-color: var(--bt-primary) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Workflow Cards */
.bt-workflow-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bt-workflow-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08) !important;
    border-color: var(--bt-primary) !important;
}

.bt-step-num {
    font-size: 1.5rem;
}

/* FAQ Accordion */
.bt-faq-card {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bt-faq-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.bt-faq-icon {
    transition: transform 0.3s ease;
}

.bt-faq-card.active {
    border-color: var(--bt-primary);
}

.bt-faq-card.active .bt-faq-icon {
    transform: rotate(180deg);
    color: var(--bt-primary);
}

.bt-faq-answer {
    display: none;
    animation: btFadeIn 0.3s ease;
}

.bt-faq-card.active .bt-faq-answer {
    display: block;
}

/* Keyframes */
@keyframes btFloatSlow {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes btPulseDot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        transform: scale(1.15);
    }
}

@keyframes btBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes btFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile Responsiveness */
@media (max-width: 991px) {
    .bt-hero-title {
        font-size: 2.2rem;
    }
    .bt-floating-chip.chip-1 {
        left: 0;
        top: -10px;
    }
    .bt-floating-chip.chip-2 {
        right: 0;
        bottom: -10px;
    }
}

@media (max-width: 576px) {
    .bt-hero-title {
        font-size: 1.85rem;
    }
    .bt-floating-chip {
        position: static;
        margin-bottom: 12px;
        display: inline-flex !important;
        animation: none !important;
    }
}

/* Reduced Motion Accessibility */
@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}



/* ==========================================================================
   User-Selectable Animation Effects (Applied via CMS Dropdown)
   ========================================================================== */

/* 1. Floating (Gentle 3D Float) */
.bt-anim-float {
    animation: btFloatSlow 5s ease-in-out infinite !important;
}

/* 2. 3D Perspective Tilt on Hover */
.bt-anim-tilt {
    transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.3s ease !important;
    transform-style: preserve-3d !important;
    perspective: 1000px !important;
}
.bt-anim-tilt:hover {
    transform: perspective(1000px) rotateX(6deg) rotateY(-8deg) scale(1.02) !important;
    box-shadow: 0 25px 50px -10px rgba(59, 130, 246, 0.3) !important;
}

/* 3. Slide Up on Scroll */
.bt-anim-slide-up {
    animation: btSlideUpAnim 0.9s cubic-bezier(0.16, 1, 0.3, 1) both !important;
}
@keyframes btSlideUpAnim {
    from {
        opacity: 0;
        transform: translateY(45px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 4. Smooth Zoom on Hover */
.bt-anim-zoom {
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease !important;
}
.bt-anim-zoom:hover {
    transform: scale(1.04) !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15) !important;
}

/* 5. Subtle Glowing Pulse */
.bt-anim-pulse {
    animation: btPulseGlowAnim 3.5s infinite ease-in-out !important;
}
@keyframes btPulseGlowAnim {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
    }
    50% {
        box-shadow: 0 10px 35px 8px rgba(59, 130, 246, 0.45);
    }
}

/* 6. Static (No Animation) */
.bt-anim-none {
    animation: none !important;
    transform: none !important;
}

/* Custom Showcase Image Wrapper */
.bt-custom-showcase-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
}


/* ==========================================================================
   Universal Flow Directions & Color Match Themes
   ========================================================================== */

/* 1. Flow Direction Animations */
.bt-flow-bottom {
    animation: btFlowBottom 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes btFlowBottom {
    from { opacity: 0; transform: translateY(35px); }
    to { opacity: 1; transform: translateY(0); }
}

.bt-flow-left {
    animation: btFlowLeft 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes btFlowLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

.bt-flow-right {
    animation: btFlowRight 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes btFlowRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

.bt-flow-stagger .col-12,
.bt-flow-stagger .col-md-6,
.bt-flow-stagger .col-lg-3,
.bt-flow-stagger .col-md-4,
.bt-flow-stagger .bt-faq-card {
    animation: btFlowBottom 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.bt-flow-stagger .col-12:nth-child(1), .bt-flow-stagger .col-md-6:nth-child(1), .bt-flow-stagger .col-lg-3:nth-child(1), .bt-flow-stagger .col-md-4:nth-child(1), .bt-flow-stagger .bt-faq-card:nth-child(1) { animation-delay: 0.1s; }
.bt-flow-stagger .col-12:nth-child(2), .bt-flow-stagger .col-md-6:nth-child(2), .bt-flow-stagger .col-lg-3:nth-child(2), .bt-flow-stagger .col-md-4:nth-child(2), .bt-flow-stagger .bt-faq-card:nth-child(2) { animation-delay: 0.2s; }
.bt-flow-stagger .col-12:nth-child(3), .bt-flow-stagger .col-md-6:nth-child(3), .bt-flow-stagger .col-lg-3:nth-child(3), .bt-flow-stagger .col-md-4:nth-child(3), .bt-flow-stagger .bt-faq-card:nth-child(3) { animation-delay: 0.3s; }
.bt-flow-stagger .col-12:nth-child(4), .bt-flow-stagger .col-md-6:nth-child(4), .bt-flow-stagger .col-lg-3:nth-child(4), .bt-flow-stagger .col-md-4:nth-child(4), .bt-flow-stagger .bt-faq-card:nth-child(4) { animation-delay: 0.4s; }

/* 2. Color Match Themes */
.theme-blue {
    --bt-accent: #2563eb;
    --bt-accent-light: #eff6ff;
    --bt-accent-border: #bfdbfe;
    --bt-gradient-start: #2563eb;
    --bt-gradient-end: #7c3aed;
}

.theme-green {
    --bt-accent: #059669;
    --bt-accent-light: #ecfdf5;
    --bt-accent-border: #a7f3d0;
    --bt-gradient-start: #059669;
    --bt-gradient-end: #10b981;
}

.theme-purple {
    --bt-accent: #7c3aed;
    --bt-accent-light: #f5f3ff;
    --bt-accent-border: #ddd6fe;
    --bt-gradient-start: #7c3aed;
    --bt-gradient-end: #c026d3;
}

.theme-orange {
    --bt-accent: #ea580c;
    --bt-accent-light: #fff7ed;
    --bt-accent-border: #fed7aa;
    --bt-gradient-start: #ea580c;
    --bt-gradient-end: #f59e0b;
}

.theme-dark {
    --bt-accent: #0f172a;
    --bt-accent-light: #f8fafc;
    --bt-accent-border: #cbd5e1;
    --bt-gradient-start: #0f172a;
    --bt-gradient-end: #334155;
}

/* Color theme mappings */
[class*="theme-"] .text-primary,
[class*="theme-"] .bt-step-num,
[class*="theme-"] .stat-prefix,
[class*="theme-"] .stat-suffix,
[class*="theme-"] .stat-icon-wrapper {
    color: var(--bt-accent) !important;
}

[class*="theme-"] .bg-primary,
[class*="theme-"] .btn-primary,
[class*="theme-"] .bt-btn-primary {
    background: linear-gradient(135deg, var(--bt-gradient-start), var(--bt-gradient-end)) !important;
    border-color: var(--bt-accent) !important;
}

[class*="theme-"] .bg-primary-subtle,
[class*="theme-"] .bt-tag,
[class*="theme-"] .bt-step-icon {
    background-color: var(--bt-accent-light) !important;
    color: var(--bt-accent) !important;
    border-color: var(--bt-accent-border) !important;
}

[class*="theme-"] .bt-gradient-text {
    background: linear-gradient(135deg, var(--bt-gradient-start), var(--bt-gradient-end)) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

[class*="theme-"] .bt-faq-card.active,
[class*="theme-"] .bt-workflow-card:hover {
    border-color: var(--bt-accent) !important;
}

[class*="theme-"] .bt-pill-tabs .nav-link.active {
    background-color: var(--bt-accent) !important;
}


/* ==========================================================================
   Animation Speed Classes
   ========================================================================== */

.anim-speed-fast.bt-anim-float,
.anim-speed-fast .bt-anim-float {
    animation-duration: 2s !important;
}

.anim-speed-normal.bt-anim-float,
.anim-speed-normal .bt-anim-float {
    animation-duration: 4.5s !important;
}

.anim-speed-slow.bt-anim-float,
.anim-speed-slow .bt-anim-float {
    animation-duration: 7s !important;
}

.anim-speed-relaxed.bt-anim-float,
.anim-speed-relaxed .bt-anim-float {
    animation-duration: 10s !important;
}

.anim-speed-fast.bt-anim-pulse,
.anim-speed-fast .bt-anim-pulse {
    animation-duration: 1.5s !important;
}

.anim-speed-normal.bt-anim-pulse,
.anim-speed-normal .bt-anim-pulse {
    animation-duration: 3.5s !important;
}

.anim-speed-slow.bt-anim-pulse,
.anim-speed-slow .bt-anim-pulse {
    animation-duration: 6s !important;
}

.anim-speed-relaxed.bt-anim-pulse,
.anim-speed-relaxed .bt-anim-pulse {
    animation-duration: 9s !important;
}

.anim-speed-fast.bt-flow-bottom,
.anim-speed-fast.bt-flow-left,
.anim-speed-fast.bt-flow-right {
    animation-duration: 0.4s !important;
}

.anim-speed-normal.bt-flow-bottom,
.anim-speed-normal.bt-flow-left,
.anim-speed-normal.bt-flow-right {
    animation-duration: 0.8s !important;
}

.anim-speed-slow.bt-flow-bottom,
.anim-speed-slow.bt-flow-left,
.anim-speed-slow.bt-flow-right {
    animation-duration: 1.5s !important;
}

.anim-speed-relaxed.bt-flow-bottom,
.anim-speed-relaxed.bt-flow-left,
.anim-speed-relaxed.bt-flow-right {
    animation-duration: 2.5s !important;
}
