@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800&family=Inter:wght@400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #7C3AED;
    --primary-dark: #6D28D9;
    --primary-light: #A78BFA;
    --secondary: #EC4899;
    --accent: #06B6D4;
    --bg-light: #FFFFFF;
    --bg-light-secondary: #F8F7FF;
    --bg-light-tertiary: #F3F0FF;
    --text-light: #1F2937;
    --text-light-secondary: #6B7280;
    --border-light: #E5E7EB;
    --bg-dark: #0F172A;
    --bg-dark-secondary: #1E293B;
    --bg-dark-tertiary: #334155;
    --text-dark: #F1F5F9;
    --text-dark-secondary: #CBD5E1;
    --border-dark: #475569;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-light);
    color: var(--text-light);
    overflow-x: hidden;
    transition: background 0.4s ease, color 0.4s ease;
}

body.dark-mode {
    background: var(--bg-dark);
    color: var(--text-dark);
}

body.rtl {
    direction: rtl;
    text-align: right;
    font-family: 'Cairo', Arial, sans-serif;
}

a { text-decoration: none; color: inherit; }

/* ===== HEADER ===== */
header {
    width: 100%;
    padding: 16px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    transition: all 0.3s ease;
}

body.dark-mode header {
    background: rgba(15, 23, 42, 0.8);
    border-bottom-color: rgba(71, 85, 105, 0.3);
}

header:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.08);
}

