:root {
    /* Light Theme Palette - Fresh Green & Medical White */
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --primary: #10b981;
    --primary-dark: #059669;
    --secondary: #3b82f6;
    --accent: #f59e0b;
    --danger: #ef4444;

    --text-main: #1e293b;
    --text-muted: #64748b;

    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

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

body {
    font-family: 'Tajawal', 'Cairo', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.7;
    direction: rtl;
}

body.loading {
    overflow: hidden;
}

/* === Custom Cursor === */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 100000;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid var(--primary);
    transition: all 0.15s ease-out;
}

/* === Sovereign Navigation === */
.sovereign-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    padding: 20px 0;
}

.sovereign-nav.scrolled {
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Pulse */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.logo-core {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary), #059669);
    border-radius: 8px;
    position: relative;
    animation: logoPulse 3s infinite ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
}

@keyframes logoPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 20px 5px rgba(16, 185, 129, 0.2);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

/* Mega Menu Structure */
.nav-links {
    display: flex;
    gap: 35px;
    list-style: none;
}

.nav-links>li {
    position: relative;
}

.nav-links>li>a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 0;
    transition: color 0.3s;
}

.nav-links>li>a i {
    font-size: 0.7rem;
    transition: transform 0.3s;
}

.nav-links>li:hover>a {
    color: var(--primary);
}

.nav-links>li:hover>a i {
    transform: rotate(180deg);
}

/* The Mega Dropdown */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    width: 900px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 30px;
    border: 1px solid #e2e8f0;
    z-index: 1001;
    backdrop-filter: blur(20px);
}

.mega-menu.mini {
    width: 300px;
}

.has-mega:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mega-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.mega-menu.mini .mega-grid {
    grid-template-columns: 1fr;
    gap: 10px;
}

.mega-col h5 {
    color: var(--primary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 8px;
}

.mega-col a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #475569;
    font-size: 0.9rem;
    padding: 8px 0;
    transition: all 0.2s;
}

.mega-col a i {
    width: 16px;
    color: #94a3b8;
    transition: color 0.2s;
}

.mega-col a:hover {
    color: var(--primary);
    transform: translateX(-5px);
}

.mega-col a:hover i {
    color: var(--primary);
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
}

.lang-switcher:hover {
    background: #e2e8f0;
}

.portal-link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.9rem;
}

.gold-cta-nav {
    background: linear-gradient(45deg, #d4af37, #fcd34d);
    color: #1a1a1a;
    border: none;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.gold-cta-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

/* Reading Progress */
.reading-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary);
    transition: width 0.1s linear;
}


/* === Hero Section (The Sovereign Entrance) === */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: radial-gradient(circle at center, #f0fdf4 0%, #f8fafc 70%);
}

.hero-bg-shapes .shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.1;
    animation: float 15s infinite ease-in-out;
}

.shape-1 {
    width: 800px;
    height: 800px;
    background: var(--primary);
    top: -200px;
    left: -200px;
}

.shape-2 {
    width: 600px;
    height: 600px;
    background: var(--secondary);
    bottom: -100px;
    right: -100px;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(16, 185, 129, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 185, 129, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    background: #fff;
    border: 1px solid var(--primary);
    border-radius: 50px;
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 30px;
}

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

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px transparent;
    }
}

.hero-title {
    font-size: 4rem;
    line-height: 1.2;
    font-weight: 900;
    color: var(--text-main);
    margin-bottom: 20px;
}

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

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 800px;
    margin-inline: auto;
}

.hero-metrics {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-bottom: 50px;
}

.metric {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.metric-val {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
}

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

.separator {
    width: 1px;
    height: 40px;
    background: #e2e8f0;
}

.hero-actions button {
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 800;
    border: none;
    font-size: 1rem;
    cursor: none;
    transition: transform 0.3s;
}

.cta-btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
    margin-left: 20px;
}

.cta-btn-secondary {
    background: #fff;
    border: 1px solid #e2e8f0;
    color: var(--text-main);
}

.hover-lift:hover {
    transform: translateY(-5px);
}

/* === Matrix Section (15 Modules) === */
.matrix-section {
    padding: 100px 50px;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 10px;
    font-weight: 900;
}

.cluster-container {
    margin-bottom: 80px;
}

.cluster-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.cluster-title span {
    background: #e0f2fe;
    color: var(--secondary);
    padding: 5px 15px;
    border-radius: 10px;
    font-size: 1.2rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.cards-grid.four-cols {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.glass-card {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    border: 1px solid #f1f5f9;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    transition: all 0.3s;
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.1);
    border-color: var(--primary);
}

.featured-card {
    border: 2px solid var(--primary);
    background: #f0fdf4;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: #f8fafc;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.glass-card h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 10px;
}

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

.highlight-num {
    color: var(--primary-dark);
    font-weight: 900;
    font-size: 1.1em;
    font-family: 'Cairo', sans-serif;
}

/* === System Capabilities Mega-Sections === */
.cap-section {
    padding: 100px 50px;
    min-height: 80vh;
    /* Make each section substantial */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-bottom: 1px solid #f1f5f9;
}

.cap-section.alt-bg {
    background: #f8fafc;
}

.cap-container {
    max-width: 1200px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 80px;
}

.cap-container.reversed {
    flex-direction: row-reverse;
}

/* Content Side */
.cap-content {
    flex: 1.2;
}

/* Give text more space */

.cap-badge {
    display: inline-block;
    padding: 6px 15px;
    background: #ecfdf5;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 800;
    border-radius: 30px;
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.cap-badge.warn-badge {
    background: #fee2e2;
    color: var(--danger);
}

.cap-badge.money-badge {
    background: #ecfccb;
    color: #65a30d;
}

.cap-badge.social-badge {
    background: #dbeafe;
    color: var(--secondary);
}

.cap-badge.xp-badge {
    background: #f3e8ff;
    color: #9333ea;
}

.cap-content h2 {
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-main);
}

.cap-lead {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 50px;
    max-width: 90%;
    line-height: 1.8;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}


.detail-item i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 15px;
    display: block;
}

.detail-item h4 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--text-main);
}

.detail-item p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Visual Side (Unique Mocks) */
.cap-visual {
    flex: 0.8;
    display: flex;
    justify-content: center;
}

/* 1. Clinic Window Mock */
.ui-window {
    width: 400px;
    height: 300px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    border: 1px solid #cbd5e1;
    overflow: hidden;
}

.ui-bar {
    height: 30px;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    padding: 0 10px;
    justify-content: space-between;
}

.ui-bar span {
    font-size: 0.7rem;
    font-family: monospace;
    color: #64748b;
}

.ui-dots {
    width: 40px;
    height: 8px;
    background: #cbd5e1;
    border-radius: 4px;
}

.ui-content-grid {
    display: flex;
    height: 100%;
}

.sidebar {
    width: 80px;
    background: #f8fafc;
    border-right: 1px solid #f1f5f9;
}

.main-view {
    flex: 1;
    padding: 15px;
}

.sched-row {
    height: 40px;
    background: #f0fdf4;
    margin-bottom: 10px;
    border-radius: 6px;
    border-left: 4px solid var(--primary);
}

/* 2. Shield Audit Log */
.ui-shield {
    width: 300px;
    height: 350px;
    background: #1e293b;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.ui-shield>i {
    font-size: 5rem;
    color: #3b82f6;
    margin-bottom: 30px;
    opacity: 0.2;
}

