:root {
  color-scheme: dark;
  --bg: #070b12;
  --surface: #0d131d;
  --surface-soft: #121a26;
  --text: #f5f7fa;
  --muted: #a0a9b8;
  --line: rgba(255, 255, 255, 0.12);
  --cyan: #18c8ff;
  --cyan-strong: #00aee8;
  --green: #53efad;
  --orange: #ff6b2c;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--text);
  color: var(--bg);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

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

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 50%;
  width: min(calc(100% - 48px), var(--max));
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  transform: translateX(-50%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 0.9rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.brand strong {
  color: var(--cyan);
}

.brand-mark {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(24, 200, 255, 0.75);
  background: rgba(24, 200, 255, 0.1);
  color: var(--cyan);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-header nav a {
  color: #dbe1e8;
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
  color: var(--cyan);
}

.site-header .nav-cta {
  padding: 10px 16px;
  border: 1px solid rgba(24, 200, 255, 0.65);
  color: var(--cyan);
}

.hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(440px, 0.92fr);
  align-items: center;
  gap: 72px;
  padding: 136px max(24px, calc((100vw - var(--max)) / 2)) 72px;
  isolation: isolate;
}

.hero-backdrop {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 11, 18, 0.98) 0%, rgba(7, 11, 18, 0.9) 42%, rgba(7, 11, 18, 0.26) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 35%),
    url("assets/nexo-dojo.png") center / cover no-repeat;
  filter: saturate(0.86) contrast(1.06);
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to right, black, transparent 70%);
}

.hero-content {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--cyan);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 24px;
  height: 2px;
  background: currentColor;
}

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

h1,
h2 {
  margin-bottom: 24px;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-weight: 400;
  letter-spacing: 0.015em;
  line-height: 0.91;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(4.3rem, 8vw, 7.9rem);
}

h1 em {
  color: transparent;
  font-style: normal;
  -webkit-text-stroke: 1.5px var(--cyan);
  text-shadow: 0 0 35px rgba(24, 200, 255, 0.22);
}

.hero-copy {
  max-width: 570px;
  margin-bottom: 32px;
  color: #c1c8d1;
  font-size: clamp(1rem, 1.5vw, 1.16rem);
}

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

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 22px;
  border: 1px solid transparent;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--cyan);
  color: #031018;
  box-shadow: 0 10px 40px rgba(24, 200, 255, 0.18);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #66dcff;
}

.button-ghost {
  border-color: var(--line);
  background: rgba(7, 11, 18, 0.55);
}

.button-ghost:hover,
.button-ghost:focus-visible {
  border-color: rgba(255, 255, 255, 0.38);
}

.fight-preview {
  position: relative;
  min-height: 510px;
  align-self: end;
}

.arena-glow {
  position: absolute;
  right: 5%;
  bottom: 42px;
  width: 400px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(24, 200, 255, 0.42), transparent 67%);
  filter: blur(18px);
}

.hero-lineup {
  position: absolute;
  inset: 0;
}

.hero-fighter,
.card-fighter-sprite {
  position: absolute;
  width: 128px;
  height: 96px;
  background-position: left center;
  background-repeat: no-repeat;
  background-size: 512px 96px;
  image-rendering: pixelated;
  animation: idle-frames 850ms steps(4) infinite;
}

.hero-fighter {
  bottom: 52px;
  transform-origin: bottom center;
}

.hero-vertice {
  z-index: 1;
  left: 8px;
  background-image: url("assets/vertice-idle.png");
  filter: drop-shadow(0 20px 15px rgba(83, 239, 173, 0.28));
  transform: scale(2.4);
  animation-delay: -210ms;
}

.hero-nexo {
  z-index: 5;
  left: 148px;
  background-image: url("assets/nexo-idle.png");
  filter: drop-shadow(0 24px 18px rgba(24, 200, 255, 0.34));
  transform: scale(3.35);
}

.hero-tita {
  z-index: 2;
  right: -38px;
  background-image: url("assets/tita-idle.png");
  filter: drop-shadow(0 20px 15px rgba(255, 107, 44, 0.3));
  transform: scale(2.55);
  animation-delay: -430ms;
}

@keyframes idle-frames {
  to { background-position: -512px center; }
}

.fighter-tag {
  position: absolute;
  right: 0;
  bottom: 0;
  min-width: 190px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  border-left: 3px solid var(--cyan);
  background: rgba(7, 11, 18, 0.88);
  backdrop-filter: blur(10px);
}

