:root {
  --bg: #f3f4f6;
  --bg-2: #e7e9ee;
  --ink: #0c0e12;
  --mute: #5b6472;
  --line: rgba(12, 14, 18, 0.12);
  --signal: #e11d2e;
  --signal-2: #ff3b4a;
  --display: "Archivo Black", Impact, sans-serif;
  --body: "Space Grotesk", system-ui, sans-serif;
  --pad: clamp(1.1rem, 4vw, 3rem);
  --max: 1080px;
  --ease: cubic-bezier(0.2, 0.9, 0.2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--body);
  background:
    linear-gradient(180deg, #f7f8fa 0%, var(--bg) 40%, #eceef3 100%);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 50;
}
.skip:focus { left: 1rem; top: 1rem; }

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem var(--pad);
  background: rgba(243, 244, 246, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav__logo {
  font-family: var(--display);
  letter-spacing: 0.08em;
  font-size: 1.25rem;
}

.nav__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--mute);
  justify-content: flex-end;
}
.nav__links a { transition: color 160ms var(--ease); }
.nav__links a:hover,
.nav__links a:focus-visible { color: var(--ink); }
.nav__links a:focus-visible { outline: 2px solid var(--signal); outline-offset: 4px; }

.hero {
  position: relative;
  min-height: min(100svh, 880px);
  display: grid;
  align-items: end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero--compact {
  min-height: min(72svh, 640px);
}

.hero__stage {
  position: absolute;
  inset: 0;
  color: var(--ink);
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 72%);
}

.hero__mark {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.9;
}

.ring-a { transform-origin: 620px 360px; animation: thump 2.6s var(--ease) infinite; }
.ring-b { transform-origin: 820px 360px; animation: thump 2.6s var(--ease) 0.18s infinite; }
.pulse { animation: tick 2.6s var(--ease) infinite; }

.hero__content {
  position: relative;
  z-index: 1;
  padding: clamp(5rem, 14vh, 8rem) var(--pad) clamp(2.4rem, 6vh, 3.5rem);
  max-width: 760px;
}

.hero__brand {
  margin: 0 0 0.55rem;
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  letter-spacing: 0.04em;
  color: var(--signal);
  animation: up 0.8s var(--ease) both;
}

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.8rem, 9vw, 5.6rem);
  line-height: 0.94;
  letter-spacing: -0.02em;
  text-wrap: balance;
  animation: up 0.9s var(--ease) 0.08s both;
}

.hero__text {
  margin: 1rem 0 0;
  max-width: 34rem;
  color: var(--mute);
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 500;
  text-wrap: pretty;
  animation: up 0.9s var(--ease) 0.16s both;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.5rem;
  animation: up 0.9s var(--ease) 0.24s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.2rem;
  border: 1.5px solid transparent;
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 160ms var(--ease), background 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.btn--solid {
  background: var(--ink);
  color: #fff;
}
.btn--solid:hover { background: var(--signal); }

.btn--line {
  border-color: var(--ink);
  background: transparent;
}
.btn--line:hover {
  background: var(--ink);
  color: #fff;
}

.rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}
.rail > div {
  padding: 1.15rem var(--pad);
  border-right: 1px solid var(--line);
}
.rail > div:last-child { border-right: 0; }
.rail b {
  display: block;
  font-family: var(--display);
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}
.rail span {
  color: var(--mute);
  font-size: 0.9rem;
  font-weight: 500;
}

.section {
  padding: clamp(3rem, 8vh, 5rem) var(--pad);
  max-width: calc(var(--max) + 2 * var(--pad));
  margin: 0 auto;
}

.section__head {
  max-width: 32rem;
  margin-bottom: 2rem;
}
.section__head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  letter-spacing: -0.02em;
  line-height: 0.95;
  text-wrap: balance;
}
.section__head p {
  margin: 0.7rem 0 0;
  color: var(--mute);
  font-weight: 500;
  text-wrap: pretty;
}

