/* ═══════════════════════════════════════════════ */
/*  RESET + BASE                                    */
/* ═══════════════════════════════════════════════ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #FF6B35;
    --primary-dark: #E85A2A;
    --primary-light: #FF8A5C;
    --gold: #FFB300;
    --bg: #0F0F0F;
    --surface: #1A1A1A;
    --card: #1E1E1E;
    --text: #FFFFFF;
    --text-2: #A0A0A0;
    --text-3: #707070;
    --success: #4CAF50;
    --error: #EF5350;
    --divider: #2A2A2A;
    --radius: 16px;
}

html {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', 'Tahoma', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

img, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* ═══════════════════════════════════════════════ */
/*  HERO                                            */
/* ═══════════════════════════════════════════════ */
.hero {
    position: relative;
    padding: 60px 0 80px;
    text-align: center;
    overflow: hidden;
    width: 100%;
}

.hero-bg-glow {
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    max-width: 100%;
    background: radial-gradient(circle, rgba(255,107,53,0.25) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.logo {
    width: 130px;
    height: 130px;
    margin: 0 auto 20px;
    filter: drop-shadow(0 10px 30px rgba(255,107,53,0.4));
    animation: floatLogo 4s ease-in-out infinite;
}

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

.logo svg {
    width: 100%;
    height: 100%;
}

.badge-top {
    display: inline-block;
    padding: 8px 18px;
    background: var(--card);
    border: 1px solid var(--divider);
    border-radius: 50px;
    font-size: 13px;
    color: var(--text-2);
    margin-bottom: 20px;
}

.hero-title {
    font-size: 52px;
    font-weight: 900;
    margin-bottom: 16px;
    letter-spacing: -1px;
    line-height: 1.1;
    word-break: break-word;
}

.hero-title span {
    background: linear-gradient(135deg, var(--primary) 0%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 17px;
    color: var(--text-2);
    margin-bottom: 36px;
    line-height: 1.8;
}

/* زر التحميل */
.btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(255,107,53,0.35);
    font-family: inherit;
    max-width: 100%;
}

.btn-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255,107,53,0.5);
}

.btn-download:active {
    transform: translateY(0);
}

.btn-download svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.btn-download-large {
    padding: 22px 50px;
    font-size: 20px;
    margin-bottom: 16px;
}

.version-info {
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-3);
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.dot {
    color: var(--divider);
}

/* QR Section */
.qr-section {
    margin-top: 50px;
}

.qr-label {
    font-size: 14px;
    color: var(--text-2);
    margin-bottom: 16px;
}

.qr-box {
    display: inline-block;
    padding: 16px;
    background: #FFFFFF;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    animation: pulseGlow 3s ease-in-out infinite;
    max-width: 100%;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
    50% { box-shadow: 0 20px 50px rgba(255,107,53,0.3); }
}

.qr-box img {
    width: 240px;
    height: 240px;
    max-width: 100%;
    object-fit: contain;
}

/* ═══════════════════════════════════════════════ */
/*  SECTION TITLES                                  */
/* ═══════════════════════════════════════════════ */
.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
}

.section-sub {
    text-align: center;
    color: var(--text-2);
    font-size: 15px;
    margin-bottom: 48px;
}

