/* ==========================================================================
   NXT WAVE Stylesheet - Premium Design System
   ========================================================================== */

/* Design Tokens & Theme Variables */
:root {
    /* Fonts */
    --font-en: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-ar: 'IBM Plex Sans Arabic', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Layout & Spacing */
    --container-max-width: 1280px;
    --section-gap-desktop: 96px;
    --section-gap-tablet: 72px;
    --section-gap-mobile: 56px;
    
    /* Color Palette - Default Light Mode */
    --bg-body: #ffffff;
    --bg-section: #f7f9fc;
    --bg-card: #ffffff;
    --bg-card-hover: #ffffff;
    --color-main: #0f172a;
    --color-para: #475569;
    --border-color: #e2e8f0;
    
    --brand-navy: #0b1020;
    --brand-cyan: #00d4ff;
    --brand-purple: #6e5bff;
    --brand-gradient: linear-gradient(135deg, #00d4ff 0%, #6e5bff 100%);
    
    /* Fixed Interactive States */
    --btn-primary-bg: #6e5bff;
    --btn-primary-text: #ffffff;
    --btn-secondary-border: #00d4ff;
    --btn-secondary-text: #6e5bff;
    --badge-bg: rgba(110, 91, 255, 0.1);
    --badge-text: #6e5bff;
    
    /* Navbar */
    --navbar-padding-y: 10px;
    --navbar-padding-x: 24px;
    --navbar-logo-height: 36px;
    --navbar-height: 56px;

    /* Effects */
    --navbar-bg: rgba(255, 255, 255, 0.8);
    --navbar-border: rgba(226, 232, 240, 0.7);
    --shadow-card: 0 10px 30px -10px rgba(15, 23, 42, 0.08);
    --shadow-card-hover: 0 20px 40px -10px rgba(110, 91, 255, 0.15);
    --glow-opacity: 0.05;
    
    /* Transition Speed */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark Mode Overrides */
body.dark-mode {
    --bg-body: #050814;
    --bg-section: #0b1020;
    --bg-card: #0d1527;
    --bg-card-hover: #121c33;
    --color-main: #f8fafc;
    --color-para: #cbd5e1;
    --border-color: #1e293b;
    
    --btn-primary-bg: var(--brand-gradient);
    --btn-primary-text: #050814;
    --btn-secondary-text: #00d4ff;
    --badge-bg: rgba(0, 212, 255, 0.1);
    --badge-text: #00d4ff;
    
    --navbar-bg: rgba(5, 8, 20, 0.8);
    --navbar-border: rgba(30, 41, 59, 0.7);
    --shadow-card: 0 10px 30px -15px rgba(0, 0, 0, 0.5);
    --shadow-card-hover: 0 20px 40px -10px rgba(0, 212, 255, 0.15);
    --glow-opacity: 0.25;
}

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

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

body {
    position: relative;
    background-color: var(--bg-body);
    color: var(--color-main);
    font-family: var(--font-en);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-normal), color var(--transition-normal);
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

/* Language Override (RTL support via logical properties) */
html[dir="rtl"] body {
    font-family: var(--font-ar);
    line-height: 1.8;
}

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

ul {
    list-style: none;
}

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

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background: none;
    border: none;
    outline: none;
}

/* Background Glow Effects */
.glow-bg {
    position: absolute;
    inset: 0;
    min-height: 100%;
    width: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(0, 212, 255, var(--glow-opacity)), transparent 40%),
                radial-gradient(circle at 20% 80%, rgba(110, 91, 255, var(--glow-opacity)), transparent 45%);
    pointer-events: none;
    z-index: 0;
    transition: background var(--transition-normal);
}

/* Dynamic glow elements that can follow elements */
.glowing-blob {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: var(--brand-gradient);
    filter: blur(120px);
    opacity: 0.12;
    pointer-events: none;
    z-index: 0;
}

/* Containers */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin-inline: auto;
    padding-inline: 24px;
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   Header & Sticky Navigation (Glassmorphic)
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--navbar-bg);
    border-bottom: 1px solid var(--navbar-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: background-color var(--transition-normal), border-bottom var(--transition-normal), transform var(--transition-normal);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: var(--container-max-width);
    margin-inline: auto;
    padding: var(--navbar-padding-y) var(--navbar-padding-x);
    min-height: var(--navbar-height);
}

/* Logo container & invert effect in dark mode */
.logo-container {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    line-height: 0;
}

.brand-logo {
    height: var(--navbar-logo-height);
    width: auto;
    transition: filter var(--transition-normal);
}

body.dark-mode .brand-logo {
    /* Filters to make the dark components of the logo readable on dark backgrounds */
    filter: brightness(0) invert(1) drop-shadow(0 0 4px rgba(0, 212, 255, 0.4));
}

/* Dual-logo swap (light + dark). We show the light logo by default
   and the dark logo when `body.dark-mode` is present. */
.logo-light { display: block; }
.logo-dark { display: none; }

body.dark-mode .logo-light { display: none; }
body.dark-mode .logo-dark { display: block; filter: none; }

/* Keep size consistent for variants */
.brand-logo.logo-light, .brand-logo.logo-dark { height: var(--navbar-logo-height); width: auto; }

.desktop-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 4px;
    min-width: 0;
}

.menu-item-wrapper {
    position: relative;
    padding-block: 4px;
}

.menu-link {
    font-size: 0.875rem;
    font-weight: 600;
    padding: 6px 11px;
    border-radius: 8px;
    color: var(--color-para);
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.menu-link:hover, .menu-link.active {
    color: var(--color-main);
    background-color: rgba(110, 91, 255, 0.06);
}

body.dark-mode .menu-link:hover, body.dark-mode .menu-link.active {
    background-color: rgba(0, 212, 255, 0.06);
    color: var(--brand-cyan);
}

.nav-chevron {
    font-size: 0.75rem;
    transition: transform var(--transition-fast);
}

.menu-item-wrapper:hover .nav-chevron {
    transform: rotate(180deg);
}

/* Temporarily hidden navbar links — pages remain live and reachable via direct URL/footer */
.menu-item-wrapper:has([data-nav="industries"]),
.menu-item-wrapper:has([data-nav="blog"]),
.drawer-links a[href="industries.html"],
.drawer-links a[href="blog.html"] {
    display: none;
}

/* Mega Menu Structure */
.has-mega {
    position: static; /* Allows full-width mega menu relative to navbar container */
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 24px;
    right: 24px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow-card-hover);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity var(--transition-normal), transform var(--transition-normal), visibility var(--transition-normal);
    z-index: 1010;
}