.shield-log {
    width: 90%;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.shield-log span {
    background: rgba(255, 255, 255, 0.05);
    padding: 5px;
    border-radius: 4px;
    color: #94a3b8;
}

.shield-log .secure-tag {
    color: #10b981;
    border: 1px solid #10b981;
    text-align: center;
    margin-top: 10px;
}

/* 3. Finance Cards */
.ui-card-stack {
    position: relative;
    width: 300px;
    height: 300px;
}

.fin-card {
    position: absolute;
    width: 240px;
    height: 140px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 20px;
    background: #fff;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s;
}

.fin-card h5 {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 5px;
}

.fin-card h3 {
    font-size: 1.8rem;
    color: #1e293b;
    font-weight: 800;
}

.c1 {
    top: 0;
    left: 0;
    z-index: 3;
    background: #fff;
}

.c2 {
    top: 40px;
    left: 30px;
    z-index: 2;
    background: #f8fafc;
    opacity: 0.8;
}

.c3 {
    top: 80px;
    left: 60px;
    z-index: 1;
    background: #f1f5f9;
    opacity: 0.6;
}

/* 4. Chat Bubbles */
.ui-chat-bubbles {
    width: 300px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-b {
    padding: 15px 20px;
    border-radius: 20px;
    max-width: 80%;
    font-size: 0.95rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.chat-b.a {
    align-self: flex-start;
    background: #fff;
    border-bottom-right-radius: 2px;
    color: #1e293b;
}

.chat-b.b {
    align-self: flex-end;
    background: var(--secondary);
    color: #fff;
    border-bottom-left-radius: 2px;
}

/* 5. XP Card */
.ui-xp-card {
    width: 320px;
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 1px solid #f3e8ff;
}

.xp-avatar {
    width: 80px;
    height: 80px;
    background: #ddd;
    border-radius: 50%;
    margin: 0 auto 15px;
    border: 3px solid #9333ea;
}

.xp-info h4 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.xp-info span {
    font-size: 0.85rem;
    color: #9333ea;
    font-weight: 700;
    background: #f3e8ff;
    padding: 4px 10px;
    border-radius: 20px;
}

.xp-bar-track {
    height: 10px;
    background: #f3f4f6;
    border-radius: 5px;
    margin: 20px 0;
    overflow: hidden;
}

.xp-bar-fill {
    height: 100%;
    width: 75%;
    background: linear-gradient(90deg, #9333ea, #d8b4fe);
}

.badges-row {
    display: flex;
    justify-content: center;
    gap: 15px;
    font-size: 1.5rem;
    color: #fbbf24;
}

/* Responsive Capabilities */
@media (max-width: 900px) {

    .cap-container,
    .cap-container.reversed {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .cap-visual {
        width: 100%;
    }

    .detail-grid {
        text-align: right;
    }

    /* Keep details readable */
}

.ecosystem-section-deep {
    padding: 100px 50px;
    background: #fff;
}

.eco-block {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-bottom: 120px;
}

.eco-block.reversed {
    flex-direction: row-reverse;
}

/* Text Side */
.eco-text {
    flex: 1;
}

.eco-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 25px;
    background: #ecfdf5;
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eco-text h3 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 5px;
}

.eco-text h4 {
    font-size: 1.2rem;
    color: var(--secondary);
    margin-bottom: 25px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.eco-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* Metrics & Features */
.eco-metrics {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    list-style: none;
}

.eco-metrics li {
    display: flex;
    flex-direction: column;
    font-weight: 700;
    color: var(--text-muted);
}

.eco-metrics .val {
    font-size: 2rem;
    color: var(--text-main);
    font-weight: 900;
}

.eco-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    list-style: none;
}

.eco-tags li {
    background: #f1f5f9;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
}

.eco-features-list {
    list-style: none;
    margin-bottom: 30px;
}

.eco-features-list li {
    margin-bottom: 12px;
    font-size: 1rem;
    color: var(--text-main);
    font-weight: 600;
}

.eco-features-list li i {
    color: var(--primary);
    margin-left: 10px;
}

.cta-link {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 800;
    font-size: 1rem;
    cursor: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cta-link:hover {
    gap: 15px;
}

/* Visual Side (Mock UIs) */
.eco-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

/* 1. Clinic Dashboard Mock */
.mock-dash {
    width: 400px;
    height: 280px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    display: flex;
    overflow: hidden;
    position: relative;
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s;
}

.eco-block:hover .mock-dash {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.dash-sidebar {
    width: 60px;
    background: #f8fafc;
    border-left: 1px solid #e2e8f0;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.dash-line {
    width: 30px;
    height: 6px;
    background: #cbd5e1;
    border-radius: 3px;
}

.dash-line.active {
    background: var(--primary);
    width: 20px;
}

.dash-body {
    flex: 1;
    padding: 20px;
    background: #fff;
}

.dash-header {
    height: 20px;
    width: 50%;
    background: #f1f5f9;
    border-radius: 4px;
    margin-bottom: 20px;
}

.dash-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.stat-box {
    height: 60px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.big-chart {
    grid-column: span 2;
    height: 90px;
    background: #ecfdf5;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.big-chart::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: var(--primary);
    opacity: 0.2;
    clip-path: polygon(0 80%, 20% 60%, 40% 90%, 60% 50%, 80% 70%, 100% 30%, 100% 100%, 0 100%);
}

/* 2. Phone Mock */
.mock-phone {
    width: 220px;
    height: 400px;
    background: #1e293b;
    border-radius: 30px;
    border: 8px solid #334155;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 15px;
    background: #334155;
    border-radius: 0 0 10px 10px;
    z-index: 2;
}

.feed-item {
    margin: 20px 15px;
    background: #334155;
    padding: 10px;
    border-radius: 10px;
    display: flex;
    gap: 10px;
    opacity: 0.5;
}

.feed-item.active {
    background: #fff;
    opacity: 1;
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.avatar {
    width: 30px;
    height: 30px;
    background: #cbd5e1;
    border-radius: 50%;
}

.feed-lines {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    justify-content: center;
}

.line {
    height: 4px;
    background: #cbd5e1;
    border-radius: 2px;
}

.l1 {
    width: 80%;
}

.l2 {
    width: 50%;
}

.reaction-heart {
    position: absolute;
    bottom: 10px;
    left: 10px;
    color: #ef4444;
    font-size: 1.2rem;
    animation: pop 1s infinite alternate;
}

@keyframes pop {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.3);
    }
}

/* 3. Finance Mock */
.finance-ui {
    position: relative;
}

.mock-card {
    width: 320px;
    height: 200px;
    background: linear-gradient(135deg, #0f172a, #334155);
    border-radius: 16px;
    padding: 25px;
    color: #fff;
    position: relative;
    z-index: 1;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.chip {
    width: 40px;
    height: 30px;
    background: #fbbf24;
    border-radius: 4px;
}

.card-num {
    font-family: monospace;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.card-name {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.floating-invoice {
    position: absolute;
    bottom: -30px;
    right: -40px;
    background: #fff;
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    z-index: 2;
    animation: float 4s infinite ease-in-out;
}

.inv-row {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--text-main);
    margin-bottom: 5px;
}

.inv-status {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--primary);
    background: #ecfdf5;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
}

/* Responsive */
@media (max-width: 900px) {
    .eco-block {
        flex-direction: column !important;
        text-align: center;
        gap: 40px;
    }

    .eco-metrics,
    .eco-tags {
        justify-content: center;
    }

    .eco-text {
        width: 100%;
    }

    .cta-link {
        justify-content: center;
    }

    .mock-dash,
    .mock-card {
        width: 100%;
        max-width: 350px;
    }
}

/* === Pipeline Section === */
.pipeline-section {
    padding: 100px 50px;
    display: flex;
    gap: 100px;
    align-items: center;
    justify-content: center;
    background: #1e293b;
    color: #fff;
    clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
    margin: 50px 0;
}

.pipeline-visual {
    width: 100px;
    height: 400px;
    position: relative;
    display: flex;
    justify-content: center;
}

.flow-line {
    width: 4px;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.data-packet {
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--primary);
    border-radius: 50%;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 20px var(--primary);
    animation: flowDown 3s infinite linear;
}

.p1 {
    animation-delay: 0s;
}

.p2 {
    animation-delay: 1s;
}

.p3 {
    animation-delay: 2s;
}

@keyframes flowDown {
    0% {
        top: 0;
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

.pipeline-content h2 {
    font-size: 3rem;
    margin-bottom: 40px;
}

.pipeline-step {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.step-num {
    font-size: 3rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.1);
    line-height: 1;
}

.pipeline-step h4 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.pipeline-step p {
    color: #cbd5e1;
}

/* === Determinism vs AI Split === */
.split-section {
    display: flex;
    min-height: 80vh;
}

.split-side {
    flex: 1;
    padding: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.left-side {
    background: #f1f5f9;
    color: var(--text-muted);
}

.left-side i.fa-cloud-moon-rain {
    font-size: 5rem;
    margin-bottom: 20px;
    color: #cbd5e1;
}

.left-side ul li i {
    color: var(--danger);
}

.right-side {
    background: #fff;
    color: var(--text-main);
    position: relative;
    border-right: 1px solid #e2e8f0;
}

.split-bg-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(16, 185, 129, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 185, 129, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
}

.right-side i.fa-gem {
    font-size: 5rem;
    margin-bottom: 20px;
    color: var(--primary);
    filter: drop-shadow(0 10px 20px rgba(16, 185, 129, 0.3));
}

.right-side ul li i {
    color: var(--primary);
}

.split-content {
    position: relative;
    z-index: 2;
    text-align: right;
}

/* RTL Text alignment */
.split-content h3 {
    font-size: 2rem;
    margin-bottom: 30px;
    font-weight: 800;
}

.split-content ul {
    list-style: none;
}

.split-content ul li {
    font-size: 1.2rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

/* === Security Section === */
.security-section {
    padding: 100px 50px;
    background: #fff;
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.sec-card {
    text-align: center;
    padding: 40px;
    background: #f8fafc;
    border-radius: 20px;
}

.sec-card i {
    font-size: 3rem;
    color: var(--text-main);
    margin-bottom: 20px;
}

.sec-card h4 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 10px;
}

/* === Investment === */
.investment-section {
    padding: 100px 20px;
    text-align: center;
    display: flex;
    justify-content: center;
}

.glass-panel {
    max-width: 800px;
    padding: 60px;
    border: 2px solid var(--text-main);
    background: #fff;
    border-radius: 0;
}

/* Stark styling for "High Stakes" */
.glass-panel h3 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 900;
}

.final-stmt {
    font-size: 1.3rem;
    margin-bottom: 40px;
    font-weight: 600;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.newsletter-form input {
    padding: 15px;
    width: 60%;
    background: #f1f5f9;
    border: none;
    font-family: 'Cairo';
}

.newsletter-form button {
    padding: 15px 30px;
    background: var(--text-main);
    color: #fff;
    border: none;
    font-weight: 800;
    font-family: 'Cairo';
    cursor: none;
}

/* Preloader */
#preloader {
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-bar {
    width: 300px;
    height: 4px;
    background: #f1f5f9;
    margin-top: 20px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width 0.5s;
}

/* Responsive */
@media (max-width: 900px) {
    .split-section {
        flex-direction: column;
    }

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

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

    .pipeline-section {
        flex-direction: column;
        text-align: center;
    }

    .pipeline-visual {
        width: 100%;
        height: 100px;
        flex-direction: row;
    }

    .flow-line {
        width: 100%;
        height: 4px;
    }

    .data-packet {
        animation: flowRight 3s infinite linear;
    }
}


/* === Data Treasure Vault === */
.vault-section {
    padding: 120px 50px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
    position: relative;
    text-align: center;
    overflow: hidden;
}

.vault-overlay {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.vault-header {
    max-width: 800px;
    margin: 0 auto 80px;
    position: relative;
    z-index: 2;
}

.vault-icon {
    font-size: 3rem;
    color: #fbbf24;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 15px rgba(251, 191, 36, 0.5));
}

.vault-header h2 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #fbbf24);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.vault-lead {
    font-size: 1.2rem;
    color: #cbd5e1;
    line-height: 1.8;
}

.treasure-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 60px;
    position: relative;
    z-index: 2;
}

.treasure-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px 20px;
    transition: transform 0.3s;
}

.treasure-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
    border-color: #fbbf24;
}

.primary-card {
    grid-column: span 1;
}

.t-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.t-stat {
    font-size: 3rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 5px;
}

.t-stat.long {
    font-size: 2.5rem;
    /* Slightly smaller to fit big numbers */
    color: #fbbf24;
}

.t-label {
    font-size: 1.1rem;
    color: #fbbf24;
    font-weight: 700;
    margin-bottom: 15px;
}

.t-desc {
    font-size: 0.9rem;
    color: #cbd5e1;
    line-height: 1.6;
    text-align: right;
}

.secondary-card {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.t-stat-sm {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
}

.t-label-sm {
    font-size: 0.9rem;
    color: #cbd5e1;
}

/* Make bottom row span differently if needed, or keep 3 columns */

.vault-statement {
    margin-top: 60px;
    position: relative;
    z-index: 2;
    display: inline-block;
    border: 1px solid #fbbf24;
    padding: 20px 40px;
    border-radius: 50px;
    background: rgba(251, 191, 36, 0.05);
}

.vault-statement h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
    font-style: italic;
}

.verified-seal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #fbbf24;
    font-weight: 900;
    font-size: 0.8rem;
    letter-spacing: 2px;
}

@media (max-width: 900px) {
    .treasure-grid {
        grid-template-columns: 1fr;
    }

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


/* === IP Vault (Patent Portfolio) - Light Green Theme === */
.ip-section {
    padding: 100px 50px;
    background: #f8fafc;
    position: relative;
    border-top: 1px solid #e2e8f0;
    overflow: hidden;
}

/* Background grid pattern - subtle gray */
.ip-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.ip-gateway {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    z-index: 2;
}

.shield-container {
    display: inline-block;
    position: relative;
    margin-bottom: 20px;
}

.ip-shield-icon {
    font-size: 4rem;
    color: #10b981;
    /* Emerald Green */
    background: none;
    -webkit-text-fill-color: initial;
    filter: drop-shadow(0 10px 20px rgba(16, 185, 129, 0.3));
}

.shield-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulseShield 3s infinite ease-in-out;
}

@keyframes pulseShield {

    0%,
    100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

.ip-title {
    font-size: 3rem;
    font-weight: 800;
    color: #064e3b;
    /* Dark Green Text */
    margin-bottom: 20px;
    font-family: 'Cairo', sans-serif;
}

.ip-lead {
    font-size: 1.2rem;
    color: #64748b;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.highlight-gold {
    color: #059669;
    /* Green Highlight */
    font-weight: 700;
}

.innovation-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    max-width: 1400px;
    margin: 0 auto 60px;
    position: relative;
    z-index: 2;
}

.ip-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    padding: 25px;
    transition: all 0.4s ease;
    cursor: default;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.ip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #10b981;
    /* Green Border on Hover */
}

.ip-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 15px;
}

.ip-id {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: #94a3b8;
    letter-spacing: 1px;
    font-weight: 700;
}

.ip-icon {
    font-size: 1.5rem;
    color: #059669;
    /* Green Icon */
}

.ip-card h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 15px;
    height: 50px;
    display: flex;
    align-items: center;
    line-height: 1.4;
}

.ip-body {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.6;
    flex-grow: 1;
}

.ip-problem,
.ip-solution {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 8px;
    background: #f8fafc;
}

.ip-problem strong {
    color: #ef4444;
    display: block;
    font-size: 0.75rem;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ip-solution strong {
    color: #059669;
    /* Green Solution */
    display: block;
    font-size: 0.75rem;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ip-impact {
    background: #ecfdf5;
    /* Light Green BG */
    border: 1px solid #6ee7b7;
    /* Green Border */
    padding: 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #064e3b;
    /* Dark Green Text */
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.ip-impact span:first-child {
    text-transform: uppercase;
    font-size: 0.7rem;
    opacity: 0.8;
}

.ip-footer {
    text-align: center;
    margin-top: 60px;
    border-top: 1px solid #e2e8f0;
    padding-top: 40px;
}

.ip-footer p {
    color: #64748b;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-weight: 700;
}

.ip-agencies {
    color: #10b981;
    /* Green Agencies */
    font-weight: 700;
    letter-spacing: 3px;
    opacity: 0.8;
}



/* === Scientific Authority Hub === */
.science-section {
    padding: 120px 50px;
    background: #fff;
    position: relative;
    border-top: 1px solid #e2e8f0;
    overflow: hidden;
    color: #334155;
}

.science-grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(#e2e8f0 1px, transparent 1px),
        linear-gradient(90deg, #e2e8f0 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.3;
    pointer-events: none;
}

.science-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
    position: relative;
    z-index: 2;
}

.certified-seal-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
}

.certified-seal {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #fff;
    border: 4px solid #0ea5e9;
    /* Sky Blue */
    color: #0ea5e9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.2);
    position: relative;
    z-index: 2;
}

.seal-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #0ea5e9;
    animation: ripple 2s infinite linear;
    z-index: 1;
}

@keyframes ripple {
    0% {
        width: 100%;
        height: 100%;
        opacity: 1;
    }

    100% {
        width: 200%;
        height: 200%;
        opacity: 0;
    }
}

.science-header h2 {
    font-size: 3rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 20px;
    font-family: 'Cairo', sans-serif;
}

.science-lead {
    font-size: 1.2rem;
    color: #64748b;
    line-height: 1.8;
}

/* Organization Logos */
.org-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 100px;
    position: relative;
    z-index: 2;
}

.org-card {
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 30px 20px;
    width: 250px;
    text-align: center;
    transition: transform 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.org-card:hover {
    transform: translateY(-5px);
    border-color: #0ea5e9;
    box-shadow: 0 10px 20px rgba(14, 165, 233, 0.1);
}

.org-icon {
    font-size: 2.5rem;
    color: #0f172a;
    margin-bottom: 15px;
}

.org-card h3 {
    font-weight: 800;
    color: #0ea5e9;
    margin-bottom: 10px;
}

.org-card p {
    font-size: 0.9rem;
    color: #64748b;
}

/* Golden Chain */
.evidence-chain-wrapper {
    text-align: center;
    margin-bottom: 100px;
    position: relative;
    z-index: 2;
}

.chain-desc {
    color: #64748b;
    margin-bottom: 40px;
}

.evidence-process {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

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

.ev-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #475569;
    margin: 0 auto 15px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s;
}

.ev-step:hover .ev-icon {
    background: #0ea5e9;
    color: #fff;
    border-color: #0ea5e9;
}

.ev-step h4 {
    font-weight: 700;
    margin-bottom: 5px;
    color: #1e293b;
}

.ev-arrow {
    font-size: 1.5rem;
    color: #cbd5e1;
}

/* Compliance Grid */
.compliance-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto 100px;
    position: relative;
    z-index: 2;
}

.comp-col {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    padding: 30px;
}

.col-head {
    font-size: 1.2rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.comp-list {
    list-style: none;
    padding: 0;
}

.comp-list li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1rem;
    color: #475569;
}

.tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 800;
    margin-left: 10px;
    color: #fff;
}

.tag.loinc {
    background: #3b82f6;
}

.tag.icd {
    background: #6366f1;
}

.tag.cpt {
    background: #8b5cf6;
}

.tag.hipaa {
    background: #10b981;
}

.tag.gdpr {
    background: #f59e0b;
}

.tag.zatca {
    background: #ef4444;
}

/* Audit Feed */
.audit-feed-section {
    max-width: 900px;
    margin: 0 auto 60px;
    position: relative;
    z-index: 2;
}

.audit-header {
    background: #0f172a;
    color: #fff;
    padding: 10px 20px;
    border-radius: 10px 10px 0 0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.audit-header i {
    color: #22c55e;
}

.audit-terminal {
    background: #1e293b;
    border-radius: 0 0 10px 10px;
    padding: 20px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: #cbd5e1;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.audit-line {
    margin-bottom: 10px;
    display: flex;
    gap: 10px;
    opacity: 0;
    animation: fadeInSlide 0.5s forwards;
}

.audit-line:nth-child(1) {
    animation-delay: 0.5s;
}

.audit-line:nth-child(2) {
    animation-delay: 2.5s;
}

.audit-line:nth-child(3) {
    animation-delay: 4.5s;
}

.audit-line .time {
    color: #64748b;
}

.audit-line.error .source {
    color: #ef4444;
}

.audit-line.error .msg {
    color: #fca5a5;
}

.audit-line.info .source {
    color: #3b82f6;
}

.audit-line.info .msg {
    color: #93c5fd;
}

.audit-line.success .source {
    color: #22c55e;
}

.audit-line.success .msg {
    color: #86efac;
}


.science-footer {
    text-align: center;
    color: #94a3b8;
    margin-top: 40px;
}

.science-footer i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #e2e8f0;
}

@keyframes fadeInSlide {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }

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


/* === SOS Operations Suite === */
.sos-section {
    padding: 120px 50px;
    background: #0f172a;
    /* Dark Navy */
    position: relative;
    border-top: 1px solid #1e293b;
    color: #fff;
    overflow: hidden;
}

.sos-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.sos-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 60px;
    position: relative;
    z-index: 2;
}

.sos-badge {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(37, 99, 235, 0.15);
    border: 1px solid #2563eb;
    color: #60a5fa;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.sos-header h2 {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    font-family: 'Cairo', sans-serif;
}

.sos-lead {
    font-size: 1.2rem;
    color: #94a3b8;
    line-height: 1.8;
    margin-bottom: 40px;
}

/* Role Switcher */
.role-switcher {
    display: inline-flex;
    background: #1e293b;
    border-radius: 30px;
    padding: 5px;
    border: 1px solid #334155;
}

.role-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 10px 25px;
    border-radius: 25px;
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.role-btn.active {
    background: #2563eb;
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.role-btn:hover:not(.active) {
    color: #fff;
}

/* Dashboard Visual */
.dashboard-viz {
    max-width: 1000px;
    margin: 0 auto 80px;
    perspective: 1000px;
    position: relative;
    z-index: 2;
}

.dash-screen {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: rotateX(5deg);
    overflow: hidden;
    transition: transform 0.5s;
}

.dashboard-viz:hover .dash-screen {
    transform: rotateX(0deg) scale(1.02);
}

.dash-header {
    background: #0f172a;
    padding: 10px 15px;
    border-bottom: 1px solid #334155;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

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

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

.dash-dot.green {
    background: #22c55e;
}

.dash-title {
    margin-left: 15px;
    font-family: monospace;
    color: #64748b;
    font-size: 0.8rem;
}

.dash-body {
    padding: 20px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 20px;
    height: 300px;
}

.dash-widget {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.dash-widget h4 {
    color: #94a3b8;
    font-size: 0.8rem;
    margin-bottom: 15px;
}

/* Mock Chart Line */
.chart-line {
    flex: 1;
    background: linear-gradient(to top, rgba(37, 99, 235, 0.2), transparent);
    border-top: 2px solid #3b82f6;
    position: relative;
}

.chart-line::after {
    content: '';
    position: absolute;
    top: -6px;
    right: 0;
    width: 10px;
    height: 10px;
    background: #3b82f6;
    border-radius: 50%;
    box-shadow: 0 0 10px #3b82f6;
}

/* Inventory Counter */
.inv-counter {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    font-family: 'Courier New', monospace;
}

.inv-counter .unit {
    font-size: 0.8rem;
    color: #64748b;
    display: block;
    margin-top: 5px;
}

/* Activity Bars */
.activity-bars {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex: 1;
    padding-bottom: 5px;
}

.bar {
    width: 12px;
    background: #10b981;
    border-radius: 2px;
    opacity: 0.7;
    transition: height 1s;
}

/* SOS Layers Grid */
.sos-layers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 60px;
    position: relative;
    z-index: 2;
}

.sos-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid #334155;
    border-radius: 15px;
    padding: 30px;
    transition: all 0.3s;
}

.sos-card:hover {
    background: #1e293b;
    transform: translateY(-5px);
    border-color: #3b82f6;
}

.sc-icon {
    font-size: 2rem;
    color: #3b82f6;
    margin-bottom: 20px;
}

.sos-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
}

.sos-features {
    list-style: none;
    padding: 0;
}

.sos-features li {
    font-size: 0.9rem;
    color: #cbd5e1;
    margin-bottom: 10px;
    padding-left: 15px;
    position: relative;
}

.sos-features li::before {
    content: '•';
    color: #3b82f6;
    position: absolute;
    left: 0;
}

.layer-clinic .sc-icon {
    color: #f59e0b;
}

.layer-pharmacy .sc-icon {
    color: #10b981;
}

.layer-finance .sc-icon {
    color: #8b5cf6;
}

.layer-growth .sc-icon {
    color: #ec4899;
}

.layer-xp .sc-icon {
    color: #eab308;
}

.sos-footer {
    text-align: center;
    margin-top: 60px;
}

.sos-footer h3 {
    color: #fff;
    font-size: 2rem;
    margin: 10px 0;
}

.text-gold {
    color: #fbbf24;
    font-size: 2.5rem;
}


/* === CIB Clinical Intelligence & Big Data Hub === */
.cib-section {
    padding: 120px 50px;
    background: #09090b;
    /* Almost Black */
    position: relative;
    border-top: 1px solid #27272a;
    color: #fff;
    overflow: hidden;
}

.cib-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 80%, rgba(168, 85, 247, 0.1) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}

.cib-particles {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.particle {
    position: absolute;
    background: #a855f7;
    border-radius: 50%;
    opacity: 0.5;
    animation: floatParticle 10s infinite linear;
}

@keyframes floatParticle {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }

    50% {
        opacity: 0.8;
    }

    100% {
        transform: translateY(-100px) translateX(50px);
        opacity: 0;
    }
}

.cib-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 80px;
    position: relative;
    z-index: 2;
}

.data-badge {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid #a855f7;
    color: #d8b4fe;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.cib-header h2 {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(to right, #fff, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    font-family: 'Cairo', sans-serif;
}

.cib-lead {
    font-size: 1.2rem;
    color: #a1a1aa;
    line-height: 1.8;
    margin-bottom: 60px;
}

.mega-counter-box {
    text-align: center;
}

.mc-label {
    display: block;
    font-size: 0.9rem;
    color: #71717a;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mc-val {
    font-size: 5rem;
    font-weight: 900;
    color: #fff;
    font-family: 'Courier New', monospace;
    line-height: 1;
    text-shadow: 0 0 30px rgba(168, 85, 247, 0.4);
}

.mc-bar {
    width: 200px;
    height: 4px;
    background: #a855f7;
    margin: 20px auto;
    border-radius: 2px;
    box-shadow: 0 0 15px #a855f7;
}

/* CIB Grid */
.cib-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto 80px;
    position: relative;
    z-index: 2;
}

