:root {
  color-scheme: dark;
  --ink: #07110c;
  --ink-soft: #0d1e17;
  --forest: #132b21;
  --forest-raised: #192b25;
  --forest-border: #305644;
  --mint: #60a58e;
  --mint-bright: #83b8a9;
  --mint-deep: #2e6f56;
  --gold: #deb729;
  --gold-top: #e7cb66;
  --gold-bottom: #bc9400;
  --paper: #efefef;
  --paper-soft: #d1d1d1;
  --paper-muted: #8d8d8d;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --header-height: 76px;
  --font-arabic-body: "Readex Pro", Tahoma, Arial, sans-serif;
  --font-arabic-display: "Changa", "Readex Pro", Tahoma, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--ink);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body.asteeka-landing {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--forest);
  color: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html[lang="ar"] body.asteeka-landing {
  font-family: var(--font-arabic-body);
}

body.asteeka-landing::selection {
  background: var(--gold);
  color: var(--ink);
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  font: inherit;
}

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

h1,
h2,
h3 {
  color: var(--paper);
  font-family: "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3 {
  font-family: var(--font-arabic-display);
  letter-spacing: 0;
  line-height: 1.18;
}

.page-shell {
  position: relative;
  width: calc(100% - 48px);
  max-width: 1180px;
  margin-inline: auto;
}

.section-pad {
  padding-block: 112px;
}

.section-dark {
  background: var(--ink);
}

.skip-link {
  position: fixed;
  z-index: 1000;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform 160ms var(--ease-out);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  z-index: 100;
  inset-block-start: 0;
  inset-inline: 0;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header[data-menu-open="true"] {
  border-color: rgba(131, 184, 169, 0.18);
  background: rgba(7, 17, 12, 0.88);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.18);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  width: calc(100% - 40px);
  max-width: 1280px;
  height: 100%;
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  position: relative;
  z-index: 2;
  display: inline-flex;
  width: 154px;
  flex: 0 0 auto;
  align-items: center;
  transition: opacity 160ms ease;
}

.brand img {
  width: 100%;
  height: auto;
}

.primary-navigation,
.nav-links,
.header-actions,
.language-switcher {
  display: flex;
  align-items: center;
}

.primary-navigation {
  flex: 1;
  justify-content: flex-end;
  gap: 42px;
}

.nav-links {
  gap: 30px;
}

.nav-links a {
  position: relative;
  color: var(--paper-soft);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 160ms ease;
}

html[lang="ar"] .nav-links a {
  letter-spacing: 0;
}

.nav-links a::after {
  position: absolute;
  inset-inline: 0;
  inset-block-end: -8px;
  height: 2px;
  border-radius: 999px;
  background: var(--gold);
  content: "";
  opacity: 0;
  transform: scaleX(0.45);
  transition: opacity 160ms ease, transform 160ms var(--ease-out);
}

.header-actions {
  gap: 18px;
}

.language-switcher {
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(131, 184, 169, 0.2);
  border-radius: 999px;
  background: rgba(7, 17, 12, 0.42);
}

.language-link {
  display: inline-grid;
  width: 44px;
  min-height: 44px;
  padding: 5px 8px;
  border-radius: 999px;
  place-items: center;
  color: var(--paper-muted);
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  transition: background-color 160ms ease, color 160ms ease;
}

.language-link.is-active {
  background: var(--mint-deep);
  color: var(--paper);
}

.menu-toggle {
  position: relative;
  z-index: 2;
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(131, 184, 169, 0.24);
  border-radius: 50%;
  background: rgba(7, 17, 12, 0.42);
  cursor: pointer;
}

.menu-toggle span {
  position: absolute;
  inset-block-start: 21px;
  inset-inline-start: 12px;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--paper);
  transition: transform 180ms var(--ease-out);
}

.menu-toggle span:first-child {
  transform: translateY(-5px);
}

.menu-toggle span:last-child {
  transform: translateY(5px);
}

.site-header[data-menu-open="true"] .menu-toggle span:first-child {
  transform: rotate(45deg);
}

.site-header[data-menu-open="true"] .menu-toggle span:last-child {
  transform: rotate(-45deg);
}

.button {
  display: inline-flex;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 850;
  letter-spacing: 0.035em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, transform 140ms var(--ease-out), box-shadow 160ms ease;
}

html[lang="ar"] .button {
  letter-spacing: 0;
}

.button svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

html[dir="rtl"] .button svg {
  transform: scaleX(-1);
}

