/* ==========================================================================
   Pran HMIS Marketing Webpage Stylesheets
   Modern Design System with Inter/Plus Jakarta Sans Typography
   ========================================================================== */

:root {
    /* Brand Palette */
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #eff6ff;
    --secondary: #0f172a;
    --accent-teal: #06b6d4;
    --accent-emerald: #10b981;
    --accent-purple: #8b5cf6;
    --accent-amber: #f59e0b;
    --accent-rose: #f43f5e;

    /* Neutral Surface Colors */
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.85);
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --border-color: #e2e8f0;
    --border-focus: #93c5fd;

    /* Shadows & Radius */
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 12px 32px -4px rgba(15, 23, 42, 0.12);
    --shadow-glow: 0 0 25px rgba(37, 99, 235, 0.25);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Setup */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Typography & Links */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--secondary);
    font-weight: 700;
    line-height: 1.25;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-hover);
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.gradient-text {
    background: linear-gradient(135deg, #2563eb 0%, #06b6d4 50%, #8b5cf6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Badges & Buttons */
.badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    background-color: var(--primary-light);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.75rem;
    border-radius: var(--radius-full);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.sub-heading {
    display: block;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.sub-heading.light {
    color: #93c5fd;
}

.section-header {
    margin-bottom: 3.5rem;
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%);
    color: #ffffff;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    color: #ffffff;
}

.btn-outline {
    background: transparent;
    border-color: var(--border-color);
    color: var(--secondary);
}

.btn-outline:hover {
    background-color: var(--bg-card);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline-light {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
    color: #ffffff;
}

.btn-lg {
    padding: 0.9rem 2rem;
    font-size: 1.05rem;
    border-radius: var(--radius-md);
}

.btn-block {
    width: 100%;
}

.btn-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

.btn-phone:hover {
    color: var(--primary);
}

/* Announcement Bar */
.announcement-bar {
    background: linear-gradient(90deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    font-size: 0.85rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.announcement-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.announcement-link {
    color: #60a5fa;
    font-weight: 600;
    text-decoration: underline;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--bg-glass);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.navbar.scrolled {
    box-shadow: var(--shadow-sm);
    background-color: rgba(255, 255, 255, 0.95);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.brand-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-box {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(14, 165, 233, 0.12) 100%);
    border: 1.5px solid rgba(37, 99, 235, 0.25);
    border-radius: var(--radius-md);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.12);
    transition: all var(--transition-fast);
}

.logo-box:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.logo-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.02em;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.logo-tag {
    font-size: 0.75rem;
    font-weight: 800;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-teal) 100%);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background-color: var(--secondary);
    transition: all var(--transition-fast);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 5rem 0 4rem;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: -150px;
    right: -150px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, rgba(6, 182, 212, 0.05) 50%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

.hero-pill-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-emerald);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-emerald);
}

