:root {
    --brand: #16677d;
    --brand-dark: #0a4556;
    --brand-deep: #062d37;
    --gold: #d4a05a;
    --gold-dark: #9a6f2f;
    --cream: #eef5f7;
    --cream-soft: #f5fafb;
    --ink: #0f2430;
    --muted: #4d636e;
    --line: #d2e0e5;
    --white: #ffffff;
    --font: "Segoe UI", "Geeza Pro", "Traditional Arabic", "Noto Sans Arabic", Tahoma, sans-serif;
    --ease: cubic-bezier(.22, 1, .36, 1);
    --shell: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.home-body {
    margin: 0;
    position: relative;
    color: var(--ink);
    font-family: var(--font);
    line-height: 1.75;
    background:
        radial-gradient(ellipse 40rem 24rem at 100% 0%, rgba(212, 160, 90, .12), transparent 60%),
        radial-gradient(ellipse 36rem 22rem at 0% 20%, rgba(22, 103, 125, .1), transparent 55%),
        linear-gradient(180deg, var(--cream-soft), var(--cream));
    -webkit-font-smoothing: antialiased;
}
body.home-body > *:not(.ambient-shapes):not(.skip-link) {
    position: relative;
    z-index: 1;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; }

.skip-link {
    position: fixed;
    inset-block-start: .75rem;
    inset-inline-start: .75rem;
    z-index: 100;
    padding: .7rem 1rem;
    border-radius: .45rem;
    background: var(--ink);
    color: #fff;
    transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.home-shell {
    width: min(var(--shell), calc(100% - 2rem));
    margin-inline: auto;
}

.home-header {
    position: sticky;
    inset-block-start: 0;
    z-index: 40;
    background: rgba(255, 255, 255, .94);
    border-block-end: 1px solid var(--line);
    backdrop-filter: blur(12px);
    transition: box-shadow .25s ease;
}
.home-header.is-solid {
    box-shadow: 0 10px 28px rgba(20, 45, 55, .08);
}
.home-header__inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 4.6rem;
}
.home-brand {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    margin-inline-end: auto;
}
.home-brand img {
    width: 3.2rem;
    height: 3.6rem;
    object-fit: contain;
}
.home-brand strong,
.home-brand small { display: block; }
.home-brand strong {
    color: var(--brand-dark);
    font-size: .95rem;
    line-height: 1.3;
}
.home-brand small {
    margin-top: .15rem;
    color: var(--gold-dark);
    font-size: .72rem;
    font-weight: 700;
}

.home-menu-toggle {
    display: grid;
    gap: .28rem;
    width: 2.5rem;
    height: 2.5rem;
    place-content: center;
    border: 1px solid var(--line);
    border-radius: .5rem;
    background: var(--white);
    cursor: pointer;
}
.home-menu-toggle span {
    display: block;
    width: 1.15rem;
    height: 2px;
    background: var(--brand-dark);
}

.home-menu {
    display: none;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.home-menu a {
    color: var(--muted);
    font-size: .9rem;
    font-weight: 600;
}
.home-menu a:hover { color: var(--brand); }
.home-menu__cta {
    padding: .45rem .9rem;
    border-radius: .55rem;
    background: var(--brand);
    color: #fff !important;
}
.home-menu__cta:hover { background: var(--brand-dark); }

body.menu-open .home-menu {
    position: absolute;
    inset-inline: 0;
    inset-block-start: 100%;
    display: grid;
    gap: .35rem;
    padding: 1rem;
    background: #fff;
    border-block-end: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(20, 45, 55, .08);
}
body.menu-open .home-menu a {
    padding: .7rem .55rem;
    border-radius: .45rem;
}
body.menu-open .home-menu a:hover { background: var(--cream); }

.home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.8rem;
    padding: .7rem 1.3rem;
    border-radius: .55rem;
    border: 1px solid transparent;
    font-weight: 700;
    font-size: .92rem;
    transition: transform .2s var(--ease), background-color .2s ease, box-shadow .2s ease;
}
.home-btn:hover { transform: translateY(-2px); }
.home-btn--primary {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 10px 22px rgba(22, 103, 125, .22);
}
.home-btn--primary:hover { background: var(--brand-dark); }
.home-btn--gold {
    background: linear-gradient(135deg, #d2a56a, var(--gold));
    color: #fff;
    box-shadow: 0 10px 22px rgba(168, 120, 56, .25);
}
.home-btn--gold:hover { background: var(--gold-dark); }
.home-btn--light {
    background: rgba(255, 255, 255, .14);
    border-color: rgba(255, 255, 255, .35);
    color: #fff;
}
.home-btn--light:hover { background: rgba(255, 255, 255, .22); }

.home-hero {
    position: relative;
    min-height: min(88vh, 46rem);
    display: grid;
    align-items: center;
    overflow: hidden;
    color: #fff;
    text-align: center;
}
.home-hero__ornaments {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}
.home-hero__frame {
    position: absolute;
    inset: 1.25rem;
    border: 1px solid rgba(212, 160, 90, .35);
    border-radius: 1.25rem;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.home-hero__frame::before,
.home-hero__frame::after {
    content: "";
    position: absolute;
    width: 2.5rem;
    height: 2.5rem;
    border: 2px solid var(--gold);
}
.home-hero__frame::before {
    inset-block-start: -.35rem;
    inset-inline-start: -.35rem;
    border-inline-end: 0;
    border-block-end: 0;
}
.home-hero__frame::after {
    inset-block-end: -.35rem;
    inset-inline-end: -.35rem;
    border-inline-start: 0;
    border-block-start: 0;
}
.home-hero__diamond {
    position: absolute;
    inset-block-start: 18%;
    inset-inline-start: 8%;
    width: 1.1rem;
    height: 1.1rem;
    background: var(--gold);
    transform: rotate(45deg);
    opacity: .75;
    box-shadow:
        0 0 0 6px rgba(212, 160, 90, .15),
        72vw 48vh 0 rgba(255, 255, 255, .25),
        68vw 12vh 0 .35rem rgba(212, 160, 90, .35);
    animation: sq-float-a 10s ease-in-out infinite;
}
.home-hero__banner {
    position: absolute;
    inset: 0;
}
.home-hero__banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    animation: homeKen 18s ease-in-out infinite alternate;
}
.home-hero__shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(8, 40, 50, .72) 0%, rgba(14, 70, 84, .78) 45%, rgba(10, 48, 58, .88) 100%);
}
.home-hero__content {
    position: relative;
    z-index: 2;
    padding: 4.5rem 0 4rem;
}
.home-hero__logo {
    width: clamp(9.5rem, 22vw, 12.5rem);
    height: auto;
    margin: 0 auto 1.25rem;
    filter: drop-shadow(0 16px 30px rgba(0, 0, 0, .32));
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.home-hero__logo.is-ready {
    opacity: 1;
    transform: translateY(0);
}
.home-hero h1 {
    margin: 0 auto .7rem;
    max-width: 18ch;
    font-size: clamp(1.55rem, 4vw, 2.55rem);
    line-height: 1.35;
    font-weight: 800;
}
.home-hero__kicker {
    margin: 0 auto 1rem;
    color: var(--gold);
    font-size: .95rem;
    font-weight: 700;
}
.home-hero__intro {
    margin: 0 auto 1.6rem;
    max-width: 44rem;
    color: rgba(255, 255, 255, .88);
    font-size: clamp(.98rem, 2vw, 1.08rem);
}
.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .75rem;
}

