/* ==========================================================================
   THE NEW STEP - Premium Corporate Landing Page Styling (landing.css)
   ========================================================================== */

:root {
    --color-bg-base: #070814;
    --color-bg-panel: rgba(12, 14, 38, 0.45);
    --color-primary: #8b5cf6;       /* Radiant Violet */
    --color-primary-rgb: 139, 92, 246;
    --color-accent: #06b6d4;        /* Electric Cyan */
    --color-accent-rgb: 6, 182, 212;
    --color-pink: #ec4899;          /* Cyber Pink */
    --color-pink-rgb: 236, 72, 153;
    
    /* Glassmorphism Specs */
    --glass-bg: rgba(13, 16, 44, 0.45);
    --glass-border: rgba(255, 255, 255, 0.07);
    --glass-border-hover: rgba(255, 255, 255, 0.15);
    --glass-blur: 16px;
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

/* Reset & Base Elements */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color-bg-base);
    color: #f1f5f9;
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
    min-height: 100vh;
}

/* Glowing Atmospheric Orbs */
.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.3;
    transition: transform 0.2s ease-out, opacity 0.5s ease;
}
.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(var(--color-primary-rgb), 0.5) 0%, rgba(var(--color-primary-rgb), 0) 70%);
    top: -10%;
    left: -10%;
    animation: floatOrb1 25s infinite alternate ease-in-out;
}
.orb-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(var(--color-accent-rgb), 0.4) 0%, rgba(var(--color-accent-rgb), 0) 70%);
    bottom: -15%;
    right: -10%;
    animation: floatOrb2 30s infinite alternate ease-in-out;
}
.orb-3 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(var(--color-pink-rgb), 0.3) 0%, rgba(var(--color-pink-rgb), 0) 70%);
    top: 40%;
    left: 45%;
    animation: floatOrb3 20s infinite alternate ease-in-out;
}

@keyframes floatOrb1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(80px, 60px) scale(1.1); }
}
@keyframes floatOrb2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-100px, -70px) scale(1.2); }
}
@keyframes floatOrb3 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, -50px) scale(0.9); }
}

/* Glassmorphism Containers */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.glass:hover {
    border-color: var(--glass-border-hover);
    box-shadow: 0 10px 40px 0 rgba(var(--color-primary-rgb), 0.15);
}

/* Landing Page Wrapper */
.landing-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    z-index: 10;
    position: relative;
}

/* Header Navigation Bar */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    margin-top: 25px;
    z-index: 100;
}
.header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}
.brand-logo {
    width: 38px;
    height: 38px;
}
.logo-svg {
    width: 100%;
    height: 100%;
}
.brand-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 2px;
    background: linear-gradient(120deg, #ffffff, var(--color-primary), var(--color-accent), var(--color-pink), #ffffff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: colorSweep 8s linear infinite;
}

@keyframes colorSweep {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
}
.nav-link {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}
.nav-link:hover {
    color: var(--color-accent);
    text-shadow: 0 0 8px rgba(var(--color-accent-rgb), 0.5);
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Switcher & Buttons */
.btn {
    padding: 10px 22px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    outline: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    color: white;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(var(--color-accent-rgb), 0.6);
}
.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}
.btn-glow {
    position: relative;
    overflow: hidden;
}
.btn-glow::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: rotate(45deg);
    transition: 0.5s;
    opacity: 0;
}
.btn-glow:hover::after {
    left: 120%;
    opacity: 1;
}

.icon-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--color-accent);
    font-weight: 700;
    transition: all 0.3s ease;
}
.icon-btn:hover {
    background: rgba(var(--color-accent-rgb), 0.1);
    border-color: var(--color-accent);
    color: #fff;
    box-shadow: 0 0 10px rgba(var(--color-accent-rgb), 0.3);
}

