:root {
  --ink: #080909;
  --ink-soft: #111313;
  --panel: rgba(19, 22, 20, 0.92);
  --panel-strong: #151816;
  --bone: #e9e4df;
  --muted: #aaa7a2;
  --lime: #8ee000;
  --lime-bright: #b9ff00;
  --lime-dark: #3e7c00;
  --wine: #2a0009;
  --wine-light: #5a0b1d;
  --line: rgba(233, 228, 223, 0.12);
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --max-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--bone);
  background:
    radial-gradient(circle at 15% 0%, rgba(142, 224, 0, 0.09), transparent 28rem),
    radial-gradient(circle at 100% 25%, rgba(90, 11, 29, 0.24), transparent 34rem),
    linear-gradient(180deg, #070808, #0b0d0c 65%, #070808);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, black, transparent 92%);
}

a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }

.skip-link {
  position: absolute;
  top: -5rem;
  left: 1rem;
  z-index: 100;
  padding: .7rem 1rem;
  background: var(--lime);
  color: #111;
  font-weight: 800;
  border-radius: 0 0 8px 8px;
}
.skip-link:focus { top: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 8, 8, 0.82);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(calc(100% - 2rem), var(--max-width));
  height: 76px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.brand img { width: 42px; height: 42px; object-fit: contain; }
.brand span { font-family: Georgia, "Times New Roman", serif; }

.site-nav { display: flex; align-items: center; gap: .3rem; }
.site-nav a {
  position: relative;
  padding: .65rem .85rem;
  color: var(--muted);
  text-decoration: none;
  font-size: .92rem;
  font-weight: 700;
  transition: color .2s ease, background .2s ease;
  border-radius: 9px;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--bone);
  background: rgba(255,255,255,.05);
}
.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: .85rem;
  right: .85rem;
  bottom: .35rem;
  height: 2px;
  background: var(--lime);
  box-shadow: 0 0 12px rgba(185,255,0,.5);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--bone);
  border-radius: 10px;
  cursor: pointer;
}
.menu-button span,
.menu-button::before,
.menu-button::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}
.menu-button[aria-expanded="true"] span { opacity: 0; }
.menu-button[aria-expanded="true"]::before { transform: translateY(6px) rotate(45deg); }
.menu-button[aria-expanded="true"]::after { transform: translateY(-6px) rotate(-45deg); }

main { min-height: calc(100vh - 150px); }
.container { width: min(calc(100% - 2rem), var(--max-width)); margin-inline: auto; }
.section { padding: 5.5rem 0; }
.section--tight { padding: 3.5rem 0; }
.section--border { border-top: 1px solid var(--line); }

.eyebrow {
  margin: 0 0 .6rem;
  color: var(--lime-bright);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.08;
}
h1 { font-size: clamp(2.6rem, 8vw, 6.6rem); letter-spacing: -.05em; }
h2 { font-size: clamp(2rem, 4vw, 3.45rem); letter-spacing: -.035em; }
h3 { font-size: 1.35rem; }
.lead { max-width: 720px; color: #c8c4be; font-size: clamp(1.02rem, 2vw, 1.23rem); }
.muted { color: var(--muted); }

.hero {
  position: relative;
  min-height: min(790px, calc(100vh - 76px));
  display: grid;
  align-items: center;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto -15% -48% 34%;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(142,224,0,.15), transparent 68%);
  filter: blur(24px);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: clamp(2rem, 7vw, 6rem);
  align-items: center;
  padding-block: 5rem;
}

.hero-logo {
  width: min(100%, 670px);
  margin-bottom: 2rem;
  filter: drop-shadow(0 18px 32px rgba(0,0,0,.55));
}