.home-promo {
    background: linear-gradient(90deg, var(--brand-dark), var(--brand));
    color: #fff;
}
.home-promo__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.35rem 0;
}
.home-promo h2 {
    margin: 0 0 .35rem;
    font-size: 1.2rem;
}
.home-promo p {
    margin: 0;
    color: rgba(255, 255, 255, .85);
}

.home-block { padding: clamp(3rem, 7vw, 4.75rem) 0; background: var(--white); }
.home-block--tint { background: var(--cream); }
.home-block__head { margin-bottom: 1.5rem; max-width: 40rem; }
.home-kicker {
    margin: 0 0 .45rem;
    color: var(--gold-dark);
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .04em;
}
.home-block h2 {
    margin: 0;
    color: var(--brand-dark);
    font-size: clamp(1.45rem, 3vw, 2rem);
    line-height: 1.3;
}
.home-about-text {
    margin: 0;
    max-width: 52rem;
    color: var(--muted);
    font-size: 1.05rem;
}

.home-split {
    display: grid;
    gap: 1.5rem 3rem;
}
@media (min-width: 52rem) {
    .home-split {
        grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
        align-items: start;
    }
}

.home-checklist {
    list-style: none;
    display: grid;
    gap: .9rem;
}
.home-checklist li {
    position: relative;
    padding: 1rem 1.1rem;
    padding-inline-start: 2.6rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: .7rem;
}
.home-checklist li::before {
    content: "✓";
    position: absolute;
    inset-inline-start: .9rem;
    inset-block-start: 1rem;
    color: var(--brand);
    font-weight: 800;
}

.home-numbered {
    list-style: none;
    counter-reset: feat;
    display: grid;
    gap: .75rem;
}
.home-numbered li {
    counter-increment: feat;
    position: relative;
    padding: .95rem 1rem .95rem 3.2rem;
    border-block-end: 1px dashed var(--line);
    color: var(--ink);
}
html[dir="rtl"] .home-numbered li { padding: .95rem 3.2rem .95rem 1rem; }
.home-numbered li::before {
    content: counter(feat);
    position: absolute;
    inset-inline-start: 0;
    inset-block-start: .85rem;
    display: grid;
    place-items: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-size: .85rem;
    font-weight: 800;
}