.menu-item-wrapper:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

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

.mega-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mega-title {
    font-size: 0.875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--brand-purple);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

body.dark-mode .mega-title {
    color: var(--brand-cyan);
}

.mega-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mega-link {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-para);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 0;
}

.mega-link i {
    font-size: 0.9rem;
    color: var(--brand-purple);
    transition: transform var(--transition-fast);
}

body.dark-mode .mega-link i {
    color: var(--brand-cyan);
}

.mega-link:hover {
    color: var(--color-main);
}

.mega-link:hover i {
    transform: scale(1.2);
}

/* Services Mega Menu Layout */
.mega-grid-services {
    max-width: 900px;
    margin: 0 auto;
}

.mega-col-full {
    width: 100%;
}

.mega-services-subgrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 16px;
}

.service-mega-item {
    display: flex;
    gap: 14px;
    padding: 14px;
    border-radius: 12px;
    transition: background-color var(--transition-fast);
}

.service-mega-item:hover {
    background-color: rgba(110, 91, 255, 0.05);
}

body.dark-mode .service-mega-item:hover {
    background-color: rgba(0, 212, 255, 0.05);
}

.smi-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: var(--badge-bg);
    color: var(--badge-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.smi-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.smi-name {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--color-main);
}

.smi-desc {
    font-size: 0.8125rem;
    color: var(--color-para);
    line-height: 1.3;
}

/* Navigation Controls (buttons, switchers) */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.nav-controls .btn {
    padding: 7px 14px;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 8px;
    white-space: nowrap;
}

.nav-controls .btn-primary.btn-demo {
    box-shadow: 0 2px 6px rgba(110, 91, 255, 0.15);
}

.nav-controls .btn-primary.btn-demo:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(110, 91, 255, 0.25);
}

body.dark-mode .nav-controls .btn-primary.btn-demo {
    box-shadow: 0 2px 6px rgba(0, 212, 255, 0.12);
}

body.dark-mode .nav-controls .btn-primary.btn-demo:hover {
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.2);
}

.nav-controls .btn-consult {
    padding: 7px 12px;
    border-color: transparent;
    background-color: transparent;
    box-shadow: none;
}

.nav-controls .btn-consult:hover {
    background-color: rgba(110, 91, 255, 0.06);
    border-color: transparent;
}

body.dark-mode .nav-controls .btn-consult:hover {
    background-color: rgba(0, 212, 255, 0.06);
    border-color: transparent;
}

.theme-toggle, .lang-toggle {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.8125rem;
    background-color: var(--bg-card);
    box-shadow: none;
    flex-shrink: 0;
    transition: border-color var(--transition-fast), background-color var(--transition-fast), transform var(--transition-fast);
}

.theme-toggle:hover, .lang-toggle:hover {
    border-color: var(--brand-purple);
    transform: translateY(-1px);
}

body.dark-mode .theme-toggle:hover, body.dark-mode .lang-toggle:hover {
    border-color: var(--brand-cyan);
}

.theme-toggle i {
    font-size: 1rem;
    transition: transform var(--transition-normal);
}

.theme-toggle .sun-icon {
    display: none;
    color: #f59e0b;
}

.theme-toggle .moon-icon {
    display: block;
    color: #64748b;
}

body.dark-mode .theme-toggle .sun-icon {
    display: block;
}

body.dark-mode .theme-toggle .moon-icon {
    display: none;
}

/* Buttons System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-weight: 700;
    font-size: 0.9375rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
}

.btn-primary {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    box-shadow: 0 4px 14px rgba(110, 91, 255, 0.3);
}

body.dark-mode .btn-primary {
    box-shadow: 0 4px 14px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(110, 91, 255, 0.4);
}

body.dark-mode .btn-primary:hover {
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.45);
}

.btn-consult {
    border: 1px solid var(--border-color);
    color: var(--color-para);
    background-color: var(--bg-card);
}

.btn-consult:hover {
    border-color: var(--brand-purple);
    color: var(--brand-purple);
    transform: translateY(-2px);
}

body.dark-mode .btn-consult:hover {
    border-color: var(--brand-cyan);
    color: var(--brand-cyan);
}

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

.btn-outline:hover {
    background: rgba(0, 212, 255, 0.05);
    transform: translateY(-2px);
}

.w-100 {
    width: 100%;
}

/* Mobile Hamburger & Drawer */
.mobile-hamburger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-card);
    font-size: 1.1rem;
    padding: 0;
    cursor: pointer;
    color: var(--color-main);
    flex-shrink: 0;
    transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.mobile-hamburger:hover {
    border-color: var(--brand-purple);
}

body.dark-mode .mobile-hamburger:hover {
    border-color: var(--brand-cyan);
}

.mobile-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 8, 20, 0.6);
    backdrop-filter: blur(8px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.mobile-drawer-overlay.open {
    opacity: 1;
    visibility: visible;
}

.drawer-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 320px;
    height: 100%;
    background-color: var(--bg-body);
    box-shadow: 10px 0 30px rgba(0,0,0,0.15);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    transform: translateX(-100%);
    transition: transform var(--transition-normal);
}

html[dir="rtl"] .drawer-content {
    left: auto;
    right: 0;
    transform: translateX(100%);
}

.mobile-drawer-overlay.open .drawer-content {
    transform: translateX(0);
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.drawer-logo {
    height: 40px;
}

.drawer-close {
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-para);
}

.drawer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    flex-grow: 1;
}

.drawer-link {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-para);
    padding: 10px 14px;
    border-radius: 10px;
}

.drawer-link:hover, .drawer-link.active {
    background-color: var(--bg-section);
    color: var(--brand-purple);
}

body.dark-mode .drawer-link:hover, body.dark-mode .drawer-link.active {
    color: var(--brand-cyan);
}

.drawer-collapsible {
    display: flex;
    flex-direction: column;
}

.drawer-collapsible-btn {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-para);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    cursor: pointer;
}

.drawer-collapsible-content {
    display: none;
    flex-direction: column;
    padding-inline-start: 24px;
    gap: 8px;
    margin-top: 4px;
}

.drawer-collapsible.open .drawer-collapsible-content {
    display: flex;
}

.drawer-collapsible.open .drawer-collapsible-btn i {
    transform: rotate(180deg);
}

