/* =====================================================
   MASLA7TK LANDING PAGE — Premium Dark Design
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --accent: #00e5ff;
    --accent-2: #7c4dff;
    --accent-3: #00e676;
    --bg-dark: #030308;
    --bg-section: #060610;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-hover: rgba(0, 229, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.07);
    --glass-border-hover: rgba(0, 229, 255, 0.3);
    --text-main: #f0f0f5;
    --text-muted: #8a8a9a;
    --text-subtle: #5a5a6e;
    --radius: 24px;
    --radius-sm: 16px;
}

/* ── Reset & Base ── */
.landing-wrapper,
.landing-wrapper *,
.landing-wrapper *::before,
.landing-wrapper *::after {
    box-sizing: border-box;
}

.landing-wrapper {
    font-family: 'Cairo', sans-serif;
    background: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

body {
    background: var(--bg-dark) !important;
    overflow-x: hidden;
}

/* ── Ambient Background ── */
.landing-bg-noise {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 200px 200px;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    pointer-events: none;
}

.glow-orb-1 {
    width: 600px;
    height: 600px;
    top: -15%;
    left: -10%;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.18), transparent 70%);
    animation: orbFloat 12s ease-in-out infinite alternate;
}

.glow-orb-2 {
    width: 500px;
    height: 500px;
    bottom: 10%;
    right: -8%;
    background: radial-gradient(circle, rgba(124, 77, 255, 0.14), transparent 70%);
    animation: orbFloat 15s ease-in-out infinite alternate-reverse;
}

.glow-orb-3 {
    width: 350px;
    height: 350px;
    top: 50%;
    left: 40%;
    background: radial-gradient(circle, rgba(0, 230, 118, 0.08), transparent 70%);
    animation: orbFloat 18s ease-in-out infinite alternate;
}

@keyframes orbFloat {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, -40px) scale(1.15); }
}

/* ── Navbar ── */
.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.landing-nav.scrolled {
    background: rgba(3, 3, 8, 0.85);
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    border-bottom: 1px solid var(--glass-border);
    padding: 10px 0;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-brand .brand-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #fff;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.nav-btn-login {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: var(--text-main) !important;
    padding: 8px 24px !important;
    font-weight: 600 !important;
}

.nav-btn-login:hover {
    background: rgba(255, 255, 255, 0.14) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

/* ── Hero ── */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 140px 24px 100px;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.2);
    color: var(--accent);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 32px;
    animation: fadeInUp 0.8s ease both;
}

.hero-badge i {
    font-size: 1rem;
}

.hero-title {
    font-size: clamp(2.8rem, 7vw, 5rem);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 24px;
    background: linear-gradient(180deg, #ffffff 20%, #8a8aaa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 0.8s 0.15s ease both;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 580px;
    margin: 0 auto 48px;
    line-height: 1.8;
    font-weight: 400;
    animation: fadeInUp 0.8s 0.3s ease both;
}

.hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s 0.45s ease both;
}

/* ── Buttons ── */
.btn-primary-glow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--accent), #00b0d4);
    color: #000 !important;
    padding: 16px 40px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 24px rgba(0, 229, 255, 0.2), inset 0 1px 0 rgba(255,255,255,0.2);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary-glow::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.15) 50%, transparent 60%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn-primary-glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 40px rgba(0, 229, 255, 0.35);
    color: #000 !important;
}

.btn-primary-glow:hover::after {
    transform: translateX(100%);
}

.btn-secondary-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: var(--text-main) !important;
    padding: 16px 36px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.btn-secondary-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff !important;
}

/* ── Stats Bar ── */
.stats-bar {
    position: relative;
    z-index: 1;
    padding: 0 24px;
    margin-top: -40px;
    margin-bottom: 60px;
}

.stats-inner {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--glass-border);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.stat-item {
    background: rgba(6, 6, 16, 0.9);
    backdrop-filter: blur(10px);
    padding: 32px 24px;
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 4px;
    display: block;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

/* ── Section Common ── */
.landing-section {
    position: relative;
    z-index: 1;
    padding: 100px 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.section-tag::before,
.section-tag::after {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--accent);
    opacity: 0.4;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-main);
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ── Features Grid ── */
.features-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 40px 32px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 1.5rem;
}

.feature-icon-wrap.cyan {
    background: rgba(0, 229, 255, 0.1);
    color: var(--accent);
}

.feature-icon-wrap.purple {
    background: rgba(124, 77, 255, 0.1);
    color: var(--accent-2);
}

.feature-icon-wrap.green {
    background: rgba(0, 230, 118, 0.1);
    color: var(--accent-3);
}

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-main);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

/* ── CTA Section ── */
.cta-section {
    position: relative;
    z-index: 1;
    padding: 100px 24px;
}

.cta-card {
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.06) 0%, rgba(124, 77, 255, 0.06) 100%);
    border: 1px solid rgba(0, 229, 255, 0.12);
    border-radius: var(--radius);
    padding: 72px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(0,229,255,0.04), transparent 50%);
    pointer-events: none;
}

.cta-card h2 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 800;
    margin-bottom: 16px;
    position: relative;
}

.cta-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 40px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

/* ── Footer ── */
.landing-footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--glass-border);
    padding: 32px 24px;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-copy {
    color: var(--text-subtle);
    font-size: 0.85rem;
    margin: 0;
}

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

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

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

/* ── Animations ── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav-links .nav-link-text {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 120px 20px 60px;
        min-height: auto;
    }

    .hero-title {
        font-size: 2.4rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .stats-inner {
        grid-template-columns: 1fr;
    }

    .stat-item {
        padding: 20px;
    }

    .cta-card {
        padding: 48px 24px;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .nav-links {
        gap: 4px;
    }

    .nav-links a {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
}

/* ── RTL adjustments ── */
[dir="rtl"] .hero-title,
[dir="rtl"] .hero-subtitle,
[dir="rtl"] .section-title,
[dir="rtl"] .section-desc,
[dir="rtl"] .feature-card,
[dir="rtl"] .cta-card {
    text-align: center;
}

[dir="rtl"] .feature-card {
    text-align: right;
}