/* Main Styles */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    --color-primary: #F26A06;
    --color-purple: #D10A8A;
    --color-blue: #2E08CF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #000000;
    color: #ffffff;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Utility Classes */
.glass {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn {
    cursor: pointer;
    border-radius: 9999px;
    padding: 0.625rem 2rem;
    font-weight: 500;
    color: white;
    transition: all 0.3s;
}

.btn:hover {
    opacity: 0.9;
}

.btn:active {
    transform: scale(0.98);
}

/* Custom size utilities */
.size-130 {
    width: 32.5rem;
    height: 32.5rem;
}

/* Gradient utilities */
.bg-gradient-radial {
    background: radial-gradient(circle, var(--tw-gradient-stops));
}

/* Navbar States */
#navbar.scrolled {
    background-color: #0A0A0A;
    padding-top: 1rem;
    padding-bottom: 1rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

#navbar.scrolled .cta-button {
    background-color: white;
    color: black;
}

#navbar.scrolled .cta-button:hover {
    background-color: #e5e5e5;
}

/* Mobile Menu */
#mobile-menu.open {
    max-height: 400px;
}

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

html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

/* Hero Widget Simulation Steps */
.simulation-step {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    border-radius: 0.375rem;
    border: 1px solid transparent;
    transition: all 0.5s;
}

.simulation-step.idle {
    opacity: 0.3;
    color: #4B5563;
}

.simulation-step.active {
    opacity: 1;
    color: white;
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.simulation-step.complete {
    opacity: 1;
    color: #4ADE80;
    background-color: rgba(34, 197, 94, 0.05);
    border-color: rgba(34, 197, 94, 0.2);
}

.simulation-step.pending {
    color: #FB923C;
    background-color: rgba(249, 115, 22, 0.1);
    border-color: rgba(249, 115, 22, 0.3);
}

/* Approval Button States */
#approval-button.active {
    background: linear-gradient(to right, #F97316, #EA580C);
    color: white;
    cursor: pointer;
    border-color: rgba(249, 115, 22, 0.2);
    box-shadow: 0 0 30px rgba(249, 115, 22, 0.4);
}

#approval-button.active:hover {
    box-shadow: 0 0 40px rgba(249, 115, 22, 0.6);
}

/* Responsive utilities */
@media (max-width: 768px) {
    .size-130 {
        width: 20rem;
        height: 20rem;
    }

    /* Workflow Section - Reverse order on mobile (text first, animation second) */
    /* Step containers have: circle (hidden), animation card (div 2), text content (div 3) */

    /* Animation cards (2nd child) go to bottom */
    #workflow .space-y-32>div>div.w-full:nth-child(2) {
        order: 2;
    }

    /* Text content (3rd child) goes to top */
    #workflow .space-y-32>div>div.w-full:nth-child(3) {
        order: 1;
    }
}

/* Section spacing */
section {
    position: relative;
}

/* Link smooth transitions */
a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* Form Elements */
input,
select,
textarea {
    font-family: 'Poppins', sans-serif;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
}

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

::-webkit-scrollbar-track {
    background: #0A0A0A;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Workflow Card Animations */
.workflow-line {
    width: 0%;
    animation: expandLine 3s ease-in-out infinite;
}

.workflow-line-continuous {
    width: 0%;
    animation: expandLineContinuous 7s ease-in-out infinite;
}

.workflow-progress {
    width: 0%;
    animation: expandProgress 7s ease-in-out infinite;
}

@keyframes expandLine {
    0% {
        width: 0%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    50% {
        width: 100%;
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        width: 100%;
        opacity: 0;
    }
}

@keyframes expandLineContinuous {
    0% {
        width: 0%;
        opacity: 1;
    }

    28.6% {
        width: 100%;
        opacity: 1;
    }

    100% {
        width: 100%;
        opacity: 1;
    }
}

@keyframes expandProgress {
    0% {
        width: 0%;
    }

    28.6% {
        width: 0%;
    }

    71.4% {
        width: 100%;
    }

    100% {
        width: 100%;
    }
}

/* Workflow Card Glow Effect */
.workflow-card {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}