/* ==========================================================================
   ProcureIQ Enterprise SaaS - Custom Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Variables
   -------------------------------------------------------------------------- */
:root {
    --primary-navy: #12355B;
    --secondary-blue: #2563EB;

    --accent-indigo: #4F46E5;
    --accent-cyan: #06B6D4;
    --accent-green: #10B981;
    --accent-orange: #F59E0B;
    --accent-red: #EF4444;

    --light-bg: #F8FAFC;
    --section-bg: #F1F5F9;
    --card-bg: #FFFFFF;
    --neutral-white: #FFFFFF;

    --dark-text: #1F2937;
    --gray-text: #6B7280;

    --border-color: #E2E8F0;
}

/* --------------------------------------------------------------------------
   2. Base Typography & Reset
   -------------------------------------------------------------------------- */
body {
    font-family: 'Inter', sans-serif;
    color: var(--dark-text);
    background-color: var(--neutral-white);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* --------------------------------------------------------------------------
   3. Utilities & Color Classes
   -------------------------------------------------------------------------- */
.text-navy { color: var(--primary-navy) !important; }
.text-secondary-custom { color: var(--gray-text) !important; }
.text-dark-custom { color: var(--dark-text) !important; }

.bg-light-custom { background-color: var(--light-bg) !important; }
.bg-primary-soft { background-color: rgba(37, 99, 235, 0.08) !important; }
.bg-success-soft { background-color: rgba(16, 185, 129, 0.1) !important; }

.border-light-custom { border-color: var(--border-color) !important; }

.max-w-700 { max-width: 700px; }
.x-small { font-size: 0.75rem; }
.tracking-wider { letter-spacing: 0.05em; }

.dot {
    width: 10px;
    height: 10px;
    display: inline-block;
}
.h-75px { height: 75px; }

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn-primary {
    background: linear-gradient(135deg, #2563EB, #4F46E5);
    border: none;
    color: #fff;
    font-weight: 600;
    transition: all 0.35s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 35px rgba(37, 99, 235, 0.30);
    background: linear-gradient(135deg, #1D4ED8, #4338CA);
}

.btn-outline-navy {
    color: var(--primary-navy);
    background-color: var(--neutral-white);
    border: 1px solid var(--primary-navy);
    transition: all 0.3s ease;
}

.btn-outline-navy:hover,
.btn-outline-navy:focus,
.btn-outline-navy:active {
    background-color: var(--primary-navy);
    border-color: var(--primary-navy);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(18, 53, 91, 0.15);
}

.btn-outline-navy:hover i,
.btn-outline-navy:hover span,
.btn-outline-navy:focus i,
.btn-outline-navy:focus span {
    color: #ffffff !important;
}

/* --------------------------------------------------------------------------
   5. Navigation Bar
   -------------------------------------------------------------------------- */
.navbar {
    padding: 1rem 0;
    backdrop-filter: blur(18px);
    background: rgba(255, 255, 255, 0.92);
    transition: all 0.35s ease;
}

.navbar.scrolled {
    padding: 0.6rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.brand-icon-box {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary-navy), var(--secondary-blue));
}

.navbar .nav-link {
    color: var(--dark-text);
    position: relative;
    transition: color 0.3s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--secondary-blue);
}

.navbar .nav-link:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 3px;
    background: #2563EB;
    transition: width 0.3s ease;
}

.navbar .nav-link:hover:after {
    width: 100%;
}

/* --------------------------------------------------------------------------
   6. Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
    padding-top: 8rem;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 45%),
        radial-gradient(circle at bottom right, rgba(6, 182, 212, 0.10), transparent 35%),
        linear-gradient(180deg, var(--light-bg), var(--neutral-white));
}

.hero-section:before {
    content: "";
    position: absolute;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.12), transparent 70%);
    top: -250px;
    right: -150px;
}

/* Dashboard Mockup & Floating Elements */
.dashboard-mockup {
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(18, 53, 91, 0.08);
    transition: all 0.4s ease;
}