.button:active {
  transform: scale(0.97);
}

.button-small {
  min-height: 40px;
  padding-inline: 17px;
  border-radius: 10px;
  font-size: 0.72rem;
}

.button-gold {
  border-color: rgba(255, 255, 255, 0.28);
  background: linear-gradient(180deg, var(--gold-top), var(--gold-bottom));
  box-shadow: 0 9px 28px rgba(222, 183, 41, 0.18), inset 0 1px rgba(255, 255, 255, 0.42);
  color: #251d00;
}

.button-quiet {
  border-color: rgba(131, 184, 169, 0.3);
  background: rgba(7, 17, 12, 0.42);
  color: var(--mint-bright);
}

.hero {
  position: relative;
  min-height: 900px;
  overflow: hidden;
  isolation: isolate;
}

.hero::before,
.hero::after {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.hero::before {
  width: 520px;
  height: 520px;
  inset-block-start: -280px;
  inset-inline-start: -180px;
  border: 1px solid rgba(96, 165, 142, 0.12);
  box-shadow: 0 0 0 80px rgba(96, 165, 142, 0.025), 0 0 0 160px rgba(96, 165, 142, 0.018);
}

.hero::after {
  width: 640px;
  height: 640px;
  inset-inline-end: -350px;
  inset-block-end: -420px;
  background: rgba(222, 183, 41, 0.055);
  filter: blur(2px);
}

.hero-backdrop {
  position: absolute;
  z-index: -3;
  inset: 0;
}

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 56% 42%;
  opacity: 0.46;
  filter: saturate(0.82) contrast(1.05);
  transform: scale(1.035);
}

.hero-backdrop::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 17, 12, 0.98) 0%, rgba(7, 17, 12, 0.84) 38%, rgba(7, 17, 12, 0.4) 74%, rgba(7, 17, 12, 0.76) 100%),
    linear-gradient(180deg, rgba(7, 17, 12, 0.36), rgba(7, 17, 12, 0.98));
  content: "";
}

html[dir="rtl"] .hero-backdrop::after {
  background:
    linear-gradient(270deg, rgba(7, 17, 12, 0.98) 0%, rgba(7, 17, 12, 0.84) 38%, rgba(7, 17, 12, 0.4) 74%, rgba(7, 17, 12, 0.76) 100%),
    linear-gradient(180deg, rgba(7, 17, 12, 0.36), rgba(7, 17, 12, 0.98));
}

.hero-grid {
  display: grid;
  min-height: 900px;
  padding-block: calc(var(--header-height) + 86px) 92px;
  align-items: center;
  grid-template-columns: minmax(0, 560px) 1fr;
  gap: 48px;
}

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

.eyebrow {
  display: flex;
  margin-bottom: 22px;
  align-items: center;
  gap: 11px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.18em;
  line-height: 1.3;
  text-transform: uppercase;
}

html[lang="ar"] .eyebrow {
  letter-spacing: 0;
}

.eyebrow::before {
  width: 32px;
  height: 1px;
  background: currentColor;
  content: "";
}

.hero h1 {
  max-width: 690px;
  margin-bottom: 28px;
  font-size: clamp(4rem, 7vw, 7rem);
  text-wrap: balance;
}

html[lang="ar"] .hero h1 {
  font-size: clamp(3.5rem, 6.3vw, 6.2rem);
}

.hero-subtitle {
  max-width: 590px;
  margin-bottom: 34px;
  color: var(--paper-soft);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.75;
}

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

.hero-facts {
  display: flex;
  margin: 38px 0 0;
  padding: 0;
  flex-wrap: wrap;
  gap: 12px 22px;
  color: var(--paper-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  list-style: none;
  text-transform: uppercase;
}

html[lang="ar"] .hero-facts {
  letter-spacing: 0;
}

.hero-facts li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fact-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 10px rgba(96, 165, 142, 0.7);
}

.games-section {
  position: relative;
  background:
    radial-gradient(circle at 85% 8%, rgba(96, 165, 142, 0.11), transparent 24%),
    var(--forest);
}

.section-heading {
  max-width: 680px;
  margin-bottom: 48px;
}

.section-heading h2,
.features-intro h2,
.download-copy h2 {
  margin-bottom: 20px;
  font-size: clamp(2.8rem, 5vw, 5rem);
  text-wrap: balance;
}

.section-heading > p:last-child,
.download-copy > p,
.feature-item p {
  color: var(--paper-muted);
}