/* Mobile Menu Components */
.mobile-menu-btn {
    display: none;
}
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(7, 8, 20, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 100000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
    pointer-events: none;
}
.mobile-menu-overlay.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}
.mobile-menu-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: var(--color-accent);
    font-size: 2.5rem;
    cursor: pointer;
}
body.rtl .mobile-menu-close {
    right: auto;
    left: 30px;
}
.mobile-nav-links {
    list-style: none;
    text-align: center;
    margin-bottom: 40px;
}
.mobile-nav-link {
    display: block;
    font-size: 1.5rem;
    font-family: var(--font-heading);
    color: #fff;
    text-decoration: none;
    margin-bottom: 25px;
    font-weight: 700;
}
.mobile-menu-footer {
    width: 80%;
    max-width: 300px;
}

/* Hero Section */
.hero-section {
    padding: 100px 0 80px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}
.hero-badge {
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--color-accent);
    background: rgba(var(--color-accent-rgb), 0.1);
    border: 1px solid rgba(var(--color-accent-rgb), 0.2);
    margin-bottom: 25px;
    text-transform: uppercase;
    box-shadow: inset 0 0 8px rgba(var(--color-accent-rgb), 0.1);
}
.hero-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    max-width: 900px;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #ffffff 20%, #cbd5e1 50%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-desc {
    font-size: 1.15rem;
    color: #94a3b8;
    max-width: 720px;
    margin-bottom: 45px;
}
.hero-actions {
    display: flex;
    gap: 20px;
}
.hero-actions .btn {
    padding: 16px 36px;
    font-size: 1rem;
    border-radius: 12px;
}

/* Features Showcase Section */
.section-title-container {
    text-align: center;
    margin-bottom: 60px;
}
.section-badge {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--color-primary);
    text-transform: uppercase;
    margin-bottom: 12px;
    display: block;
}
.section-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 40%, rgba(255,255,255,0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.section-desc {
    color: #64748b;
    margin-top: 10px;
    font-size: 0.95rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 100px;
}
.feature-card {
    padding: 40px 30px;
    text-align: left;
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--color-primary), transparent);
}
.feature-card-2::before {
    background: linear-gradient(to bottom, var(--color-accent), transparent);
}
.feature-card-3::before {
    background: linear-gradient(to bottom, var(--color-pink), transparent);
}
.feat-icon-shell {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
}
.feat-icon-shell.text-violet {
    color: var(--color-primary);
}
.feat-icon-shell.text-cyan {
    color: var(--color-accent);
}
.feat-icon-shell.text-pink {
    color: var(--color-pink);
}
.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #f8fafc;
}
.feature-card p {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Animated Data Pipeline Flowchart */
.pipeline-section {
    margin-bottom: 100px;
}
.pipeline-card {
    padding: 45px;
}
.pipeline-flow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 50px;
    position: relative;
    gap: 15px;
}
.pipeline-node {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 22px;
    text-align: center;
    min-width: 150px;
    border-radius: 12px;
}
.pipeline-node .node-icon-shell {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 12px;
}
.pipeline-node h4 {
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 5px;
}
.node-status {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 1px;
}
.pipeline-arrow {
    width: 60px;
    height: 2px;
    background: rgba(255, 255, 255, 0.08);
    position: relative;
}
.pulse-laser {
    position: absolute;
    width: 15px;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--color-accent));
    top: 0;
    left: 0;
    border-radius: 50%;
    box-shadow: 0 0 8px var(--color-accent);
    animation: laser-pulse 2s infinite linear;
}
@keyframes laser-pulse {
    0% { left: 0%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

/* Specs Architecture Grid */
.architecture-section {
    margin-bottom: 100px;
}
.tech-spec-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.spec-card {
    padding: 35px 30px;
    text-align: left;
}
.spec-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}
.spec-card-header h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
}
.spec-card-header .icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
}
.text-cyan { color: var(--color-accent); }
.text-violet { color: var(--color-primary); }
.text-pink { color: var(--color-pink); }

.spec-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.spec-list li {
    font-size: 0.85rem;
    line-height: 1.5;
}
.spec-list li strong {
    color: #e2e8f0;
    display: block;
    margin-bottom: 3px;
}
.spec-list li span {
    color: #64748b;
}

