/* ==========================================================================
   تطبيق إدارة مكاتب المحاماة والموكلين والقضايا وعقود الأتعاب
   Executive Legal Navy, Judicial Gold, Sapphire Sky & Emerald UI
   Author: Ahmed Elshemy (https://elshemy.me)
   ========================================================================== */

:root {
    --bg-primary: #040812;
    --bg-secondary: #081122;
    --bg-tertiary: #0e1b33;
    --bg-card: rgba(10, 20, 40, 0.88);
    --bg-card-hover: rgba(16, 31, 60, 0.96);
    --surface-glass: rgba(255, 255, 255, 0.035);
    --surface-glass-hover: rgba(255, 255, 255, 0.075);
    --border-glass: rgba(255, 255, 255, 0.09);
    --border-glass-hover: rgba(245, 158, 11, 0.45);

    --accent-primary: #0ea5e9;
    --accent-primary-light: #38bdf8;
    --accent-primary-dark: #0284c7;
    --accent-gold: #f59e0b;
    --accent-gold-light: #fbbf24;
    --accent-emerald: #10b981;
    --accent-emerald-light: #34d399;
    --accent-rose: #f43f5e;
    --accent-indigo: #6366f1;

    --grad-primary: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    --grad-gold: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --grad-gold-hover: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    --grad-text: linear-gradient(135deg, #ffffff 10%, #fbbf24 55%, #38bdf8 100%);

    --text-white: #ffffff;
    --text-light: #e2e8f0;
    --text-muted: #94a3b8;
    --text-dim: #64748b;

    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;

    --shadow-card: 0 20px 45px rgba(0, 0, 0, 0.52);
    --shadow-lg: 0 30px 70px rgba(0, 0, 0, 0.72);
    --glow-gold: 0 0 32px rgba(245, 158, 11, 0.24);
    --glow-sky: 0 0 32px rgba(14, 165, 233, 0.22);
    --glow-emerald: 0 0 32px rgba(16, 185, 129, 0.22);

    --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    --container-width: 1260px;
}

/* ==========================================================================
   1. Base, Reset & Accessibility
   ========================================================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
    overflow-x: hidden;
}

body {
    font-family: 'Almarai', 'Cairo', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-light);
    line-height: 1.8;
    overflow-x: hidden;
    position: relative;
    background-image:
        radial-gradient(circle at 14% 12%, rgba(245, 158, 11, 0.12) 0%, transparent 42%),
        radial-gradient(circle at 86% 34%, rgba(14, 165, 233, 0.12) 0%, transparent 42%),
        radial-gradient(circle at 50% 86%, rgba(16, 185, 129, 0.09) 0%, transparent 45%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cairo', sans-serif;
    font-weight: 800;
    color: var(--text-white);
    line-height: 1.38;
}

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

button {
    font-family: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--accent-gold-light);
    outline-offset: 3px;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

main {
    overflow-x: clip;
}

section {
    padding: 90px 0;
    position: relative;
    overflow-x: clip;
}

.gradient-text {
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: #1b2f52;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gold);
}

/* Scroll Progress & Ambient Glows */
#progress-bar {
    position: fixed;
    top: 0;
    right: 0;
    height: 4px;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-primary), var(--accent-emerald));
    z-index: 9999;
    transition: width 0.1s linear;
}

.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(130px);
    pointer-events: none;
    z-index: -1;
    opacity: 0.42;
}

.glow-1 {
    width: 440px;
    height: 440px;
    background: rgba(245, 158, 11, 0.18);
    top: -120px;
    right: -120px;
}

.glow-2 {
    width: 390px;
    height: 390px;
    background: rgba(14, 165, 233, 0.17);
    top: 42%;
    left: -140px;
}

.glow-3 {
    width: 420px;
    height: 420px;
    background: rgba(16, 185, 129, 0.14);
    bottom: -140px;
    right: 20%;
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Shared Section Headers & Buttons */
.section-header {
    text-align: center;
    max-width: 810px;
    margin: 0 auto 54px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 100%;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.34);
    color: var(--accent-gold-light);
    font-family: 'Cairo', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: clamp(1.75rem, 3.3vw, 2.55rem);
    margin-bottom: 14px;
}

