/**
 * Marketing landing page — bilingual EN/AR
 * Brand: slate (#0F3D5E) + teal (#1F7A8C)
 */

:root {
    --lp-ink: #0b2436;
    --lp-brand: #0f3d5e;
    --lp-accent: #1f7a8c;
    --lp-accent-soft: #d7eef2;
    --lp-sand: #e8eef2;
    --lp-paper: #f5f8fa;
    --lp-muted: #5b6b78;
    --lp-line: rgba(15, 61, 94, 0.12);
    --lp-radius: 14px;
    --lp-font: 'Plus Jakarta Sans', 'Sora', system-ui, sans-serif;
    --lp-display: 'Sora', 'Plus Jakarta Sans', system-ui, sans-serif;
}

[dir="rtl"] {
    --lp-font: 'Cairo', system-ui, sans-serif;
    --lp-display: 'Cairo', system-ui, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.landing-body {
    margin: 0;
    font-family: var(--lp-font);
    color: var(--lp-ink);
    background: var(--lp-paper);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

[dir="rtl"] body.landing-body {
    text-align: right;
}

a {
    color: inherit;
    text-decoration: none;
}

.landing {
    min-height: 100vh;
}

/* Language switcher */
.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.lang-switch-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.4rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.72);
    transition: background 0.2s ease, color 0.2s ease;
}

.lang-switch-link:hover {
    color: #fff;
}

.lang-switch-link.is-active {
    background: rgba(255, 255, 255, 0.92);
    color: var(--lp-brand);
}

.lang-switch-sep {
    display: none;
}

.lang-switch--on-light {
    background: rgba(15, 61, 94, 0.06);
    border-color: var(--lp-line);
}

.lang-switch--on-light .lang-switch-link {
    color: var(--lp-muted);
}

.lang-switch--on-light .lang-switch-link:hover {
    color: var(--lp-brand);
}

.lang-switch--on-light .lang-switch-link.is-active {
    background: var(--lp-brand);
    color: #fff;
}

/* Nav */
.landing-nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem clamp(1.25rem, 4vw, 3.5rem);
    animation: landingFadeDown 0.55s ease both;
}

.landing-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--lp-display);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
    color: #fff;
}

.landing-brand img {
    height: 36px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
}

.landing-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.landing-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    padding: 0.55rem 0.85rem;
    transition: color 0.2s ease;
}

.landing-link:hover {
    color: #fff;
}

/* Buttons */
.landing-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.7rem 1.25rem;
    border: 1px solid transparent;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
    cursor: pointer;
}

.landing-btn:hover {
    transform: translateY(-1px);
}

.landing-btn-lg {
    padding: 0.95rem 1.6rem;
    font-size: 1.05rem;
}

.landing-btn-primary {
    background: var(--lp-accent);
    color: #fff;
    box-shadow: 0 10px 28px rgba(31, 122, 140, 0.35);
}

.landing-btn-primary:hover {
    background: #196879;
    color: #fff;
}

.landing-btn-ghost {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(6px);
}

.landing-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.landing-nav .landing-btn-primary {
    box-shadow: none;
}

/* Hero — full-bleed */
.landing-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    padding: 7rem clamp(1.25rem, 4vw, 3.5rem) 4.5rem;
    overflow: hidden;
    color: #fff;
}

.landing-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 85% 15%, rgba(31, 122, 140, 0.5), transparent 55%),
        radial-gradient(ellipse 50% 40% at 10% 80%, rgba(15, 61, 94, 0.55), transparent 50%),
        linear-gradient(145deg, #071824 0%, #0f3d5e 48%, #164e6b 100%);
    z-index: 0;
}

.landing-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 85%);
    pointer-events: none;
}

.landing-hero-glow {
    position: absolute;
    width: min(52vw, 520px);
    height: min(52vw, 520px);
    right: -8%;
    bottom: 8%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(31, 122, 140, 0.35), transparent 68%);
    filter: blur(8px);
    z-index: 0;
    animation: landingPulse 7s ease-in-out infinite;
}

[dir="rtl"] .landing-hero-glow {
    right: auto;
    left: -8%;
}

.landing-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 42rem;
    animation: landingFadeUp 0.8s ease both;
}

