/* ==========================================================================
   شئون السيارات بروماكس ومصروفات وإيرادات وفواتير
   Fleet Command Midnight Navy, Amber Gold & Electric Cyan Glassmorphism UI
   Author: Ahmed Elshemy (https://elshemy.me)
   ========================================================================== */

:root {
    --bg-primary: #040914;
    --bg-secondary: #081326;
    --bg-tertiary: #0e1f3a;
    --bg-card: rgba(10, 24, 46, 0.85);
    --bg-card-hover: rgba(15, 34, 64, 0.96);
    --surface-glass: rgba(255, 255, 255, 0.03);
    --surface-glass-hover: rgba(255, 255, 255, 0.07);
    --border-glass: rgba(255, 255, 255, 0.09);
    --border-glass-hover: rgba(245, 158, 11, 0.48);

    --accent-primary: #f59e0b;
    --accent-primary-light: #fbbf24;
    --accent-primary-dark: #d97706;
    --accent-cyan: #0ea5e9;
    --accent-cyan-light: #38bdf8;
    --accent-emerald: #10b981;
    --accent-emerald-light: #34d399;
    --accent-rose: #f43f5e;

    --grad-primary: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --grad-primary-hover: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    --grad-cyan: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    --grad-text: linear-gradient(135deg, #ffffff 15%, #fbbf24 58%, #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.5);
    --shadow-lg: 0 30px 70px rgba(0, 0, 0, 0.72);
    --glow-gold: 0 0 32px rgba(245, 158, 11, 0.25);
    --glow-cyan: 0 0 32px rgba(14, 165, 233, 0.24);
    --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% 15%, rgba(245, 158, 11, 0.1) 0%, transparent 42%),
        radial-gradient(circle at 86% 36%, rgba(14, 165, 233, 0.11) 0%, transparent 42%),
        radial-gradient(circle at 50% 85%, rgba(16, 185, 129, 0.08) 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-primary-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: 92px 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: #172d4d;
    border-radius: 4px;
}

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

/* Scroll Progress & Ambient Glows */
#progress-bar {
    position: fixed;
    top: 0;
    right: 0;
    height: 4px;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-cyan), 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: 380px;
    height: 380px;
    background: rgba(14, 165, 233, 0.18);
    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: 780px;
    margin: 0 auto 56px;
}

.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(245, 158, 11, 0.3);
    color: var(--accent-primary-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-primary);
    color: #0a101d;
    box-shadow: 0 12px 28px rgba(245, 158, 11, 0.34);
}

.btn-primary:hover {
    background: var(--grad-primary-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-primary-light);
    transform: translateY(-3px);
}

.btn-cyan-outline {
    background: rgba(14, 165, 233, 0.1);
    border-color: rgba(56, 189, 248, 0.38);
    color: var(--accent-cyan-light);
}

.btn-cyan-outline:hover {
    background: rgba(14, 165, 233, 0.2);
    border-color: var(--accent-cyan-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, 9, 20, 0.76);
    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, 9, 20, 0.95);
    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(245, 158, 11, 0.4);
}

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

.nav-links a {
    font-size: 0.92rem;
    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-primary-light);
    transition: width 0.3s ease;
}

.nav-links a.nav-item:hover,
.nav-links a.nav-item.active {
    color: var(--accent-primary-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-cyan-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: 10px;
    flex-shrink: 0;
}

.navbar-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: var(--radius-full);
    background: var(--grad-primary);
    color: #0a101d;
    font-family: 'Cairo', sans-serif;
    font-weight: 800;
    font-size: 0.88rem;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
}

.navbar-cta:hover {
    background: var(--grad-primary-hover);
    transform: translateY(-2px);
}

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

.nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(2, 5, 12, 0.72);
    backdrop-filter: blur(4px);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.nav-backdrop.show {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   3. Hero Section & Breadcrumbs
   ========================================================================== */
.hero {
    padding-top: 122px;
    padding-bottom: 84px;
    position: relative;
    overflow: hidden;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(56, 189, 248, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.04) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
    pointer-events: none;
}

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

.breadcrumb-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.breadcrumb-list a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-light);
}

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

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

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

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

.badge-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    max-width: 100%;
    padding: 7px 18px;
    border-radius: var(--radius-full);
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.34);
    color: var(--accent-primary-light);
    font-family: 'Cairo', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
}

.pulse-dot {
    width: 9px;
    height: 9px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--accent-primary-light);
    box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.7);
    animation: pulseRing 2s infinite;
}

