/* ============================================================
   متغيرات عامة وأنماط أساسية - منصة العربية للجنة
   ============================================================ */
:root {
    /* الألوان الأساسية - مستوحاة من الفن الإسلامي */
    --color-primary: #0F6244;        /* أخضر إسلامي عميق */
    --color-primary-dark: #0a4a33;
    --color-primary-light: #1a8a64;
    --color-gold: #C8A04E;            /* ذهبي أنيق */
    --color-gold-light: #E8C97D;
    --color-gold-dark: #9C7D33;

    /* ألوان مساعدة */
    --color-bg: #FAF8F3;             /* خلفية دافئة */
    --color-bg-alt: #F0EAE0;         /* خلفية ثانوية */
    --color-white: #FFFFFF;
    --color-text: #1F2937;
    --color-text-soft: #4B5563;
    --color-text-muted: #6B7280;
    --color-border: #E5E7EB;

    /* ألوان المستويات */
    --level-1: #4CAF50;
    --level-2: #2196F3;
    --level-3: #FF9800;
    --level-4: #FF5722;
    --level-5: #9C27B0;
    --level-6: #673AB7;

    /* الظلال */
    --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
    --shadow: 0 4px 12px rgba(0,0,0,.08);
    --shadow-md: 0 8px 24px rgba(0,0,0,.10);
    --shadow-lg: 0 16px 48px rgba(0,0,0,.12);
    --shadow-gold: 0 8px 24px rgba(200, 160, 78, .25);

    /* الانتقالات */
    --transition: all .3s cubic-bezier(.4, 0, .2, 1);
    --transition-fast: all .2s ease;

    /* الزوايا */
    --radius-sm: 6px;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
}

/* إعادة الضبط */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    direction: rtl;
    overflow-x: hidden;
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

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

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================================
   الأزرار
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    border: 2px solid transparent;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: var(--color-white);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
}

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

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

.btn-large {
    padding: 16px 36px;
    font-size: 17px;
}

/* ============================================================
   الشريط العلوي
   ============================================================ */
.top-bar {
    background: linear-gradient(90deg, var(--color-primary-dark), var(--color-primary), var(--color-primary-dark));
    color: var(--color-white);
    padding: 8px 0;
    font-size: 13px;
    text-align: center;
}

.top-bar span {
    display: inline-block;
    opacity: .95;
}

.top-bar i {
    color: var(--color-gold-light);
    margin: 0 4px;
}

/* ============================================================
   الهيدر
   ============================================================ */
.main-header {
    background: var(--color-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    gap: 24px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(15, 98, 68, .35);
    position: relative;
    overflow: hidden;
}

.logo-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(45deg, transparent 48%, rgba(255,255,255,.15) 49%, rgba(255,255,255,.15) 51%, transparent 52%);
    background-size: 8px 8px;
}

.logo-icon .ar-letter {
    font-family: 'Amiri', serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--color-gold-light);
    line-height: 1;
}

.site-title {
    font-family: 'Cairo', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1.2;
}

.site-tagline {
    font-size: 12px;
    color: var(--color-text-muted);
}

.main-nav ul {
    display: flex;
    gap: 8px;
    align-items: center;
}

.main-nav a {
    display: block;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
    color: var(--color-text-soft);
    position: relative;
    transition: var(--transition);
}

.main-nav a:hover {
    color: var(--color-primary);
    background: var(--color-bg-alt);
}

.main-nav a.active {
    color: var(--color-primary);
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 16px;
    left: 16px;
    height: 3px;
    background: var(--color-gold);
    border-radius: 2px;
}

.mobile-toggle {
    display: none;
    font-size: 22px;
    color: var(--color-primary);
    padding: 8px;
}

