/* Custom Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes float-delayed {
    0% {
        transform: translateY(-10px);
    }
    50% {
        transform: translateY(10px);
    }
    100% {
        transform: translateY(-10px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

@keyframes nodePulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 20px 5px rgba(59, 130, 246, 0.2);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

@keyframes dataFlow {
    0% {
        stroke-dashoffset: 100;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

.grecaptcha-badge { 
    visibility: hidden !important;
}

/* FAQ Styles */
.faq-item {
    transition: all 0.3s ease;
}

.faq-question {
    transition: all 0.3s ease;
}

.faq-question:hover {
    background-color: rgba(59, 130, 246, 0.1);
}

.faq-answer {
    transition: all 0.3s ease;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

.faq-answer:not(.hidden) {
    max-height: 500px;
    opacity: 1;
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-question i.rotate-180 {
    transform: rotate(180deg);
}

/* Hover effect for FAQ items */
.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
} 

/* --- Custom Animations and General Styles --- */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- Chat Widget Styles --- */
#chatWidget {
  box-shadow: 0 8px 32px 0 rgba(36, 60, 120, 0.18);
  border-radius: 1.25rem;
  background: #181e2a;
  color: #e5e7eb;
  font-family: inherit;
}
#chatWidget .loader {
  border: 3px solid #3B82F6;
  border-top: 3px solid #fff;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  animation: spin 1s linear infinite;
  display: inline-block;
}
#chatWidget .quick-msg-btn {
  cursor: pointer;
  outline: none;
}
#chatWidget .quick-msg-btn:active {
  background: #2563eb;
  color: #fff;
}

/* Hover animation for cards */
.hover-glow {
    position: relative;
    overflow: hidden;
}

.hover-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(59, 130, 246, 0.1),
        transparent
    );
    transition: 0.5s;
}

.hover-glow:hover::before {
    left: 100%;
}

/* Animated dots background */
.dots-bg {
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.1) 1px, transparent 0);
    background-size: 24px 24px;
}

/* Cookie Notice Styles */
#cookieConsent {
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1), 0 -2px 4px -1px rgba(0, 0, 0, 0.06);
}

#cookieConsent a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

#cookieConsent button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#cookieConsent button:hover {
    transform: translateY(-1px);
}

#cookieConsent button:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    #cookieConsent {
        padding: 1rem;
    }
    
    #cookieConsent p {
        text-align: center;
        margin-bottom: 1rem;
    }
    
    #cookieConsent button {
        width: 100%;
    }
}

/* Animation keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(1rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Updated scrolling animations */
@keyframes scroll-left {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

@keyframes scroll-right {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

.animate-scroll-left {
    animation: scroll-left 60s linear infinite;
}

.animate-scroll-right {
    animation: scroll-right 60s linear infinite;
}

/* Hide scrollbar */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    height: 80px;
    padding: 0.50rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.icon-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.icon-container img {
    max-width: 70%;
    max-height: 70%;
    object-fit: contain;
    transition: all 0.3s ease;
}

.icon-container:hover img {
    transform: scale(1.05);
}

/* Ensure the marquee container doesn't show scrollbars */
.overflow-hidden {
    overflow: hidden;
}

/* Add smooth transition for hover effects */
.icon-container img {
    transition: opacity 0.3s ease;
}

/* Ensure the gradient overlays stay on top */
.bg-gradient-to-r, .bg-gradient-to-l {
    pointer-events: none;
    z-index: 20;
}

/* --- Responsive Chat Widget --- */
@media (max-width: 500px) {
  #chatWidget {
    width: 100vw !important;
    right: 0 !important;
    left: 0 !important;
    border-radius: 0 !important;
    height: 100dvh !important;
    max-width: 100vw !important;
  }
}

/* --- Card/Button/Section Consistency (from styles.css) --- */
.card, .testimonial-card, .feature-card {
    border-radius: 1rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
    background: linear-gradient(135deg, #1e2235 60%, #232a3d 100%);
    padding: 2rem;
}
.btn, .btn-primary {
    border-radius: 0.75rem;
    font-weight: 600;
    padding: 0.75rem 2rem;
    transition: all 0.2s;
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
}
.btn:hover, .btn-primary:hover {
    background: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%);
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 24px rgba(37, 99, 235, 0.18);
}

/* --- Hide Floating Chat Button on Chat Open (optional utility) --- */
#openChatWidgetBtn[style*="display: none"] {
  display: none !important;
} 

