:root {
    --gp-primary: #0078d4;
    --gp-primary-dark: #005a9e;
    --gp-page-bg: #01308A;
    --gp-glass: rgba(255, 255, 255, 0.09);
    --gp-glass-border: rgba(255, 255, 255, 0.14);
    --gp-text-light: #f8fafc;
    --gp-text-muted: rgba(248, 250, 252, 0.78);
    --gp-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --gp-ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --font-en: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-ar: "Cairo", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    margin: 0;
}

body.landing-page {
    font-family: var(--font-en);
    color: var(--gp-text-light);
    background: var(--gp-page-bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.landing-page[dir="rtl"] {
    font-family: var(--font-ar);
}

/* Background — flat blue, same as login page */
.landing-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: #01308A;
}

.landing-bg::after {
    content: none;
}

.landing-orb {
    display: none;
}

/* Navbar */
.landing-navbar {
    z-index: 1030;
    padding: 0.85rem 0;
    background: #01308A;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: padding 0.35s var(--gp-ease-smooth);
}

.landing-navbar.landing-navbar-scrolled {
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
    background: #01308A;
    box-shadow: none;
}

.landing-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 700;
    font-size: 1.05rem;
    color: #fff !important;
    text-decoration: none;
    transition: opacity 0.2s var(--gp-ease-smooth);
    line-height: 1;
    padding: 0.15rem 0;
}

.landing-brand:hover {
    opacity: 0.92;
}

.landing-brand-name {
    line-height: 1;
    white-space: nowrap;
}