.hero-title {
    font-size: 3rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 540px;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.hero-trust-badges {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* Hero Graphic Console Mockup */
.dashboard-preview-card {
    background-color: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.card-header-bar {
    background-color: #0f172a;
    color: #ffffff;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
}

.window-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-red {
    background-color: #ef4444;
}

.dot-yellow {
    background-color: #f59e0b;
}

.dot-green {
    background-color: #10b981;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #34d399;
    font-weight: 600;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: #34d399;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(52, 211, 153, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(52, 211, 153, 0);
    }
}

.card-body-content {
    padding: 1.5rem;
    background-color: #f8fafc;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.metric-box {
    background-color: #ffffff;
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.metric-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.metric-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--secondary);
    display: block;
}

.metric-change {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.metric-change.positive {
    color: var(--accent-emerald);
    font-weight: 600;
}

.live-activity-stream {
    background-color: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    padding: 1rem;
}

.stream-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.stream-header h4 {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.badge-live {
    background-color: #fee2e2;
    color: #ef4444;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.6rem 0;
    border-bottom: 1px dashed var(--border-color);
    font-size: 0.82rem;
}

.activity-item:last-child {
    border-bottom: none;
}

.act-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.act-icon.doc {
    background-color: #e0f2fe;
}

.act-icon.pharm {
    background-color: #d1fae5;
}

.act-icon.hosp {
    background-color: #f3e8ff;
}

.act-details {
    flex-grow: 1;
}

.act-time {
    font-size: 0.7rem;
    color: var(--text-light);
    white-space: nowrap;
}

/* Stats Banner */
.stats-banner {
    background-color: var(--secondary);
    color: #ffffff;
    padding: 3rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    background: linear-gradient(135deg, #ffffff 0%, #93c5fd 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.95rem;
    color: #94a3b8;
    font-weight: 500;
}

/* Persona / Solutions Switcher */
.solutions-section {
    padding: 6rem 0;
}

.persona-tabs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.persona-tab {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1.25rem 1rem;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: left;
}

.persona-tab:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.persona-tab.active {
    background-color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.15);
    border-width: 2px;
}

.tab-icon {
    font-size: 1.75rem;
    line-height: 1;
}

.tab-title {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary);
}

.tab-sub {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.persona-content-wrapper {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 3rem;
}

.persona-panel {
    display: none;
}

.persona-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.panel-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.panel-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--primary);
    background-color: var(--primary-light);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.panel-text h3 {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
}

.panel-text p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 1.75rem;
}

.feature-checklist {
    list-style: none;
    margin-bottom: 2rem;
}

.feature-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--secondary);
}

.feature-checklist svg {
    flex-shrink: 0;
    margin-top: 2px;
}

/* Panel Visual Cards */
.visual-card {
    background-color: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.vcard-header {
    margin-bottom: 1.25rem;
}

.vcard-tag {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--accent-teal);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.vcard-header h4 {
    font-size: 1.1rem;
}

.rx-preview-box {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin-bottom: 1rem;
}

.rx-line {
    display: flex;
    gap: 0.5rem;
    font-size: 0.85rem;
    padding: 0.4rem 0;
    border-bottom: 1px dashed #f1f5f9;
}

.rx-symbol {
    font-weight: 800;
    color: var(--primary);
}

.vcard-footer-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.vstat-num {
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
}

.vstat-lbl {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Doctor List Preview (Polyclinic Panel) */
.doctor-list-preview {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.doc-row {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.status-online {
    width: 10px;
    height: 10px;
    background-color: var(--accent-emerald);
    border-radius: 50%;
}

.doc-info {
    flex-grow: 1;
}

.doc-info strong {
    display: block;
    font-size: 0.85rem;
}

.doc-info span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.share-badge {
    font-size: 0.7rem;
    font-weight: 700;
    background-color: #f3e8ff;
    color: var(--accent-purple);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

/* Bed Grid Preview (Hospital Panel) */
.bed-grid-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.bed-cell {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.6rem;
    text-align: center;
}

.bed-cell.occupied {
    border-left: 3px solid var(--accent-rose);
}

.bed-cell.occupied.tpa {
    border-left: 3px solid var(--accent-amber);
}

.bed-cell.available {
    border-left: 3px solid var(--accent-emerald);
}

.bed-cell.cleaning {
    border-left: 3px solid var(--accent-purple);
}

.bed-num {
    display: block;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--text-muted);
}

.patient-name {
    font-size: 0.75rem;
    font-weight: 600;
}

/* Pharmacy POS Cart Preview */
.pos-cart-preview {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.85rem;
    margin-bottom: 0.75rem;
}

.pos-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.pos-total-row {
    display: flex;
    justify-content: space-between;
    padding-top: 0.6rem;
    font-size: 0.9rem;
}

.total-price {
    color: var(--accent-emerald);
}

.stock-alert-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #fffbe6;
    border: 1px solid #ffe58f;
    padding: 0.6rem 0.85rem;
    border-radius: 6px;
    font-size: 0.75rem;
    color: #d48806;
}

/* Patient Portal Preview Card */
.patient-app-preview {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.patient-profile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(14, 165, 233, 0.12) 100%);
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.patient-user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.patient-avatar-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.patient-user-details h5 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--heading-color);
    margin: 0;
}

.patient-user-details span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.patient-abha-badge {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent-emerald);
    background-color: #ecfdf5;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    border: 1px solid #a7f3d0;
}