.hero-copy { max-width: 720px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .82rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button--primary {
  color: #0b1005;
  background: linear-gradient(135deg, var(--lime-bright), var(--lime));
  box-shadow: 0 12px 32px rgba(142,224,0,.16);
}
.button--primary:hover { box-shadow: 0 16px 38px rgba(142,224,0,.26); }
.button--ghost {
  color: var(--bone);
  border-color: rgba(233,228,223,.18);
  background: rgba(255,255,255,.04);
}
.button--ghost:hover { border-color: rgba(185,255,0,.45); background: rgba(185,255,0,.06); }
.button.is-disabled { opacity: .55; cursor: not-allowed; }

.server-card {
  position: relative;
  overflow: hidden;
  padding: 2rem;
  border: 1px solid rgba(185,255,0,.2);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(42,0,9,.82), rgba(16,19,17,.95) 54%),
    var(--panel);
  box-shadow: var(--shadow);
}
.server-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .12;
  background: linear-gradient(135deg, transparent 30%, var(--lime) 31%, transparent 32%);
  background-size: 22px 22px;
  pointer-events: none;
}
.server-card > * { position: relative; z-index: 1; }
.server-card__logo { width: 104px; margin-bottom: 1.3rem; }
.server-ip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.3rem 0;
  padding: .9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0,0,0,.28);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 800;
}
.copy-button {
  border: 0;
  padding: .45rem .65rem;
  border-radius: 7px;
  color: #0a0d05;
  background: var(--lime);
  font-weight: 900;
  cursor: pointer;
}
.server-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.fact {
  padding: .8rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,.03);
}
.fact span { display: block; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .09em; }
.fact strong { display: block; margin-top: .12rem; }

.status-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr);
  gap: 1rem;
  align-items: stretch;
  padding: clamp(1.3rem, 3vw, 2rem);
  border: 1px solid rgba(185,255,0,.24);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(42,0,9,.76), rgba(16,19,17,.96) 58%),
    var(--panel);
  box-shadow: var(--shadow);
}
.status-panel__main {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.status-panel__main h3 {
  margin-bottom: .35rem;
  font-size: clamp(1.8rem, 4vw, 3rem);
}
.status-orb {
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  border: 1px solid rgba(233,228,223,.18);
  border-radius: 50%;
  background: var(--muted);
  box-shadow: 0 0 24px rgba(233,228,223,.14);
}
.status-orb[data-status-state="online"] {
  background: var(--lime);
  box-shadow: 0 0 30px rgba(185,255,0,.45);
}
.status-orb[data-status-state="offline"] {
  background: var(--wine-light);
  box-shadow: 0 0 28px rgba(90,11,29,.42);
}
.status-orb[data-status-state="loading"] {
  background: linear-gradient(135deg, var(--muted), var(--lime));
}
.status-orb[data-status-state="error"] {
  background: #d9a441;
  box-shadow: 0 0 28px rgba(217,164,65,.34);
}
.status-panel__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
}
.status-copy {
  grid-column: 1 / -1;
  min-height: 48px;
}

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2.5rem; }
.section-heading > div { max-width: 720px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.feature-card,
.step-card,
.download-card,
.discord-card,
.info-card {
  position: relative;
  padding: 1.65rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
  box-shadow: 0 12px 34px rgba(0,0,0,.18);
}
.feature-card::before {
  content: "";
  display: block;
  width: 36px;
  height: 4px;
  margin-bottom: 1.2rem;
  background: var(--lime);
  box-shadow: 0 0 18px rgba(185,255,0,.45);
}
.feature-card p,
.step-card p,
.download-card p,
.discord-card p,
.info-card p { color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; counter-reset: steps; }
.step-card { counter-increment: steps; }
.step-card::after {
  content: "0" counter(steps);
  position: absolute;
  top: 1.1rem;
  right: 1.25rem;
  color: rgba(233,228,223,.13);
  font: 900 2.7rem/1 Georgia, serif;
}

.cta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.6rem, 4vw, 2.8rem);
  border: 1px solid rgba(185,255,0,.22);
  border-radius: 20px;
  background: linear-gradient(115deg, rgba(42,0,9,.92), rgba(62,124,0,.16)), var(--panel-strong);
}
.cta-strip h2 { margin-bottom: .45rem; }
.cta-strip p { margin-bottom: 0; color: #c5c0ba; }

.page-hero { padding: 5.5rem 0 3.5rem; border-bottom: 1px solid var(--line); }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: end; }
.page-mark {
  width: 116px;
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 16px 32px rgba(0,0,0,.5));
}

