* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    background: #111827;
    color: #ffffff;
    direction: rtl;
}

a {
    text-decoration: none;
}

.container {
    width: 90%;
    max-width: 1180px;
    margin: 0 auto;
}

/* =========================================================
الشريط العلوي
========================================================= */

.topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(17, 24, 39, 0.97);
    border-bottom: 1px solid #2a354a;
    backdrop-filter: blur(10px);
}

.nav-container {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 70px;
}

/* =========================================================
الشعار
========================================================= */

.logo {
    display: flex;
    align-items: center;
    gap: 13px;
    color: #ffffff;
    font-size: 23px;
    font-weight: 800;
    white-space: nowrap;
    flex-shrink: 0;
}

.logo-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
}

.logo-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    border-radius: 11px;
}

/* =========================================================
القائمة العلوية
========================================================= */

.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    margin-right: auto;
}

.main-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #c8d0df;
    padding: 12px 17px;
    min-height: 44px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.main-nav a:hover {
    color: #ffffff;
    background: #1c2639;
    transform: translateY(-1px);
}

/* =========================================================
زر اللغة - Super Sam
========================================================= */

.language-box {
    display: flex;
    align-items: center;
    justify-content: center;
}

.language-selector {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    width: 145px;
    height: 44px;

    padding: 0 42px 0 18px;

    border: 1px solid rgba(91, 156, 255, 0.45);
    border-radius: 24px;

    background-color: #182235;

    color: #ffffff;

    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;

    text-align: center;

    cursor: pointer;
    outline: none;

    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;

    /* سهم القائمة */
    background-image:
        linear-gradient(45deg, transparent 50%, #6fa8ff 50%),
        linear-gradient(135deg, #6fa8ff 50%, transparent 50%);

    background-position:
        calc(100% - 19px) 18px,
        calc(100% - 14px) 18px;

    background-size:
        5px 5px,
        5px 5px;

    background-repeat: no-repeat;

    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.18);
}

/* عند مرور الماوس */

.language-selector:hover {
    background-color: #202d43;
    border-color: #5b9cff;

    box-shadow:
        0 6px 20px rgba(91, 156, 255, 0.18);

    transform: translateY(-2px);
}

/* عند الضغط */

.language-selector:focus {
    border-color: #5b9cff;

    box-shadow:
        0 0 0 3px rgba(91, 156, 255, 0.15),
        0 6px 20px rgba(0, 0, 0, 0.20);
}

/* خيارات اللغة */

.language-selector option {
    background: #182235;
    color: #ffffff;

    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
}

/* =========================================================
قائمة اللغة الخاصة بالـ Mobile Master
========================================================= */

.mobile-language-box {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 12px auto;
}

.mobile-language-selector {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    width: 145px;
    height: 44px;

    padding: 0 42px 0 18px;

    border: 1px solid rgba(91, 156, 255, 0.45);
    border-radius: 24px;

    background-color: #182235;

    color: #ffffff;

    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;

    text-align: center;

    cursor: pointer;
    outline: none;

    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;

    background-image:
        linear-gradient(45deg, transparent 50%, #6fa8ff 50%),
        linear-gradient(135deg, #6fa8ff 50%, transparent 50%);

    background-position:
        calc(100% - 19px) 18px,
        calc(100% - 14px) 18px;

    background-size:
        5px 5px,
        5px 5px;

    background-repeat: no-repeat;

    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.18);
}

.mobile-language-selector:hover {
    background-color: #202d43;
    border-color: #5b9cff;

    box-shadow:
        0 6px 20px rgba(91, 156, 255, 0.18);

    transform: translateY(-2px);
}

.mobile-language-selector:focus {
    border-color: #5b9cff;

    box-shadow:
        0 0 0 3px rgba(91, 156, 255, 0.15),
        0 6px 20px rgba(0, 0, 0, 0.20);
}

.mobile-language-selector option {
    background: #182235;
    color: #ffffff;

    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
}

/* =========================================================
Hero
========================================================= */

.hero {
    min-height: 700px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 85px 0;
    background: radial-gradient(circle at 15% 20%, rgba(79, 140, 255, 0.18), transparent 35%), radial-gradient(circle at 85% 75%, rgba(124, 77, 255, 0.15), transparent 35%);
}

.hero-content {
    width: 90%;
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 75px;
    align-items: center;
}

/* =========================================================
الجهة النصية
========================================================= */

.hero-text {
    padding: 10px 0;
}

.hero-brand {
    margin-bottom: 25px;
}

.hero-icon {
    width: 82px;
    height: 82px;
    display: block;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.hero-text h1 {
    margin: 0 0 28px;
    font-size: clamp(42px, 5vw, 68px);
    line-height: 1.15;
    font-weight: 900;
}

.hero-text h1 span {
    background: linear-gradient(90deg, #5b9cff, #9b6cff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    max-width: 650px;
    margin: 0 0 35px;
    color: #b3bdcf;
    font-size: 19px;
    line-height: 2;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* =========================================================
الأزرار
========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    transition: 0.25s;
    cursor: pointer;
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, #4f8cff, #7654ff);
    box-shadow: 0 14px 35px rgba(79, 140, 255, 0.20);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 45px rgba(79, 140, 255, 0.30);
}

.btn-secondary {
    color: #ffffff;
    background: #182235;
    border: 1px solid #303e57;
}

.btn-secondary:hover {
    background: #202d43;
    transform: translateY(-3px);
}

/* =========================================================
صورة البرنامج في Hero
========================================================= */

.hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.program-window {
    width: 100%;
    max-width: 560px;
    background: #161f31;
    border: 1px solid #303c55;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 35px 90px rgba(0, 0, 0, 0.45);
}

.window-header {
    height: 48px;
    background: #1b2538;
    display: flex;
    align-items: center;
    padding: 0 17px;
    gap: 8px;
}

.window-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #6d7890;
}

.window-body {
    padding: 0;
    background: #0f1728;
}

.image-window-body {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-program-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* =========================================================
الأقسام
========================================================= */

.section {
    padding: 110px 0;
}

.section-title {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 65px;
}

.section-title h2 {
    margin: 0 0 18px;
    font-size: 40px;
    line-height: 1.2;
}

.section-title p {
    margin: 0;
    color: #a6b0c2;
    font-size: 17px;
    line-height: 1.9;
}

/* =========================================================
المميزات
========================================================= */

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.feature-card {
    min-height: 220px;
    background: #161f31;
    border: 1px solid #2b3750;
    border-radius: 18px;
    padding: 34px;
    transition: 0.25s;
}

.feature-card:hover {
    transform: translateY(-7px);
    border-color: #466089;
}

.feature-icon {
    font-size: 36px;
    margin-bottom: 22px;
}

.feature-card h3 {
    margin: 0 0 14px;
    font-size: 21px;
}

.feature-card p {
    margin: 0;
    color: #a4aec0;
    line-height: 1.9;
}

/* =========================================================
الإعلان
========================================================= */

.ad-section {
    width: 90%;
    max-width: 1000px;
    margin: 10px auto 30px;
    padding: 0;
}

.ad-label {
    text-align: center;
    color: #69758b;
    font-size: 12px;
    margin-bottom: 10px;
}

.ad-box {
    width: 100%;
    min-height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #151e30;
    border: 1px solid #27344b;
    border-radius: 14px;
    color: #657188;
    font-size: 14px;
}

/* =========================================================
قسم صورة البرنامج
========================================================= */

.screenshot-section {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 65px;
    align-items: center;
}

.section-description {
    color: #aab4c9;
    line-height: 2;
    font-size: 18px;
    margin: 0 0 28px;
}

.screenshot-placeholder {
    width: 100%;
    background: #161f31;
    border: 1px solid #303c55;
    border-radius: 18px;
    padding: 15px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
}

.program-screenshot {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    object-fit: contain;
}

/* =========================================================
التحميل
========================================================= */

.download-box {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 50px;
    text-align: center;
    background: linear-gradient(135deg, #19243a, #1b2239);
    border: 1px solid #34425d;
    border-radius: 22px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.18);
}

.download-box h2 {
    margin: 0 0 18px;
    font-size: 35px;
}

.download-box p {
    max-width: 650px;
    margin: 0 auto 30px;
    color: #acb6c9;
    line-height: 1.9;
}

.version-info {
    display: flex;
    justify-content: center;
    gap: 35px;
    flex-wrap: wrap;
    margin: 25px 0 35px;
}

.version-item {
    color: #bcc5d5;
}

/* =========================================================
الصفحات الداخلية
========================================================= */

.page-header {
    padding: 100px 0 65px;
    text-align: center;
    background: radial-gradient(circle at 50% 0%, rgba(79, 140, 255, 0.14), transparent 38%);
}

.page-header h1 {
    margin: 0 0 18px;
    font-size: 50px;
    line-height: 1.2;
}

.page-header p {
    max-width: 760px;
    margin: 0 auto;
    color: #aab4c9;
    line-height: 2;
    font-size: 17px;
}

.content-card {
    background: #161f31;
    border-radius: 18px;
    padding: 34px;
    margin-bottom: 25px;
}

.content-card h2,
.content-card h3 {
    margin-top: 0;
}

.content-card p {
    color: #aab4c9;
    line-height: 2;
}

/* =========================================================
جدول الإصدارات
========================================================= */

.version-table {
    width: 100%;
    border-collapse: collapse;
}

.version-table th,
.version-table td {
    padding: 18px;
    border-bottom: 1px solid #2b3750;
    text-align: right;
}

.version-table th {
    color: #ffffff;
    background: #1c2639;
}

.version-table td {
    color: #b4bdd0;
}

/* =========================================================
الأسئلة
========================================================= */

.faq-item {
    background: #161f31;
    border: 1px solid #2b3750;
    border-radius: 17px;
    padding: 30px;
    margin-bottom: 18px;
}

.faq-item h3 {
    margin: 0 0 12px;
    font-size: 20px;
}

.faq-item p {
    color: #aab4c9;
    line-height: 2;
    margin: 0;
}

/* =========================================================
Footer
========================================================= */

.footer {
    background: #0d1422;
    border-top: 1px solid #27334a;
    padding-top: 65px;
    margin-top: 20px;
}

.footer-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 70px;
}

/* شعار Footer */

.footer-brand {
    display: flex;
    align-items: center;
    gap: 13px;
    font-size: 24px;
    font-weight: 800;
    white-space: nowrap;
}

.footer-icon {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 10px;
}

.footer-content p {
    color: #8f99ae;
    margin-top: 16px;
    line-height: 1.8;
}

/* قائمة Footer */

.footer-links {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px 28px;
    flex-wrap: wrap;
    align-content: flex-start;
    max-width: 720px;
    padding-top: 5px;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    color: #aab4c8;
    font-size: 15px;
    font-weight: 500;
    padding: 7px 4px;
    white-space: nowrap;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links a:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

/* حقوق الموقع */

.copyright {
    text-align: center;
    color: #69748b;
    padding: 30px 20px;
    margin-top: 50px;
    border-top: 1px solid #1b2639;
    font-size: 14px;
}

/* =========================================================
شاشة متوسطة
========================================================= */

@media (max-width: 1100px) {

    .nav-container {
        gap: 30px;
    }

    .main-nav {
        gap: 7px;
    }

    .main-nav a {
        padding: 11px 12px;
        font-size: 15px;
    }

    .footer-content {
        gap: 40px;
    }

    .footer-links {
        gap: 13px 20px;
    }

}

/* =========================================================
الجوال
========================================================= */

@media (max-width: 900px) {

    .nav-container {
        min-height: 72px;
        gap: 20px;
    }

    .main-nav {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 75px 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 55px;
        text-align: center;
    }

    .hero-brand {
        display: flex;
        justify-content: center;
    }

    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

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

    .screenshot-section {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .footer-content {
        flex-direction: column;
        gap: 35px;
        text-align: center;
    }

    .footer-brand {
        justify-content: center;
    }

    .footer-links {
        justify-content: center;
        max-width: 100%;
        margin: auto;
    }

}

/* =========================================================
الجوال الصغير
========================================================= */

@media (max-width: 600px) {

    .container {
        width: 92%;
    }

    .hero {
        padding: 60px 0;
    }

    .hero-text h1 {
        font-size: 42px;
    }

    .hero-text p {
        font-size: 17px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .section {
        padding: 80px 0;
    }

    .section-title {
        margin-bottom: 45px;
    }

    .section-title h2 {
        font-size: 33px;
    }

    .feature-card {
        padding: 28px;
    }

    .download-box {
        padding: 40px 22px;
    }

    .download-box h2 {
        font-size: 30px;
    }

    .version-info {
        flex-direction: column;
        gap: 12px;
    }

    .page-header {
        padding: 75px 0 50px;
    }

    .page-header h1 {
        font-size: 38px;
    }

    .footer {
        padding-top: 50px;
    }

    .footer-links {
        gap: 10px 20px;
    }

    /* زر اللغة على الجوال */

    .language-selector,
    .mobile-language-selector {
        width: 140px;
        height: 42px;
        font-size: 13px;
    }

}