@font-face {
    font-family: 'Jali Arabic';
    src: url('fonts/JaliArabic-Regular.ttf') format('truetype');
    font-weight: 400;
    font-display: swap
}

@font-face {
    font-family: 'Jali Arabic';
    src: url('fonts/JaliArabic-Medium.ttf') format('truetype');
    font-weight: 500;
    font-display: swap
}

@font-face {
    font-family: 'Jali Arabic';
    src: url('fonts/JaliArabic-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-display: swap
}

@font-face {
    font-family: 'Jali Arabic';
    src: url('fonts/JaliArabic-Bold.ttf') format('truetype');
    font-weight: 700;
    font-display: swap
}

@font-face {
    font-family: 'Jali Arabic';
    src: url('fonts/JaliArabic-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-display: swap
}

:root {
    --maroon: #3A001A;
    --cyan: #EBF9FA;
    --teal: #0D607E;
    --sky: #2F8FC2;
    --n300: #C9BEC3;
    --n500: #8C7A82;
    --n700: #5C4750;
    --white: #fff;
    --border: rgba(58, 0, 26, .12);
    --border-strong: rgba(58, 0, 26, .28);
    --shadow-soft: 0 2px 6px rgba(27, 31, 36, .04), 0 10px 30px rgba(27, 31, 36, .06);
    --shadow-card: 0 1px 3px rgba(58, 0, 26, .06), 0 4px 14px rgba(58, 0, 26, .06);
    --ease: cubic-bezier(.22, .61, .36, 1);
    --font-ar: 'Jali Arabic', 'Public Sans', sans-serif;
    --font-en: 'Public Sans', system-ui, sans-serif;
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: var(--cyan);
    color: var(--maroon);
    font-family: var(--font-ar);
    -webkit-font-smoothing: antialiased
}

html[lang="en"] body {
    font-family: var(--font-en)
}

a {
    color: inherit;
    text-decoration: none
}

a:hover {
    color: var(--teal)
}

img {
    max-width: 100%
}

.wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 128px 56px
}

.eyebrow {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--teal)
}

.h2 {
    margin: 0;
    font-size: 56px;
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -.02em
}

.mono {
    font-family: 'Public Sans', monospace;
    font-weight: 600;
    letter-spacing: .12em
}

.alt-font {
    font-family: var(--font-en)
}

html[lang="en"] .alt-font {
    font-family: var(--font-ar)
}

.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1)
}

.reveal.in {
    opacity: 1;
    transform: none
}

/* ===== الهيدر ===== */
.hero {
    position: relative;
    min-height: max(720px, 100vh);
    overflow: hidden;
    cursor: crosshair;
    display: flex;
    flex-direction: column
}

.hero .grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(58, 0, 26, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(58, 0, 26, .06) 1px, transparent 1px);
    background-size: 72px 72px;
    pointer-events: none
}

.hero canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block
}

.corner {
    position: absolute;
    width: 20px;
    height: 20px;
    pointer-events: none;
    border: 0 solid var(--maroon)
}

.c1 {
    top: 96px;
    inset-inline-start: 24px;
    border-top-width: 1.5px;
    border-inline-start-width: 1.5px
}

.c2 {
    top: 96px;
    inset-inline-end: 24px;
    border-top-width: 1.5px;
    border-inline-end-width: 1.5px
}

.c3 {
    bottom: 24px;
    inset-inline-start: 24px;
    border-bottom-width: 1.5px;
    border-inline-start-width: 1.5px
}

.c4 {
    bottom: 24px;
    inset-inline-end: 24px;
    border-bottom-width: 1.5px;
    border-inline-end-width: 1.5px
}

nav {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 56px;
    border-bottom: 1px solid var(--border);
    background: rgba(235, 249, 250, .7);
    backdrop-filter: blur(8px);
    cursor: default
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px
}

.brand img {
    height: 40px;
    display: block
}

.brand .sep {
    width: 1px;
    height: 20px;
    background: var(--border-strong)
}

.brand .state {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase
}

.links {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 15px;
    font-weight: 500
}

.lang-btn {
    font-size: 14px;
    font-weight: 600;
    color: var(--maroon);
    background: transparent;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    padding: 8px 18px;
    cursor: pointer;
    transition: background .16s, color .16s
}