.fighter-tag > span {
  color: var(--cyan);
  font-family: Impact, sans-serif;
  font-size: 1.75rem;
}

.fighter-tag div {
  display: grid;
}

.fighter-tag strong {
  text-transform: uppercase;
}

.fighter-tag small {
  color: var(--muted);
}

.quick-facts {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-bottom: 0;
  background: var(--surface);
}

.quick-facts article {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 24px;
  border-right: 1px solid var(--line);
}

.quick-facts article:last-child {
  border-right: 0;
}

.quick-facts strong {
  color: var(--cyan);
  font-family: Impact, sans-serif;
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.quick-facts span {
  color: var(--muted);
  font-size: 0.77rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  padding: 118px 0;
}

.section-heading {
  margin-bottom: 48px;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 80px;
  align-items: end;
}

h2 {
  font-size: clamp(3.4rem, 6vw, 5.8rem);
}

.section-heading > p,
.game-copy > p {
  color: var(--muted);
  font-size: 1.02rem;
}

.fighter-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.fighter-card {
  grid-column: span 2;
  position: relative;
  min-height: 380px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, var(--surface-soft), #080d14);
  isolation: isolate;
}

.fighter-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto -20% -32% 20%;
  height: 70%;
  border-radius: 50%;
  background: var(--fighter-color);
  opacity: 0.12;
  filter: blur(38px);
}

.fighter-nexo { --fighter-color: var(--cyan); }
.fighter-vertice { --fighter-color: var(--green); }
.fighter-tita { --fighter-color: var(--orange); }

.fighter-number {
  position: relative;
  z-index: 2;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
}

.card-fighter-sprite {
  z-index: 1;
  top: 46px;
  right: 25px;
  transform: scale(2.55);
  transform-origin: top right;
}

.card-nexo {
  background-image: url("assets/nexo-idle.png");
  filter: drop-shadow(0 14px 9px rgba(24, 200, 255, 0.32));
}

.card-vertice {
  background-image: url("assets/vertice-idle.png");
  filter: drop-shadow(0 14px 9px rgba(83, 239, 173, 0.32));
  animation-delay: -210ms;
}

.card-tita {
  background-image: url("assets/tita-idle.png");
  filter: drop-shadow(0 14px 9px rgba(255, 107, 44, 0.34));
  animation-delay: -430ms;
}

.fighter-card p {
  position: relative;
  z-index: 2;
  margin-bottom: 7px;
  color: var(--fighter-color);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.fighter-card h3 {
  position: relative;
  z-index: 2;
  margin-bottom: 6px;
  font-family: Impact, sans-serif;
  font-size: 3.1rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.fighter-card div > span {
  color: var(--muted);
}

.game-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 70px;
  align-items: center;
  border-top: 1px solid var(--line);
}

.stage-slider {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface) url("assets/nexo-dojo.png") center / cover no-repeat;
  box-shadow: 18px 18px 0 rgba(24, 200, 255, 0.08);
}

.stage-slide {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  animation: stage-cycle 28s linear infinite;
}

.stage-slide::before,
.stage-slide::after {
  content: "";
  position: absolute;
  inset: 0;
}

.stage-slide::before {
  background: var(--stage-image) center / cover no-repeat;
  transform: scale(1.055);
  animation: stage-drift 15s ease-in-out infinite alternate;
}

.stage-slide::after {
  background:
    linear-gradient(180deg, transparent 45%, rgba(4, 8, 13, 0.88) 100%),
    linear-gradient(90deg, rgba(4, 8, 13, 0.18), transparent 50%);
}

.stage-nexo {
  --stage-image: url("assets/nexo-dojo.png");
  --stage-color: var(--cyan);
  animation-delay: 0s;
}

.stage-vertice {
  --stage-image: url("assets/vertice-rooftops.png");
  --stage-color: var(--green);
  animation-delay: 4s;
}

.stage-tita {
  --stage-image: url("assets/tita-forge.png");
  --stage-color: var(--orange);
  animation-delay: 8s;
}

.stage-jaru-street {
  --stage-image: url("assets/jaru-street.png");
  --stage-color: #cd7048;
  animation-delay: 12s;
}

.stage-jaru-parish {
  --stage-image: url("assets/jaru-parish.png");
  --stage-color: #eccc78;
  animation-delay: 16s;
}

.stage-jaru-fig-tree {
  --stage-image: url("assets/jaru-fig-tree.png");
  --stage-color: #e4a848;
  animation-delay: 20s;
}