.landing-brand-hero {
    margin: 0 0 0.85rem;
    font-family: var(--lp-display);
    font-size: clamp(1.75rem, 4.5vw, 2.65rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.12;
    color: #fff;
}

.landing-headline {
    margin: 0 0 1rem;
    font-family: var(--lp-display);
    font-size: clamp(1.2rem, 2.8vw, 1.65rem);
    font-weight: 500;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
    max-width: 34rem;
}

.landing-subhead {
    margin: 0 0 2rem;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 30rem;
}

.landing-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    animation: landingFadeUp 0.9s 0.12s ease both;
}

/* Features */
.landing-features {
    padding: 5.5rem clamp(1.25rem, 4vw, 3.5rem);
    background:
        linear-gradient(180deg, #fff 0%, var(--lp-paper) 100%);
}

.landing-section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.landing-section-title {
    margin: 0 0 0.75rem;
    font-family: var(--lp-display);
    font-size: clamp(1.55rem, 3vw, 2.1rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--lp-brand);
}

.landing-section-text {
    margin: 0 0 2.75rem;
    color: var(--lp-muted);
    max-width: 36rem;
    font-size: 1.05rem;
}

.landing-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.25rem 2.75rem;
}

.landing-feature {
    border-top: 1px solid var(--lp-line);
    padding-top: 1.45rem;
    animation: landingFadeUp 0.7s ease both;
    transition: transform 0.25s ease;
}

.landing-feature:hover {
    transform: translateY(-3px);
}

.landing-feature:nth-child(2) { animation-delay: 0.08s; }
.landing-feature:nth-child(3) { animation-delay: 0.16s; }
.landing-feature:nth-child(4) { animation-delay: 0.24s; }

.landing-feature-mark {
    display: block;
    width: 2.25rem;
    height: 3px;
    background: linear-gradient(90deg, var(--lp-accent), #3aa4b5);
    margin-bottom: 1rem;
    border-radius: 2px;
}

.landing-feature h3 {
    margin: 0 0 0.5rem;
    font-family: var(--lp-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--lp-ink);
}

.landing-feature p {
    margin: 0;
    color: var(--lp-muted);
    font-size: 0.98rem;
}

/* Final CTA */
.landing-final-cta {
    padding: 5rem clamp(1.25rem, 4vw, 3.5rem);
    background:
        radial-gradient(ellipse 60% 80% at 80% 20%, rgba(31, 122, 140, 0.35), transparent 55%),
        linear-gradient(135deg, var(--lp-brand), #164e6b);
    color: #fff;
}

.landing-final-inner {
    text-align: center;
    max-width: 36rem;
    margin-inline: auto;
}

.landing-final-inner h2 {
    margin: 0 0 0.75rem;
    font-family: var(--lp-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.landing-final-inner p {
    margin: 0 0 1.75rem;
    color: rgba(255, 255, 255, 0.78);
}

.landing-final-cta .landing-btn-primary {
    background: #fff;
    color: var(--lp-brand);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.landing-final-cta .landing-btn-primary:hover {
    background: var(--lp-accent-soft);
    color: var(--lp-brand);
}

/* Footer */
.landing-footer {
    padding: 1.5rem clamp(1.25rem, 4vw, 3.5rem);
    background: #071824;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
}

.landing-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.landing-footer-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.landing-footer a {
    color: #fff;
    font-weight: 500;
}

.landing-footer a:hover {
    color: var(--lp-accent-soft);
}

@keyframes landingFadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes landingFadeDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes landingPulse {
    0%, 100% { opacity: 0.65; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.06); }
}

@media (max-width: 768px) {
    .landing-hero {
        align-items: center;
        padding-top: 6.5rem;
        padding-bottom: 3.5rem;
        min-height: 92vh;
    }

    .landing-brand span {
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .landing-feature-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .landing-nav-actions .landing-link {
        display: none;
    }

    .landing-hero-glow {
        width: 70vw;
        height: 70vw;
        opacity: 0.7;
    }
}

@media (prefers-reduced-motion: reduce) {
    .landing-hero-inner,
    .landing-cta-group,
    .landing-feature,
    .landing-nav,
    .landing-hero-glow {
        animation: none;
    }

    .landing-btn:hover,
    .landing-feature:hover {
        transform: none;
    }
}
