/* ==========================================================================
   ADVANCED HERO EDITORIAL BLUEPRINT
   ========================================================================== */

:root {
    --neutral-pure: #ffffff;
    --neutral-light: #f8fafc;
    --neutral-border: #e2e8f0;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --brand-primary: #007a87;
    --brand-accent: #3b82f6;
    --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-section {
    position: relative;
    padding: 100px 0 120px; /* Enhanced vertical padding for majestic breathing room */
    background-color: var(--neutral-pure);
    
    /* Clean Minimalist Medical Grid Layout Background Pattern */
    background-image: 
        radial-gradient(at 50% 0%, rgba(0, 122, 135, 0.04) 0px, transparent 60%),
        linear-gradient(rgba(15, 23, 42, 0.01) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.01) 1px, transparent 1px);
    background-size: 100% 100%, 48px 48px, 48px 48px;
    overflow: hidden;
}

/* Focused ambient core lighting glow behind typography */
.hero-section::before {
    content: '';
    position: absolute;
    width: 800px;
    height: 400px;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(0, 122, 135, 0.03) 0%, transparent 80%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.hero-container-centered {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    text-align: center;
}

.hero-content-center {
    max-width: 820px; /* Carefully constrained reading length for large titles */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-tagline {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 122, 135, 0.05);
    border: 1px solid rgba(0, 122, 135, 0.1);
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 32px;
}

.tag-pill {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--brand-primary);
}

.tag-divider {
    width: 1px;
    height: 12px;
    background: rgba(0, 122, 135, 0.2);
}

.tag-status {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.hero-title {
    font-size: clamp(2.8rem, 5.5vw, 4.5rem);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--brand-primary) 20%, #00a3b4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-lead {
    font-size: 1.2rem;
    line-height: 1.65;
    color: var(--text-secondary);
    max-width: 640px;
    margin-bottom: 44px;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

/* Premium Buttons Configuration */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 52px; /* Slightly taller for higher desktop presence */
    padding: 0 32px;
    border-radius: 8px;
    font-size: 0.98rem;
    font-weight: 600;
    transition: all 0.4s var(--ease-smooth);
}

.btn--primary {
    background: var(--brand-primary);
    color: var(--neutral-pure);
}

.btn--primary:hover {
    background: #005a64;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 122, 135, 0.16);
}

.btn--outline {
    border: 1px solid var(--neutral-border);
    color: var(--text-primary);
    background: var(--neutral-pure);
}

.btn--outline:hover {
    background: var(--neutral-light);
    border-color: var(--text-secondary);
    transform: translateY(-2px);
}

/* Cleaned up and removed moving image/architectural box frame styling styles completely */

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0 80px;
    }
    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    .hero-actions .btn {
        width: 100%;
        max-width: 320px;
    }
}


/* ==========================================================================
   ADVANCED METRICS GRID BLUEPRINT
   ========================================================================== */

.stats-section {
    position: relative;
    padding: 60px 0 100px;
    background-color: var(--neutral-pure);
    z-index: 5;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    background: var(--neutral-pure);
    border: 1px solid var(--neutral-border);
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.04);
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px;
    position: relative;
    transition: transform 0.4s var(--ease-smooth);
}

.stat-card:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -12px;
    top: 20%;
    height: 60%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--neutral-border), transparent);
}

.stat-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    background: rgba(0, 122, 135, 0.04);
    color: var(--brand-primary);
    border-radius: 14px;
    margin-bottom: 20px;
    transition: all 0.4s var(--ease-smooth);
}

.stat-card:hover {
    transform: translateY(-4px);
}

.stat-card:hover .stat-icon-wrapper {
    background: var(--brand-primary);
    color: var(--neutral-pure);
    transform: scale(1.05) rotate(4deg);
    box-shadow: 0 8px 20px rgba(0, 122, 135, 0.15);
}

.stat-number-box {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-prefix, .stat-suffix {
    color: var(--brand-primary);
    font-weight: 700;
}

.stat-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: -0.01em;
}