.patient-data-block {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.85rem;
}

.patient-data-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    padding: 0.4rem 0;
    border-bottom: 1px dashed #f1f5f9;
}

.patient-data-row:last-child {
    border-bottom: none;
}

.patient-advice-pill {
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    padding: 0.65rem 0.85rem;
    font-size: 0.78rem;
    color: #1e40af;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.patient-quick-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.pbadge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    background-color: #f1f5f9;
    color: var(--text-main);
}

/* Feature Grid Section */
.features-section {
    background-color: #ffffff;
    padding: 6rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: all var(--transition-fast);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.fcard-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.fcard-icon.bg-blue {
    background-color: #dbeafe;
    color: var(--primary);
}

.fcard-icon.bg-teal {
    background-color: #cffafe;
    color: var(--accent-teal);
}

.fcard-icon.bg-indigo {
    background-color: #e0e7ff;
    color: #4f46e5;
}

.fcard-icon.bg-emerald {
    background-color: #d1fae5;
    color: var(--accent-emerald);
}

.fcard-icon.bg-purple {
    background-color: #f3e8ff;
    color: var(--accent-purple);
}

.fcard-icon.bg-amber {
    background-color: #fef3c7;
    color: var(--accent-amber);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ROI Calculator Section */
.roi-section {
    padding: 6rem 0;
}

.roi-card-wrapper {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    border-radius: var(--radius-lg);
    padding: 4rem;
    box-shadow: var(--shadow-lg);
}

.roi-header {
    text-align: center;
    margin-bottom: 3rem;
}

.roi-header h2 {
    color: #ffffff;
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
}

.roi-header p {
    color: #94a3b8;
}

.roi-body-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

.slider-group {
    margin-bottom: 2rem;
}

.slider-label-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #e2e8f0;
}

.slider-val {
    color: #60a5fa;
    font-weight: 700;
}

.custom-range {
    width: 100%;
    height: 8px;
    background: #334155;
    border-radius: 4px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.custom-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid #ffffff;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.5);
}

.facility-type-selector label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 0.75rem;
}

.facility-radio-group {
    display: flex;
    gap: 1.5rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: #cbd5e1;
    cursor: pointer;
}

.roi-results-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    padding: 2rem;
}

.roi-results-box h4 {
    color: #94a3b8;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.result-item {
    margin-bottom: 1.5rem;
}

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

.result-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    color: #60a5fa;
}

.result-item.highlight .result-number {
    color: #34d399;
    font-size: 2.5rem;
}

.result-desc {
    font-size: 0.85rem;
    color: #cbd5e1;
}

/* Compliance Section */
.compliance-section {
    padding: 6rem 0;
    background-color: #ffffff;
}

.compliance-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.compliance-features {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 2rem;
}

