@font-face {
  font-family: "MCTen";
  src: url("../assets/fonts/mcten.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans";
  src: url("../assets/fonts/noto-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans";
  src: url("../assets/fonts/noto-sans-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #181818;
  --bg-2: #0d0d0d;
  --card: #111111;
  --card-2: #101010;
  --line: #2a2a2a;
  --text: #ffffff;
  --muted: #a8a8a8;
  --accent: #6a4dff;
  --accent-2: #3d8bff;
  --accent-light: #c4b6ff;
  --accent-deep: #2a1d86;
  --ink: #120e22;
  --wrap: 1080px;
  --nav: 74px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans", sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; border-radius: 0; }
h1, h2, h3, .brand-name, .price, .nav-links a, .btn, .side button, .kicker, th, .mobile-menu a {
  font-family: "MCTen", sans-serif;
  font-weight: 400;
  font-synthesis: none;
  letter-spacing: 0.01em;
  line-height: 1.15;
}
h1 { font-size: clamp(34px, 5vw, 54px); margin: 12px 0 14px; }
h2 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 12px; }
h3 { font-size: 22px; margin: 0 0 8px; color: var(--text); }
p { margin: 0 0 14px; color: var(--muted); }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; }

.skip {
  position: absolute; left: 12px; top: 12px; z-index: 80;
  background: #fff; color: #111; padding: 8px 12px;
  transform: translateY(-160%);
}
.skip:focus { transform: none; }

.wrap { width: min(var(--wrap), calc(100% - 40px)); margin-inline: auto; }

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  height: var(--nav);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 0 22px;
  background: #181818;
  border-bottom: 2px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; justify-self: start; }
.brand img { width: 40px; height: 40px; object-fit: contain; }
.brand-name { font-size: 20px; color: var(--text); }
.brand-name span { color: var(--accent-2); }
.nav-links { display: flex; gap: 18px; align-items: center; justify-self: center; }
.nav-links a {
  text-decoration: none;
  font-size: 15px;
  color: var(--text);
  padding: 6px 0 4px;
  border-bottom: 3px solid transparent;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { border-bottom-color: #fff; }
.nav-cta { justify-self: end; }
button.nav-toggle { display: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 10px 16px;
  background: var(--accent); color: #fff;
  text-decoration: none; cursor: pointer;
  border-style: solid;
  border-width: 2px 2px 5px;
  border-color: var(--accent-light) var(--accent-light) var(--accent-deep);
  font-size: 16px;
}
.btn:hover { background: #7d64ff; box-shadow: 4px 4px 0 var(--accent-2); }
.btn.ghost {
  background: #4a4a4a; color: #fff;
  border-color: var(--accent-light) var(--accent-light) var(--accent-deep);
}
.btn.ghost:hover { background: #5a5a5a; box-shadow: 4px 4px 0 var(--accent); }
.btn.small { min-height: 38px; font-size: 15px; padding: 6px 12px; }
.btn.danger { background: #6a2ad4; }
.btn.full { width: 100%; }
.btn.light {
  background: #fff; color: #141414;
  border: 2px solid #fff;
}
.btn.light:hover { box-shadow: 4px 4px 0 #7a5cff; background: #fff; }
.btn.line {
  background: transparent; color: #fff;
  border: 2px solid #fff;
}
.btn.line:hover { box-shadow: 4px 4px 0 var(--accent-2); }

.mobile-menu { display: none; }

.hero-stage {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  background: #0d0d0d url("../assets/img/ocean.jpg") center 30% / cover no-repeat;
  overflow: hidden;
  padding: calc(var(--nav) + 28px) 0 92px;
}
.hero-stage::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(13,13,13,.78) 0%, rgba(13,13,13,.42) 42%, rgba(13,13,13,.9) 100%),
    radial-gradient(ellipse at 50% 42%, rgba(0,0,0,.05) 0%, rgba(0,0,0,.72) 78%);
}
.embers { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.embers i {
  position: absolute; width: 10px; height: 10px;
  background: #7a5cff;
  animation: rise 11s linear infinite;
}
.embers i:nth-child(odd) { background: var(--accent-2); }
.embers i:nth-child(1) { left: 8%; bottom: 18%; }
.embers i:nth-child(2) { left: 18%; bottom: 8%; width: 8px; height: 8px; animation-duration: 13s; animation-delay: -3s; }
.embers i:nth-child(3) { left: 32%; bottom: 22%; animation-duration: 9s; animation-delay: -5s; }
.embers i:nth-child(4) { left: 58%; bottom: 12%; width: 12px; height: 12px; animation-delay: -2s; }
.embers i:nth-child(5) { left: 74%; bottom: 20%; width: 8px; height: 8px; animation-duration: 12s; animation-delay: -6s; }
.embers i:nth-child(6) { left: 88%; bottom: 10%; animation-delay: -4s; }
.hero-inner { position: relative; z-index: 2; text-align: center; }
.lockup { display: flex; flex-direction: column; align-items: center; gap: 8px; animation: floaty 3.4s ease-in-out infinite alternate; }
.lockup img { width: 104px; height: 104px; object-fit: contain; }
.wordmark { margin: 0; font-size: clamp(26px, 4vw, 40px); color: #fff; }
.wordmark span { color: #9ec4ff; }
.lede { font-size: 17px; max-width: 62ch; margin-inline: auto; color: #d5d5d5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 20px; }
.hero-stage .stair {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  background: transparent;
}

.section { padding: 64px 0 28px; background: var(--bg); }
.section.alt { background: var(--bg-2); }
.section-head { max-width: 680px; margin-bottom: 26px; }
.kicker, .chip {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-family: "Noto Sans", sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  line-height: 1.2;
  padding: 5px 8px;
  margin-bottom: 10px;
}

.grid-3, .grid-2, .plans, .soft, .bento, .gallery { display: grid; gap: 16px; }
.grid-3, .plans { grid-template-columns: repeat(3, 1fr); }
.grid-2, .bento { grid-template-columns: 1fr 1fr; }
.soft { grid-template-columns: repeat(4, 1fr); }
.logo-wall {
  list-style: none;
  margin: 8px 0 0;
  padding: 8px 0 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 28px 42px;
}
.logo-wall li { display: flex; align-items: center; justify-content: center; }
.logo-wall img {
  height: 34px;
  width: auto;
  max-width: 148px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}
.gallery { grid-template-columns: 1.4fr 1fr 1fr; }

.card, .tag, .config, .motd, .stat, .row, .note {
  background: var(--card);
  border: 2px solid var(--line);
}
.card, .config, .stat { padding: 20px; }
.card { position: relative; }
.card:hover, .soft .card:hover { border-color: var(--accent-2); }
.card p:last-child { margin-bottom: 0; }
.card strong, .motd { color: var(--text); }
.plan .price { font-size: 40px; }
.plan.pick { border-color: var(--accent); }
.tag {
  color: var(--text);
  padding: 6px 8px;
  font-size: 15px;
  background: #111;
}
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 22px; }

.config label { display: block; color: var(--text); font-weight: 700; margin: 12px 0 6px; }
.config select, .config input[type="range"], .field input, .field textarea, .console-input, .search input, .connect input {
  width: 100%;
  background: #0d0d0d;
  color: var(--text);
  border: 2px solid var(--line);
  padding: 10px 12px;
  font-size: 16px;
}
.price-line { margin-top: 16px; }
.price { font-size: 48px; color: #b7a6ff; }
.price span { font-family: "Noto Sans", sans-serif; font-size: 15px; color: var(--muted); font-weight: 400; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.split + .split { margin-top: 36px; }
.split figure { margin: 0; }
.split img, .gallery img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border: 2px solid var(--line);
}
.gallery img { height: 220px; }
.gallery .wide { grid-row: span 2; height: 100%; min-height: 456px; object-fit: cover; }
figcaption { margin-top: 8px; color: var(--muted); font-size: 15px; }

.motd {
  padding: 16px;
  font-family: ui-monospace, monospace;
  color: #f4f4f4;
}
.motd .players { color: #b7f0c8; }
.bar { height: 8px; background: #2a2a2a; margin-top: 8px; }
.bar i { display: block; height: 100%; background: var(--accent); width: 42%; }

.pixel-row { display: flex; gap: 6px; margin: 8px 0 16px; }
.pixel-row i { width: 10px; height: 10px; background: var(--accent); display: block; }
.pixel-row i:nth-child(2) { background: var(--accent-2); }
.pixel-row i:nth-child(3) { background: #c4b6ff; }

table { width: 100%; border-collapse: collapse; background: var(--card-2); }
th, td { border: 2px solid var(--line); padding: 12px 14px; text-align: left; }
th { background: #111; color: #fff; font-size: 16px; }
td { color: var(--muted); }
.table-wrap { overflow-x: auto; }

.faq details { border-bottom: 2px solid var(--line); padding: 12px 0; }
.faq summary { cursor: pointer; color: var(--text); font-weight: 700; }

.footer { border-top: 2px solid var(--line); padding: 28px 0 40px; background: var(--bg-2); }
.footer-grid { display: flex; flex-wrap: wrap; gap: 14px 22px; justify-content: space-between; align-items: center; }
.footer a { color: var(--text); text-decoration: none; border-bottom: 3px solid transparent; padding-bottom: 2px; }
.footer a:hover { border-bottom-color: #fff; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.fine { flex-basis: 100%; font-size: 15px; color: var(--muted); }

.note { padding: 12px 14px; color: var(--muted); border-left: 0; }

.seam, .stair {
  display: grid;
  grid-template-columns: repeat(48, 1fr);
  align-items: start;
  height: 36px;
  background: var(--bg-2);
  line-height: 0;
}
.seam i, .stair i { display: block; width: 100%; background: var(--bg); }
.seam.flip { background: var(--bg); }
.seam.flip i { background: var(--bg-2); }

.panel-shell { display: grid; grid-template-columns: 230px 1fr; min-height: calc(100vh - var(--nav)); margin-top: var(--nav); }
.side { background: var(--bg-2); border-right: 2px solid var(--line); padding: 16px 12px; }
.side button {
  display: block; width: 100%; text-align: left;
  background: transparent; border: 0; color: var(--muted);
  font-size: 16px; padding: 8px 10px; cursor: pointer;
  border-bottom: 3px solid transparent;
}
.side button[aria-current="true"] { color: #fff; border-bottom-color: #fff; background: #111; }
.panel-main { padding: 22px; }
.statrow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 14px 0; }
.stat b { display: block; color: #c4b6ff; font-family: "MCTen", sans-serif; font-weight: 400; font-size: 26px; }
.toolbar, .console-form, .connect { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.connect input { flex: 1; min-width: 180px; }
.list { display: flex; flex-direction: column; gap: 8px; }
.row {
  display: grid; grid-template-columns: 1.4fr 0.8fr auto;
  gap: 10px; align-items: center;
  padding: 10px 12px;
}
.console {
  background: #0b0b0b; border: 2px solid var(--line);
  min-height: 280px; padding: 12px; overflow: auto;
  font-family: ui-monospace, monospace; font-size: 14px; color: #d7d7d7;
}
.console .err { color: #ffb4c8; }
.console .sys { color: #c4b6ff; }
.console-input { flex: 1; }
.suggest { color: #9ec4ff; font-size: 14px; min-height: 1.2em; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 10px; }
.badge { color: #b7f0c8; font-size: 14px; font-weight: 700; }
.badge.off { color: #ffb4c8; }

main > .wrap:first-child,
main > section.wrap:first-child,
main > section.section:first-child {
  padding-top: calc(var(--nav) + 36px);
}
.hero-stage { padding-top: calc(var(--nav) + 24px); }

@keyframes floaty {
  from { transform: translateY(0); }
  to { transform: translateY(-10px); }
}
@keyframes rise {
  0% { transform: translateY(20px); opacity: 0; }
  15% { opacity: .9; }
  100% { transform: translateY(-70vh); opacity: 0; }
}
@keyframes fadeup {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
.reveal { animation: fadeup .7s ease both; }

@media (max-width: 1100px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav-links, a.btn.nav-cta { display: none; }
  button.nav-toggle { display: inline-flex; justify-self: end; }
  .mobile-menu.open {
    display: flex; flex-direction: column; gap: 4px;
    position: fixed; top: var(--nav); left: 12px; right: 12px; z-index: 39;
    background: #0d0d0d; border: 2px solid var(--line); padding: 10px;
  }
  .mobile-menu a { text-decoration: none; font-size: 18px; padding: 8px; border-bottom: 3px solid transparent; }
  .mobile-menu a:hover { border-bottom-color: #fff; }
}
@media (max-width: 760px) {
  .hero-stage { min-height: auto; }
  .grid-3, .grid-2, .plans, .bento, .two, .split, .panel-shell, .statrow, .gallery, .soft {
    grid-template-columns: 1fr;
  }
  .split { gap: 22px; }
  .split img, .gallery img, .gallery .wide { height: 220px; min-height: 0; }
  .side { border-right: 0; border-bottom: 2px solid var(--line); }
  .row { grid-template-columns: 1fr; }
}
.mc-screen {
  min-height: calc(100vh - var(--nav));
  margin-top: var(--nav);
  background: #5a3b24 url("/assets/dirt.png");
  background-size: 128px 128px;
  image-rendering: pixelated;
  padding: 28px 16px 48px;
}
.mc-screen::before {
  content: "";
  position: fixed;
  left: 0; right: 0; top: var(--nav);
  height: 16px;
  background: repeating-linear-gradient(90deg, #4c8c28 0 8px, #3d7420 8px 16px, #62a838 16px 24px, #2f5e18 24px 32px);
  image-rendering: pixelated;
  pointer-events: none;
}
.mc-frame { width: min(760px, 100%); margin: 24px auto 0; }
.mc-label, .mc-title, .mc-name, .mc-motd, .mc-players, .mc-btn, .mc-input {
  font-family: "MCTen", sans-serif;
  font-weight: 400;
  font-synthesis: none;
  text-shadow: 2px 2px 0 #3f3f3f;
}
.mc-title { color: #fff; font-size: 28px; text-align: center; margin: 8px 0 18px; }
.mc-label { color: #fff; font-size: 18px; text-align: center; display: block; margin-bottom: 8px; }
.mc-list { display: flex; flex-direction: column; gap: 8px; }
.mc-server {
  width: 100%;
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  align-items: center;
  text-align: left;
  background: rgba(0, 0, 0, 0.45);
  border: 2px solid #000;
  color: #fff;
  padding: 8px;
  cursor: pointer;
}
.mc-server[aria-pressed="true"] { border-color: #fff; }
.mc-server img { width: 56px; height: 56px; image-rendering: pixelated; }
.mc-name { font-size: 18px; color: #fff; }
.mc-motd { font-size: 15px; line-height: 1.25; min-height: 2.5em; text-shadow: 2px 2px 0 #3f3f3f; }
.mc-players { font-size: 16px; color: #fff; }
.mc-input {
  display: block;
  width: min(360px, 100%);
  margin: 0 auto 12px;
  background: #000;
  color: #fff;
  border: 2px solid #a0a0a0;
  padding: 8px 10px;
  font-size: 18px;
  text-shadow: none;
}
.mc-btn {
  display: block;
  margin: 14px auto 0;
  min-width: 220px;
  background: linear-gradient(#c6c6c6, #8d8d8d);
  color: #e0e0e0;
  border: 2px solid #000;
  box-shadow: inset 2px 2px 0 #fff, inset -2px -2px 0 #555;
  padding: 8px 16px;
  font-size: 18px;
  cursor: pointer;
}
.mc-btn:hover { filter: brightness(1.08); }
.mc-error { color: #ff5555; text-align: center; text-shadow: 2px 2px 0 #3f3f3f; }
.mc-tabs { display: flex; justify-content: center; gap: 12px; margin-bottom: 12px; }
.mc-tabs button { background: transparent; border: 0; color: #fff; cursor: pointer; font-family: "MCTen", sans-serif; font-size: 18px; text-shadow: 2px 2px 0 #3f3f3f; }
.mc-tabs button[aria-pressed="true"] { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lockup, .embers i, .reveal { animation: none; }
  .embers { display: none; }
}
