:root {
  color-scheme: light;
  --bg: #0f1216;
  --surface: #161b22;
  --surface-alt: #1d2430;
  --text: #f2f4f8;
  --muted: #b9c0cc;
  --accent: #5dd6c2;
  --accent-strong: #2fb9a4;
  --border: #2a3342;
  --shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Cairo", "Tajawal", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

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

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

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

.site-header {
  background: rgba(22, 27, 34, 0.9);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.95rem;
  color: var(--muted);
}

.nav a {
  padding: 6px 8px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.nav a:hover,
.nav a:focus {
  background: var(--surface-alt);
  color: var(--text);
}

.hero {
  padding: 56px 0 32px;
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: center;
}

.hero-card {
  background: var(--surface);
  padding: 28px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.hero-card h1 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 2vw + 1rem, 2.5rem);
}

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

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--muted);
}

.badge {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
}

.section-title {
  margin: 32px 0 16px;
  font-size: 1.4rem;
}

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

.card {
  background: var(--surface);
  border-radius: 18px;
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.card img {
  height: 180px;
  object-fit: cover;
}

.card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.card-body h3 {
  margin: 0;
  font-size: 1.1rem;
}

.card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--muted);
}

.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 12px;
  background: var(--accent);
  color: #09201c;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.link-button:hover,
.link-button:focus {
  background: var(--accent-strong);
  transform: translateY(-1px);
}

.subscribe-section {
  margin: 48px 0 64px;
  background: var(--surface-alt);
  padding: 28px;
  border-radius: 20px;
  border: 1px solid var(--border);
}

.subscribe-section form {
  display: grid;
  gap: 14px;
  margin-top: 12px;
}

input,
textarea,
select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #0f141a;
  color: var(--text);
  font-family: inherit;
}

label {
  font-weight: 600;
  font-size: 0.95rem;
}

.page {
  padding: 40px 0 64px;
}

.page h1 {
  margin-top: 0;
  font-size: 2rem;
}

.page p,
.page li {
  color: var(--muted);
}

.highlight {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 20px;
  margin: 18px 0;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0 32px;
  color: var(--muted);
  background: #0c0f14;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 10px;
}

.cookie-banner {
  position: fixed;
  bottom: 18px;
  inset-inline: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow);
  display: none;
  gap: 12px;
  z-index: 20;
}

.cookie-banner.active {
  display: grid;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ghost-button {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.manage-panel {
  display: none;
  background: #0f141a;
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

.manage-panel.active {
  display: block;
}

@media (max-width: 720px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding-top: 36px;
  }

  .nav {
    width: 100%;
  }
}