/* ═══════════════════════════════════════════════ */
/*  FEATURES                                        */
/* ═══════════════════════════════════════════════ */
.features {
    padding: 80px 0;
    background: var(--surface);
    width: 100%;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.feature-card {
    background: var(--card);
    border: 1px solid var(--divider);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(255,107,53,0.15);
}

.feature-icon {
    font-size: 42px;
    margin-bottom: 14px;
    display: block;
}

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

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

/* ═══════════════════════════════════════════════ */
/*  HOW IT WORKS                                    */
/* ═══════════════════════════════════════════════ */
.how-it-works {
    padding: 80px 0;
    width: 100%;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.step {
    background: var(--card);
    border: 1px solid var(--divider);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    position: relative;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #FFFFFF;
    border-radius: 50%;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 16px;
    box-shadow: 0 8px 20px rgba(255,107,53,0.35);
}

.step h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.step p {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.7;
}

/* ═══════════════════════════════════════════════ */
/*  FAQ                                             */
/* ═══════════════════════════════════════════════ */
.faq {
    padding: 80px 0;
    background: var(--surface);
    width: 100%;
}

.faq-list {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    background: var(--card);
    border: 1px solid var(--divider);
    border-radius: 14px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item[open] {
    border-color: var(--primary);
}

.faq-item summary {
    padding: 20px 24px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.2s;
    gap: 12px;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 24px;
    color: var(--primary);
    font-weight: 400;
    transition: transform 0.3s;
    line-height: 1;
    flex-shrink: 0;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item summary:hover {
    color: var(--primary);
}

.faq-item p {
    padding: 0 24px 22px;
    color: var(--text-2);
    font-size: 14px;
    line-height: 1.8;
}

/* ═══════════════════════════════════════════════ */
/*  CTA                                             */
/* ═══════════════════════════════════════════════ */
.cta {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 100%);
    width: 100%;
}

.cta h2 {
    font-size: 34px;
    font-weight: 800;
    margin-bottom: 12px;
}

.cta > .container > p {
    color: var(--text-2);
    margin-bottom: 32px;
    font-size: 16px;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: transparent;
    border: 2px solid var(--success);
    color: var(--success);
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    max-width: 100%;
}

.btn-whatsapp:hover {
    background: var(--success);
    color: #FFFFFF;
    transform: translateY(-2px);
}

.btn-whatsapp svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════ */
/*  DEVELOPER SECTION                               */
/* ═══════════════════════════════════════════════ */
.developer {
    padding: 60px 0 80px;
    background: var(--surface);
    width: 100%;
}

.dev-card {
    background: linear-gradient(145deg, var(--card) 0%, #252525 100%);
    border: 1px solid var(--divider);
    border-radius: 24px;
    padding: 40px 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.dev-card::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,107,53,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.dev-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255,107,53,0.15);
    border: 1px solid rgba(255,107,53,0.3);
    color: var(--primary);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 18px;
}

.dev-title {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text);
}

.dev-subtitle {
    font-size: 15px;
    color: var(--text-2);
    line-height: 1.7;
    max-width: 500px;
    margin: 0 auto 28px;
}

/* الخدمات */
.dev-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 32px;
}

.dev-service {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--divider);
    border-radius: 12px;
    padding: 14px 10px;
    font-size: 13px;
    color: var(--text-2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
}

.dev-service:hover {
    background: rgba(255,107,53,0.1);
    border-color: var(--primary);
    color: var(--text);
    transform: translateY(-3px);
}

.dev-icon {
    font-size: 22px;
}

/* بطاقة التواصل */
.dev-contact {
    border-top: 1px solid var(--divider);
    padding-top: 24px;
}

.dev-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.dev-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 6px 18px rgba(255,107,53,0.35);
    flex-shrink: 0;
}

.dev-info-text {
    text-align: right;
    display: flex;
    flex-direction: column;
    line-height: 1.4;
}

.dev-info-text strong {
    font-size: 16px;
    color: var(--text);
    font-weight: 700;
}

.dev-info-text span {
    font-size: 13px;
    color: var(--text-2);
}

/* أزرار التواصل */
.dev-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.dev-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid transparent;
    min-width: 130px;
    justify-content: center;
}

.dev-btn-call {
    background: rgba(255,255,255,0.06);
    border-color: var(--divider);
    color: var(--text);
}

.dev-btn-call:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--text-2);
    transform: translateY(-2px);
}

.dev-btn-whatsapp {
    background: var(--success);
    color: #FFFFFF;
    border-color: var(--success);
}

.dev-btn-whatsapp:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(76,175,80,0.4);
}

/* ═══════════════════════════════════════════════ */
/*  FOOTER                                          */
/* ═══════════════════════════════════════════════ */
.footer {
    background: #080808;
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--divider);
    width: 100%;
}

.footer-logo {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 12px;
}

.footer p {
    color: var(--text-3);
    font-size: 13px;
    margin-bottom: 4px;
}

.footer-note {
    color: var(--text-2) !important;
    margin-top: 8px;
}

/* ═══════════════════════════════════════════════ */
/*  RESPONSIVE                                      */
/* ═══════════════════════════════════════════════ */
@media (max-width: 600px) {
    .hero {
        padding: 40px 0 60px;
    }

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

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

    .logo {
        width: 100px;
        height: 100px;
    }

    .btn-download {
        padding: 16px 28px;
        font-size: 16px;
        width: 100%;
        max-width: 320px;
    }

    .btn-download-large {
        padding: 18px 32px;
        font-size: 17px;
    }

    .section-title {
        font-size: 26px;
    }

    .qr-box img {
        width: 200px;
        height: 200px;
    }

    .qr-section {
        margin-top: 36px;
    }

    .features,
    .how-it-works,
    .faq,
    .cta {
        padding: 60px 0;
    }

    .cta h2 {
        font-size: 26px;
    }

    .dev-card {
        padding: 30px 20px;
        border-radius: 20px;
    }

    .dev-title {
        font-size: 24px;
    }

    .dev-subtitle {
        font-size: 14px;
    }

    .dev-services {
        grid-template-columns: repeat(2, 1fr);
    }

    .dev-btn {
        padding: 10px 18px;
        font-size: 13px;
        min-width: 110px;
    }

    .dev-avatar {
        width: 48px;
        height: 48px;
        font-size: 24px;
    }

    .container {
        padding: 0 16px;
    }
}

@media (max-width: 380px) {
    .hero-title {
        font-size: 32px;
    }

    .btn-download {
        font-size: 15px;
        padding: 14px 22px;
    }
}