:root {
  --ink: #f4f4f1;
  --muted: #a5a7aa;
  --surface: #111317;
  --surface-2: #171a1f;
  --line: rgba(255, 255, 255, 0.12);
  --orange: #ff5a1f;
  --orange-hot: #ff743e;
  --black: #090a0c;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--black);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 85% 40%, rgba(255, 90, 31, 0.07), transparent 35rem),
    var(--black);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 1rem;
  color: #101114;
  background: #fff;
  transform: translateY(-160%);
}

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

.topbar {
  position: absolute;
  z-index: 10;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 3rem));
  margin: 0 auto;
  padding: 1.4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.brand-mark {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  color: #fff;
  background: var(--orange);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.65rem;
  font-weight: 900;
  line-height: 1;
  transform: skewX(-8deg);
  place-items: center;
}

.brand-name {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.07em;
}

.brand-name b {
  color: var(--muted);
  font-weight: 600;
}

nav {
  display: flex;
  gap: 2rem;
}

nav a,
footer > a {
  color: #d7d8da;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

nav a:hover,
nav a:focus-visible,
footer > a:hover,
footer > a:focus-visible {
  color: var(--orange-hot);
}

.hero {
  position: relative;
  display: flex;
  min-height: 790px;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-image,
.hero-shade,
.hero-grid {
  position: absolute;
  inset: 0;
}

.hero-image {
  z-index: -4;
  background-color: #1c1e22;
  background-image: url("./assets/zerra-combat-hero.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.015);
}

.hero-shade {
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(5, 6, 8, 0.97) 0%, rgba(5, 6, 8, 0.83) 35%, rgba(5, 6, 8, 0.15) 70%),
    linear-gradient(0deg, var(--black) 0%, transparent 35%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.52), transparent 28%);
}

.hero-grid {
  z-index: -2;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.35) 1px, transparent 1px);
  background-size: 90px 90px;
  mask-image: linear-gradient(90deg, #000, transparent 73%);
}

.hero-content {
  width: min(1180px, calc(100% - 3rem));
  margin: 0 auto;
  padding-top: 6rem;
}