.lang-btn:hover {
    background: var(--maroon);
    color: var(--cyan)
}

.coords {
    position: absolute;
    z-index: 1;
    top: 108px;
    inset-inline-end: 56px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    font-family: 'Public Sans', monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .14em;
    color: var(--n700);
    font-variant-numeric: tabular-nums;
    pointer-events: none
}

.hero-body {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 64px 56px 140px;
    pointer-events: none
}

.hero-text {
    max-width: min(560px, calc(50% - 40px));
    display: flex;
    flex-direction: column;
    gap: 24px
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px
}

.hero-eyebrow i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 0 5px rgba(47, 143, 194, .18)
}

h1 {
    margin: 0;
    font-size: clamp(44px, 4.8vw, 76px);
    line-height: 1.04;
    font-weight: 800;
    letter-spacing: -.03em;
    text-wrap: balance;
    min-height: 2.08em
}

.hero-alt {
    margin: 0;
    font-size: 22px;
    font-weight: 500;
    color: var(--n700)
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin-top: 8px;
    pointer-events: auto
}

.btn {
    display: inline-flex;
    align-items: center;
    height: 50px;
    padding: 0 28px;
    border-radius: 999px;
    background: var(--maroon);
    color: var(--cyan);
    font-size: 16px;
    font-weight: 600;
    transition: background .2s, transform .12s
}

.btn:hover {
    background: #660033;
    color: var(--cyan)
}

.btn:active {
    transform: scale(.98)
}

.hint {
    font-size: 13px;
    color: var(--n700)
}

.countdown {
    position: absolute;
    z-index: 2;
    bottom: 48px;
    inset-inline-end: 56px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px 22px;
    background: rgba(255, 255, 255, .75);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 12px 32px rgba(58, 0, 26, .08);
    cursor: default
}

.countdown .label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--n700)
}

.units {
    display: flex;
    gap: 8px;
    font-family: 'Public Sans', sans-serif
}

.unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 72px;
    padding: 10px 6px;
    border-radius: 12px;
    background: var(--maroon);
    color: var(--cyan)
}

.unit b {
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.02em
}

.unit span {
    font-family: var(--font-ar);
    font-size: 11px;
    font-weight: 500;
    opacity: .75
}

html[lang="en"] .unit span {
    font-family: var(--font-en)
}

/* ===== عن 974 ===== */
.about {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 80px;
    align-items: center
}

.about p {
    margin: 0;
    font-size: 34px;
    line-height: 1.3;
    font-weight: 600;
    letter-spacing: -.01em;
    text-wrap: pretty
}

.about-img {
    /* height: 620px; */
    /* border-radius: 32px; */
    overflow: hidden;
    /* background: #fff; */
    /* border: 1px solid var(--border); */
    display: grid;
    place-items: center
}

.about-img img {
    width: 100%;
    height: 100%;
    object-fit: contain
}

/* ===== QLife ===== */
.band {
    background: #fff;
    border-block: 1px solid var(--border)
}

.sec-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 56px
}

.sec-head .col {
    display: flex;
    flex-direction: column;
    gap: 16px
}

.sec-head p {
    margin: 0;
    max-width: 400px;
    font-size: 18px;
    line-height: 1.55;
    color: var(--n700);
    text-wrap: pretty
}

.journeys {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 32px
}

.j-list {
    display: flex;
    flex-direction: column
}

.j-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 22px 4px;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--border);
    font-family: inherit;
    color: var(--n300);
    text-align: start;
    cursor: pointer;
    transition: color .2s
}

.j-item .mono {
    font-size: 12px;
    opacity: .7
}

.j-item .t {
    flex: 1;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -.01em
}

.j-item .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: transparent;
    transition: background .2s
}

.j-item.on {
    color: var(--maroon)
}

.j-item.on .dot {
    background: var(--teal)
}

.j-panel {
    position: relative;
    background: var(--maroon);
    color: var(--cyan);
    border-radius: 28px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;
    overflow: hidden;
    min-height: 400px
}

.j-panel canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none
}

.j-panel>*:not(canvas) {
    position: relative
}