.drawer-sublink {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-para);
    padding: 6px 14px;
}

.drawer-sublink:hover {
    color: var(--brand-purple);
}

body.dark-mode .drawer-sublink:hover {
    color: var(--brand-cyan);
}

/* ==========================================================================
   Page Layout & Common Components
   ========================================================================== */
#app-view {
    margin-top: var(--navbar-height);
    flex-grow: 1;
    position: relative;
    z-index: 1;
}

.page-fade-in {
    animation: fadeIn var(--transition-normal) forwards;
}

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

/* Section Styling */
.section {
    padding-block: var(--section-gap-desktop);
}

.section-bg {
    background-color: var(--bg-section);
}

.section-dark {
    background-color: var(--brand-navy);
    color: #f8fafc;
}

.section-dark .section-para {
    color: #cbd5e1;
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 56px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 20px;
    background: var(--badge-bg);
    color: var(--badge-text);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: inherit;
}

.section-para {
    font-size: 1.125rem;
    color: var(--color-para);
}

/* Grids & Cards */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    align-items: center;
}

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

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

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

.screenshot-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.screenshot-tile {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    text-align: center;
    color: var(--color-main);
}

.screenshot-card {
    width: 100%;
    height: 170px;
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(14, 25, 45, 0.9), rgba(12, 20, 39, 0.6));
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: var(--shadow-card);
}

/* Generic Premium Card */
.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--shadow-card);
    transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal), background-color var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--brand-purple);
    box-shadow: var(--shadow-card-hover);
    background-color: var(--bg-card-hover);
}

body.dark-mode .card:hover {
    border-color: var(--brand-cyan);
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--badge-bg);
    color: var(--badge-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 24px;
}

.card-title {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.card-desc {
    font-size: 0.96875rem;
    color: var(--color-para);
    margin-bottom: 20px;
}

.card-link {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--brand-purple);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

body.dark-mode .card-link {
    color: var(--brand-cyan);
}

.card-link i {
    transition: transform var(--transition-fast);
}

.card-link:hover i {
    transform: translateX(4px);
}

html[dir="rtl"] .card-link .fa-arrow-right-long {
    transform: scaleX(-1);
}

html[dir="rtl"] .card-link:hover i {
    transform: scaleX(-1) translateX(-4px);
}

/* ==========================================================================
   Page specific components
   ========================================================================== */

/* 1. Hero Section */
.hero-section {
    position: relative;
    padding-top: 80px;
    padding-bottom: 120px;
    background-color: var(--brand-navy);
    color: #ffffff;
    overflow: hidden;
}

.hero-section .glow-bg {
    opacity: 0.4;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

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

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    z-index: 2;
}

.hero-headline {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    background: linear-gradient(135deg, #ffffff 30%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #cbd5e1;
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    gap: 16px;
    width: 100%;
}

/* Premium Visual Mockups System (Pure CSS) */
.hero-visual {
    position: relative;
    z-index: 2;
    height: 480px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mockup-glow {
    position: absolute;
    width: 320px;
    height: 320px;
    background: var(--brand-gradient);
    filter: blur(80px);
    opacity: 0.3;
    z-index: 1;
}

/* CSS Dashboard Mockup */
.dashboard-mockup {
    position: absolute;
    width: 440px;
    height: 290px;
    background: rgba(13, 21, 39, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4), inset 0 1px 1px rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 2;
    overflow: hidden;
    display: flex;
    transform: perspective(1000px) rotateY(-12deg) rotateX(8deg);
    transition: transform var(--transition-slow);
}

.hero-visual:hover .dashboard-mockup {
    transform: perspective(1000px) rotateY(-5deg) rotateX(3deg) translateY(-5px);
}

.db-sidebar {
    width: 80px;
    background: rgba(11, 16, 32, 0.5);
    border-inline-end: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.db-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--brand-cyan);
    margin-bottom: 8px;
}

.db-nav-item {
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.db-nav-item.active {
    background: var(--brand-cyan);
}

.db-body {
    flex-grow: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.db-header-mock {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.db-title-mock {
    width: 100px;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 6px;
}

.db-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.db-stat-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.db-stat-label {
    width: 40px;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.db-stat-value {
    width: 25px;
    height: 10px;
    background: var(--brand-cyan);
    border-radius: 4px;
}

.db-chart {
    height: 120px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px;
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.db-chart::before {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 10px;
    right: 10px;
    height: 1px;
    background: rgba(255,255,255,0.08);
}

.chart-bar {
    flex-grow: 1;
    background: linear-gradient(to top, var(--brand-purple), var(--brand-cyan));
    border-radius: 4px 4px 0 0;
    transition: height var(--transition-slow);
}

/* CSS Mobile App Mockup (overlapping) */
.mobile-mockup {
    position: absolute;
    width: 180px;
    height: 340px;
    background: #0d1527;
    border: 3px solid rgba(255, 255, 255, 0.15);
    border-radius: 28px;
    box-shadow: 0 40px 80px rgba(0,0,0,0.5);
    inset-inline-end: 20px;
    bottom: 20px;
    z-index: 3;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: perspective(1000px) rotateY(-15deg) rotateX(5deg) translateZ(30px);
    transition: transform var(--transition-slow);
}

.hero-visual:hover .mobile-mockup {
    transform: perspective(1000px) rotateY(-8deg) rotateX(1deg) translateZ(50px) translateY(-8px);
}

.mob-speaker {
    width: 50px;
    height: 12px;
    background: #1e293b;
    border-radius: 0 0 8px 8px;
    margin: 0 auto 16px auto;
}

.mob-content {
    flex-grow: 1;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mob-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mob-text-large {
    width: 80px;
    height: 8px;
    background: rgba(255,255,255,0.3);
    border-radius: 4px;
}

.mob-text-small {
    width: 110px;
    height: 5px;
    background: rgba(255,255,255,0.15);
    border-radius: 3px;
}

.mob-map {
    height: 100px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.mob-map-pin {
    position: absolute;
    top: 45%;
    left: 45%;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--brand-cyan);
    box-shadow: 0 0 10px var(--brand-cyan);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.6; }
    100% { transform: scale(0.9); opacity: 1; }
}

/* 2. Trust Bar */
.trust-bar {
    padding-block: 24px;
    border-block: 1px solid var(--border-color);
    background-color: var(--bg-body);
    text-align: center;
}

.trust-flex {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 32px;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-para);
    padding: 6px 14px;
    border-radius: 8px;
    background: var(--bg-section);
}

.trust-badge i {
    color: var(--brand-cyan);
}

/* 3. Product Ecosystem (Central Logo + Orbit Nodes) */
.ecosystem-section {
    position: relative;
    overflow: hidden;
}

.ecosystem-categories {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.category-tab {
    padding: 10px 20px;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9375rem;
    cursor: pointer;
    background-color: var(--bg-card);
    transition: all var(--transition-fast);
}

.category-tab:hover, .category-tab.active {
    border-color: var(--brand-purple);
    color: var(--brand-purple);
    background-color: rgba(110, 91, 255, 0.05);
}

body.dark-mode .category-tab:hover, body.dark-mode .category-tab.active {
    border-color: var(--brand-cyan);
    color: var(--brand-cyan);
    background-color: rgba(0, 212, 255, 0.05);
}

/* 4. Products Cards Lists */
.product-bullets {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.product-bullet {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    color: var(--color-para);
}

.product-bullet i {
    color: var(--brand-cyan);
    font-size: 0.8rem;
}

/* 5. Process Steps */
.process-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
    margin-top: 40px;
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.process-step-num {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--brand-gradient);
    color: var(--brand-navy);
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0,212,255,0.2);
}

.process-step-name {
    font-size: 0.875rem;
    font-weight: 700;
}

/* 6. Form elements */
.form-container {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-card);
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-main);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-section);
    border-radius: 10px;
    color: var(--color-main);
    transition: all var(--transition-fast);
}

.form-control:focus {
    border-color: var(--brand-purple);
    background-color: var(--bg-card);
    box-shadow: 0 0 0 3px rgba(110, 91, 255, 0.15);
}

body.dark-mode .form-control:focus {
    border-color: var(--brand-cyan);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Multi-step layout */
.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 32px;
    position: relative;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--border-color);
    z-index: 1;
}

.step-indicator-node {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--bg-card);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    z-index: 2;
    transition: all var(--transition-fast);
}

.step-indicator-node.active {
    border-color: var(--brand-purple);
    color: var(--brand-purple);
    background-color: rgba(110, 91, 255, 0.05);
}

body.dark-mode .step-indicator-node.active {
    border-color: var(--brand-cyan);
    color: var(--brand-cyan);
    background-color: rgba(0, 212, 255, 0.05);
}

.step-indicator-node.completed {
    background-color: var(--brand-purple);
    border-color: var(--brand-purple);
    color: white;
}

body.dark-mode .step-indicator-node.completed {
    background-color: var(--brand-cyan);
    border-color: var(--brand-cyan);
    color: var(--brand-navy);
}

.form-step-panel {
    display: none;
}

.form-step-panel.active {
    display: block;
}

.form-step-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 32px;
}

