:root {
  --brand-orange: #d0512f;
  --brand-orange-dark: #a83c23;
  --navy: #102b46;
  --cream: #f7f2e9;
  --paper: #fffdf9;
  --orange-soft: #f0cabc;
  --navy-soft: #6f7f90;
  --rule: rgba(16, 43, 70, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-width: 100%;
  height: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  background: var(--brand-orange);
  color: var(--navy);
  font-family: Arial, "Arial Unicode MS", "Noto Sans Arabic", sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.screen {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(560px, 0.82fr);
  width: 100vw;
  height: 100vh;
  min-height: 720px;
}

.instructions {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  padding: clamp(38px, 4.2vh, 152px) clamp(54px, 4.8vw, 220px) clamp(30px, 3.2vh, 116px);
  background: var(--brand-orange);
  color: var(--paper);
}

.instructions::after {
  position: absolute;
  right: -12vw;
  bottom: -28vh;
  width: 48vw;
  height: 48vw;
  border: clamp(50px, 5vw, 200px) solid rgba(255, 255, 255, 0.055);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 1.9vw, 72px);
}

.brand img {
  display: block;
  width: clamp(260px, 24vw, 880px);
  height: auto;
}

.brand p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(12px, 0.82vw, 36px);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: right;
  text-transform: uppercase;
}

.intro {
  position: relative;
  z-index: 1;
  max-width: 55vw;
  margin-top: clamp(32px, 4.2vh, 144px);
}

h1 {
  margin: 0;
}

.title-ar,
.title-en {
  display: block;
}

.title-ar {
  max-width: 53vw;
  font-size: clamp(54px, 5.7vw, 220px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-align: left;
}

.title-en {
  margin-top: 0.12em;
  color: var(--orange-soft);
  font-size: clamp(27px, 2.8vw, 108px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.lead {
  max-width: 48vw;
  margin: clamp(18px, 2.4vh, 68px) 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(18px, 1.25vw, 54px);
  line-height: 1.48;
}

.steps {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(12px, 1.4vh, 44px);
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: clamp(54px, 4.6vw, 176px) 1fr;
  gap: clamp(18px, 1.6vw, 64px);
  align-items: start;
  padding-top: clamp(14px, 1.6vh, 48px);
  border-top: 1px solid rgba(255, 255, 255, 0.24);
}

.step-number {
  color: var(--orange-soft);
  font-size: clamp(20px, 1.55vw, 64px);
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.1;
}

.steps h2 {
  margin: 0 0 0.22em;
  font-size: clamp(19px, 1.45vw, 60px);
  line-height: 1.15;
}

.steps p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(15px, 1.03vw, 44px);
  line-height: 1.42;
}

.steps code {
  display: inline-block;
  padding: 0.28em 0.55em;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.09);
  color: var(--paper);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: clamp(15px, 1.03vw, 44px);
  white-space: nowrap;
}

.steps p + code {
  margin-top: 0.5em;
}

.scan-panel {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: clamp(38px, 4.5vh, 152px) clamp(44px, 4vw, 172px);
  border-left: 1px solid rgba(16, 43, 70, 0.12);
  background: var(--cream);
  text-align: center;
}

.scan-heading {
  width: 100%;
}

.scan-kicker {
  margin: 0 0 0.3em;
  color: var(--brand-orange);
  font-size: clamp(23px, 2vw, 80px);
  font-weight: 800;
  line-height: 1.3;
}

.scan-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(38px, 3.3vw, 134px);
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.scan-heading > p:last-child {
  margin: clamp(12px, 1.4vh, 44px) 0 0;
  color: var(--navy-soft);
  font-size: clamp(15px, 1vw, 42px);
}

.qr-link {
  display: block;
  width: min(29vw, 54vh);
  min-width: 330px;
  max-width: 1240px;
  margin: clamp(24px, 3.2vh, 96px) auto clamp(20px, 2.5vh, 76px);
  padding: clamp(16px, 1.25vw, 52px);
  border: clamp(5px, 0.38vw, 16px) solid var(--navy);
  border-radius: clamp(14px, 0.75vw, 30px);
  background: #ffffff;
  line-height: 0;
}

.qr-link:focus-visible {
  outline: 8px solid var(--brand-orange);
  outline-offset: 10px;
}

.qr-link img {
  display: block;
  width: 100%;
  height: auto;
}

.scan-footer p {
  margin: 0 0 0.6em;
  color: var(--navy);
  font-size: clamp(17px, 1.25vw, 50px);
  font-weight: 700;
}

.scan-footer a {
  color: var(--brand-orange-dark);
  font-size: clamp(12px, 0.8vw, 34px);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

@media (max-aspect-ratio: 4 / 3) {
  body {
    overflow: auto;
  }

  .screen {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100vh;
  }

  .instructions {
    min-height: 100vh;
  }

  .scan-panel {
    min-height: 100vh;
    border-top: 1px solid var(--rule);
    border-left: 0;
  }

  .qr-link {
    width: min(72vw, 56vh);
  }
}

@media (max-height: 820px) and (min-aspect-ratio: 4 / 3) {
  .intro {
    margin-top: 22px;
  }

  .lead {
    margin-top: 12px;
  }

  .qr-link {
    margin-top: 18px;
    margin-bottom: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
