:root {
  color-scheme: dark;
  --ink: #f5f8ff;
  --muted: #c4cce0;
  --line: rgba(177, 202, 255, 0.16);
  --paper: rgba(18, 24, 48, 0.72);
  --surface: rgba(19, 25, 52, 0.82);
  --blue: #31a9ee;
  --blue-dark: #257fc5;
  --violet: #9e48df;
  --violet-dark: #7546c6;
  --glow-blue: rgba(49, 169, 238, 0.24);
  --glow-violet: rgba(158, 72, 223, 0.22);
  --shadow: 0 18px 44px rgba(3, 8, 24, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  font-family: "Tajawal", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 6%, var(--glow-blue), transparent 23rem),
    radial-gradient(circle at 12% 18%, var(--glow-violet), transparent 22rem),
    linear-gradient(145deg, #090f24 0%, #121b3a 48%, #21133d 100%);
  direction: rtl;
}

a {
  color: inherit;
}

.page-shell {
  width: min(760px, calc(100% - 28px));
  margin: 0 auto;
  padding: 20px 0 48px;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 14px 0 22px;
  text-align: center;
}

.hero-copy {
  max-width: 620px;
}

.brand-logo {
  width: clamp(104px, 30vw, 136px);
  height: auto;
  display: block;
  margin: 0 auto 10px;
  filter: drop-shadow(0 16px 28px rgba(49, 169, 238, 0.16));
}

.eyebrow {
  margin: 0 0 12px;
  color: #8ad7ff;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 12ch;
  margin: 0 auto;
  font-size: clamp(2.2rem, 10vw, 3.7rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.intro {
  max-width: 560px;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: clamp(0.98rem, 3.8vw, 1.08rem);
  line-height: 1.62;
}

.quick-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(100%, 390px);
  margin: 18px auto 0;
}

.button {
  width: 100%;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 20px;
  font-weight: 900;
  text-decoration: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.button:hover,
.episode-link:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--violet-dark) 100%);
  box-shadow: 0 14px 32px rgba(39, 127, 197, 0.24);
}

.button-primary:hover {
  box-shadow: 0 18px 38px rgba(117, 70, 198, 0.28);
}

.button-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--line);
}

.button-icon {
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 50%;
  position: relative;
}

.button-icon::before {
  content: "";
  position: absolute;
  right: 6px;
  top: 3px;
  border-right: 6px solid currentColor;
  border-left: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}

.phone-preview {
  width: min(70vw, 260px);
  position: relative;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.phone-preview img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 18px 36px rgba(3, 8, 24, 0.32));
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: stretch;
  margin-top: 8px;
}

.video-panel,
.watch-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.video-panel {
  padding: 14px;
}

.section-heading {
  padding: 6px 6px 16px;
}

h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.video-frame {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #090f24;
  aspect-ratio: var(--video-aspect, 9 / 16);
}

video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.video-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 8px;
  padding: 28px;
  color: #ffffff;
  text-align: center;
  background:
    linear-gradient(rgba(41, 45, 58, 0.1), rgba(41, 45, 58, 0.7)),
    url("assets/video-poster.png") center / cover;
}

.video-fallback[hidden] {
  display: none;
}

.fallback-title {
  margin: 0;
  font-size: clamp(1.3rem, 4vw, 2.2rem);
  font-weight: 800;
}

.video-fallback p:not(.fallback-title) {
  max-width: 470px;
  margin: 0 auto;
  line-height: 1.55;
}

.watch-card {
  display: flex;
  flex-direction: column;
  padding: 14px;
}

.watch-copy {
  margin: 0 6px 18px;
  color: var(--muted);
  line-height: 1.65;
}

.episode-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 92px;
  margin: 0 0 22px;
  padding: 18px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--violet-dark) 100%);
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 14px 32px rgba(39, 127, 197, 0.22);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.episode-link:hover {
  box-shadow: 0 18px 38px rgba(117, 70, 198, 0.26);
}

.episode-link strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.05rem;
}

.episode-link small {
  display: block;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.35;
}

.arrow {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  position: relative;
}

.arrow::before,
.arrow::after {
  content: "";
  position: absolute;
  background: #ffffff;
}

.arrow::before {
  width: 14px;
  height: 2px;
  top: 15px;
  right: 8px;
}

.arrow::after {
  width: 8px;
  height: 8px;
  top: 11px;
  left: 9px;
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-right: 0;
  background: transparent;
  transform: rotate(-45deg);
}

.tips {
  margin-top: auto;
  padding: 18px;
  border-radius: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.tips h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.tips ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-right: 18px;
  padding-left: 0;
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 860px) {
  .page-shell {
    width: min(100% - 22px, 620px);
    padding-top: 14px;
  }

  .hero {
    gap: 14px;
    padding: 10px 0 22px;
  }

  h1 {
    max-width: 12ch;
    margin-inline: auto;
  }

  .brand-logo {
    width: min(34vw, 124px);
  }

  .phone-preview {
    width: min(62vw, 230px);
  }
}

@media (max-width: 560px) {
  body {
    background:
      radial-gradient(circle at 88% 4%, rgba(49, 169, 238, 0.2), transparent 17rem),
      radial-gradient(circle at 10% 20%, rgba(158, 72, 223, 0.18), transparent 16rem),
      linear-gradient(150deg, #090f24 0%, #121b3a 52%, #21133d 100%);
  }

  .hero {
    padding-top: 10px;
    gap: 12px;
  }

  h1 {
    font-size: clamp(1.95rem, 10vw, 2.65rem);
  }

  .intro {
    margin-top: 10px;
    font-size: 0.98rem;
    line-height: 1.55;
  }

  .button {
    width: 100%;
  }

  .quick-actions {
    margin-top: 14px;
  }

  .brand-logo {
    width: min(32vw, 108px);
    margin-bottom: 8px;
  }

  .eyebrow {
    margin-bottom: 8px;
    font-size: 0.78rem;
  }

  .video-panel,
  .watch-card {
    padding: 12px;
  }

  .episode-link {
    min-height: 106px;
  }
}