/* ============================================================
   قسم Hero
   ============================================================ */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #0a4a33 0%, #0F6244 50%, #1a8a64 100%);
    color: var(--color-white);
    padding: 80px 0 100px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(200, 160, 78, .15), transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(232, 201, 125, .15), transparent 40%);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(45deg, transparent 48%, rgba(255,255,255,.04) 49%, rgba(255,255,255,.04) 51%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(255,255,255,.04) 49%, rgba(255,255,255,.04) 51%, transparent 52%);
    background-size: 80px 80px;
    opacity: .8;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(200, 160, 78, .15);
    border: 1px solid rgba(200, 160, 78, .4);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-gold-light);
    margin-bottom: 24px;
}

.hero-badge i {
    color: var(--color-gold-light);
}

.hero-title {
    font-family: 'Cairo', sans-serif;
    font-size: 52px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-title-accent {
    display: block;
    color: var(--color-gold-light);
    margin-top: 6px;
}

.hero-description {
    font-size: 18px;
    line-height: 1.8;
    opacity: .92;
    margin-bottom: 32px;
    max-width: 560px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 36px;
    padding: 24px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: 'Cairo', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: var(--color-gold-light);
    line-height: 1;
}

.stat-label {
    font-size: 13px;
    opacity: .85;
    margin-top: 6px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-actions .btn-primary {
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
    color: var(--color-primary-dark);
    font-weight: 700;
}

.hero-actions .btn-primary:hover {
    background: linear-gradient(135deg, var(--color-gold-dark), var(--color-gold));
    color: var(--color-white);
}

.hero-actions .btn-outline {
    color: var(--color-white);
    border-color: rgba(255,255,255,.5);
}

.hero-actions .btn-outline:hover {
    background: rgba(255,255,255,.1);
    color: var(--color-white);
    border-color: var(--color-white);
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-card {
    position: relative;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 1;
    background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
    border: 1px solid rgba(255,255,255,.15);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(20px);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: floatCard 6s ease-in-out infinite;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.hero-card-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 80%, rgba(200, 160, 78, .2), transparent 50%), radial-gradient(circle at 80% 20%, rgba(232, 201, 125, .15), transparent 50%);
}

.hero-arabic-letters {
    position: absolute;
    inset: 0;
}

.float-letter {
    position: absolute;
    font-family: 'Amiri', serif;
    font-size: 64px;
    font-weight: 700;
    color: rgba(232, 201, 125, .6);
    animation: floatLetter 8s ease-in-out infinite;
}

.float-letter.l1 { top: 12%; right: 18%; animation-delay: 0s; }
.float-letter.l2 { top: 24%; left: 12%; animation-delay: 1s; font-size: 48px; }
.float-letter.l3 { bottom: 30%; right: 12%; animation-delay: 2s; font-size: 72px; color: rgba(200, 160, 78, .5); }
.float-letter.l4 { top: 50%; right: 50%; transform: translate(50%, -50%); animation-delay: 3s; font-size: 90px; color: rgba(232, 201, 125, .8); }
.float-letter.l5 { bottom: 12%; left: 18%; animation-delay: 4s; }
.float-letter.l6 { top: 65%; left: 22%; animation-delay: 5s; font-size: 52px; }
.float-letter.l7 { top: 14%; right: 45%; animation-delay: 6s; font-size: 56px; }
.float-letter.l8 { bottom: 18%; right: 30%; animation-delay: 7s; font-size: 48px; }

@keyframes floatLetter {
    0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: .7; }
    50% { transform: translate(15px, -20px) rotate(8deg); opacity: 1; }
}

.float-letter.l4 {
    animation-name: floatLetterCenter;
}

@keyframes floatLetterCenter {
    0%, 100% { transform: translate(50%, -50%) rotate(0deg); opacity: .8; }
    50% { transform: translate(50%, -60%) rotate(0deg); opacity: 1; }
}

.hero-quote {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
    background: rgba(15, 74, 51, .85);
    border: 1px solid rgba(200, 160, 78, .4);
    border-radius: var(--radius);
    padding: 18px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.hero-quote i {
    color: var(--color-gold-light);
    font-size: 18px;
    margin-bottom: 8px;
}

.hero-quote p {
    font-family: 'Amiri', serif;
    font-size: 20px;
    color: var(--color-white);
    margin-bottom: 6px;
}

.hero-quote small {
    color: var(--color-gold-light);
    font-size: 12px;
}

/* ============================================================
   رؤوس الأقسام
   ============================================================ */
.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 56px;
}

.section-eyebrow {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, rgba(15, 98, 68, .1), rgba(200, 160, 78, .1));
    color: var(--color-primary);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: .5px;
    border: 1px solid rgba(15, 98, 68, .15);
}

