:root {
    --navy: #0a1d3d;
    --navy-2: #0f2a5a;
    --color-primary: #081b3b;
    --color-secondary: #1562be;
    --font-ar: 'Tajawal', system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-en: 'Inter', system-ui, -apple-system, "Segoe UI", sans-serif;
    --radius-sm: 8px;
    --radius-xl: 24px;
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--font-ar);
    color: #fff;
    background: var(--navy);
    -webkit-font-smoothing: antialiased;
}

html[lang="en"] body {
    font-family: var(--font-en);
}

/* header */
.header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 10;
    padding: 1rem 0;
    background: rgba(10, 29, 61, 0.82);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo img {
    display: block;
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
    text-decoration: none;
    transition: background var(--transition);
}

.lang-toggle:hover,
.lang-toggle:focus-visible {
    background: rgba(255, 255, 255, 0.22);
}

/* hero */
.hero {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    padding: 96px 0 2rem;
    overflow: hidden;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 40%, var(--navy) 100%);
}

.bokeh {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.bokeh span {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(100, 180, 255, 0.09) 0%, transparent 70%);
    animation: float 25s ease-in-out infinite;
}

.bokeh span:nth-child(1) { width: 520px; height: 520px; top: -140px; inset-inline-start: -120px; }
.bokeh span:nth-child(2) { width: 640px; height: 640px; bottom: -260px; inset-inline-end: -160px; animation-delay: -9s; }
.bokeh span:nth-child(3) { width: 300px; height: 300px; top: 38%; inset-inline-start: 42%; animation-delay: -17s; }

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -24px); }
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* The banner blends into the gradient (its own background is darker than the page). */
.brand {
    position: relative;
    display: block;
    width: 100%;
    max-width: 360px;
    aspect-ratio: 3.1 / 1;
    margin-bottom: 1.75rem;
    overflow: hidden;
}

.brand img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 135%;
    max-width: none;
    height: auto;
    transform: translate(-50%, -46.6%);
    mix-blend-mode: lighten;
}

.hero-title {
    font-size: clamp(2.2rem, 4.5vw, 3.6rem);
    font-weight: 900;
    line-height: 1.2;
    color: #fff;
}

.hero-title .highlight {
    background: linear-gradient(135deg, #fff, #64b5f6, #1562be);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-frame {
    width: 100%;
    max-width: 560px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px rgba(21, 98, 190, 0.18);
}

.hero-frame img {
    display: block;
    width: 100%;
    height: auto;
}

/* footer */
.footer {
    padding: 1.25rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--color-primary);
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.85rem;
    text-align: center;
}

/* mobile */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .brand {
        margin-inline: auto;
    }

    .header-inner {
        padding: 0 1.25rem;
    }

    .hero-grid {
        padding: 0 1.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bokeh span {
        animation: none;
    }
}
