/* ============================================
   OPDIgo Website — website.css
   Deep Purple Theme
   ============================================ */

:root {
    --primary: #6b21a8;
    --primary-dark: #581c87;
    --primary-light: #f3e8ff;
    --primary-glow: rgba(107, 33, 168, 0.15);
    --accent: #a855f7;
    --accent-light: #c084fc;
    --text-dark: #0f172a;
    --text-body: #334155;
    --text-muted: #64748b;
    --bg: #faf8ff;
    --bg-card: #ffffff;
    --border: #f1f0f3;
    --success: #10b981;
    --info: #3b82f6;
    --warning: #f59e0b;
}

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

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-body);
    background: var(--bg-card);
    /* Force white background for the whole page */
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 98%;
    margin: 0 auto;
    padding: 0 2%;
}


/* ===== HEADER / MENU ===== */

.main-header {
    background-color: #ffffff;
    /* Removed border-bottom for a cleaner look */
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2%;
    max-width: 98%;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo svg {
    color: var(--primary);
    margin-right: 8px;
}

.desktop-nav {
    display: flex;
    gap: 2rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    padding: 10px 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.desktop-nav a {
    color: var(--text-body);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s;
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.login-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.login-link:hover {
    color: var(--text-dark);
}

.btn {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: #ffffff;
    transform: translateY(-2px);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-dark);
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: white;
    padding: 80px 20px 20px;
    box-shadow: -10px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    border-top: none;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.mobile-close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-dark);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.mobile-nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.1rem;
}

.mobile-nav-links .btn-primary {
    color: #ffffff;
}

.mobile-nav-links .btn {
    width: 100%;
    text-align: center;
    margin-top: 10px;
}


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

.hero-section {
    position: relative;
    min-height: 90vh;
    padding: 4rem 0 4rem;
    overflow: hidden;
    background: radial-gradient(circle at top right, rgba(243, 232, 255, 0.4), transparent 50%),
        radial-gradient(circle at bottom left, rgba(224, 231, 255, 0.4), transparent 50%);
}

.hero-bg-gradient {
    display: none;
    /* Hide purple glowing blobs to match clean aesthetic */
}

.hero-bg-gradient-2 {
    position: absolute;
    top: 50%;
    right: 0%;
    transform: translateY(-50%) translateX(20%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, rgba(243, 232, 255, 0.5) 40%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.hero-text {
    flex: 1;
    max-width: 560px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-light);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2rem;
    border: 1px solid rgba(107, 33, 168, 0.12);
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.5);
    }
}

.hero-title {
    font-size: 4.2rem;
    font-weight: 900;
    line-height: 1.08;
    color: var(--text-dark);
    letter-spacing: -2px;
    margin-bottom: 1.5rem;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1.15rem;
    line-height: 1.75;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.btn-main {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(107, 33, 168, 0.3);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 28px;
    background: transparent;
    color: var(--text-dark);
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

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


/* ===== DASHBOARD MOCKUP ===== */

.hero-visual {
    flex: 1.2;
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    margin-top: -2rem;
    /* Pull dashboard up slightly to align with text visually */
}

.hero-visual::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, rgba(243, 232, 255, 0.8) 40%, transparent 70%);
    z-index: 0;
    pointer-events: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.dashboard-wrapper {
    position: relative;
    perspective: 1200px;
    width: 100%;
    max-width: 800px;
}

.dashboard-main {
    background: var(--bg-card);
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
    padding: 0;
    overflow: hidden;
    transform: rotateY(-4deg) rotateX(2deg);
    transition: transform 0.6s ease;
}

.dashboard-main:hover {
    transform: rotateY(0) rotateX(0);
}

.dash-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    background: #fefefe;
}

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

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

.dash-dot.r {
    background: #f87171;
}

.dash-dot.y {
    background: #fbbf24;
}

.dash-dot.g {
    background: #34d399;
}

.dash-tabs {
    display: flex;
    gap: 4px;
}

.dash-tab {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
}

.dash-tab.active {
    background: var(--primary-light);
    color: var(--primary);
}

.dash-body {
    padding: 24px;
}

.stat-row {
    display: flex;
    gap: 14px;
    margin-bottom: 20px;
    flex-direction: row;
}

.stat-card {
    flex: 1;
    background: #ffffff;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.stat-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-dark);
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.stat-change {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
}

.stat-change.up {
    background: #dcfce7;
    color: #166534;
}

.stat-change.down {
    background: #fef2f2;
    color: #991b1b;
}

.stat-bar-track {
    height: 4px;
    background: #e2e8f0;
    border-radius: 10px;
    margin-top: 14px;
    overflow: hidden;
}

.stat-bar-fill {
    height: 100%;
    border-radius: 10px;
    width: 0;
}

.chart-area {
    background: var(--bg);
    border-radius: 14px;
    padding: 20px;
    border: 1px solid var(--border);
    margin-bottom: 20px;
}

.chart-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.chart-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
}

.chart-legend {
    display: flex;
    gap: 16px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
}

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

.bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 130px;
    padding-top: 10px;
}

