/* ===== إعادة الضبط ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    display: flex;
    flex-direction: column;
    font-family: 'IBM Plex Sans Arabic', Tahoma, Arial, sans-serif;
    font-weight: 400;
    font-size: var(--fs-base);
    line-height: var(--lh-body);
    color: var(--text-body);
    background-color: var(--background);
    background-image: var(--mesh-page);
    background-attachment: fixed;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    direction: rtl
}

/* ===== النصوص ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: var(--lh-heading);
    letter-spacing: -0.02em;
    color: var(--text-dark)
}

h1 {
    font-size: var(--fs-4xl);
    line-height: var(--lh-tight)
}

h2 {
    font-size: var(--fs-3xl)
}

h3 {
    font-size: var(--fs-xl)
}

p {
    font-size: var(--fs-base);
    color: var(--text-body)
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition-fast)
}

a:hover {
    color: var(--accent-strong)
}

ul {
    list-style: none
}

img {
    display: block;
    max-width: 100%
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none
}

input, textarea, select {
    font-family: inherit;
    font-size: var(--fs-base)
}

svg {
    display: inline-block;
    flex-shrink: 0;
    vertical-align: middle
}

.icon {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none
}

.icon-sm {
    width: 16px;
    height: 16px
}

.icon-lg {
    width: 28px;
    height: 28px
}

/* ===== أدوات مساعدة ===== */
.container {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 var(--space-6)
}

.container-tight {
    max-width: 900px
}

.section {
    padding: var(--space-24) 0
}

.section-sm {
    padding: var(--space-16) 0
}

.bg-subtle {
    background: linear-gradient(180deg, var(--surface-50) 0%, var(--background-alt) 100%)
}

.text-center {
    text-align: center
}

.hidden {
    display: none
}

.muted {
    color: var(--text-muted)
}

.eyebrow {
    display: block;
    margin: 0 0 var(--space-4);
    font-weight: 700;
    font-size: var(--fs-2xl);
    line-height: var(--lh-heading);
    color: var(--ink-900);
    letter-spacing: -0.02em
}

.section-head {
    max-width: 660px;
    margin: 0 0 var(--space-12)
}

.section-head p {
    margin-top: var(--space-4)
}

.page-head p {
    margin-top: var(--space-4)
}

.mt-lg {
    margin-top: var(--space-6)
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0)
}

/* ===== حركات الظهور ===== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px)
    }
    to {
        opacity: 1;
        transform: none
    }
}

@keyframes floatSoft {
    0%, 100% {
        transform: translateY(0)
    }
    50% {
        transform: translateY(-10px)
    }
}

.reveal {
    opacity: 0
}

.reveal.in-view {
    opacity: 1;
    animation: fadeUp 0.7s var(--ease-out) backwards
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1
    }

    .reveal.in-view {
        animation: none
    }

    html {
        scroll-behavior: auto
    }
}
