:root {
  --ink: #090a12;
  --ink-soft: #15172a;
  --violet: #6d28d9;
  --cyan: #00d9ff;
  --paper: #f5f7ff;
  --amber: #f2b24b;
  --amber-bright: #ffd47a;
  --copper: #b96528;
  --line: rgba(245, 247, 255, 0.16);
  --line-faint: rgba(245, 247, 255, 0.08);
  --muted: rgba(245, 247, 255, 0.7);
  --shadow-deep: 0 24px 70px rgba(0, 0, 0, 0.38);
  --space-edge: clamp(1.25rem, 5vw, 5.8rem);
  --font-body: var(--mrc-font-fa);
  --font-display: var(--mrc-font-fa-display);
}

* {
  box-sizing: border-box;
}

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

body {
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  color: var(--paper);
  background-color: var(--ink);
  background-image:
    linear-gradient(90deg, rgba(9, 10, 18, 0.87), rgba(9, 10, 18, 0.32)),
    url("../img/bg-mobile.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  font-family: var(--font-body);
  font-weight: 400;
  text-align: right;
}

a {
  color: inherit;
}

.page-shell {
  position: relative;
  display: grid;
  min-height: 100svh;
  grid-template-rows: 1fr auto;
  isolation: isolate;
}

.page-shell::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 84% 16%, rgba(109, 40, 217, 0.18), transparent 29rem),
    radial-gradient(circle at 14% 73%, rgba(0, 217, 255, 0.08), transparent 27rem),
    linear-gradient(180deg, rgba(9, 10, 18, 0.16), rgba(9, 10, 18, 0.72));
}

main {
  display: grid;
  min-height: 0;
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100svh - 3.75rem);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

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

.hero::before {
  top: 0;
  bottom: 0;
  right: clamp(1.25rem, 5vw, 5.8rem);
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--line), transparent);
}

.hero::after {
  right: 0;
  bottom: 10%;
  width: min(47vw, 37rem);
  height: min(47vw, 37rem);
  background: radial-gradient(circle, rgba(242, 178, 75, 0.09), transparent 68%);
  filter: blur(12px);
}

.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.76;
  background-image:
    linear-gradient(90deg, transparent 0, transparent calc(100% - 1px), var(--line-faint) calc(100% - 1px)),
    linear-gradient(180deg, transparent 0, transparent calc(100% - 1px), rgba(245, 247, 255, 0.045) calc(100% - 1px));
  background-size: 25% 100%, 100% 5.8rem;
  mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
}

.hero-layout {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 100%;
  grid-template-columns: 1.25rem minmax(0, 1fr) 1.25rem;
  align-items: center;
  direction: ltr;
}

.hero-copy {
  z-index: 2;
  grid-column: 2;
  padding: clamp(4.4rem, 11vh, 7.5rem) 0 clamp(3.5rem, 8vh, 5.5rem);
  direction: rtl;
}

.hero-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 clamp(1.35rem, 3.4vh, 2.5rem);
  color: rgba(245, 247, 255, 0.72);
  font-size: clamp(0.72rem, 1vw, 0.86rem);
  font-weight: 600;
  letter-spacing: 0.025em;
}

.hero-mark span {
  display: block;
  width: 1.85rem;
  height: 1px;
  background: var(--amber);
  box-shadow: 0 0 14px rgba(242, 178, 75, 0.8);
}

.hero-mark b {
  padding-right: 0.65rem;
  border-right: 1px solid rgba(242, 178, 75, 0.56);
  color: var(--amber-bright);
  font-family: var(--font-display);
  font-weight: 500;
}

h1 {
  max-width: 12ch;
  margin: 0;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: clamp(3.25rem, 11.6vw, 9.7rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.95;
  text-wrap: balance;
  text-shadow: 0 8px 35px rgba(0, 0, 0, 0.45);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  h1 {
    color: transparent;
    background:
      linear-gradient(108deg, var(--paper) 0%, var(--paper) 29%, var(--amber-bright) 47%, var(--amber) 58%, var(--paper) 70%);
    background-size: 220% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-stroke: 1px rgba(245, 247, 255, 0.14);
    animation: title-shimmer 10s ease-in-out infinite;
  }
}

.hero-description {
  max-width: 33rem;
  margin: clamp(1.45rem, 3.2vh, 2.4rem) 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.24rem);
  font-weight: 450;
  line-height: 2;
}

.hero-action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.15rem;
  margin-top: clamp(1.8rem, 4.5vh, 3rem);
}

.ready-note {
  position: relative;
  padding-right: 0.95rem;
  color: rgba(245, 247, 255, 0.62);
  font-size: 0.88rem;
  font-weight: 500;
}

.ready-note::before {
  position: absolute;
  top: 50%;
  right: 0;
  width: 0.32rem;
  height: 0.32rem;
  border: 1px solid var(--amber);
  content: "";
  transform: translateY(-50%) rotate(45deg);
}