.cfeat {
    display: flex;
    gap: 1rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.cfeat-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.abdm-badge-card {
    background: linear-gradient(135deg, #eff6ff 0%, #e0f2fe 100%);
    border: 1px solid #bfdbfe;
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.abdm-symbol {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.abdm-status {
    display: inline-block;
    background-color: var(--accent-emerald);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    margin-bottom: 1.5rem;
}

.abdm-badge-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
}

.abdm-badge-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Testimonials Section */
.testimonials-section {
    padding: 6rem 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-card {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stars {
    color: #f59e0b;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.quote {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.author-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-teal) 100%);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-details strong {
    display: block;
    font-size: 0.9rem;
}

.author-details span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* CTA Banner Section */
.cta-banner-section {
    padding: 4rem 0 6rem;
}

.cta-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 45%, #2563eb 100%);
    color: #ffffff;
    border-radius: var(--radius-lg);
    padding: 4.5rem 2rem;
    text-align: center;
    box-shadow: 0 20px 40px -15px rgba(37, 99, 235, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 65%);
    pointer-events: none;
}

.cta-badge {
    position: relative;
    z-index: 2;
    display: inline-block;
    padding: 0.35rem 0.9rem;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.25);
    margin-bottom: 1.25rem;
    backdrop-filter: blur(4px);
}

.cta-card h2 {
    position: relative;
    z-index: 2;
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.cta-card p {
    position: relative;
    z-index: 2;
    font-size: 1.15rem;
    max-width: 680px;
    margin: 0 auto 2.5rem;
    color: #e0e7ff;
    line-height: 1.6;
}

.cta-buttons {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-bottom: 1.75rem;
}

/* High-contrast, attractive CTA primary button */
.btn-cta-primary,
.cta-card .btn-primary {
    background: #ffffff !important;
    color: #1e3a8a !important;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 0.95rem 2.2rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-cta-primary:hover,
.cta-card .btn-primary:hover {
    background: #f8fafc !important;
    color: #1d4ed8 !important;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 16px 32px -5px rgba(0, 0, 0, 0.4), 0 0 30px rgba(255, 255, 255, 0.5);
}

/* Glassmorphism call sales button with protected hover text */
.btn-cta-outline,
.cta-card .btn-outline-light,
.cta-card a.btn-outline-light {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 0.95rem 2rem;
    border-radius: var(--radius-md);
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(8px);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.btn-cta-outline:hover,
.cta-card .btn-outline-light:hover,
.cta-card a.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.cta-subtext {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 1.75rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: #c7d2fe;
    font-weight: 500;
}

/* Footer */
.footer {
    background-color: var(--secondary);
    color: #94a3b8;
    padding: 5rem 0 3rem;
    border-top: 1px solid #1e293b;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    font-size: 0.9rem;
    margin: 1.25rem 0 1.5rem;
    max-width: 320px;
}

.footer-brand .brand-name {
    color: #ffffff;
}

.copyright-text {
    font-size: 0.8rem;
    color: #64748b;
}

.footer-column h4 {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 1.25rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.75rem;
}

.footer-column a {
    color: #94a3b8;
    font-size: 0.9rem;
}

.footer-column a:hover {
    color: #ffffff;
}

/* Demo Modal Overlay */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    padding: 1.5rem;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background-color: #ffffff;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 520px;
    padding: 2.5rem;
    position: relative;
    box-shadow: var(--shadow-lg);
    transform: translateY(20px);
    transition: transform var(--transition-fast);
}

.modal-overlay.active .modal-card {
    transform: translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: none;
    border: none;
    font-size: 1.75rem;
    color: var(--text-muted);
    cursor: pointer;
}

.modal-close-btn:hover {
    color: var(--secondary);
}

.modal-header {
    margin-bottom: 1.5rem;
}

.modal-header h3 {
    font-size: 1.5rem;
    margin: 0.5rem 0 0.25rem;
}

.modal-header p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--secondary);
}

.form-group input,
.form-group select {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    outline: none;
    font-family: inherit;
    transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-success-msg {
    display: none;
    text-align: center;
    padding: 2rem 0;
}

.form-success-msg.active {
    display: block;
}

.success-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.form-success-msg h4 {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
}

.form-success-msg p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Responsive Media Queries */
@media (max-width: 992px) {

    .hero-grid,
    .panel-grid,
    .roi-body-grid,
    .compliance-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .persona-tabs {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {

    .nav-links,
    .nav-actions {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 72px;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        padding: 1.5rem;
        box-shadow: var(--shadow-md);
        border-bottom: 1px solid var(--border-color);
    }

    .hero-title {
        font-size: 2.1rem;
    }

    .persona-tabs {
        grid-template-columns: 1fr;
    }

    .features-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .persona-content-wrapper,
    .roi-card-wrapper {
        padding: 1.75rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Page Header & Module Overview Enhancements */
.page-header-banner {
    padding: 4rem 0 2rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(14, 165, 233, 0.05) 100%);
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.page-header-banner .page-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--heading-color);
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.page-header-banner .page-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto;
}

.module-overview-section {
    padding: 5rem 0;
    background-color: #ffffff;
}

.module-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.module-overview-card {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.25rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.module-overview-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.overview-card-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.overview-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
}

.overview-card-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 0.25rem;
}

.overview-card-tag {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
}

.overview-card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.75rem;
}

.overview-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    transition: gap 0.2s ease;
}

.overview-card-link:hover {
    gap: 0.75rem;
    color: var(--primary-dark);
}

/* Legal & Policy Pages */
.legal-page-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    padding: 4.5rem 0 3.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.legal-header-content {
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
}

.legal-title {
    font-size: 2.75rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0.75rem 0 1rem;
    letter-spacing: -0.02em;
}

.legal-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: #94a3b8;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.legal-meta strong {
    color: #cbd5e1;
}

.legal-tabs {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.08);
    padding: 0.35rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.15);
    gap: 0.5rem;
}

