:root {
    --bg: #ffffff;
    --ink: #0f1222;
    --muted: rgba(15, 18, 34, 0.72);
    --muted2: rgba(15, 18, 34, 0.55);
    --border: rgba(75, 58, 142, 0.18);
    --shadow: 0 24px 70px rgba(15, 18, 34, 0.1);
    --shadow2: 0 12px 40px rgba(75, 58, 142, 0.12);

    --sec: #4b3a8e;
    /* secondary */
    --sec2: rgba(75, 58, 142, 0.1);
    --sec3: rgba(75, 58, 142, 0.14);

    --radius-xl: 28px;
    --radius-lg: 18px;
    --radius-md: 14px;

    --max: 1160px;
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family:
        "Cairo",
        system-ui,
        -apple-system,
        Segoe UI,
        Roboto,
        Arial,
        "Noto Sans Arabic",
        sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.75;
    overflow-x: hidden;
}

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

button {
    font-family: inherit;
}

/* subtle background decoration */
.bgfx {
    position: fixed;
    inset: -160px -160px auto auto;
    width: 520px;
    height: 520px;
    border-radius: 999px;
    background: radial-gradient(
        circle at 30% 30%,
        rgba(75, 58, 142, 0.22),
        rgba(75, 58, 142, 0) 62%
    );
    filter: blur(0px);
    pointer-events: none;
    z-index: -1;
}

.bgfx2 {
    position: fixed;
    inset: auto auto -220px -220px;
    width: 640px;
    height: 640px;
    border-radius: 999px;
    background: radial-gradient(
        circle at 40% 50%,
        rgba(75, 58, 142, 0.16),
        rgba(75, 58, 142, 0) 60%
    );
    pointer-events: none;
    z-index: -1;
}

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

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.78);
    border-bottom: 1px solid rgba(15, 18, 34, 0.06);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 200px;
}

.logo {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(
        135deg,
        rgba(75, 58, 142, 0.98),
        rgba(75, 58, 142, 0.72)
    );
    box-shadow: var(--shadow2);
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
}

.logo::after {
    content: "";
    position: absolute;
    inset: -40% -50%;
    background: radial-gradient(
        circle at 30% 30%,
        rgba(255, 255, 255, 0.4),
        rgba(255, 255, 255, 0) 45%
    );
    transform: rotate(18deg);
}

.logo svg {
    position: relative;
    z-index: 1;
}

.brand h1 {
    font-size: 16px;
    margin: 0;
    letter-spacing: 0.2px;
}

.brand p {
    margin: 0;
    font-size: 12.5px;
    color: var(--muted);
}

.navlinks {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.navlinks a {
    font-size: 14px;
    color: var(--muted);
    padding: 8px 10px;
    border-radius: 12px;
    transition: 0.2s ease;
}

.navlinks a:hover {
    color: var(--ink);
    background: rgba(75, 58, 142, 0.06);
}

.navcta {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
    min-width: 220px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid rgba(15, 18, 34, 0.1);
    background: #fff;
    color: var(--ink);
    box-shadow: 0 10px 24px rgba(15, 18, 34, 0.06);
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease,
        background 0.18s ease;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 40px rgba(15, 18, 34, 0.1);
    border-color: rgba(75, 58, 142, 0.24);
}

.btn.primary {
    background: var(--sec);
    border-color: rgba(75, 58, 142, 0.7);
    color: #fff;
    box-shadow: 0 18px 46px rgba(75, 58, 142, 0.2);
}

.btn.primary:hover {
    box-shadow: 0 26px 60px rgba(75, 58, 142, 0.26);
}

.btn.small {
    padding: 9px 12px;
    border-radius: 12px;
    font-size: 13.5px;
}

/* Hero */
.hero {
    padding: 48px 0 18px;
}

.heroGrid {
    display: grid;
    grid-template-columns: 1.25fr 0.9fr;
    gap: 26px;
    align-items: stretch;
}

.headline {
    background: linear-gradient(
        180deg,
        rgba(75, 58, 142, 0.06),
        rgba(75, 58, 142, 0)
    );
    border: 1px solid rgba(75, 58, 142, 0.14);
    border-radius: var(--radius-xl);
    padding: 26px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.headline::before {
    content: "";
    position: absolute;
    inset: auto -30% -40% -30%;
    height: 240px;
    background: radial-gradient(
        circle at 50% 20%,
        rgba(75, 58, 142, 0.18),
        rgba(75, 58, 142, 0) 68%
    );
    pointer-events: none;
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(75, 58, 142, 0.18);
    background: rgba(75, 58, 142, 0.06);
    color: var(--sec);
    font-weight: 800;
    font-size: 13px;
}

.kdot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--sec);
    box-shadow: 0 0 0 5px rgba(75, 58, 142, 0.12);
}

.headline h2 {
    margin: 14px 0 10px;
    font-size: clamp(28px, 3.2vw, 44px);
    line-height: 1.2;
    letter-spacing: 0.2px;
}

.headline p {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 16px;
    max-width: 60ch;
}

.ctaRow {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 18px;
    position: relative;
    z-index: 1;
}

.badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
    color: var(--muted);
    font-size: 13px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(15, 18, 34, 0.08);
    background: #fff;
}

.badge svg {
    opacity: 0.85;
}

/* Preview card */
.preview {
    border-radius: var(--radius-xl);
    border: 1px solid rgba(75, 58, 142, 0.14);
    background: #fff;
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
}