.section-header p {
    color: var(--text-muted);
    font-size: clamp(0.98rem, 1.5vw, 1.1rem);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    max-width: 100%;
    padding: 13px 28px;
    border-radius: var(--radius-full);
    font-family: 'Cairo', sans-serif;
    font-weight: 800;
    font-size: 0.98rem;
    line-height: 1.45;
    text-align: center;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-lg {
    padding: 15px 32px;
    font-size: 1.04rem;
}

.btn-block {
    width: 100%;
    white-space: normal;
}

.btn-primary {
    background: var(--grad-gold);
    color: #09101d;
    box-shadow: 0 12px 28px rgba(245, 158, 11, 0.34);
}

.btn-primary:hover {
    background: var(--grad-gold-hover);
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(245, 158, 11, 0.48);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.18);
    color: var(--text-white);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-gold-light);
    transform: translateY(-3px);
}

.btn-sky-outline {
    background: rgba(14, 165, 233, 0.11);
    border-color: rgba(56, 189, 248, 0.4);
    color: var(--accent-primary-light);
}

.btn-sky-outline:hover {
    background: rgba(14, 165, 233, 0.22);
    border-color: var(--accent-primary-light);
    transform: translateY(-3px);
}

/* ==========================================================================
   2. Sticky Glassmorphism Navbar & Mobile Drawer
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 32px;
    background: rgba(4, 8, 18, 0.8);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 10px 32px;
    background: rgba(4, 8, 18, 0.96);
    border-bottom-color: rgba(245, 158, 11, 0.28);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.58);
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Cairo', sans-serif;
    font-weight: 900;
    font-size: 1.05rem;
    color: var(--text-white);
    flex-shrink: 0;
}

.brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid rgba(251, 191, 36, 0.45);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-links a {
    font-size: 0.91rem;
    font-weight: 700;
    color: var(--text-light);
    position: relative;
    padding: 6px 2px;
    white-space: nowrap;
}

.nav-links a.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold-light);
    transition: width 0.3s ease;
}

.nav-links a.nav-item:hover,
.nav-links a.nav-item.active {
    color: var(--accent-gold-light);
}

.nav-links a.nav-item:hover::after,
.nav-links a.nav-item.active::after {
    width: 100%;
}

.nav-hub-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px !important;
    border-radius: var(--radius-full);
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.28);
    color: var(--accent-primary-light) !important;
    font-size: 0.85rem !important;
}

.nav-hub-link:hover {
    background: rgba(56, 189, 248, 0.22);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    font-family: 'Cairo', sans-serif;
    font-weight: 800;
    font-size: 0.88rem;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
    white-space: nowrap;
}

.navbar-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(16, 185, 129, 0.45);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--surface-glass);
    border: 1px solid var(--border-glass);
    color: var(--text-white);
    font-size: 1.15rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 16, 0.72);
    backdrop-filter: blur(5px);
    z-index: 1030;
}

.nav-backdrop.show {
    display: block;
}

/* ==========================================================================
   3. Hero Section & Breadcrumbs
   ========================================================================== */
.hero {
    padding: 132px 0 70px;
    position: relative;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.75) 15%, transparent 78%);
    pointer-events: none;
}

.breadcrumb-nav {
    margin-bottom: 26px;
}

.breadcrumb-list {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 7px 16px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--border-glass);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.breadcrumb-list a:hover {
    color: var(--accent-gold-light);
}

.breadcrumb-list .sep {
    font-size: 0.7rem;
    color: var(--text-dim);
}

.breadcrumb-list .current {
    color: var(--accent-gold-light);
    font-weight: 700;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 1.1fr;
    gap: 44px;
    align-items: center;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 18px;
    border-radius: var(--radius-full);
    background: rgba(245, 158, 11, 0.11);
    border: 1px solid rgba(251, 191, 36, 0.35);
    color: var(--accent-gold-light);
    font-family: 'Cairo', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 18px;
}

.pulse-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent-emerald-light);
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
    animation: pulseRing 2s infinite;
}

@keyframes pulseRing {
    0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.hero h1 {
    font-size: clamp(2rem, 3.7vw, 3.05rem);
    line-height: 1.28;
    margin-bottom: 18px;
    letter-spacing: -0.01em;
}

.hero-desc {
    font-size: clamp(1rem, 1.4vw, 1.12rem);
    color: var(--text-light);
    margin-bottom: 24px;
    line-height: 1.88;
}

.hero-desc strong {
    color: var(--accent-gold-light);
}

.hero-quick-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.quick-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid var(--border-glass);
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--text-light);
}

.quick-chip i {
    color: var(--accent-gold-light);
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-mockup-wrapper {
    position: relative;
    padding: 12px 0;
}

.mockup-frame {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(251, 191, 36, 0.28);
    box-shadow: var(--shadow-lg), var(--glow-gold);
    overflow: hidden;
}

.mockup-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 16px;
    background: rgba(4, 8, 18, 0.92);
    border-bottom: 1px solid var(--border-glass);
}

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