/* Bottom Call to Action Section */
.cta-section {
    padding: 80px 0 120px 0;
    text-align: center;
}
.cta-card {
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
}
.cta-card::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(var(--color-primary-rgb), 0.15) 0%, transparent 70%);
    top: -50px;
    right: -50px;
    z-index: -1;
}
.cta-card::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(var(--color-accent-rgb), 0.15) 0%, transparent 70%);
    bottom: -50px;
    left: -50px;
    z-index: -1;
}
.cta-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 40%, rgba(255,255,255,0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.cta-desc {
    font-size: 1.05rem;
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto 35px auto;
}

/* Legal Footer */
.main-footer {
    border-top: 1px solid var(--glass-border);
    padding: 40px 0;
    text-align: center;
    background: rgba(7, 8, 20, 0.8);
}
.footer-text {
    font-size: 0.8rem;
    color: #475569;
    letter-spacing: 0.5px;
}
.footer-links {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 30px;
    list-style: none;
}
.footer-link {
    color: #64748b;
    text-decoration: none;
    font-size: 0.78rem;
    transition: color 0.2s ease;
}
.footer-link:hover {
    color: var(--color-accent);
}

/* Toast Notification styling */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    animation: toast-in 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.toast-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
}
@keyframes toast-in {
    from { transform: translateY(20px) scale(0.9); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

/* Right-To-Left (RTL) Override Specifications */
body.rtl {
    font-family: 'Cairo', 'Tajawal', var(--font-body);
    direction: rtl;
}
body.rtl h1, body.rtl h2, body.rtl h3, body.rtl h4, body.rtl h5, body.rtl h6, body.rtl .btn {
    font-family: 'Cairo', 'Tajawal', var(--font-heading);
}

body.rtl .feature-card {
    text-align: right;
}
body.rtl .feature-card::before {
    left: auto;
    right: 0;
}
body.rtl .spec-card {
    text-align: right;
}
body.rtl .spec-card-header {
    flex-direction: row-reverse;
}
body.rtl .spec-list li strong {
    text-align: right;
}
body.rtl .pipeline-flow {
    flex-direction: row-reverse;
}
body.rtl .pulse-laser {
    background: linear-gradient(to left, transparent, var(--color-accent));
    box-shadow: 0 0 8px var(--color-accent);
    animation: laser-pulse-rtl 2s infinite linear;
}
@keyframes laser-pulse-rtl {
    0% { right: 0%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { right: 100%; opacity: 0; }
}

body.rtl .toast-container {
    right: auto;
    left: 30px;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .tech-spec-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .pipeline-flow {
        flex-direction: column;
        gap: 25px;
    }
    .pipeline-arrow {
        width: 2px;
        height: 40px;
    }
    .pulse-laser {
        width: 2px;
        height: 15px;
        background: linear-gradient(to bottom, transparent, var(--color-accent));
        animation: laser-pulse-vertical 2s infinite linear;
    }
    @keyframes laser-pulse-vertical {
        0% { top: 0%; opacity: 0; }
        10% { opacity: 1; }
        90% { opacity: 1; }
        100% { top: 100%; opacity: 0; }
    }
    body.rtl .pulse-laser {
        animation: laser-pulse-vertical 2s infinite linear;
    }
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* Mobile Menu drawer could be added, keep simple header link to portal */
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .tech-spec-grid {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 2.3rem;
    }
    .section-title {
        font-size: 1.7rem;
    }
    .feature-card {
        padding: 30px 20px;
    }
    .nexus-product-logo {
        width: 55px !important;
        height: 55px !important;
        margin-bottom: 10px !important;
    }
    .landing-wrapper {
        padding: 0 20px;
    }
    .main-header {
        padding: 15px 20px;
    }
    .mobile-menu-btn {
        display: flex;
    }
    .header-launch-btn {
        display: none;
    }
    .hero-section {
        padding: 60px 0 40px 0;
    }
    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }
    .hero-actions .btn {
        width: 100%;
    }
    .features-grid, .architecture-section, .pipeline-section {
        margin-bottom: 60px;
    }
    .cta-card {
        padding: 40px 20px;
    }
    .cta-section {
        padding: 40px 0 60px 0;
    }
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    .pipeline-arrow {
        margin: 0 auto;
    }
}