.eyebrow,
.kicker {
  margin: 0 0 1rem;
  color: var(--orange-hot);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.22em;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.eyebrow span {
  width: 2.4rem;
  height: 2px;
  background: var(--orange);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  line-height: 0.92;
  text-transform: uppercase;
}

h1 {
  max-width: 790px;
  font-size: clamp(4rem, 8.5vw, 7.6rem);
  font-weight: 900;
  letter-spacing: -0.035em;
}

h1 em {
  color: transparent;
  -webkit-text-stroke: 2px var(--orange);
  font-style: normal;
}

.hero-copy {
  max-width: 610px;
  margin: 2rem 0 0;
  color: #c8c9cb;
  font-size: clamp(1rem, 2vw, 1.15rem);
}

.hero-copy strong {
  color: #fff;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  margin-top: 2.4rem;
}

.button {
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.45rem;
  border: 1px solid transparent;
  border-radius: 0;
  font: 700 0.9rem/1 "Inter", sans-serif;
  letter-spacing: 0.025em;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.button-primary {
  color: #fff;
  background: var(--orange);
  box-shadow: 7px 7px 0 rgba(255, 90, 31, 0.18);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--orange-hot);
  transform: translate(-2px, -2px);
}

.release-note {
  color: var(--muted);
  font-size: 0.83rem;
}

.hero-index {
  position: absolute;
  right: max(1.5rem, calc((100% - 1180px) / 2));
  bottom: 4rem;
  display: grid;
  grid-template-columns: auto 90px auto;
  align-items: center;
  gap: 0.85rem;
  font-family: "Barlow Condensed", sans-serif;
}

.hero-index span {
  color: var(--orange);
  font-size: 2rem;
  font-weight: 800;
}

.hero-index i {
  height: 1px;
  background: rgba(255, 255, 255, 0.42);
}

.hero-index small {
  color: #dedede;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.games-section,
.studio-section,
footer {
  width: min(1180px, calc(100% - 3rem));
  margin-right: auto;
  margin-left: auto;
}

.games-section {
  padding: 7rem 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 430px);
  align-items: end;
  gap: 3rem;
  margin-bottom: 3.4rem;
}

.section-heading h2,
.studio-section h2 {
  font-size: clamp(3.1rem, 6vw, 5.7rem);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-heading > p {
  margin: 0 0 0.35rem;
  color: var(--muted);
}

.game-feature {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  min-height: 520px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.game-art {
  min-height: 430px;
  background-color: #24262b;
  background-position: center;
  background-size: cover;
}

.game-art-combat {
  background-image:
    linear-gradient(90deg, transparent 63%, var(--surface) 100%),
    url("./assets/zerra-combat-hero.png");
}

.game-info {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4.2rem);
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.status,
.platform {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.status {
  padding: 0.35rem 0.55rem;
  color: #d6d6d8;
  border: 1px solid #4c5057;
}

.status-active {
  color: var(--orange-hot);
  border-color: rgba(255, 90, 31, 0.5);
  background: rgba(255, 90, 31, 0.08);
}

.platform {
  color: #8c8f94;
}

.game-info h3,
.game-card h3 {
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 900;
}

.game-info > p,
.game-card-copy > p,
.studio-section > p:last-child {
  color: var(--muted);
}

.game-info > p {
  margin: 1.5rem 0 0;
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.5rem 0 2rem;
  padding: 0;
  list-style: none;
}

.feature-list li {
  padding: 0.4rem 0.7rem;
  color: #c5c7ca;
  border: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 600;
}

.button-disabled {
  width: 100%;
  color: #83868b;
  border-color: #34373c;
  background: #202329;
  cursor: not-allowed;
}

.game-card {
  position: relative;
  display: grid;
  grid-template-columns: 120px minmax(280px, 0.9fr) 1.1fr;
  align-items: center;
  min-height: 280px;
  margin-top: 1.2rem;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(110deg, rgba(12, 47, 60, 0.52), transparent 55%),
    var(--surface-2);
}

.game-number {
  align-self: stretch;
  display: grid;
  color: #5f646a;
  border-right: 1px solid var(--line);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2.6rem;
  font-weight: 800;
  place-items: center;
}

.game-card-copy {
  padding: 2.5rem 3rem;
}

.game-card-copy > p {
  max-width: 560px;
  margin: 1.2rem 0 0;
}

.pulse {
  display: grid;
  height: 100%;
  place-items: center;
  opacity: 0.75;
}

.pulse::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 45%;
  height: 100%;
  background: repeating-linear-gradient(90deg, transparent 0 39px, rgba(93, 214, 238, 0.07) 40px);
  content: "";
}

.pulse svg {
  position: relative;
  width: min(90%, 440px);
}

.pulse path {
  fill: none;
  stroke: #5dd6ee;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
  filter: drop-shadow(0 0 8px rgba(93, 214, 238, 0.6));
}

.studio-section {
  position: relative;
  padding: 7rem 0 8rem;
  border-top: 1px solid var(--line);
}

.studio-section::after {
  position: absolute;
  top: 5rem;
  right: 1rem;
  color: rgba(255, 255, 255, 0.025);
  content: "Z";
  font-family: "Barlow Condensed", sans-serif;
  font-size: min(38vw, 29rem);
  font-weight: 900;
  line-height: 0.75;
  pointer-events: none;
}

.studio-section h2 {
  position: relative;
  z-index: 1;
  max-width: 850px;
}

.studio-section > p:last-child {
  position: relative;
  z-index: 1;
  max-width: 650px;
  margin: 2rem 0 0;
  font-size: 1.05rem;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  padding: 2.2rem 0;
  border-top: 1px solid var(--line);
}

footer p {
  margin: 0;
  color: #777b80;
  font-size: 0.78rem;
  text-align: center;
}

footer > a:last-child {
  justify-self: end;
}

@media (max-width: 850px) {
  .topbar,
  .hero-content,
  .games-section,
  .studio-section,
  footer {
    width: min(100% - 2rem, 680px);
  }

  .hero {
    min-height: 720px;
  }

  .hero-image {
    background-position: 62% center;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(5, 6, 8, 0.95), rgba(5, 6, 8, 0.3)),
      linear-gradient(0deg, var(--black), transparent 45%);
  }

  .hero-index {
    display: none;
  }

  .section-heading,
  .game-feature {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: start;
    gap: 1rem;
  }

  .game-art {
    min-height: 360px;
  }

  .game-art-combat {
    background-image:
      linear-gradient(0deg, var(--surface), transparent 55%),
      url("./assets/zerra-combat-hero.png");
  }

  .game-card {
    grid-template-columns: 72px 1fr;
  }

  .pulse {
    display: none;
  }
}

@media (max-width: 560px) {
  .topbar {
    padding-top: 1rem;
  }

  .brand-name {
    font-size: 1rem;
  }

  nav {
    gap: 1rem;
  }

  nav a {
    font-size: 0.8rem;
  }

  .hero {
    min-height: 700px;
  }

  .hero-image {
    background-position: 69% center;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(5, 6, 8, 0.94), rgba(5, 6, 8, 0.48)),
      linear-gradient(0deg, var(--black), transparent 52%);
  }

  h1 {
    font-size: clamp(3.8rem, 19vw, 5.8rem);
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .games-section {
    padding: 5rem 0;
  }

  .game-art {
    min-height: 260px;
  }

  .game-info {
    padding: 2rem 1.35rem;
  }

  .status-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.55rem;
  }

  .game-card {
    display: block;
  }

  .game-number {
    display: block;
    padding: 1rem 1.35rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.7rem;
  }

  .game-card-copy {
    padding: 2rem 1.35rem;
  }

  .studio-section {
    padding: 5rem 0 6rem;
  }

  footer {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  footer p {
    text-align: left;
  }

  footer > a:last-child {
    justify-self: start;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