.section-heading > p:last-child {
  max-width: 620px;
  margin-bottom: 0;
  font-size: 1.03rem;
}

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

.game-card {
  overflow: hidden;
  border: 1px solid rgba(131, 184, 169, 0.18);
  border-radius: 18px;
  background: rgba(7, 17, 12, 0.56);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
  transition: border-color 200ms ease, transform 220ms var(--ease-out), box-shadow 220ms ease;
}

.game-card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2.125 / 1;
}

.game-card-image::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(7, 17, 12, 0.78));
  content: "";
}

.game-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms var(--ease-out), filter 220ms ease;
}

.game-marker {
  position: absolute;
  z-index: 1;
  inset-inline-end: 18px;
  inset-block-end: 14px;
  display: grid;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  place-items: center;
  background: rgba(7, 17, 12, 0.78);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  color: var(--paper);
  font-size: 0.8rem;
  font-weight: 900;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.game-card-copy {
  padding: 25px 25px 28px;
}

.game-card h3 {
  margin-bottom: 12px;
  color: var(--gold-top);
  font-size: 2rem;
}

.game-card p {
  margin-bottom: 0;
  color: var(--paper-soft);
  font-size: 0.9rem;
  line-height: 1.7;
}

.features-section {
  position: relative;
  overflow: clip;
  background: var(--ink-soft);
}

.features-section::before {
  position: absolute;
  width: 620px;
  height: 620px;
  inset-inline-start: -350px;
  inset-block-start: 50%;
  border: 1px solid rgba(96, 165, 142, 0.09);
  border-radius: 50%;
  box-shadow: 0 0 0 80px rgba(96, 165, 142, 0.018), 0 0 0 160px rgba(96, 165, 142, 0.012);
  content: "";
  transform: translateY(-50%);
}

.features-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(480px, 1.22fr);
  gap: 84px;
}

.features-intro {
  position: sticky;
  inset-block-start: calc(var(--header-height) + 52px);
  align-self: start;
}

.cue-line {
  position: relative;
  width: 90%;
  max-width: 320px;
  height: 6px;
  margin-top: 52px;
  border-radius: 99px;
  background: linear-gradient(90deg, #462913 0 13%, #e2b96e 13% 18%, #6d4122 18% 86%, #d5d1c5 86% 100%);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
  transform: rotate(-8deg);
  transform-origin: center;
}

html[dir="rtl"] .cue-line {
  transform: rotate(8deg);
}

.cue-line span {
  position: absolute;
  width: 11px;
  height: 11px;
  inset-inline-end: -3px;
  inset-block-start: -2.5px;
  border-radius: 50%;
  background: #e8e4da;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.feature-item {
  min-height: 245px;
  padding: 30px;
  border: 1px solid rgba(131, 184, 169, 0.16);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(25, 43, 37, 0.9), rgba(7, 17, 12, 0.7));
  transition: border-color 180ms ease, transform 200ms var(--ease-out), background-color 180ms ease;
}

.feature-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 44px;
  border: 1px solid rgba(222, 183, 41, 0.32);
  border-radius: 12px;
  place-items: center;
  background: rgba(222, 183, 41, 0.07);
  color: var(--gold-top);
}