.mockup-bar .dot.red { background: #ef4444; }
.mockup-bar .dot.yellow { background: #f59e0b; }
.mockup-bar .dot.green { background: #10b981; }

.mockup-title {
    margin-right: 8px;
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 700;
}

.hero-img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.floating-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    border-radius: var(--radius-md);
    background: rgba(8, 17, 34, 0.94);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: var(--shadow-card);
    z-index: 2;
    max-width: 315px;
}

.badge-top-right {
    top: -12px;
    right: -12px;
}

.badge-bottom-left {
    bottom: -12px;
    left: -12px;
}

.badge-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.badge-icon.gold {
    background: rgba(245, 158, 11, 0.18);
    color: var(--accent-gold-light);
}

.badge-icon.emerald {
    background: rgba(16, 185, 129, 0.18);
    color: var(--accent-emerald-light);
}

.floating-badge strong {
    display: block;
    font-family: 'Cairo', sans-serif;
    font-size: 0.85rem;
    color: var(--text-white);
}

.floating-badge span {
    display: block;
    font-size: 0.76rem;
    color: var(--text-muted);
}

/* ==========================================================================
   4. Metrics Banner
   ========================================================================== */
.metrics-section {
    padding: 22px 0 60px;
}

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

.metric-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.metric-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-glass-hover);
    background: var(--bg-card-hover);
}

.metric-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(245, 158, 11, 0.13);
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: var(--accent-gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.metric-number {
    display: block;
    font-family: 'Cairo', sans-serif;
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--text-white);
    margin-bottom: 3px;
}

.metric-label {
    display: block;
    font-size: 0.83rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ==========================================================================
   5. Workflow Section (4 Steps)
   ========================================================================== */
.workflow-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.workflow-step {
    position: relative;
    padding: 28px 22px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.workflow-step:hover {
    transform: translateY(-6px);
    border-color: rgba(56, 189, 248, 0.45);
}

.step-num {
    position: absolute;
    top: 16px;
    left: 18px;
    font-family: 'Cairo', sans-serif;
    font-size: 1.9rem;
    font-weight: 900;
    color: rgba(251, 191, 36, 0.18);
    line-height: 1;
}

.step-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: rgba(14, 165, 233, 0.13);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: var(--accent-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 18px;
}

.workflow-step h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.workflow-step p {
    font-size: 0.92rem;
    color: var(--text-muted);
}

/* ==========================================================================
   6. Interactive Legal & Financial Lifecycle Matrix
   ========================================================================== */
.status-pills-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.status-pill-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 14px 12px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    color: var(--text-light);
    font-family: 'Cairo', sans-serif;
    font-weight: 800;
    font-size: 0.92rem;
    cursor: pointer;
    transition: var(--transition);
}

.status-pill-btn i {
    color: var(--accent-gold-light);
    font-size: 1rem;
}

.status-pill-btn:hover {
    border-color: rgba(251, 191, 36, 0.45);
    transform: translateY(-2px);
}

.status-pill-btn.active {
    background: var(--grad-gold);
    border-color: transparent;
    color: #09101d;
    box-shadow: 0 12px 26px rgba(245, 158, 11, 0.32);
}

.status-pill-btn.active i {
    color: #09101d;
}

.status-detail-box {
    padding: 30px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid rgba(251, 191, 36, 0.25);
    box-shadow: var(--shadow-card);
}

.status-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding-bottom: 22px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-glass);
}

.status-title-group {
    display: flex;
    align-items: center;
    gap: 16px;
}

.status-badge-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.35);
    color: var(--accent-gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    flex-shrink: 0;
}