.j-meta {
    display: flex;
    justify-content: space-between;
    font-family: 'Public Sans', monospace;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .14em;
    opacity: .75
}

.j-panel h3 {
    margin: 0 0 14px;
    font-size: 44px;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.05
}

.j-panel p {
    margin: 0;
    max-width: 420px;
    font-size: 19px;
    line-height: 1.5;
    opacity: .85
}

.bars {
    display: flex;
    gap: 6px
}

.bars span {
    flex: 1;
    height: 3px;
    border-radius: 2px;
    background: rgba(235, 249, 250, .2);
    transition: background .24s
}

.bars span.on {
    background: var(--teal)
}

.sectors {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 16px
}

.sector {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 28px 24px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    transition: box-shadow .2s var(--ease), border-color .2s var(--ease)
}

.sector:hover {
    box-shadow: var(--shadow-card);
    border-color: var(--border-strong)
}

.sector .top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start
}

.sector .ic {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--cyan);
    display: grid;
    place-items: center
}

.sector svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: var(--maroon);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round
}

.sector .mono {
    font-size: 12px;
    color: var(--n500)
}

.sector .t {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    text-wrap: pretty
}

/* ===== صور التطبيق ===== */
.screens-head {
    max-width: 1280px;
    margin: 0 auto;
    padding: 128px 56px 48px;
    display: flex;
    flex-direction: column;
    gap: 16px
}

.screens {
    display: flex;
    gap: 32px;
    overflow-x: auto;
    padding: 24px max(56px, calc((100vw - 1280px)/2 + 56px)) 128px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin
}

.screen {
    flex: 0 0 auto;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    scroll-snap-align: center
}

.phone {
    width: 270px;
    height: 586px;
    border-radius: 40px;
    padding: 8px;
    background: var(--maroon);
    box-shadow: var(--shadow-card);
    transition: transform .24s var(--ease)
}

.phone:hover {
    transform: translateY(-6px)
}

.phone div {
    width: 100%;
    height: 100%;
    border-radius: 32px;
    overflow: hidden;
    background: #F0F3F5
}

.phone img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: object-position 6s linear
}

.phone:hover img {
    object-position: bottom
}

.screen figcaption {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 270px
}

.screen figcaption b {
    font-size: 18px
}

.screen figcaption span {
    font-size: 14px;
    line-height: 1.5;
    color: var(--n700)
}

/* ===== تواصل معنا ===== */
.contact {
    background: var(--maroon);
    color: var(--cyan)
}

.contact .wrap {
    padding: 120px 56px 40px;
    display: flex;
    flex-direction: column;
    gap: 56px
}

.contact h2 {
    margin: 0;
    font-size: 72px;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px
}

.ccard {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 32px;
    border: 1px solid rgba(235, 249, 250, .18);
    border-radius: 24px;
    color: var(--cyan);
    transition: background .2s, border-color .2s
}

a.ccard:hover {
    background: rgba(235, 249, 250, .06);
    border-color: rgba(235, 249, 250, .5);
    color: var(--cyan)
}

.ccard .lbl {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    opacity: .7
}

.ccard .v {
    display: block;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 6px;
    text-align: start
}

.ccard .note {
    font-size: 15px;
    opacity: .75
}

.foot {
    padding-top: 24px;
    border-top: 1px solid rgba(235, 249, 250, .14);
    font-size: 13px;
    opacity: .75
}

@media (max-width:900px) {
    .wrap {
        padding: 88px 24px
    }

    nav {
        padding: 18px 24px
    }

    .links a {
        display: none
    }

    .hero-body {
        padding: 48px 24px 220px
    }

    .hero-text {
        max-width: 100%
    }

    .countdown {
        inset-inline: 24px;
        bottom: 24px
    }

    .unit {
        min-width: 0;
        flex: 1
    }

    .about,
    .journeys,
    .cards {
        grid-template-columns: 1fr
    }

    .about-img {
        height: 420px
    }

    .h2 {
        font-size: 40px
    }

    .about p {
        font-size: 26px
    }

    .contact h2 {
        font-size: 48px
    }

    .coords {
        display: none
    }

    .screens-head {
        padding: 88px 24px 32px
    }
}

@media (prefers-reduced-motion:reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none
    }
}