:root {
    --arabic-display-font: "F-DFont", "mothnna", "ftl", "AlJazeera", Tahoma, Arial, sans-serif;
    --arabic-text-font: "F-DFontSmall", "F-DFont", "mothnna", "ftl", "AlJazeera", Tahoma, Arial, sans-serif;
}

@font-face {
    font-family: "mothnna";
    src: url("../fonts/mothnna.eot");
    src: local("?"), url("../fonts/mothnna.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "ftl";
    src: url("../fonts/ftl.eot") format("embedded-opentype"),
         url("../fonts/ftl.ttf") format("truetype"),
         url("../fonts/ftl.woff") format("woff");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "AlJazeera";
    src: url("../fonts/aljazeera.woff") format("woff"),
         url("../fonts/aljazeera.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "F-DFont";
    src: url("../fonts/FD-Bd.eot");
    src: local("?"), url("../fonts/FD-Bd.ttf") format("truetype"),
         url("../fonts/FD-Bd.woff") format("woff");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "F-DFontSmall";
    src: url("../fonts/FD-Reg.eot");
    src: local("?"), url("../fonts/FD-Reg.ttf") format("truetype"),
         url("../fonts/FD-Reg.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --teal: #027371;
    --teal-dark: #015f5d;
    --teal-light: #e5f5f4;
    --orange: #fe683a;
    --orange-dark: #d94d22;
    --ink: #17202a;
    --muted: #64717f;
    --soft: #f7fafb;
    --white: #ffffff;
    --border: #dfe8ea;
    --shadow-sm: 0 2px 10px rgba(2, 115, 113, .08);
    --shadow-md: 0 12px 30px rgba(23, 32, 42, .12);
    --radius: 8px;
    --transition: all .24s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: Inter, "Segoe UI", Tahoma, Arial, "Noto Sans Arabic", "Noto Sans Devanagari", "Microsoft YaHei", sans-serif;
    font-size: 17px;
    line-height: 1.7;
}

[dir="rtl"] body {
    font-family: var(--arabic-text-font);
    font-size: 19px;
    line-height: 1.8;
}

[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4,
[dir="rtl"] h5,
[dir="rtl"] h6,
[dir="rtl"] .hero-title,
[dir="rtl"] .section-title,
[dir="rtl"] .page-hero h1,
[dir="rtl"] .download-strip-inner h2,
[dir="rtl"] .cta-banner h2,
[dir="rtl"] .stat-num,
[dir="rtl"] .navbar-brand,
[dir="rtl"] .nav-link,
[dir="rtl"] .btn-primary-sa,
[dir="rtl"] .btn-secondary-sa,
[dir="rtl"] .btn-orange-sa,
[dir="rtl"] .btn-outline-teal {
    font-family: var(--arabic-display-font);
}

a {
    color: var(--teal);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--orange);
}

img {
    max-width: 100%;
    height: auto;
}

#mainNav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 12px rgba(23, 32, 42, .05);
    backdrop-filter: blur(12px);
}

.navbar-brand img {
    width: auto;
    height: 48px;
}

.nav-link {
    color: var(--ink) !important;
    font-weight: 700;
    font-size: 15px;
    padding: 10px 12px !important;
    border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link.active {
    color: var(--teal) !important;
    border-bottom-color: var(--orange);
}

.navbar-toggler {
    border: 0;
    color: var(--teal);
    font-size: 28px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-primary-sa,
.btn-secondary-sa,
.btn-orange-sa,
.btn-outline-teal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 11px 22px;
    border-radius: 999px;
    border: 2px solid transparent;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary-sa {
    background: var(--teal);
    color: var(--white);
    border-color: var(--teal);
}

.btn-primary-sa:hover {
    background: var(--teal-dark);
    border-color: var(--teal-dark);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-secondary-sa {
    color: var(--white);
    border-color: rgba(255, 255, 255, .7);
    background: rgba(255, 255, 255, .08);
}

.btn-secondary-sa.dark {
    color: var(--ink);
    border-color: var(--border);
    background: var(--white);
}

.btn-secondary-sa:hover {
    color: var(--teal);
    background: var(--white);
}

.btn-orange-sa {
    color: var(--white);
    background: var(--orange);
    border-color: var(--orange);
}

.btn-orange-sa:hover {
    color: var(--white);
    background: var(--orange-dark);
    border-color: var(--orange-dark);
}

.btn-outline-teal {
    color: var(--teal);
    background: var(--white);
    border-color: var(--teal);
}

.btn-outline-teal:hover {
    color: var(--white);
    background: var(--teal);
}

.compact {
    min-height: 38px;
    padding: 8px 14px;
    font-size: 14px;
}

.hero-section {
    overflow: hidden;
    padding: 88px 0 42px;
    background:
        linear-gradient(135deg, rgba(2, 115, 113, .10), rgba(254, 104, 58, .08)),
        var(--soft);
    border-bottom: 1px solid var(--border);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    margin-bottom: 20px;
    border: 1px solid rgba(2, 115, 113, .25);
    border-radius: 999px;
    color: var(--teal-dark);
    background: var(--teal-light);
    font-weight: 800;
    font-size: 14px;
}

.hero-title {
    max-width: 680px;
    margin: 0 0 18px;
    font-size: clamp(42px, 6vw, 70px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: 0;
}

.hero-subtitle {
    max-width: 680px;
    color: var(--muted);
    font-size: 20px;
    margin-bottom: 28px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.hero-points {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 18px;
    padding: 0;
    margin: 26px 0 0;
    list-style: none;
}

.hero-points li {
    display: flex;
    gap: 8px;
    align-items: center;
    color: var(--ink);
    font-weight: 700;
    min-width: 0;
}

.hero-points i {
    color: var(--orange);
    flex: 0 0 auto;
}

.phone-stage {
    position: relative;
    min-height: 620px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-mock,
.gallery-phone,
.screenshot-pair img {
    overflow: hidden;
    margin: 0;
    border: 10px solid #111923;
    border-radius: 30px;
    background: #111923;
    box-shadow: var(--shadow-md);
}

.phone-mock {
    position: absolute;
    width: min(230px, 42vw);
    aspect-ratio: 1080 / 2316;
}

.phone-mock img,
.gallery-phone img,
.screenshot-pair img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.phone-1 {
    transform: translateX(-160px) rotate(-8deg) scale(.88);
    opacity: .92;
}

.phone-2 {
    z-index: 2;
    transform: translateY(-10px);
}

.phone-3 {
    transform: translateX(160px) rotate(8deg) scale(.88);
    opacity: .92;
}

[dir="rtl"] .phone-1 {
    transform: translateX(160px) rotate(8deg) scale(.88);
}

[dir="rtl"] .phone-3 {
    transform: translateX(-160px) rotate(-8deg) scale(.88);
}

.hero-stats {
    margin-top: 32px;
}

.hero-stat-card,
.feature-card,
.download-card,
.use-card,
.info-tile,
.contact-form,
.contact-panel,
.legal-box {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.hero-stat-card {
    padding: 18px;
    text-align: center;
}

.stat-num {
    display: block;
    color: var(--teal);
    font-size: 28px;
    font-weight: 900;
    line-height: 1.1;
}

.stat-label {
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.download-strip,
.features-section,
.pricing-section,
.content-band,
.faq-section,
.contact-section,
.gallery-section,
.why-section,
.cta-section {
    padding: 72px 0;
}

.download-strip {
    background: var(--white);
}

.download-strip-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--soft);
}

.download-strip-inner h2,
.section-title {
    margin: 0 0 8px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: 0;
}

.download-strip-inner p,
.section-subtitle {
    margin: 0;
    color: var(--muted);
}

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

.features-section,
.faq-section,
.gallery-section {
    background: var(--soft);
}

.section-head {
    max-width: 820px;
    margin: 0 auto 42px;
}

.feature-card,
.download-card,
.use-card {
    position: relative;
    padding: 26px;
    transition: var(--transition);
}

.feature-card:hover,
.download-card:hover,
.use-card:hover,
.info-tile:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon,
.download-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: 18px;
    border-radius: var(--radius);
    color: var(--teal);
    background: var(--teal-light);
    font-size: 26px;
}

.feature-card h3,
.download-card h2,
.use-card h3 {
    margin: 0 0 10px;
    font-size: 21px;
    font-weight: 900;
}

.feature-card p,
.download-card p,
.use-card p {
    color: var(--muted);
    margin: 0;
}

.page-hero {
    padding: 76px 0;
    text-align: center;
    color: var(--white);
    background:
        linear-gradient(135deg, rgba(2, 115, 113, .96), rgba(23, 32, 42, .96)),
        #17202a;
}

.page-hero-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .10);
    font-size: 32px;
}

.page-hero h1 {
    max-width: 900px;
    margin: 0 auto 14px;
    color: var(--white);
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.12;
    font-weight: 900;
}

.page-hero p {
    max-width: 820px;
    margin: 0 auto;
    color: rgba(255, 255, 255, .82);
    font-size: 19px;
}

.download-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.download-card .btn-primary-sa,
.download-card .btn-outline-teal {
    margin-top: auto;
    align-self: flex-start;
}

.status-pill {
    position: absolute;
    top: 20px;
    inset-inline-end: 20px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.status-pill.live {
    color: #166534;
    background: #dcfce7;
}

.status-pill.pending {
    color: #8a4b0f;
    background: #fff4dc;
}

.alert-note {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 16px 18px;
    border: 1px solid rgba(2, 115, 113, .2);
    border-radius: var(--radius);
    color: var(--teal-dark);
    background: var(--teal-light);
    font-weight: 700;
}

.screenshot-gallery {
    display: grid;
    grid-template-columns: repeat(9, minmax(180px, 1fr));
    gap: 18px;
    overflow-x: auto;
    padding: 8px 4px 18px;
}

.gallery-phone {
    width: 180px;
    aspect-ratio: 1080 / 2316;
    border-width: 8px;
    border-radius: 24px;
}

.screenshot-pair {
    display: flex;
    gap: 18px;
    justify-content: center;
}

.screenshot-pair img {
    width: min(210px, 45%);
    aspect-ratio: 1080 / 2316;
    border-width: 8px;
    border-radius: 24px;
}

.stack-list {
    display: grid;
    gap: 14px;
}

.stack-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    font-weight: 800;
}

.stack-item i {
    color: var(--orange);
    font-size: 22px;
    flex: 0 0 auto;
}

.info-tile {
    padding: 22px;
    min-height: 128px;
}

.info-tile span {
    display: block;
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 6px;
}

.info-tile strong {
    display: block;
    font-size: 19px;
    line-height: 1.45;
}

.accordion-item {
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
}

.accordion-button {
    color: var(--ink) !important;
    background: var(--white) !important;
    font-weight: 900;
}

.accordion-button:not(.collapsed) {
    color: var(--teal-dark) !important;
    background: var(--teal-light) !important;
}

.accordion-button:focus {
    box-shadow: 0 0 0 3px rgba(2, 115, 113, .15);
}

.accordion-body {
    color: var(--muted);
}

.contact-panel,
.contact-form {
    padding: 28px;
}

.contact-panel h2 {
    margin-bottom: 20px;
    font-size: 26px;
    font-weight: 900;
}

.contact-info-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    overflow-wrap: anywhere;
}

.contact-info-card:last-child {
    border-bottom: 0;
}

.contact-info-card i {
    color: var(--teal);
    font-size: 21px;
    flex: 0 0 auto;
}

.contact-form label {
    display: grid;
    gap: 6px;
    width: 100%;
    color: var(--ink);
    font-weight: 800;
}

.form-control,
.form-select {
    min-height: 48px;
    border-color: var(--border);
    border-radius: var(--radius);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(2, 115, 113, .14);
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.alert-sa {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 14px 16px;
    margin-bottom: 18px;
    border-radius: var(--radius);
    font-weight: 800;
}

.alert-success-sa {
    color: #166534;
    background: #dcfce7;
    border: 1px solid #bbf7d0;
}

.alert-error-sa {
    color: #991b1b;
    background: #fee2e2;
    border: 1px solid #fecaca;
}

.legal-box {
    max-width: 920px;
    margin: 0 auto;
    padding: 32px;
}

.legal-box ul {
    margin: 24px 0 0;
    padding-inline-start: 22px;
}

.legal-box li {
    margin-bottom: 12px;
}

.cta-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 36px;
    border-radius: var(--radius);
    color: var(--white);
    background: linear-gradient(135deg, var(--teal), var(--ink));
}

.cta-banner h2 {
    color: var(--white);
    margin: 0 0 8px;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 900;
}

.cta-banner p {
    color: rgba(255, 255, 255, .82);
    margin: 0;
}

.site-footer {
    padding: 58px 0 0;
    color: rgba(255, 255, 255, .78);
    background: var(--ink);
}

.footer-logo {
    height: 64px;
    width: auto;
    padding: 6px;
    margin-bottom: 18px;
    border-radius: var(--radius);
    background: var(--white);
}

.footer-desc {
    color: rgba(255, 255, 255, .70);
}

.footer-heading {
    color: var(--white);
    font-size: 16px;
    font-weight: 900;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 9px;
}

.footer-links a,
.footer-contact-item a {
    color: rgba(255, 255, 255, .70);
}

.footer-links a {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover,
.footer-contact-item a:hover {
    color: var(--orange);
}

.footer-contact-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 10px;
    overflow-wrap: anywhere;
}

.footer-contact-item i,
.footer-links i {
    color: var(--orange);
    flex: 0 0 auto;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 50%;
    color: var(--white);
}

.footer-social a:hover {
    background: var(--teal);
    border-color: var(--teal);
}

.footer-bottom {
    margin-top: 36px;
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
    text-align: center;
    color: rgba(255, 255, 255, .55);
}

.webapp-float,
#scrollTop {
    position: fixed;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.webapp-float {
    right: 22px;
    bottom: 22px;
    width: 56px;
    height: 56px;
    background: var(--teal);
    font-size: 24px;
}

[dir="rtl"] .webapp-float {
    right: auto;
    left: 22px;
}

#scrollTop {
    right: 22px;
    bottom: 88px;
    width: 44px;
    height: 44px;
    background: var(--orange);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

[dir="rtl"] #scrollTop {
    right: auto;
    left: 22px;
}

#scrollTop.visible {
    opacity: 1;
    pointer-events: auto;
}

.fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .55s ease, transform .55s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1199px) {
    .nav-actions {
        margin-top: 12px;
    }
}

@media (max-width: 991px) {
    .hero-section {
        padding-top: 56px;
    }

    .phone-stage {
        min-height: 540px;
    }

    .phone-1 {
        transform: translateX(-110px) rotate(-8deg) scale(.82);
    }

    .phone-3 {
        transform: translateX(110px) rotate(8deg) scale(.82);
    }

    [dir="rtl"] .phone-1 {
        transform: translateX(110px) rotate(8deg) scale(.82);
    }

    [dir="rtl"] .phone-3 {
        transform: translateX(-110px) rotate(-8deg) scale(.82);
    }

    .download-strip-inner,
    .cta-banner {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 575px) {
    body {
        font-size: 16px;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-points {
        grid-template-columns: 1fr;
    }

    .phone-stage {
        min-height: 420px;
    }

    .phone-mock {
        width: 160px;
        border-width: 7px;
        border-radius: 24px;
    }

    .phone-1 {
        transform: translateX(-72px) rotate(-8deg) scale(.78);
    }

    .phone-3 {
        transform: translateX(72px) rotate(8deg) scale(.78);
    }

    [dir="rtl"] .phone-1 {
        transform: translateX(72px) rotate(8deg) scale(.78);
    }

    [dir="rtl"] .phone-3 {
        transform: translateX(-72px) rotate(-8deg) scale(.78);
    }

    .download-strip,
    .features-section,
    .pricing-section,
    .content-band,
    .faq-section,
    .contact-section,
    .gallery-section,
    .why-section,
    .cta-section {
        padding: 52px 0;
    }

    .contact-panel,
    .contact-form,
    .legal-box,
    .download-strip-inner,
    .cta-banner {
        padding: 22px;
    }

    .btn-primary-sa,
    .btn-secondary-sa,
    .btn-orange-sa,
    .btn-outline-teal {
        width: 100%;
        white-space: normal;
    }

    .nav-actions {
        align-items: stretch;
        width: 100%;
    }

    .nav-actions > * {
        width: 100%;
    }
}

/* Arabic pages use the original template Arabic fonts. This final rule wins over
   the shared Latin/system stack without changing any LTR language. */
[dir="rtl"] body {
    font-family: "F-DFontSmall", "F-DFont", "mothnna", "ftl", "AlJazeera", Tahoma, Arial, sans-serif !important;
    font-size: 19px;
    line-height: 1.8;
}

[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4,
[dir="rtl"] h5,
[dir="rtl"] h6,
[dir="rtl"] .hero-title,
[dir="rtl"] .section-title,
[dir="rtl"] .page-hero h1,
[dir="rtl"] .download-strip-inner h2,
[dir="rtl"] .cta-banner h2,
[dir="rtl"] .stat-num,
[dir="rtl"] .navbar-brand,
[dir="rtl"] .nav-link,
[dir="rtl"] .btn-primary-sa,
[dir="rtl"] .btn-secondary-sa,
[dir="rtl"] .btn-orange-sa,
[dir="rtl"] .btn-outline-teal {
    font-family: "F-DFont", "mothnna", "ftl", "AlJazeera", Tahoma, Arial, sans-serif !important;
}
