:root {
    --ink: #14212b;
    --ink-soft: #3e5160;
    --paper: #f3efe6;
    --paper-2: #e7efe9;
    --white: #fffcf8;
    --line: #d9d1c3;
    --pine: #0c2f33;
    --pine-2: #16484a;
    --brass: #a56b2b;
    --focus: #0b6b62;
    --header: 4.5rem;
    --shadow: 0 18px 40px rgba(20, 33, 43, 0.08);
    color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    overflow-x: clip;
    background: var(--paper);
    color: var(--ink);
    font-family: "Segoe UI", "Noto Naskh Arabic", "Noto Sans Arabic", "Helvetica Neue", Arial, sans-serif;
    font-size: 1.0625rem;
    line-height: 1.65;
}
img { max-width: 100%; height: auto; }
a { color: var(--pine-2); }
a:hover { color: var(--brass); }
:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}
.skip {
    position: absolute;
    inset-inline-start: 1rem;
    top: -4rem;
    background: var(--white);
    color: var(--ink);
    padding: 0.5rem 0.8rem;
    z-index: 20;
}
.skip:focus { top: 0.5rem; }
.shell { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }
.narrow { width: min(760px, 100%); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.03em; font-weight: 650; }
h1 { font-size: clamp(2.2rem, 5vw, 4.4rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); margin: 0 0 0.8rem; }
h3 { font-size: 1.2rem; margin: 0 0 0.45rem; }
p { margin: 0 0 1rem; }
.eyebrow {
    margin: 0 0 0.8rem;
    color: var(--brass);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 42rem; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(12, 47, 51, 0.96);
    color: #f7f4ee;
    backdrop-filter: blur(10px);
}
.header-bar {
    min-height: var(--header);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: -0.03em;
    font-size: 1.2rem;
}
.brand img { display: block; }
.menu-toggle {
    display: none;
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 999px;
    padding: 0.4rem 0.85rem;
}
.site-nav { display: flex; align-items: center; gap: 1.1rem; }
.site-nav a { color: #f7f4ee; text-decoration: none; font-size: 0.95rem; }
.site-nav a[aria-current="page"] { color: #f0d7a4; }
.lang { display: inline-flex; gap: 0.35rem; }
.lang a {
    border: 1px solid rgba(255,255,255,0.28);
    border-radius: 999px;
    padding: 0.1rem 0.45rem;
    font-size: 0.75rem;
}
.lang a[aria-current="true"] { background: #f7f4ee; color: var(--pine); }

.hero {
    background:
        radial-gradient(circle at 90% 10%, rgba(165, 107, 43, 0.28), transparent 28%),
        linear-gradient(160deg, #0c2f33 0%, #14343a 55%, #1d4a45 100%);
    color: #f7f4ee;
    padding: 4.5rem 0 4rem;
}
.hero .lead, .hero-card { color: #d7e4e1; }
.hero-grid, .split, .trust-grid, .footer-grid, .app-layout, .verify-grid {
    display: grid;
    gap: 2rem;
    min-width: 0;
}
.hero-grid > *, .split > *, .trust-grid > *, .app-layout > *, .verify-grid > * { min-width: 0; }
h1, h2, h3, p, li, a { overflow-wrap: anywhere; }
.hero-card, .card, .contact-form, .facts {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 1.4rem;
    box-shadow: var(--shadow);
}
.hero-card { color: var(--ink); padding: 1.5rem; }
.hero-card-kicker { color: var(--brass); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.8rem; }
.hero-card-name { color: var(--ink); font-size: 1.35rem; font-weight: 700; }
.hero-card ul { margin: 0; padding: 0; list-style: none; }
.hero-card li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.55rem 0;
    border-top: 1px solid var(--line);
}
.hero-card li span { color: var(--ink-soft); font-weight: 550; }
.actions, .store-row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.4rem; }
.button, .store {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.8rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    background: var(--brass);
    color: #fff;
    text-decoration: none;
    border: 0;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.button-light { background: #f7f4ee; color: var(--pine); }
.button-ghost { background: transparent; color: #f7f4ee; border: 1px solid rgba(255,255,255,0.45); }
.store-badges { display: flex; flex-wrap: wrap; gap: 0.9rem 1.1rem; margin-top: 1.4rem; }
.store-badge { display: inline-flex; line-height: 0; }
.store-badge img { width: 11.25rem; height: auto; display: block; }
.store-badge.is-pending { cursor: default; }
.store-badge.is-pending img { filter: grayscale(0.22) saturate(0.75); opacity: 0.82; }
.badge-note { margin: 0.4rem 0 0; color: var(--ink-soft); font-size: 0.9rem; }
.app-statement { font-weight: 650; }
.app-layout { display: grid; gap: 2.5rem; align-items: center; }
.phone-stage {
    position: relative;
    height: 43rem;
    max-width: 38rem;
    margin-inline: auto;
    width: 100%;
}
.phone-stage::before {
    content: "";
    position: absolute;
    inset: 8% 6% 12%;
    background: radial-gradient(circle at 50% 42%, rgba(12, 47, 51, 0.16), transparent 68%);
    z-index: 0;
}
.phone {
    position: absolute;
    width: 42%;
    height: auto;
    border-radius: 1.7rem;
    box-shadow: 0 28px 50px rgba(20, 33, 43, 0.22);
    background: #f7f4ee;
}
.phone-1 { inset-inline-start: 0; top: 3.2rem; z-index: 1; transform: rotate(-7deg); }
.phone-2 { inset-inline-start: 29%; top: 0; width: 46%; z-index: 3; }
.phone-3 { inset-inline-end: 0; top: 4.6rem; z-index: 2; transform: rotate(7deg); }
[dir="rtl"] .phone-1 { transform: rotate(7deg); }
[dir="rtl"] .phone-3 { transform: rotate(-7deg); }
.stage-icon {
    position: absolute;
    z-index: 4;
    width: 4.4rem;
    height: 4.4rem;
    inset-inline-start: 22%;
    bottom: 0.6rem;
    border-radius: 1.15rem;
    box-shadow: var(--shadow);
}
.ownership { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 0.75rem; }
.ownership li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 1rem;
    padding: 0.9rem 1.1rem;
}
.ownership-app { align-items: center; }
.ownership-app img { width: 4.5rem; height: 4.5rem; border-radius: 1rem; }
.ownership-app div { display: grid; gap: 0.15rem; }
.ownership-app p { margin: 0; }
.text-link { font-weight: 700; display: inline-block; margin-inline-end: 1.1rem; }
.verify-grid { display: grid; gap: 1rem; margin: 1.5rem 0; min-width: 0; }
.verify-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 1.1rem;
    padding: 1.3rem 1.3rem 0.4rem;
    box-shadow: var(--shadow);
}
.verify-app {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.2rem;
    align-items: start;
}
.verify-app > img {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 1.05rem;
    box-shadow: var(--shadow);
}
.verify-statements { display: grid; gap: 0.75rem; margin: 0.5rem 0 2rem; }
.verify-statements .app-statement {
    margin: 0;
    background: var(--white);
    border: 1px solid var(--line);
    border-inline-start: 4px solid var(--brass);
    border-radius: 0.9rem;
    padding: 1rem 1.1rem;
}
code { direction: ltr; unicode-bidi: isolate; }

.section { padding: 4.5rem 0; scroll-margin-top: calc(var(--header) + 0.75rem); }
.section-muted { background: var(--paper-2); }
.section-head { max-width: 40rem; margin-bottom: 1.5rem; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.card { padding: 1.3rem 1.3rem 0.4rem; }
.bili { background: var(--pine); color: #f7f4ee; }
.bili .eyebrow { color: #f0d7a4; }
.domain {
    margin: 0;
    align-self: end;
    font-size: clamp(2.4rem, 6vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -0.05em;
    line-height: 0.95;
}
.app-icon { width: 10rem; height: 10rem; border-radius: 1.8rem; box-shadow: var(--shadow); }
.network-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.7rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.network-grid li {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 0.9rem;
    min-height: 4.5rem;
    display: grid;
    place-items: center;
    padding: 0.4rem;
}
.network-grid img { width: 100%; height: 2.4rem; object-fit: contain; }
.trust-grid a, .prose a { overflow-wrap: anywhere; }
.identity { font-size: 1.25rem; font-weight: 700; }
.contact-form { padding: 1.3rem; display: grid; gap: 0.35rem; }
.contact-form input, .contact-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 0.8rem;
    padding: 0.75rem 0.85rem;
    font: inherit;
    background: #fff;
    margin-bottom: 0.6rem;
}
.contact-form textarea { min-height: 8rem; resize: vertical; }
.form-status:empty { display: none; }
.page-hero { padding: 4rem 0 1rem; }
.prose { max-width: 46rem; }
.statement { font-size: 1.25rem; font-weight: 650; }
.facts { padding: 0.4rem 1.2rem; }
.facts div { display: grid; gap: 0.2rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--ink-soft); font-size: 0.85rem; }
.facts dd { margin: 0; font-weight: 650; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

.site-footer { background: var(--ink); color: #e7ece8; padding: 3rem 0 1.5rem; }
.site-footer a { color: #f7f4ee; text-decoration: none; display: block; margin-bottom: 0.35rem; }
.site-footer h2 { font-size: 0.95rem; letter-spacing: 0.04em; text-transform: uppercase; }
.footer-brand { font-size: 1.4rem; font-weight: 700; }
.footer-meta { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid rgba(255,255,255,0.12); margin-top: 1.5rem; padding-top: 1rem; color: #b7c2bc; }

@media (min-width: 900px) {
    .hero-grid, .split, .trust-grid { grid-template-columns: 1.3fr 0.9fr; }
    .app-layout { grid-template-columns: 1.15fr 0.85fr; }
    .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
    .facts div { grid-template-columns: 14rem 1fr; align-items: baseline; }
    .verify-grid { grid-template-columns: 1fr 1fr; }
    .verify-app { grid-column: 1 / -1; }
}
@media (max-width: 980px) {
    .network-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1080px) {
    .menu-toggle { display: inline-flex; }
    .site-nav {
        display: none;
        position: absolute;
        inset-inline: 0;
        top: var(--header);
        background: var(--pine);
        padding: 0.6rem 1rem 1rem;
        flex-direction: column;
        align-items: flex-start;
    }
    .site-nav.is-open { display: flex; }
    .cards { grid-template-columns: 1fr; }
    .verify-app { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
    .phone-stage {
        height: auto;
        aspect-ratio: auto;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
        max-width: 24rem;
        align-items: start;
    }
    .phone-stage::before { display: none; }
    .phone, .phone-1, .phone-2, .phone-3 {
        position: static;
        width: 100%;
        height: auto;
        object-fit: contain;
        transform: none;
    }
    .phone-2 { grid-column: 1 / -1; grid-row: 1; width: 100%; }
    .phone-1 { grid-column: 1; grid-row: 2; }
    .phone-3 { grid-column: 2; grid-row: 2; }
    .stage-icon {
        position: relative;
        grid-column: 1;
        grid-row: 1;
        align-self: end;
        justify-self: start;
        width: 3.4rem;
        height: 3.4rem;
        margin: 0 0 5.2rem;
        margin-inline-start: 0.8rem;
        inset: auto;
        transform: none;
        z-index: 4;
    }
}
@media (max-width: 560px) {
    .network-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-meta { flex-direction: column; }
    h1 { font-size: 2.05rem; }
    .hero-card li { flex-direction: column; align-items: flex-start; gap: 0.15rem; }
    .actions { align-items: stretch; }
    .button { max-width: 100%; }
}
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
    .phone, .store-badge img { transition: transform 0.35s ease; }
    .phone-stage:hover .phone-2 { transform: translateY(-8px); }
    .store-badge:hover img { transform: translateY(-2px); }
    .store-badge.is-pending:hover img { transform: none; }
}
@media (max-width: 899px) and (prefers-reduced-motion: no-preference) {
    .store-badge img { transition: transform 0.35s ease; }
    .store-badge:hover img { transform: translateY(-2px); }
    .store-badge.is-pending:hover img { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; animation: none !important; }
}