@keyframes pulseRing {
    0% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(251, 191, 36, 0); }
    100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0); }
}

.hero h1 {
    font-size: clamp(2rem, 3.85vw, 3rem);
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.28;
}

.hero-desc {
    font-size: clamp(1rem, 1.45vw, 1.12rem);
    color: var(--text-muted);
    margin-bottom: 24px;
    max-width: 640px;
}

.hero-desc strong {
    color: var(--text-white);
}

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

.quick-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: 100%;
    padding: 7px 14px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.11);
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
}

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

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

.hero-mockup-wrapper {
    position: relative;
    padding: 16px 8px;
    min-width: 0;
}

.mockup-frame {
    max-width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #071326;
    border: 1px solid rgba(245, 158, 11, 0.34);
    box-shadow: var(--shadow-lg), var(--glow-gold);
}

.mockup-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.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: auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.8rem;
    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: 12px 16px;
    border-radius: var(--radius-md);
    background: rgba(8, 19, 38, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-card);
    z-index: 3;
}

.badge-top-right {
    top: -4px;
    right: -10px;
}

.badge-bottom-left {
    bottom: -4px;
    left: -10px;
}

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

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

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

.floating-badge strong {
    display: block;
    font-size: 0.88rem;
    color: var(--text-white);
}

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

/* ==========================================================================
   4. Metrics Banner
   ========================================================================== */
.metrics-section {
    padding: 36px 0;
    background: rgba(8, 19, 38, 0.68);
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
}

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

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

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

.metric-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(245, 158, 11, 0.14);
    color: var(--accent-primary-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.18rem;
    font-weight: 900;
    color: var(--text-white);
}

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

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

.workflow-step {
    position: relative;
    padding: 34px 24px 26px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    transition: var(--transition);
}

.workflow-step:hover {
    transform: translateY(-6px);
    border-color: var(--border-glass-hover);
    box-shadow: var(--shadow-card), var(--glow-gold);
}

.step-num {
    position: absolute;
    top: 18px;
    left: 20px;
    font-family: 'Cairo', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    color: rgba(245, 158, 11, 0.2);
    line-height: 1;
}

.step-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(14, 165, 233, 0.14);
    color: var(--accent-cyan-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    margin-bottom: 18px;
}

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

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

/* ==========================================================================
   6. Filterable Features Grid
   ========================================================================== */
.features-filters,
.gallery-filters {
    display: flex;
    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(--surface-glass);
    border: 1px solid var(--border-glass);
    color: var(--text-light);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

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

.feature-filter-btn.active,
.gallery-filter-btn.active {
    background: var(--grad-primary);
    border-color: transparent;
    color: #0a101d;
    box-shadow: 0 8px 22px rgba(245, 158, 11, 0.35);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 285px), 1fr));
    gap: 22px;
}

.feature-card {
    position: relative;
    padding: 28px 24px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.feature-card.hidden,
.gallery-item.hidden {
    display: none;
}

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

.feature-num {
    position: absolute;
    top: 20px;
    left: 20px;
    font-family: 'Cairo', sans-serif;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--accent-primary-light);
    background: rgba(245, 158, 11, 0.14);
    padding: 3px 10px;
    border-radius: var(--radius-full);
}

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

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

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

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

.feature-tags span {
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 11px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent-cyan-light);
}

/* ==========================================================================
   7. Interactive System Explorer (5 Tabs + Live Trip Invoice Simulator)
   ========================================================================== */
.explorer-section {
    background: rgba(8, 19, 38, 0.58);
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
}

.explorer-tabs-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 28px;
}

.explorer-tab-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 14px 14px;
    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: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

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

.explorer-tab-btn:hover {
    border-color: var(--border-glass-hover);
}

.explorer-tab-btn.active {
    background: var(--grad-primary);
    color: #0a101d;
    border-color: transparent;
    box-shadow: 0 10px 26px rgba(245, 158, 11, 0.34);
}

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

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

.explorer-tab-panel {
    display: none;
}

.explorer-tab-panel.active {
    display: block;
    animation: fadeInPanel 0.35s ease;
}

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

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

.panel-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    border-radius: var(--radius-full);
    background: rgba(56, 189, 248, 0.14);
    color: var(--accent-cyan-light);
    font-size: 0.84rem;
    font-weight: 800;
    margin-bottom: 14px;
}

.explorer-text h3 {
    font-size: clamp(1.3rem, 2.2vw, 1.7rem);
    margin-bottom: 14px;
}

