:root {
    --primary-color: #008080;
    --primary-dark: #006666;
    --primary-light: #4db3b3;
    --text-color: #1a1a1a;
    --text-muted: #666666;
    --bg-color: #ffffff;
    --hero-bg: linear-gradient(135deg, #f0fafa 0%, #ffffff 100%);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --container-max-width: 1200px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Noto Sans Arabic', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 968px) {
    .grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
}

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

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.nav-logo {
    height: 32px !important;
    max-width: 100px !important;
    width: auto !important;
    object-fit: contain !important;
    border-radius: 6px;
    display: inline-block !important;
}

.logo-text {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.logo-text span {
    color: var(--text-color);
}

nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: var(--transition);
    font-size: 0.9rem;
}

nav a:not(.btn-primary) {
    display: none;
    /* Hide 'Features' link on mobile to save space */
}

@media (min-width: 640px) {
    nav a:not(.btn-primary) {
        display: inline-block;
    }

    .logo-text {
        font-size: 1.25rem;
    }

    .nav-logo {
        height: 40px !important;
    }
}

nav a:hover {
    color: var(--primary-color);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white !important;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
    /* Prevent button text overflow */
    display: inline-block;
}

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

/* Hero Section */
.hero {
    padding: 8rem 0 4rem;
    background: var(--hero-bg);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: 0;
    width: 100%;
    height: 200px;
    background: white;
    transform: skewY(-3deg);
    z-index: 1;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

@media (max-width: 640px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

.highlight {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 8px;
    width: 100%;
    height: 12px;
    background: var(--primary-color);
    opacity: 0.15;
    z-index: -1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

@media (max-width: 968px) {
    .hero-subtitle {
        margin: 0 auto 2.5rem;
    }
}

.download-btns {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    /* Allow stacking if space is tight */
}

@media (max-width: 968px) {
    .download-btns {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .download-btns {
        flex-direction: column;
        align-items: center;
    }
}

.store-btn img {
    height: 60px;
    width: auto;
    transition: var(--transition);
}

@media (min-width: 640px) {
    .store-btn img {
        height: 75px;
    }
}

.store-btn:hover img {
    transform: scale(1.05);
}

.hero-image {
    position: relative;
    z-index: 2;
    animation: float 6s ease-in-out infinite;
}

.mockup-img {
    width: 100%;
    max-width: 450px;
    filter: drop-shadow(0 30px 50px rgba(0, 128, 128, 0.2));
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Features */
.features {
    padding: 10rem 0;
    position: relative;
    z-index: 2;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 4rem;
}

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

.feature-card {
    padding: 3rem 2rem;
    background: white;
    border-radius: 24px;
    border: 1px solid rgba(0, 128, 128, 0.1);
    transition: var(--transition);
    text-align: left;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: var(--hero-bg);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-muted);
}

/* Footer */
.footer {
    padding: 4rem 0;
    background: #0a0a0a;
    color: white;
    text-align: center;
}

.footer p {
    opacity: 0.6;
    margin-bottom: 1.5rem;
}

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

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary-light);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}