.landing-brand-logo--nav {
    width: auto;
    height: 44px;
    max-height: 48px;
    margin: 0;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

.landing-nav-links .nav-link {
    position: relative;
    color: rgba(248, 250, 252, 0.82) !important;
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 0.5rem 1rem !important;
    transition: color 0.25s var(--gp-ease-smooth);
}

.landing-nav-links .nav-link::after {
    content: "";
    position: absolute;
    inset-inline: 1rem;
    bottom: 0.25rem;
    height: 2px;
    border-radius: 999px;
    background: #fff;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s var(--gp-ease-out);
}

.landing-nav-links .nav-link:hover::after,
.landing-nav-links .nav-link:focus::after {
    transform: scaleX(1);
}

.landing-nav-links .nav-link:hover,
.landing-nav-links .nav-link:focus {
    color: #fff !important;
}

.landing-nav-toggle {
    border-color: rgba(255, 255, 255, 0.25);
    transition: border-color 0.2s ease;
}

.landing-nav-toggle .navbar-toggler-icon {
    filter: invert(1);
}

.landing-nav-actions {
    margin-top: 0.75rem;
}

@media (min-width: 992px) {
    .landing-nav-actions {
        margin-top: 0;
    }
}

.landing-lang-switch {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.landing-lang-link {
    color: rgba(248, 250, 252, 0.72);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease;
}

.landing-lang-link.active,
.landing-lang-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
}

.landing-lang-sep {
    color: rgba(248, 250, 252, 0.35);
    font-size: 0.75rem;
}

.landing-nav-login {
    font-weight: 600;
    border-radius: 8px;
    white-space: nowrap;
    transition: transform 0.25s var(--gp-ease-out), box-shadow 0.25s var(--gp-ease-out);
}

.landing-nav-login:hover {
    transform: translateY(-1px);
}

/* Hero */
.landing-hero,
.landing-section {
    scroll-margin-top: 92px;
}

.landing-hero {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    padding: 7rem 0 3rem;
}

.landing-hero-compact {
    min-height: auto;
    padding-bottom: 2rem;
}

.landing-section-tight {
    padding-top: 2.5rem;
}

.landing-hero-inner {
    position: relative;
    max-width: 820px;
    margin: 0 auto;
}

.landing-hero-inner::before {
    content: none;
}

.landing-hero-item {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
    animation: heroReveal 0.85s var(--gp-ease-out) forwards;
}

.landing-hero-item-1 { animation-delay: 0.05s; }
.landing-hero-item-2 { animation-delay: 0.18s; }
.landing-hero-item-3 { animation-delay: 0.3s; }
.landing-hero-item-4 { animation-delay: 0.42s; }

@keyframes heroReveal {
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.landing-brand-block {
    position: relative;
    margin: 0 auto 2rem;
    padding: 0;
    background: transparent;
    isolation: isolate;
}

.landing-brand-block::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 42%;
    z-index: 0;
    width: min(92vw, 300px);
    height: 200px;
    transform: translate(-50%, -50%);
    pointer-events: none;
    background: radial-gradient(
        ellipse 100% 80% at 50% 50%,
        rgba(96, 165, 250, 0.1) 0%,
        rgba(37, 99, 235, 0.04) 42%,
        transparent 72%
    );
}

.landing-brand-logo {
    position: relative;
    z-index: 1;
    display: block;
    width: min(100%, 380px);
    height: auto;
    margin: 0 auto;
    object-fit: contain;
    background: transparent;
    border: 0;
    box-shadow: none;
    user-select: none;
    -webkit-user-drag: none;
}

.landing-headline {
    margin: 0 0 1.15rem;
    font-size: clamp(1.65rem, 4.5vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.2;
    color: #fff;
}

.landing-description {
    margin: 0 auto 2.5rem;
    max-width: 640px;
    font-size: clamp(1rem, 2.3vw, 1.125rem);
    line-height: 1.75;
    color: var(--gp-text-muted);
}

.landing-login-alert {
    max-width: 520px;
    margin: 0 auto 1.5rem;
    text-align: start;
}

.landing-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-width: min(100%, 320px);
    padding: 1.15rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    text-decoration: none;
    color: #fff !important;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--gp-primary) 0%, var(--gp-primary-dark) 100%);
    box-shadow:
        0 6px 28px rgba(0, 90, 158, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.12) inset;
    transition:
        transform 0.35s var(--gp-ease-out),
        box-shadow 0.35s var(--gp-ease-out),
        background 0.35s var(--gp-ease-smooth);
    transform: translateZ(0);
}

.landing-cta:hover,
.landing-cta:focus {
    color: #fff !important;
    transform: translate3d(0, -4px, 0) scale(1.02);
    box-shadow:
        0 16px 44px rgba(0, 61, 107, 0.45),
        0 0 28px rgba(0, 120, 212, 0.3);
    background: linear-gradient(135deg, #0086e8 0%, #004880 100%);
}

.landing-cta:active {
    transform: translate3d(0, -1px, 0) scale(1);
    transition-duration: 0.12s;
}

.landing-cta-sm {
    min-width: auto;
    padding: 0.85rem 1.75rem;
    font-size: 1rem;
}

.landing-nav-login {
    transition: transform 0.12s var(--gp-ease-out), box-shadow 0.12s var(--gp-ease-out);
}

body.landing-page[dir="rtl"] .landing-cta i,
body.landing-page[dir="rtl"] .landing-nav-login i {
    transform: scaleX(-1);
}

/* Scroll reveal */
.landing-reveal {
    opacity: 0;
    transform: translate3d(0, 32px, 0);
    transition:
        opacity 0.75s var(--gp-ease-out),
        transform 0.75s var(--gp-ease-out);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}

.landing-reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    will-change: auto;
}

.landing-stagger > .landing-reveal:nth-child(1) { --reveal-delay: 0ms; }
.landing-stagger > .landing-reveal:nth-child(2) { --reveal-delay: 70ms; }
.landing-stagger > .landing-reveal:nth-child(3) { --reveal-delay: 140ms; }
.landing-stagger > .landing-reveal:nth-child(4) { --reveal-delay: 210ms; }
.landing-stagger > .landing-reveal:nth-child(5) { --reveal-delay: 280ms; }
.landing-stagger > .landing-reveal:nth-child(6) { --reveal-delay: 350ms; }
.landing-stagger > .landing-reveal:nth-child(7) { --reveal-delay: 420ms; }
.landing-stagger > .landing-reveal:nth-child(8) { --reveal-delay: 490ms; }

/* Sections */
.landing-section {
    position: relative;
    z-index: 1;
    padding: 5rem 0;
    content-visibility: auto;
    contain-intrinsic-size: auto 520px;
}

.landing-section-head {
    margin-bottom: 3rem;
}

.landing-section-title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 800;
    color: #fff;
}