.mods {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.mod {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem 1.25rem;
  align-items: center;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
  transition: color 160ms var(--ease);
}
.mod:hover .mod__name { color: var(--signal); }

.mod__idx {
  font-family: var(--display);
  color: var(--signal);
  font-size: 1.1rem;
  min-width: 2.2rem;
}

.mod__meta { min-width: 0; }
.mod__game {
  margin: 0 0 0.25rem;
  color: var(--mute);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.mod__name {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  transition: color 160ms var(--ease);
}
.mod__text {
  margin: 0.35rem 0 0;
  color: var(--mute);
  font-weight: 500;
  text-wrap: pretty;
}

.mod__side {
  display: grid;
  justify-items: end;
  gap: 0.35rem;
  text-align: right;
}
.mod__ver {
  font-family: var(--display);
  font-size: 1rem;
}
.mod__status {
  color: var(--mute);
  font-size: 0.85rem;
  font-weight: 600;
}
.mod__status.is-live { color: var(--signal); }

.panel {
  padding: clamp(1.5rem, 4vw, 2.4rem);
  border: 1px solid var(--line);
  background: #fff;
}
.panel--dark {
  background: var(--ink);
  color: #f5f6f8;
  border: 0;
}
.panel__kicker {
  margin: 0;
  font-family: var(--display);
  color: var(--signal);
  letter-spacing: 0.04em;
}
.panel--dark .panel__kicker { color: var(--signal-2); }
.panel h2 {
  margin: 0.35rem 0 0;
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: -0.02em;
  line-height: 0.95;
}
.panel p {
  margin: 0.8rem 0 1.25rem;
  max-width: 36rem;
  color: var(--mute);
  font-weight: 500;
  text-wrap: pretty;
}
.panel--dark p { color: #a7b0bd; }
.panel__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}
.panel--dark .btn--solid { background: var(--signal); }
.panel--dark .btn--line {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}
.panel--dark .btn--line:hover {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

.steps {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  color: var(--mute);
  font-weight: 500;
  text-wrap: pretty;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--display);
  color: var(--ink);
  font-size: 1.15rem;
  line-height: 1.3;
}
.steps li:last-child { border-bottom: 1px solid var(--line); }

.log {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.log__item {
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}
.log__item header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.55rem 1rem;
  margin-bottom: 0.7rem;
}
.log__item b {
  font-family: var(--display);
  font-size: 1.35rem;
  color: var(--signal);
}
.log__item time {
  color: var(--mute);
  font-size: 0.9rem;
  font-weight: 600;
}
.log__item header span {
  flex: 1 1 12rem;
  font-weight: 700;
}
.log__item ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}
.log__item li {
  position: relative;
  padding-left: 1rem;
  color: var(--mute);
  font-weight: 500;
}
.log__item li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.35rem;
  height: 0.35rem;
  background: var(--signal);
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.4rem var(--pad) 2rem;
  border-top: 1px solid var(--line);
  color: var(--mute);
  font-weight: 500;
}
.foot__links {
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
}
.foot a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

@keyframes up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes thump {
  0%, 100% { transform: scale(1); }
  45% { transform: scale(1.035); }
  60% { transform: scale(0.992); }
}
@keyframes tick {
  0%, 100% { opacity: 0.25; }
  45% { opacity: 1; }
}

@media (max-width: 820px) {
  .rail { grid-template-columns: 1fr 1fr; }
  .rail > div:nth-child(2) { border-right: 0; }
  .mod {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .mod__side {
    grid-column: 2;
    justify-items: start;
    text-align: left;
  }
}

@media (max-width: 560px) {
  .rail { grid-template-columns: 1fr; }
  .rail > div { border-right: 0; }
  .hero__actions,
  .panel__btns { flex-direction: column; }
  .btn { width: 100%; }
  .hero__mark { opacity: 0.4; transform: scale(1.2); transform-origin: 75% 40%; }
  .nav__links { gap: 0.85rem; font-size: 0.88rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ring-a, .ring-b, .pulse,
  .hero__brand, .hero h1, .hero__text, .hero__actions,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
  }
}
