:root {
  --ink: #152128;
  --bg: #0b1014;
  --bg-soft: #101820;
  --surface: #152128;
  --line: rgba(238, 243, 247, 0.12);
  --text: #f4f7f8;
  --muted: #8b98a1;
  --slate: #6d7b84;
  --orange: #f98a33;
  --radius: 10px;
  --font: "Cairo", sans-serif;
  --display: "Noto Kufi Arabic", "Cairo", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  overflow-x: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  right: 16px;
  top: -100px;
  background: var(--orange);
  color: var(--ink);
  padding: 8px 14px;
  z-index: 20;
}

.skip-link:focus {
  top: 12px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(11, 16, 20, 0.9);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 96px;
  padding-block: 10px;
}

.brand img {
  width: auto;
  height: 58px;
  object-fit: contain;
}

.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 72px 0 140px;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black, transparent 78%);
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.9fr);
  align-items: center;
  gap: 36px 48px;
}

.hero-copy {
  text-align: start;
}

.blob-frame {
  position: relative;
  width: min(460px, 100%);
  aspect-ratio: 1;
  justify-self: center;
}

.blob-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.blob-outline {
  fill: var(--orange);
}

.blob-fill {
  fill: var(--bg-soft);
}

.blob-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 72%;
  height: auto;
  translate: -50% -50%;
  object-fit: contain;
}

.eyebrow {
  display: inline-block;
  color: var(--orange);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0 0 18px;
}

.hero h1,
.about h2,
.contact h2,
.about-card h3 {
  font-family: var(--display);
}

.hero h1,
.about h2,
.contact h2 {
  font-size: clamp(1.85rem, 4.6vw, 3rem);
  line-height: 1.45;
  margin: 0 0 16px;
  font-weight: 700;
}

.hero-lead,
.section-head p,
.contact-copy > p {
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 640px;
}

.hero-lead {
  margin: 0;
}

.section-head p,
.contact-copy > p {
  margin: 0 auto;
}

.hero-actions {
  display: flex;
  justify-content: flex-start;
  gap: 14px;
  margin: 32px 0 28px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 8px;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.28s ease, border-color 0.28s ease, background 0.28s ease;
}

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

.btn-primary {
  background: var(--orange);
  color: var(--ink);
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--orange);
}

.social-row {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero-mountains {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  width: 100%;
  height: 140px;
  animation: mountain-drift 22s ease-in-out infinite alternate;
}

.hero-mountains path {
  fill: #101820;
}

.hero-mountains .peak {
  fill: #152128;
}

.about,
.contact,
#top {
  scroll-margin-top: 96px;
}

.about,
.contact {
  position: relative;
  z-index: 1;
  padding: 96px 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 48px;
}

.section-head p {
  margin-inline: 0;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.about-card,
.contact-form,
.mission {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.about-card {
  padding: 28px;
}

.about-card h3 {
  margin: 0 0 8px;
}

.about-card p,
.mission p {
  margin-top: 8px;
}

.about-card p,
.mission p,
.contact-list span {
  color: var(--muted);
}

.mission {
  margin: 28px 0 0;
  padding: 28px 32px;
}

.mission p {
  font-size: 1.2rem;
  color: var(--text);
  margin: 0;
}

.contact {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.contact-copy h2,
.contact-copy p {
  max-width: 520px;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 32px 0;
}

.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.contact-list a,
.contact-list strong {
  font-size: 1.15rem;
  font-weight: 700;
}

.contact-list a {
  transition: color 0.25s ease;
}

.contact-list a:hover {
  color: var(--orange);
}

.follow p {
  font-weight: 700;
  margin-bottom: 12px;
}

.social-icons {
  display: flex;
  gap: 12px;
}

.icon-btn {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  transition: transform 0.28s ease, background 0.28s ease, border-color 0.28s ease;
}

.icon-btn svg {
  width: 20px;
  height: 20px;
  fill: var(--text);
  transition: fill 0.28s ease;
}

.icon-btn:hover,
.icon-btn:focus-visible {
  border-color: var(--orange);
  background: var(--orange);
  transform: translateY(-3px);
}

.icon-btn:hover svg {
  fill: var(--ink);
}

.contact-form {
  padding: 28px;
  display: grid;
  gap: 16px;
}

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

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

label span {
  color: var(--slate);
  font-weight: 400;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  border-radius: 8px;
  padding: 12px 14px;
  outline: none;
}

input:focus,
textarea:focus {
  border-color: var(--orange);
}

.contact-form .btn {
  justify-self: start;
}

.form-status {
  min-height: 1.5em;
  margin: 0;
  color: var(--orange);
  font-weight: 700;
}

.site-footer {
  padding: 40px 0 48px;
  text-align: center;
  color: var(--muted);
}

.footer-inner img {
  width: 200px;
  height: auto;
  object-fit: contain;
  margin: 0 auto 12px;
}

.copyright {
  color: var(--slate);
  font-size: 0.92rem;
}

.copyright a {
  color: inherit;
  font-weight: inherit;
  transition: color 0.25s ease;
}

.copyright a:hover,
.copyright a:focus-visible {
  color: inherit;
}

/* —— Live page —— */
.header-live {
  justify-content: space-between;
  gap: 16px;
}

.header-back {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.header-back:hover,
.header-back:focus-visible {
  color: var(--orange);
  border-color: var(--orange);
}

.live-hero {
  position: relative;
  overflow: hidden;
  padding: 48px 0 160px;
  min-height: calc(100vh - 96px);
}

.live-layout {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 28px;
}

.live-intro h1 {
  font-family: var(--display);
  font-size: clamp(1.85rem, 4.6vw, 3rem);
  line-height: 1.45;
  margin: 0 0 12px;
  font-weight: 700;
}

.live-lead {
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 640px;
  margin: 0 0 18px;
}

.live-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 700;
}

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--slate);
}

.live-status.is-on-air {
  color: var(--orange);
}

.live-status.is-on-air .live-dot {
  background: var(--orange);
  box-shadow: 0 0 0 0 rgba(249, 138, 51, 0.55);
  animation: live-pulse 1.6s ease-out infinite;
}

.player-shell {
  width: min(960px, 100%);
  margin-inline: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.player-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-soft);
}