.cib-card {
    background: #18181b;
    border: 1px solid #27272a;
    border-radius: 16px;
    padding: 30px;
    transition: all 0.3s;
}

.cib-card:hover {
    border-color: #a855f7;
    background: #27272a;
    transform: translateY(-5px);
}

.cib-icon {
    font-size: 2rem;
    color: #a855f7;
    margin-bottom: 20px;
}

.cib-card h3 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 15px;
    font-weight: 700;
}

.cib-card p {
    font-size: 0.9rem;
    color: #a1a1aa;
}

/* Visuals inside cards */
/* Visuals inside cards */
/* Replaced Gear with White Data Visual */
.white-data-visual {
    background: #09090b;
    border: 1px solid #27272a;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wd-lock {
    font-size: 1.5rem;
    color: #fff;
    background: #10b981;
    /* Emerald for Safe */
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981;
}

.wd-stream {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: monospace;
    font-size: 0.8rem;
    overflow: hidden;
}

.wd-bit {
    padding: 2px 4px;
    border-radius: 3px;
}

.wd-bit.dirty {
    background: #f43f5e;
    color: #fff;
    animation: fadeOutRight 2s infinite;
}

.wd-bit.clean {
    background: #fff;
    color: #000;
    font-weight: bold;
    animation: fadeInLeft 2s infinite;
}