.status-title-group h3 {
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.status-title-group p {
    color: var(--text-muted);
    font-size: 0.94rem;
}

.status-impact-tag {
    padding: 7px 16px;
    border-radius: var(--radius-full);
    background: rgba(16, 185, 129, 0.13);
    border: 1px solid rgba(52, 211, 153, 0.32);
    color: var(--accent-emerald-light);
    font-family: 'Cairo', sans-serif;
    font-size: 0.85rem;
    font-weight: 800;
}

.status-impact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.impact-card {
    padding: 20px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
}

.impact-card-head {
    display: flex;
    align-items: center;
    gap: 9px;
    font-family: 'Cairo', sans-serif;
    font-weight: 800;
    font-size: 0.98rem;
    color: var(--accent-primary-light);
    margin-bottom: 10px;
}

.impact-card p {
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.75;
}

/* ==========================================================================
   7. Filterable Features Grid (16 Core Modules)
   ========================================================================== */
.features-filters,
.gallery-filters {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 36px;
}

.feature-filter-btn,
.gallery-filter-btn {
    padding: 10px 20px;
    border-radius: var(--radius-full);
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    color: var(--text-light);
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.feature-filter-btn:hover,
.gallery-filter-btn:hover {
    border-color: var(--accent-gold-light);
    color: var(--text-white);
}

.feature-filter-btn.active,
.gallery-filter-btn.active {
    background: var(--grad-gold);
    border-color: transparent;
    color: #09101d;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
}

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

.feature-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 26px 22px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.feature-card.is-hidden {
    display: none;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-glass-hover);
    background: var(--bg-card-hover);
}

.feature-num {
    position: absolute;
    top: 16px;
    left: 18px;
    font-family: 'Cairo', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.08);
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: rgba(245, 158, 11, 0.13);
    border: 1px solid rgba(251, 191, 36, 0.28);
    color: var(--accent-gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.28rem;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    flex-grow: 1;
}

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.feature-tags span {
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: rgba(56, 189, 248, 0.09);
    border: 1px solid rgba(56, 189, 248, 0.22);
    color: var(--accent-primary-light);
    font-size: 0.76rem;
    font-weight: 700;
}

/* ==========================================================================
   8. Interactive System Explorer (6 Tabs + Live Installment Simulator)
   ========================================================================== */
.explorer-tabs-nav {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}

.explorer-tab-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 10px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    color: var(--text-light);
    font-family: 'Cairo', sans-serif;
    font-weight: 800;
    font-size: 0.87rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.explorer-tab-btn i {
    color: var(--accent-primary-light);
}

.explorer-tab-btn:hover {
    border-color: rgba(56, 189, 248, 0.45);
}

.explorer-tab-btn.active {
    background: var(--grad-primary);
    border-color: transparent;
    color: #fff;
    box-shadow: var(--glow-sky);
}

.explorer-tab-btn.active i {
    color: #fff;
}

.explorer-content-box {
    padding: 34px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-lg);
}

.explorer-tab-panel {
    display: none;
    animation: fadeUp 0.4s ease;
}

.explorer-tab-panel.active {
    display: block;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.explorer-panel-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 32px;
    align-items: center;
}

.panel-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: var(--accent-primary-light);
    font-family: 'Cairo', sans-serif;
    font-size: 0.82rem;
    font-weight: 800;
    margin-bottom: 14px;
}

.explorer-text h3 {
    font-size: 1.45rem;
    margin-bottom: 12px;
}

.explorer-text > p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 0.96rem;
}

.explorer-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.explorer-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
}

.explorer-list i {
    color: var(--accent-emerald-light);
    font-size: 1.1rem;
    margin-top: 4px;
    flex-shrink: 0;
}