/* FAQ Accordion */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color var(--transition-fast);
}

.faq-trigger {
    width: 100%;
    padding: 24px;
    text-align: start;
    font-size: 1.125rem;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-trigger i {
    font-size: 0.9rem;
    transition: transform var(--transition-normal);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    padding-inline: 24px;
    transition: max-height var(--transition-normal) ease-out, padding-block var(--transition-normal) ease-out;
    color: var(--color-para);
    font-size: 0.96875rem;
    border-top: 0 solid transparent;
}

.faq-item.active {
    border-color: var(--brand-purple);
}

body.dark-mode .faq-item.active {
    border-color: var(--brand-cyan);
}

.faq-item.active .faq-trigger i {
    transform: rotate(180deg);
}

.faq-item.active .faq-content {
    max-height: 200px;
    padding-bottom: 24px;
    border-top: 1px solid var(--border-color);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--brand-navy);
    color: #f8fafc;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 80px;
}

.footer-container {
    max-width: var(--container-max-width);
    margin-inline: auto;
    padding-inline: 24px;
    display: grid;
    grid-template-columns: 1.2fr repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.brand-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    height: 44px;
    width: auto;
    align-self: flex-start;
    filter: brightness(0) invert(1);
}

.footer-desc {
    font-size: 0.9375rem;
    color: #cbd5e1;
    line-height: 1.6;
}

.footer-markets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.market-badge {
    font-size: 0.75rem;
    font-weight: 700;
    color: #00d4ff;
    border: 1px solid rgba(0, 212, 255, 0.3);
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(0, 212, 255, 0.05);
}

.footer-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.9375rem;
    color: #cbd5e1;
}

.footer-links a:hover {
    color: var(--brand-cyan);
    padding-inline-start: 4px;
}

.footer-contact-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
    color: #cbd5e1;
    font-size: 0.9375rem;
}

.footer-contact-details li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-contact-details i {
    color: var(--brand-cyan);
    font-size: 1.05rem;
}

.whatsapp-btn-footer {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25d366;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.2);
}

.whatsapp-btn-footer:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(37, 211, 102, 0.35);
}

.footer-contact-btn {
    display: inline-block;
    border: 1px solid rgba(255,255,255,0.15);
    padding: 8px 16px;
    border-radius: 8px;
    text-align: center;
}

.footer-contact-btn:hover {
    border-color: var(--brand-cyan);
    color: var(--brand-cyan);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-block: 24px;
    background-color: rgba(5, 8, 20, 0.5);
}

.footer-bottom-container {
    max-width: var(--container-max-width);
    margin-inline: auto;
    padding-inline: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    color: #94a3b8;
    font-size: 0.875rem;
}

.footer-legal-links {
    display: flex;
    gap: 24px;
}

