:root {
    --bg: #020713;
    --bg-soft: #061426;
    --card: rgba(6, 21, 42, 0.88);
    --card-dark: rgba(3, 13, 28, 0.96);
    --line: rgba(74, 166, 255, 0.22);
    --line-strong: rgba(72, 202, 255, 0.52);
    --text: #f6fbff;
    --muted: #aabbd0;
    --muted-2: #70849c;
    --blue: #0f8dff;
    --blue-2: #42dcff;
    --blue-3: #075ee4;
    --green: #3dff97;
    --orange: #ffc857;
    --red: #ff4d6d;
    --radius: 26px;
    --radius-sm: 15px;
    --container: 1200px;
    --shadow: 0 28px 85px rgba(0, 0, 0, 0.42);
    --glow: 0 0 54px rgba(15, 141, 255, 0.24);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 130px;
}

body {
    min-height: 100vh;
    direction: rtl;
    font-family: "Cairo", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 20% 10%, rgba(15, 141, 255, 0.24), transparent 32%),
        radial-gradient(circle at 85% 25%, rgba(66, 220, 255, 0.16), transparent 30%),
        radial-gradient(circle at 50% 100%, rgba(7, 94, 228, 0.18), transparent 36%),
        linear-gradient(135deg, #01040b 0%, #031024 48%, #020713 100%);
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -5;
    pointer-events: none;
    background:
        linear-gradient(120deg, rgba(15, 141, 255, 0.08), transparent 35%),
        linear-gradient(300deg, rgba(66, 220, 255, 0.06), transparent 40%);
    opacity: 0.9;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -4;
    pointer-events: none;
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.045), transparent 1px),
        radial-gradient(circle at 70% 60%, rgba(66, 220, 255, 0.06), transparent 1px);
    background-size: 90px 90px, 130px 130px;
    opacity: 0.45;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(calc(100% - 40px), var(--container));
    margin-inline: auto;
}

.section-space {
    padding: 78px 0;
}

.site-grid {
    display: none;
}

.site-grid::after {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(180deg,
            transparent 0 10px,
            rgba(66, 220, 255, 0.08) 11px);
}

.site-orb {
    position: fixed;
    width: 440px;
    height: 440px;
    z-index: -3;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(48px);
}

.orb-one {
    top: -150px;
    right: -140px;
    background: rgba(15, 141, 255, 0.18);
}

.orb-two {
    left: -170px;
    bottom: 10%;
    background: rgba(66, 220, 255, 0.12);
}

