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

body {
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
    background-color: #0b1120;
    color: #e2e8f0;
    line-height: 1.6;
}

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

/* Header */
header {
    background-color: #0f172a;
    border-bottom: 1px solid #1e293b;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    flex-wrap: wrap;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    color: #38bdf8;
    text-decoration: none;
}

nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

nav a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.2s;
}

nav a:hover,
nav a.active {
    color: #38bdf8;
    background: #1e293b;
}

.lang-btn {
    background: #1e293b;
    border: 1px solid #334155;
    color: #e2e8f0;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    margin-left: 8px;
}

/* Hero */
.hero {
    padding: 100px 0 80px;
    text-align: center;
    background: linear-gradient(180deg, #0f172a 0%, #0b1120 100%);
}

.hero h1 {
    font-size: 40px;
    margin-bottom: 18px;
    color: #f8fafc;
    line-height: 1.3;
}

.hero p {
    font-size: 18px;
    color: #94a3b8;
    max-width: 580px;
    margin: 0 auto 32px;
}

.btn {
    display: inline-block;
    background: #0ea5e9;
    color: white;
    padding: 13px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}

.btn:hover {
    background: #0284c7;
}

/* Sections */
section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
    color: #f1f5f9;
}

/* Cards */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}

.card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 26px;
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-3px);
}

.card h3 {
    color: #38bdf8;
    margin-bottom: 10px;
    font-size: 18px;
}

.card p {
    color: #94a3b8;
    font-size: 15px;
}

/* Footer */
footer {
    background: #0f172a;
    border-top: 1px solid #1e293b;
    text-align: center;
    padding: 28px 0;
    color: #64748b;
    font-size: 14px;
}

/* Language */
.fa { display: none; }
body.fa-mode .en { display: none; }
body.fa-mode .fa { display: block; }
body.fa-mode .fa-inline { display: inline; }

/* RTL fixes */
body.fa-mode {
    direction: rtl;
}

body.fa-mode .header-inner {
    flex-direction: row-reverse;
}

body.fa-mode nav {
    flex-direction: row-reverse;
}

body.fa-mode .lang-btn {
    margin-left: 0;
    margin-right: 8px;
}

/* Mobile */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 12px;
    }

    nav {
        justify-content: center;
        width: 100%;
    }

    nav a {
        font-size: 13px;
        padding: 5px 8px;
    }

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

    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 16px;
    }

    body.fa-mode .header-inner {
        flex-direction: column;
    }
}
