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

body {
    font-family: 'Inter', sans-serif;
}

.gradient-bg {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
}

.gradient-text {
    background: linear-gradient(135deg, #1e40af 0%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-hover {
    transition: all 0.3s ease;
}

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

.ai-badge-border {
    position: relative;
    padding: 3px;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    border-radius: 9999px;
}

.ai-badge-inner {
    background: #dbeafe;
    border-radius: 9999px;
}

@media (min-width: 1024px) {
    .hero-heading {
        font-size: 3.4rem !important;
        line-height: 1.15 !important;
    }
}

/* Hero Animation Styles */
.orbit-container {
    position: relative;
    width: 100%;
    height: 440px;
    max-width: 440px;
    margin: 0 auto;
}

.center-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 105px;
    height: 105px;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.4);
    z-index: 10;
    animation: pulse-glow 3s ease-in-out infinite;
}

.logo-text {
    color: white;
    font-weight: 800;
    font-size: 1rem;
    text-align: center;
}

.orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px dashed rgba(37, 99, 235, 0.2);
}

.orbit-1 {
    width: 240px;
    height: 240px;
    animation: rotate-orbit 20s linear infinite;
}

.orbit-2 {
    width: 400px;
    height: 400px;
    animation: rotate-orbit 30s linear infinite reverse;
}

.orbit-icon {
    position: absolute;
    width: 44px;
    height: 44px;
    animation: float-icon 3s ease-in-out infinite;
    animation-delay: var(--delay);
    transition: transform 0.3s ease;
    background: white;
    border-radius: 11px;
    padding: 9px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: transform;
}

.orbit-icon:hover {
    transform: scale(1.15);
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

.orbit-icon svg,
.orbit-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.orbit-1 .icon-1 { top: -2%; left: 50%; transform: translateX(-50%); }
.orbit-1 .icon-2 { top: 50%; right: -2%; transform: translateY(-50%); }
.orbit-1 .icon-3 { bottom: -2%; left: 50%; transform: translateX(-50%); }
.orbit-1 .icon-4 { top: 50%; left: -2%; transform: translateY(-50%); }

.orbit-2 .icon-5 { top: 5%; left: 50%; transform: translateX(-50%); }
.orbit-2 .icon-6 { top: 50%; right: 5%; transform: translateY(-50%); }
.orbit-2 .icon-7 { bottom: 5%; left: 50%; transform: translateX(-50%); }
.orbit-2 .icon-8 { top: 50%; left: 5%; transform: translateY(-50%); }

.connection-line {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 115px;
    background: linear-gradient(to bottom, transparent, rgba(37, 99, 235, 0.3), transparent);
    transform-origin: top center;
    animation: rotate-line 4s linear infinite;
}

.line-1 { animation-delay: 0s; }
.line-2 { animation-delay: 1.33s; }
.line-3 { animation-delay: 2.66s; }

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid rgba(37, 99, 235, 0.3);
    border-radius: 50%;
    animation: pulse-expand 3s ease-out infinite;
}

.pulse-1 {
    width: 105px;
    height: 105px;
}

.pulse-2 {
    width: 105px;
    height: 105px;
    animation-delay: 1.5s;
}

/* Animations */
@keyframes rotate-orbit {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes float-icon {
    0%, 100% { 
        transform: translateY(0);
    }
    50% { 
        transform: translateY(-8px);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 20px 60px rgba(37, 99, 235, 0.4);
    }
    50% {
        box-shadow: 0 20px 80px rgba(37, 99, 235, 0.6);
    }
}

@keyframes rotate-line {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes pulse-expand {
    0% {
        width: 105px;
        height: 105px;
        opacity: 1;
    }
    100% {
        width: 360px;
        height: 360px;
        opacity: 0;
    }
}

/* Finance Workflow Loop Animation */
.workflow-loop-container {
    position: relative;
    width: 100%;
    height: 440px;
    max-width: 440px;
    margin: 0 auto;
}

.workflow-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 360px;
    height: 360px;
}

.workflow-step {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    animation: step-pulse 2.5s ease-in-out infinite;
    animation-delay: var(--step-delay);
}

.step-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.step-label {
    font-size: 11px;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
}

/* Position steps in a circle */
.step-1 { top: 0%; left: 50%; transform: translateX(-50%); }
.step-2 { top: 20%; right: 2%; }
.step-3 { bottom: 20%; right: 2%; }
.step-4 { bottom: 0%; left: 50%; transform: translateX(-50%); }
.step-5 { top: 50%; left: 2%; transform: translateY(-50%); }

/* Workflow arrows */
.workflow-arrow {
    position: absolute;
    opacity: 0.6;
    animation: arrow-flow 2.5s ease-in-out infinite;
}

.arrow-1 { top: 8%; right: 22%; transform: rotate(45deg); animation-delay: 0.25s; }
.arrow-2 { bottom: 50%; right: 0%; transform: rotate(90deg); animation-delay: 0.75s; }
.arrow-3 { bottom: 8%; right: 22%; transform: rotate(135deg); animation-delay: 1.25s; }
.arrow-4 { bottom: 8%; left: 22%; transform: rotate(215deg); animation-delay: 1.75s; }
.arrow-5 { top: 8%; bottom: 8%; left: 35%; transform: rotate(-45deg); animation-delay: 2.25s; }

/* Highlight ring that rotates around active step */
.highlight-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 420px;
    height: 420px;
    border: 3px solid transparent;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: highlight-rotate 12.5s linear infinite;
}

@keyframes step-pulse {
    0%, 100% {
        opacity: 0.7;
    }
    20%, 40% {
        opacity: 1;
    }
}

@keyframes arrow-flow {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.8;
    }
}

@keyframes highlight-rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@media (max-width: 768px) {
    .orbit-container,
    .workflow-loop-container {
        height: 360px;
        max-width: 360px;
    }
    .orbit-1 {
        width: 200px;
        height: 200px;
    }
    .orbit-2 {
        width: 330px;
        height: 330px;
    }
    .workflow-ring {
        width: 300px;
        height: 300px;
    }
    .center-logo {
        width: 85px;
        height: 85px;
    }
    .logo-text {
        font-size: 0.85rem;
    }
    .orbit-icon {
        width: 38px;
        height: 38px;
        padding: 7px;
    }
    .step-icon {
        width: 44px;
        height: 44px;
    }
    .step-label {
        font-size: 10px;
    }
    .highlight-ring {
        width: 320px;
        height: 320px;
    }
}