.main-header {
    position: sticky;
    top: 18px;
    z-index: 100;
    width: min(calc(100% - 34px), 1240px);
    margin: 18px auto 0;
    border: 1px solid rgba(84, 171, 255, 0.24);
    border-radius: 24px;
    background: rgba(2, 10, 23, 0.74);
    backdrop-filter: blur(18px);
    box-shadow:
        0 24px 75px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.nav-wrap {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.logo,
.footer-logo {
    direction: ltr;
    font-size: 2.22rem;
    font-weight: 900;
    letter-spacing: 1px;
    line-height: 1;
    color: #fff;
    text-shadow: 0 0 26px rgba(66, 220, 255, 0.28);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-menu a {
    color: #e9f5ff;
    font-weight: 800;
    padding: 12px 16px;
    border-radius: 15px;
    transition: 0.22s ease;
}

.nav-menu a:not(.nav-cta):hover {
    color: var(--blue-2);
    background: rgba(255, 255, 255, 0.055);
}

.nav-cta,
.primary-btn,
.android-download-btn,
.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 0;
    cursor: pointer;
    color: #fff;
    font-weight: 900;
    padding: 13px 24px;
    border-radius: 16px;
    background: linear-gradient(135deg, #1191ff, #075ee2);
    box-shadow:
        0 16px 40px rgba(15, 141, 255, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
    transition: 0.22s ease;
}

.nav-cta:hover,
.primary-btn:hover,
.android-download-btn:hover,
.download-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow:
        0 22px 54px rgba(15, 141, 255, 0.46),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.menu-btn {
    display: none;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: rgba(7, 22, 43, 0.92);
    cursor: pointer;
    padding: 11px;
}

.menu-btn span {
    display: block;
    height: 2px;
    margin: 5px 0;
    border-radius: 999px;
    background: #fff;
    transition: 0.25s ease;
}

.menu-btn.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.menu-btn.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.eyebrow {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    margin-bottom: 18px;
    border-radius: 999px;
    color: var(--blue-2);
    background: rgba(66, 220, 255, 0.07);
    border: 1px solid rgba(66, 220, 255, 0.2);
    font-weight: 900;
    font-size: 0.86rem;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    margin-bottom: 34px;
    text-align: center;
}

.section-title span {
    width: 82px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--blue));
}

.section-title span:last-child {
    background: linear-gradient(90deg, var(--blue), transparent);
}

.section-title h2 {
    font-size: clamp(1.7rem, 3vw, 2.25rem);
    font-weight: 900;
}

.secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid rgba(135, 200, 255, 0.22);
    color: #eff8ff;
    background: rgba(255, 255, 255, 0.055);
    padding: 13px 24px;
    border-radius: 16px;
    font-weight: 900;
    transition: 0.22s ease;
}

.secondary-btn:hover {
    color: var(--blue-2);
    border-color: rgba(66, 220, 255, 0.5);
    background: rgba(66, 220, 255, 0.08);
    transform: translateY(-2px);
}

.main-footer {
    padding: 42px 0;
    border-top: 1px solid rgba(84, 171, 255, 0.15);
    background: rgba(1, 7, 16, 0.68);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.75fr;
    gap: 30px;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 14px;
    font-size: 2.1rem;
}

.main-footer p,
.main-footer a,
.main-footer span {
    color: var(--muted);
}

.main-footer h4 {
    margin-bottom: 12px;
    font-size: 1.08rem;
}

.main-footer a {
    margin-bottom: 8px;
    transition: 0.2s ease;
}

.main-footer a:hover {
    color: var(--blue-2);
}

.footer-copy {
    text-align: left;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 26px;
    z-index: 999;
    width: min(420px, calc(100% - 32px));
    padding: 14px 18px;
    border-radius: 16px;
    text-align: center;
    color: #fff;
    background: rgba(4, 17, 34, 0.97);
    border: 1px solid rgba(66, 220, 255, 0.28);
    box-shadow: 0 25px 70px rgba(0, 0, 0, .45), 0 0 36px rgba(15, 141, 255, .22);
    backdrop-filter: blur(16px);
    transform: translate(-50%, 120px);
    opacity: 0;
    transition: 0.32s ease;
}

.toast.show {
    transform: translate(-50%, 0);
    opacity: 1;
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: 0.75s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 960px) {
    .container {
        width: min(calc(100% - 28px), var(--container));
    }

    .main-header {
        top: 10px;
        width: min(calc(100% - 20px), 1240px);
        margin-top: 10px;
    }

    .nav-wrap {
        min-height: 70px;
    }

    .menu-btn {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 84px;
        right: 10px;
        left: 10px;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding: 14px;
        border: 1px solid var(--line);
        border-radius: 22px;
        background: rgba(3, 12, 27, 0.98);
        box-shadow: var(--shadow);
        backdrop-filter: blur(18px);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-18px);
        transition: 0.25s ease;
    }

    .nav-menu.open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav-menu a {
        text-align: center;
        padding: 15px;
    }

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

    .footer-copy {
        text-align: right;
    }
}

@media (max-width: 620px) {
    .section-space {
        padding: 58px 0;
    }

    .logo {
        font-size: 1.8rem;
    }

    .section-title {
        gap: 12px;
    }

    .section-title span {
        width: 42px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .main-footer a {
        width: fit-content;
        margin-inline: auto;
    }

    .footer-copy {
        text-align: center;
    }
}