.explorer-text > p {
    color: var(--text-muted);
    margin-bottom: 22px;
}

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

.explorer-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

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

.explorer-list li strong {
    display: block;
    color: var(--text-white);
    font-size: 0.98rem;
}

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

.explorer-media {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #020611;
}

.media-caption {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.86rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

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

/* Interactive Trip Invoice Simulator inside Explorer */
.split-sim-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(245, 158, 11, 0.28);
    border-radius: var(--radius-md);
    padding: 18px;
    margin-bottom: 20px;
}

.split-sim-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.split-sim-head span {
    color: var(--text-light);
    font-weight: 700;
}

.split-sim-head strong {
    font-family: 'Cairo', sans-serif;
    color: var(--accent-primary-light);
    font-size: 1.1rem;
}

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

.sim-control-item label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.sim-control-item label strong {
    color: var(--accent-cyan-light);
    font-family: 'Cairo', sans-serif;
}

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

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

.split-chip {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 8px 10px;
    text-align: center;
}

.split-chip span {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.split-chip strong {
    display: block;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    color: var(--accent-emerald-light);
}

.split-chip strong.gold {
    color: var(--accent-primary-light);
}

/* ==========================================================================
   8. Interactive Fleet Profit & Custody Calculator
   ========================================================================== */
.hero-grid > *,
.explorer-panel-grid > *,
.calc-wrapper > *,
.calc-two-cols > *,
.calc-res-grid > *,
.comparison-grid > *,
.metrics-grid > *,
.workflow-grid > *,
.sectors-grid > *,
.packages-grid > *,
.split-sim-bars > *,
.video-highlights > *,
.gallery-grid > *,
.features-grid > *,
.benefits-grid > *,
.related-grid > * {
    min-width: 0;
}

.calc-wrapper {
    display: grid;
    grid-template-columns: 1.08fr 0.95fr;
    gap: 32px;
    max-width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    padding: 36px;
    box-shadow: var(--shadow-lg), var(--glow-cyan);
}

.calc-inputs,
.calc-results,
.explorer-content-box,
.cta-box {
    max-width: 100%;
}

.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;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.calc-currency-bar > span,
.calc-presets-bar > span {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-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.04);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.currency-btn.active,
.preset-btn.active {
    background: rgba(245, 158, 11, 0.2);
    border-color: var(--accent-primary-light);
    color: var(--accent-primary-light);
}

.calc-two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 14px;
}

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

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

.calc-label-row label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-light);
}

.calc-label-row label i {
    color: var(--accent-cyan-light);
    margin-left: 4px;
}

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

.calc-input-row {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.34);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.calc-input-row:focus-within {
    border-color: var(--accent-primary);
}

.calc-input-row input {
    width: 100%;
    min-width: 0;
    background: transparent;
    border: none;
    padding: 11px 14px;
    color: var(--text-white);
    font-family: 'Cairo', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    outline: none;
}

.calc-suffix {
    padding: 0 14px;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
}

.calc-note {
    margin-top: 14px;
    font-size: 0.83rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.calc-note i {
    color: var(--accent-cyan-light);
    margin-left: 4px;
}

/* Calculator Results Panel */
.calc-results {
    background: rgba(0, 0, 0, 0.32);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 26px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

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

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

.calc-res-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

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

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

.calc-res-item.full-span {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.res-label {
    display: block;
    font-size: 0.82rem;
    color: var(--text-muted);
}

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

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

.res-sub {
    display: block;
    font-size: 0.78rem;
    color: var(--text-dim);
}

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

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

.breakdown-head span:last-child {
    color: var(--accent-cyan-light);
}

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

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

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

.breakdown-legend {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

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

.breakdown-legend i {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    display: inline-block;
}

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

/* ==========================================================================
   9. Benefits Section & Summary Callout
   ========================================================================== */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 275px), 1fr));
    gap: 22px;
    margin-bottom: 36px;
}

.benefit-card {
    padding: 26px 22px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-glass-hover);
    box-shadow: var(--shadow-card);
}

.benefit-icon {
    width: 48px;
    height: 48px;
    border-radius: 13px;
    background: rgba(245, 158, 11, 0.14);
    color: var(--accent-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 16px;
}

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

.benefit-card p {
    font-size: 0.9rem;
    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.08));
    border: 1px dashed rgba(245, 158, 11, 0.45);
}

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

.summary-callout h3 {
    font-size: 1.2rem;
    color: var(--accent-primary-light);
    margin-bottom: 4px;
}

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