.footer-legal-links a:hover {
    color: var(--brand-cyan);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* Large tablet / small desktop — ease nav density */
@media (max-width: 1200px) {
    .nav-controls .btn-consult {
        display: none;
    }

    .menu-link {
        padding: 6px 9px;
        font-size: 0.8125rem;
    }
}

/* Tablet Layout (8 Columns) */
@media (max-width: 1024px) {
    :root {
        --section-gap-desktop: var(--section-gap-tablet);
        --navbar-logo-height: 32px;
        --navbar-padding-y: 10px;
        --navbar-padding-x: 20px;
        --navbar-height: 52px;
    }
    
    .desktop-menu {
        display: none;
    }
    
    .btn-consult {
        display: none; /* Hide on smaller screens to save space */
    }
    
    .mobile-hamburger {
        display: flex;
    }

    .nav-controls {
        gap: 6px;
    }

    .nav-controls .btn-primary.btn-demo {
        padding: 6px 12px;
        font-size: 0.8125rem;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-headline {
        font-size: 2.8rem;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-visual {
        height: 380px;
    }
    
    .dashboard-mockup {
        width: 380px;
        height: 250px;
    }
    
    .mobile-mockup {
        width: 150px;
        height: 280px;
        inset-inline-end: 10px;
        bottom: 10px;
    }
    
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-container {
        grid-template-columns: 1.5fr 1fr;
        gap: 32px;
    }
    
    .process-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

/* Mobile Layout (4 Columns) */
@media (max-width: 640px) {
    :root {
        --section-gap-desktop: var(--section-gap-mobile);
        --navbar-logo-height: 30px;
        --navbar-padding-y: 8px;
        --navbar-padding-x: 16px;
        --navbar-height: 48px;
    }
    
    .btn-demo {
        display: none; /* Only show in mobile drawer */
    }

    .theme-toggle, .lang-toggle {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }

    .mobile-hamburger {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    .hero-headline {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.05rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .hero-visual {
        height: 280px;
    }
    
    .dashboard-mockup {
        width: 280px;
        height: 180px;
        transform: none !important;
    }
    
    .mobile-mockup {
        display: none; /* Hide secondary mockup to save space */
    }
    
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .section-title {
        font-size: 1.85rem;
    }
    
    .section-para {
        font-size: 1rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .footer-col {
        border-bottom: 1px solid rgba(255,255,255,0.05);
        padding-bottom: 24px;
    }
    
    .footer-col:last-child {
        border-bottom: none;
    }
    
    .footer-title {
        margin-bottom: 12px;
    }
    
    .footer-bottom-container {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .form-container {
        padding: 24px 16px;
    }
    
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Home & product image blocks */
.hero-section-image {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 640px;
    height: auto;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
    object-fit: cover;
}

.section-banner-image {
    display: block;
    width: 100%;
    max-width: 1000px;
    height: auto;
    margin: 0 auto 32px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    object-fit: cover;
}

.technology-section-image {
    display: block;
    width: 100%;
    max-width: 420px;
    height: auto;
    margin: 0 auto 20px;
    border-radius: 12px;
    object-fit: cover;
}

.product-card-image {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 16px;
}

.final-cta-section {
    background-repeat: no-repeat;
}

/* ==========================================================================
   Home Page Visual Polish
   ========================================================================== */

.page-home .hero-grid {
    align-items: center;
}

.page-home .hero-content {
    align-items: flex-start;
}

.page-home .hero-section-image {
    max-width: 580px;
    border-radius: 20px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;
}

.page-home .hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-home .section-banner-image {
    max-width: 960px;
    border-radius: 20px;
    max-height: min(420px, 50vw);
    object-fit: cover;
}

.page-home .section-dark .section-banner-image {
    border-color: rgba(255, 255, 255, 0.12);
}

.page-home .technology-card {
    background: var(--bg-section);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    text-align: center;
}

/* Why & ecosystem cards — consistent readable contrast in light mode */
body:not(.dark-mode) .page-home .section:not(.section-dark) .card .card-title {
    color: var(--color-main);
}

body:not(.dark-mode) .page-home .section:not(.section-dark) .card .card-desc {
    color: #475569;
}

body:not(.dark-mode) .page-home .section:not(.section-dark) .card-icon {
    background: rgba(110, 91, 255, 0.14);
    color: #5548e8;
}

.page-home .grid-3 .card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Services section — fix washed-out cards in light mode */
body:not(.dark-mode) .page-home .section-dark .service-card {
    background-color: #ffffff;
    border-color: rgba(255, 255, 255, 0.18);
    color: #0f172a;
    box-shadow: 0 16px 48px -16px rgba(0, 0, 0, 0.4);
}

body:not(.dark-mode) .page-home .section-dark .service-card .card-title {
    color: #0f172a;
}

body:not(.dark-mode) .page-home .section-dark .service-card .card-desc {
    color: #475569;
}

body:not(.dark-mode) .page-home .section-dark .service-card .card-icon {
    background: rgba(110, 91, 255, 0.14);
    color: #5548e8;
}

body:not(.dark-mode) .page-home .section-dark .service-card .card-link {
    color: #5548e8;
}

body:not(.dark-mode) .page-home .section-dark .service-card:hover {
    border-color: rgba(110, 91, 255, 0.5);
    background-color: #ffffff;
    box-shadow: 0 24px 52px -14px rgba(110, 91, 255, 0.28);
}

body.dark-mode .page-home .section-dark .service-card {
    background-color: #121c33;
    border-color: rgba(255, 255, 255, 0.08);
}

.page-home .section-dark .grid-4 {
    align-items: stretch;
}

.page-home .service-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-home .service-card .card-desc {
    flex-grow: 1;
    margin-bottom: 24px;
}

.page-home .service-card .card-link {
    margin-top: auto;
}

/* Product cards — aligned layout across varying copy lengths */
.page-home .ecosystem-section .grid-4 {
    align-items: stretch;
}

.page-home .product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 24px;
}

.page-home .product-card-image {
    height: 160px;
    margin-bottom: 16px;
    flex-shrink: 0;
}

.page-home .product-card-badge {
    margin-bottom: 12px;
    align-self: flex-start;
}

.page-home .product-card .card-title {
    margin-bottom: 10px;
}

.page-home .product-card .card-desc {
    flex-grow: 1;
    margin-bottom: 16px;
    line-height: 1.55;
}

.page-home .product-bullets {
    margin-bottom: 20px;
}

.page-home .product-card .card-link {
    margin-top: auto;
    padding-top: 4px;
}

.page-home .product-bullet {
    align-items: flex-start;
    line-height: 1.45;
}

.page-home .product-bullet i {
    margin-top: 0.25em;
    flex-shrink: 0;
}

body:not(.dark-mode) .page-home .product-bullet i {
    color: #0ea5c9;
}

/* Final CTA — readable overlay in both themes */
.page-home .final-cta-section {
    position: relative;
    text-align: center;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.page-home .final-cta-section--has-image {
    background-image: var(--final-cta-bg);
}

.page-home .final-cta-section--has-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(11, 16, 32, 0.88) 0%,
        rgba(11, 16, 32, 0.76) 50%,
        rgba(11, 16, 32, 0.86) 100%
    );
    z-index: 0;
}

body:not(.dark-mode) .page-home .final-cta-section--has-image::before {
    background: linear-gradient(
        135deg,
        rgba(11, 16, 32, 0.84) 0%,
        rgba(11, 16, 32, 0.7) 50%,
        rgba(11, 16, 32, 0.82) 100%
    );
}

.page-home .final-cta-inner {
    position: relative;
    z-index: 1;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
    margin-inline: auto;
}

.page-home .final-cta-section .section-title {
    color: #ffffff;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.page-home .final-cta-section .section-para {
    color: #e2e8f0;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
}

/* Footer readability */
.footer-social-links {
    display: flex;
    gap: 14px;
    margin-top: 18px;
}

.footer-social-links a {
    color: #cbd5e1;
    font-size: 1.1rem;
    transition: color var(--transition-fast);
}

.footer-social-links a:hover {
    color: var(--brand-cyan);
}

.footer-links a {
    line-height: 1.5;
}

html[dir="rtl"] .footer-title {
    letter-spacing: 0;
    text-transform: none;
}

html[dir="rtl"] .footer-contact-details li {
    text-align: start;
}

/* Home page responsive polish */
@media (max-width: 1024px) {
    .page-home .hero-content {
        align-items: center;
    }
}

@media (max-width: 640px) {
    .page-home .section-banner-image {
        max-height: 220px;
        border-radius: 16px;
        margin-bottom: 24px;
    }

    .page-home .hero-section-image {
        max-height: 260px;
        aspect-ratio: auto;
    }

    .page-home .hero-visual {
        height: auto;
        min-height: 240px;
        padding-block: 8px;
    }

    .page-home .technology-card {
        padding: 28px 20px;
    }

    .page-home .product-card {
        padding: 20px;
    }

    .page-home .product-card-image {
        height: 150px;
    }
}

/* ==========================================================================
   About Page
   ========================================================================== */

.page-about {
    position: relative;
}

/* Section rhythm — consistent premium spacing */
.page-about > .section {
    padding-block: 64px;
}

.page-about .about-hero-section {
    padding-block-start: calc(64px + 8px);
    padding-block-end: 44px;
}

.page-about .about-story-section {
    padding-block-start: 44px;
    padding-block-end: 56px;
}

.page-about .about-vision-section,
.page-about .about-values-section,
.page-about .about-how-section {
    padding-block: 56px;
}

.page-about .about-team-section {
    padding-block-start: 56px;
    padding-block-end: 64px;
}

.page-about .final-cta-section {
    padding-block: 64px;
}

/* —— Hero —— */
.page-about .about-hero-section {
    position: relative;
    overflow-x: clip;
    overflow-y: visible;
}

.page-about .about-hero-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 55% 45% at 85% 25%, rgba(0, 212, 255, 0.1), transparent 60%),
        radial-gradient(ellipse 45% 40% at 15% 75%, rgba(110, 91, 255, 0.08), transparent 55%);
    z-index: 0;
}

body.dark-mode .page-about .about-hero-glow {
    background:
        radial-gradient(ellipse 55% 45% at 85% 25%, rgba(0, 212, 255, 0.16), transparent 60%),
        radial-gradient(ellipse 45% 40% at 15% 75%, rgba(110, 91, 255, 0.14), transparent 55%);
}

.page-about .about-hero-section .container {
    position: relative;
    z-index: 1;
}

.page-about .about-hero-grid {
    display: grid;
    grid-template-columns: 0.94fr 1.06fr;
    gap: 28px;
    align-items: center;
    padding-block: 4px;
}

.page-about .about-hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

.page-about .about-hero-section .section-header {
    text-align: start;
    align-items: flex-start;
    margin-inline: 0;
    margin-bottom: 18px;
    max-width: 500px;
}

.page-about .about-hero-section .section-title {
    text-align: start;
    font-size: 2.25rem;
    line-height: 1.2;
}

.page-about .about-hero-section .section-para {
    text-align: start;
    font-size: 1.0625rem;
    line-height: 1.65;
}

.page-about .about-hero-section .badge {
    text-transform: none;
    letter-spacing: 0.02em;
    line-height: 1.45;
    text-align: start;
    white-space: normal;
    max-width: 100%;
    hyphens: auto;
}

html[dir="rtl"] .page-about .about-hero-section .badge {
    letter-spacing: 0;
}

.page-about .about-hero-actions {
    justify-content: flex-start;
    margin-top: 4px;
    width: 100%;
    max-width: 500px;
    flex-wrap: wrap;
}

/* Hero decorative visual */
.page-about .about-hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding-block: 12px;
    overflow: visible;
}

.page-about .about-hero-visual-glow {
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: var(--brand-gradient);
    filter: blur(80px);
    opacity: 0.26;
    z-index: 0;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
}

.page-about .about-hero-visual-frame {
    position: relative;
    width: 100%;
    max-width: 480px;
    border-radius: 20px;
    border: 1px solid rgba(110, 91, 255, 0.14);
    background: var(--bg-card);
    box-shadow:
        0 20px 50px -24px rgba(15, 23, 42, 0.18),
        0 0 0 1px rgba(0, 212, 255, 0.06);
    overflow: hidden;
    z-index: 1;
    margin-block: 0;
}

body.dark-mode .page-about .about-hero-visual-frame {
    border-color: rgba(0, 212, 255, 0.14);
    box-shadow:
        0 28px 56px -20px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(0, 212, 255, 0.08);
}

.page-about .about-hero-visual-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: min(380px, 44vh);
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;
    opacity: 0.95;
}

.page-about .about-hero-mesh {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.06) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent 85%);
    pointer-events: none;
    z-index: 2;
}

.page-about .about-hero-node {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--brand-cyan);
    box-shadow: 0 0 12px var(--brand-cyan);
    z-index: 3;
}