.explorer-list strong {
    display: block;
    color: var(--text-white);
    font-family: 'Cairo', sans-serif;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.explorer-list span {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.explorer-media {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.11);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.explorer-media img {
    width: 100%;
    height: auto;
}

.media-caption {
    padding: 12px 16px;
    background: rgba(4, 8, 18, 0.92);
    border-top: 1px solid var(--border-glass);
    font-size: 0.85rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.media-caption i {
    color: var(--accent-gold-light);
}

/* Interactive Fee Contract Simulator inside Explorer */
.split-sim-box {
    padding: 20px;
    border-radius: var(--radius-md);
    background: rgba(8, 17, 34, 0.9);
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.split-sim-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    font-family: 'Cairo', sans-serif;
    font-weight: 800;
    font-size: 0.95rem;
}

.split-sim-head i {
    color: var(--accent-gold-light);
}

.split-sim-head strong {
    color: var(--accent-gold-light);
    font-size: 1.1rem;
}

.sim-controls-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.sim-control-item label {
    display: flex;
    justify-content: space-between;
    font-size: 0.86rem;
    color: var(--text-light);
    margin-bottom: 5px;
}

.sim-control-item label strong {
    color: var(--accent-primary-light);
}

.sim-control-item input[type="range"] {
    width: 100%;
    accent-color: var(--accent-gold);
    cursor: pointer;
}

.sim-results-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.sim-res-pill {
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    text-align: center;
}

.sim-res-pill span {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.sim-res-pill strong {
    display: block;
    font-family: 'Cairo', sans-serif;
    font-size: 0.95rem;
    font-weight: 900;
}

.sim-res-pill.sky strong { color: var(--accent-primary-light); }
.sim-res-pill.gold strong { color: var(--accent-gold-light); }
.sim-res-pill.emerald strong { color: var(--accent-emerald-light); }

/* ==========================================================================
   9. Interactive Law Firm Revenue & Collection Calculator
   ========================================================================== */
.calc-wrapper {
    display: grid;
    grid-template-columns: 1.1fr 0.95fr;
    gap: 28px;
    padding: 32px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid rgba(251, 191, 36, 0.25);
    box-shadow: var(--shadow-lg);
}

.calc-top-bars {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-glass);
}

.calc-currency-bar,
.calc-presets-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.calc-currency-bar > span,
.calc-presets-bar > span {
    font-family: 'Cairo', sans-serif;
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--text-light);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.calc-currency-bar i,
.calc-presets-bar i {
    color: var(--accent-gold-light);
}

.currency-pills,
.preset-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.currency-btn,
.preset-btn {
    padding: 7px 14px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid var(--border-glass);
    color: var(--text-light);
    font-family: 'Cairo', sans-serif;
    font-size: 0.83rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.currency-btn.active,
.preset-btn.active {
    background: var(--grad-gold);
    border-color: transparent;
    color: #09101d;
    font-weight: 800;
}

.calc-two-cols {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.calc-group {
    margin-bottom: 12px;
}

.calc-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 7px;
}

.calc-label-row label {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-light);
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.calc-label-row i {
    color: var(--accent-primary-light);
}

.calc-val-badge {
    font-family: 'Cairo', sans-serif;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--accent-gold-light);
    background: rgba(245, 158, 11, 0.12);
    padding: 2px 10px;
    border-radius: var(--radius-full);
}

.calc-input-row {
    position: relative;
    display: flex;
    align-items: center;
}

.calc-input-row input {
    width: 100%;
    padding: 11px 14px 11px 58px;
    border-radius: var(--radius-sm);
    background: rgba(4, 8, 18, 0.85);
    border: 1px solid var(--border-glass);
    color: var(--text-white);
    font-family: 'Cairo', sans-serif;
    font-size: 0.98rem;
    font-weight: 800;
}

.calc-input-row input:focus {
    border-color: var(--accent-gold-light);
    outline: none;
}

.calc-suffix {
    position: absolute;
    left: 12px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
    pointer-events: none;
}

.calc-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 0.84rem;
    color: var(--text-muted);
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: rgba(56, 189, 248, 0.07);
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.calc-note i {
    color: var(--accent-primary-light);
    margin-top: 3px;
}

.calc-results {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    border-radius: var(--radius-md);
    background: rgba(4, 8, 18, 0.78);
    border: 1px solid var(--border-glass);
}

.calc-res-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Cairo', sans-serif;
    font-weight: 900;
    font-size: 1.05rem;
    color: var(--text-white);
    margin-bottom: 18px;
}

.calc-res-header i {
    color: var(--accent-gold-light);
}

.calc-res-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}

.calc-res-item {
    padding: 14px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--border-glass);
}

.calc-res-item.highlight {
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.06);
}

.calc-res-item.full-span {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(251, 191, 36, 0.3);
}

.res-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.res-value {
    display: block;
    font-family: 'Cairo', sans-serif;
    font-size: 1.18rem;
    font-weight: 900;
    color: var(--text-white);
}

.res-value.sky { color: var(--accent-primary-light); }
.res-value.gold { color: var(--accent-gold-light); }
.res-value.emerald { color: var(--accent-emerald-light); }

.res-sub {
    display: block;
    font-size: 0.76rem;
    color: var(--text-muted);
    margin-top: 3px;
}

.breakdown-box {
    padding: 14px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    margin-bottom: 18px;
}

.breakdown-head {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 10px;
}

.breakdown-bar {
    height: 11px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    display: flex;
    margin-bottom: 10px;
}

.bar-seg {
    height: 100%;
    transition: width 0.35s ease;
}

.seg-profit { background: var(--accent-emerald); }
.seg-ops { background: var(--accent-primary); }
.seg-pending { background: var(--accent-gold); }

.breakdown-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.breakdown-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.breakdown-legend i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
}

.dot-profit { background: var(--accent-emerald); }
.dot-ops { background: var(--accent-primary); }
.dot-pending { background: var(--accent-gold); }

/* ==========================================================================
   10. Benefits Section, Portal Section & Summary Callout
   ========================================================================== */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
    margin-bottom: 30px;
}

.benefit-card {
    padding: 24px 18px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-5px);
    border-color: rgba(16, 185, 129, 0.45);
}

.benefit-icon {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(52, 211, 153, 0.3);
    color: var(--accent-emerald-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 14px;
}

.benefit-card h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}

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