/* ==========================================================================
   10. Before vs After Comparison & Target Sectors
   ========================================================================== */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
    margin-bottom: 52px;
}

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

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

.comp-card.after {
    border-color: rgba(16, 185, 129, 0.38);
    box-shadow: var(--glow-emerald);
}

.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 { color: #fb7185; font-size: 1.5rem; }
.comp-card.after .comp-header i { color: var(--accent-emerald-light); font-size: 1.5rem; }

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

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

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

.comp-card.before .comp-list li i { color: #fb7185; margin-top: 5px; }
.comp-card.after .comp-list li i { color: var(--accent-emerald-light); margin-top: 5px; }

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

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

.sector-card {
    padding: 26px 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(-5px);
    border-color: rgba(245, 158, 11, 0.45);
    box-shadow: var(--glow-gold);
}

.sector-card i {
    font-size: 1.9rem;
    color: var(--accent-primary-light);
    margin-bottom: 14px;
}

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

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

/* ==========================================================================
   11. Filterable Gallery & Lightbox
   ========================================================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
    gap: 24px;
}

.gallery-item {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.gallery-item:hover {
    transform: translateY(-6px);
    border-color: var(--border-glass-hover);
    box-shadow: var(--shadow-card), var(--glow-gold);
}

.gallery-img-wrap {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #020611;
}

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

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

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(4, 9, 20, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.zoom-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--grad-primary);
    color: #0a101d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.gallery-cat-badge {
    padding: 4px 12px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.14);
    color: var(--text-white);
    font-size: 0.78rem;
    font-weight: 700;
}

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

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

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

/* Lightbox Modal */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 14, 0.95);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 36px 76px;
}

.lightbox.active {
    display: flex;
}

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

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

.lightbox-caption {
    margin-top: 14px;
    color: var(--text-light);
    font-size: 0.98rem;
    font-weight: 700;
}

.lightbox-counter {
    margin-top: 6px;
    color: var(--accent-primary-light);
    font-size: 0.86rem;
    font-weight: 700;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    left: 24px;
    width: 44px;
    height: 44px;
    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.5rem;
    cursor: pointer;
}

.lightbox-close:hover {
    background: var(--accent-primary);
    color: #0a101d;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    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.2rem;
    cursor: pointer;
}

.lightbox-nav:hover {
    background: var(--accent-primary);
    color: #0a101d;
}

.lightbox-nav.prev { right: 20px; }
.lightbox-nav.next { left: 20px; }

/* ==========================================================================
   12. Lazy YouTube Video Section
   ========================================================================== */
.video-section {
    background: rgba(8, 19, 38, 0.58);
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
}

.video-wrapper {
    max-width: 920px;
    margin: 0 auto;
}

.video-container {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid rgba(245, 158, 11, 0.34);
    box-shadow: var(--shadow-lg), var(--glow-gold);
    background: #020611;
}

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

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

.video-facade img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.68);
    transition: var(--transition);
}

.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: 78px;
    height: 78px;
    border-radius: 50%;
    background: var(--grad-primary);
    color: #0a101d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 0 0 12px rgba(245, 158, 11, 0.25);
    transition: var(--transition);
}

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

.video-facade-label {
    position: absolute;
    bottom: 18px;
    right: 18px;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    background: rgba(4, 9, 20, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: var(--text-white);
    font-weight: 700;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.video-facade-label i {
    color: #ef4444;
}

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

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

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

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

.package-card {
    position: relative;
    padding: 34px 28px;
    border-radius: var(--radius-xl);
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

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

.package-card.featured {
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.14) 0%, rgba(10, 24, 46, 0.96) 100%);
    border-color: rgba(245, 158, 11, 0.55);
    box-shadow: var(--shadow-card), var(--glow-gold);
}

.package-ribbon {
    position: absolute;
    top: 18px;
    left: 20px;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    background: var(--grad-primary);
    color: #0a101d;
    font-family: 'Cairo', sans-serif;
    font-size: 0.8rem;
    font-weight: 900;
}

.package-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(14, 165, 233, 0.14);
    color: var(--accent-cyan-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 18px;
}

.package-card.featured .package-icon {
    background: rgba(245, 158, 11, 0.16);
    color: var(--accent-primary-light);
}

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

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

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

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

.package-list li i {
    color: var(--accent-primary-light);
    margin-top: 5px;
}

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

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

.faq-card.active {
    border-color: rgba(245, 158, 11, 0.45);
    box-shadow: var(--glow-gold);
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    background: transparent;
    border: none;
    color: var(--text-white);
    font-family: 'Cairo', sans-serif;
    font-size: 1.05rem;
    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-primary-light);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

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

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s ease;
}