.primary-cta {
  position: relative;
  display: inline-flex;
  min-width: min(100%, 12.8rem);
  min-height: 3.5rem;
  overflow: hidden;
  border: 1px solid var(--amber);
  background: rgba(9, 10, 18, 0.28);
  box-shadow: inset 0 0 0 1px rgba(255, 212, 122, 0.12), 0 8px 30px rgba(0, 0, 0, 0.19);
  color: var(--amber-bright);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: background-color 220ms ease, color 220ms ease, border-color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.primary-cta::after {
  position: absolute;
  top: -100%;
  bottom: -100%;
  left: -33%;
  width: 18%;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-22deg) translateX(-340%);
}

.cta-label {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.05rem;
}

.cta-icon {
  display: grid;
  width: 3.45rem;
  place-items: center;
  border-right: 1px solid rgba(9, 10, 18, 0.2);
  background: var(--amber);
  color: var(--ink);
  font-family: Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  transition: background-color 220ms ease, color 220ms ease;
}

.primary-cta:hover {
  border-color: var(--amber-bright);
  background: var(--amber);
  box-shadow: 0 10px 35px rgba(242, 178, 75, 0.25);
  color: var(--ink);
  transform: translateY(-2px);
}

.primary-cta:hover .cta-icon {
  background: var(--ink);
  color: var(--amber-bright);
}

.primary-cta:hover::after {
  animation: cta-sheen 680ms ease-out 1;
}

.primary-cta:active {
  transform: translateY(0);
}

.primary-cta:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 4px;
}

.hero-art-wrap {
  position: absolute;
  z-index: 1;
  top: auto;
  bottom: clamp(2rem, 8vh, 6rem);
  left: -6rem;
  width: min(78vw, 31rem);
  pointer-events: none;
}

.hero-art {
  display: block;
  width: 100%;
  opacity: 0.42;
  mix-blend-mode: screen;
  filter: saturate(0.92) contrast(1.1);
  transform: rotate(-8deg);
}

.art-caption {
  position: absolute;
  right: 12%;
  bottom: 7%;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(245, 247, 255, 0.6);
  direction: rtl;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.art-caption i {
  display: block;
  width: 2.5rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--amber));
}

.site-footer {
  display: flex;
  min-height: 3.75rem;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.75rem var(--space-edge);
  border-top: 1px solid rgba(245, 247, 255, 0.07);
  background: rgba(9, 10, 18, 0.58);
  color: rgba(245, 247, 255, 0.5);
  font-size: 0.72rem;
  font-weight: 500;
}

.footer-rule {
  display: block;
  width: 1.7rem;
  height: 1px;
  background: rgba(242, 178, 75, 0.56);
}

@keyframes title-shimmer {
  0%,
  58% {
    background-position: 0% center;
  }

  78%,
  100% {
    background-position: 100% center;
  }
}

@keyframes cta-sheen {
  from {
    transform: skewX(-22deg) translateX(-340%);
  }

  to {
    transform: skewX(-22deg) translateX(900%);
  }
}

@media (min-width: 600px) {
  body {
    background-image:
      linear-gradient(90deg, rgba(9, 10, 18, 0.89), rgba(9, 10, 18, 0.31)),
      url("../img/bg-desktop.jpg");
  }

  .hero-layout {
    grid-template-columns: var(--space-edge) minmax(0, 1fr) var(--space-edge);
  }

  .hero-art-wrap {
    left: -2rem;
    width: min(52vw, 34rem);
  }
}

@media (min-width: 880px) {
  .hero {
    min-height: calc(100svh - 4rem);
  }

  .hero-grid {
    background-size: 8.333% 100%, 100% 7.25rem;
  }

  .hero-layout {
    grid-template-columns: minmax(2rem, 1fr) repeat(12, minmax(0, 5.9rem)) minmax(2rem, 1fr);
    column-gap: clamp(0.8rem, 1.6vw, 1.75rem);
  }

  .hero-copy {
    grid-column: 8 / 14;
    padding-top: clamp(4rem, 13vh, 10rem);
    padding-bottom: clamp(4rem, 11vh, 8rem);
  }

  .hero-art-wrap {
    bottom: clamp(2rem, 8vh, 6.5rem);
    left: clamp(-4rem, 1vw, 1rem);
    width: min(42vw, 37rem);
  }

  .hero::before {
    right: calc(var(--space-edge) + 17.5%);
  }

  h1 {
    max-width: 7.8ch;
  }
}

@media (min-width: 1220px) {
  .hero-copy {
    grid-column: 8 / 14;
  }

  .hero-art-wrap {
    left: max(-1rem, calc((100vw - 88rem) / 2));
    width: min(38vw, 38rem);
  }
}

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

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