:root {
  --ink: #090b18;
  --ink-soft: #101633;
  --ink-lift: #151b3d;
  --violet: #7c3aed;
  --violet-light: #a78bfa;
  --cyan: #00e5ff;
  --gold: #ffcc00;
  --white: #f8fbff;
  --muted: #c9d3f4;
  --line: rgba(214, 229, 255, 0.2);
  --space-xs: clamp(0.5rem, 1vw, 0.75rem);
  --space-sm: clamp(0.8rem, 1.5vw, 1.15rem);
  --space-md: clamp(1.2rem, 2.5vw, 2rem);
  --space-lg: clamp(2rem, 5vw, 4.75rem);
  --space-xl: clamp(3.5rem, 8vw, 7rem);
  --shadow-neon: 0 15px 45px rgba(0, 229, 255, 0.16), 0 16px 55px rgba(124, 58, 237, 0.25);
  --shadow-cta: 0 14px 0 rgba(165, 110, 0, 0.86), 0 20px 38px rgba(255, 204, 0, 0.3);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--ink);
  scroll-behavior: smooth;
}

html[dir="rtl"],
html[dir="rtl"] body {
  font-family: var(--mrc-font-fa);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--white);
  background: var(--ink);
}

button,
a {
  font: inherit;
}

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

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

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 100svh;
  overflow: hidden;
  background: var(--ink);
}

.hero::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(9, 11, 24, 0.52) 0%, rgba(9, 11, 24, 0.1) 52%, rgba(9, 11, 24, 0.72) 100%),
    linear-gradient(135deg, rgba(0, 229, 255, 0.05), transparent 42%);
}

.hero::after {
  position: absolute;
  z-index: 1;
  top: 0;
  right: -10%;
  width: 67%;
  height: 100%;
  content: "";
  pointer-events: none;
  background: linear-gradient(145deg, rgba(124, 58, 237, 0.45), rgba(21, 27, 61, 0.2) 65%, transparent);
  clip-path: polygon(37% 0, 100% 0, 100% 100%, 0 100%);
}

.hero__background {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.83;
}

.hero__background--mobile {
  display: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-areas:
    "brand"
    "copy"
    "visual";
  width: min(100%, 1440px);
  min-height: 100svh;
  margin-inline: auto;
  padding: clamp(1.25rem, 3vw, 2.5rem) clamp(1.1rem, 5.8vw, 6.5rem) clamp(1.5rem, 4vw, 3rem);
}

.brand {
  grid-area: brand;
  align-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: fit-content;
  height: fit-content;
  color: var(--white);
  direction: rtl;
}

.brand__mark {
  display: grid;
  width: 2.15rem;
  aspect-ratio: 1;
  place-items: center;
  color: var(--ink);
  font-size: 1.15rem;
  line-height: 1;
  background: var(--cyan);
  border-radius: 0.45rem 1.1rem 0.45rem 1.1rem;
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.55);
}

.brand__name,
h1,
h2,
.multiplier strong {
  font-family: var(--mrc-font-fa-display);
}

.brand__name {
  font-size: clamp(1.45rem, 2vw, 1.9rem);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero__copy {
  grid-area: copy;
  align-self: center;
  max-width: 43rem;
  padding-top: clamp(2.5rem, 8vh, 5.5rem);
  text-align: right;
}

.hero__eyebrow,
.dialog__eyebrow {
  width: fit-content;
  margin: 0 0 var(--space-sm);
  padding: 0.35rem 0.75rem;
  color: var(--cyan);
  font-size: clamp(0.8rem, 1.2vw, 0.98rem);
  font-weight: 800;
  line-height: 1.4;
  background: rgba(0, 229, 255, 0.09);
  border: 1px solid rgba(0, 229, 255, 0.35);
  border-radius: 999px;
}

.hero h1 {
  max-width: 11ch;
  margin: 0;
  color: var(--white);
  font-size: clamp(2.65rem, 5vw, 5.65rem);
  font-weight: 950;
  line-height: 1.06;
  letter-spacing: -0.055em;
  text-wrap: balance;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.34);
}

.hero__lead {
  max-width: 34rem;
  margin: var(--space-md) 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.27rem);
  font-weight: 500;
  line-height: 1.9;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: clamp(1.8rem, 4vw, 2.8rem);
}