.faq-card.active .faq-answer {
    grid-template-rows: 1fr;
}

.faq-answer p {
    overflow: hidden;
    padding: 0 24px;
    color: var(--text-muted);
    font-size: 0.96rem;
}

.faq-card.active .faq-answer p {
    padding: 0 24px 20px;
}

/* Final CTA Box */
.cta-box {
    text-align: center;
    padding: 58px 36px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.16) 0%, rgba(8, 19, 38, 0.95) 55%, rgba(14, 165, 233, 0.15) 100%);
    border: 1px solid rgba(245, 158, 11, 0.35);
    box-shadow: var(--shadow-lg), var(--glow-gold);
}

.cta-box h2 {
    font-size: clamp(1.7rem, 3.2vw, 2.5rem);
    margin-bottom: 14px;
}

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

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

/* ==========================================================================
   14. Related Solutions, Footer & Floating Actions
   ========================================================================== */
.related-solutions-section {
    background: linear-gradient(180deg, rgba(8, 19, 38, 0.72) 0%, #02050c 100%);
    border-top: 1px solid var(--border-glass);
}

.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-cyan-light);
    font-size: 0.86rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.related-header h2 {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    margin-bottom: 10px;
}

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

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
    gap: 24px;
    margin-bottom: 34px;
}

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

.related-card:hover {
    transform: translateY(-5px);
    border-color: rgba(56, 189, 248, 0.45);
    box-shadow: var(--shadow-card);
}

.related-card-img {
    aspect-ratio: 16 / 9.5;
    overflow: hidden;
    background: #020617;
}

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

.related-card:hover .related-card-img img {
    transform: scale(1.05);
}

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

.related-card-badge {
    align-self: flex-start;
    padding: 4px 11px;
    border-radius: var(--radius-full);
    background: rgba(56, 189, 248, 0.14);
    color: var(--accent-cyan-light);
    font-size: 0.76rem;
    font-weight: 800;
    margin-bottom: 10px;
}

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

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

.related-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-cyan-light);
    font-weight: 800;
    font-size: 0.88rem;
}

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

.site-footer {
    background: #02050c;
    border-top: 1px solid var(--border-glass);
    padding: 42px 0 34px;
    text-align: center;
}

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

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

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

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

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

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

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

.back-to-top {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: var(--text-white);
    font-size: 1rem;
    cursor: pointer;
    z-index: 980;
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-card);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent-primary);
    color: #0a101d;
    border-color: transparent;
}

.floating-wa {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 980;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 20px;
    border-radius: var(--radius-full);
    background: var(--grad-primary);
    color: #0a101d;
    font-family: 'Cairo', sans-serif;
    font-weight: 800;
    font-size: 0.92rem;
    box-shadow: 0 12px 28px rgba(245, 158, 11, 0.42);
}

.floating-wa:hover {
    transform: translateY(-3px);
    background: var(--grad-primary-hover);
}

.floating-wa i {
    font-size: 1.25rem;
}