.wd-filter {
    color: #a1a1aa;
}

@keyframes fadeOutRight {
    0% {
        opacity: 1;
        transform: translateX(0);
    }

    100% {
        opacity: 0;
        transform: translateX(10px);
    }
}

@keyframes fadeInLeft {
    0% {
        opacity: 0;
        transform: translateX(-10px);
    }

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

/* Compliance List */
.compliance-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.comp-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #27272a;
    padding: 10px;
    border-radius: 8px;
    border-left: 3px solid #a855f7;
    transition: all 0.3s;
}

.comp-item:hover {
    background: #3f3f46;
    transform: translateX(5px);
}

.comp-item i {
    color: #a855f7;
    font-size: 1.2rem;
}

.comp-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.comp-text strong {
    color: #fff;
    font-size: 0.9rem;
}

.comp-text small {
    color: #a1a1aa;
    font-size: 0.75rem;
}

.layer-desc {
    font-size: 0.85rem !important;
    line-height: 1.6;
    color: #d4d4d8 !important;
}

.layer-desc strong {
    color: #fff;
}

/* Radar Visual */
.pulse-chart-viz {
    height: 120px;
    background: #09090b;
    border-radius: 8px;
    border: 1px solid #27272a;
    position: relative;
    overflow: hidden;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.radar-scan {
    width: 200px;
    height: 200px;
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
    border: 1px solid rgba(168, 85, 247, 0.2);
    /* Concentric rings logic via radial gradient could be used, but keeping simple border for now */
    background: radial-gradient(circle, transparent 90%, rgba(168, 85, 247, 0.1) 100%);
}

.radar-beam {
    width: 50%;
    height: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    background: linear-gradient(45deg, rgba(168, 85, 247, 0.5) 0%, transparent 50%);
    transform-origin: top left;
    animation: radarSpin 4s infinite linear;
    border-right: 1px solid rgba(168, 85, 247, 0.8);
}

@keyframes radarSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.pred-stats {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(9, 9, 11, 0.9);
    padding: 8px 15px;
    border-top: 1px solid #27272a;
}

.ps-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    margin-bottom: 4px;
    color: #a1a1aa;
}

.trend-up {
    color: #10b981;
}

.trend-down {
    color: #3b82f6;
}


