/* ==========================================================================
   WASLA AI - CORE STYLES
   Futuristic Enterprise OS Experience
   ========================================================================== */

:root {
    /* Brand Colors */
    --primary-blue: #0066CC;
    --primary-blue-glow: rgba(0, 102, 204, 0.4);
    --accent-cyan: #4FD8F7;
    --accent-cyan-glow: rgba(79, 216, 247, 0.5);

    /* Dark Theme Surface Colors */
    --bg-dark: #101015;
    --surface-dark: #1A1F2C;
    --surface-glass: rgba(26, 31, 44, 0.6);
    --surface-border: rgba(255, 255, 255, 0.08);

    /* Text Colors */
    --text-high: #F0F2F5;
    --text-low: #ADB5BD;

    /* Typography */
    --font-heading: 'Manrope', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Layout */
    --container-width: 1200px;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Glows & Shadows */
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --glow-card: 0 0 20px rgba(79, 216, 247, 0.1);
    --glow-card-hover: 0 0 30px rgba(79, 216, 247, 0.2), inset 0 0 20px rgba(79, 216, 247, 0.05);
}

/* ==========================================================================
   RESET & BASICS
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html[dir="rtl"] {
    direction: rtl;
}

html[dir="ltr"] {
    direction: ltr;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-high);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-align: start;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

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

ul {
    list-style: none;
}

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

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

/* ==========================================================================
   AMBIENT BACKGROUND
   ========================================================================== */
.ambient-lighting {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    animation: float-ambient 20s infinite ease-in-out alternate;
}

.glow-orb.primary {
    top: -10%;
    left: 10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--primary-blue-glow) 0%, transparent 70%);
}

.glow-orb.secondary {
    bottom: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--accent-cyan-glow) 0%, transparent 70%);
    animation-delay: -5s;
}

.glow-orb.tertiary {
    top: 40%;
    left: -20%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(0, 102, 204, 0.2) 0%, transparent 70%);
    animation-delay: -10s;
}

@keyframes float-ambient {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(5%, 5%) scale(1.1);
    }
}

/* ==========================================================================
   UTILITY CLASSES & COMPONENTS
   ========================================================================== */
.text-gradient {
    background: linear-gradient(135deg, #fff 0%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-panel {
    background: var(--surface-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--surface-border);
    border-radius: 24px;
    box-shadow: var(--shadow-glass);
}

.hover-glow {
    transition: var(--transition-smooth);
}

.hover-glow:hover {
    transform: translateY(-5px);
    box-shadow: var(--glow-card-hover);
    border-color: rgba(79, 216, 247, 0.3);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 12px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    outline: none;
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
    border-radius: 14px;
}

.btn-massive {
    padding: 18px 36px;
    font-size: 18px;
    border-radius: 16px;
    font-weight: 600;
}

.btn-primary {
    background: var(--primary-blue);
    color: white;
}

.btn-primary:hover {
    background: #0055aa;
    box-shadow: 0 0 20px var(--primary-blue-glow);
}

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

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-glow {
    background: var(--accent-cyan);
    color: #000;
    box-shadow: 0 0 20px var(--accent-cyan-glow);
}

.btn-glow:hover {
    background: #fff;
    box-shadow: 0 0 30px var(--accent-cyan);
    transform: scale(1.02);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-high);
    backdrop-filter: blur(10px);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.02);
}

/* Animations */
.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-cyan);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px var(--accent-cyan);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(79, 216, 247, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(79, 216, 247, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(79, 216, 247, 0);
    }
}

.pulse-glow {
    animation: glow-pulse 3s infinite alternate;
}

@keyframes glow-pulse {
    0% {
        box-shadow: 0 0 15px rgba(79, 216, 247, 0.2);
    }

    100% {
        box-shadow: 0 0 30px rgba(79, 216, 247, 0.6);
    }
}

.float-slow {
    animation: float 6s ease-in-out infinite;
}

.float-medium {
    animation: float 4s ease-in-out infinite;
}

.float-fast {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Section Headers */
.section-header {
    margin-bottom: 60px;
    max-width: 600px;
}

.section-header.center {
    text-align: center;
    margin-inline: auto;
}

.section-title {
    font-size: 42px;
    margin-bottom: 16px;
    background: linear-gradient(to right, #fff, var(--text-low));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-desc {
    color: var(--text-low);
    font-size: 18px;
}

/* ==========================================================================
   PREMIUM ENTERPRISE HEADER
   ========================================================================== */
.premium-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(135deg, rgba(10, 14, 25, 0.82), rgba(16, 20, 35, 0.72));
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(79, 216, 247, 0.08);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.28);
    transition: all 0.4s ease;
}

.premium-nav.scrolled {
    background: linear-gradient(135deg, rgba(8, 10, 18, 0.95), rgba(12, 15, 25, 0.9));
    backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(79, 216, 247, 0.15);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.premium-nav .nav-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 82px;
    transition: height 0.4s ease;
}

.premium-nav.scrolled .nav-container {
    height: 68px;
}

.nav-glow-line {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
    opacity: 0.3;
    animation: flow-line 4s linear infinite;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: all 0.28s ease;
}

.brand-logo:hover {
    transform: scale(1.02);
}

.logo-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-wrapper::after {
    content: '';
    position: absolute;
    inset: -8px;
    background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
    z-index: -1;
}

.brand-logo:hover .logo-wrapper::after {
    opacity: 0.2;
}

.logo-img {
    height: 28px;
    width: auto;
    transition: all 0.28s ease;
}

.brand-text {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 20px;
    letter-spacing: -0.5px;
    color: #fff;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    position: relative;
    padding: 8px 0;
    transition: all 0.28s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent-cyan);
    box-shadow: 0 0 8px var(--accent-cyan);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover {
    color: #4FD8F7;
    text-shadow: 0 0 12px rgba(79, 216, 247, 0.4);
}

.nav-link:hover::after {
    width: 100%;
}

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

/* Segmented Language Switcher */
.lang-switcher {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 4px;
    cursor: pointer;
    overflow: hidden;
}

.lang-opt {
    position: relative;
    z-index: 2;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    user-select: none;
}

.lang-opt.active {
    color: #fff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.lang-slider {
    position: absolute;
    top: 4px;
    bottom: 4px;
    width: calc(50% - 4px);
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-cyan));
    border-radius: 20px;
    z-index: 1;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.lang-switcher.ar-active .lang-slider {
    transform: translateX(100%);
}

html[dir="rtl"] .lang-switcher.ar-active .lang-slider {
    transform: translateX(-100%);
}

/* Premium Buttons */
.btn-secondary-glass {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 10px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.28s ease;
}

.btn-secondary-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(79, 216, 247, 0.3);
    box-shadow: 0 0 20px rgba(79, 216, 247, 0.1);
    transform: translateY(-2px);
}

