@font-face {
  font-family: "Alexandria";
  src: url("/fonts/alexandria-arabic.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+FB50-FDFF, U+FE70-FEFC;
}

@font-face {
  font-family: "Alexandria";
  src: url("/fonts/alexandria-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122;
}

:root {
  color-scheme: dark;
  --screen: #05070b;
  --rail: #0a0d13;
  --surface: #151923;
  --raised: #202637;
  --focus: #2e6cf6;
  --focus-bright: #4b7ef4;
  --text: #f7f8fa;
  --muted: #b3b8c2;
  --line: #2b303a;
  --content: 1240px;
  --radius: 14px;
  font-family: "Alexandria", sans-serif;
  background: var(--screen);
  color: var(--text);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--focus) var(--rail);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--screen);
  color: var(--text);
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--focus); color: #fff; }

a { color: inherit; text-underline-offset: .35em; }

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus-bright);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  inset: 12px auto auto 12px;
  z-index: 100;
  translate: 0 -150%;
  padding: 10px 16px;
  background: var(--text);
  color: var(--screen);
  border-radius: 8px;
}

.skip-link:focus { translate: 0; }

.site-header {
  position: absolute;
  z-index: 10;
  inset: 0 0 auto;
  width: min(100% - 48px, var(--content));
  margin-inline: auto;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -.03em;
  text-decoration: none;
}

.site-header nav { display: flex; gap: 28px; align-items: center; }

.site-header nav a,
footer a {
  color: var(--muted);
  font-size: .9rem;
  text-decoration: none;
}

.site-header nav a:hover,
footer a:hover { color: var(--text); }

.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(360px, .82fr) minmax(520px, 1.18fr);
  align-items: center;
  gap: clamp(24px, 5vw, 86px);
  width: min(100% - 48px, var(--content));
  margin-inline: auto;
  padding: 136px 0 80px;
  overflow: hidden;
}

.hero-copy { position: relative; z-index: 2; }

.availability,
.live-mark {
  color: var(--focus-bright);
  font-size: .82rem;
  font-weight: 700;
}

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

h1 {
  margin-bottom: 24px;
  font-size: clamp(3.4rem, 6.4vw, 6.3rem);
  line-height: 1.08;
  letter-spacing: -.04em;
  font-weight: 900;
}

h1 span { display: block; color: var(--muted); white-space: nowrap; }
h1 .hero-title-main { color: var(--text); }
h1 span + span { margin-top: .06em; }

.hero-summary {
  max-width: 42ch;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 180ms ease-out, color 180ms ease-out, translate 180ms ease-out;
}

.button:hover { translate: 0 -2px; }
.button-primary { background: var(--focus); color: #fff; }
.button-primary:hover { background: var(--focus-bright); }
.button-quiet { background: var(--surface); color: var(--text); }
.button-quiet:hover { background: var(--raised); }

.release-note {
  min-height: 28px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: .78rem;
}

.hero-proof {
  position: relative;
  direction: ltr;
  isolation: isolate;
}

.hero-proof::before {
  content: "";
  position: absolute;
  inset: 18% -10% -12% 12%;
  z-index: -1;
  background: #0f286c;
  filter: blur(90px);
  opacity: .38;
}

.screen-frame {
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 34px 90px rgba(0, 0, 0, .58);
  transform: perspective(1500px) rotateY(7deg) rotateX(1deg);
  transform-origin: center left;
}

.screen-frame img { display: block; width: 100%; height: auto; }

.remote-cue {
  position: absolute;
  inset: auto 8% -34px auto;
  width: 118px;
  height: 66px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  align-items: center;
  padding: 12px;
  border-radius: 20px;
  background: #11151d;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
}

.remote-cue span {
  width: 18px;
  height: 18px;
  margin: auto;
  border: 2px solid var(--muted);
  border-radius: 50%;
}

.remote-cue span:nth-child(2) { background: var(--focus); border-color: var(--focus); }

.catalog-section,
.workflow,
.download-close {
  width: min(100% - 48px, var(--content));
  margin-inline: auto;
}

.catalog-section { padding: 112px 0 132px; }

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.15;
  letter-spacing: -.035em;
}