/* Responsive Structural Breakdown */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 24px;
        padding: 40px 24px;
    }
    .stat-card:nth-child(2)::after {
        display: none;
    }
}

@media (max-width: 640px) {
    .stats-section {
        padding: 40px 0 60px;
    }
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        border-radius: 16px;
    }
    .stat-card::after {
        display: none !important;
    }
}

/* ==========================================================================
   ADVANCED HEALTHCARE SUPPLY CHAIN GRID
   ========================================================================== */

.approach-section {
    position: relative;
    padding: 100px 0 120px;
    background-color: var(--neutral-light); /* Clean break from white stats wrapper */
}

.approach-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.approach-header .tag-pill {
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.section-lead {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* 3-Column Grid Configuration */
.approach-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.approach-card {
    background: var(--neutral-pure);
    border: 1px solid var(--neutral-border);
    padding: 40px 32px;
    border-radius: 20px;
    transition: all 0.4s var(--ease-smooth);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.approach-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(0, 122, 135, 0.06);
    color: var(--brand-primary);
    border-radius: 12px;
    margin-bottom: 24px;
    transition: all 0.4s var(--ease-smooth);
}

.approach-card .card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    margin-bottom: 12px;
}

.approach-card .card-text {
    font-size: 0.98rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Micro-interaction Hover Logic */
.approach-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 122, 135, 0.2);
    box-shadow: 0 20px 40px -20px rgba(0, 122, 135, 0.12);
}

.approach-card:hover .approach-icon-box {
    background: var(--brand-primary);
    color: var(--neutral-pure);
    transform: scale(1.05);
}

/* Fluid Breakpoints Matrix */
@media (max-width: 1024px) {
    .approach-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    .approach-card {
        padding: 32px 24px;
    }
}

@media (max-width: 768px) {
    .approach-section {
        padding: 80px 0;
    }
    .approach-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .section-title {
        margin-bottom: 12px;
    }
}

/* ==========================================================================
   ADVANCED HOW IT WORKS (ONBOARDING PIPELINE)
   ========================================================================== */

.workflow-section {
    position: relative;
    padding: 100px 0 140px;
    background-color: var(--neutral-pure);
}

.workflow-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.workflow-header .tag-pill {
    margin-bottom: 16px;
}

/* 4-Column Step Matrix Block Layout */
.workflow-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.workflow-step {
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.4s var(--ease-smooth);
}

.step-meta-layer {
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 24px;
    position: relative;
}

.step-number {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1;
    color: rgba(0, 122, 135, 0.08); /* Clean brand placeholder tone */
    letter-spacing: -0.04em;
    font-feature-settings: "tnum" on, "lnum" on;
    transition: all 0.4s var(--ease-smooth);
}

.step-line-indicator {
    flex-grow: 1;
    height: 2px;
    background: linear-gradient(to right, var(--neutral-border) 60%, transparent 100%);
    margin-left: 20px;
    position: relative;
    top: 2px;
}

/* Strip out the final timeline interconnect node from the final step card layout context */
.workflow-grid .workflow-step:last-child .step-line-indicator {
    display: none;
}

.step-heading {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    margin-bottom: 12px;
}

.step-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Advanced CSS Interactivity Engines */
.workflow-step:hover {
    transform: translateY(-4px);
}

.workflow-step:hover .step-number {
    color: var(--brand-primary);
    transform: scale(1.08);
}

/* Mobile Responsive Matrix Remapping Layers */
@media (max-width: 1024px) {
    .workflow-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 48px 32px;
    }
    /* Remap connecting pipeline geometry safely rules inside 2-column view */
    .workflow-step:nth-child(2) .step-line-indicator,
    .workflow-step:nth-child(4) .step-line-indicator {
        display: none;
    }
}

@media (max-width: 640px) {
    .workflow-header {
        margin-bottom: 54px;
    }
    .workflow-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .step-meta-layer {
        margin-bottom: 14px;
    }
    .step-line-indicator {
        display: none !important; /* Strip timeline graphics for pure linear lists on devices */
    }
    .step-number {
        font-size: 2.4rem;
    }
}