:root {
  --ink: #14181f;
  --muted: #5c6772;
  --body: #3c4654;
  --line: rgba(20, 24, 31, 0.1);
  --bg: #f4f6f8;
  --card: #ffffff;
  --blue: #0072ff;
  --cyan: #00d2ff;
  --lime: #76ff03;
  --dark: #000000;
  --radius: 20px;
  --shadow: 0 18px 50px rgba(16, 24, 40, 0.06);
  --max: 1080px;
  --font: "Cairo", "Segoe UI", Tahoma, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

html[lang="ar"] {
  direction: rtl;
}

html[lang="en"] {
  direction: ltr;
}

html[lang="ar"] .en,
html[lang="en"] .ar {
  display: none;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
}

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

a {
  color: var(--blue);
}

button,
input,
select,
textarea {
  font: inherit;
}

.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.05rem;
}

.brand-mark {
  width: 72px;
  height: 56px;
  object-fit: contain;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px 18px;
  flex-wrap: wrap;
}

.nav a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.nav a:hover,
.nav a.is-current {
  color: #fff;
}

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.lang-switch button {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  font-weight: 700;
}

html[lang="ar"] .lang-switch [data-set-lang="ar"],
html[lang="en"] .lang-switch [data-set-lang="en"] {
  background: #fff;
  color: #07090c;
}

.hero {
  background: #000;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 80% at 0% 20%, rgba(0, 114, 255, 0.42), transparent 60%),
    radial-gradient(ellipse 45% 70% at 100% 80%, rgba(118, 255, 3, 0.16), transparent 55%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  gap: 28px 40px;
  align-items: center;
  padding: 42px 0 56px;
}

.hero-logo {
  width: min(100%, 240px);
  height: auto;
  margin-inline: auto;
  filter: drop-shadow(0 18px 40px rgba(0, 114, 255, 0.25));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #d7f7c4;
  font-weight: 700;
  font-size: 0.85rem;
}

.page-hero .eyebrow {
  color: #0b6b2a;
  background: #eefbe8;
  border-color: #d7f3c8;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.lede {
  margin: 0;
  max-width: 40rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(90deg, #0072ff, #00d2ff 62%, #76ff03);
  color: #041018;
}

.btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
}

.btn-line {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

.gradient-rule {
  height: 3px;
  background: linear-gradient(90deg, #0072ff, #00d2ff, #76ff03);
}

.section {
  padding: 42px 0;
}

.section h2 {
  margin: 0 0 8px;
  font-size: 1.6rem;
  letter-spacing: -0.03em;
}

.section-lead {
  margin: 0 0 22px;
  color: var(--muted);
  max-width: 42rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.link-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 190px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--card);
  color: inherit;
  text-decoration: none;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.link-card:hover {
  border-color: rgba(0, 114, 255, 0.35);
}

.card-kicker {
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--blue);
}

.link-card h3 {
  margin: 0;
  font-size: 1.15rem;
}

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

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.feature {
  padding: 18px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
}

.feature svg {
  width: 28px;
  height: 28px;
  stroke: var(--blue);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature h3 {
  margin: 12px 0 6px;
  font-size: 1.02rem;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.summary {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
}

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

.panel h2 {
  margin-top: 0;
}

.panel ul {
  margin: 0;
  padding-inline-start: 1.15rem;
  color: var(--body);
}

.panel li + li {
  margin-top: 6px;
}

.page-hero {
  padding: 36px 0 8px;
}

.page-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  letter-spacing: -0.03em;
}

.updated {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

.prose {
  margin: 18px auto 56px;
  padding: 8px 28px 28px;
}

.prose h2 {
  margin: 28px 0 8px;
  font-size: 1.25rem;
}

.prose h3 {
  margin: 18px 0 6px;
  font-size: 1.05rem;
}

.prose p,
.prose li {
  color: var(--body);
}

.prose ul,
.prose ol {
  padding-inline-start: 1.2rem;
}

.prose li + li {
  margin-top: 6px;
}

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 4px;
}

.toc a {
  text-decoration: none;
  background: #f3f7fb;
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 700;
  font-size: 0.88rem;
}

.note {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #f3f8ff;
  border: 1px solid rgba(0, 114, 255, 0.12);
}

.form {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 6px;
}

.field span {
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--ink);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid rgba(0, 114, 255, 0.35);
  border-color: var(--blue);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 14px;
  margin-bottom: 56px;
}

.mail-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.mail-list a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f6f8fb;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
}

.mail-list small {
  color: var(--muted);
  font-weight: 600;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 36px;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--ink);
}

@media (max-width: 980px) {
  .cards,
  .features,
  .summary,
  .contact-grid,
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-logo {
    width: 180px;
  }
}

@media (max-width: 720px) {
  html {
    scroll-padding-top: 148px;
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 10px 0;
  }

  .prose {
    padding: 4px 16px 20px;
  }
}
