/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #000;
    background-color: #fff;
    overflow-x: hidden;
}

/* RTL language support */
html[dir="rtl"] body {
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
html[dir="rtl"] .hero-text,
html[dir="rtl"] .section-header,
html[dir="rtl"] .feature-card,
html[dir="rtl"] .step-content,
html[dir="rtl"] .footer,
html[dir="rtl"] .modal-content {
    text-align: right;
}
html[dir="rtl"] .nav-links { direction: rtl; }
html[dir="rtl"] .nav-cta { margin-left: 0; margin-right: 0; }

/* Language toggle */
.lang-toggle {
    border: 1px solid rgba(0,0,0,0.15);
    background: #fff;
    border-radius: 8px;
    padding: 0.4rem 0.7rem;
    font-weight: 600;
    cursor: pointer;
}
.lang-toggle:hover { background: #f5f5f5; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #000;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #666;
}

.nav-cta {
    background: #000 !important;
    color: #fff !important;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.nav-cta:hover {
    background: #333 !important;
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #fafafa 0%, #fff 100%);
    overflow-x: visible;
}

.hero-content {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) 250px;
    align-items: center;
    gap: 3rem;
}

.hero-text { text-align: left; }

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #000;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn-primary {
    background: #000;
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-primary.large {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
}

.btn-secondary {
    background: rgba(0, 0, 0, 0.05);
    color: #000;
    border: 2px solid rgba(0, 0, 0, 0.1);
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.btn-secondary.large {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
}

/* Small personal badge near hero */
.founder-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    color: #666;
    font-size: 0.9rem;
}
.x-handle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #111;
    text-decoration: none;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 9999px;
    padding: 0.25rem 0.6rem;
    line-height: 1;
    background: #fff;
}
.x-handle:hover { background: #000; color: #fff; border-color: #000; }
.x-icon { width: 14px; height: 14px; display: inline-block; }

.hero-stats {
    display: flex;
    gap: 3rem;
}

.stat {
    text-align: left;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #000;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
}

.hero-image {
    display: flex;
    justify-content: center;
    overflow: visible;
}

/* Right-side hero screenshot */
.hero-screenshot {
    width: 100%;
    max-width: 250px; /* match screenshots below */
    height: auto;
    border-radius: 15px; /* match gallery radius */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); /* match gallery shadow */
}

/* Hero phone image - separate from other phone containers */
.hero-phone {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-phone-image {
    width: 180px !important;
    height: auto !important;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    max-width: 180px !important;
}

/* Step images - keep original styling */
.phone-container {
    position: relative;
    width: 200px;
    height: auto;
    margin: 0 auto;
}

.phone-screenshot-static {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    max-width: 200px;
}

/* Features Section */
.features {
    padding: 100px 0;
    background: #fff;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #000;
}

.section-header p {
    font-size: 1.2rem;
    color: #666;
}

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

.feature-card {
    background: #fafafa;
    padding: 2rem;
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: #000;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: #fff;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #000;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* How It Works Section */
.how-it-works {
    padding: 100px 0;
    background: #fafafa;
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.step {
    display: grid;
    grid-template-columns: 80px 1fr 300px;
    gap: 2rem;
    align-items: center;
}

.step:nth-child(even) {
    grid-template-columns: 300px 1fr 80px;
}

.step:nth-child(even) .step-number {
    order: 3;
}

.step:nth-child(even) .step-content {
    order: 2;
    text-align: right;
}

.step:nth-child(even) .step-image {
    order: 1;
}

.step-number {
    width: 80px;
    height: 80px;
    background: #000;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
}

.step-content h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #000;
}

.step-content p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
}

.step-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Screenshots Section */
.screenshots {
    padding: 100px 0;
    background: #fff;
}

/* Founder Section */
.founder {
    padding: 80px 0;
    background: #fafafa;
}
.founder-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}
.founder-avatar { width: 56px; height: 56px; border-radius: 50%; }
.founder-text h2 { font-size: 1.6rem; font-weight: 700; margin-bottom: 0.5rem; color: #000; }
.founder-text p { color: #666; margin-bottom: 0.25rem; }

.screenshots-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

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

.screenshot-item img {
    width: 100%;
    max-width: 250px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.screenshot-item img:hover {
    transform: scale(1.05);
}

.screenshot-caption h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #000;
}

.screenshot-caption p {
    color: #666;
    font-size: 0.9rem;
}

/* CTA Section */
.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, #000 0%, #333 100%);
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.cta .btn-primary {
    background: #fff;
    color: #000;
}

.cta .btn-primary:hover {
    background: #f0f0f0;
}

.cta .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.cta .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Footer */
.footer {
    background: #000;
    color: #fff;
    padding: 3rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.footer-brand-text {
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 2rem;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    position: relative;
    text-align: center;
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #666;
}

.close:hover {
    color: #000;
}

.modal h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #000;
}

.modal p {
    color: #666;
    margin-bottom: 2rem;
}

#waitlistForm {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#waitlistForm input {
    padding: 1rem;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

#waitlistForm input:focus {
    border-color: #000;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-text { text-align: center; }
    .hero-image { justify-content: center; }
    .hero-screenshot { max-width: 250px; }

    .founder-card { flex-direction: column; text-align: center; }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        justify-content: center;
        gap: 2rem;
    }

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

    .step {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .step:nth-child(even) {
        grid-template-columns: 1fr;
    }

    .step:nth-child(even) .step-content {
        text-align: center;
        order: 2;
    }

    .step:nth-child(even) .step-image {
        order: 3;
    }

    .step:nth-child(even) .step-number {
        order: 1;
    }

    .screenshots-gallery {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-screenshot { max-width: 250px; }

    .hero-title {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .phone-container {
        width: 250px;
        height: 500px;
    }
}

/* Animation for hero screenshots */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-image {
    animation: fadeInUp 1s ease-out;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Legal pages */
.legal-hero {
    padding: 120px 0 40px;
    background: linear-gradient(135deg, #fafafa 0%, #fff 100%);
}
.legal .legal-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 16px;
    padding: 32px;
    max-width: 860px;
    margin: -20px auto 80px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}
.legal .legal-card h2 { margin-top: 28px; margin-bottom: 10px; color: #000; }
.legal .legal-card h3 { margin-top: 18px; margin-bottom: 8px; color: #000; }
.legal .legal-card p { color: #444; margin-bottom: 10px; }
.legal .legal-card ul { padding-left: 20px; margin: 8px 0 12px; }
.legal .legal-card li { margin: 6px 0; color: #444; }
.legal-updated { color: #666; }

@media (max-width: 768px) {
  .legal .legal-card { padding: 22px; margin: 0 auto 60px; }
}