/* Workflow Canvas Styles */
.workflow-canvas {
    background: linear-gradient(145deg, #1F2937, #111827);
    border-radius: 0.5rem;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.workflow-node {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    z-index: 10;
    position: relative;
    backdrop-filter: blur(8px);
}

.workflow-node:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.4);
}

.workflow-node::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 0.5rem;
    padding: 2px;
    background: linear-gradient(45deg, #3B82F6, #60A5FA, #93C5FD);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.workflow-node:hover::after {
    opacity: 1;
}

/* Enhanced Node Tooltip */
.node-tooltip {
    position: absolute;
    bottom: -45px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(17, 24, 39, 0.95);
    padding: 10px 16px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 20;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
}

.node-tooltip::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid rgba(17, 24, 39, 0.95);
}

.workflow-node:hover .node-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Enhanced Workflow Path Animation */
.workflow-path {
    stroke-dasharray: 8,8;
    animation: dataFlow 3s linear infinite;
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.3));
}

@keyframes dataFlow {
    0% {
        stroke-dashoffset: 100;
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
    100% {
        stroke-dashoffset: 0;
        opacity: 0.5;
    }
}

/* Enhanced Connection Points */
.connection-point {
    width: 10px;
    height: 10px;
    background: #3B82F6;
    border-radius: 50%;
    position: absolute;
    animation: connectionPulse 2s infinite;
    z-index: 5;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
}

@keyframes connectionPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }
    70% {
        transform: scale(1.2);
        box-shadow: 0 0 20px 10px rgba(59, 130, 246, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

/* Enhanced Workflow Step Animations */
.workflow-step {
    opacity: 0;
    animation: slideIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.workflow-step:nth-child(1) { animation-delay: 0.2s; }
.workflow-step:nth-child(2) { animation-delay: 0.4s; }
.workflow-step:nth-child(3) { animation-delay: 0.6s; }
.workflow-step:nth-child(4) { animation-delay: 0.8s; }

.workflow-circle {
    animation: nodePulse 3s infinite;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

@keyframes nodePulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 30px 10px rgba(59, 130, 246, 0.2);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

/* Enhanced Workflow Line */
.workflow-line {
    position: relative;
    background: linear-gradient(to bottom, #3B82F6, #60A5FA);
    width: 2px;
    height: 100%;
    margin: 0 auto;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.workflow-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #3B82F6, #60A5FA);
    filter: blur(8px);
    opacity: 0.5;
}

/* Enhanced Workflow Step Content */
.workflow-step h3 {
    position: relative;
    display: inline-block;
}

.workflow-step h3::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #3B82F6, #60A5FA);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.workflow-step:hover h3::after {
    transform: scaleX(1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .workflow-node {
        transform: scale(0.9);
    }
    
    .workflow-node:hover {
        transform: translateY(-3px) scale(0.95);
    }
    
    .node-tooltip {
        display: none;
    }
}

/* Node Tooltip */
.node-tooltip {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(17, 24, 39, 0.9);
    padding: 8px 12px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 20;
}

.node-tooltip::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid rgba(17, 24, 39, 0.9);
}

.workflow-node:hover .node-tooltip {
    opacity: 1;
    visibility: visible;
    bottom: -45px;
}

/* Workflow Path Animation */
.workflow-path {
    stroke-dasharray: 5,5;
    animation: dataFlow 2s linear infinite;
}

/* Workflow Step Animations */
.workflow-step {
    opacity: 0;
    animation: slideIn 0.6s ease-out forwards;
}

.workflow-step:nth-child(1) { animation-delay: 0.2s; }
.workflow-step:nth-child(2) { animation-delay: 0.4s; }
.workflow-step:nth-child(3) { animation-delay: 0.6s; }
.workflow-step:nth-child(4) { animation-delay: 0.8s; }

.workflow-circle {
    animation: nodePulse 2s infinite;
}

/* Connection Line Animation */
.workflow-connection-line {
    position: absolute;
    background: linear-gradient(90deg, #3B82F6, #60A5FA);
    height: 2px;
    width: 0;
    transition: width 0.3s ease;
}

.workflow-node:hover .workflow-connection-line {
    width: 100%;
}

/* Data Flow Animation */
.data-flow {
    stroke-dasharray: 5,5;
    animation: dataFlow 2s linear infinite;
}

/* Node Hover Effects */
.node-hover {
    transition: all 0.3s ease;
}

.node-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Interactive Elements */
.interactive-node {
    cursor: pointer;
    transition: all 0.3s ease;
}

.interactive-node:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

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

/* Hero Section Animation */
.hero-gradient {
    animation: float 6s ease-in-out infinite;
}

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

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

/* Feature Cards Animation */
.feature-card {
    transition: all 0.3s ease-in-out;
    animation: fadeIn 0.6s ease-out forwards;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Form Input Focus Effects */
input:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    border-color: #3B82F6;
}

/* Mobile Menu Animation */
.mobile-menu {
    transition: transform 0.3s ease-in-out;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1F2937;
}

::-webkit-scrollbar-thumb {
    background: #4B5563;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6B7280;
}

/* Additional Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, #60A5FA 0%, #3B82F6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hover-scale {
    transition: transform 0.3s ease-in-out;
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Animation Classes */
.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
}

.animate-slide-in {
    animation: slideIn 0.6s ease-out forwards;
}

/* Responsive Typography */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
}

/* Custom Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    background: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%);
}

/* Remove the ::after overlay that hides text on hover */
.btn-primary::after {
    display: none !important;
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s ease;
    background: linear-gradient(145deg, #1F2937, #111827);
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Dark Theme Enhancements */
.bg-dark-gradient {
    background: linear-gradient(145deg, #111827, #1F2937);
}

.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Workflow Timeline */
.workflow-line {
    position: relative;
}

.workflow-line::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #3B82F6, #60A5FA);
    transform: translateX(-50%);
}

/* Form Input Dark Theme */
input, textarea {
    background-color: #1F2937;
    border-color: #374151;
    color: #F3F4F6;
}

input:focus, textarea:focus {
    background-color: #111827;
    border-color: #3B82F6;
}

/* Glow Effects */
.glow {
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

.glow:hover {
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.5);
}

/* Testimonial Card Styles */
.testimonial-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -20px;
    right: 20px;
    font-size: 120px;
    color: rgba(59, 130, 246, 0.1);
    font-family: serif;
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Workflow Tab Styles */
.workflow-tab {
    position: relative;
    overflow: hidden;
}

.workflow-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #3B82F6;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.workflow-tab.active::after {
    transform: scaleX(1);
}

/* Workflow Embed Styles */
.workflow-embed-container {
    transition: all 0.3s ease;
}

.workflow-preview {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
}

.workflow-preview::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(59, 130, 246, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.workflow-preview:hover::before {
    opacity: 1;
}

/* Aspect Ratio Container */
.aspect-w-16 {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
}

.aspect-w-16 > * {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

/* Workflow Stats Animation */
.workflow-embed-container .bg-gray-700 {
    transition: all 0.3s ease;
}

.workflow-embed-container .bg-gray-700:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Testimonial Star Animation */
.testimonial-card .fa-star {
    transition: transform 0.3s ease;
}

.testimonial-card:hover .fa-star {
    transform: scale(1.2);
}

/* Workflow Tab Hover Effect */
.workflow-tab:hover {
    background: rgba(59, 130, 246, 0.1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .testimonial-card {
        margin-bottom: 2rem;
    }
    
    .workflow-tab {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

/* n8n Demo Component Styles */
n8n-demo {
    width: 100%;
    height: 400px;
    border-radius: 0.5rem;
    overflow: hidden;
    background: #1F2937;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

n8n-demo::part(frame) {
    border-radius: 0.5rem;
    background: #1F2937;
}

/* Workflow Content Styles */
.workflow-content {
    transition: opacity 0.3s ease;
}

.workflow-content.hidden {
    display: none;
}

/* Workflow Tab Active State */
.workflow-tab.active {
    position: relative;
}

.workflow-tab.active::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #3B82F6;
    transform: scaleX(1);
    transition: transform 0.3s ease;
}

/* Workflow Container Animation */
.workflow-embed-container {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Adjustments for n8n-demo */
@media (max-width: 768px) {
    n8n-demo {
        height: 300px;
    }
    
    .workflow-tab {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

/* n8n Workflow Section Styles */
.workflow-embed-container {
    min-height: 400px;
    background: #1F2937;
    border-radius: 0.5rem;
    overflow: hidden;
}

.workflow-content {
    height: 400px;
    position: relative;
}

n8n-demo {
    width: 100%;
    height: 100%;
    display: block;
}

/* Workflow Tabs */
.workflow-tab {
    position: relative;
    transition: all 0.3s ease;
}

.workflow-tab.active {
    background: #3B82F6;
    color: white;
}

.workflow-tab.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #3B82F6;
}

/* Workflow Stats */
.workflow-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.stat-card {
    background: #374151;
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #60A5FA;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: #9CA3AF;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .workflow-embed-container {
        min-height: 300px;
    }
    
    .workflow-content {
        height: 300px;
    }
    
    .workflow-stats {
        grid-template-columns: 1fr;
    }
}

/* Hero Section SVG Blob Animations */
@keyframes blob1 {
    0%, 100% { transform: scale(1) translate(0, 0); }
    33% { transform: scale(1.08, 0.95) translate(30px, -20px); }
    66% { transform: scale(0.95, 1.05) translate(-20px, 30px); }
}
.animate-blob1 {
    animation: blob1 16s ease-in-out infinite;
}

@keyframes blob2 {
    0%, 100% { transform: scale(1) translate(0, 0); }
    40% { transform: scale(1.1, 0.9) translate(-20px, 20px); }
    80% { transform: scale(0.92, 1.08) translate(20px, -10px); }
}
.animate-blob2 {
    animation: blob2 18s ease-in-out infinite;
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-18px); }
}
.animate-float-slow {
    animation: floatSlow 7s ease-in-out infinite;
}

@keyframes blob3 {
    0%, 100% { transform: scale(1) translate(0, 0); }
    25% { transform: scale(1.05, 0.97) translate(-30px, 10px); }
    60% { transform: scale(0.97, 1.08) translate(20px, -20px); }
}
.animate-blob3 {
    animation: blob3 22s ease-in-out infinite;
}

/* Hero SVG Illustration Animations */
@keyframes heroPulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 #60A5FA); }
    50% { transform: scale(1.18); filter: drop-shadow(0 0 16px #60A5FA88); }
}
.hero-pulse {
    animation: heroPulse 2.8s infinite;
}
@keyframes heroPulse2 {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 #06B6D4); }
    50% { transform: scale(1.15); filter: drop-shadow(0 0 14px #06B6D488); }
}
.hero-pulse2 {
    animation: heroPulse2 3.2s infinite;
}
@keyframes heroPulse3 {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 #F472B6); }
    50% { transform: scale(1.13); filter: drop-shadow(0 0 12px #F472B688); }
}
.hero-pulse3 {
    animation: heroPulse3 2.4s infinite;
}
@keyframes heroPulse4 {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 #FBBF24); }
    50% { transform: scale(1.2); filter: drop-shadow(0 0 10px #FBBF2488); }
}
.hero-pulse4 {
    animation: heroPulse4 3.6s infinite;
}

@keyframes heroGlowLine {
    0%, 100% { opacity: 1; filter: drop-shadow(0 0 0 #3B82F6); }
    50% { opacity: 0.7; filter: drop-shadow(0 0 12px #3B82F6); }
}
.hero-glow-line {
    animation: heroGlowLine 2.2s infinite;
}
@keyframes heroGlowLine2 {
    0%, 100% { opacity: 1; filter: drop-shadow(0 0 0 #06B6D4); }
    50% { opacity: 0.7; filter: drop-shadow(0 0 10px #06B6D4); }
}
.hero-glow-line2 {
    animation: heroGlowLine2 2.7s infinite;
}
@keyframes heroGlowLine3 {
    0%, 100% { opacity: 1; filter: drop-shadow(0 0 0 #60A5FA); }
    50% { opacity: 0.7; filter: drop-shadow(0 0 8px #60A5FA); }
}
.hero-glow-line3 {
    animation: heroGlowLine3 2.1s infinite;
}
@keyframes heroGlowLine4 {
    0%, 100% { opacity: 1; filter: drop-shadow(0 0 0 #F472B6); }
    50% { opacity: 0.7; filter: drop-shadow(0 0 8px #F472B6); }
}
.hero-glow-line4 {
    animation: heroGlowLine4 2.5s infinite;
}

/* n8n Workflow Animation in AI Agent Brain */
@keyframes wfNodePulse {
    0%, 100% { filter: brightness(1) drop-shadow(0 0 0 #fff); }
    10% { filter: brightness(2) drop-shadow(0 0 8px #60A5FA); }
    20%, 90% { filter: brightness(1) drop-shadow(0 0 0 #fff); }
}
@keyframes wfNodePulse2 {
    0%, 15%, 100% { filter: brightness(1) drop-shadow(0 0 0 #fff); }
    25% { filter: brightness(2) drop-shadow(0 0 8px #FBBF24); }
    35%, 90% { filter: brightness(1) drop-shadow(0 0 0 #fff); }
}
@keyframes wfNodePulse3 {
    0%, 30%, 100% { filter: brightness(1) drop-shadow(0 0 0 #fff); }
    40% { filter: brightness(2) drop-shadow(0 0 8px #06B6D4); }
    50%, 90% { filter: brightness(1) drop-shadow(0 0 0 #fff); }
}
@keyframes wfNodePulse4 {
    0%, 45%, 100% { filter: brightness(1) drop-shadow(0 0 0 #fff); }
    55% { filter: brightness(2) drop-shadow(0 0 8px #F472B6); }
    65%, 90% { filter: brightness(1) drop-shadow(0 0 0 #fff); }
}
.wf-node1 { animation: wfNodePulse 4s infinite; }
.wf-node2 { animation: wfNodePulse2 4s infinite; }
.wf-node3 { animation: wfNodePulse3 4s infinite; }
.wf-node4 { animation: wfNodePulse4 4s infinite; }

@keyframes wfConnGlow1 {
    0%, 100% { stroke-opacity: 0.3; filter: none; }
    12% { stroke-opacity: 1; filter: drop-shadow(0 0 8px #60A5FA); }
    22%, 90% { stroke-opacity: 0.3; filter: none; }
}
@keyframes wfConnGlow2 {
    0%, 25%, 100% { stroke-opacity: 0.3; filter: none; }
    37% { stroke-opacity: 1; filter: drop-shadow(0 0 8px #FBBF24); }
    47%, 90% { stroke-opacity: 0.3; filter: none; }
}
@keyframes wfConnGlow3 {
    0%, 40%, 100% { stroke-opacity: 0.3; filter: none; }
    52% { stroke-opacity: 1; filter: drop-shadow(0 0 8px #06B6D4); }
    62%, 90% { stroke-opacity: 0.3; filter: none; }
}
@keyframes wfConnGlow4 {
    0%, 55%, 100% { stroke-opacity: 0.3; filter: none; }
    67% { stroke-opacity: 1; filter: drop-shadow(0 0 8px #F472B6); }
    77%, 90% { stroke-opacity: 0.3; filter: none; }
}
.wf-conn1 { animation: wfConnGlow1 4s infinite; }
.wf-conn2 { animation: wfConnGlow2 4s infinite; }
.wf-conn3 { animation: wfConnGlow3 4s infinite; }
.wf-conn4 { animation: wfConnGlow4 4s infinite; }

/* --- Color Palette & Section Improvements --- */
body, .bg-gray-900 {
    background: #0a1020;
}
.bg-gray-800 {
    background: linear-gradient(135deg, #1e2235 60%, #232a3d 100%);
}
.bg-blue-600 {
    background: linear-gradient(90deg, #2563eb 60%, #3b82f6 100%);
}
.bg-blue-950 {
    background: #0a1a3a;
}
.bg-gradient-to-r {
    background: linear-gradient(90deg, #1e293b 0%, #2563eb 100%);
}
.bg-gradient-to-b {
    background: linear-gradient(180deg, #1e293b 0%, #3b82f6 100%);
}
.text-blue-400 {
    color: #60a5fa;
}
.text-blue-600 {
    color: #2563eb;
}
.text-blue-100 {
    color: #dbeafe;
}

/* Section Styles */
section {
    padding-top: 5rem;
    padding-bottom: 5rem;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

/* Remove section dividers */
section + section {
    border-top: none;
}

/* Animated Background Effects */
.animated-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.animated-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(59,130,246,0.05), transparent);
}

.animated-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 80%, rgba(96,165,250,0.05), transparent);
}

/* Dots Background */
.dots-bg {
    position: absolute;
    inset: 0;
    opacity: 0.2;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.1) 1px, transparent 0);
    background-size: 24px 24px;
}

/* Card Styles */
.card, .testimonial-card, .feature-card {
    background: linear-gradient(135deg, #1e2235 60%, #232a3d 100%);
    border-radius: 1rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
    padding: 2rem;
    border: 1px solid rgba(255,255,255,0.05);
}

/* Button Styles */
.btn, .btn-primary {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    border-radius: 0.75rem;
    font-weight: 600;
    padding: 0.75rem 2rem;
    transition: all 0.2s;
    color: #fff;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
}

.btn:hover, .btn-primary:hover {
    background: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%);
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 24px rgba(37, 99, 235, 0.18);
}

/* Icon Container Styles */
.icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    height: 80px;
    padding: 0.50rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.icon-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.icon-container img {
    max-width: 70%;
    max-height: 70%;
    object-fit: contain;
    transition: all 0.3s ease;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    section {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }
    
    .card, .testimonial-card, .feature-card {
        padding: 1.25rem;
        border-radius: 0.75rem;
    }
    
    .btn, .btn-primary {
        padding: 0.5rem 1.25rem;
        font-size: 1rem;
    }
}

/* --- Progression Bar --- */
#progressBar {
    width: 48px;
    background: rgba(10,26,58,0.92);
    box-shadow: 0 4px 24px 0 rgba(36, 60, 120, 0.12);
    border-top-right-radius: 1.5rem;
    border-bottom-right-radius: 1.5rem;
    padding: 2rem 0.5rem;
}
.progress-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #374151;
    border: 2px solid #3b82f6;
    transition: background 0.3s, border 0.3s;
    display: block;
    margin: 0.5rem 0;
    box-shadow: 0 0 0 0 #3b82f6;
}
.progress-dot.active {
    background: #3b82f6;
    border: 2px solid #fff;
    box-shadow: 0 0 0 4px #60a5fa44;
}
.progress-dot:hover {
    background: #60a5fa;
    border: 2px solid #fff;
}

/* --- Back to Top Button --- */
#backToTop {
    background: linear-gradient(135deg, #2563eb 60%, #3b82f6 100%);
    color: #fff;
    box-shadow: 0 4px 24px 0 rgba(36, 60, 120, 0.18);
    border: none;
    font-size: 1.5rem;
    transition: background 0.3s, box-shadow 0.3s;
}
#backToTop:hover {
    background: linear-gradient(135deg, #3b82f6 60%, #2563eb 100%);
    box-shadow: 0 8px 32px 0 rgba(36, 60, 120, 0.28);
}

/* --- Company Logo Scrolling Animation --- */
@keyframes scrollLogos {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.animate-scroll-logos {
    animation: scrollLogos 30s linear infinite;
}

/* --- Card and Text Improvements --- */
.bg-gray-900, .card {
    background: #181e2a;
    color: #e5e7eb;
}
.bg-gray-900 h2, .bg-gray-800 h2, .bg-blue-600 h2 {
    color: #fff;
}
.bg-gray-900 p, .bg-gray-800 p, .bg-blue-600 p {
    color: #cbd5e1;
}
.bg-gray-900 .text-gray-400, .bg-gray-800 .text-gray-400 {
    color: #b6b3c5;
}

/* --- Section Dividers --- */
section + section {
    border-top: none;
}

/* --- Responsive Improvements --- */
@media (max-width: 768px) {
    #progressBar { display: none !important; }
    .container { padding-left: 1rem; padding-right: 1rem; }
    section { padding-top: 2.5rem; padding-bottom: 2.5rem; }
}

/* Hide horizontal scrollbar for scrollable cards */
.hide-scrollbar {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
}
.hide-scrollbar::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Webkit */
}

.card, .testimonial-card, .feature-card {
    border-radius: 1rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
    background: linear-gradient(135deg, #1e2235 60%, #232a3d 100%);
    padding: 2rem;
}

.btn, .btn-primary {
    border-radius: 0.75rem;
    font-weight: 600;
    padding: 0.75rem 2rem;
    transition: all 0.2s;
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
}

.btn:hover, .btn-primary:hover {
    background: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%);
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 24px rgba(37, 99, 235, 0.18);
}

@media (max-width: 768px) {
    .card, .testimonial-card, .feature-card {
        padding: 1.25rem;
        border-radius: 0.75rem;
    }
    .btn, .btn-primary {
        padding: 0.5rem 1.25rem;
        font-size: 1rem;
    }
}

/* Chat Message Markdown Styles */
.markdown-content {
    width: 100%;
    overflow-x: auto;
}

.markdown-content ul,
.markdown-content ol {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.markdown-content ul {
    list-style-type: disc;
}

.markdown-content ol {
    list-style-type: decimal;
}

.markdown-content li {
    margin-bottom: 0.25rem;
}

.markdown-content p {
    margin-bottom: 0.75rem;
}

.markdown-content p:last-child {
    margin-bottom: 0;
}

.markdown-content code {
    background-color: rgba(55, 65, 81, 0.5);
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
}

.markdown-content pre {
    background-color: rgba(31, 41, 55, 0.5);
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 0.75rem 0;
}

.markdown-content pre code {
    background-color: transparent;
    padding: 0;
    font-size: 0.875em;
}

.markdown-content blockquote {
    border-left: 4px solid #4B5563;
    padding-left: 1rem;
    margin: 0.75rem 0;
    color: #9CA3AF;
}

.markdown-content a {
    color: #60A5FA;
    text-decoration: underline;
}

.markdown-content a:hover {
    color: #93C5FD;
}

.markdown-content strong {
    font-weight: 600;
    color: #F3F4F6;
}

.markdown-content em {
    font-style: italic;
    color: #D1D5DB;
}

/* Expanded Chat Styles */
#expandedChat {
    transition: opacity 0.3s ease;
}

#expandedChat.hidden {
    opacity: 0;
    pointer-events: none;
}

#expandedChat > div {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#expandedChat.hidden > div {
    transform: scale(0.95);
    opacity: 0;
}

#expandedChat .markdown-content {
    font-size: 1.1rem;
    line-height: 1.6;
}

#expandedChat .prose {
    max-width: none;
}

#expandedChat .prose pre {
    font-size: 0.9rem;
    padding: 1.25rem;
}

#expandedChat .prose code {
    font-size: 0.9rem;
    padding: 0.2rem 0.4rem;
}

#expandedChat .quick-msg-btn {
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
}

/* Typing Animation */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: #60A5FA;
    border-radius: 50%;
    opacity: 0.6;
    animation: typingDot 1.4s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingDot {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.6;
    }
    30% {
        transform: translateY(-4px);
        opacity: 1;
    }
} 

#typewriterText {
    display: inline-block;
    min-width: 200px;
    border-right: 2px solid #60a5fa;
    animation: blink 0.7s step-end infinite;
}

@keyframes blink {
    from, to { border-color: transparent }
    50% { border-color: #60a5fa }
}

/* Step labels and arrows styling */
.step-label {
    background: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(8px);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
}

.step-label:hover {
    transform: translateY(-2px);
    border-color: rgba(59, 130, 246, 0.4);
}

.step-arrow {
    transition: transform 0.3s ease;
}

.step-card:hover + .step-label .step-arrow {
    transform: translateX(4px);
}