/* Terminal Visual */
.lab-console {
    background: #1e1e24;
    border-radius: 8px;
    overflow: hidden;
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    border: 1px solid #27272a;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.code-header {
    background: #27272a;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #a1a1aa;
    font-size: 0.7rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.dot.r {
    background: #ef4444;
}

.dot.y {
    background: #f59e0b;
}

.dot.g {
    background: #22c55e;
}

.console-body {
    padding: 15px;
    color: #d4d4d8;
}

.kwd {
    color: #c084fc;
}

/* Purple keyword */
.val {
    color: #10b981;
}

/* Green value */
.blink {
    animation: blinkCursor 1s infinite;
    display: inline-block;
}

@keyframes blinkCursor {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}


/* Grid Map Visual */
.mini-map-grid {
    height: 120px;
    background: #09090b;
    border-radius: 8px;
    border: 1px solid #27272a;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 2px;
    padding: 10px;
    position: relative;
    margin-bottom: 20px;
}

.map-cell {
    background: #18181b;
    border-radius: 4px;
    transition: all 0.5s;
}

.map-cell.active {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.map-cell.alert {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    animation: pulseAlert 2s infinite;
}

@keyframes pulseAlert {
    0% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
        box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
    }

    100% {
        opacity: 0.5;
    }
}

.map-label {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
}

@keyframes spinRight {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes spinLeft {
    100% {
        transform: rotate(-360deg);
    }
}

.process-flow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #71717a;
    background: #09090b;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #27272a;
}

.p-step.hash {
    color: #a855f7;
    font-family: monospace;
}

.process-flow i {
    font-size: 0.8rem;
    color: #3f3f46;
}

.pulse-chart-viz {
    height: 80px;
    margin-bottom: 15px;
    position: relative;
    border-bottom: 1px solid #27272a;
}

.pulse-svg {
    width: 100%;
    height: 100%;
}

.p-line {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: drawLine 3s infinite linear;
}

@keyframes drawLine {
    100% {
        stroke-dashoffset: 0;
    }
}

.pred-tag {
    position: absolute;
    top: 0;
    right: 0;
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
}

.lab-console {
    background: #09090b;
    padding: 10px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 0.8rem;
    color: #a1a1aa;
    margin-bottom: 15px;
    border: 1px solid #27272a;
}

.console-row {
    margin-bottom: 5px;
}

.lab-console .tag {
    background: #27272a;
    padding: 2px 4px;
    border-radius: 4px;
    color: #fff;
    margin-left: 5px;
}

.lab-console .res {
    color: #a855f7;
}

.mini-map {
    height: 100px;
    background: #09090b;
    /* Map placeholder */
    border-radius: 8px;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
    border: 1px solid #27272a;
}

/* Abstract map dots */
.map-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    animation: pulseMap 2s infinite;
}

.d1 {
    top: 30%;
    left: 40%;
    background: #ef4444;
}

.d2 {
    top: 50%;
    left: 60%;
    background: #22c55e;
    animation-delay: 0.5s;
}

.d3 {
    top: 70%;
    left: 30%;
    background: #a855f7;
    animation-delay: 1s;
}

@keyframes pulseMap {
    0% {
        transform: scale(1);
        opacity: 1;
    }

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


/* Evolution & Footer */
.cib-evolution {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
    position: relative;
    z-index: 2;
}

.evo-loop {
    font-size: 4rem;
    color: #a855f7;
    margin-bottom: 20px;
    animation: rotateInf 4s infinite linear;
    display: inline-block;
}

@keyframes rotateInf {
    100% {
        transform: rotate(360deg);
    }
}

.cib-evolution h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 10px;
}

.cib-evolution p {
    color: #a1a1aa;
}

.cib-footer {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    border-top: 1px solid #27272a;
    padding-top: 40px;
    position: relative;
    z-index: 2;
}

.final-impact {
    font-size: 1.4rem;
    color: #d8b4fe;
    font-family: 'Amiri', serif;
    font-style: italic;
}

.scf-section {
    padding: 120px 50px;
    background: #f0fdfa;
    /* Very light Teal */
    position: relative;
    border-top: 1px solid #ccfbf1;
    color: #334155;
    overflow: hidden;
}

.scf-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(#99f6e4 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.4;
    pointer-events: none;
}

.scf-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
    position: relative;
    z-index: 2;
}

.pulse-line {
    width: 100px;
    height: 3px;
    background: #14b8a6;
    margin: 0 auto 20px;
    position: relative;
    border-radius: 2px;
}

.pulse-line::after {
    content: '';
    position: absolute;
    top: -4px;
    left: 0;
    width: 10px;
    height: 10px;
    background: #14b8a6;
    border-radius: 50%;
    animation: pulseMove 2s infinite linear;
}

@keyframes pulseMove {
    0% {
        left: 0;
        opacity: 1;
    }

    100% {
        left: 100%;
        opacity: 0;
    }
}

.scf-header h2 {
    font-size: 3rem;
    font-weight: 800;
    color: #0f766e;
    margin-bottom: 20px;
    font-family: 'Cairo', sans-serif;
}

.scf-lead {
    font-size: 1.2rem;
    color: #5eead4;
    /* Keeping consistent with new green theme request? No user said "Human/Professional" */
    /* Let's stick to Slate for readability on light bg */
    color: #64748b;
    line-height: 1.8;
}

/* Clinical Units Grid */
.clinical-unit-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 80px;
    position: relative;
    z-index: 2;
}

.clinical-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 30px;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
}

.clinical-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: #14b8a6;
}

.unit-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.unit-icon {
    font-size: 1.8rem;
    color: #14b8a6;
    background: #f0fdfa;
    padding: 10px;
    border-radius: 10px;
}

.unit-icon.error-color {
    color: #f43f5e;
    background: #fff1f2;
}

.unit-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.4;
}

.device-interface {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    flex-grow: 1;
}

.glucose-graph {
    height: 60px;
    margin-bottom: 15px;
    position: relative;
}

.graph-svg {
    width: 100%;
    height: 100%;
}

.graph-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #334155;
    text-align: right;
}

.status.ok {
    color: #10b981;
    font-size: 0.8rem;
}

.bolus-calc {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #64748b;
    border-top: 1px dashed #cbd5e1;
    padding-top: 10px;
}

.calc-result {
    color: #2563eb;
    font-weight: 800;
}

.unit-desc {
    font-size: 0.9rem;
    color: #64748b;
}

/* Collision Demo */
.collision-demo {
    height: 120px;
    background: #f8fafc;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
}

.element {
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}

.element i {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.element.pill {
    color: #f43f5e;
    animation: moveRight 2s infinite alternate;
}

.element.food {
    color: #10b981;
    animation: moveLeft 2s infinite alternate;
}

.shield-wall {
    font-size: 2rem;
    color: #f59e0b;
    z-index: 1;
    animation: flashShield 2s infinite;
}

@keyframes moveRight {
    0% {
        transform: translateX(-10px);
    }

    100% {
        transform: translateX(10px);
    }
}

@keyframes moveLeft {
    0% {
        transform: translateX(10px);
    }

    100% {
        transform: translateX(-10px);
    }
}

@keyframes flashShield {

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

    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* Avatar Viz */
.avatar-viz {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 10px;
    margin-bottom: 15px;
    position: relative;
}

.avatar-body {
    font-size: 4rem;
    color: #cbd5e1;
    position: relative;
}

.vital-point {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    animation: pulsePoint 1s infinite;
}

.vital-point.heart {
    top: 35%;
    left: 45%;
}

.vital-point.lungs {
    top: 45%;
    right: 35%;
    background: #3b82f6;
    animation-delay: 0.5s;
}

@keyframes pulsePoint {
    0% {
        transform: scale(1);
        opacity: 1;
    }

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

.symptom-tracker {
    position: absolute;
    bottom: 5px;
    font-size: 0.7rem;
    background: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    color: #ef4444;
}

/* Sub Grid */
.scf-sub-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto 80px;
    position: relative;
    z-index: 2;
}

.scf-sub-card {
    display: flex;
    gap: 20px;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.sub-icon {
    font-size: 2rem;
    color: #64748b;
}

.scf-sub-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 5px;
}

.scf-sub-card p {
    font-size: 0.9rem;
    color: #64748b;
}

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

.human-touch i {
    font-size: 3rem;
    color: #f43f5e;
    /* Rose heart */
    margin-bottom: 15px;
}

.human-touch p {
    font-size: 1.2rem;
    font-style: italic;
    color: #334155;
    font-family: 'Amiri', serif;
    /* Elegant font for quote */
}


/* === GITS Global Infrastructure & Technical Sovereignty === */
.gits-section {
    padding: 120px 50px;
    background: #0f172a;
    /* Slate 900 */
    position: relative;
    border-top: 1px solid #1e293b;
    color: #f8fafc;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    /* Technical font */
}

/* Blueprint Grid Background */
.blueprint-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(56, 189, 248, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

.code-stream-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, #38bdf8 3px);
    animation: flowLines 20s linear infinite;
    pointer-events: none;
}

@keyframes flowLines {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 0 1000px;
    }
}

.gits-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 80px;
    position: relative;
    z-index: 2;
}