.landing-section-subtitle {
    margin: 0 auto;
    max-width: 620px;
    color: var(--gp-text-muted);
    font-size: 1rem;
    line-height: 1.65;
}

.landing-glass-card {
    background: var(--gp-glass);
    border: 1px solid var(--gp-glass-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    transition:
        transform 0.35s var(--gp-ease-out),
        border-color 0.35s var(--gp-ease-smooth),
        box-shadow 0.35s var(--gp-ease-smooth),
        background 0.35s var(--gp-ease-smooth);
    transform: translateZ(0);
}

.landing-glass-card:hover {
    transform: translate3d(0, -5px, 0);
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.11);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

/* Features */
.landing-feature-card {
    padding: 1.5rem;
}

.landing-feature-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border-radius: 12px;
    font-size: 1.25rem;
    color: #fff;
    background: linear-gradient(135deg, rgba(0, 120, 212, 0.85), rgba(0, 90, 158, 0.9));
    box-shadow: 0 4px 16px rgba(0, 90, 158, 0.35);
}

.landing-feature-title {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
}

.landing-feature-desc {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--gp-text-muted);
}

/* Audiences */
.landing-audience-card {
    padding: 1.75rem 1.35rem;
}

.landing-audience-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
    color: #93c5fd;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(147, 197, 253, 0.25);
    transition: transform 0.35s var(--gp-ease-out), background 0.35s ease;
}

.landing-glass-card:hover .landing-audience-icon {
    transform: scale(1.06);
    background: rgba(59, 130, 246, 0.22);
}

.landing-audience-title {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
}

.landing-audience-desc {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--gp-text-muted);
}

.landing-footer-email {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #93c5fd;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: color 0.25s ease;
}

.landing-footer-email:hover {
    color: #bfdbfe;
}

/* Footer */
.landing-footer {
    position: relative;
    z-index: 1;
    padding: 3rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: #01308A;
}

.landing-footer-brand {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.35rem;
}

.landing-footer-tagline,
.landing-footer-version {
    margin: 0 0 0.25rem;
    font-size: 0.8125rem;
    color: rgba(248, 250, 252, 0.55);
}

.landing-footer-copy {
    font-size: 0.8125rem;
    color: rgba(248, 250, 252, 0.5);
}

.landing-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: start;
}

body.landing-page[dir="rtl"] .landing-footer-links {
    text-align: end;
}

@media (min-width: 992px) {
    body.landing-page[dir="ltr"] .landing-footer-links {
        text-align: end;
    }

    body.landing-page[dir="rtl"] .landing-footer-links {
        text-align: start;
    }
}

.landing-footer-links li {
    margin-bottom: 0.35rem;
}

.landing-footer-links a {
    color: rgba(248, 250, 252, 0.62);
    text-decoration: none;
    font-size: 0.8125rem;
    transition: color 0.25s ease;
}

.landing-footer-links a:hover {
    color: #fff;
}

@media (max-width: 991.98px) {
    .landing-navbar .navbar-collapse {
        margin-top: 1rem;
        padding: 1rem;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .landing-nav-actions {
        flex-wrap: wrap;
    }
}

@media (max-width: 575.98px) {
    .landing-hero {
        padding-top: 6rem;
    }

    .landing-brand-logo {
        width: min(100%, 300px);
    }

    .landing-cta {
        width: 100%;
    }

    .landing-section {
        padding: 3.5rem 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .landing-bg,
    .landing-orb,
    .landing-hero-item {
        animation: none !important;
    }

    .landing-hero-item,
    .landing-reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .landing-cta,
    .landing-glass-card {
        transition: none !important;
    }
}