.home-steps {
    list-style: none;
    display: grid;
    gap: 1rem;
}
@media (min-width: 56rem) {
    .home-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.home-steps li {
    padding: 1.2rem 1rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: .8rem;
    border-block-start: 3px solid var(--gold);
}
.home-steps span {
    display: inline-grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    margin-bottom: .7rem;
    border-radius: 50%;
    background: var(--brand-dark);
    color: #fff;
    font-weight: 800;
}
.home-steps p { margin: 0; color: var(--muted); }

.home-pillars {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}
@media (min-width: 48rem) {
    .home-pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.home-pillars article {
    display: grid;
    place-items: center;
    min-height: 5.5rem;
    padding: 1rem;
    text-align: center;
    border: 1px solid rgba(22, 103, 125, .14);
    border-radius: .9rem;
    background:
        linear-gradient(145deg, #fff, #eef7f9);
    color: var(--brand-dark);
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(15, 45, 55, .05);
    transition: transform .25s var(--ease), border-color .2s ease, box-shadow .25s ease;
}
.home-pillars article:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: rgba(212, 160, 90, .55);
    box-shadow: 0 16px 28px rgba(15, 45, 55, .1);
}

.home-stats {
    position: relative;
    overflow: hidden;
    padding: clamp(3.2rem, 7vw, 5rem) 0;
    background:
        radial-gradient(circle at 12% 20%, rgba(212, 160, 90, .22), transparent 32%),
        radial-gradient(circle at 90% 80%, rgba(255, 255, 255, .12), transparent 28%),
        linear-gradient(145deg, var(--brand-deep), var(--brand) 55%, #1a7085);
    color: #fff;
    text-align: center;
}
.home-stats::before {
    content: "";
    position: absolute;
    inset-inline-start: -4rem;
    inset-block-end: -4rem;
    width: 14rem;
    height: 14rem;
    border-radius: 40% 60% 55% 45%;
    background: rgba(255, 255, 255, .06);
    transform: rotate(18deg);
}
.home-stats__head { margin-bottom: 2rem; }
.home-stats h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.45rem, 3vw, 2rem);
    line-height: 1.3;
}
.home-stats__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 0;
}
@media (min-width: 56rem) {
    .home-stats__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.home-stats__grid > div {
    position: relative;
    padding: 1.25rem .9rem;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 1rem;
    background: linear-gradient(160deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04));
    backdrop-filter: blur(6px);
    clip-path: polygon(0 0, calc(100% - 1rem) 0, 100% 1rem, 100% 100%, 1rem 100%, 0 calc(100% - 1rem));
    transition: transform .25s var(--ease), background .25s ease;
}
.home-stats__grid > div:hover {
    transform: translateY(-4px);
    background: linear-gradient(160deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .08));
}
.home-stats dt {
    margin: 0 0 .55rem;
    color: rgba(255, 255, 255, .78);
    font-size: .85rem;
    font-weight: 700;
}
.home-stats dd {
    margin: 0;
    color: var(--gold);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1;
}

.home-closing {
    padding: clamp(3rem, 7vw, 4.5rem) 0;
    background: linear-gradient(145deg, var(--brand-deep), var(--brand-dark));
    text-align: center;
    color: #fff;
}
.home-closing__inner { max-width: 40rem; }
.home-closing h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.45rem, 3vw, 2rem);
    line-height: 1.3;
}
.home-closing p {
    margin: .9rem 0 1.4rem;
    color: rgba(255, 255, 255, .9);
    font-size: 1.05rem;
}

.home-footer {
    background: linear-gradient(180deg, #e8f2f5, #dce9ee);
    color: var(--ink);
    padding: 2.25rem 0 1.5rem;
    border-block-start: 4px solid var(--brand-dark);
}
.home-footer__grid {
    display: grid;
    gap: 1.25rem;
}
.home-footer__brand {
    display: flex;
    align-items: center;
    gap: .8rem;
    color: var(--brand-dark);
}
.home-footer__brand img {
    width: 3rem;
    height: 3.35rem;
    object-fit: contain;
}
.home-footer__brand strong {
    display: block;
    margin-bottom: .2rem;
    color: var(--brand-dark);
    font-size: 1rem;
}
.home-footer__brand p {
    margin: 0;
    color: var(--muted);
    font-size: .85rem;
}
.home-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1.1rem;
}
.home-footer__links a {
    color: var(--brand-dark);
    font-weight: 600;
}
.home-footer__links a:hover { color: var(--gold-dark); }
.home-footer__copy {
    margin: 0;
    padding-top: .75rem;
    border-block-start: 1px solid var(--line);
    font-size: .82rem;
    color: var(--muted);
}
[data-reveal] {
    opacity: 0;
    transform: translateY(1rem);
    transition: opacity .75s var(--ease), transform .75s var(--ease);
}
[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes homeKen {
    from { transform: scale(1.04) translateY(0); }
    to { transform: scale(1.1) translateY(-1.5%); }
}

@media (min-width: 72rem) {
    .home-menu-toggle { display: none; }
    .home-menu { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
    [data-reveal] {
        opacity: 1;
        transform: none;
    }
}