.section-heading p,
.workflow-intro p,
.download-close p { color: var(--muted); margin-bottom: 0; }

.movie-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 1fr);
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  padding: 6px 4px 20px;
}

.movie-card {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  scroll-snap-align: start;
}

.movie-card img { width: 100%; height: 100%; object-fit: cover; display: block; }

.movie-card::after {
  content: "";
  position: absolute;
  inset: 36% 0 0;
  background: linear-gradient(to bottom, transparent, rgba(5, 7, 11, .94));
}

.movie-copy {
  position: absolute;
  z-index: 1;
  inset: auto 18px 16px;
}

.movie-copy strong { display: block; font-size: 1.08rem; }
.movie-copy span { color: var(--muted); font-size: .78rem; }
.loading-copy { color: var(--muted); }

.workflow {
  display: grid;
  grid-template-columns: minmax(280px, .7fr) minmax(480px, 1.3fr);
  gap: clamp(48px, 10vw, 150px);
  padding: 120px 0;
  border-top: 1px solid var(--line);
}

.workflow-intro { position: sticky; top: 100px; align-self: start; }

.workflow-line {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.workflow-line::before {
  content: "";
  position: absolute;
  inset: 18px 13px 18px auto;
  width: 1px;
  background: var(--line);
}

.workflow-line li {
  position: relative;
  padding: 0 54px 62px 0;
}

.workflow-line li::before {
  content: "";
  position: absolute;
  inset: 9px 7px auto auto;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--focus);
  box-shadow: 0 4px 18px rgba(46, 108, 246, .45);
}

.workflow-line li:last-child { padding-bottom: 0; }
.workflow-line strong { display: block; margin-bottom: 8px; font-size: 1.35rem; }
.workflow-line span { color: var(--muted); }

.download-close {
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 70px;
  margin-bottom: 90px;
  border-radius: 18px;
  background: #0f1932;
}

.download-close h2 { margin-bottom: 10px; }

footer {
  width: min(100% - 48px, var(--content));
  margin-inline: auto;
  min-height: 130px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

footer p { margin: 0; font-size: .82rem; }
.brand-small { color: var(--text); font-size: 1.5rem; }

@media (max-width: 900px) {
  .site-header { width: min(100% - 32px, var(--content)); height: 76px; }
  .site-header nav a:not(:last-child) { display: none; }
  .hero {
    width: min(100% - 32px, var(--content));
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 112px 0 70px;
  }
  .hero-copy { order: 1; }
  .hero-proof { order: 2; margin-top: 34px; }
  h1 { font-size: clamp(3rem, 14vw, 5rem); }
  h1 span { white-space: normal; }
  .screen-frame { transform: none; border-radius: 12px; }
  .remote-cue { display: none; }
  .catalog-section,
  .workflow,
  .download-close,
  footer { width: min(100% - 32px, var(--content)); }
  .catalog-section { padding: 80px 0 90px; }
  .movie-rail { margin-inline-end: -16px; grid-auto-columns: minmax(230px, 74vw); }
  .workflow { grid-template-columns: 1fr; gap: 48px; padding: 88px 0; }
  .workflow-intro { position: static; }
  .download-close { min-height: auto; padding: 38px 24px; margin-bottom: 54px; }
}

@media (max-width: 560px) {
  .brand { font-size: 1.65rem; }
  .site-header nav { gap: 16px; }
  .hero-actions .button { flex: 1; }
  .section-heading { align-items: start; flex-direction: column; }
  .download-close { align-items: stretch; flex-direction: column; }
  footer { min-height: 170px; align-items: flex-start; justify-content: center; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