.summary-callout {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 26px 30px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(14, 165, 233, 0.1));
    border: 1px solid rgba(251, 191, 36, 0.34);
}

.callout-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: var(--grad-gold);
    color: #09101d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.summary-callout h3 {
    font-size: 1.18rem;
    margin-bottom: 4px;
}

.summary-callout p {
    font-size: 0.96rem;
    color: var(--text-light);
}

/* Public Website & Governance Portal Grid */
.portal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.portal-card {
    padding: 28px 24px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.portal-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-glass-hover);
}

.portal-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 18px;
}

.portal-icon.gold {
    background: rgba(245, 158, 11, 0.16);
    border: 1px solid rgba(251, 191, 36, 0.35);
    color: var(--accent-gold-light);
}

.portal-icon.sky {
    background: rgba(14, 165, 233, 0.16);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: var(--accent-primary-light);
}

.portal-icon.emerald {
    background: rgba(16, 185, 129, 0.16);
    border: 1px solid rgba(52, 211, 153, 0.35);
    color: var(--accent-emerald-light);
}

.portal-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.portal-card > p {
    font-size: 0.91rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.portal-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.portal-list li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 0.89rem;
    color: var(--text-light);
}

.portal-list i {
    color: var(--accent-emerald-light);
    margin-top: 4px;
    flex-shrink: 0;
}

/* ==========================================================================
   11. Before vs After Comparison & Target Sectors
   ========================================================================== */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 42px;
}

.comp-card {
    padding: 28px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-card);
}

.comp-card.before {
    border-color: rgba(244, 63, 94, 0.28);
}

.comp-card.after {
    border-color: rgba(16, 185, 129, 0.34);
    background: linear-gradient(160deg, rgba(16, 185, 129, 0.08), rgba(10, 20, 40, 0.92));
}

.comp-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-glass);
}

.comp-card.before .comp-header i {
    font-size: 1.5rem;
    color: var(--accent-rose);
}

.comp-card.after .comp-header i {
    font-size: 1.5rem;
    color: var(--accent-emerald-light);
}

.comp-header h3 {
    font-size: 1.15rem;
}

.comp-list {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.comp-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.93rem;
    color: var(--text-light);
}

.comp-card.before .comp-list i {
    color: var(--accent-rose);
    margin-top: 5px;
    flex-shrink: 0;
}

.comp-card.after .comp-list i {
    color: var(--accent-emerald-light);
    margin-top: 5px;
    flex-shrink: 0;
}

.sectors-title {
    text-align: center;
    font-size: 1.35rem;
    margin-bottom: 24px;
}

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

.sector-card {
    padding: 24px 20px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    text-align: center;
    transition: var(--transition);
}

.sector-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-glass-hover);
}

.sector-card i {
    font-size: 1.85rem;
    color: var(--accent-gold-light);
    margin-bottom: 12px;
}

.sector-card h4 {
    font-size: 1.02rem;
    margin-bottom: 8px;
}

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

/* ==========================================================================
   12. Filterable Gallery & Lightbox
   ========================================================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.gallery-item {
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    cursor: pointer;
    transition: var(--transition);
}

.gallery-item.is-hidden {
    display: none;
}

.gallery-item:hover {
    transform: translateY(-6px);
    border-color: var(--border-glass-hover);
}

.gallery-img-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bg-secondary);
}

.gallery-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.45s ease;
}

.gallery-item:hover .gallery-img-wrap img {
    transform: scale(1.04);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(4, 8, 18, 0.1) 0%, rgba(4, 8, 18, 0.78) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay,
.gallery-item:focus-visible .gallery-overlay {
    opacity: 1;
}

.zoom-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--grad-gold);
    color: #09101d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--glow-gold);
}

.gallery-cat-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    background: rgba(4, 8, 18, 0.85);
    border: 1px solid rgba(251, 191, 36, 0.35);
    color: var(--accent-gold-light);
    font-size: 0.75rem;
    font-weight: 700;
}

.gallery-caption {
    padding: 18px 20px;
}

.gallery-caption h3 {
    font-size: 1.02rem;
    margin-bottom: 6px;
}

.gallery-caption p {
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* Lightbox Modal */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(2, 6, 15, 0.94);
    backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.lightbox.open {
    display: flex;
}

.lightbox-body {
    max-width: 1120px;
    width: 100%;
    text-align: center;
}

.lightbox-body img {
    max-height: 78vh;
    width: auto;
    max-width: 100%;
    margin: 0 auto 14px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: var(--shadow-lg);
}

.lightbox-caption {
    font-family: 'Cairo', sans-serif;
    font-size: 1.04rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 6px;
}