.stage-jiparana {
  --stage-image: url("assets/jiparana-corner.png");
  --stage-color: #e2483a;
  animation-delay: 24s;
}

.stage-caption {
  position: absolute;
  z-index: 2;
  right: 24px;
  bottom: 24px;
  left: 24px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  gap: 2px 14px;
  padding-left: 16px;
  border-left: 3px solid var(--stage-color);
  text-shadow: 0 2px 12px #000;
}

.stage-caption span {
  grid-row: 1 / 3;
  align-self: center;
  color: var(--stage-color);
  font-family: Impact, sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
}

.stage-caption strong {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stage-caption small {
  color: #c8cdd5;
}

@keyframes stage-drift {
  from { transform: scale(1.055) translateX(-0.7%); }
  to { transform: scale(1.01) translateX(0.7%); }
}

@keyframes stage-cycle {
  0% { opacity: 0; }
  1% { opacity: 1; }
  12% { opacity: 1; }
  16%, 100% { opacity: 0; }
}

.game-copy ul {
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 13px;
  list-style: none;
}

.game-copy li {
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
  color: #d5dae1;
}

.game-copy li span {
  margin-right: 10px;
  color: var(--cyan);
}

.download-section {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto 72px;
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 80px;
  align-items: center;
  padding: 70px;
  border: 1px solid rgba(24, 200, 255, 0.28);
  background:
    radial-gradient(circle at 12% 12%, rgba(24, 200, 255, 0.13), transparent 35%),
    var(--surface);
}

.download-section h2 {
  margin-bottom: 0;
}

.download-card {
  padding-left: 44px;
  border-left: 1px solid var(--line);
}

.download-meta {
  margin-bottom: 26px;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 18px;
}

.download-meta span {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.download-meta strong {
  color: var(--text);
  font-size: 0.86rem;
  letter-spacing: 0.03em;
}

.download-button {
  width: 100%;
}

.download-card small {
  margin-top: 13px;
  display: block;
  color: var(--muted);
  text-align: center;
}

.download-checksum {
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.download-checksum code {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.68rem;
}

footer {
  width: min(calc(100% - 48px), var(--max));
  min-height: 112px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.76rem;
}

footer p {
  margin: 0;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-top: 150px;
  }

  .fight-preview {
    width: min(100%, 600px);
    min-height: 420px;
    justify-self: end;
  }

  .quick-facts {
    grid-template-columns: 1fr 1fr;
    margin-inline: 24px;
  }

  .fighter-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .fighter-card {
    grid-column: span 1;
  }

  .fighter-card:last-child {
    grid-column: 1 / -1;
  }

  .quick-facts article:nth-child(2) {
    border-right: 0;
  }

  .quick-facts article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

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

  .section-heading,
  .game-section,
  .download-section {
    gap: 38px;
  }

  .download-card {
    padding: 36px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 720px) {
  .site-header {
    width: min(calc(100% - 32px), var(--max));
  }

  .site-header nav a:not(.nav-cta) {
    display: none;
  }

  .hero {
    min-height: 760px;
    padding-inline: 18px;
  }

  h1 {
    font-size: clamp(3.6rem, 18vw, 5.4rem);
  }

  .fight-preview {
    min-height: 335px;
  }

  .hero-vertice {
    left: 11%;
    transform: scale(1.55);
  }

  .hero-nexo {
    left: calc(50% - 64px);
    transform: scale(2.2);
  }

  .hero-tita {
    right: -2%;
    transform: scale(1.55);
  }

  .quick-facts {
    margin-inline: 16px;
  }

  .quick-facts article {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px;
  }

  .section,
  .download-section,
  footer {
    width: calc(100% - 32px);
  }

  .section {
    padding: 82px 0;
  }

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

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

  .fighter-card,
  .fighter-card:last-child {
    grid-column: span 1;
  }

  .fighter-card {
    min-height: 310px;
  }

  .fighter-card > div:last-child {
    position: relative;
    z-index: 3;
    max-width: 58%;
  }

  .fighter-card div > span {
    display: block;
  }

  .stage-slider {
    min-height: 300px;
  }

  .download-section {
    padding: 42px 24px;
  }

  .download-meta {
    grid-template-columns: 1fr;
  }

  footer {
    padding: 32px 0;
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  .stage-slide {
    animation: none !important;
    opacity: 0;
  }

  .stage-slide::before {
    animation: none !important;
    transform: none;
  }

  .stage-nexo {
    opacity: 1;
  }
}