.dashboard-mockup:hover {
    transform: translateY(-8px);
    box-shadow: 0 35px 80px rgba(18, 53, 91, 0.18);
}

.floating-widget {
    position: absolute;
    bottom: -20px;
    left: -20px;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    max-width: 260px;
    animation: floatWidget 4s ease-in-out infinite;
}

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

/* --------------------------------------------------------------------------
   7. Features Section
   -------------------------------------------------------------------------- */
.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 22px;
    padding: 35px;
    transition: all 0.35s ease;
    overflow: hidden;
    position: relative;
}

.feature-card:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #2563EB, #06B6D4);
    transform: scaleX(0);
    transition: transform 0.35s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(18, 53, 91, 0.10);
    border-color: var(--secondary-blue);
}

.feature-card:hover:before {
    transform: scaleX(1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

/* --------------------------------------------------------------------------
   8. Workflow Section
   -------------------------------------------------------------------------- */
.workflow-wrapper {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    margin-top: 70px;
}

.workflow-line {
    position: absolute;
    top: 28px;
    left: 8%;
    right: 8%;
    height: 4px;
    background: #E5E7EB;
    z-index: 1;
}

.workflow-item {
    position: relative;
    flex: 1;
    text-align: center;
    z-index: 2;
}

/* Preserved both number styles from original code */
.workflow-number {
    width: 58px;
    height: 58px;
    margin: 0 auto 25px;
    border-radius: 50%;
    background: linear-gradient(135deg, #12355B, #2563EB);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.25);
}

.workflow-step-num {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #2563EB, #4F46E5);
}

.workflow-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid var(--border-color);
    transition: all 0.35s ease;
}

.workflow-card h5 {
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 15px;
}

.workflow-card p {
    color: var(--gray-text);
    font-size: 0.95rem;
    line-height: 1.7;
}

.workflow-card:hover {
    transform: translateY(-8px);
    border-color: var(--secondary-blue);
    box-shadow: 0 20px 45px rgba(18, 53, 91, 0.12);
    background-color: var(--neutral-white) !important;
}

/* --------------------------------------------------------------------------
   9. Abstract Illustrations & Stats
   -------------------------------------------------------------------------- */
.abstract-illustration-box {
    border-radius: 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
}

.abstract-shape {
    position: absolute;
    filter: blur(40px);
    z-index: 1;
}

.shape-1 {
    width: 180px;
    height: 180px;
    background: rgba(37, 99, 235, 0.15);
    top: 10%;
    left: 10%;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: rgba(18, 53, 91, 0.1);
    bottom: 10%;
    right: 10%;
}

.stats-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.35s ease;
}

.stats-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 35px rgba(18, 53, 91, 0.08);
}

/* --------------------------------------------------------------------------
   10. Call-to-Action Section
   -------------------------------------------------------------------------- */
.cta-section {
    background: linear-gradient(135deg, var(--primary-navy), #1E3A8A, var(--secondary-blue));
    position: relative;
    overflow: hidden;
}

.cta-section:before {
    content: "";
    position: absolute;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    right: -120px;
    top: -120px;
}

.cta-section:after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(6, 182, 212, 0.12);
    left: -80px;
    bottom: -80px;
}

/* --------------------------------------------------------------------------
   11. Footer
   -------------------------------------------------------------------------- */
footer {
    background: #0F172A;
    color: #fff;
}

footer a {
    color: #CBD5E1;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--accent-cyan);
}

.social-icon-box {
    width: 36px;
    height: 36px;
    transition: all 0.2s ease;
}

.social-icon-box:hover {
    background-color: var(--secondary-blue);
    color: var(--neutral-white) !important;
    border-color: var(--secondary-blue) !important;
}

/* --------------------------------------------------------------------------
   12. Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
    .floating-widget {
        position: relative;
        bottom: 0;
        left: 0;
        margin-top: 1rem;
        max-width: 100%;
    }

    .workflow-wrapper {
        display: block;
    }

    .workflow-line {
        display: none;
    }

    .workflow-item {
        margin-bottom: 35px;
    }

    .workflow-card {
        min-height: auto;
    }
}