/* ==========================================================================
   Marideon 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 Hover Underline
   -------------------------------------------------------------------------- */

.navbar .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 3px;
    background: var(--secondary-blue);
    transition: width 0.3s ease;
}

/* Show underline on hover */
.navbar .nav-link:hover::after {
    width: 100%;
}

/* Dropdown links: use the same pseudo-element for underline,
   but hide Bootstrap's default dropdown arrow */
.navbar .dropdown-toggle::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 3px;
    margin: 0;
    border: 0;
    background: var(--secondary-blue);
    transition: width 0.3s ease;
}

/* Dropdown underline on hover */
.navbar .dropdown-toggle: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;
    }
}

.navbar-logo {
    height: 40px;
    width: auto;
    display: block;
}

@media (max-width: 768px) {
    .navbar-logo {
        height: 36px;
    }
}

.yearly-saving {
    color: #16a34a;
    font-size: 14px;
    font-weight: 600;
    margin-top: 6px;
}

/* --------------------------------------------------------------------------
   Navbar Dropdowns
   -------------------------------------------------------------------------- */

.navbar .dropdown-menu {
    min-width: 220px;
    padding: 8px;
    margin-top: 10px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(18, 53, 91, 0.12);
}

/* Platform dropdown */
.navbar .platform-dropdown {
    width: 390px;
}

/* Solutions dropdown */
.navbar .solutions-dropdown {
    width: 270px;
}

/* Dropdown items */
.navbar .dropdown-item {
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--primary-navy);
    white-space: normal;
    transition: all 0.2s ease;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
    color: var(--secondary-blue);
    background-color: var(--light-bg);
}

/* Platform dropdown title */
.navbar .dropdown-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 3px;
}

/* Platform dropdown description */
.navbar .dropdown-description {
    font-size: 12px;
    line-height: 1.5;
    color: var(--gray-text);
}

.navbar .dropdown-item:hover .dropdown-title {
    color: var(--secondary-blue);
}

/* Dropdown separator */
.navbar .dropdown-divider {
    margin: 6px 4px;
    border-color: var(--border-color);
}

/* View all features */
.navbar .view-all-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    color: var(--secondary-blue);
}

.navbar .view-all-link span {
    font-size: 17px;
    transition: transform 0.2s ease;
}

.navbar .view-all-link:hover span {
    transform: translateX(3px);
}

/* Hide underline inside dropdown items */
.navbar .dropdown-item::after {
    display: none !important;
}

/* Mobile dropdown */
@media (max-width: 991.98px) {

    .navbar .dropdown-menu {
        width: 100% !important;
        margin-top: 0;
        padding: 5px 0 5px 12px;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .navbar .dropdown-item {
        padding: 9px 10px;
    }

    .navbar .dropdown-description {
        max-width: 100%;
    }
}


/* =========================
       PRICING HERO
    ========================== */

.pricing-hero {
    position: relative;

    /*
         * Reduced bottom spacing so
         * cards sit closer to header.
         */
    padding: 135px 0 30px;

    background:
        radial-gradient(circle at 50% 0%,
            rgba(37, 99, 235, 0.10),
            transparent 55%),
        #f8fafc;

    overflow: hidden;
}


.pricing-hero-content {
    max-width: 850px;
    margin: 0 auto;
}


.pricing-eyebrow {
    display: inline-flex;
    align-items: center;

    padding: 7px 14px;
    margin-bottom: 18px;

    border-radius: 50px;

    background: rgba(37, 99, 235, 0.08);

    color: #2563eb;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 1.2px;
}


.pricing-title {
    margin: 0;

    color: #12355b;

    font-size: clamp(38px, 5vw, 58px);

    line-height: 1.08;

    font-weight: 800;

    letter-spacing: -1.8px;
}


.pricing-title span {
    color: #2563eb;
}


.pricing-subtitle {
    max-width: 720px;

    margin: 18px auto 0;

    color: #64748b;

    font-size: 16px;

    line-height: 1.65;
}


/* =========================
       PLAN AVAILABILITY TAG
    ========================== */

.pricing-availability {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    margin-top: 24px;

    padding: 9px 16px;

    background: #ffffff;

    border: 1px solid #dbeafe;

    border-radius: 50px;

    color: #2563eb;

    font-size: 13px;

    font-weight: 600;

    box-shadow:
        0 6px 18px rgba(37, 99, 235, 0.07);
}


.pricing-availability i {
    font-size: 15px;
}


/* =========================
       PRICING SECTION
    ========================== */

.pricing-section {

    /*
         * Small top padding to keep
         * cards close to header.
         */
    padding: 25px 0 90px;

    background: #f8fafc;
}


.pricing-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 28px;

    max-width: 1150px;

    margin: 0 auto;

    align-items: stretch;
}