.eng-label {
    display: inline-block;
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    color: #38bdf8;
    border: 1px solid #38bdf8;
    padding: 4px 12px;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.gits-header h2 {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    font-family: 'Cairo', sans-serif;
}

.gits-lead {
    font-size: 1.2rem;
    color: #94a3b8;
    line-height: 1.8;
}

/* Server Map Viz */
.server-map-viz {
    height: 100px;
    width: 200px;
    margin: 20px auto;
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    /* Map placeholder */
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #334155;
}

.server-icon {
    position: absolute;
    color: #38bdf8;
    font-size: 0.8rem;
    animation: blinkServer 2s infinite;
}

.s1 {
    top: 30%;
    left: 20%;
}

.s2 {
    top: 40%;
    right: 30%;
    animation-delay: 0.5s;
}

.s3 {
    bottom: 20%;
    left: 50%;
    animation-delay: 1s;
}

@keyframes blinkServer {

    0%,
    100% {
        opacity: 1;
        text-shadow: 0 0 5px #38bdf8;
    }

    50% {
        opacity: 0.3;
    }
}

.latency-wave {
    position: absolute;
    width: 100%;
    height: 2px;
    background: transparent;
    top: 50%;
    overflow: hidden;
}

.latency-wave::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 100%;
    background: #38bdf8;
    left: -50px;
    animation: waveMove 1s infinite linear;
    box-shadow: 0 0 10px #38bdf8;
}

@keyframes waveMove {
    0% {
        left: -50px;
    }

    100% {
        left: 100%;
    }
}

.hud-stat {
    position: absolute;
    bottom: -20px;
    font-family: monospace;
    font-size: 0.7rem;
    color: #10b981;
}

/* GITS Grid */
.gits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 80px;
    position: relative;
    z-index: 2;
}

.gits-card {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid #1e293b;
    border-radius: 12px;
    padding: 30px;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.gits-card:hover {
    border-color: #38bdf8;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.1);
    transform: translateY(-5px);
}

.g-icon {
    font-size: 2rem;
    color: #38bdf8;
    margin-bottom: 20px;
}

.gits-card h3 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 15px;
    font-weight: 700;
}

.gits-card p {
    font-size: 0.9rem;
    color: #94a3b8;
}

/* Visuals Implementation */
.math-mech-viz {
    height: 80px;
    border: 1px solid #334155;
    background: #0f172a;
    border-radius: 8px;
    position: relative;
    margin-bottom: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mech-gear {
    position: absolute;
    border: 2px dashed #475569;
    border-radius: 50%;
}

.mech-gear.outer {
    width: 80px;
    height: 80px;
    animation: spinRight 10s infinite linear;
    opacity: 0.3;
}

.mech-gear.inner {
    width: 50px;
    height: 50px;
    border-color: #38bdf8;
    animation: spinLeft 5s infinite linear;
}

.unit-conv {
    z-index: 2;
    background: rgba(15, 23, 42, 0.9);
    padding: 5px 10px;
    border: 1px solid #38bdf8;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.7rem;
    color: #fff;
}

.unit-conv .res {
    color: #38bdf8;
}

.speedometer-viz {
    height: 80px;
    position: relative;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 10px;
}

.dial {
    width: 60px;
    height: 30px;
    border-radius: 60px 60px 0 0;
    border: 4px solid #334155;
    border-bottom: 0;
    position: relative;
    overflow: hidden;
}

.dial::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #10b981 0%, #f59e0b 50%, #ef4444 100%);
    opacity: 0.3;
}

.needle {
    width: 2px;
    height: 25px;
    background: #fff;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform-origin: bottom center;
    animation: gaugeNeedle 2s infinite ease-in-out alternate;
}

@keyframes gaugeNeedle {
    0% {
        transform: rotate(-80deg);
    }

    100% {
        transform: rotate(80deg);
    }
}

.speed-val {
    font-family: monospace;
    font-size: 0.8rem;
    color: #38bdf8;
    margin-top: 5px;
}

.globe-viz {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 8px;
    margin-bottom: 20px;
    position: relative;
}

.globe-icon {
    font-size: 2.5rem;
    color: #38bdf8;
    animation: spinGlobe 10s infinite linear;
}

@keyframes spinGlobe {
    100% {
        transform: rotate(360deg);
    }
}

.lang-tag {
    position: absolute;
    font-size: 0.6rem;
    padding: 2px 4px;
    background: #1e293b;
    border: 1px solid #475569;
    border-radius: 3px;
    color: #cbd5e1;
}

.badge-ar {
    top: 10px;
    left: 10px;
    border-color: #10b981;
    color: #10b981;
}

.badge-en {
    bottom: 10px;
    right: 10px;
    border-color: #f59e0b;
    color: #f59e0b;
}

.connect-viz {
    height: 80px;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.main-plug {
    font-size: 1.5rem;
    color: #38bdf8;
}

.sockets {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.6rem;
    font-family: monospace;
    color: #64748b;
}

.socket {
    border-bottom: 1px solid #334155;
    padding-bottom: 1px;
}

.radar-hud {
    height: 80px;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 8px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.radar-sweep {
    width: 100%;
    height: 100%;
    background: conic-gradient(from 0deg at 50% 100%, rgba(16, 185, 129, 0.2) 0deg, transparent 60deg);
    animation: radarScan 3s infinite linear;
    transform-origin: bottom center;
}

@keyframes radarScan {
    0% {
        transform: rotate(-60deg);
    }

    100% {
        transform: rotate(60deg);
    }
}

.threat-dot {
    width: 6px;
    height: 6px;
    background: #ef4444;
    border-radius: 50%;
    position: absolute;
    bottom: 20px;
    left: 30%;
    animation: blinkThreat 1s infinite;
}

@keyframes blinkThreat {

    0%,
    100% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }
}

.gits-footer {
    text-align: center;
    margin-top: 60px;
    position: relative;
    z-index: 2;
}

.gits-footer h3 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 10px;
}

.gits-footer p {
    color: #94a3b8;
    font-style: italic;
    max-width: 600px;
    margin: 0 auto;
}

.ccie-section {
    padding: 120px 0;
    background: #f8fafc;
    position: relative;
    overflow: hidden;
}

/* Header */
.ccie-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 100px;
    padding: 0 20px;
}

.neon-line {
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 0 auto 20px;
    border-radius: 2px;
    box-shadow: 0 0 15px var(--primary);
}

.ccie-header h2 {
    font-size: 3rem;
    font-weight: 900;
    color: #1e293b;
    margin-bottom: 20px;
}

.ccie-subtitle {
    font-size: 1.2rem;
    color: #64748b;
}

/* Layers Common Styles */
.ccie-layer {
    display: flex;
    align-items: center;
    gap: 80px;
    padding: 100px 50px;
    border-bottom: 1px dashed #cbd5e1;
    position: relative;
}

.ccie-layer.alt-side {
    flex-direction: row-reverse;
    background: #fff;
}

.ccie-layer:last-of-type {
    border-bottom: none;
}

.layer-content {
    flex: 1;
    position: relative;
    z-index: 2;
}

.layer-num {
    display: block;
    font-size: 5rem;
    font-weight: 900;
    color: #f1f5f9;
    line-height: 1;
    position: absolute;
    top: -40px;
    right: -20px;
    z-index: -1;
}

.layer-content h3 {
    font-size: 2rem;
    color: #0f172a;
    margin-bottom: 10px;
    font-weight: 800;
}

.layer-content h4 {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 30px;
    font-weight: 700;
    letter-spacing: 1px;
}

.layer-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 30px;
}

.layer-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

/* Layer 1: Hydration */
.layer-metrics {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    width: fit-content;
}

.l-metric {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.lm-lbl {
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 700;
}

.lm-val {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e293b;
}

.lm-val.mute {
    color: #cbd5e1;
    text-decoration: line-through;
}

.lm-val.active {
    color: var(--primary);
}

.l-arrow {
    color: var(--primary);
    font-size: 1.2rem;
}

.bio-avatar {
    font-size: 15rem;
    color: #e2e8f0;
    position: relative;
    filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.05));
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary);
    animation: scan 3s infinite ease-in-out;
}

@keyframes scan {
    0% {
        top: 10%;
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        top: 90%;
        opacity: 0;
    }
}

.bio-points {
    position: absolute;
    inset: 0;
}

.bp {
    width: 12px;
    height: 12px;
    background: var(--danger);
    border-radius: 50%;
    position: absolute;
    animation: ping 1.5s infinite;
}

.bp.p1 {
    top: 80%;
    left: 20%;
}

/* Leg */
.bp.p2 {
    top: 60%;
    right: 20%;
}

/* Hand/Edema */

/* Layer 2: Logic */
.code-split {
    display: flex;
    gap: 20px;
    align-items: center;
    background: #1e293b;
    color: #fff;
    padding: 30px;
    border-radius: 15px;
    font-family: 'Courier New', monospace;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.code-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 220px;
}

.code-header {
    font-size: 0.8rem;
    color: #64748b;
    border-bottom: 1px solid #334155;
    padding-bottom: 10px;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.code-line {
    font-size: 0.9rem;
    color: #cbd5e1;
}

.code-line .val {
    color: #f59e0b;
}

.code-line .err {
    color: #ef4444;
    font-weight: bold;
    animation: blink 1s infinite;
}

.code-line .success {
    color: #10b981;
    font-weight: bold;
}

.code-line.active {
    background: rgba(16, 185, 129, 0.2);
    padding: 5px;
    border-radius: 4px;
    border-right: 3px solid #10b981;
}

/* Layer 3: Arbitration */
.priority-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.priority-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 700;
    font-size: 1rem;
}

.priority-list i {
    font-size: 1.2rem;
}

.p-high i {
    color: #ef4444;
}

.p-med i {
    color: #f59e0b;
}

.p-low i {
    color: #3b82f6;
}

.court-visual {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-direction: column;
}

.legal-block {
    padding: 20px 40px;
    border-radius: 10px;
    background: #fff;
    border: 2px solid #e2e8f0;
    text-align: center;
}

