@font-face {
  font-family: 'Archivo';
  src: url('/assets/fonts/archivo-latin-standard-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

@font-face {
  font-family: 'Pixelify Sans';
  src: url('/assets/fonts/pixelify-sans-latin-wght-normal.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --bg: #100e0c;
  --bg-2: #171411;
  --bg-3: #1f1b17;
  --line: rgba(243, 236, 224, 0.1);
  --line-2: rgba(243, 236, 224, 0.2);
  --text: #f3ece0;
  --muted: #a99f90;
  --dim: #766d61;
  --accent: #f6a52b;
  --accent-hover: #ffb744;
  --on-accent: #1d1307;
  --green: #5fd37a;
  --red: #ee6b5c;
  --sans: 'Archivo', 'Segoe UI', system-ui, sans-serif;
  --pixel: 'Pixelify Sans', 'Archivo', monospace;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

h1,
h2,
h3 {
  margin: 0;
  font-weight: 800;
  font-stretch: 116%;
  letter-spacing: -0.025em;
  line-height: 1;
  text-wrap: balance;
}

p {
  margin: 0;
}

code {
  font-family: var(--pixel);
  font-size: 0.95em;
  color: var(--text);
  letter-spacing: 0.02em;
}

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: square;
  flex: none;
}

.muted {
  color: var(--muted);
}

.wrap {
  width: min(1180px, 100% - 48px);
  margin-inline: auto;
}

.skip {
  position: absolute;
  top: -80px;
  left: 16px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
}

.skip:focus {
  top: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 6px;
  font: inherit;
  font-weight: 700;
  font-stretch: 105%;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 150ms, border-color 150ms, color 150ms, transform 150ms;
}

.btn:active {
  transform: translateY(1px);
}

.btn-small {
  height: 38px;
  padding: 0 16px;
  font-size: 15px;
}

.btn-big {
  height: 54px;
  padding: 0 24px;
  font-size: 17px;
}

.btn-accent {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.22);
}

.btn-accent:hover {
  background: var(--accent-hover);
}

.btn.is-off,
.btn.is-off:hover {
  background: var(--bg-3);
  color: var(--muted);
  box-shadow: inset 0 0 0 1px var(--line-2);
  cursor: not-allowed;
  transform: none;
}

.btn.is-off svg {
  display: none;
}

.btn-line {
  background: rgba(16, 14, 12, 0.35);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-2);
}

.btn-line:hover {
  background: rgba(243, 236, 224, 0.08);
  box-shadow: inset 0 0 0 1px rgba(243, 236, 224, 0.4);
}

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background-color 200ms, box-shadow 200ms;
}

.nav.scrolled {
  background: rgba(16, 14, 12, 0.92);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(10px);
}

.nav-row {
  display: flex;
  align-items: center;
  gap: 40px;
  height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-stretch: 112%;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.links {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-size: 15px;
  font-weight: 500;
}

.links a {
  color: rgba(243, 236, 224, 0.75);
  transition: color 150ms;
}

.links a:hover {
  color: var(--text);
}

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(100svh, 940px);
  padding: 140px 0 200px;
  isolation: isolate;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(16, 14, 12, 0.82) 0%, rgba(16, 14, 12, 0.5) 42%, rgba(16, 14, 12, 0) 75%),
    linear-gradient(0deg, var(--bg) 0%, rgba(16, 14, 12, 0.55) 30%, rgba(16, 14, 12, 0) 60%);
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 26px;
}

.hero h1 {
  font-size: clamp(44px, 6.4vw, 94px);
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.25);
}

.hero-sub {
  max-width: 540px;
  margin-top: 26px;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.5;
  color: rgba(243, 236, 224, 0.88);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  margin-top: 18px;
  font-size: 14.5px;
  color: rgba(243, 236, 224, 0.7);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 8px;
  height: 8px;
  flex: none;
  background: var(--dim);
}

.dot.online {
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(95, 211, 122, 0.2);
}

.dot.offline {
  background: var(--red);
}

.showcase {
  position: relative;
  margin-top: -130px;
}

.screen {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-2);
  box-shadow:
    0 0 0 1px var(--line-2),
    0 40px 90px rgba(0, 0, 0, 0.55);
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 56px;
}

.facts div {
  padding-top: 20px;
  border-top: 2px solid var(--accent);
}

.facts h3,
.more-list dt {
  font-size: 19px;
  font-weight: 700;
  font-stretch: 108%;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.facts p,
.more-list dd {
  margin-top: 8px;
  color: var(--muted);
  font-size: 16px;
}

.features {
  padding: 150px 0 40px;
}

.row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 80px;
  align-items: center;
}

.row + .row {
  margin-top: 150px;
}

.row.flip .row-text {
  order: 2;
}

.row h2,
.split h2,
.server h2 {
  font-size: clamp(34px, 3.8vw, 54px);
}

.row-text > p {
  margin-top: 22px;
  color: var(--muted);
  font-size: 18px;
}

.ticks {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.ticks li {
  position: relative;
  padding-left: 24px;
  font-size: 16.5px;
}

.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--accent);
}

.shot {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px var(--line-2),
    0 30px 70px rgba(0, 0, 0, 0.5);
}

.shot.pixel img {
  image-rendering: pixelated;
}