body.dark-mode header:hover {
    background: rgba(30, 41, 59, 0.95);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.header-left:hover { transform: scale(1.03); }

header img {
    width: 42px;
    height: 42px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

header h1 {
    font-size: 24px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

nav a {
    font-size: 15px;
    color: var(--text-light-secondary);
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
}

body.dark-mode nav a {
    color: var(--text-dark-secondary);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

nav a.active {
    color: var(--primary);
}

.controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.lang-toggle,
.theme-toggle {
    padding: 8px 16px;
    border-radius: 50px;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

body.dark-mode .lang-toggle,
body.dark-mode .theme-toggle {
    border-color: var(--primary-light);
    color: var(--primary-light);
}

.lang-toggle:hover,
.theme-toggle:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.3);
}

/* ===== MAIN ===== */
main { padding-top: 80px; }

/* ===== HERO ===== */
.hero {
    min-height: 92vh;
    background: linear-gradient(135deg, #7C3AED 0%, #A855F7 25%, #EC4899 75%, #06B6D4 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero > * { position: relative; z-index: 1; }

.hero-logo {
    width: 160px;
    height: 160px;
    margin-bottom: 30px;
    animation: bounce 2s ease-in-out infinite;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.2));
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.hero-title {
    font-size: 52px;
    margin-bottom: 16px;
    font-weight: 900;
    line-height: 1.1;
    animation: slideDown 0.8s ease;
    letter-spacing: -1px;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-subtitle {
    max-width: 700px;
    font-size: 18px;
    opacity: 0.95;
    margin: 0 auto 40px;
    line-height: 1.6;
    animation: slideUp 0.8s ease 0.2s backwards;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.download-buttons {
    margin-bottom: 30px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    animation: slideUp 0.8s ease 0.4s backwards;
}

.download-buttons a {
    padding: 14px 32px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    color: white;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    display: inline-block;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.download-buttons a:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: white;
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.hero-note {
    font-size: 14px;
    opacity: 0.85;
    animation: slideUp 0.8s ease 0.6s backwards;
}

/* ===== SECTIONS ===== */
.section {
    padding: 80px 20px;
    transition: all 0.3s ease;
}

.section.light {
    background: linear-gradient(135deg, var(--bg-light-secondary) 0%, var(--bg-light-tertiary) 100%);
}

body.dark-mode .section.light {
    background: linear-gradient(135deg, var(--bg-dark-secondary) 0%, var(--bg-dark-tertiary) 100%);
}

.section.mid {
    background: linear-gradient(135deg, var(--bg-light-tertiary) 0%, var(--bg-light-secondary) 100%);
}

body.dark-mode .section.mid {
    background: linear-gradient(135deg, var(--bg-dark-tertiary) 0%, var(--bg-dark-secondary) 100%);
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 16px;
    font-weight: 900;
    color: var(--text-light);
}

body.dark-mode .section-title {
    color: var(--text-dark);
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    margin: 16px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 16px;
    margin-bottom: 50px;
    color: var(--text-light-secondary);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

body.dark-mode .section-subtitle {
    color: var(--text-dark-secondary);
}

/* ===== FEATURES GRID ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(124, 58, 237, 0.1);
    position: relative;
    overflow: hidden;
}

body.dark-mode .card {
    background: var(--bg-dark-secondary);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.15);
    border-color: rgba(124, 58, 237, 0.2);
}

.card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.1) 0%, transparent 70%);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(124, 58, 237, 0.15);
    border-color: var(--primary);
}

body.dark-mode .card:hover {
    box-shadow: 0 20px 50px rgba(124, 58, 237, 0.25);
}

.card:hover::before {
    top: -20%;
    right: -20%;
}

.card-title {
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-text {
    font-size: 15px;
    color: var(--text-light-secondary);
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

body.dark-mode .card-text {
    color: var(--text-dark-secondary);
}

/* ===== SCREENSHOTS ===== */
.screenshots {
    text-align: center;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    justify-items: center;
}

.screenshots img {
    width: 240px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(124, 58, 237, 0.2);
    transition: all 0.3s ease;
    border: 2px solid rgba(124, 58, 237, 0.1);
}

.screenshots img:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 25px 60px rgba(124, 58, 237, 0.3);
}

/* ===== CONTACT BOX ===== */
.contact-box {
    max-width: 550px;
    margin: 0 auto;
    background: var(--bg-light);
    padding: 40px 32px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.1);
    transition: all 0.3s ease;
}

body.dark-mode .contact-box {
    background: var(--bg-dark-secondary);
    box-shadow: 0 15px 40px rgba(124, 58, 237, 0.15);
}

.contact-box:hover {
    box-shadow: 0 25px 60px rgba(124, 58, 237, 0.15);
    transform: translateY(-4px);
}

.contact-box p {
    font-size: 16px;
    margin-bottom: 12px;
    color: var(--text-light-secondary);
    line-height: 1.6;
}

body.dark-mode .contact-box p {
    color: var(--text-dark-secondary);
}

.contact-email {
    font-size: 18px;
    color: var(--primary);
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-block;
}

.contact-email:hover {
    color: var(--secondary);
    transform: translateX(4px);
}

body.rtl .contact-email:hover {
    transform: translateX(-4px);
}

/* ===== FORM ===== */
form {
    max-width: 550px;
    margin: 0 auto;
    background: var(--bg-light);
    padding: 40px 32px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.1);
}

body.dark-mode form {
    background: var(--bg-dark-secondary);
    box-shadow: 0 15px 40px rgba(124, 58, 237, 0.15);
}

form input,
form textarea {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 16px;
    border-radius: 12px;
    border: 2px solid var(--border-light);
    font-size: 15px;
    background: var(--bg-light);
    color: var(--text-light);
    transition: all 0.3s ease;
    font-family: inherit;
}

body.dark-mode form input,
body.dark-mode form textarea {
    background: var(--bg-dark-tertiary);
    color: var(--text-dark);
    border-color: var(--border-dark);
}

form input:focus,
form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

form button {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

form button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
}

form button:hover::before {
    left: 100%;
}

form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(124, 58, 237, 0.3);
}

/* ===== PRICING GRID ===== */
.pricing-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.price-card {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 36px;
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.08);
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

body.dark-mode .price-card {
    background: var(--bg-dark-secondary);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.15);
}

.price-card:hover {
    border-color: var(--primary);
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(124, 58, 237, 0.2);
}

body.dark-mode .price-card:hover {
    box-shadow: 0 20px 50px rgba(124, 58, 237, 0.3);
}

.price-title {
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 700;
    color: var(--primary);
}

.price-tag {
    font-size: 28px;
    margin-bottom: 12px;
    font-weight: 900;
    color: var(--text-light);
}

body.dark-mode .price-tag {
    color: var(--text-dark);
}

.price-note {
    font-size: 14px;
    color: var(--text-light-secondary);
    margin-bottom: 20px;
}

body.dark-mode .price-note {
    color: var(--text-dark-secondary);
}

.price-list {
    list-style: none;
    font-size: 15px;
    text-align: left;
    margin-top: 20px;
    color: var(--text-light-secondary);
}

body.dark-mode .price-list {
    color: var(--text-dark-secondary);
}

.price-list li {
    margin-bottom: 10px;
    padding-left: 24px;
    position: relative;
}

.price-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* ===== FAQ ===== */
.faq-item {
    max-width: 850px;
    margin: 0 auto 28px;
    background: var(--bg-light);
    padding: 24px;
    border-radius: 12px;
    border-left: 4px solid var(--primary);
    transition: all 0.3s ease;
}

body.dark-mode .faq-item {
    background: var(--bg-dark-secondary);
}

.faq-item:hover {
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.1);
    transform: translateX(4px);
}

body.rtl .faq-item:hover {
    transform: translateX(-4px);
}

body.rtl .faq-item {
    border-left: none;
    border-right: 4px solid var(--primary);
}

.faq-q {
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary);
    font-size: 16px;
}

.faq-a {
    font-size: 15px;
    color: var(--text-light-secondary);
    line-height: 1.6;
}

body.dark-mode .faq-a {
    color: var(--text-dark-secondary);
}

/* ===== POLICY ===== */
.policy-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-light);
    padding: 40px 32px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.08);
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-light-secondary);
}