.legal-block span {
    font-weight: 800;
    font-size: 1.1rem;
    display: block;
}

.legal-block small {
    color: #94a3b8;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
}

.b2 {
    border-color: var(--primary);
    background: #ecfdf5;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
    transform: scale(1.1);
}

.vs-badge {
    background: #1e293b;
    color: #fff;
    padding: 10px;
    border-radius: 50%;
    font-weight: 900;
    font-size: 0.8rem;
}

.verdict-box {
    margin-top: 20px;
    background: #1e293b;
    color: #fff;
    padding: 15px 30px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 1px;
    font-weight: 700;
    font-size: 0.9rem;
}

/* Layer 4: Reactor */
.reactor-container {
    display: flex;
    gap: 30px;
    align-items: flex-end;
    height: 250px;
}

.reactor-unit {
    width: 60px;
    height: 100%;
    background: #e2e8f0;
    border-radius: 30px;
    position: relative;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.reactor-unit span {
    position: absolute;
    bottom: -30px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #64748b;
}

.r-bar {
    width: 100%;
    position: absolute;
    bottom: 0;
    background: linear-gradient(to top, var(--primary), #3b82f6);
    transition: height 1s;
    box-shadow: 0 0 15px var(--primary);
}

/* Layer 5: Elasticity */
.elastic-visual {
    display: flex;
    align-items: center;
    gap: 30px;
}

.el-box {
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 160px;
}

.el-box i {
    font-size: 2rem;
    margin-bottom: 15px;
}

.el-box span {
    font-weight: 800;
}

.el-box small {
    display: block;
    margin-top: 10px;
    font-size: 0.7rem;
}

.rigid {
    background: #e2e8f0;
    color: #64748b;
    border: 2px solid #cbd5e1;
}

.elastic {
    background: #fff;
    border: 2px dashed var(--primary);
    color: var(--primary-dark);
    animation: breathe 3s infinite;
}

@keyframes breathe {

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

    50% {
        transform: scale(1.05);
    }
}

/* Layer 6: Temporal */
.clock-visual {
    width: 250px;
    height: 250px;
    background: #fff;
    border-radius: 50%;
    border: 10px solid #f1f5f9;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.c-hand {
    width: 4px;
    height: 45%;
    background: var(--primary);
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform-origin: bottom center;
    animation: spin 10s infinite linear;
    border-radius: 2px;
}

.c-marker {
    position: absolute;
    font-size: 0.8rem;
    font-weight: 700;
    color: #64748b;
    background: #fff;
    padding: 2px 8px;
    border-radius: 10px;
}

.m1 {
    top: 20%;
    right: 20%;
}

.m2 {
    bottom: 20%;
    right: 30%;
    color: var(--danger);
}

.m3 {
    top: 50%;
    left: 10%;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* Outro: Terminal */
.ccie-outro {
    padding: 100px 20px;
    background: #0f172a;
    text-align: center;
    color: #fff;
}

.terminal-window {
    max-width: 700px;
    margin: 0 auto 50px;
    background: #1e293b;
    border-radius: 10px;
    overflow: hidden;
    font-family: 'Courier New', monospace;
    text-align: left;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.term-header {
    background: #334155;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #cbd5e1;
}

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

.dot.r {
    background: #ef4444;
}

.dot.y {
    background: #fbbf24;
}

.dot.g {
    background: #10b981;
}

.term-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.log-line {
    font-size: 0.9rem;
    color: #cbd5e1;
}

.log-line span {
    color: var(--primary);
    font-weight: bold;
    margin-right: 10px;
}

.highlight {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
}

@media (max-width: 900px) {

    .ccie-layer,
    .ccie-layer.alt-side {
        flex-direction: column;
        text-align: center;
        gap: 50px;
    }

    .layer-metrics,
    .code-split,
    .reactor-container {
        width: 100%;
        flex-direction: column;
        height: auto;
        align-items: center;
    }

    .reactor-unit {
        width: 100%;
        height: 40px;
        margin-bottom: 20px;
    }

    .r-bar {
        width: 100%;
        height: 100%;
        width: 50%;
        bottom: auto;
        left: 0;
    }

    .priority-list {
        align-items: center;
    }
}

@keyframes flowRight {
    0% {
        left: 0;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        left: 100%;
        opacity: 0;
    }
}

/* === HCG Human-Centric Clinical Governance Board === */
.hcg-section {
    padding: 120px 50px;
    background: #f8fafc;
    /* Academic White */
    position: relative;
    border-top: 1px solid #e2e8f0;
    color: #0f172a;
    overflow: hidden;
    font-family: 'Georgia', serif;
    /* Serif for prestige */
}

.marble-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Subtle marble texture simulation via gradients */
    background:
        radial-gradient(circle at 50% 50%, rgba(203, 213, 225, 0.2) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(148, 163, 184, 0.1) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

.doc-silhouettes {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40%;
    height: 60%;
    background: linear-gradient(to top, #e2e8f0 0%, transparent 100%);
    opacity: 0.5;
    z-index: 0;
    /* Placeholder for potential image logic, kept abstract */
}

.hcg-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 80px;
    position: relative;
    z-index: 2;
}

.academy-badge {
    display: inline-block;
    padding: 6px 16px;
    background: #0f172a;
    color: #f1f5f9;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 1px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.hcg-header h2 {
    font-size: 3rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 15px;
    font-family: 'Cairo', sans-serif;
}

.typing-container {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 20px;
    min-height: 1.5rem;
}

.typing-text {
    border-right: 2px solid #64748b;
    padding-right: 4px;
    animation: blinkCaret 0.7s infinite;
}

@keyframes blinkCaret {
    50% {
        border-color: transparent;
    }
}

.hcg-lead {
    font-size: 1.2rem;
    color: #475569;
    line-height: 1.8;
    font-family: 'Inter', sans-serif;
}

/* Pyramid Container */
.hcg-pyramid-container {
    max-width: 700px;
    margin: 0 auto 80px;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.pyramid-level {
    width: 60%;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    cursor: default;
}

.pyramid-level:hover {
    transform: scale(1.02);
    border-color: #0f172a;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.p-top {
    width: 30%;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-bottom: 3px solid #f59e0b;
}

.p-mid {
    width: 60%;
    border-bottom: 3px solid #3b82f6;
}

.p-base {
    width: 90%;
    border-bottom: 3px solid #10b981;
}

.p-title {
    display: block;
    font-weight: 700;
    color: #0f172a;
    font-size: 1rem;
    margin-bottom: 4px;
}

.p-desc {
    display: block;
    font-size: 0.8rem;
    color: #64748b;
    font-family: 'Inter', sans-serif;
}

.pyramid-stats {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #0f172a;
    background: rgba(15, 23, 42, 0.05);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
}

/* HCG Grid */
.hcg-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 80px;
    position: relative;
    z-index: 2;
}

.hcg-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
}

.hcg-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-color: #cbd5e1;
}

.h-icon {
    font-size: 2rem;
    color: #0f172a;
    margin-bottom: 20px;
}

.hcg-card h3 {
    font-size: 1.2rem;
    color: #0f172a;
    font-weight: 700;
    margin-bottom: 15px;
    font-family: 'Georgia', serif;
}

.hcg-card p {
    font-size: 0.9rem;
    color: #475569;
}


/* Visuals for HCG Cards */
.cycle-viz {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: monospace;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 20px;
    background: #f1f5f9;
    padding: 10px;
    border-radius: 8px;
}

.c-step {
    width: 24px;
    height: 24px;
    background: #fff;
    border: 1px solid #94a3b8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.c-step:hover {
    background: #0f172a;
    color: #fff;
    border-color: #0f172a;
}

.c-arrow {
    color: #94a3b8;
    font-size: 0.8rem;
}

.control-room-viz {
    background: #1e293b;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    color: #fff;
    font-family: monospace;
    text-align: center;
}

.cr-screen {
    border: 1px solid #475569;
    padding: 10px;
    border-radius: 4px;
    background: #0f172a;
}

.cr-alert {
    display: block;
    font-size: 0.65rem;
    color: #f59e0b;
    margin-bottom: 5px;
    animation: blinkAlert 1s infinite;
}

.cr-status {
    font-size: 0.75rem;
    color: #10b981;
}

@keyframes blinkAlert {
    50% {
        opacity: 0.5;
    }
}

.audit-trail-viz {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    padding: 10px;
    margin-bottom: 20px;
}

.at-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #475569;
    margin-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 8px;
}

.at-cert {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #1e40af;
}

.hcg-footer {
    text-align: center;
    position: relative;
    z-index: 2;
    padding-top: 40px;
    border-top: 1px solid #e2e8f0;
    max-width: 800px;
    margin: 0 auto;
}

.hcg-footer h3 {
    font-size: 1.8rem;
    color: #0f172a;
    margin-bottom: 15px;
    font-family: 'Georgia', serif;
}

.hcg-footer p {
    font-style: italic;
    color: #475569;
    margin-bottom: 30px;
}

.trusted-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.t-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #cbd5e1;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #334155;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.t-badge i {
    color: #f59e0b;
}

/* === SLC Sovereign Legacy & Strategic Call === */
.slc-section {
    padding: 120px 40px;
    background: linear-gradient(180deg, #fdfbf7 0%, #fff 40%, #fdfbf7 100%);
    /* Pearl White */
    position: relative;
    border-top: 1px solid #e5e7eb;
    color: #1f2937;
    overflow: hidden;
    text-align: center;
    font-family: 'Times New Roman', serif;
    /* Classic Authority */
}

/* Pearl Dust Particles */
.pearl-dust {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(#d4af37 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.2;
    animation: driftDust 60s linear infinite;
    pointer-events: none;
}

@keyframes driftDust {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 100px 100px;
    }
}

.zenith-light {
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
}

/* Header & Zenith Core */
.slc-header {
    margin-bottom: 80px;
    position: relative;
    z-index: 2;
}

.zenith-core {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.z-core-inner {
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 20px #d4af37, 0 0 40px #d4af37;
    z-index: 2;
}

.z-halo {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(212, 175, 55, 0.5);
    border-radius: 50%;
    animation: pulseHalo 4s infinite ease-in-out;
}

@keyframes pulseHalo {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }

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

.slc-header h2 {
    font-size: 3.5rem;
    color: #111827;
    margin-bottom: 15px;
    font-weight: 700;
    font-family: 'Cairo', sans-serif;
}

.slc-sub {
    font-size: 1.4rem;
    color: #4b5563;
    font-style: italic;
    max-width: 700px;
    margin: 0 auto 30px;
}

.final-result-ui {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: #10b981;
}

/* Layer 1: Power Matrix */
.power-matrix-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto 100px;
    position: relative;
    z-index: 2;
}

.pm-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s;
    text-align: center;
}

.pm-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.15);
    border-color: #d4af37;
}