.cta-primary {
  position: relative;
  z-index: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(100%, 20rem);
  min-height: 4.5rem;
  padding: 1.1rem 1.8rem;
  overflow: visible;
  color: #211701;
  font-size: clamp(1.08rem, 1.6vw, 1.32rem);
  font-weight: 950;
  line-height: 1.45;
  text-align: center;
  text-decoration: none;
  background: var(--gold);
  border: 2px solid #ffe278;
  border-radius: 0.8rem;
  box-shadow: var(--shadow-cta);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.cta-primary::before {
  position: absolute;
  z-index: -1;
  inset: -0.7rem;
  content: "";
  pointer-events: none;
  background: rgba(255, 204, 0, 0.22);
  border-radius: 1.2rem;
  filter: blur(11px);
}

.cta-primary:hover {
  background: #ffda36;
  box-shadow: 0 16px 0 rgba(165, 110, 0, 0.86), 0 26px 48px rgba(255, 204, 0, 0.42);
  transform: translateY(-5px);
}

.cta-primary:active {
  box-shadow: 0 7px 0 rgba(165, 110, 0, 0.86), 0 12px 24px rgba(255, 204, 0, 0.26);
  transform: translateY(5px);
}

.cta-secondary {
  min-height: 3rem;
  padding: 0.65rem 0.3rem;
  color: var(--white);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--cyan);
  transition: color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.cta-secondary:hover {
  color: var(--cyan);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.hero__notice {
  margin: 1.35rem 0 0;
  color: rgba(222, 230, 255, 0.78);
  font-size: 0.79rem;
  font-weight: 500;
  line-height: 1.7;
}

.hero__visual {
  position: relative;
  grid-area: visual;
  align-self: end;
  justify-self: center;
  width: min(100%, 33rem);
  min-height: min(113vw, 32rem);
  margin-top: 1.3rem;
  pointer-events: none;
}

.hero__visual::before {
  position: absolute;
  z-index: 0;
  top: 14%;
  right: 8%;
  width: 78%;
  aspect-ratio: 1;
  content: "";
  background: radial-gradient(circle, rgba(124, 58, 237, 0.63), rgba(0, 229, 255, 0.13) 42%, transparent 68%);
  filter: blur(4px);
}

.hero__figure-wrap {
  position: absolute;
  z-index: 2;
  bottom: -1.6rem;
  left: 12%;
  width: min(69vw, 22rem);
  overflow: hidden;
  background: #172144;
  border: 1px solid rgba(229, 238, 255, 0.34);
  border-radius: 2rem 0.5rem 2rem 0.5rem;
  box-shadow: var(--shadow-neon);
  transform: rotate(-2.5deg);
}

.hero__figure-wrap::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(140deg, rgba(0, 229, 255, 0.2), transparent 32%, rgba(124, 58, 237, 0.16));
}

.hero__figure {
  display: block;
  width: 100%;
  aspect-ratio: 1024 / 1500;
  object-fit: cover;
  object-position: center top;
}

.trajectory {
  position: absolute;
  z-index: 1;
  top: 20%;
  right: -3%;
  width: 90%;
  height: 52%;
  border-top: 3px solid var(--cyan);
  border-radius: 50% 50% 0 0;
  filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.9));
  transform: rotate(-27deg) skewX(14deg);
}

.trajectory::before {
  position: absolute;
  top: -0.35rem;
  left: -0.2rem;
  width: 0.7rem;
  height: 0.7rem;
  content: "";
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 14px var(--gold);
}

.trajectory__dot {
  position: absolute;
  width: 0.42rem;
  aspect-ratio: 1;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--cyan);
}

.trajectory__dot--one {
  top: -0.22rem;
  right: 28%;
}

.trajectory__dot--two {
  top: 2.1rem;
  right: 53%;
}

.trajectory__dot--three {
  top: 5.35rem;
  right: 72%;
}

.multiplier {
  position: absolute;
  z-index: 3;
  top: 13%;
  left: 2%;
  display: grid;
  min-width: 8.8rem;
  padding: 0.72rem 0.9rem 0.65rem;
  color: var(--white);
  text-align: center;
  background: rgba(9, 11, 24, 0.82);
  border: 1px solid rgba(0, 229, 255, 0.7);
  border-radius: 0.9rem 0.25rem 0.9rem 0.25rem;
  box-shadow: 0 0 0 5px rgba(0, 229, 255, 0.08), 0 14px 36px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(8px);
  transform: rotate(4deg);
}