.page-about .about-hero-node--1 { top: 18%; inset-inline-end: 14%; }
.page-about .about-hero-node--2 { bottom: 28%; inset-inline-start: 12%; }
.page-about .about-hero-node--3 { top: 42%; inset-inline-start: 48%; opacity: 0.7; }

/* —— Company story —— */
.page-about .about-story-section {
    position: relative;
    overflow-x: clip;
    overflow-y: visible;
}

.page-about .about-story-grid {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 32px;
    align-items: center;
}

.page-about .about-story-copy .section-header {
    text-align: start;
    align-items: flex-start;
    margin-inline: 0;
    margin-bottom: 20px;
    max-width: none;
    padding-inline-start: 0;
}

.page-about .about-story-body {
    max-width: 100%;
    margin-inline: 0;
    padding-inline-start: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: start;
}

.page-about .about-story-body .section-para {
    font-size: 1rem;
    line-height: 1.72;
    margin-bottom: 0;
    color: var(--color-para);
    max-width: 52ch;
}

html[dir="rtl"] .page-about .about-story-body .section-para {
    line-height: 1.82;
}

.page-about .about-story-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-block: 8px;
}

.page-about .about-story-visual-frame {
    position: relative;
    width: 100%;
    max-width: 400px;
    border-radius: 18px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

body.dark-mode .page-about .about-story-visual-frame {
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 36px -18px rgba(0, 0, 0, 0.38);
}

.page-about .about-story-visual-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: min(320px, 36vh);
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;
}