.section-title {
    font-family: 'Cairo', sans-serif;
    font-size: 40px;
    font-weight: 800;
    color: var(--color-primary-dark);
    line-height: 1.3;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 17px;
    color: var(--color-text-soft);
    line-height: 1.7;
}

.section-cta {
    text-align: center;
    margin-top: 48px;
}

/* ============================================================
   قسم المميزات
   ============================================================ */
.features-section {
    padding: 96px 0;
    background: var(--color-bg);
}

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

.feature-card {
    background: var(--color-white);
    padding: 32px 28px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, var(--color-primary), var(--color-gold));
    transition: height .4s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(15, 98, 68, .2);
}

.feature-card:hover::before {
    height: 100%;
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(15, 98, 68, .1), rgba(200, 160, 78, .1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--color-primary);
    font-size: 26px;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: var(--color-white);
    transform: scale(1.05);
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 15px;
    color: var(--color-text-soft);
    line-height: 1.7;
}

/* ============================================================
   قسم معاينة المستويات
   ============================================================ */
.levels-preview {
    padding: 96px 0;
    background: linear-gradient(180deg, var(--color-bg) 0%, #fff 100%);
    position: relative;
}

.levels-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(15, 98, 68, .2), transparent);
}

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

.level-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.level-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.level-number {
    display: inline-block;
    padding: 6px 14px;
    background: var(--color-bg-alt);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: var(--color-text-soft);
    margin-bottom: 14px;
}

.level-color-bar {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 6px;
}

.level-card h3 {
    font-family: 'Cairo', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: var(--color-primary-dark);
    margin-bottom: 10px;
}

.level-card p {
    font-size: 15px;
    color: var(--color-text-soft);
    line-height: 1.7;
    margin-bottom: 18px;
    min-height: 50px;
}

.level-meta {
    display: flex;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px dashed var(--color-border);
    font-size: 13px;
    color: var(--color-text-muted);
}

.level-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.level-meta i {
    color: var(--color-primary);
}

/* ============================================================
   قسم الإحصائيات
   ============================================================ */
.counter-section {
    padding: 72px 0;
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.counter-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(45deg, transparent 48%, rgba(200, 160, 78, .07) 49%, rgba(200, 160, 78, .07) 51%, transparent 52%);
    background-size: 60px 60px;
}

.counter-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.counter-item {
    text-align: center;
    padding: 24px;
}

.counter-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(200, 160, 78, .15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 24px;
    color: var(--color-gold-light);
}

.counter-number {
    font-family: 'Cairo', sans-serif;
    font-size: 48px;
    font-weight: 800;
    color: var(--color-gold-light);
    line-height: 1;
    margin-bottom: 8px;
}

.counter-label {
    font-size: 15px;
    opacity: .9;
}

/* ============================================================
   قسم CTA
   ============================================================ */
.cta-section {
    padding: 96px 0;
    background: var(--color-bg);
}

.cta-container {
    position: relative;
    background: linear-gradient(135deg, #0a4a33 0%, #0F6244 50%, #1a8a64 100%);
    border-radius: var(--radius-xl);
    padding: 64px 48px;
    text-align: center;
    color: var(--color-white);
    overflow: hidden;
}

.cta-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 0% 0%, rgba(200, 160, 78, .15), transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(232, 201, 125, .12), transparent 50%);
}

.cta-content {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
}

.cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(200, 160, 78, .15);
    border: 1px solid rgba(200, 160, 78, .4);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-gold-light);
    margin-bottom: 22px;
}

