@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;600&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --bg: #0b0f14;
  --bg-2: #0f1b2b;
  --bg-3: #0f1522;
  --card: #121b27;
  --card-2: #141f2f;
  --text: #f2f6ff;
  --muted: #a6b4cc;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #ffb347;
  --accent-2: #2ccbb8;
  --accent-3: #4f8cff;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 85% -20%, rgba(79, 140, 255, 0.15), transparent 55%),
    radial-gradient(900px 500px at -10% 25%, rgba(44, 203, 184, 0.18), transparent 55%),
    linear-gradient(160deg, #0a0f16 0%, #0b131e 45%, #0f1b2b 100%);
  line-height: 1.7;
}

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

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

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

.ltr {
  direction: ltr;
  text-align: left;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(10, 14, 20, 0.7);
  border-bottom: 1px solid var(--line);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand__logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.brand__text {
  display: flex;
  flex-direction: column;
  font-family: "Space Grotesk", "IBM Plex Sans Arabic", sans-serif;
  font-weight: 600;
}

.brand__text span {
  font-size: 1.1rem;
  letter-spacing: 0.2px;
}

.brand__text small {
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.3px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav a {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.95rem;
  color: rgba(242, 246, 255, 0.8);
  transition: all 0.2s ease;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.nav a.is-active {
  background: rgba(255, 179, 71, 0.16);
  color: #fff;
}

.nav-toggle {
  display: none;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-family: inherit;
  font-weight: 600;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 60px;
}

.hero::before {
  content: "";
  position: absolute;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 179, 71, 0.22), transparent 70%);
  top: -240px;
  left: -140px;
  filter: blur(4px);
}

.hero::after {
  content: "";
  position: absolute;
  width: 620px;
  height: 420px;
  background: linear-gradient(120deg, rgba(44, 203, 184, 0.18), transparent 65%);
  top: 30px;
  right: -180px;
  transform: rotate(-12deg);
  border-radius: 120px;
}

.hero__content {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
}

.hero h1 {
  font-family: "Space Grotesk", "IBM Plex Sans Arabic", sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  margin: 0 0 16px;
}

.hero p {
  color: var(--muted);
  margin: 0 0 22px;
  font-size: 1.05rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.1);
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent), #ffcf7d);
  color: #111;
  border-color: transparent;
}

.btn--ghost {
  background: transparent;
}

.hero__media {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.media-card {
  background: rgba(18, 27, 39, 0.75);
  border-radius: 16px;
  border: 1px solid var(--line);
  padding: 12px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.media-card img {
  border-radius: 12px;
  height: 160px;
  width: 100%;
  object-fit: cover;
}

.section {
  padding: 70px 0;
}

.section--alt {
  background: rgba(15, 21, 34, 0.65);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section__title {
  font-family: "Space Grotesk", "IBM Plex Sans Arabic", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin: 0 0 10px;
}

.section__lead {
  color: var(--muted);
  margin: 0 0 30px;
}

.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 22px;
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(44, 203, 184, 0.16);
  color: #b2f5ea;
  font-size: 0.82rem;
  font-weight: 600;
}

.stats {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.stat {
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(18, 27, 39, 0.7);
}

.stat strong {
  display: block;
  font-size: 1.6rem;
  font-family: "Space Grotesk", sans-serif;
}

.stat span {
  color: var(--muted);
  font-size: 0.9rem;
}

.split {
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: start;
}

.list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.list li {
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline-item {
  padding: 16px;
  border-radius: 14px;
  background: rgba(18, 27, 39, 0.9);
  border: 1px solid var(--line);
}

.code-block {
  background: #0b121c;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 20px;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.88rem;
  color: #d4e2ff;
  overflow-x: auto;
}

.callout {
  padding: 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 179, 71, 0.3);
  background: rgba(255, 179, 71, 0.08);
  color: #ffe6c7;
}

.toc {
  display: grid;
  gap: 8px;
}

.toc a {
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.footer {
  padding: 40px 0 60px;
  border-top: 1px solid var(--line);
  background: rgba(12, 18, 28, 0.7);
}

.footer__grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.footer h4 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.footer p,
.footer a {
  color: var(--muted);
  font-size: 0.92rem;
}

.reveal {
  animation: fadeUp 0.6s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .nav {
    position: absolute;
    top: 64px;
    right: 0;
    left: 0;
    background: rgba(12, 18, 28, 0.95);
    border-bottom: 1px solid var(--line);
    padding: 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    transform: translateY(-120%);
    transition: transform 0.3s ease;
  }

  .nav.nav--open {
    transform: translateY(0);
  }

  .nav-toggle {
    display: inline-flex;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 60px 0 40px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .media-card img {
    height: 140px;
  }
}