/* Shared visual overlay — hero + company story */
.page-about .about-visual-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        145deg,
        rgba(11, 16, 32, 0.1) 0%,
        rgba(110, 91, 255, 0.07) 55%,
        rgba(0, 212, 255, 0.05) 100%
    );
    pointer-events: none;
    z-index: 1;
}

body.dark-mode .page-about .about-visual-overlay {
    background: linear-gradient(
        145deg,
        rgba(11, 16, 32, 0.28) 0%,
        rgba(110, 91, 255, 0.1) 55%,
        rgba(0, 212, 255, 0.07) 100%
    );
}

.page-about .about-story-section .container {
    position: relative;
    z-index: 1;
}

/* Section rhythm & decorative identity */
.page-about .about-values-section {
    position: relative;
    overflow: hidden;
}

.page-about .about-values-section::before {
    content: '';
    position: absolute;
    inset-inline-end: -120px;
    top: 10%;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(110, 91, 255, 0.08), transparent 70%);
    pointer-events: none;
}

.page-about .about-how-section::after {
    content: '';
    display: block;
    width: min(120px, 20vw);
    height: 3px;
    margin: 0 auto;
    margin-block-start: -24px;
    margin-block-end: 8px;
    border-radius: 3px;
    background: var(--brand-gradient);
    opacity: 0.45;
}

.page-about .about-team-section {
    position: relative;
    overflow: hidden;
}

.page-about .about-team-section::before {
    content: '';
    position: absolute;
    inset-inline-start: -100px;
    bottom: 8%;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.07), transparent 70%);
    pointer-events: none;
}

/* Centered section headers */
.page-about .section-header {
    text-align: center;
    align-items: center;
    margin-inline: auto;
    margin-bottom: 36px;
    max-width: 720px;
}

.page-about .about-values-section .section-header,
.page-about .about-how-section .section-header,
.page-about .about-team-section .section-header {
    margin-bottom: 36px;
}

.page-about .section-header .section-title,
.page-about .section-header .section-para {
    text-align: center;
}

/* Hero + company story titles stay direction-aware (not centered) */
.page-about .about-hero-section .section-header .section-title,
.page-about .about-story-copy .section-header .section-title {
    text-align: start;
}

/* Vision & Mission */
.page-about .about-vision-mission {
    align-items: stretch;
    gap: 24px;
}

.page-about .about-vision-card,
.page-about .about-mission-card {
    padding: 36px;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: start;
    background: linear-gradient(165deg, var(--bg-card) 0%, rgba(110, 91, 255, 0.035) 100%);
    border-color: rgba(110, 91, 255, 0.12);
    box-shadow:
        0 18px 44px -22px rgba(15, 23, 42, 0.14),
        var(--shadow-card);
}

body.dark-mode .page-about .about-vision-card,
body.dark-mode .page-about .about-mission-card {
    background: linear-gradient(165deg, #121c33 0%, rgba(0, 212, 255, 0.04) 100%);
    border-color: rgba(0, 212, 255, 0.12);
    box-shadow:
        0 22px 48px -20px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.04);
}

.page-about .about-vision-card .card-icon,
.page-about .about-mission-card .card-icon {
    align-self: flex-start;
    margin-bottom: 20px;
}

.page-about .about-vision-card .card-title,
.page-about .about-mission-card .card-title {
    font-size: 1.75rem;
    margin-bottom: 14px;
    line-height: 1.25;
}

.page-about .about-vision-card .section-para,
.page-about .about-mission-card .section-para {
    font-size: 1rem;
    margin-bottom: 0;
    flex-grow: 1;
    line-height: 1.6;
}

/* Card grids — denser, equal height */
.page-about .grid-3 {
    align-items: stretch;
    gap: 20px;
}

.page-about .about-value-card,
.page-about .about-capability-card,
.page-about .about-team-role-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-align: start;
    padding: 26px 24px;
}

.page-about .about-value-card .card-icon,
.page-about .about-capability-card .card-icon,
.page-about .about-team-role-card .card-icon {
    align-self: flex-start;
    margin-bottom: 16px;
    width: 44px;
    height: 44px;
    font-size: 1.15rem;
}

.page-about .about-value-card .card-title,
.page-about .about-capability-card .card-title,
.page-about .about-team-role-card .card-title {
    font-size: 1.2rem;
    margin-bottom: 8px;
    line-height: 1.3;
}

.page-about .about-value-card .card-desc,
.page-about .about-capability-card .card-desc,
.page-about .about-team-role-card .card-desc {
    flex-grow: 1;
    margin-bottom: 0;
    line-height: 1.5;
    font-size: 0.9375rem;
}

/* Core team — intentional 3 + 2 grid */
.page-about .about-core-team-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    column-gap: 20px;
    row-gap: 16px;
    max-width: 1040px;
    margin-inline: auto;
    margin-bottom: 0;
}

.page-about .about-core-team-grid .about-team-role-card {
    grid-column: span 2;
    min-width: 0;
    max-width: none;
}

.page-about .about-core-team-grid .about-team-role-card:nth-child(4) {
    grid-column: 2 / span 2;
}

.page-about .about-core-team-grid .about-team-role-card:nth-child(5) {
    grid-column: 4 / span 2;
}

/* Light mode card contrast */
body:not(.dark-mode) .page-about .card .card-title {
    color: var(--color-main);
}

body:not(.dark-mode) .page-about .card .card-desc,
body:not(.dark-mode) .page-about .card .section-para {
    color: #475569;
}

body:not(.dark-mode) .page-about .card-icon {
    background: rgba(110, 91, 255, 0.14);
    color: #5548e8;
}

