/* ===================== Inter (local) ===================== */
@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-SemiBold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ===================== Base tokens ===================== */
:root {
    --background: #ffffff;
    --foreground: #0e1a36;
    --card: rgba(255,255,255,0.96);
    --card-foreground: #0e1a36;
    --primary: #f4b558;
    --secondary: #f3f4f6;
    --muted-foreground: #7a829f;
    --border: #e5e7eb;
    --radius: 12px;
    --container: 1120px;
}

html.dark {
    --background: #0e1a36;
    --foreground: #ffffff;
    --card: rgba(19, 32, 67, 0.78);
    --card-foreground: #ffffff;
    --primary: #f4b558;
    --secondary: #132043;
    --muted-foreground: #8c93af;
    --border: rgba(122,130,159,0.30);
}

* {
    box-sizing: border-box;
}

/* Light mode = أي حالة ليست dark */
html:not(.dark) .header #themeIcon {
    filter: none; /* يبقى أزرق/داكن */
}

/* Dark mode */
html.dark .header #themeIcon {
    filter: invert(1); /* يصير أبيض */
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter',system-ui,-apple-system,Segoe UI,sans-serif;
    background: var(--background);
    color: var(--foreground);
    transition: background .3s ease, color .3s ease;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
}

img {
    display: block;
    max-width: 100%;
}

/* ===================== Utilities ===================== */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width:640px) {
    .container {
        padding: 0 24px;
    }
}

@media (min-width:1024px) {
    .container {
        padding: 0 32px;
    }
}

.theme-transition {
    transition: all .3s ease;
}

.glass {
    backdrop-filter: blur(20px);
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.20);
}

html.dark .glass {
    background: rgba(19,32,67,0.60);
    border-color: rgba(122,130,159,0.30);
}

html.dark .glow-card {
    box-shadow: 0 0 40px rgba(244,181,88,0.15);
}

html.dark .glow-orange {
    box-shadow: 0 0 30px rgba(244,181,88,0.30), 0 0 60px rgba(244,181,88,0.10);
}

/* ===================== Header ===================== */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    border-bottom: 1px solid rgba(229,231,235,0.40);
    background: rgba(255,255,255,0.80);
    backdrop-filter: blur(20px);
}

html.dark .header {
    border-bottom-color: rgba(122,130,159,0.30);
    background: rgba(14,26,54,0.80);
}

.header-row {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.logo {
    height: 64px;
    width: auto;
}

.nav-desktop {
    display: none;
    gap: 32px;
    align-items: center;
}

    .nav-desktop a {
        font-size: 14px;
        font-weight: 500;
        color: var(--muted-foreground);
        transition: color .2s ease;
    }

        .nav-desktop a:hover {
            color: var(--foreground);
        }

.actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--secondary);
    color: var(--foreground);
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background .2s ease, transform .2s ease;
}

    .btn-pill:hover {
        background: color-mix(in srgb, var(--secondary) 80%, transparent);
    }

.btn-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background .2s ease;
}

    .btn-icon:hover {
        background: var(--secondary);
    }

.btn-gradient {
    display: none;
    border: none;
    cursor: pointer;
    padding: 10px 18px;
    border-radius: 999px;
    background: linear-gradient(90deg, #F4B558 0%, #F2B15C 100%);
    color: #0E1A36;
    font-weight: 700;
    box-shadow: 0 12px 24px rgba(244,181,88,0.25);
    transition: opacity .2s ease, transform .2s ease, box-shadow .2s ease;
}

    .btn-gradient:hover {
        opacity: .92;
        transform: translateY(-1px);
        box-shadow: 0 16px 30px rgba(244,181,88,0.32);
    }

.mobile-toggle {
    display: inline-flex;
}

.lang-desktop {
    display: none;
}

@media (min-width:768px) {
    .nav-desktop {
        display: flex;
    }

    .btn-gradient {
        display: inline-flex;
    }

    .mobile-toggle {
        display: none;
    }
}

@media (min-width:640px) {
    .lang-desktop {
        display: inline-flex;
    }
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    padding: 16px 0 20px;
    border-top: 1px solid rgba(229,231,235,0.40);
}

html.dark .mobile-menu {
    border-top-color: rgba(122,130,159,0.30);
}

.mobile-menu.open {
    display: block;
    animation: menuIn .22s ease-out both;
}

@keyframes menuIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobile-menu a {
    font-size: 14px;
    font-weight: 500;
    color: var(--muted-foreground);
}

    .mobile-menu a:hover {
        color: var(--foreground);
    }

.mobile-menu .menu-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid rgba(229,231,235,0.40);
}

