/* ==========================================================================
   Reset and Base Styles
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1e293b;                /* slate-900 */
    background-color: #f8fafc;     /* slate-50 */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   Layout & Containers
   ========================================================================== */

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 100px 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 80px 0;
    }
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.header {
    background: #0f172a;           /* slate-900 */
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid #1e293b;
    backdrop-filter: blur(8px);
}

.navbar {
    padding: 1.25rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
}

.nav-logo img {
    width: 42px;
    height: 42px;
    border-radius: 10px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-menu a {
    color: #cbd5e1;                /* slate-300 */
    text-decoration: none;
    font-weight: 500;
    transition: all 0.25s ease;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: white;
    background: rgba(255,255,255,0.08);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s;
}

/* Mobile menu */
@media (max-width: 992px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #0f172a;
        flex-direction: column;
        padding: 1.5rem;
        border-top: 1px solid #1e293b;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu a {
        padding: 1rem;
        font-size: 1.1rem;
    }

    .hamburger {
        display: flex;
    }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #312e81 100%);
    color: white;
    padding: 180px 0 140px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(99,102,241,0.15) 0%, transparent 50%);
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.25rem;
    background: linear-gradient(90deg, #c7d2fe, #ddd6fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: normal;          /* مهم جدًا */
}

.line-break {
    display: block;               /* يجبر الانتقال لسطر جديد */
}

.hero-subtitle {
    font-size: 1.6rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: #c7d2fe;
}

.hero-description {
    font-size: 1.18rem;
    max-width: 540px;
    opacity: 0.92;
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.25rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(45deg, #6366f1, #7c3aed);
    color: white;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.45);
}

.btn-secondary {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.4);
    color: white;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.12);
    border-color: white;
    transform: translateY(-3px);
}

.hero-image {
    display: flex;
    justify-content: center;
}

.phone-mockup {
    width: 320px;
    height: 640px;
    background: linear-gradient(145deg, #ffffff, #f1f5f9);
    border-radius: 36px;
    padding: 14px;
    box-shadow: 0 30px 70px rgba(0,0,0,0.4),
                inset 0 0 0 1px rgba(0,0,0,0.08);
    position: relative;
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 6px;
    background: #0f172a;
    border-radius: 4px;
}

/* ==========================================================================
   Section Titles
   ========================================================================== */

.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    color: #0f172a;
}

.section-subtitle {
    font-size: 1.25rem;
    color: #64748b;
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3.5rem;
}

/* ==========================================================================
   Features & Overview
   ========================================================================== */

.features,
.overview,
.remote-config,
.audience {
    background: white;
}

.features-grid,
.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card,
.overview-item {
    padding: 2.25rem;
    border-radius: 16px;
    background: white;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.feature-card:hover,
.overview-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: #c7d2fe;
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(45deg, #6366f1, #7c3aed);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.8rem;
}

/* ==========================================================================
   Remote Config List
   ========================================================================== */

.config-list div {
    font-size: 1.15rem;
    margin: 1.25rem 0;
    padding-left: 2rem;
    position: relative;
    color: #334155;
}

.config-list div::before {
    content: "→";
    color: #6366f1;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* ==========================================================================
   Download Section
   ========================================================================== */

.download {
    background: linear-gradient(135deg, #1e3a8a 0%, #312e81 100%);
    color: white;
    text-align: center;
    padding: 120px 0 100px;
}

.download-description {
    font-size: 1.3rem;
    max-width: 680px;
    margin: 0 auto 3rem;
    opacity: 0.95;
}

.download-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin: 0 auto;
}

.download-btn {
    min-width: 280px;
    padding: 1.3rem 2.6rem;
    border-radius: 14px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: all 0.32s ease;
    text-decoration: none;
    color: white;
}

.download-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 45px rgba(0,0,0,0.4);
}

.codecanyon-btn {
    background: linear-gradient(45deg, #ef4444, #f97316);
}

.secondary-btn {
    background: linear-gradient(45deg, #3b82f6, #60a5fa);
}

.btn-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-text {
    text-align: left;
}

.main-text {
    font-size: 1.18rem;
    display: block;
    font-weight: 700;
}

.sub-text {
    font-size: 0.92rem;
    opacity: 0.88;
    display: block;
    margin-top: 3px;
}

.center {
    text-align: center;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 5rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    color: white;
    font-size: 1.15rem;
    margin-bottom: 1.25rem;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: #c7d2fe;
}

.social-links a {
    width: 44px;
    height: 44px;
    background: #1e293b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    transition: all 0.25s;
}

.social-links a:hover {
    background: #6366f1;
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2.5rem;
    border-top: 1px solid #1e293b;
    font-size: 0.95rem;
    color: #64748b;
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 3.2rem;
    }

    .hero-image {
        margin-top: 3rem;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 2.6rem;
    }

    .section-title {
        font-size: 2.25rem;
    }

    .phone-mockup {
        width: 280px;
        height: 560px;
    }

    .btn {
        padding: 0.9rem 1.8rem;
    }
}