.player-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.live-offline {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  padding: 28px 24px;
  text-align: center;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  background-color: var(--bg-soft);
}

.live-offline img {
  width: min(220px, 55%);
  height: auto;
  margin-bottom: 8px;
}

.offline-title {
  font-family: var(--display);
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  font-weight: 700;
  margin: 0;
}

.offline-copy {
  color: var(--muted);
  max-width: 420px;
  margin: 0;
}

.offline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 10px;
}

.live-intro,
.player-shell,
.live-aside {
  opacity: 0;
  animation: rise-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.live-intro {
  animation-delay: 0.06s;
}

.player-shell {
  animation-delay: 0.16s;
}

.live-aside {
  animation-delay: 0.28s;
}

.aside-label {
  margin: 0;
  font-weight: 700;
  color: var(--muted);
}

@keyframes live-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(249, 138, 51, 0.5);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(249, 138, 51, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(249, 138, 51, 0);
  }
}

@media (max-width: 860px) {
  .about-grid,
  .contact-layout,
  .field-row,
  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-actions,
  .social-row {
    justify-content: center;
  }

  .blob-frame {
    width: min(300px, 80vw);
  }

  .hero,
  .about,
  .contact {
    padding: 64px 0;
  }

  .live-hero {
    padding: 36px 0 120px;
  }

  .header-back {
    font-size: 0.88rem;
  }

  .live-intro {
    text-align: center;
  }

  .live-lead {
    margin-inline: auto;
  }

  .live-status {
    justify-content: center;
  }

  .player-shell {
    margin-inline: auto;
  }

  .live-aside {
    justify-content: center;
  }
}

.hero-copy > * {
  opacity: 0;
  animation: rise-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-copy .eyebrow {
  animation-delay: 0.08s;
}

.hero-copy h1 {
  animation-delay: 0.2s;
}

.hero-copy .hero-lead {
  animation-delay: 0.34s;
}

.hero-copy .hero-actions {
  animation-delay: 0.48s;
}

.hero-copy .social-row {
  animation-delay: 0.6s;
}

.blob-frame {
  opacity: 0;
  animation: rise-in 1s cubic-bezier(0.22, 1, 0.36, 1) 0.18s forwards;
}

.reveal {
  opacity: 0;
  transform: translate3d(22px, 26px, 0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.about-card:nth-child(1) {
  transition-delay: 0.04s;
}

.about-card:nth-child(2) {
  transition-delay: 0.14s;
}

.about-card:nth-child(3) {
  transition-delay: 0.24s;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translate3d(22px, 18px, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes mountain-drift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-14px, 6px, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-mountains,
  .hero-copy > *,
  .blob-frame,
  .live-intro,
  .player-shell,
  .live-aside,
  .live-status.is-on-air .live-dot {
    animation: none !important;
  }

  .hero-copy > *,
  .blob-frame,
  .live-intro,
  .player-shell,
  .live-aside,
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .btn,
  .icon-btn,
  .social-row a,
  .contact-list a {
    transition: none;
  }

  .btn:hover,
  .btn:focus-visible,
  .icon-btn:hover,
  .icon-btn:focus-visible {
    transform: none;
  }
}
