:root {
  --bg: #f7f8fb;
  --ink: #111827;
  --muted: #5d6678;
  --line: #d9dee8;
  --navy: #0b1020;
  --blue: #2454ff;
  --cyan: #00c2ff;
  --white: #ffffff;
  --card: rgba(255, 255, 255, 0.86);
  --shadow: 0 24px 80px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

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

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: 96px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 248, 251, 0.82);
  border-bottom: 1px solid rgba(217, 222, 232, 0.8);
  backdrop-filter: blur(16px);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 14px 30px rgba(36, 84, 255, 0.24);
}

.brand-text {
  font-size: 0.98rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.94rem;
}

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

.nav-cta {
  padding: 10px 16px;
  color: var(--white) !important;
  border-radius: 999px;
  background: var(--navy);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 700;
}

.hero {
  position: relative;
  overflow: hidden;
  padding-top: 112px;
  background:
    radial-gradient(circle at 78% 18%, rgba(0, 194, 255, 0.22), transparent 28%),
    radial-gradient(circle at 8% 8%, rgba(36, 84, 255, 0.14), transparent 30%);
}

.hero-grid,
.two-col,
.impact-grid,
.contact-card,
.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(3.1rem, 8vw, 6.7rem);
  line-height: 0.94;
  letter-spacing: -0.08em;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.hero-lead,
.copy-stack p,
.impact p,
.contact-card p {
  color: var(--muted);
  font-size: 1.06rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), #1236b7);
  box-shadow: 0 18px 38px rgba(36, 84, 255, 0.24);
}

.btn.secondary {
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 48px;
}

.hero-stats div {
  padding: 18px;
  border: 1px solid rgba(217, 222, 232, 0.86);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
}

.hero-stats strong,
.hero-stats span {
  display: block;
}

.hero-stats strong {
  font-size: 1.2rem;
}

.hero-stats span {
  color: var(--muted);
  font-size: 0.86rem;
}

.hero-card {
  position: relative;
  min-height: 540px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 42px;
  background:
    linear-gradient(145deg, rgba(12, 18, 37, 0.96), rgba(16, 31, 66, 0.92)),
    radial-gradient(circle at 50% 40%, rgba(0, 194, 255, 0.4), transparent 30%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.55) 1px, transparent 1px),
    radial-gradient(circle, rgba(255,255,255,0.22) 1px, transparent 1px);
  background-size: 44px 44px, 78px 78px;
  opacity: 0.34;
}

.orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-18deg);
}

.orbit-one {
  width: 340px;
  height: 150px;
}

.orbit-two {
  width: 440px;
  height: 210px;
  transform: translate(-50%, -50%) rotate(24deg);
}

.planet {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f6fbff, #6ddcff 45%, #2454ff);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 90px rgba(0, 194, 255, 0.45);
}

.signal-card {
  position: absolute;
  z-index: 2;
  width: 220px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 22px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.signal-card span {
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 800;
}

.signal-card p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.94rem;
}

.top-card {
  top: 54px;
  right: 42px;
}

.bottom-card {
  left: 42px;
  bottom: 48px;
}

.copy-stack {
  display: grid;
  gap: 18px;
}

.arabic {
  font-family: "Noto Kufi Arabic", Inter, sans-serif;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
}

.dark-section {
  color: var(--white);
  background: var(--navy);
}

.values-grid,
.program-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.values-grid article,
.program-card {
  padding: 30px;
  border-radius: 28px;
}

.values-grid article {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.values-grid p {
  color: rgba(255, 255, 255, 0.72);
}

.icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 24px;
  border-radius: 14px;
  color: var(--cyan);
  background: rgba(0, 194, 255, 0.12);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 38px;
}

.program-grid {
  grid-template-columns: repeat(4, 1fr);
}

.program-card {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
}

.program-card p {
  color: var(--muted);
  font-size: 0.96rem;
}

.impact {
  background: #edf2ff;
}

.impact-list {
  display: grid;
  gap: 16px;
}

.impact-list div {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  align-items: start;
  padding: 22px;
  border-radius: 24px;
  background: var(--white);
  border: 1px solid rgba(217, 222, 232, 0.9);
}

.impact-list span {
  color: var(--blue);
  font-weight: 900;
}

.impact-list p {
  margin: 0;
}

.contact-card {
  padding: 46px;
  border-radius: 34px;
  color: var(--white);
  background:
    radial-gradient(circle at 90% 20%, rgba(0, 194, 255, 0.26), transparent 28%),
    linear-gradient(135deg, #0b1020, #172554);
  box-shadow: var(--shadow);
}

.contact-card .eyebrow,
.contact-card p {
  color: rgba(255, 255, 255, 0.76);
}

.contact-actions {
  justify-content: flex-end;
}

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

.footer-grid {
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.footer p:last-child {
  text-align: right;
}

@media (max-width: 920px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 84px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .hero-grid,
  .two-col,
  .impact-grid,
  .contact-card,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    min-height: 440px;
  }

  .values-grid,
  .program-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-actions {
    justify-content: flex-start;
  }

  .footer p:last-child {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .section {
    padding: 72px 0;
  }

  .hero {
    padding-top: 86px;
  }

  .brand-text {
    display: none;
  }

  h1 {
    font-size: clamp(3.2rem, 18vw, 4.6rem);
  }

  .hero-stats,
  .values-grid,
  .program-grid {
    grid-template-columns: 1fr;
  }

  .signal-card {
    width: 190px;
  }

  .top-card {
    right: 18px;
  }

  .bottom-card {
    left: 18px;
  }

  .contact-card {
    padding: 30px;
  }
}