.previewTop {
    padding: 18px 18px 10px;
    border-bottom: 1px solid rgba(15, 18, 34, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

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

.chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid rgba(75, 58, 142, 0.18);
    background: rgba(75, 58, 142, 0.06);
    color: var(--sec);
    font-weight: 800;
    font-size: 12.5px;
    white-space: nowrap;
}

.dots {
    display: flex;
    gap: 6px;
    align-items: center;
}

.dots span {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(15, 18, 34, 0.14);
}

.dots span:nth-child(2) {
    background: rgba(75, 58, 142, 0.26);
}

.dots span:nth-child(3) {
    background: rgba(15, 18, 34, 0.1);
}

.previewBody {
    padding: 18px;
}

.statGrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.stat {
    border: 1px solid rgba(15, 18, 34, 0.08);
    border-radius: var(--radius-lg);
    padding: 14px;
    background: linear-gradient(
        180deg,
        rgba(75, 58, 142, 0.05),
        rgba(75, 58, 142, 0)
    );
}

.stat b {
    display: block;
    font-size: 16px;
}

.stat small {
    color: var(--muted);
    font-weight: 700;
}

.list {
    margin-top: 14px;
    border: 1px solid rgba(15, 18, 34, 0.08);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    background: #fff;
    border-top: 1px solid rgba(15, 18, 34, 0.06);
}

.row:first-child {
    border-top: none;
}

.row .l {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.row .l span {
    font-weight: 800;
}

.row .l em {
    font-style: normal;
    color: var(--muted);
    font-size: 13px;
}

.pill {
    align-self: center;
    font-weight: 900;
    font-size: 12.5px;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(75, 58, 142, 0.08);
    color: var(--sec);
    border: 1px solid rgba(75, 58, 142, 0.18);
    white-space: nowrap;
}

/* Sections */
section {
    padding: 44px 0;
}

.sectionHead {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.sectionHead h3 {
    margin: 0;
    font-size: 24px;
    letter-spacing: 0.2px;
}

.sectionHead p {
    margin: 0;
    color: var(--muted);
    max-width: 150ch;
}

.grid2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.card {
    border: 1px solid rgba(75, 58, 142, 0.14);
    border-radius: var(--radius-xl);
    background: #fff;
    box-shadow: var(--shadow);
    padding: 18px;
}

.card .hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 10px;
}

.card .hd h4 {
    margin: 0;
    font-size: 18px;
}

.iconbox {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    background: rgba(75, 58, 142, 0.08);
    border: 1px solid rgba(75, 58, 142, 0.18);
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}

.iconbox svg {
    stroke: var(--sec);
}

.card ul {
    margin: 10px 0 0;
    padding: 0 18px 0 0;
    color: var(--muted);
}

.card li {
    margin: 8px 0;
}

/* Referral highlight */
.ref {
    border: 1px solid rgba(75, 58, 142, 0.22);
    background: linear-gradient(
        135deg,
        rgba(75, 58, 142, 0.1),
        rgba(75, 58, 142, 0)
    );
    position: relative;
    overflow: hidden;
}

.ref::after {
    content: "";
    position: absolute;
    inset: -40% -40% auto auto;
    width: 240px;
    height: 240px;
    border-radius: 999px;
    background: radial-gradient(
        circle at 40% 40%,
        rgba(75, 58, 142, 0.26),
        rgba(75, 58, 142, 0) 60%
    );
}

/* Footer CTA */
.footerCta {
    border-radius: var(--radius-xl);
    border: 1px solid rgba(75, 58, 142, 0.18);
    background: linear-gradient(
        180deg,
        rgba(75, 58, 142, 0.08),
        rgba(75, 58, 142, 0)
    );
    box-shadow: var(--shadow);
    padding: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.footerCta h4 {
    margin: 0;
    font-size: 20px;
}

.footerCta p {
    margin: 6px 0 0;
    color: var(--muted);
}

footer {
    padding: 26px 0 36px;
    color: var(--muted2);
    font-size: 13px;
}

/* Store buttons (Google/Apple style) */
.storeBtn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 16px;
    border: 1px solid rgba(15, 18, 34, 0.1);
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 18, 34, 0.06);
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease;
    font-weight: 800;
    cursor: pointer;
}

.storeBtn:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 40px rgba(15, 18, 34, 0.1);
    border-color: rgba(75, 58, 142, 0.24);
}

.storeBtn .t {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    text-align: right;
}

.storeBtn .t small {
    font-size: 11.5px;
    color: var(--muted);
}

.storeBtn .t b {
    font-size: 14px;
}

.storeRow {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Mobile */
.menuBtn {
    display: none;
}

@media (max-width: 920px) {
    .heroGrid {
        grid-template-columns: 1fr;
    }

    .navlinks {
        display: none;
    }

    .menuBtn {
        display: inline-flex;
    }

    .navcta {
        min-width: auto;
    }

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

    .brand {
        min-width: auto;
    }
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

.illuGrid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.illuCard {
    position: relative;
    border-radius: 22px;
    border: 1px solid rgba(75, 58, 142, 0.16);
    background: #fff;
    box-shadow: var(--shadow);
    overflow: hidden;
    aspect-ratio: 9 / 16;
    /* vertical */
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.illuCard::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 40%;
    background: linear-gradient(
        to top,
        rgba(75, 58, 142, 0.18),
        rgba(75, 58, 142, 0)
    );
    pointer-events: none;
}

.illuCard img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.illuCard:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 60px rgba(75, 58, 142, 0.22);
}

/* Responsive */
@media (max-width: 1200px) {
    .illuGrid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .illuGrid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 420px) {
    .illuGrid {
        grid-template-columns: 1fr;
    }
}