.pm-icon {
    font-size: 2rem;
    color: #d4af37;
    margin-bottom: 15px;
}

.pm-card h4 {
    font-size: 1.1rem;
    color: #1f2937;
    margin-bottom: 8px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
}

.pm-card p {
    font-size: 0.85rem;
    color: #6b7280;
    font-family: 'Inter', sans-serif;
}

/* Layer 2: Investment Row (3D Chart) */
.slc-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1000px;
    margin: 0 auto 100px;
    gap: 50px;
    text-align: right;
}

.invest-list li {
    margin-bottom: 15px;
    font-size: 1rem;
    color: #374151;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    gap: 10px;
}

.invest-list i {
    color: #d4af37;
}

.bar-chart-3d {
    width: 300px;
    height: 200px;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    perspective: 1000px;
}

.bar {
    width: 60px;
    background: linear-gradient(to top, #d4af37, #fcd34d);
    border-radius: 4px 4px 0 0;
    position: relative;
    transform-style: preserve-3d;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.1);
    transition: height 1s ease-out;
}

.bar::before {
    content: attr(data-val);
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    color: #9ca3af;
    font-family: sans-serif;
}

.b1 {
    height: 30%;
    animation: growBar1 2s ease-out forwards;
}

.b2 {
    height: 60%;
    animation: growBar2 2s 0.5s ease-out forwards;
}

.b3 {
    height: 100%;
    animation: growBar3 2s 1s ease-out forwards;
}

@keyframes growBar1 {
    from {
        height: 0;
    }

    to {
        height: 30%;
    }
}

@keyframes growBar2 {
    from {
        height: 0;
    }

    to {
        height: 60%;
    }
}

@keyframes growBar3 {
    from {
        height: 0;
    }

    to {
        height: 100%;
    }
}

/* Layer 3: Roadmap */
.roadmap-container {
    margin-bottom: 100px;
    position: relative;
    z-index: 2;
}

.timeline-track {
    display: flex;
    justify-content: space-between;
    max-width: 800px;
    margin: 40px auto 0;
    position: relative;
}

.timeline-track::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #e5e7eb;
    z-index: 0;
}

.t-point {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.t-dot {
    width: 22px;
    height: 22px;
    background: #fff;
    border: 4px solid #d4af37;
    border-radius: 50%;
}

.future .t-dot {
    border-color: #9ca3af;
    background: #f3f4f6;
}

.t-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1f2937;
    max-width: 150px;
    font-family: 'Inter', sans-serif;
}

/* Layer 4: Authority Box */
.auth-box {
    background: #fff;
    border: 1px solid #e5e7eb;
    padding: 30px;
    border-radius: 12px;
    max-width: 800px;
    margin: 0 auto 80px;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.auth-header {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: #111827;
    justify-content: center;
}

.auth-header i {
    color: #d4af37;
}

/* Layer 5: Grand CTA */
.grand-cta-box {
    background: #111827;
    padding: 60px;
    border-radius: 20px;
    max-width: 900px;
    margin: 0 auto 80px;
    color: #fff;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
}

.cta-pre {
    font-size: 1.1rem;
    color: #9ca3af;
    margin-bottom: 30px;
    letter-spacing: 1px;
    font-family: 'Inter', sans-serif;
}

.gold-cta-btn {
    background: linear-gradient(45deg, #d4af37, #fcd34d, #d4af37);
    background-size: 200% 200%;
    color: #000 !important;
    font-size: 1.5rem;
    font-weight: 800;
    padding: 20px 60px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    animation: goldShine 3s infinite linear;
    transition: transform 0.2s;
    font-family: 'Cairo', sans-serif;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
    text-decoration: none;
    display: inline-block;
}

.gold-cta-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.6);
}

@keyframes goldShine {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}

.legacy-footer {
    border-top: 1px solid #e5e7eb;
    padding-top: 40px;
    margin-top: 60px;
}

.founder-sig {
    font-family: 'Great Vibes', cursive;
    font-size: 2.8rem;
    color: #111827;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.sig-line {
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
    margin: 5px auto 0;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.slc-section.visible .sig-line {
    width: 200px;
}

/* Haptic Hover Logic */
.slc-section:has(.gold-cta-btn:hover) .pearl-dust {
    animation-duration: 120s;
    /* Slower drift */
    opacity: 0.1;
}

.slc-section:has(.gold-cta-btn:hover) .zenith-light {
    background: radial-gradient(circle, rgba(255, 215, 0, 0.3) 0%, transparent 80%);
    transform: translateX(-50%) scale(1.2);
    transition: all 0.5s ease;
}

.copyright {
    font-size: 0.8rem;
    color: #9ca3af;
    font-family: 'Inter', sans-serif;
    margin-top: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .power-matrix-grid {
        grid-template-columns: 1fr 1fr;
    }

    .slc-row {
        flex-direction: column;
        text-align: center;
    }

    .bar-chart-3d {
        margin: 0 auto;
    }

    .timeline-track {
        flex-direction: column;
        gap: 40px;
    }

    .timeline-track::before {
        display: none;
    }
}

/* Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.modal-content {
    background: #fff;
    max-width: 500px;
    width: 100%;
    padding: 40px;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    text-align: right;
    font-family: 'Cairo', sans-serif;
}

.close-modal {
    position: absolute;
    top: 15px;
    left: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #94a3b8;
}

.modal-content h3 {
    font-size: 1.8rem;
    color: #1e293b;
    margin-bottom: 10px;
}

.modal-content p {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 30px;
    line-height: 1.6;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-form input,
.modal-form textarea {
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.2s;
}

.modal-form input:focus,
.modal-form textarea:focus {
    border-color: #d4af37;
}

.submit-modal-btn {
    background: #0f172a;
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 10px;
}

.submit-modal-btn:hover {
    background: #1e293b;
}

/* === Sovereign Anchor (Footer) === */
.sovereign-footer {
    background: #000;
    color: #fff;
    padding-top: 0;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 1. Live Metrics Ticker */
.metrics-ticker {
    background: #0a0a0a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px 0;
    overflow: hidden;
    white-space: nowrap;
}

.ticker-content {
    display: inline-block;
    animation: tickerLoop 30s linear infinite;
    padding-left: 100%;
}

.ticker-content span {
    margin-right: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: #94a3b8;
    letter-spacing: 1px;
}

@keyframes tickerLoop {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-100%, 0, 0);
    }
}

/* 2. Footer Body */
.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 0.8fr 1fr 1.2fr;
    gap: 40px;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-desc {
    color: #94a3b8;
    line-height: 1.8;
    font-size: 0.95rem;
    margin-bottom: 30px;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: #fff;
    font-size: 1.2rem;
    transition: color 0.3s;
}

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

.footer-col h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 25px;
    font-weight: 700;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    text-decoration: none;
    color: #94a3b8;
    font-size: 0.9rem;
    transition: color 0.3s;
}

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

/* Compliance Badges */
.compliance-badges {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.badge-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.5s ease;
}

.badge-item i {
    font-size: 1.2rem;
    color: #64748b;
}

.badge-item span {
    font-size: 0.7rem;
    color: #64748b;
    font-weight: 600;
    text-align: center;
}

/* Sequential Glow Class (JS will add this) */
.badge-item.glow {
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.1);
}

.badge-item.glow i {
    color: var(--primary);
}

.badge-item.glow span {
    color: #fff;
}

/* 3. Footer Strip */
.footer-strip {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px 0;
    background: #050505;
}

.strip-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #475569;
    font-size: 0.8rem;
}

.strip-center {
    font-style: italic;
}

/* === Floating CTA === */
.floating-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-cta.visible {
    transform: translateY(0);
    opacity: 1;
}

.cta-pulse-btn {
    background: linear-gradient(135deg, var(--primary) 0%, #059669 100%);
    color: #fff;
    border: none;
    padding: 15px 25px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: ctaPulse 2s infinite;
}

@keyframes ctaPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Developer Column Styles */
.developer-col .dev-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.developer-col strong {
    color: #e2e8f0;
    font-size: 1rem;
    font-family: 'Cairo', sans-serif;
}

.dev-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dev-links a {
    text-decoration: none;
    color: #94a3b8;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.dev-links a i {
    font-size: 1.1rem;
}

.dev-links a:hover {
    color: var(--primary);
    transform: translateX(-5px);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .strip-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}