html.dark .mobile-menu .menu-actions {
    border-top-color: rgba(122,130,159,0.30);
}

/* ===================== Hero ===================== */
.hero {
    position: relative;
    overflow: hidden;
}

.hero-bg1, .hero-bg2 {
    position: absolute;
    inset: 0;
}

.hero-bg1 {
    background: linear-gradient(135deg, #F4B558 0%, #F2B15C 25%, #E9E6F1 50%, #8C93AF 75%, #7A829F 100%);
}

.hero-bg2 {
    background: linear-gradient(135deg, rgba(244,181,88,0.30) 0%, rgba(233,230,241,0.50) 50%, rgba(140,147,175,0.30) 100%);
}

.hero-blob {
    position: absolute;
    border-radius: 9999px;
    filter: blur(64px);
    opacity: 1;
}

    .hero-blob.a {
        top: 80px;
        left: 40px;
        width: 256px;
        height: 256px;
        background: rgba(244,181,88,0.20);
    }

    .hero-blob.b {
        bottom: 80px;
        right: 40px;
        width: 384px;
        height: 384px;
        background: rgba(140,147,175,0.20);
    }

html[dir="rtl"] .hero-blob.a {
    left: auto;
    right: 40px;
}

html[dir="rtl"] .hero-blob.b {
    right: auto;
    left: 40px;
}

.hero-grid {
    position: relative;
    z-index: 10;
    display: grid;
    gap: 48px;
    align-items: center;
    padding: 80px 0 128px;
}

@media(min-width:1024px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.hero-copy {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.hero-title {
    font-size: 40px;
    font-weight: 900;
    line-height: 1.05;
    color: #0E1A36;
    letter-spacing: -0.02em;
}

@media(min-width:640px) {
    .hero-title {
        font-size: 48px;
    }
}

@media(min-width:1024px) {
    .hero-title {
        font-size: 60px;
    }
}

.grad {
    background: linear-gradient(90deg, #F4B558 0%, #F2B15C 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-desc {
    font-size: 18px;
    line-height: 1.7;
    color: rgba(14,26,54,0.70);
    max-width: 640px;
}

@media(min-width:640px) {
    .hero-desc {
        font-size: 20px;
    }
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.btn-hero-primary {
    border: none;
    cursor: pointer;
    padding: 14px 28px;
    border-radius: 999px;
    background: linear-gradient(90deg, #F4B558 0%, #F2B15C 100%);
    color: #0E1A36;
    font-weight: 800;
    box-shadow: 0 18px 30px rgba(244,181,88,0.25);
    transition: opacity .2s ease, transform .2s ease, box-shadow .2s ease;
}

    .btn-hero-primary:hover {
        opacity: .92;
        transform: translateY(-1px);
        box-shadow: 0 22px 42px rgba(244,181,88,0.32);
    }

.btn-hero-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 999px;
    border: 2px solid #0E1A36;
    color: #0E1A36;
    font-weight: 800;
    background: rgba(255,255,255,0.50);
    transition: background .2s ease;
}

    .btn-hero-outline:hover {
        background: rgba(14,26,54,0.10);
    }

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 8px;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.60);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.50);
}

    .tag span {
        font-size: 14px;
        font-weight: 700;
        color: #0E1A36;
    }

    .tag img {
        width: 16px;
        height: 16px;
    }

.hero-illus {
    display: none;
    position: relative;
    align-items: center;
    justify-content: center;
}

@media(min-width:1024px) {
    .hero-illus {
        display: flex;
    }
}

.hero-illus-wrap {
    position: relative;
    width: min(520px, 100%);
    aspect-ratio: 1/1;
}

.hero-illus-glow {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(244,181,88,0.30), rgba(140,147,175,0.20));
    filter: blur(64px);
}

.hero-illus-img {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .hero-illus-img img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        filter: drop-shadow(0 22px 22px rgba(0,0,0,0.15));
    }

/* ===================== Sections ===================== */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    max-width: 768px;
    margin: 0 auto 64px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.h2 {
    font-size: 34px;
    font-weight: 900;
    letter-spacing: -0.02em;
    margin: 0;
}

@media(min-width:640px) {
    .h2 {
        font-size: 40px;
    }
}

@media(min-width:1024px) {
    .h2 {
        font-size: 52px;
    }
}

.grad2 {
    background: linear-gradient(90deg, #F4B558 0%, #8C93AF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lead {
    font-size: 18px;
    color: var(--muted-foreground);
    line-height: 1.7;
    margin: 0;
}

/* ===================== Products ===================== */
.products-grid {
    display: grid;
    gap: 32px;
    max-width: 960px;
    margin: 0 auto;
}

@media(min-width:768px) {
    .products-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    border: 2px solid rgba(244,181,88,0.30);
    background: var(--card);
    color: var(--card-foreground);
    transition: transform .2s ease, box-shadow .3s ease, border-color .2s ease;
}

    .card:hover {
        transform: translateY(-2px);
        box-shadow: 0 18px 30px rgba(0,0,0,0.08);
    }

html.dark .card:hover {
    box-shadow: 0 0 40px rgba(244,181,88,0.15);
}

.card.coming {
    border-color: rgba(140,147,175,0.30);
}

.badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #8C93AF;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

html[dir="rtl"] .badge {
    right: auto;
    left: 16px;
}

.card-inner {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.icon-chip {
    display: inline-flex;
    padding: 12px;
    border-radius: 18px;
    background: linear-gradient(135deg, #F4B558, #F2B15C);
    width: fit-content;
}

    .icon-chip.gray {
        background: linear-gradient(135deg, #7A829F, #8C93AF);
    }

    .icon-chip img {
        width: 24px;
        height: 24px;
        filter: brightness(0) invert(1);
    }

.card-title {
    font-size: 20px;
    font-weight: 900;
    margin: 0;
}

.card-desc {
    color: var(--muted-foreground);
    line-height: 1.7;
    font-size: 14.5px;
    margin: 0;
}

.features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted-foreground);
    font-size: 14px;
}

html[dir="rtl"] .feature {
    flex-direction: row-reverse;
}

.feature img {
    width: 16px;
    height: 16px;
}

.card-footer {
    padding: 0 22px 22px;
}

.btn-full {
    width: 100%;
    border: none;
    cursor: pointer;
    padding: 14px 18px;
    border-radius: 999px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

    .btn-full.live {
        background: linear-gradient(90deg, #F4B558, #F2B15C);
        color: #0E1A36;
        box-shadow: 0 18px 30px rgba(244,181,88,0.22);
    }

    .btn-full.disabled {
        background: rgba(140,147,175,0.50);
        color: rgba(255,255,255,0.70);
        cursor: not-allowed;
    }

/* ===================== About + Why ===================== */
.soft-bg {
    background: rgba(243,244,246,0.5);
}

html.dark .soft-bg {
    background: rgba(19,32,67,0.30);
}

.about-wrap {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.about-icon {
    margin: 0 auto;
    width: fit-content;
    padding: 16px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(244,181,88,0.20), rgba(140,147,175,0.20));
}

    .about-icon svg {
        width: 32px;
        height: 32px;
        color: #F4B558;
    }

.about-tag {
    margin: 0 auto;
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

html.dark .about-tag {
    background: rgba(19,32,67,0.60);
    border-color: rgba(122,130,159,0.30);
}

.about-tag svg {
    width: 20px;
    height: 20px;
    color: #8C93AF;
}

.about-tag span {
    font-size: 14px;
    font-weight: 800;
    color: var(--muted-foreground);
}

.why-grid {
    display: grid;
    gap: 24px;
    max-width: 1080px;
    margin: 0 auto;
}

@media(min-width:640px) {
    .why-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media(min-width:1024px) {
    .why-grid {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
}

.why-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 22px;
    transition: transform .2s ease, box-shadow .3s ease;
}

    .why-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 18px 30px rgba(0,0,0,0.08);
    }

.why-icon {
    width: 48px;
    height: 48px;
    border-radius: 13px;
    background: rgba(244,181,88,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}

    .why-icon img {
        width: 24px;
        height: 24px;
    }

.why-title {
    text-align: center;
    font-weight: 900;
    font-size: 18px;
    margin: 0 0 10px;
}

.why-desc {
    text-align: center;
    color: var(--muted-foreground);
    line-height: 1.7;
    font-size: 14.5px;
    margin: 0;
}

/* ===================== CTA ===================== */
.cta {
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

.cta-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #F4B558 0%, #F2B15C 30%, #8C93AF 70%, #7A829F 100%);
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: rgba(14,26,54,0);
}

html.dark .cta-overlay {
    background: rgba(14,26,54,0.70);
}

.cta-blob {
    position: absolute;
    border-radius: 999px;
    background: rgba(255,255,255,0.10);
    filter: blur(48px);
}

    .cta-blob.a {
        top: 40px;
        left: 40px;
        width: 128px;
        height: 128px;
    }

    .cta-blob.b {
        bottom: 40px;
        right: 40px;
        width: 192px;
        height: 192px;
        filter: blur(64px);
    }

.cta-inner {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.cta-title {
    color: #fff;
    font-size: 34px;
    font-weight: 900;
    letter-spacing: -0.02em;
    margin: 0;
}

@media(min-width:640px) {
    .cta-title {
        font-size: 40px;
    }
}

@media(min-width:1024px) {
    .cta-title {
        font-size: 52px;
    }
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.btn-cta-primary {
    border: none;
    cursor: pointer;
    padding: 14px 28px;
    border-radius: 999px;
    background: #fff;
    color: #0E1A36;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.btn-cta-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 999px;
    border: 2px solid #fff;
    color: #fff;
    font-weight: 900;
    background: transparent;
}

.cta-note {
    color: rgba(255,255,255,0.80);
    font-size: 14px;
    max-width: 520px;
    margin: 0 auto;
}

/* ===================== Footer ===================== */
.footer {
    position: relative;
    overflow: hidden;
    padding: 64px 0;
    background: linear-gradient(135deg, #F8F9FB 0%, #F3F4F6 45%, #E9EAF0 100%);
}

html.dark .footer {
    background: linear-gradient(135deg, #0E1A36 0%, #152447 45%, #1B2E5B 100%);
}

.footer-grid {
    position: relative;
    z-index: 10;
    display: grid;
    gap: 40px;
}

@media(min-width:768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.footer-col h4 {
    font-weight: 900;
    margin: 0 0 6px;
    color: #0E1A36;
}

html.dark .footer-col h4 {
    color: #F4B558;
}

.footer-text {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(14,26,54,0.80);
}

html.dark .footer-text {
    color: rgba(226,230,240,0.70);
}

.socials {
    display: flex;
    gap: 12px;
    margin-top: 14px;
}

    .socials a img {
        width: 22px;
        height: 22px;
    }

.quicklinks {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .quicklinks a {
        font-size: 14px;
        color: rgba(14,26,54,0.80);
    }

html.dark .quicklinks a {
    color: rgba(226,230,240,0.70);
}

.footer-divider {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #E2E2E8;
}

html.dark .footer-divider {
    border-top-color: rgba(244,181,88,0.20);
}

.footer-copy {
    text-align: center;
    font-size: 14px;
    color: rgba(14,26,54,0.60);
    margin: 0;
}

html.dark .footer-copy {
    color: rgba(226,230,240,0.50);
}

/* ===================== Reveal Animations ===================== */
.reveal {
    opacity: 0;
    transform: translateY(12px);
}

    .reveal.in {
        opacity: 1;
        transform: none;
        transition: opacity .7s ease, transform .7s ease;
    }

.stagger.in {
    transition-delay: var(--d, 0ms);
}