/* ==========================================================================
   15. Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1180px) {
    .menu-toggle {
        display: inline-flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        width: 100%;
        max-height: calc(100dvh - 70px);
        overflow-y: auto;
        flex-direction: column;
        align-items: stretch;
        background: rgba(6, 13, 28, 0.98);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        border-bottom: 1px solid rgba(245, 158, 11, 0.3);
        padding: 16px 20px 22px;
        gap: 6px;
        z-index: 1045;
        box-shadow: 0 24px 48px rgba(0, 0, 0, 0.72);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        display: block;
        font-size: 0.98rem;
        width: 100%;
        padding: 10px 14px;
        border-radius: var(--radius-sm);
    }

    .nav-links a.nav-item:hover,
    .nav-links a.nav-item.active {
        background: rgba(245, 158, 11, 0.12);
        color: var(--accent-primary-light);
    }

    .nav-links a.nav-item::after {
        display: none;
    }

    .nav-hub-link {
        justify-content: center;
        margin-top: 6px;
        padding: 11px 14px !important;
    }
}

@media (max-width: 1120px) {
    .hero-grid,
    .explorer-panel-grid,
    .calc-wrapper {
        grid-template-columns: 1fr;
    }

    .hero { text-align: center; }
    .hero-desc { margin-left: auto; margin-right: auto; }
    .hero-quick-chips,
    .hero-btns,
    .breadcrumb-list {
        justify-content: center;
    }

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

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

    .packages-grid {
        grid-template-columns: 1fr;
        max-width: 560px;
        margin: 0 auto;
    }
}

@media (max-width: 900px) {
    .comparison-grid,
    .video-highlights {
        grid-template-columns: 1fr;
    }

    .badge-top-right { right: 8px; }
    .badge-bottom-left { left: 8px; }

    .lightbox { padding: 20px 16px; }

    .lightbox-nav {
        width: 40px;
        height: 40px;
        top: auto;
        bottom: 18px;
        transform: none;
    }

    .lightbox-nav.prev { right: 20px; }
    .lightbox-nav.next { left: 20px; }
}

@media (max-width: 640px) {
    section { padding: 64px 0; }
    .container { padding: 0 16px; }
    .hero { padding-top: 94px; padding-bottom: 56px; }

    .navbar {
        padding: 10px 14px;
        gap: 8px;
    }

    .navbar.scrolled {
        padding: 8px 14px;
    }

    .navbar-brand {
        font-size: 0.88rem;
        gap: 8px;
    }

    .brand-logo {
        width: 32px;
        height: 32px;
    }

    .navbar-cta span { display: none; }
    .navbar-cta {
        width: 40px;
        height: 40px;
        padding: 0;
        justify-content: center;
    }

    .menu-toggle {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .floating-badge {
        position: static;
        margin: 10px auto;
        width: 100%;
        max-width: 100%;
        justify-content: flex-start;
    }

    .hero-mockup-wrapper { padding: 0; }

    .btn,
    .btn-lg {
        white-space: normal;
        padding: 12px 18px;
        font-size: 0.92rem;
    }

    .metrics-grid,
    .workflow-grid,
    .sectors-grid,
    .calc-res-grid,
    .calc-two-cols,
    .explorer-tabs-nav,
    .split-sim-bars {
        grid-template-columns: 1fr;
    }

    .explorer-content-box,
    .calc-wrapper {
        padding: 18px 12px;
        gap: 20px;
        border-radius: var(--radius-lg);
    }

    .calc-results {
        padding: 18px 14px;
        gap: 14px;
    }

    .calc-currency-bar,
    .calc-presets-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .currency-pills,
    .preset-pills {
        width: 100%;
    }

    .preset-btn {
        white-space: normal;
        text-align: center;
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .calc-label-row {
        flex-wrap: wrap;
    }

    .calc-input-row input {
        font-size: 0.98rem;
        padding: 10px 12px;
    }

    .res-value {
        font-size: 1.12rem;
        word-break: break-word;
    }

    .breakdown-head,
    .breakdown-legend {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .cta-box {
        padding: 36px 18px;
        border-radius: var(--radius-lg);
    }

    .comp-card {
        padding: 22px 16px;
    }

    .package-card {
        padding: 26px 18px;
    }

    .faq-question {
        padding: 16px;
        font-size: 0.95rem;
    }

    .faq-answer p {
        padding: 0 16px;
    }

    .faq-card.active .faq-answer p {
        padding: 0 16px 16px;
    }

    .summary-callout {
        flex-direction: column;
        text-align: center;
        padding: 22px 18px;
    }

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

    .site-footer {
        padding-bottom: 84px;
    }

    .floating-wa span { display: none; }
    .floating-wa {
        width: 52px;
        height: 52px;
        padding: 0;
        justify-content: center;
        right: 16px;
        bottom: 16px;
    }

    .back-to-top {
        left: 16px;
        bottom: 16px;
        width: 42px;
        height: 42px;
    }

    .video-play-btn {
        width: 60px;
        height: 60px;
        font-size: 1.4rem;
    }

    .video-facade-label {
        font-size: 0.78rem;
        bottom: 10px;
        right: 10px;
    }
}

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

    .btn,
    .btn-lg {
        font-size: 0.88rem;
        padding: 11px 14px;
        gap: 8px;
    }

    .cta-box {
        padding: 28px 14px;
    }

    .calc-wrapper {
        padding: 16px 10px;
    }

    .calc-results {
        padding: 14px 12px;
    }

    .badge-pill {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

@media (max-width: 380px) {
    .navbar {
        padding: 9px 10px;
        gap: 6px;
    }

    .navbar-brand {
        font-size: 0.8rem;
        gap: 6px;
    }

    .brand-logo {
        width: 28px;
        height: 28px;
    }

    .navbar-cta,
    .menu-toggle {
        width: 36px;
        height: 36px;
    }
}

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