.bar-group {
    flex: 1;
    display: flex;
    gap: 3px;
    align-items: flex-end;
    height: 100%;
}

.bar {
    flex: 1;
    border-radius: 4px 4px 0 0;
    height: 0;
    position: relative;
}

.bar-label {
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.6rem;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
}

.dash-bottom-row {
    display: flex;
    gap: 14px;
    flex-direction: row;
}

.mini-card {
    flex: 1;
    background: var(--bg);
    border-radius: 12px;
    padding: 18px;
    border: 1px solid var(--border);
}

.mini-card-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.donut-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
}

.donut {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.donut svg {
    transform: rotate(-90deg);
}

.donut-track {
    fill: none;
    stroke: #e2e8f0;
    stroke-width: 6;
}

.donut-fill {
    fill: none;
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 170;
    stroke-dashoffset: 170;
}

.donut-val {
    position: absolute;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--text-dark);
}

.donut-legend {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.donut-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    color: var(--text-body);
    font-weight: 500;
}

.dl-dot {
    width: 8px;
    height: 8px;
    border-radius: 2px;
}

.feed-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    opacity: 0;
    transform: translateX(-15px);
}

.feed-item:last-child {
    border: none;
}

.feed-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.feed-text {
    font-size: 0.75rem;
    color: var(--text-body);
    font-weight: 500;
    line-height: 1.4;
}

.feed-time {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-left: auto;
    white-space: nowrap;
}

.float-notif {
    position: absolute;
    background: white;
    border-radius: 14px;
    padding: 16px 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--border);
    z-index: 10;
    opacity: 0;
    transform: translateX(30px) scale(0.95);
}

.float-notif.top {
    top: 20px;
    right: -30px;
}

.float-notif.bottom {
    bottom: 30px;
    left: -40px;
}

.notif-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notif-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notif-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dark);
}

.notif-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.counter {
    display: inline-block;
}


/* ===== STATS STRIP (replaces trusted section) ===== */

.stats-strip {
    padding: 2rem 0 4rem;
    background: white;
}

.stats-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
}

.stat-block {
    flex: 1;
    text-align: center;
    padding: 1.5rem 2rem;
    position: relative;
}

.stat-block:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: var(--border);
}

.stat-block-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-block-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}


/* ===== FEATURES ===== */

.features-section {
    padding: 8rem 0;
    background: linear-gradient(180deg, var(--bg) 0%, #ede9fe 50%, var(--bg) 100%);
    position: relative;
    overflow: hidden;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(107, 33, 168, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.features-section::after {
    content: '';
    position: absolute;
    bottom: 5%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-light);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.section-head {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 4.5rem;
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -1.5px;
    margin-bottom: 1rem;
    line-height: 1.15;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.f-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2.5rem 2rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
    cursor: default;
}

.f-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.f-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--glow-color, rgba(107, 33, 168, 0.06)) 0%, transparent 70%);
    transition: all 0.5s ease;
    pointer-events: none;
}

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

.f-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(107, 33, 168, 0.12);
    background: rgba(255, 255, 255, 0.95);
}

.f-card:hover::after {
    transform: scale(1.5);
}

.f-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.f-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.f-stat {
    text-align: right;
}

.f-stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1;
}

.f-stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 4px;
}

.f-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.f-card p {
    color: var(--text-muted);
    line-height: 1.65;
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.f-mini-chart {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 32px;
}

.f-mini-bar {
    flex: 1;
    border-radius: 3px 3px 0 0;
    transition: height 1.5s cubic-bezier(0.22, 1, 0.36, 1);
    height: 0;
}

.f-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: gap 0.3s ease;
}

.f-link:hover {
    gap: 10px;
}


/* ===== HIGHLIGHT ===== */

.highlight-section {
    padding: 8rem 0;
    background: white;
}

.highlight-grid {
    display: flex;
    align-items: center;
    gap: 6rem;
}

.highlight-visual {
    flex: 1;
    position: relative;
}

.highlight-mockup {
    background: var(--bg);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid var(--border);
}

.highlight-content {
    flex: 1;
}

.check-list {
    list-style: none;
    padding: 0;
    margin-top: 2rem;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 1.75rem;
    font-size: 1.05rem;
    color: var(--text-body);
    font-weight: 500;
    line-height: 1.5;
}

.check-icon {
    width: 28px;
    height: 28px;
    background: var(--primary-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--primary);
}


/* ===== CTA ===== */