/* =========================
       PRICING CARD
    ========================== */

.pricing-card-wrapper {
    position: relative;
}


.pricing-card {
    position: relative;

    height: 100%;

    background: #ffffff;

    border: 1px solid #e2e8f0;

    border-radius: 20px;

    overflow: visible;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}


.pricing-card:hover {
    transform: translateY(-7px);

    border-color:
        rgba(37, 99, 235, 0.35);

    box-shadow:
        0 20px 45px rgba(15, 23, 42, 0.10);
}


.pricing-card-body {
    height: 100%;

    padding: 32px;
}


/* =========================
       MOST POPULAR PLAN
    ========================== */

.popular-plan {
    border: 2px solid #2563eb;

    box-shadow:
        0 20px 45px rgba(37, 99, 235, 0.13);

    transform: translateY(-7px);
}


.popular-plan:hover {
    transform: translateY(-12px);
}


.popular-badge {
    position: absolute;

    top: -13px;

    left: 50%;

    transform:
        translateX(-50%);

    z-index: 5;

    white-space: nowrap;

    padding: 7px 16px;

    border-radius: 50px;

    background: #2563eb;

    color: #ffffff;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 0.8px;

    box-shadow:
        0 8px 18px rgba(37, 99, 235, 0.25);
}


/* =========================
       PLAN HEADER
    ========================== */

.plan-heading h3 {
    margin-bottom: 12px;

    color: #12355b;

    font-size: 24px;

    font-weight: 750;
}


.plan-heading p {
    min-height: 50px;

    margin: 0;

    color: #64748b;

    font-size: 14px;

    line-height: 1.65;
}


/* =========================
       PLAN BENEFITS
    ========================== */

.plan-details {
    margin-top: 30px;

    padding-top: 25px;

    border-top:
        1px solid #eef2f7;
}


.benefit-item {
    display: flex;

    align-items: flex-start;

    gap: 11px;

    margin-bottom: 17px;

    color: #475569;

    font-size: 14px;

    line-height: 1.5;
}


.benefit-item:last-child {
    margin-bottom: 0;
}


.benefit-item i {
    flex-shrink: 0;

    margin-top: 2px;

    color: #2563eb;

    font-size: 16px;
}


/* =========================
       EMPTY STATE
    ========================== */

.empty-plans {
    max-width: 500px;

    margin: 0 auto;

    padding: 60px 30px;

    text-align: center;

    background: #ffffff;

    border:
        1px solid #e2e8f0;

    border-radius: 20px;
}


.empty-icon {
    display: flex;

    align-items: center;

    justify-content: center;

    width: 60px;

    height: 60px;

    margin: 0 auto 20px;

    border-radius: 50%;

    background: #eff6ff;

    color: #2563eb;

    font-size: 25px;
}


.empty-plans h4 {
    color: #12355b;

    font-weight: 700;
}


.empty-plans p {
    margin: 0;

    color: #64748b;
}


/* =========================
       TABLET
    ========================== */

@media (max-width: 991px) {

    .pricing-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .popular-plan {
        transform: none;
    }


    .popular-plan:hover {
        transform: translateY(-7px);
    }
}


/* =========================
       MOBILE
    ========================== */

@media (max-width: 767px) {

    .pricing-hero {
        padding: 115px 20px 25px;
    }


    .pricing-title {
        font-size: 40px;
    }


    .pricing-subtitle {
        font-size: 15px;
    }


    .pricing-availability {
        font-size: 12px;

        padding: 8px 13px;
    }


    .pricing-section {
        padding: 20px 20px 70px;
    }


    .pricing-grid {
        grid-template-columns: 1fr;

        gap: 22px;
    }


    .popular-plan {
        transform: none;
    }


    .popular-plan:hover {
        transform: translateY(-6px);
    }


    .pricing-card-body {
        padding: 28px 25px;
    }
}