.multiplier__label {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
}

.multiplier strong {
  direction: ltr;
  color: var(--gold);
  font-size: clamp(1.8rem, 6.5vw, 2.7rem);
  font-weight: 950;
  line-height: 1.16;
  text-shadow: 0 0 18px rgba(255, 204, 0, 0.34);
}

.game-guide {
  width: min(calc(100% - 2rem), 32rem);
  padding: clamp(1.5rem, 5vw, 2.35rem);
  color: var(--white);
  background: #111936;
  border: 1px solid rgba(0, 229, 255, 0.45);
  border-radius: 1.25rem 0.35rem 1.25rem 0.35rem;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6);
}

.game-guide::backdrop {
  background: rgba(3, 5, 15, 0.78);
  backdrop-filter: blur(6px);
}

.game-guide p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.9;
}

.game-guide h2 {
  margin: 0.4rem 0 0.85rem;
  color: var(--white);
  font-size: clamp(1.7rem, 4vw, 2.2rem);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.game-guide .dialog__eyebrow {
  margin-bottom: 0;
}

.dialog-close {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  display: grid;
  width: 2.7rem;
  height: 2.7rem;
  place-items: center;
  color: var(--white);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.dialog-close:hover {
  color: var(--ink);
  background: var(--cyan);
  transform: rotate(90deg);
}

@media (min-width: 760px) {
  .hero__inner {
    grid-template-areas:
      "brand brand"
      "visual copy";
    grid-template-columns: minmax(22rem, 1.04fr) minmax(22rem, 0.96fr);
    column-gap: clamp(1rem, 4vw, 5rem);
    grid-template-rows: auto 1fr;
  }

  .hero__copy {
    align-self: center;
    padding: 0 0 clamp(2rem, 7vh, 5rem);
  }

  .hero__visual {
    align-self: end;
    width: min(100%, 33rem);
    min-height: min(66vh, 43rem);
    margin-top: 0;
    transform: translateX(7%);
  }

  .hero__figure-wrap {
    bottom: -2.8rem;
    left: 11%;
    width: min(28vw, 23rem);
  }

  .multiplier {
    top: 16%;
    left: -4%;
  }

  .trajectory {
    top: 17%;
  }
}

@media (min-width: 1100px) {
  .hero__inner {
    padding-top: 2.4rem;
  }

  .hero__visual {
    width: min(100%, 37rem);
    min-height: min(73vh, 48rem);
  }

  .hero__figure-wrap {
    width: min(29vw, 26rem);
  }

  .multiplier {
    min-width: 10.8rem;
  }

  .hero__lead {
    max-width: 32rem;
  }
}

@media (max-width: 759px) {
  .hero__background--desktop {
    display: none;
  }

  .hero__background--mobile {
    display: block;
  }

  .hero::after {
    right: -18%;
    width: 118%;
    opacity: 0.74;
    clip-path: polygon(55% 0, 100% 0, 100% 100%, 0 100%);
  }

  .hero__copy {
    padding-top: clamp(2.5rem, 8vh, 4.25rem);
  }

  .hero h1 {
    max-width: 10.5ch;
  }

  .hero__actions {
    display: grid;
    width: 100%;
  }

  .cta-primary {
    width: 100%;
    min-width: 0;
  }

  .cta-secondary {
    justify-self: start;
  }
}

@media (max-width: 390px) {
  .hero__inner {
    padding-inline: 1rem;
  }

  .hero h1 {
    font-size: 2.35rem;
  }

  .hero__visual {
    min-height: 20.5rem;
  }

  .multiplier {
    min-width: 7.9rem;
    padding: 0.58rem 0.65rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .cta-primary::before {
    animation: halo-pulse 3.2s ease-in-out infinite;
  }

  .js-ready .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 650ms ease, transform 650ms cubic-bezier(0.2, 0.8, 0.2, 1);
  }

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

  .js-ready .hero__visual.reveal {
    transition-delay: 110ms;
  }

  .js-ready .hero__copy.reveal {
    transition-delay: 55ms;
  }
}

@keyframes halo-pulse {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(0.95);
  }

  50% {
    opacity: 0.72;
    transform: scale(1.05);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}