.map-shell {
  position: relative;
  min-height: 650px;
  height: calc(100vh - 76px);
  background: #090b09;
}
.map-frame { width: 100%; height: 100%; min-height: 650px; border: 0; background: #101210; }
.map-toolbar {
  position: absolute;
  top: 1rem;
  left: 50%;
  z-index: 3;
  transform: translateX(-50%);
  width: min(calc(100% - 2rem), 720px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .7rem .8rem .7rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(8,9,9,.88);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}
.map-toolbar p { margin: 0; color: var(--muted); font-size: .9rem; }
.map-toolbar strong { color: var(--bone); }

.download-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.download-card { display: flex; flex-direction: column; min-height: 430px; }
.download-card .button { margin: 1rem 0; }
.download-card--featured { border-color: rgba(185,255,0,.35); background: linear-gradient(160deg, rgba(62,124,0,.18), rgba(255,255,255,.02)); }
.download-card__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 1rem;
  border: 1px solid rgba(185,255,0,.26);
  border-radius: 12px;
  color: #101405;
  background: var(--lime);
  font: 950 1.6rem/1 Georgia, serif;
}
.install-steps {
  display: grid;
  gap: .55rem;
  margin: .15rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
}
.install-steps li::marker {
  color: var(--lime-bright);
  font-weight: 900;
}
.card-ribbon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: .3rem .55rem;
  border-radius: 999px;
  color: #111;
  background: var(--lime);
  font-size: .67rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.rules-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 2rem; align-items: start; }
.rules-list { display: grid; gap: 1.2rem; }
.rule-group {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255,255,255,.018);
}
.rule-group__heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.35rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.025);
}
.rule-group__heading h2 { margin: 0; font-size: 1.45rem; }
.rule-group__number {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: #101405;
  background: var(--lime);
  font-weight: 950;
}
.rule-stack { display: grid; }
.rule-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  min-height: 64px;
  padding: .8rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.rule-item:last-child { border-bottom: 0; }
.rule-item__number { color: var(--lime-bright); font-weight: 900; font-family: ui-monospace, monospace; }
.rule-item p { margin: 0; color: #d0ccc6; }
.rules-note { position: sticky; top: 96px; }
.rules-note code { color: var(--lime-bright); }

.discord-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(310px, .85fr); gap: 1.2rem; }
.discord-card--main {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 15%, rgba(88,101,242,.34), transparent 16rem),
    linear-gradient(145deg, rgba(42,0,9,.7), rgba(16,19,17,.96));
}
.discord-card--main::before {
  content: "NH";
  position: absolute;
  right: -1.5rem;
  top: -2.5rem;
  color: rgba(255,255,255,.035);
  font: 900 13rem/1 Georgia, serif;
}
.discord-card--main > * { position: relative; z-index: 1; }
.discord-side { display: grid; gap: 1rem; }

.site-footer { border-top: 1px solid var(--line); padding: 2rem 0; color: var(--muted); }
.footer-grid { display: flex; justify-content: space-between; gap: 2rem; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--lime); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.4rem;
  z-index: 100;
  transform: translate(-50%, 30px);
  padding: .78rem 1rem;
  color: #111;
  background: var(--lime-bright);
  border-radius: 10px;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  box-shadow: var(--shadow);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .menu-button { display: block; }
  .site-nav {
    position: fixed;
    inset: 76px 0 auto;
    display: grid;
    padding: .7rem 1rem 1rem;
    border-bottom: 1px solid var(--line);
    background: rgba(7,8,8,.97);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform .2s ease, opacity .2s ease;
  }
  .site-nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .site-nav a { padding: .9rem 1rem; }
  .site-nav a[aria-current="page"]::after { left: 1rem; right: auto; width: 28px; }
  .hero-grid,
  .discord-layout,
  .rules-layout,
  .status-panel { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-grid { padding-block: 4rem; }
  .server-card { max-width: 580px; }
  .feature-grid,
  .steps,
  .download-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rules-note { position: static; }
}

@media (max-width: 640px) {
  .section { padding: 4rem 0; }
  .brand span { display: none; }
  .hero-logo { margin-bottom: 1.4rem; }
  .hero-actions .button { width: 100%; }
  .feature-grid,
  .steps,
  .download-grid { grid-template-columns: 1fr; }
  .section-heading,
  .cta-strip,
  .page-hero__grid,
  .footer-grid { align-items: flex-start; flex-direction: column; }
  .page-hero__grid { display: flex; }
  .page-mark { width: 84px; order: -1; }
  .server-facts { grid-template-columns: 1fr; }
  .status-panel__main { align-items: flex-start; flex-direction: column; }
  .status-panel__facts { grid-template-columns: 1fr; }
  .server-ip { align-items: stretch; flex-direction: column; }
  .copy-button { min-height: 42px; }
  .map-toolbar { align-items: stretch; flex-direction: column; }
  .map-toolbar .button { width: 100%; }
  .rule-item { grid-template-columns: 54px minmax(0, 1fr); padding-inline: 1rem; }
}