body.dark-mode .policy-container {
    background: var(--bg-dark-secondary);
    color: var(--text-dark-secondary);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.15);
}

.policy-container h2 {
    font-size: 28px;
    margin-bottom: 16px;
    color: var(--primary);
    font-weight: 800;
}

.policy-container h3 {
    font-size: 18px;
    margin-top: 28px;
    margin-bottom: 12px;
    color: var(--primary);
    font-weight: 700;
}

.policy-meta {
    font-size: 13px;
    color: var(--text-light-secondary);
    margin-bottom: 16px;
    font-style: italic;
}

body.dark-mode .policy-meta {
    color: var(--text-dark-secondary);
}

.back-link {
    display: inline-block;
    margin-top: 28px;
    font-size: 15px;
    color: var(--primary);
    font-weight: 700;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: var(--secondary);
    transform: translateX(-4px);
}

body.rtl .back-link:hover {
    transform: translateX(4px);
}

/* ===== FOOTER ===== */
footer {
    margin-top: 80px;
    padding: 24px;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-light-tertiary), var(--bg-light-secondary));
    font-size: 14px;
    color: var(--text-light-secondary);
    border-top: 1px solid var(--border-light);
}

body.dark-mode footer {
    background: linear-gradient(135deg, var(--bg-dark-tertiary), var(--bg-dark-secondary));
    border-top-color: var(--border-dark);
    color: var(--text-dark-secondary);
}

/* ===== LANGUAGE & THEME ===== */
.t-ar { display: none; }
body[data-lang="ar"] .t-en { display: none !important; }
body[data-lang="ar"] .t-ar { display: block !important; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    header { padding: 14px 32px; }
    nav { gap: 16px; }
    .hero-title { font-size: 44px; }
    .section { padding: 60px 20px; }
}

@media (max-width: 768px) {
    header { padding: 12px 20px; }
    .header-left h1 { font-size: 18px; }
    header img { width: 36px; }
    nav { gap: 12px; }
    nav a { font-size: 13px; }
    .controls { gap: 6px; }
    .lang-toggle, .theme-toggle { padding: 6px 12px; font-size: 12px; }
    main { padding-top: 100px; }
    .hero { min-height: 85vh; padding: 30px 20px; }
    .hero-logo { width: 120px; height: 120px; }
    .hero-title { font-size: 36px; margin-bottom: 12px; }
    .hero-subtitle { font-size: 16px; margin-bottom: 24px; }
    .download-buttons { flex-direction: column; }
    .download-buttons a { width: 100%; padding: 12px; }
    .section { padding: 50px 16px; }
    .section-title { font-size: 28px; }
    .features-grid { grid-template-columns: 1fr; }
    .card { padding: 24px; }
    .pricing-grid { grid-template-columns: 1fr; }
    .screenshots { gap: 16px; }
    .screenshots img { width: 180px; }
    form, .contact-box, .policy-container { padding: 24px 20px; }
    footer { padding: 20px 16px; font-size: 12px; }
}

@media (max-width: 480px) {
    header { padding: 10px 12px; }
    .header-left { gap: 8px; }
    header img { width: 32px; }
    header h1 { font-size: 16px; }
    nav { gap: 8px; }
    nav a { font-size: 11px; }
    .lang-toggle, .theme-toggle { padding: 5px 10px; font-size: 11px; }
    main { padding-top: 90px; }
    .hero { min-height: 80vh; }
    .hero-logo { width: 100px; height: 100px; }
    .hero-title { font-size: 28px; }
    .hero-subtitle { font-size: 14px; }
    .download-buttons a { padding: 10px; font-size: 14px; }
    .section { padding: 40px 16px; }
    .section-title { font-size: 24px; }
    .card { padding: 16px; }
    .screenshots { gap: 12px; }
    .screenshots img { width: 150px; }
    form, .contact-box, .policy-container { padding: 16px 12px; }
    .price-card { padding: 24px 16px; }
    .faq-item { padding: 16px; margin-bottom: 16px; }
}