:root {
    --primary-color: #00A884;
    --primary-hover: #008069;
    --text-color: #0F172A;
    --text-muted: #475569;
    --bg-color: #F0FDF4;
    --bg-banner: #008069;
    --white: #ffffff;
    --radius: 24px;
    --shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', 'Cairo', Arial, sans-serif;
    background-color: var(--white);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

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

.navbar {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.app-icon {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-color);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

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

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-lang {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 10px 14px;
    background-color: #f8fbfa;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    color: var(--text-muted);
    font-size: 0.92rem;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    white-space: nowrap;
    transition: var(--transition);
}

.btn-lang:hover {
    color: var(--primary-color);
    border-color: rgba(0, 168, 132, 0.22);
    background-color: #ffffff;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 99px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    border: 2px solid transparent;
}

.nav-actions .btn-primary {
    white-space: nowrap;
}

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

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 168, 132, 0.08);
    color: var(--primary-hover);
    border-radius: 99px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    border: 2px solid rgba(0, 168, 132, 0.18);
}

.btn-secondary:hover {
    background-color: rgba(0, 168, 132, 0.14);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 10px 24px;
    font-size: 0.95rem;
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1.1rem;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: calc(100vh - 80px);
    padding: 80px 24px;
    gap: 60px;
}

.hero-text {
    flex: 1;
    max-width: 540px;
}

.hero-text h2 {
    font-size: 4rem;
    font-weight: 900;
    color: var(--text-color);
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-image::before {
    content: '';
    position: absolute;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(0,168,132,0.15) 0%, rgba(255,255,255,0) 70%);
    z-index: -1;
}

.hero-image .app-preview {
    max-width: 400px;
    width: 100%;
    filter: drop-shadow(0 30px 40px rgba(0,0,0,0.15));
}

.floating {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.banner {
    background-color: var(--bg-banner);
    color: var(--white);
    padding: 100px 24px;
    text-align: center;
}

.banner h2 {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.banner p {
    font-size: 1.25rem;
    color: #94A3B8;
}

.features {
    padding: 120px 0;
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    gap: 120px;
}

.feature-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
    max-width: 500px;
}

.feature-text h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-color);
    letter-spacing: -0.5px;
}

.feature-text p {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.feature-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.shield-mockup {
    width: 200px;
    height: 200px;
    background: var(--white);
    border-radius: 40px;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 80px;
    transform: rotate(-5deg);
    transition: var(--transition);
}

.feature-row:hover .shield-mockup {
    transform: rotate(0deg) scale(1.05);
}

footer {
    background-color: #f8fbfa;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    padding: 80px 24px 40px;
    border-top: 1px solid rgba(15,23,42,0.06);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    margin-bottom: 36px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(15,23,42,0.08);
}

.footer-brand-block {
    display: grid;
    gap: 18px;
    align-content: start;
    max-width: 420px;
}

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

.footer-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.footer-copy {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    text-align: left;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.footer-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.matrix-credit {
    color: var(--primary-hover);
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.matrix-credit:hover {
    color: var(--primary-color);
}

[dir="rtl"] body {
    font-family: 'Cairo', 'Inter', Arial, sans-serif;
}

[dir="rtl"] .hero-text h2,
[dir="rtl"] .banner h2,
[dir="rtl"] .feature-text h3,
[dir="rtl"] .logo h1 {
    letter-spacing: 0;
}

[dir="rtl"] .footer-brand-block,
[dir="rtl"] .footer-legal,
[dir="rtl"] .footer-bottom {
    text-align: right;
}

@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 40px 24px;
        gap: 40px;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-text h2 {
        font-size: 3rem;
    }
    
    .nav-links {
        display: none;
    }

    .feature-row, .feature-row.reverse {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .nav-actions {
        gap: 10px;
    }

    .banner h2 {
        font-size: 2.2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        text-align: center;
    }

    .footer-brand-block {
        max-width: none;
        justify-items: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal {
        justify-content: center;
    }

    .footer-meta {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .content-container {
        padding: 0 18px;
    }

    .navbar {
        position: static;
    }

    .nav-inner {
        height: auto;
        padding: 14px 0 16px;
        justify-content: center;
        gap: 18px;
        flex-wrap: wrap;
    }

    .logo {
        gap: 10px;
    }

    .app-icon {
        width: 38px;
        height: 38px;
    }

    .logo h1 {
        font-size: 1.2rem;
    }

    .nav-actions {
        width: auto;
        justify-content: center;
    }

    .nav-actions .btn-primary {
        flex: 0 0 auto;
        min-width: max-content;
        padding-inline: 18px;
    }

    .btn-sm {
        padding: 10px 18px;
    }

    .hero {
        min-height: auto;
        padding: 28px 0 48px;
        gap: 28px;
    }

    .hero-text {
        display: grid;
        justify-items: center;
    }

    .hero-text h2 {
        font-size: 2.35rem;
        max-width: 10ch;
        margin-bottom: 18px;
        margin-inline: auto;
        text-wrap: balance;
    }

    .hero-text p {
        font-size: 1rem;
        max-width: 32ch;
        margin-bottom: 24px;
        margin-inline: auto;
    }

    .hero-image .app-preview {
        max-width: 260px;
    }

    .btn-lg {
        width: auto;
        min-width: 240px;
        max-width: 100%;
        padding: 15px 24px;
        font-size: 1rem;
    }

    .banner {
        padding: 68px 20px;
    }

    .banner h2 {
        font-size: 1.8rem;
    }

    .banner p {
        font-size: 1rem;
    }

    .features {
        padding: 72px 0;
        gap: 72px;
    }

    .feature-text h3 {
        font-size: 1.85rem;
    }

    .feature-text p {
        font-size: 1rem;
    }

    .shield-mockup {
        width: 150px;
        height: 150px;
        border-radius: 28px;
        font-size: 58px;
    }

    footer {
        padding: 56px 20px 28px;
    }

    .footer-grid {
        margin-bottom: 32px;
        padding-bottom: 28px;
    }
}

@media (max-width: 420px) {
    .hero-text h2 {
        font-size: 2rem;
        max-width: 9ch;
    }

    .feature-text h3 {
        font-size: 1.65rem;
    }

    .footer-bottom {
        font-size: 0.92rem;
    }

    .footer-legal {
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }

    .footer-meta {
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }
}