.btn-primary-gradient {
    background: linear-gradient(135deg, #0066CC, #4FD8F7);
    border: none;
    color: #fff;
    padding: 10px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.4);
    transition: all 0.28s ease;
}

.btn-primary-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 216, 247, 0.5);
}

.btn-primary-gradient:active {
    transform: scale(0.96);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger {
    width: 24px;
    height: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active .hamburger span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background: var(--accent-cyan);
    box-shadow: 0 0 8px var(--accent-cyan);
}

.mobile-menu-btn.active .hamburger span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .hamburger span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background: var(--accent-cyan);
    box-shadow: 0 0 8px var(--accent-cyan);
}

/* Mobile Fullscreen Menu */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 10, 18, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    width: 100%;
    padding: 20px;
}

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

.mobile-nav-links a {
    font-size: 24px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.mobile-menu-overlay.active .mobile-nav-links a {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation */
.mobile-menu-overlay.active .mobile-nav-links a:nth-child(1) {
    transition-delay: 0.1s;
}

.mobile-menu-overlay.active .mobile-nav-links a:nth-child(2) {
    transition-delay: 0.15s;
}

.mobile-menu-overlay.active .mobile-nav-links a:nth-child(3) {
    transition-delay: 0.2s;
}

.mobile-menu-overlay.active .mobile-nav-links a:nth-child(4) {
    transition-delay: 0.25s;
}

.mobile-menu-overlay.active .mobile-nav-links a:nth-child(5) {
    transition-delay: 0.3s;
}

.mobile-nav-links a:hover {
    color: var(--accent-cyan);
}

.mobile-nav-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 300px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease 0.35s;
}

.mobile-menu-overlay.active .mobile-nav-actions {
    opacity: 1;
    transform: translateY(0);
}

.mobile-cta {
    width: 100%;
    text-align: center;
}

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

.social-links-footer a {
    color: var(--text-low);
    transition: var(--transition-smooth);
}

.social-links-footer a:hover {
    color: var(--text-high);
}

/* =========================================================
   PREMIUM AI INTERFACE STYLES 
   ========================================================= */

.chat-modal {
    position: relative;
    overflow: hidden;
    /* For mesh bg */
}

/* Background Mesh & Particles */
.chat-bg-mesh {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(circle at 10% 20%, rgba(79, 216, 247, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(13, 110, 253, 0.05) 0%, transparent 40%);
    opacity: 0.8;
    pointer-events: none;
}

.chat-particles {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.3;
    pointer-events: none;
}

/* System Header */
.chat-system-header {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.system-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid rgba(79, 216, 247, 0.3);
    position: relative;
}

.header-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pulse-glow {
    box-shadow: 0 0 15px rgba(79, 216, 247, 0.2);
    animation: glow-pulse 3s infinite alternate;
}

@keyframes glow-pulse {
    0% {
        box-shadow: 0 0 10px rgba(79, 216, 247, 0.1);
    }

    100% {
        box-shadow: 0 0 25px rgba(79, 216, 247, 0.4);
    }
}

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

.header-name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.header-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #0f0;
    box-shadow: 0 0 8px #0f0;
    animation: status-ping 2s infinite;
}

@keyframes status-ping {
    0% {
        transform: scale(1);
        opacity: 1;
    }

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

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

/* System Metrics */
.system-metrics {
    display: flex;
    gap: 16px;
}

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

.metric-val {
    font-family: 'Space Grotesk', monospace;
    font-size: 14px;
    color: #fff;
    font-weight: 600;
}

.metric-lbl {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
}

/* Header Actions */
.header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.icon-btn {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--text-low);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.icon-btn.close-btn:hover {
    color: #ff4444;
}

/* Override old close-chat */
.chat-modal>.close-chat {
    display: none;
    /* Hide old close btn */
}

/* Tooltip for header icons */
.icon-btn[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 120%;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 100;
}

/* Clear Confirm Modal */
.clear-confirm-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.clear-confirm-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.clear-confirm-box {
    background: rgba(20, 20, 25, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.clear-confirm-overlay.active .clear-confirm-box {
    transform: scale(1);
}

.clear-confirm-box p {
    margin-bottom: 20px;
    color: #fff;
    font-size: 16px;
}

.confirm-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.confirm-actions button {
    padding: 8px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.confirm-cancel {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.confirm-cancel:hover {
    background: rgba(255, 255, 255, 0.15);
}

.confirm-clear {
    background: #ff4444;
    color: #fff;
}

.confirm-clear:hover {
    background: #ff2222;
    box-shadow: 0 0 15px rgba(255, 68, 68, 0.4);
}

/* Avatar Presence Glow */
.chat-hero {
    position: relative;
    z-index: 10;
}

.ai-avatar-premium {
    position: relative;
}

.avatar-glow {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(79, 216, 247, 0.4) 0%, transparent 70%);
    opacity: 0.5;
    animation: breathing-glow 4s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes breathing-glow {

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

    50% {
        transform: scale(1.2);
        opacity: 0.6;
    }
}

/* Empty State */
.chat-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    line-height: 1.6;
}

/* Realtime status line */
.realtime-status-line {
    text-align: center;
    font-size: 11px;
    color: var(--accent-cyan);
    height: 20px;
    opacity: 0.7;
    margin-top: -10px;
    margin-bottom: 5px;
    transition: opacity 0.5s ease;
}

/* Input Hint */
.input-hint {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
    margin-right: auto;
    margin-left: 12px;
}

html[dir="rtl"] .input-hint {
    margin-left: auto;
    margin-right: 12px;
}

/* Processing Indicator */
.typing-dots {
    display: flex;
    gap: 5px;
    align-items: center;
    justify-content: center;
    height: 20px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    background-color: var(--accent-cyan);
    border-radius: 50%;
    animation: typingBlink 1.4s infinite both;
}

.typing-dots span:nth-child(1) { animation-delay: 0s; }
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBlink {
    0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
    40% { opacity: 1; transform: scale(1.2); }
}

/* Message styling upgrades */
.msg-content {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.user-message .msg-content {
    background: linear-gradient(135deg, var(--primary-blue), #0b4b8a);
    border: 1px solid rgba(79, 216, 247, 0.1);
}

html[dir="rtl"] .msg-content {
    line-height: 1.8;
}

/* Message entry animation */
.message {
    animation: fade-up 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(10px);
}

@keyframes fade-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Suggestion Pills Redesign */
.chat-suggestions-premium .suggestion-chip {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.chat-suggestions-premium .suggestion-chip::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.chat-suggestions-premium .suggestion-chip:hover::before {
    transform: translateX(100%);
}

.chat-suggestions-premium .suggestion-chip:hover {
    box-shadow: 0 0 15px rgba(79, 216, 247, 0.15);
}

/* Custom Scrollbar Thin */
.chat-body::-webkit-scrollbar {
    width: 4px;
}

.chat-body::-webkit-scrollbar-thumb {
    background: var(--accent-cyan);
    border-radius: 10px;
    opacity: 0.5;
}

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

.lang-toggle {
    font-weight: 600;
    padding: 8px 16px;
}

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

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    padding: 160px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.hero-content {
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(79, 216, 247, 0.1);
    border: 1px solid rgba(79, 216, 247, 0.2);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 13px;
    color: var(--accent-cyan);
    font-weight: 500;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 64px;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-low);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 20px;
}

/* Dashboard Mockup in Hero */
.holographic-tilt {
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: var(--transition-smooth);
}

.holographic-tilt:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.dashboard-mockup {
    background: rgba(26, 31, 44, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.dashboard-header {
    height: 40px;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    padding: 0 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    justify-content: space-between;
}

.window-controls {
    display: flex;
    gap: 8px;
}

.window-controls i {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff5f56;
}

.window-controls i:nth-child(2) {
    background: #ffbd2e;
}

.window-controls i:nth-child(3) {
    background: #27c93f;
}

.window-title {
    font-family: monospace;
    font-size: 12px;
    color: var(--text-low);
}

.window-status {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--accent-cyan);
    letter-spacing: 1px;
}

.dashboard-body {
    padding: 40px;
    height: 350px;
    position: relative;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.2));
}

.workflow-canvas {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.node {
    width: 90px;
    height: 90px;
    background: var(--surface-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 2;
    position: relative;
}

.node span {
    font-size: 11px;
    color: var(--text-low);
}

.node.active {
    border-color: var(--accent-cyan);
    background: rgba(79, 216, 247, 0.1);
}

.node-icon {
    width: 32px;
    height: 32px;
}

.connection-line {
    flex-grow: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.moving-particle {
    position: absolute;
    top: -2px;
    left: 0;
    width: 6px;
    height: 6px;
    background: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-cyan);
    animation: move-particle 2s linear infinite;
}

.delay-particle {
    animation-delay: 1s;
}

@keyframes move-particle {
    0% {
        left: 0;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

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

/* ==========================================================================
   ORCHESTRATION SECTION
   ========================================================================== */
.orchestration-section {
    padding: 100px 0;
    position: relative;
}

.orchestration-map {
    position: relative;
    height: 400px;
    border-radius: 24px;
    background: rgba(16, 16, 21, 0.5);
    border: 1px solid var(--surface-border);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    background-position: center center;
    mask-image: radial-gradient(circle, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle, black 40%, transparent 80%);
}

.map-nodes {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 800px;
}

.map-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.node-icon-box {
    width: 64px;
    height: 64px;
    background: var(--surface-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-low);
}

.node-label {
    font-size: 13px;
    color: var(--text-low);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.core-node {
    position: relative;
}

.core-node img {
    width: 80px;
    height: 80px;
    position: relative;
    z-index: 2;
}

.core-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: var(--accent-cyan);
    filter: blur(40px);
    opacity: 0.3;
    animation: pulse 3s infinite alternate;
}

.map-path {
    flex-grow: 1;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0%, rgba(79, 216, 247, 0.3) 50%, rgba(255, 255, 255, 0.1) 100%);
    margin: 0 20px;
    position: relative;
    margin-top: -30px;
    /* Align with boxes */
}

.data-packet {
    position: absolute;
    top: -2px;
    left: 0;
    width: 30px;
    height: 6px;
    background: var(--accent-cyan);
    border-radius: 10px;
    box-shadow: 0 0 15px var(--accent-cyan);
    animation: packet-flow 2s linear infinite;
}

.data-packet.fast {
    animation-duration: 1.5s;
    animation-direction: reverse;
}

@keyframes packet-flow {
    0% {
        left: 0%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

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

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.services-section {
    padding: 100px 0;
}

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

.service-card {
    padding: 40px;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(79, 216, 247, 0.05);
    border: 1px solid rgba(79, 216, 247, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
    background: rgba(79, 216, 247, 0.1);
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 16px;
}

.service-card p {
    color: var(--text-low);
    font-size: 15px;
}

/* ==========================================================================
   DASHBOARD SECTION
   ========================================================================== */
.dashboard-section {
    padding: 100px 0;
}

.dashboard-full-preview {
    display: flex;
    height: 600px;
    overflow: hidden;
    position: relative;
}

.dash-sidebar {
    width: 250px;
    background: rgba(0, 0, 0, 0.2);
    border-right: 1px solid var(--surface-border);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.dash-logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 18px;
}

.dash-logo-area img {
    height: 24px;
}

.dash-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dash-menu li {
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--text-low);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition-smooth);
}

.dash-menu li:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-high);
}

.dash-menu li.active {
    background: rgba(79, 216, 247, 0.1);
    color: var(--accent-cyan);
}

.dash-main-content {
    flex-grow: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

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

.dash-title {
    font-size: 24px;
    font-family: var(--font-heading);
    font-weight: 700;
}

.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #27c93f;
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 10px #27c93f;
}

.dash-status {
    font-size: 13px;
    color: var(--text-low);
    background: rgba(39, 201, 63, 0.1);
    padding: 6px 12px;
    border-radius: 100px;
    border: 1px solid rgba(39, 201, 63, 0.2);
}

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

.stat-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 24px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-low);
}

.stat-value {
    font-size: 32px;
    font-family: var(--font-heading);
}

.stat-trend {
    font-size: 12px;
}

.stat-trend.positive {
    color: #27c93f;
}

.stat-trend.neutral {
    color: var(--text-low);
}

.dash-charts-area {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    flex-grow: 1;
}

.chart-panel {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.panel-title {
    font-size: 14px;
    color: var(--text-low);
    margin-bottom: 20px;
}

.synthetic-chart {
    flex-grow: 1;
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.synthetic-chart .bar {
    flex-grow: 1;
    background: linear-gradient(to top, rgba(0, 102, 204, 0.5), rgba(79, 216, 247, 0.8));
    border-radius: 4px 4px 0 0;
    transition: height 1s ease;
}

.radar-map {
    position: relative;
    flex-grow: 1;
    border-radius: 50%;
    border: 1px solid rgba(79, 216, 247, 0.2);
    background: radial-gradient(circle, rgba(79, 216, 247, 0.05) 0%, transparent 70%);
    overflow: hidden;
}

.radar-sweep {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50%;
    height: 50%;
    background: linear-gradient(45deg, rgba(79, 216, 247, 0.4), transparent);
    transform-origin: top left;
    animation: sweep 4s infinite linear;
}

/* ==========================================================================
   DASHBOARD TABS & INTERACTIVE VIEWS
   ========================================================================== */
.os-icon {
    width: 34px;
    height: 34px;
    color: #4FD8F7;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.os-tab-icon {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: middle;
    margin-right: 8px;
}

html[dir="rtl"] .os-tab-icon {
    margin-right: 0;
    margin-left: 8px;
}

.status-icon {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: middle;
    margin-right: 4px;
}

html[dir="rtl"] .status-icon {
    margin-right: 0;
    margin-left: 4px;
}

.dash-menu li {
    cursor: pointer;
    transition: var(--transition-smooth);
}

.dash-menu li:hover {
    background: rgba(255, 255, 255, 0.05);
}

.dashboard-views-container {
    position: relative;
    width: 100%;
    flex-grow: 1;
}

.dashboard-view {
    display: none;
    animation: fade-up 0.4s ease forwards;
}

.dashboard-view.active {
    display: block;
}

/* --- ORCHESTRATION PIPELINE --- */
.pipeline-visual {
    background: rgba(16, 20, 28, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 24px;
    overflow-x: auto;
}

.pipeline-nodes {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 600px;
}

.p-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(79, 216, 247, 0.2);
    border-radius: 12px;
    padding: 12px 16px;
    min-width: 110px;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

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

.p-node.p-ai {
    border-color: var(--accent-cyan);
    background: rgba(79, 216, 247, 0.05);
}

.p-icon {
    font-size: 24px;
}

.p-name {
    font-size: 11px;
    color: var(--text-high);
    text-align: center;
}

.p-line {
    flex-grow: 1;
    height: 2px;
    background: rgba(79, 216, 247, 0.2);
    position: relative;
    z-index: 1;
    margin: 0 -10px;
}

.p-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-cyan);
    border-radius: 50%;
    position: absolute;
    top: -3px;
    left: 0;
    box-shadow: 0 0 10px var(--accent-cyan);
    animation: move-dot 3s infinite linear;
}

@keyframes move-dot {
    0% {
        left: 0%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

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

.pipeline-stats {
    margin-bottom: 24px;
}

.mini-table {
    background: rgba(16, 20, 28, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 16px;
}

.table-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.table-row:last-child {
    border-bottom: none;
}

.t-badge {
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.t-badge.success {
    background: rgba(0, 255, 128, 0.1);
    color: #0f0;
}

.t-badge.warning {
    background: rgba(255, 191, 0, 0.1);
    color: #ffbf00;
}

.t-text {
    font-size: 13px;
    color: var(--text-low);
}

/* --- AUTOMATION LOGS --- */
.terminal-interface {
    background: #0d1117;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    height: 400px;
    display: flex;
    flex-direction: column;
}

.terminal-header {
    background: #161b22;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.t-dots {
    display: flex;
    gap: 6px;
    margin-right: 16px;
}

html[dir="rtl"] .t-dots {
    margin-right: 0;
    margin-left: 16px;
}

.t-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #444;
}

.t-dots span:nth-child(1) {
    background: #ff5f56;
}

.t-dots span:nth-child(2) {
    background: #ffbd2e;
}

.t-dots span:nth-child(3) {
    background: #27c93f;
}

.t-title {
    font-family: monospace;
    color: #8b949e;
    font-size: 13px;
    flex-grow: 1;
    text-align: center;
}

.t-status {
    font-size: 11px;
    color: #27c93f;
    font-weight: 600;
    text-transform: uppercase;
}

.terminal-body {
    padding: 16px;
    flex-grow: 1;
    overflow-y: auto;
    font-family: monospace;
    font-size: 13px;
    line-height: 1.6;
}

.log-line {
    margin-bottom: 6px;
    color: #c9d1d9;
    animation: fade-in 0.3s ease forwards;
}

.log-line .timestamp {
    color: #8b949e;
    margin-right: 8px;
}

html[dir="rtl"] .log-line .timestamp {
    margin-right: 0;
    margin-left: 8px;
}

.log-line.success {
    color: #56d364;
}

.log-line.info {
    color: #79c0ff;
}

.log-cursor {
    display: inline-block;
    width: 8px;
    height: 14px;
    background: #c9d1d9;
    vertical-align: middle;
    animation: blink 1s infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* --- AI AGENTS --- */
.agents-hero-card {
    background: linear-gradient(135deg, rgba(79, 216, 247, 0.1), rgba(13, 110, 253, 0.1));
    border: 1px solid rgba(79, 216, 247, 0.2);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.agents-hero-card h3 {
    color: var(--accent-cyan);
    font-size: 18px;
    position: relative;
    z-index: 2;
}

.agents-pulse-network {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(79, 216, 247, 0.15) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.5;
    z-index: 1;
    animation: move-network 20s linear infinite;
}

@keyframes move-network {
    to {
        background-position: 100px 100px;
    }
}

.agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.agent-card {
    background: rgba(16, 20, 28, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 16px;
    transition: var(--transition-smooth);
}

.agent-card:hover {
    border-color: rgba(79, 216, 247, 0.3);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-3px);
}

.ac-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.ac-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ac-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ac-status {
    font-size: 11px;
    color: var(--text-low);
    display: flex;
    align-items: center;
    gap: 6px;
}

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

.status-dot.green {
    background: #0f0;
    box-shadow: 0 0 5px #0f0;
}

.status-dot.yellow {
    background: #ffbf00;
    box-shadow: 0 0 5px #ffbf00;
}

.agent-card h4 {
    font-size: 15px;
    margin-bottom: 12px;
    color: #fff;
}

.ac-metrics {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 12px;
    color: var(--text-low);
}

.ac-metrics div {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ac-metrics strong {
    color: #fff;
}

.ac-metrics .tag {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    color: var(--accent-cyan);
}

@keyframes radar-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.radar-blip {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-cyan);
    opacity: 0;
    animation: blip 4s infinite;
}

.radar-blip.b1 {
    top: 30%;
    left: 40%;
    animation-delay: 1s;
}

.radar-blip.b2 {
    top: 60%;
    left: 70%;
    animation-delay: 2.5s;
}

.radar-blip.b3 {
    top: 70%;
    left: 30%;
    animation-delay: 3.8s;
}

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

    10% {
        opacity: 1;
        transform: scale(1.2);
    }

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

    100% {
        opacity: 0;
    }
}

/* ==========================================================================
   INTEGRATIONS SECTION
   ========================================================================== */
.integrations-section {
    padding: 100px 0;
    background: linear-gradient(180deg, transparent, rgba(0, 102, 204, 0.05), transparent);
}

.integrations-wrapper {
    display: grid;
    grid-template-columns: 42% 58%;
    gap: 40px;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
}

.feature-list {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
}

.ecosystem-map {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.center-orb {
    width: 80px;
    height: 80px;
    background: var(--surface-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--accent-cyan);
    box-shadow: 0 0 30px rgba(79, 216, 247, 0.3);
    z-index: 10;
    position: relative;
}

.center-orb img {
    width: 40px;
}

.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: spin linear infinite;
}

.orbit-1 {
    width: 200px;
    height: 200px;
    animation-duration: 20s;
}

.orbit-2 {
    width: 320px;
    height: 320px;
    animation-duration: 35s;
    animation-direction: reverse;
}

@keyframes spin {
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.satellite {
    position: absolute;
    width: 50px;
    height: 50px;
    background: var(--surface-glass);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-low);
    backdrop-filter: blur(4px);
    /* counter spin to keep text upright */
    animation: counter-spin linear infinite;
}

.orbit-1 .satellite {
    animation-duration: 20s;
}

.orbit-2 .satellite {
    animation-duration: 35s;
    animation-direction: reverse;
}

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

.sat-1 {
    top: -25px;
    left: 75px;
}

.sat-2 {
    bottom: -25px;
    left: 75px;
}

.sat-3 {
    top: 50px;
    left: -25px;
}

.sat-4 {
    bottom: 50px;
    right: -25px;
}

.sat-5 {
    top: -25px;
    right: 100px;
}

/* ==========================================================================
   PROOF SECTION
   ========================================================================== */
.proof-section {
    padding: 100px 0;
}

.proof-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.proof-card {
    padding: 40px;
}

.stars {
    color: var(--accent-cyan);
    font-size: 20px;
    letter-spacing: 2px;
    margin-bottom: 24px;
}

.quote {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 32px;
    font-style: italic;
    color: var(--text-high);
}

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

.author-info strong {
    display: block;
    font-size: 16px;
}

.author-info span {
    font-size: 14px;
    color: var(--text-low);
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */
.cta-section {
    padding: 100px 0;
}

.cta-box {
    padding: 80px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-glow-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(0, 102, 204, 0.4) 0%, transparent 70%);
    filter: blur(60px);
    z-index: 0;
}

.cta-box h2,
.cta-box p,
.cta-actions {
    position: relative;
    z-index: 1;
}

.cinematic-heading {
    font-size: 56px;
    margin-bottom: 20px;
}

.cta-box p {
    font-size: 20px;
    color: var(--text-low);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
    border-top: 1px solid var(--surface-border);
    padding: 80px 0 40px;
    background: rgba(16, 16, 21, 0.8);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    height: 40px;
    margin-bottom: 20px;
}

.footer-desc {
    color: var(--text-low);
    max-width: 300px;
}

.footer-links h4 {
    font-size: 16px;
    margin-bottom: 24px;
}

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

.footer-links a {
    color: var(--text-low);
    font-size: 14px;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid var(--surface-border);
    color: var(--text-low);
    font-size: 14px;
}

.system-status {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: 100px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #27c93f;
    border-radius: 50%;
    box-shadow: 0 0 10px #27c93f;
}

/* ==========================================================================
   CHAT MODAL EXPERIENCE & FLOATING BUTTON
   ========================================================================== */

.floating-chat-container {
    position: fixed;
    inset-block-end: 28px;
    inset-inline-end: 28px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
}

.floating-chat-btn {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--surface-dark);
    border: 1px solid var(--accent-cyan);
    box-shadow: 0 0 20px rgba(79, 216, 247, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-bounce);
    z-index: 1000;
}

.floating-chat-btn img {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.floating-chat-btn:hover {
    transform: scale(1.1);
}

.welcome-bubble {
    background: var(--surface-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(79, 216, 247, 0.3);
    border-radius: 16px;
    padding: 16px 20px;
    color: var(--text-high);
    font-size: 14px;
    position: absolute;
    inset-block-end: 80px;
    inset-inline-end: 0;
    width: max-content;
    max-width: 250px;
    box-shadow: var(--shadow-glass);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: var(--transition-smooth);
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.welcome-bubble.active {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.close-bubble {
    background: none;
    border: none;
    color: var(--text-low);
    cursor: pointer;
    margin-top: 2px;
}

.close-bubble:hover {
    color: var(--text-high);
}

.bubble-arrow {
    position: absolute;
    inset-block-end: -8px;
    inset-inline-end: 24px;
    width: 16px;
    height: 16px;
    background: var(--surface-glass);
    border-bottom: 1px solid rgba(79, 216, 247, 0.3);
    border-right: 1px solid rgba(79, 216, 247, 0.3);
    transform: rotate(45deg);
}

html[dir="rtl"] .bubble-arrow {
    inset-inline-end: 24px;
    border-bottom: 1px solid rgba(79, 216, 247, 0.3);
    border-right: none;
    border-left: 1px solid rgba(79, 216, 247, 0.3);
    transform: rotate(-45deg);
}

.chat-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(5, 8, 15, 0.72);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.chat-modal {
    position: relative;
    width: min(720px, calc(100vw - 32px));
    min-height: 520px;
    max-height: calc(100vh - 48px);
    border-radius: 34px;
    background: linear-gradient(145deg, rgba(16, 16, 21, .96), rgba(26, 31, 44, .92));
    border: 1px solid rgba(79, 216, 247, .22);
    box-shadow: 0 30px 90px rgba(0, 0, 0, .55), 0 0 80px rgba(79, 216, 247, .12);
    display: flex;
    flex-direction: column;
    transform: scale(0.95) translateY(20px);
    opacity: 0;
    transition: var(--transition-bounce);
}

.chat-modal-overlay.active .chat-modal {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.close-chat {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--text-low);
    cursor: pointer;
    transition: var(--transition-smooth);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.close-chat:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-high);
}

html[dir="rtl"] .close-chat {
    right: auto;
    left: 24px;
}

.chat-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px 20px;
    transition: padding 0.3s ease;
    flex-shrink: 0;
}

.chat-hero.shrink {
    padding: 30px 20px 10px;
}

.ai-avatar-premium {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    border: 1px solid rgba(79, 216, 247, 0.4);
    box-shadow: 0 0 20px rgba(79, 216, 247, 0.2), inset 0 0 15px rgba(79, 216, 247, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    background: rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: all 0.3s ease;
}

.ai-avatar-premium img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-hero.shrink .ai-avatar-premium {
    width: 64px;
    height: 64px;
    margin-bottom: 10px;
}

.chat-title-premium {
    font-size: 28px;
    font-weight: 500;
    text-align: center;
    color: var(--text-high);
    transition: all 0.3s ease;
}

.chat-hero.shrink .chat-title-premium {
    font-size: 20px;
}

.chat-title-premium .accent {
    color: var(--accent-cyan);
}

.chat-body {
    flex: 1;
    padding: 0 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Custom Scrollbar */
.chat-body::-webkit-scrollbar {
    width: 6px;
}

.chat-body::-webkit-scrollbar-track {
    background: transparent;
}

.chat-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.message {
    display: flex;
    gap: 16px;
    max-width: 85%;
}

.message.user-message {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.msg-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(79, 216, 247, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(79, 216, 247, 0.3);
    flex-shrink: 0;
}

.msg-avatar img {
    width: 16px;
}

.msg-content {
    background: rgba(255, 255, 255, 0.05);
    padding: 16px 20px;
    border-radius: 0 16px 16px 16px;
    font-size: 15px;
    line-height: 1.5;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.user-message .msg-content {
    background: var(--primary-blue);
    border-radius: 16px 16px 0 16px;
    border-color: var(--primary-blue);
}

html[dir="rtl"] .user-message .msg-content {
    border-radius: 16px 16px 16px 0;
}

html[dir="rtl"] .msg-content {
    border-radius: 16px 0 16px 16px;
}

@keyframes slideUpFadeIn {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

.user-message {
    animation: slideUpFadeIn 0.3s ease forwards;
}

html[dir="rtl"] .chat-modal {
    direction: rtl;
}

html[dir="rtl"] .chat-message,
html[dir="rtl"] .message,
html[dir="rtl"] .msg-content {
    text-align: right;
}

html[dir="ltr"] .chat-modal {
    direction: ltr;
}

html[dir="ltr"] .chat-message,
html[dir="ltr"] .message,
html[dir="ltr"] .msg-content {
    text-align: left;
}

.chat-suggestions-premium {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    padding: 20px;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.chat-suggestions-premium .suggestion-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 18px;
    border-radius: 100px;
    color: var(--text-high);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.chat-suggestions-premium .suggestion-chip:hover {
    background: rgba(79, 216, 247, 0.1);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.chat-input-wrapper {
    padding: 20px;
    margin-top: auto;
}

.chat-input-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#chatInput {
    background: transparent;
    border: none;
    color: var(--text-high);
    font-size: 16px;
    resize: none;
    outline: none;
    font-family: inherit;
    width: 100%;
    min-height: 24px;
    max-height: 120px;
    overflow-y: auto;
    padding: 0;
}

#chatInput::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.chat-input-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-tools {
    display: flex;
    gap: 8px;
}

.tool-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 8px 14px;
    border-radius: 100px;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
}

.tool-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.tool-btn[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translate(-50%, -8px);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 100;
}

.btn-send-premium {
    background: var(--primary-blue);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-send-premium:hover {
    background: var(--accent-cyan);
    color: #000;
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0 16px 16px 16px;
    width: fit-content;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: var(--text-low);
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typing {

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

    40% {
        transform: scale(1);
    }
}

/* Animations Classes JS */
.fade-up {
    will-change: transform, opacity;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in {
    will-change: opacity;
    opacity: 0;
    transition: opacity 1s ease;
}

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

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-section {
    padding: 100px 0;
}

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

.contact-card {
    padding: 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.contact-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.btn-contact {
    width: 100%;
    gap: 10px;
    border: 1px solid rgba(79, 216, 247, 0.3);
    text-decoration: none;
}

.btn-contact:hover {
    box-shadow: 0 0 20px rgba(79, 216, 247, 0.2);
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-low);
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-contact-item:hover {
    color: var(--text-high);
}

.social-links-footer {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.social-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-high);
    transition: var(--transition-smooth);
}

.social-icon-btn:hover {
    background: rgba(79, 216, 247, 0.1);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(79, 216, 247, 0.2);
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
}

/* ==========================================================================
   AUTOMATION MODAL
   ========================================================================== */
.auto-modal-overlay[hidden] {
    display: none !important;
}

.auto-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(5, 8, 15, 0.76);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    display: flex;
    justify-content: center;
    align-items: center;
}

body.modal-open {
    overflow: hidden;
}

.auto-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.auto-modal {
    position: relative;
    width: min(920px, calc(100vw - 32px));
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    border-radius: 32px;
    background: linear-gradient(145deg, rgba(16, 16, 21, .96), rgba(26, 31, 44, .92));
    border: 1px solid rgba(79, 216, 247, .22);
    box-shadow: 0 20px 60px rgba(0, 102, 204, 0.15), 0 0 40px rgba(79, 216, 247, 0.05);
    padding: 32px;
    animation: fade-up 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.auto-close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    background: transparent;
    border: none;
    color: var(--text-low);
    cursor: pointer;
    transition: var(--transition-smooth);
    z-index: 10;
}

html[dir="rtl"] .auto-close-btn {
    right: auto;
    left: 24px;
}

.auto-close-btn:hover {
    color: var(--accent-cyan);
    transform: rotate(90deg);
}

.auto-modal-header {
    text-align: center;
    margin-bottom: 32px;
}

.auto-modal-header h2 {
    font-size: 28px;
    margin-bottom: 12px;
    background: linear-gradient(to right, #fff, var(--text-low));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auto-modal-header p {
    color: var(--text-low);
    font-size: 15px;
    max-width: 500px;
    margin: 0 auto;
}

/* Steps Wrapper */
.auto-steps-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 0 16px;
    position: relative;
}

.auto-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.auto-step.active {
    opacity: 1;
}

.step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
}

.auto-step.active .step-num {
    background: rgba(79, 216, 247, 0.15);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(79, 216, 247, 0.3);
}

.step-title {
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    color: #fff;
}

.auto-step-line {
    flex-grow: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.05);
    margin: 0 8px;
    position: relative;
    z-index: 1;
}

.auto-step-line .a-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-cyan);
    border-radius: 50%;
    position: absolute;
    top: -2px;
    left: 0;
    box-shadow: 0 0 8px var(--accent-cyan);
    opacity: 0;
}

.auto-modal-overlay:not([hidden]) .auto-step-line .a-dot {
    animation: move-dot 2s infinite linear;
}

/* Step Details */
.auto-step-details {
    padding: 20px;
    text-align: center;
    margin-bottom: 32px;
    border-radius: 16px;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fade-in 0.3s ease;
}

.auto-step-details p {
    font-size: 16px;
    color: var(--text-high);
}

/* Sim Box */
.auto-sim-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
    position: relative;
}

.sim-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 14px;
    font-weight: 600;
}

.sim-logs {
    height: 220px;
    padding: 16px;
    position: relative;
    z-index: 1;
}

.sim-cta {
    position: absolute;
    inset: 0;
    background: rgba(16, 16, 21, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 32px;
    z-index: 10;
}

.sim-cta h4 {
    font-size: 20px;
    margin-bottom: 12px;
    color: #fff;
}

.sim-cta p {
    font-size: 14px;
    color: var(--text-low);
    margin-bottom: 24px;
}

.auto-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 24px;
}
/* ==========================================================================
   AI NEURAL INTEGRATION COMMAND MATRIX
   ========================================================================== */
.integrations-visual {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.neural-matrix-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    width: 100%;
}

.matrix-badge-top {
    position: relative;
    top: auto; right: auto;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(79,216,247,0.25);
    border-radius: 16px;
    padding: 12px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
    backdrop-filter: blur(12px);
    overflow: hidden;
}

.neural-core-wrapper.matrix-grid {
    position: relative;
    width: max-content;
    height: auto;
    min-height: auto;
    margin-inline: auto;
    display: grid;
    grid-template-columns: repeat(3, 112px);
    grid-template-rows: repeat(3, 112px);
    gap: 32px;
    place-items: center;
    aspect-ratio: auto;
}

/* SVG Lines overlay */
.neural-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: visible;
}

/* Lines animation */
.nc-line {
    animation: nc-line-pulse 3s linear infinite;
}
@keyframes nc-line-pulse {
    from { stroke-dashoffset: 20; }
    to { stroke-dashoffset: 0; }
}

/* Center Core */
.nc-core {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,102,204,0.4), rgba(5,8,21,0.9));
    border: 1.5px solid rgba(79,216,247,0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: transform 0.3s ease;
    box-shadow: 0 0 40px rgba(0,207,255,0.2);
    grid-column: 2;
    grid-row: 2;
    margin: auto;
}
.nc-core::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(79,216,247,0.1), transparent);
    animation: nc-core-pulse 2s infinite ease-in-out alternate;
}
@keyframes nc-core-pulse {
    from { opacity: 0.5; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1.05); }
}

.nc-core:hover { transform: scale(1.05); }
.nc-core img { width: 56px; height: 56px; object-fit: contain; z-index: 2; position: relative; }

/* Rotating rings */
.nc-core-ring {
    position: absolute;
    inset: -14px;
    border-radius: 50%;
    border: 1px solid rgba(79,216,247,0.25);
    animation: nc-spin 12s linear infinite;
}
.nc-core-ring::before {
    content: '';
    position: absolute;
    top: -4px; left: 50%;
    width: 8px; height: 8px;
    background: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--accent-cyan);
    margin-left: -4px;
}
.nc-core-ring-2 {
    inset: -28px;
    animation-duration: 20s;
    animation-direction: reverse;
    border-color: rgba(0,207,255,0.15);
}
.nc-core-ring-3 {
    inset: -42px;
    animation-duration: 30s;
    border-color: rgba(79,216,247,0.08);
    border-style: dashed;
}
@keyframes nc-spin {
    to { transform: rotate(360deg); }
}

/* Nodes */
.nc-node {
    position: relative;
    z-index: 5;
    top: auto !important; left: auto !important; right: auto !important; bottom: auto !important;
    transform: none;
    width: 100%;
    height: 100%;
}
.nc-node-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(79,216,247,0.18);
    border-radius: 18px;
    backdrop-filter: blur(14px);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    height: 100%;
    position: relative;
    padding: 10px;
}
.nc-node:hover .nc-node-inner {
    border-color: rgba(79,216,247,0.8);
    background: rgba(79,216,247,0.08);
    box-shadow: 0 0 32px rgba(79,216,247,0.25), inset 0 0 12px rgba(79,216,247,0.1);
    transform: translateY(-4px) scale(1.02);
}
.nc-node-inner span {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-high);
    letter-spacing: 0.5px;
    text-align: center;
}

/* Status badges */
.nc-status {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(79,216,247,0.12);
    color: var(--accent-cyan);
    border: 1px solid rgba(79,216,247,0.3);
}
.nc-status-green { background: rgba(39,201,63,0.1); color: #27c93f; border-color: rgba(39,201,63,0.3); }
.nc-status-blue  { background: rgba(0,102,204,0.15); color: #4FD8F7; border-color: rgba(0,102,204,0.3); }

/* Tooltips */
.nc-tooltip {
    position: absolute;
    bottom: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: max-content;
    max-width: 200px;
    background: rgba(10,14,25,0.95);
    border: 1px solid rgba(79,216,247,0.3);
    border-radius: 8px;
    padding: 10px 14px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 20;
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px rgba(0,207,255,0.2);
    font-size: 12px;
    color: var(--text-high);
    text-align: center;
    line-height: 1.4;
    font-weight: 500;
}
.nc-tooltip-left  { left: auto; right: calc(100% + 14px); top: 50%; bottom: auto; transform: translateY(-50%) translateX(10px); }
.nc-tooltip-right { left: calc(100% + 14px); right: auto; top: 50%; bottom: auto; transform: translateY(-50%) translateX(-10px); }

.nc-node:hover .nc-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.nc-node:hover .nc-tooltip.nc-tooltip-left { transform: translateY(-50%) translateX(0); }
.nc-node:hover .nc-tooltip.nc-tooltip-right { transform: translateY(-50%) translateX(0); }

/* 148 Live Integrations Badge */
.eco-badge-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(79,216,247,0.1), transparent);
    pointer-events: none;
}
.eco-badge-num {
    font-size: 28px;
    font-weight: 800;
    color: var(--accent-cyan);
    line-height: 1;
    font-family: 'Manrope', sans-serif;
}
.eco-badge-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-low);
    margin-top: 4px;
    letter-spacing: 0.5px;
}

/* Responsive: stack layout */
@media (max-width: 1100px) {
    .integrations-wrapper { grid-template-columns: 1fr; gap: 60px; }
    .integrations-text { text-align: center; max-width: 700px; margin: 0 auto; }
    .feature-list { align-items: center; }
}

@media (max-width: 768px) {
    .neural-core-wrapper.matrix-grid {
        grid-template-columns: repeat(2, 112px);
        grid-template-rows: auto;
        gap: 20px;
    }
    .neural-svg { display: none; }
    .nc-core {
        grid-column: 1 / -1;
        grid-row: 1;
        width: 100px;
        height: 100px;
        margin: 0 auto 20px;
    }
    .nc-core img { width: 46px; height: 46px; }
}

@media (max-width: 480px) {
    .neural-core-wrapper.matrix-grid {
        grid-template-columns: repeat(2, 1fr);
        width: 100%;
        max-width: 320px;
        gap: 16px;
    }
    .nc-node-inner {
        padding: 8px;
    }
    .nc-node-inner span { font-size: 11px; }
    .nc-status { font-size: 8px; padding: 2px 6px; }
}

/* ==========================================================================
   OPERATIONAL INTELLIGENCE SECTION
   ========================================================================== */
.oi-section {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}
.oi-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(79,216,247,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(79,216,247,0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}
.oi-section::before {
    content: '';
    position: absolute;
    top: -100px; left: 50%;
    transform: translateX(-50%);
    width: 700px; height: 400px;
    background: radial-gradient(ellipse, rgba(0,207,255,.12), transparent 70%);
    pointer-events: none;
}

/* Badge */
.oi-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(79,216,247,.08);
    border: 1px solid rgba(79,216,247,.2);
    border-radius: 100px;
    padding: 6px 16px; margin-bottom: 18px;
    font-size: .75rem; font-weight: 700; letter-spacing: 1.5px;
    color: var(--accent-cyan, #4FD8F7);
}
.oi-pulse-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--accent-cyan, #4FD8F7);
    animation: oi-blink 1.6s infinite;
}
@keyframes oi-blink { 0%,100%{opacity:1} 50%{opacity:.2} }
.oi-gradient-text {
    background: linear-gradient(90deg, #00CFFF, #4FD8F7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Metrics Row */
.oi-bento { margin-top: 48px; }
.oi-metrics-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    margin-bottom: 14px;
}
.oi-metric-card {
    position: relative;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(79,216,247,.18);
    border-radius: 14px;
    padding: 20px 18px;
    transition: .3s;
    overflow: hidden;
}
.oi-metric-card:hover {
    border-color: rgba(79,216,247,.5);
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0,207,255,.12);
}
.oi-metric-glow {
    position: absolute;
    top: -20px; left: -20px;
    width: 80px; height: 80px;
    background: radial-gradient(circle, rgba(0,207,255,.15), transparent 70%);
    pointer-events: none;
}
.oi-metric-num {
    font-size: 1.6rem; font-weight: 800;
    color: var(--accent-cyan, #4FD8F7);
    line-height: 1;
    margin-bottom: 6px;
    font-family: 'Manrope', sans-serif;
}
.oi-metric-label {
    font-size: .75rem; color: rgba(240,244,255,.6);
    margin-bottom: 12px; line-height: 1.4;
}
.oi-metric-bar {
    height: 3px; background: rgba(79,216,247,.12);
    border-radius: 3px; overflow: hidden;
}
.oi-metric-fill {
    height: 100%;
    background: linear-gradient(90deg, #0066CC, #4FD8F7);
    border-radius: 3px;
    animation: oi-bar-grow .8s ease-out forwards;
    transform-origin: left;
}
@keyframes oi-bar-grow { from{width:0} }

/* Lower Grid */
.oi-lower-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.8fr 1.1fr;
    gap: 14px;
}
.oi-panel {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(79,216,247,.18);
    border-radius: 14px;
    padding: 20px 22px;
    transition: .3s;
}
.oi-panel:hover { border-color: rgba(79,216,247,.35); }
.oi-panel-header {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(79,216,247,.12);
}
.oi-panel-title { font-size: .82rem; font-weight: 700; color: var(--text-high, #F0F4FF); letter-spacing: .5px; }
.oi-live-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #27c93f;
    box-shadow: 0 0 8px #27c93f;
    animation: oi-blink 1.4s infinite;
}

/* Activity Feed */
.oi-feed { display: flex; flex-direction: column; gap: 10px; }
.oi-feed-item {
    display: flex; align-items: center; gap: 10px;
    font-size: .8rem; padding: 7px 10px;
    background: rgba(79,216,247,.05);
    border-radius: 8px;
    border-left: 2px solid rgba(79,216,247,.3);
    animation: oi-slide-in .4s ease-out;
}
@keyframes oi-slide-in { from{opacity:0;transform:translateX(-8px)} to{opacity:1;transform:none} }
.oi-check { color: #27c93f; font-size: .85rem; flex-shrink: 0; }
.oi-feed-text { flex: 1; color: rgba(240,244,255,.8); }
.oi-feed-time { font-size: .7rem; color: rgba(240,244,255,.35); white-space: nowrap; }

/* Flow */
.oi-flow {
    display: flex; flex-direction: column;
    align-items: center; gap: 0;
}
.oi-flow-node {
    display: flex; align-items: center; gap: 8px;
    background: rgba(0,102,204,.12);
    border: 1px solid rgba(79,216,247,.25);
    border-radius: 10px;
    padding: 9px 16px;
    font-size: .78rem; font-weight: 600;
    color: rgba(240,244,255,.9);
    width: 100%;
    justify-content: center;
}
.oi-flow-ai { border-color: rgba(79,216,247,.5); background: rgba(0,207,255,.1); }
.oi-flow-systems { font-size: .72rem; background: rgba(79,216,247,.07); }
.oi-flow-done { border-color: rgba(39,201,63,.4); background: rgba(39,201,63,.06); }
.oi-flow-arrow {
    position: relative;
    width: 2px; height: 24px;
    background: rgba(79,216,247,.25);
    margin: 0 auto;
    overflow: hidden;
}
.oi-flow-packet {
    position: absolute;
    width: 6px; height: 6px;
    background: var(--accent-cyan, #4FD8F7);
    border-radius: 50%;
    left: -2px;
    box-shadow: 0 0 6px var(--accent-cyan, #4FD8F7);
    animation: oi-packet-move 1.6s infinite linear;
}
@keyframes oi-packet-move {
    0%  { top: -6px; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100%{ top: 24px; opacity: 0; }
}

/* Health */
.oi-health-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 10px; margin-bottom: 18px;
}
.oi-health-item {
    display: flex; align-items: center; gap: 8px;
    font-size: .78rem; color: rgba(240,244,255,.8);
    background: rgba(39,201,63,.05);
    border: 1px solid rgba(39,201,63,.15);
    border-radius: 8px; padding: 8px 10px;
}
.oi-health-dot {
    width: 8px; height: 8px; border-radius: 50%;
    flex-shrink: 0;
}
.oi-health-dot.online {
    background: #27c93f;
    box-shadow: 0 0 8px #27c93f;
    animation: oi-blink 2s infinite;
}

/* Tech Tags */
.oi-tech-caps {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin-top: 6px;
}
.oi-tech-tag {
    font-size: .7rem; font-weight: 600;
    padding: 5px 10px; border-radius: 6px;
    background: rgba(79,216,247,.08);
    border: 1px solid rgba(79,216,247,.2);
    color: var(--accent-cyan, #4FD8F7);
    letter-spacing: .4px;
    transition: .2s;
}
.oi-tech-tag:hover { background: rgba(79,216,247,.16); transform: translateY(-1px); }

/* Mobile */
@media (max-width: 1100px) {
    .oi-metrics-row { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .oi-metrics-row { grid-template-columns: repeat(2, 1fr); }
    .oi-lower-grid { grid-template-columns: 1fr; }
    .oi-section { padding: 70px 0; }
    .oi-metric-num { font-size: 1.3rem; }
}
@media (max-width: 480px) {
    .oi-metrics-row { grid-template-columns: 1fr 1fr; }
}