.feature-icon svg {
  width: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.feature-item h3 {
  margin-bottom: 12px;
  font-size: 1.5rem;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

.feature-item p {
  margin-bottom: 0;
  font-size: 0.88rem;
  line-height: 1.7;
}

.download-section {
  position: relative;
  overflow: hidden;
  background: var(--ink);
}

.download-glow {
  position: absolute;
  width: 740px;
  height: 740px;
  inset-inline-end: -220px;
  inset-block-start: -310px;
  border-radius: 50%;
  background: rgba(96, 165, 142, 0.11);
  filter: blur(40px);
}

.download-card {
  display: grid;
  overflow: hidden;
  padding: 58px 64px;
  border: 1px solid rgba(131, 184, 169, 0.24);
  border-radius: 24px;
  align-items: center;
  grid-template-columns: 260px 1fr;
  gap: 62px;
  background:
    linear-gradient(112deg, rgba(25, 43, 37, 0.96), rgba(13, 30, 23, 0.9)),
    var(--forest-raised);
  box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, 0.04);
}

.download-card::after {
  position: absolute;
  width: 370px;
  height: 370px;
  inset-inline-end: -150px;
  inset-block-end: -240px;
  border: 1px solid rgba(222, 183, 41, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 60px rgba(222, 183, 41, 0.018), 0 0 0 120px rgba(222, 183, 41, 0.012);
  content: "";
}

.download-icon {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border: 1px solid rgba(231, 203, 102, 0.2);
  border-radius: 26%;
  box-shadow: 0 24px 42px rgba(0, 0, 0, 0.34);
  object-fit: contain;
}

.download-copy {
  position: relative;
  z-index: 1;
}

.download-copy > p:not(.eyebrow) {
  max-width: 650px;
  margin-bottom: 28px;
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store-button {
  display: flex;
  min-width: 194px;
  min-height: 64px;
  padding: 10px 18px;
  border: 1px solid rgba(131, 184, 169, 0.28);
  border-radius: 12px;
  align-items: center;
  gap: 13px;
  background: rgba(7, 17, 12, 0.66);
  color: var(--paper);
  transition: border-color 160ms ease, background-color 160ms ease, transform 140ms var(--ease-out);
}

.store-button:active {
  transform: scale(0.97);
}

.store-button svg {
  width: 27px;
  flex: 0 0 auto;
  fill: currentColor;
}

.store-button span {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.store-button small {
  margin-bottom: 4px;
  color: var(--paper-muted);
  font-size: 0.64rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.store-button strong {
  font-size: 1rem;
}

.site-footer {
  border-top: 1px solid rgba(131, 184, 169, 0.12);
  background: #050c08;
}

.footer-inner {
  display: grid;
  min-height: 176px;
  padding-block: 38px;
  align-items: center;
  grid-template-columns: 1fr auto;
  gap: 24px 40px;
}

.footer-brand img {
  width: 128px;
  height: auto;
  margin-bottom: 6px;
}

.footer-brand p,
.copyright {
  margin: 0;
  color: var(--paper-muted);
  font-size: 0.74rem;
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  gap: 22px;
}

.footer-links a {
  color: var(--paper-soft);
  font-size: 0.76rem;
  font-weight: 650;
  transition: color 160ms ease;
}

.copyright {
  grid-column: 1 / -1;
  padding-top: 20px;
  border-top: 1px solid rgba(131, 184, 169, 0.1);
}

.reveal {
  opacity: 1;
  transform: none;
}

.reveal.is-pending {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms var(--ease-out) var(--reveal-delay, 0ms), transform 520ms var(--ease-out) var(--reveal-delay, 0ms);
}

.reveal.is-pending.is-visible {
  opacity: 1;
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--gold-top);
  outline-offset: 4px;
}

@media (hover: hover) and (pointer: fine) {
  .brand:hover {
    opacity: 0.82;
  }

  .nav-links a:hover,
  .nav-links a:focus-visible,
  .footer-links a:hover {
    color: var(--paper);
  }

  .nav-links a:hover::after,
  .nav-links a:focus-visible::after {
    opacity: 1;
    transform: scaleX(1);
  }

  .language-link:hover {
    color: var(--paper);
  }

  .button-gold:hover {
    box-shadow: 0 12px 34px rgba(222, 183, 41, 0.28), inset 0 1px rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
  }

  .button-quiet:hover {
    border-color: rgba(131, 184, 169, 0.52);
    background: rgba(46, 111, 86, 0.2);
    color: var(--paper);
  }

  .game-card:hover,
  .feature-item:hover {
    border-color: rgba(131, 184, 169, 0.38);
    transform: translateY(-5px);
  }

  .game-card:hover {
    box-shadow: 0 24px 52px rgba(0, 0, 0, 0.26);
  }

  .game-card:hover .game-card-image img {
    transform: scale(1.025);
  }

  .store-button:hover {
    border-color: rgba(222, 183, 41, 0.45);
    background: rgba(25, 43, 37, 0.96);
    transform: translateY(-2px);
  }
}

@media (min-width: 901px) and (max-height: 899px) {
  .hero,
  .hero-grid {
    min-height: 100vh;
    min-height: 100svh;
  }
}

@media (max-width: 1080px) {
  .primary-navigation {
    gap: 24px;
  }

  .nav-links {
    gap: 20px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 520px) 1fr;
    gap: 42px;
  }

  .features-grid {
    gap: 52px;
  }

  .download-card {
    grid-template-columns: 220px 1fr;
    gap: 46px;
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 68px;
  }

  body.menu-open {
    overflow: hidden;
  }

  .page-shell {
    width: calc(100% - 36px);
    max-width: 720px;
  }

  .section-pad {
    padding-block: 88px;
  }

  .header-inner {
    width: calc(100% - 30px);
  }

  html:not(.has-js) .site-header {
    position: relative;
    height: auto;
    border-color: rgba(131, 184, 169, 0.18);
    background: var(--ink);
  }

  html:not(.has-js) .header-inner {
    height: auto;
    min-height: var(--header-height);
    flex-wrap: wrap;
  }

  .brand {
    width: 136px;
  }

  html.has-js .menu-toggle {
    display: block;
  }

  html:not(.has-js) .primary-navigation {
    display: grid;
    padding-block: 12px 24px;
    flex: 1 0 100%;
    gap: 24px;
  }

  html.has-js .primary-navigation {
    position: fixed;
    inset: var(--header-height) 0 auto;
    display: grid;
    max-height: calc(100vh - var(--header-height));
    max-height: calc(100svh - var(--header-height));
    padding: 28px 24px 34px;
    overflow-y: auto;
    gap: 28px;
    border-bottom: 1px solid rgba(131, 184, 169, 0.16);
    background: rgba(7, 17, 12, 0.98);
    box-shadow: 0 22px 42px rgba(0, 0, 0, 0.34);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 180ms ease, transform 180ms var(--ease-out), visibility 0s linear 180ms;
    visibility: hidden;
  }

  html.has-js .site-header[data-menu-open="true"] .primary-navigation {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    transition-delay: 0s;
    visibility: visible;
  }

  .nav-links,
  .header-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .nav-links {
    gap: 0;
  }

  .nav-links a {
    padding-block: 14px;
    border-bottom: 1px solid rgba(131, 184, 169, 0.1);
    font-size: 0.92rem;
  }

  .nav-links a::after {
    display: none;
  }

  .header-actions {
    gap: 16px;
  }

  .language-switcher {
    align-self: flex-start;
  }

  .button-small {
    width: 100%;
    min-height: 48px;
  }

  .hero {
    min-height: auto;
  }

  .hero-backdrop img {
    object-position: 50% 36%;
    opacity: 0.38;
  }

  .hero-backdrop::after,
  html[dir="rtl"] .hero-backdrop::after {
    background:
      linear-gradient(180deg, rgba(7, 17, 12, 0.72) 0%, rgba(7, 17, 12, 0.58) 48%, rgba(7, 17, 12, 0.96) 100%),
      rgba(7, 17, 12, 0.18);
  }

  .hero-grid {
    min-height: auto;
    padding-block: calc(var(--header-height) + 76px) 90px;
    grid-template-columns: 1fr;
  }

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

  .hero h1 {
    max-width: 650px;
  }

  .game-cards {
    grid-template-columns: 1fr;
  }

  .game-card {
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .features-intro {
    position: relative;
    inset-block-start: auto;
  }

  .cue-line {
    display: none;
  }

  .download-card {
    padding: 46px;
    grid-template-columns: 180px 1fr;
    gap: 36px;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: calc(100% - 28px);
  }

  .section-pad {
    padding-block: 72px;
  }

  .hero-grid {
    padding-block-start: calc(var(--header-height) + 58px);
  }

  .hero h1,
  html[lang="ar"] .hero h1 {
    font-size: clamp(3.15rem, 15vw, 5.1rem);
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-facts {
    display: grid;
    gap: 10px;
  }

  .section-heading {
    margin-bottom: 36px;
  }

  .section-heading h2,
  .features-intro h2,
  .download-copy h2 {
    font-size: clamp(2.7rem, 12vw, 4rem);
  }

  .game-card {
    display: block;
  }

  .game-card-copy {
    padding: 22px 22px 25px;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .feature-item {
    min-height: 0;
    padding: 25px;
  }

  .feature-icon {
    margin-bottom: 30px;
  }

  .download-card {
    padding: 34px 24px;
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .download-icon {
    width: 132px;
    margin-inline: auto;
  }

  .download-copy .eyebrow {
    justify-content: center;
  }

  .download-copy .eyebrow::after {
    width: 32px;
    height: 1px;
    background: currentColor;
    content: "";
  }

  .download-copy > p:not(.eyebrow) {
    margin-inline: auto;
  }

  .store-buttons {
    display: grid;
  }

  .store-button {
    width: 100%;
    justify-content: center;
    text-align: start;
  }

  .footer-inner {
    padding-block: 34px;
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand img {
    margin-inline: auto;
  }

  .footer-links {
    justify-content: center;
  }

  .copyright {
    grid-column: auto;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-backdrop img {
    transform: none;
  }
}