.lightbox-counter {
    font-size: 0.86rem;
    color: var(--accent-gold-light);
    font-weight: 700;
}

.lightbox-close,
.lightbox-nav {
    position: fixed;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-white);
    font-size: 1.35rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.lightbox-close:hover,
.lightbox-nav:hover {
    background: var(--accent-gold);
    color: #09101d;
}

.lightbox-close {
    top: 22px;
    left: 22px;
    font-size: 1.7rem;
}

.lightbox-nav.prev {
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-nav.next {
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
}

/* ==========================================================================
   13. Lazy YouTube Video Section
   ========================================================================== */
.video-wrapper {
    max-width: 960px;
    margin: 0 auto;
}

.video-container {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-secondary);
    border: 1px solid rgba(251, 191, 36, 0.34);
    box-shadow: var(--shadow-lg), var(--glow-gold);
    margin-bottom: 20px;
}

.video-facade {
    position: relative;
    width: 100%;
    height: 100%;
    border: 0;
    padding: 0;
    background: #000;
    cursor: pointer;
    display: block;
}

.video-facade img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.68);
    transition: transform 0.5s ease, filter 0.3s ease;
}

.video-facade:hover img {
    transform: scale(1.03);
    filter: brightness(0.8);
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background: var(--grad-gold);
    color: #09101d;
    font-size: 1.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 12px rgba(245, 158, 11, 0.22), var(--shadow-lg);
    transition: var(--transition);
}

.video-facade:hover .video-play-btn {
    transform: translate(-50%, -50%) scale(1.09);
}

.video-facade-label {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    background: rgba(4, 8, 18, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-white);
    font-family: 'Cairo', sans-serif;
    font-size: 0.9rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.video-facade-label i {
    color: #ff2b2b;
    font-size: 1.15rem;
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.video-highlights {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.v-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-light);
    text-align: center;
}

.v-item i {
    color: var(--accent-emerald-light);
}

/* ==========================================================================
   14. Packages, FAQ & Final CTA
   ========================================================================== */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.package-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 32px 26px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.package-card.featured {
    border-color: rgba(251, 191, 36, 0.55);
    background: linear-gradient(170deg, rgba(245, 158, 11, 0.11), rgba(10, 20, 40, 0.96));
    box-shadow: var(--shadow-lg), var(--glow-gold);
}

.package-card:hover {
    transform: translateY(-6px);
}

.package-ribbon {
    position: absolute;
    top: 18px;
    left: 18px;
    padding: 5px 14px;
    border-radius: var(--radius-full);
    background: var(--grad-gold);
    color: #09101d;
    font-family: 'Cairo', sans-serif;
    font-size: 0.78rem;
    font-weight: 900;
}

.package-icon {
    width: 54px;
    height: 54px;
    border-radius: 15px;
    background: rgba(56, 189, 248, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.32);
    color: var(--accent-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 18px;
}

.package-card.featured .package-icon {
    background: rgba(245, 158, 11, 0.18);
    border-color: rgba(251, 191, 36, 0.42);
    color: var(--accent-gold-light);
}

.package-card h3 {
    font-size: 1.22rem;
    margin-bottom: 8px;
}

.package-subtitle {
    font-size: 0.91rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.package-list {
    display: flex;
    flex-direction: column;
    gap: 11px;
    margin-bottom: 26px;
    flex-grow: 1;
}

.package-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.package-list i {
    color: var(--accent-emerald-light);
    margin-top: 4px;
    flex-shrink: 0;
}

/* FAQ Accordion */
.faq-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-card {
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    overflow: hidden;
    transition: var(--transition);
}

.faq-card.active {
    border-color: rgba(251, 191, 36, 0.45);
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    background: transparent;
    border: 0;
    color: var(--text-white);
    font-family: 'Cairo', sans-serif;
    font-size: 1.03rem;
    font-weight: 800;
    text-align: right;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
}

.faq-question i {
    color: var(--accent-gold-light);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-card.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-card.active .faq-answer {
    max-height: 400px;
}

.faq-answer p {
    padding: 0 24px 20px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* Final CTA Box */
.cta-box {
    text-align: center;
    padding: 56px 36px;
    border-radius: var(--radius-xl);
    background: linear-gradient(145deg, rgba(245, 158, 11, 0.14), rgba(14, 165, 233, 0.12));
    border: 1px solid rgba(251, 191, 36, 0.38);
    box-shadow: var(--shadow-lg);
}

.cta-box h2 {
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    margin-bottom: 14px;
}

.cta-box p {
    max-width: 700px;
    margin: 0 auto 28px;
    color: var(--text-light);
    font-size: 1.04rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}

/* ==========================================================================
   15. Related Solutions, Footer & Floating Actions
   ========================================================================== */
.related-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 42px;
}

.related-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.28);
    color: var(--accent-primary-light);
    font-family: 'Cairo', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.related-header h2 {
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
    margin-bottom: 10px;
}

.related-header p {
    color: var(--text-muted);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-bottom: 34px;
}

.related-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.related-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-glass-hover);
}

.related-card-img {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bg-secondary);
}