.blue-banner {
    background: linear-gradient(135deg, #1e3a8a, #0f172a);
    color: white;
    padding: 3rem 5%;
    text-align: center;
    width: 100%;
}

.blue-banner h2 {
    font-size: 1.5rem;
    font-weight: 500;
    margin: 0;
    letter-spacing: 0.5px;
}

/* ===== EMR SECTION ===== */
.emr-section {
    padding: 6rem 0;
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
}

.emr-grid {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.emr-text {
    flex: 1;
    max-width: 480px;
}

.emr-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.15;
    letter-spacing: -1px;
}

.emr-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.emr-visual {
    flex: 1.2;
    position: relative;
}

.emr-mockup {
    background: white;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    border: 1px solid var(--border);
    position: relative;
}

.emr-topbar {
    background: #1e293b;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 28px;
    color: white;
}

.emr-brand {
    font-weight: 800;
    font-size: 1.1rem;
    margin-right: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: white;
}

.emr-brand svg {
    color: #a855f7;
}

.emr-topbar-item {
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: 0.7;
    cursor: pointer;
}

.emr-topbar-item:hover,
.emr-topbar-item.active {
    opacity: 1;
}

.emr-topbar-item.active {
    color: #c084fc;
}

.emr-body {
    padding: 24px;
    display: flex;
    gap: 24px;
}

.emr-sidebar {
    width: 220px;
    border-right: 1px solid var(--border);
    padding-right: 24px;
}

.emr-sidebar-item {
    padding: 14px 16px;
    border-radius: 8px;
    background: white;
    margin-bottom: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-body);
    border: 1px solid transparent;
}

.emr-sidebar-item.active {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: var(--text-dark);
}

.emr-main {
    flex: 1;
}

.emr-patient-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
}

.emr-patient-avatar {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: 800;
    font-size: 1.2rem;
}

.emr-patient-info h4 {
    margin: 0 0 6px;
    font-size: 1.2rem;
    color: var(--text-dark);
}

.emr-patient-tags {
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.emr-vitals-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 30px;
}

.emr-vital-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 16px;
    border-radius: 10px;
}

.emr-vital-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.emr-vital-val {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-dark);
}

.emr-table {
    width: 100%;
    border-collapse: collapse;
}

.emr-table th,
.emr-table td {
    padding: 14px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.emr-table th {
    font-weight: 600;
    color: var(--primary);
    background: #f8fafc;
}

.emr-table td {
    color: var(--text-body);
}

.cta-section {
    padding: 8rem 0;
    background: linear-gradient(135deg, #370b5a, #431668, #020004);
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
}

.cta-section h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    letter-spacing: -1px;
    position: relative;
}

.cta-section p {
    font-size: 1.2rem;
    opacity: 0.85;
    max-width: 560px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
    position: relative;
}

.btn-white {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 40px;
    background: white;
    color: var(--primary);
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}


/* ===== FOOTER ===== */

.site-footer {
    background: #f8f7fc;
    color: #64748b;
    padding: 5rem 0 2rem;
    border-top: 1px solid #ede9fe;
}

.site-footer .footer-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3.5rem;
}

.site-footer .footer-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.site-footer .footer-brand svg {
    color: var(--primary);
}

.site-footer .footer-desc {
    line-height: 1.75;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    max-width: 320px;
    color: #64748b;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #ede9fe;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.site-footer .footer-col-title {
    color: #0f172a;
    font-weight: 700;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.site-footer .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.site-footer .footer-links a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.site-footer .footer-links a:hover {
    color: var(--primary);
}

.site-footer .footer-bottom {
    border-top: 1px solid #e2e0ec;
    padding-top: 1.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #94a3b8;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-bottom-links a:hover {
    color: var(--primary);
}


/* ===== RESPONSIVE ===== */

@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.2rem;
    }

    .hero-inner {
        gap: 3rem;
    }

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

    .highlight-grid {
        flex-direction: column;
        gap: 3rem;
        align-items: stretch;
    }

    .site-footer .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }

    .emr-grid {
        flex-direction: column;
        text-align: center;
    }

    .emr-text {
        max-width: 100%;
        padding-top: 2rem;
    }

    .emr-visual {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 2rem;
    }

    .emr-mockup {
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-inner {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-desc {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

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

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

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

    .check-list li {
        text-align: left;
    }

    .float-notif {
        display: none;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .cta-section h2 {
        font-size: 2.2rem;
    }

    .stats-row {
        flex-wrap: wrap;
    }

    .stat-block {
        flex: 1 1 50%;
    }

    .stat-block:nth-child(2)::after {
        display: none;
    }

    .desktop-nav,
    .header-actions .btn {
        display: none;
    }

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

    .header-container {
        padding: 2rem 1.25rem;
    }

    .dashboard-wrapper {
        width: 800px;
        max-width: none;
        transform: scale(0.42);
        transform-origin: top center;
        margin-bottom: -550px;
        left: 50%;
        margin-left: -400px;
    }

    .hero-section {
        padding-top: 6rem;
        min-height: auto;
    }

    .highlight-mockup {
        padding: 1.25rem;
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 2.2rem;
        letter-spacing: -1px;
    }

    .container {
        padding: 0 1.25rem;
    }

    .header-container {
        padding: 1.5rem 1.25rem;
    }

    .stat-row {
        flex-direction: column;
    }

    .dash-bottom-row {
        flex-direction: column;
    }

    .dashboard-main {
        transform: none;
    }

    .site-footer .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .site-footer .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .stat-block {
        flex: 1 1 100%;
    }
}

@media (min-width: 901px) {
    .mobile-menu-btn {
        display: none;
    }
}