/* ═══════════════════════════════════════════
   base.css — Reset + Typography + Layout Base
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&family=Instrument+Serif:ital@0;1&family=Geist+Mono:wght@400;500&family=Geist:wght@300;400;500;600&display=swap');

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-ar);
  background: var(--bg-base);
  color: var(--text-1);
  direction: rtl;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  font-weight: 400;
  transition: background var(--t-slow), color var(--t-slow);
  overflow-x: hidden;
  letter-spacing: -0.005em;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }

/* ── Layout ── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
}

.wrap { position: relative; z-index: 1; }

/* ── Ambient Background ── */
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.ambient::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 70%;
  height: 90%;
  background: radial-gradient(ellipse at center, rgba(56, 189, 248, 0.10) 0%, transparent 50%);
  filter: blur(100px);
}
.ambient::after {
  content: '';
  position: absolute;
  top: 50%;
  left: -25%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.07) 0%, transparent 60%);
  filter: blur(120px);
}
[data-theme="light"] .ambient::before {
  background: radial-gradient(ellipse at center, rgba(56, 189, 248, 0.06) 0%, transparent 50%);
}
[data-theme="light"] .ambient::after {
  background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.04) 0%, transparent 60%);
}

/* ── Grid Overlay ── */
.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line-1) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-1) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
  opacity: 0.5;
}

/* ── Sections ── */
.section { padding: 120px 0; position: relative; }

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.section-eyebrow-line {
  width: 24px;
  height: 1px;
  background: var(--accent);
}
.section-title {
  font-family: var(--font-ar);
  font-size: 56px;
  font-weight: 500;
  color: var(--text-0);
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 20px;
  max-width: 720px;
}
.section-title-serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.section-desc {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.6;
  max-width: 600px;
  font-weight: 400;
}
.section-header {
  margin-bottom: 72px;
  text-align: center;
}
.section-header .section-title { margin-inline: auto; }
.section-header .section-desc  { margin-inline: auto; }
.section-header .section-eyebrow { justify-content: center; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .container { padding: 0 24px; }
  .section-title { font-size: 44px; }
}
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .section { padding: 80px 0; }
  .section-title { font-size: 36px; letter-spacing: -1.5px; }
}
@media (max-width: 480px) {
  .section-title { font-size: 28px; }
}