/* Final CTA */
.page-about .final-cta-section {
    position: relative;
    text-align: center;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.page-about .final-cta-section:not(.final-cta-section--has-image) {
    background: linear-gradient(135deg, var(--bg-section) 0%, var(--bg-body) 100%);
    border-block: 1px solid var(--border-color);
}

body.dark-mode .page-about .final-cta-section:not(.final-cta-section--has-image) {
    background: linear-gradient(135deg, #0d1527 0%, var(--brand-navy) 100%);
    border-color: rgba(255, 255, 255, 0.08);
}

.page-about .final-cta-section:not(.final-cta-section--has-image)::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 60% at 50% 0%, rgba(0, 212, 255, 0.06), transparent 55%),
        radial-gradient(ellipse 40% 50% at 80% 100%, rgba(110, 91, 255, 0.06), transparent 50%);
    pointer-events: none;
}

.page-about .final-cta-section--has-image {
    background-image: var(--final-cta-bg);
}

.page-about .final-cta-section--has-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(11, 16, 32, 0.88) 0%,
        rgba(11, 16, 32, 0.76) 50%,
        rgba(11, 16, 32, 0.86) 100%
    );
    z-index: 0;
}

body:not(.dark-mode) .page-about .final-cta-section--has-image::before {
    background: linear-gradient(
        135deg,
        rgba(11, 16, 32, 0.84) 0%,
        rgba(11, 16, 32, 0.7) 50%,
        rgba(11, 16, 32, 0.82) 100%
    );
}

.page-about .final-cta-inner {
    position: relative;
    z-index: 1;
    max-width: 760px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    margin-inline: auto;
    text-align: center;
}

.page-about .final-cta-section--has-image .section-title {
    color: #ffffff;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.page-about .final-cta-section--has-image .section-para {
    color: #e2e8f0;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
}

.page-about .final-cta-section:not(.final-cta-section--has-image) .section-title {
    color: var(--color-main);
    text-shadow: none;
}

.page-about .final-cta-section:not(.final-cta-section--has-image) .section-para {
    color: var(--color-para);
    text-shadow: none;
}

.page-about .about-final-cta-actions {
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    gap: 12px;
}

/* Tablet */
@media (max-width: 1024px) {
    .page-about > .section {
        padding-block: 56px;
    }

    .page-about .about-hero-section {
        padding-block-start: calc(56px + 8px);
        padding-block-end: 40px;
    }

    .page-about .about-story-section {
        padding-block-start: 40px;
        padding-block-end: 48px;
    }

    .page-about .about-vision-section,
    .page-about .about-values-section,
    .page-about .about-how-section {
        padding-block: 48px;
    }

    .page-about .about-team-section {
        padding-block-start: 48px;
        padding-block-end: 56px;
    }

    .page-about .final-cta-section {
        padding-block: 56px;
    }

    .page-about .about-hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .page-about .about-hero-content {
        align-items: center;
    }

    .page-about .about-hero-section .section-header,
    .page-about .about-hero-actions {
        align-items: center;
        text-align: center;
        margin-inline: auto;
    }

    .page-about .about-hero-section .section-para,
    .page-about .about-hero-section .badge {
        text-align: center;
    }

    .page-about .about-hero-section .section-header .section-title,
    .page-about .about-story-copy .section-header .section-title {
        text-align: start;
    }

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

    .page-about .about-hero-visual {
        min-height: 0;
        max-width: 480px;
        margin-inline: auto;
        padding-block: 12px 8px;
    }

    .page-about .about-hero-visual-frame {
        max-width: 100%;
    }

    .page-about .about-hero-visual-image {
        max-height: min(300px, 36vh);
    }

    .page-about .about-story-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .page-about .about-story-visual {
        order: 2;
        max-width: 480px;
        margin-inline: auto;
        width: 100%;
    }

    .page-about .about-story-copy {
        order: 1;
    }

    .page-about .about-story-body .section-para {
        max-width: none;
    }

    .page-about .about-core-team-grid {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 16px;
        max-width: none;
    }

    .page-about .about-core-team-grid .about-team-role-card,
    .page-about .about-core-team-grid .about-team-role-card:nth-child(4),
    .page-about .about-core-team-grid .about-team-role-card:nth-child(5) {
        grid-column: auto;
    }

    .page-about .about-core-team-grid .about-team-role-card:nth-child(5) {
        grid-column: 1 / -1;
        max-width: 480px;
        margin-inline: auto;
        width: 100%;
    }
}

/* Mobile */
@media (max-width: 640px) {
    .page-about > .section {
        padding-block: 48px;
    }

    .page-about .about-hero-section {
        padding-block-start: calc(48px + 8px);
        padding-block-end: 36px;
    }

    .page-about .about-story-section {
        padding-block-start: 36px;
        padding-block-end: 44px;
    }

    .page-about .about-vision-section,
    .page-about .about-values-section,
    .page-about .about-how-section {
        padding-block: 44px;
    }

    .page-about .about-team-section {
        padding-block-start: 44px;
        padding-block-end: 48px;
    }

    .page-about .final-cta-section {
        padding-block: 48px;
    }

    .page-about .about-hero-section .section-header,
    .page-about .about-hero-actions {
        max-width: 100%;
    }

    .page-about .about-hero-section .section-title {
        font-size: 1.85rem;
    }

    .page-about .about-hero-visual {
        min-height: 0;
        padding-block: 12px 4px;
    }

    .page-about .about-hero-visual-image {
        max-height: 240px;
    }

    .page-about .about-hero-visual-frame {
        max-width: 100%;
    }

    .page-about .about-story-visual-image {
        max-height: 200px;
    }

    .page-about .about-hero-actions,
    .page-about .about-final-cta-actions {
        flex-direction: column;
        width: 100%;
    }

    .page-about .about-hero-actions .btn,
    .page-about .about-final-cta-actions .btn {
        width: 100%;
    }

    .page-about .about-vision-card,
    .page-about .about-mission-card {
        padding: 24px 20px;
    }

    .page-about .about-value-card,
    .page-about .about-capability-card,
    .page-about .about-team-role-card {
        padding: 22px 20px;
    }

    .page-about .about-core-team-grid {
        grid-template-columns: 1fr;
    }

    .page-about .about-core-team-grid .about-team-role-card:nth-child(5) {
        max-width: none;
    }

    .page-about .grid-3 {
        gap: 16px;
    }

    .page-about .section-header {
        margin-bottom: 28px;
    }
}