.cta-title {
    font-family: 'Cairo', sans-serif;
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-description {
    font-size: 17px;
    line-height: 1.8;
    opacity: .92;
    margin-bottom: 32px;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-actions .btn-primary {
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
    color: var(--color-primary-dark);
}

.cta-actions .btn-primary:hover {
    color: var(--color-white);
}

/* ============================================================
   الفوتر
   ============================================================ */
.main-footer {
    background: linear-gradient(180deg, #1a1f1c 0%, #0a0e0c 100%);
    color: #d1d5db;
    padding: 72px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 48px;
    padding-bottom: 48px;
}

.footer-col h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--color-gold);
    border-radius: 2px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.footer-logo-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(15, 98, 68, .3);
}

.footer-logo-icon .ar-letter {
    font-family: 'Amiri', serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--color-gold-light);
    line-height: 1;
}

.footer-logo h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--color-white);
    line-height: 1.2;
}

.footer-logo p {
    font-size: 13px;
    color: var(--color-gold-light);
}

.footer-desc {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 22px;
    opacity: .85;
}

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

.social-links a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d1d5db;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,.08);
}

.social-links a:hover {
    background: var(--color-gold);
    color: var(--color-primary-dark);
    transform: translateY(-2px);
}

.footer-col ul li {
    margin-bottom: 11px;
}

.footer-col ul li a,
.footer-col ul li {
    font-size: 14px;
    color: #d1d5db;
    opacity: .8;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
}

.footer-col ul li a:hover {
    color: var(--color-gold-light);
    opacity: 1;
}

.footer-col ul li i {
    color: var(--color-gold);
    font-size: 11px;
}

.footer-bottom {
    padding: 24px 0;
    border-top: 1px solid rgba(255,255,255,.08);
    text-align: center;
}

.footer-bottom-content p {
    font-size: 13px;
    opacity: .7;
    margin: 4px 0;
}

.footer-bottom-content strong {
    color: var(--color-gold-light);
    font-weight: 700;
}

/* ============================================================
   التجاوب مع الأجهزة
   ============================================================ */
@media (max-width: 1024px) {
    .hero-container { grid-template-columns: 1fr; gap: 40px; }
    .hero-visual { max-width: 380px; margin: 0 auto; }
    .hero-title { font-size: 42px; }
    .features-grid, .levels-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 768px) {
    .top-bar { font-size: 11px; padding: 6px 0; }
    .header-container { padding: 12px 16px; gap: 12px; }
    .mobile-toggle { display: flex; }
    .main-nav {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: var(--color-white);
        flex-direction: column;
        padding: 16px;
        box-shadow: var(--shadow-md);
        display: none;
        border-top: 1px solid var(--color-border);
    }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; gap: 0; }
    .main-nav a { padding: 12px 16px; border-radius: var(--radius-sm); }
    .main-nav a.active::after { display: none; }
    .header-actions { display: none; }

    .hero-section { padding: 56px 0 72px; }
    .hero-title { font-size: 32px; }
    .hero-description { font-size: 16px; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); padding: 20px; }
    .stat-number { font-size: 26px; }
    .hero-actions .btn { padding: 12px 22px; font-size: 14px; }

    .section-title { font-size: 28px; }
    .section-subtitle { font-size: 15px; }
    .features-section, .levels-preview, .cta-section { padding: 64px 0; }
    .features-grid, .levels-grid { grid-template-columns: 1fr; }

    .counter-section { padding: 48px 0; }
    .counter-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .counter-number { font-size: 36px; }
    .counter-item { padding: 12px; }

    .cta-container { padding: 48px 24px; }
    .cta-title { font-size: 28px; }
    .cta-description { font-size: 15px; }

    .footer-grid { grid-template-columns: 1fr; gap: 32px; padding-bottom: 32px; }
    .main-footer { padding-top: 48px; }

    .site-title { font-size: 18px; }
    .site-tagline { font-size: 11px; }
    .logo-icon { width: 44px; height: 44px; }
    .logo-icon .ar-letter { font-size: 28px; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero-title { font-size: 26px; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .feature-card { padding: 24px 20px; }
}

/* ============================================================
   انيميشن عند التحميل
   ============================================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp .6s ease-out;
}
