
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --background: #080b14;
    --surface: #111725;
    --surface-light: #171f30;
    --text: #f4f6ff;
    --muted: #a0a9bb;
    --accent: #9270ff;
    --accent-light: #b29cff;
    --border: rgba(255,255,255,0.09);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--background);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

.header {
    min-height: 82px;
    padding: 0 8%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    background: rgba(8,11,20,0.92);
}

.logo {
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -1px;
}

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

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

.nav a {
    color: var(--muted);
    font-size: 14px;
    transition: 0.3s;
}

.nav a:hover {
    color: white;
}

.nav-button,
.primary-button {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 12px 21px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: 0.3s;
}

.nav-button:hover,
.primary-button:hover {
    background: #7954ed;
    transform: translateY(-2px);
}

.hero {
    min-height: 650px;
    padding: 100px 10%;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 70px;
    background:
        radial-gradient(ellipse at 80% 45%, rgba(119,82,255,0.13), transparent 45%);
}

.tag {
    display: inline-block;
    color: var(--accent-light);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 23px;
}

.hero h1 {
    font-size: clamp(42px, 5vw, 68px);
    line-height: 1.12;
    letter-spacing: -3px;
    font-weight: 800;
    margin-bottom: 25px;
}

.hero h1 span {
    color: var(--accent-light);
}

.hero-content > p {
    color: var(--muted);
    max-width: 540px;
    font-size: 16px;
    line-height: 1.9;
    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.secondary-button {
    padding: 12px 21px;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    transition: 0.3s;
}

.secondary-button:hover {
    background: var(--surface-light);
}

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

.visual-card {
    width: 100%;
    max-width: 350px;
    min-height: 320px;
    padding: 38px;
    border: 1px solid rgba(178,156,255,0.25);
    border-radius: 20px;
    background: linear-gradient(145deg, #171c32, #101522);
    box-shadow: 0 25px 90px rgba(111,77,255,0.15);
}

.visual-icon {
    width: 55px;
    height: 55px;
    display: grid;
    place-items: center;
    background: rgba(146,112,255,0.17);
    color: var(--accent-light);
    border-radius: 14px;
    font-size: 30px;
    margin-bottom: 45px;
}

.visual-card h3 {
    font-size: 23px;
    margin-bottom: 8px;
}

.visual-card p {
    color: var(--muted);
    font-size: 14px;
}

.visual-line {
    height: 1px;
    background: var(--border);
    margin: 45px 0 20px;
}

.visual-bottom {
    display: flex;
    justify-content: space-between;
    color: var(--accent-light);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}

.features {
    padding: 100px 10%;
    background: #0b0f1a;
}

.section-heading {
    text-align: center;
    margin-bottom: 55px;
}

.section-heading h2,
.cta h2 {
    font-size: clamp(27px, 3vw, 40px);
    letter-spacing: -1.5px;
    margin-bottom: 13px;
}

.section-heading p {
    color: var(--muted);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 32px;
    border-radius: 14px;
    transition: 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(178,156,255,0.4);
}

.feature-icon {
    font-size: 28px;
    color: var(--accent-light);
    margin-bottom: 22px;
}

.feature-card h3 {
    font-size: 19px;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}

.cta {
    text-align: center;
    padding: 90px 20px;
    background: radial-gradient(ellipse at center, rgba(119,82,255,0.12), transparent 65%);
}

.cta h2 {
    margin-bottom: 28px;
}

.footer {
    min-height: 100px;
    padding: 30px 8%;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer p {
    color: var(--muted);
    font-size: 12px;
}

@media (max-width: 850px) {
    .header {
        padding: 20px 5%;
        flex-wrap: wrap;
        gap: 20px;
    }

    .nav {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 20px;
        flex-wrap: wrap;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 75px 7%;
        gap: 50px;
    }

    .hero-visual {
        width: 100%;
    }

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

    .features {
        padding: 75px 7%;
    }
}

@media (max-width: 480px) {
    .nav-button {
        display: none;
    }

    .hero h1 {
        letter-spacing: -2px;
    }

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

/* Arabic language support */

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

[dir="rtl"] .hero h1 {
    letter-spacing: 0;
    line-height: 1.5;
}

[dir="rtl"] .hero-content > p {
    line-height: 2;
}

[dir="rtl"] .nav {
    direction: rtl;
}

[dir="rtl"] .feature-card {
    text-align: right;
}

[dir="rtl"] .section-heading {
    text-align: center;
}

/* Footer navigation links */

.footer {
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--muted);
    font-size: 13px;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--accent-light);
}

[dir="rtl"] .footer-links {
    direction: rtl;
}

@media (max-width: 600px) {
    .footer-links {
        gap: 14px;
    }
}