.server {
  margin-top: 110px;
  padding: 120px 0;
  background: var(--bg-2);
  border-block: 1px solid var(--line);
}

.server-head {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 64px;
  align-items: center;
}

.wordmark {
  width: 100%;
  image-rendering: pixelated;
}

.server-copy p {
  font-size: 18px;
  color: rgba(243, 236, 224, 0.85);
}

.server-line {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
  padding: 14px 14px 14px 18px;
  background: var(--bg-3);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px var(--line);
}

.server-line div {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.server-line strong {
  font-weight: 650;
  font-size: 16px;
}

.server-line code {
  color: var(--muted);
  font-size: 15px;
}

.gallery {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 12px;
  height: min(620px, 52vw);
  margin-top: 64px;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.g-hall {
  grid-row: 1 / 3;
}

.more,
.notes,
.faq {
  padding: 140px 0 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 64px;
}

.split-side p {
  margin-top: 18px;
  max-width: 320px;
  color: var(--muted);
}

.split-side {
  align-self: start;
  position: sticky;
  top: 100px;
}

.more-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 48px;
  margin: 0;
}

.more-list div {
  padding: 24px 0 28px;
  border-top: 1px solid var(--line);
}

.more-list dd {
  margin-left: 0;
}

.release + .release {
  margin-top: 56px;
}

.release-head {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  color: var(--muted);
}

.tag {
  font-family: var(--pixel);
  font-size: 15px;
  line-height: 1;
  padding: 5px 8px 6px;
  border-radius: 4px;
  background: var(--accent);
  color: var(--on-accent);
}

.release h3 {
  margin-top: 16px;
  font-size: 30px;
}

.release-summary {
  margin-top: 12px;
  color: var(--muted);
}

.release ul {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}

.release li {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 16px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  font-size: 16px;
}

.release li b {
  font-family: var(--pixel);
  font-weight: 500;
  font-size: 15px;
  color: var(--accent);
}

.release li.improved b {
  color: #8fb8ff;
}

.release li.fixed b {
  color: var(--green);
}

.faq-list details {
  border-top: 1px solid var(--line);
}

.faq-list details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
  font-size: 19px;
  font-weight: 650;
  font-stretch: 106%;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: '+';
  font-family: var(--pixel);
  font-size: 26px;
  line-height: 1;
  color: var(--accent);
  transition: transform 200ms;
}

.faq-list details[open] summary::after {
  transform: rotate(45deg);
}

.faq-list details p {
  max-width: 640px;
  padding-bottom: 24px;
  color: var(--muted);
}

.cta {
  position: relative;
  margin-top: 160px;
  padding: 150px 0;
  isolation: isolate;
  overflow: hidden;
}

.cta-img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, var(--bg) 0%, rgba(16, 14, 12, 0.55) 30%, rgba(16, 14, 12, 0.55) 70%, var(--bg) 100%),
    linear-gradient(90deg, rgba(16, 14, 12, 0.7), rgba(16, 14, 12, 0.1));
}

.cta h2 {
  font-size: clamp(42px, 6vw, 88px);
}

.footer {
  padding-bottom: 48px;
}

.houses {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 4px;
}

.houses i:nth-child(1) {
  background: #a3262a;
}

.houses i:nth-child(2) {
  background: #2a7a47;
}

.houses i:nth-child(3) {
  background: #2d5bb0;
}

.houses i:nth-child(4) {
  background: #e7b52c;
}

.footer-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px 24px;
  padding-top: 40px;
}

.made {
  justify-self: end;
  color: var(--muted);
  font-size: 15px;
}

.heart {
  color: #e5484d;
}

.legal {
  grid-column: 1 / -1;
  color: var(--dim);
  font-size: 13.5px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 60;
  padding: 12px 18px;
  border-radius: 6px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  font-size: 15px;
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity 200ms, transform 200ms;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 980px) {
  .links {
    display: none;
  }

  .nav-row .btn {
    margin-left: auto;
  }

  .row,
  .server-head,
  .split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .row.flip .row-text {
    order: 0;
  }

  .row + .row {
    margin-top: 110px;
  }

  .split-side {
    position: static;
  }

  .facts {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .hero {
    padding-bottom: 150px;
  }

  .hero::after {
    background: linear-gradient(0deg, var(--bg) 0%, rgba(16, 14, 12, 0.7) 45%, rgba(16, 14, 12, 0.25) 100%);
  }

  .btn-big {
    width: 100%;
  }

  .showcase {
    margin-top: -90px;
  }

  .features {
    padding-top: 100px;
  }

  .server {
    margin-top: 100px;
    padding: 80px 0;
  }

  .more,
  .notes,
  .faq {
    padding-top: 100px;
  }

  .more-list {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    height: auto;
  }

  .g-hall {
    grid-row: auto;
    grid-column: 1 / -1;
    aspect-ratio: 16 / 10;
  }

  .g-town,
  .g-atrium {
    aspect-ratio: 1;
  }

  .server-line {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .server-line .dot {
    margin-top: 7px;
  }

  .server-line .btn {
    width: 100%;
  }

  .release li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .cta {
    margin-top: 110px;
    padding: 110px 0;
  }

  .footer-row {
    grid-template-columns: 1fr;
  }

  .made {
    justify-self: start;
  }
}

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

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