* {
    box-sizing: border-box;
}
@font-face {
    font-family: 'CoconArabic';
    src: url('fonts/coconnextarabic-light.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
.ar-text {
    font-family: 'CoconArabic', sans-serif;
}
body {
    margin: 0;
    font-family: Arial, Tahoma, sans-serif;
    background: #f7f9fc;
    color: #172033;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: min(1160px, calc(100% - 32px));
    margin: auto;
}

.topbar {
    background: #ffffff;
    border-bottom: 1px solid #e5e9f0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.nav {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 20px;
}
.brand-logo {
    height: 30px;
    width: auto;
}

.brand-text {
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
}

.logo {
    width: 38px;
    height: 38px;
    background: #2563eb;
    color: #fff;
    display: grid;
    place-items: center;
    border-radius: 12px;
}

.nav nav {
    display: flex;
    gap: 24px;
    font-size: 14px;
    color: #526070;
}

.hero {
    padding: 88px 0;
    background: linear-gradient(135deg, #eef4ff, #ffffff);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 8px 14px;
    background: #e0ebff;
    color: #1d4ed8;
    border-radius: 999px;
    font-size: 13px;
    margin-bottom: 18px;
}

.hero h1 {
    font-size: 52px;
    line-height: 1.05;
    margin: 0 0 20px;
}

.hero p {
    font-size: 18px;
    color: #526070;
    line-height: 1.7;
    max-width: 620px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    margin-top: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 22px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
}

.btn.primary {
    background: #2563eb;
    color: #fff;
}

.btn.secondary {
    background: #ffffff;
    color: #2563eb;
    border: 1px solid #d9e2f3;
}

.code-card,
.endpoint-card {
    background: #111827;
    color: #d1d5db;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
    overflow: auto;
}

pre {
    margin: 0;
    white-space: pre-wrap;
    line-height: 1.7;
    font-size: 14px;
}

.stats {
    background: #ffffff;
    border-top: 1px solid #e5e9f0;
    border-bottom: 1px solid #e5e9f0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.stats-grid div {
    padding: 28px;
    text-align: center;
    border-inline-end: 1px solid #e5e9f0;
}

.stats-grid div:last-child {
    border-inline-end: none;
}

.stats strong {
    display: block;
    font-size: 28px;
    color: #2563eb;
}

.stats span {
    color: #526070;
    font-size: 14px;
}

.section {
    padding: 76px 0;
}

.section.alt {
    background: #ffffff;
}

.section h2 {
    font-size: 34px;
    margin: 0 0 12px;
}

.section p {
    color: #526070;
    line-height: 1.7;
}

.endpoint-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.method {
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
}

.method.post {
    background: #16a34a;
    color: #fff;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 30px;
}

.module-card {
    background: #f7f9fc;
    border: 1px solid #e5e9f0;
    border-radius: 18px;
    padding: 22px;
}

.module-card h3 {
    margin-top: 0;
}

.footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 38px 0;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.footer a {
    display: inline-block;
    margin-inline-start: 18px;
    color: #e5e7eb;
}
.footer-logo {
    height: 42px;
    width: auto;
    display: block;
    margin-bottom: 12px;
}
@media (max-width: 850px) {
    .hero-grid,
    .modules-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 38px;
    }

    .nav {
        height: auto;
        padding: 18px 0;
        align-items: flex-start;
        gap: 18px;
        flex-direction: column;
    }

    .nav nav {
        flex-wrap: wrap;
    }

    .footer-grid {
        flex-direction: column;
    }
}
.page-section {
    padding-top: 120px;
    min-height: 70vh;
}

.page-card {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
}

.page-card h1 {
    margin-bottom: 20px;
}

.page-content {
    color: #475569;
    line-height: 1.9;
    font-size: 16px;
}

.page-content p {
    margin-bottom: 16px;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}