.related-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.related-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.related-card-badge {
    display: inline-block;
    align-self: flex-start;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    background: rgba(16, 185, 129, 0.12);
    color: var(--accent-emerald-light);
    font-size: 0.76rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.related-card-content h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.related-card-content p {
    font-size: 0.87rem;
    color: var(--text-muted);
    margin-bottom: 14px;
    flex-grow: 1;
}

.related-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Cairo', sans-serif;
    font-weight: 800;
    font-size: 0.88rem;
    color: var(--accent-gold-light);
}

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

.site-footer {
    padding: 40px 0 32px;
    background: rgba(2, 6, 14, 0.95);
    border-top: 1px solid var(--border-glass);
    text-align: center;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Cairo', sans-serif;
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--text-white);
    margin-bottom: 18px;
}

.footer-brand i {
    color: var(--accent-gold-light);
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px 22px;
    margin-bottom: 18px;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 700;
}

.footer-links a:hover {
    color: var(--accent-gold-light);
}

.footer-copy {
    font-size: 0.88rem;
    color: var(--text-dim);
}

.footer-copy a {
    color: var(--accent-gold-light);
    font-weight: 700;
}

.back-to-top {
    position: fixed;
    bottom: 86px;
    left: 22px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(10, 20, 40, 0.92);
    border: 1px solid rgba(251, 191, 36, 0.4);
    color: var(--accent-gold-light);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 990;
}

.back-to-top.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.floating-wa {
    position: fixed;
    bottom: 22px;
    left: 22px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 20px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    font-family: 'Cairo', sans-serif;
    font-weight: 800;
    font-size: 0.92rem;
    box-shadow: 0 12px 28px rgba(16, 185, 129, 0.4);
    z-index: 995;
}

.floating-wa:hover {
    transform: translateY(-3px);
}

/* ==========================================================================
   16. Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1180px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

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

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

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

    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .explorer-tabs-nav {
        grid-template-columns: repeat(3, 1fr);
    }

    .explorer-panel-grid {
        grid-template-columns: 1fr;
    }

    .calc-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1120px) {
    .navbar {
        padding: 12px 20px;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(320px, 85vw);
        height: 100vh;
        flex-direction: column;
        align-items: flex-start;
        padding: 84px 24px 28px;
        background: rgba(6, 13, 28, 0.98);
        border-left: 1px solid var(--border-glass);
        gap: 14px;
        transition: right 0.35s ease;
        z-index: 1040;
        overflow-y: auto;
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links a {
        font-size: 1rem;
        width: 100%;
    }
}

@media (max-width: 900px) {
    .status-pills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .status-impact-grid,
    .portal-grid,
    .comparison-grid,
    .packages-grid,
    .related-grid,
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

@media (max-width: 640px) {
    section {
        padding: 64px 0;
    }

    .hero {
        padding: 108px 0 48px;
    }

    .floating-badge {
        position: static;
        margin: 12px auto 0;
        max-width: 100%;
    }

    .metrics-grid,
    .workflow-grid,
    .status-pills-grid,
    .status-impact-grid,
    .features-grid,
    .explorer-tabs-nav,
    .sim-results-row,
    .calc-two-cols,
    .calc-res-grid,
    .benefits-grid,
    .portal-grid,
    .comparison-grid,
    .sectors-grid,
    .gallery-grid,
    .video-highlights,
    .packages-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .explorer-content-box,
    .calc-wrapper,
    .status-detail-box,
    .cta-box {
        padding: 22px 18px;
    }

    .summary-callout {
        flex-direction: column;
        text-align: center;
    }

    .navbar-cta span {
        display: none;
    }

    .floating-wa span {
        display: none;
    }

    .floating-wa {
        width: 52px;
        height: 52px;
        padding: 0;
        justify-content: center;
    }

    .lightbox-nav.prev {
        right: 10px;
    }

    .lightbox-nav.next {
        left: 10px;
    }
}

@media (max-width: 420px) {
    .container {
        padding: 0 16px;
    }

    .hero-btns .btn {
        width: 100%;
    }

    .calc-res-item.full-span {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