.legal-tab {
    padding: 0.6rem 1.6rem;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    color: #cbd5e1;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.legal-tab.active {
    background: var(--primary);
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.45);
}

.legal-tab:hover:not(.active) {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

.legal-content-section {
    padding: 4rem 0 6rem;
    background-color: var(--bg-main);
}

.legal-layout {
    display: grid;
    grid-template-columns: 290px 1fr;
    gap: 3.5rem;
    align-items: flex-start;
}

.legal-sidebar {
    position: sticky;
    top: 90px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.legal-toc-title {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--secondary);
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--border-color);
}

.legal-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.legal-toc-list a {
    font-size: 0.88rem;
    color: var(--text-muted);
    text-decoration: none;
    line-height: 1.4;
    transition: all var(--transition-fast);
    display: block;
    padding: 0.4rem 0.65rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
}

.legal-toc-list a:hover {
    color: var(--primary);
    background-color: var(--primary-light);
    padding-left: 0.85rem;
}

.legal-body {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 3.5rem;
    box-shadow: var(--shadow-sm);
    line-height: 1.8;
    color: #334155;
}

.legal-body h2 {
    font-size: 1.55rem;
    color: var(--secondary);
    margin: 2.75rem 0 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid #f1f5f9;
    scroll-margin-top: 100px;
}

.legal-body h2:first-of-type {
    margin-top: 0;
}

.legal-body h3 {
    font-size: 1.15rem;
    color: var(--secondary);
    margin: 1.75rem 0 0.6rem;
}

.legal-body p {
    margin-bottom: 1.25rem;
    font-size: 0.98rem;
}

.legal-body ul, .legal-body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.legal-body li {
    margin-bottom: 0.5rem;
    font-size: 0.98rem;
}

.legal-alert {
    background: #f0fdf4;
    border-left: 4px solid var(--accent-emerald);
    padding: 1.25rem 1.5rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 1.75rem 0;
}

.legal-alert.warning {
    background: #fffbeb;
    border-left-color: #f59e0b;
}

.legal-alert.info {
    background: #eff6ff;
    border-left-color: var(--primary);
}

.legal-alert-title {
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-legal-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: #64748b;
}

.footer-legal-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-legal-links a:hover {
    color: #ffffff;
}

.footer-legal-links .separator {
    color: #475569;
}

@media (max-width: 900px) {
    .legal-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .legal-sidebar {
        position: relative;
        top: 0;
    }
    .legal-body {
        padding: 2rem 1.5rem;
    }
    .legal-title {
        font-size: 2rem;
    }
}