:root {
  color-scheme: dark;
  --ink: #f7f2e8;
  --muted: #aab8b1;
  --bg: #07110f;
  --panel: #0d1b18;
  --panel-2: #12241f;
  --line: rgba(255, 255, 255, .11);
  --gold: #e4a64c;
  --gold-bright: #ffc96f;
  --emerald: #48d597;
  --blue: #63bbf5;
  --violet: #c590ff;
  --danger: #ff746c;
  --radius: 20px;
  --shadow: 0 28px 80px rgba(0, 0, 0, .34);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 86% 2%, rgba(42, 128, 101, .24), transparent 35rem),
    radial-gradient(circle at 12% 22%, rgba(228, 166, 76, .12), transparent 30rem),
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px),
    var(--bg);
  background-size: auto, auto, 32px 32px, 32px 32px, auto;
  line-height: 1.6;
}

a { color: inherit; }
button { font: inherit; }
.skip-link { position: fixed; z-index: 20; left: 1rem; top: -5rem; padding: .7rem 1rem; background: var(--ink); color: var(--bg); border-radius: 8px; }
.skip-link:focus { top: 1rem; }

.site-header, main, footer { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.site-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: .8rem; font-size: 1.28rem; font-weight: 850; letter-spacing: -.035em; text-decoration: none; }
.brand-mark { border-radius: 4px; box-shadow: 0 8px 24px rgba(0,0,0,.25); image-rendering: pixelated; image-rendering: crisp-edges; }
nav { display: flex; gap: 1.6rem; }
nav a { color: var(--muted); font-size: .95rem; text-decoration: none; transition: color .2s ease; }
nav a:hover, nav a:focus-visible { color: var(--ink); }

.hero { min-height: 660px; display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(320px, .72fr); align-items: center; gap: clamp(3rem, 8vw, 7rem); padding: 76px 0 88px; }
.eyebrow { margin: 0 0 1rem; color: var(--gold-bright); font-size: .78rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3, p { text-wrap: pretty; }
h1 { max-width: 760px; margin: 0; font-size: clamp(3.2rem, 7vw, 6.6rem); line-height: .94; letter-spacing: -.07em; }
.hero-lede { max-width: 670px; margin: 1.7rem 0 2rem; color: var(--muted); font-size: clamp(1.05rem, 1.7vw, 1.24rem); }
.availability-note { max-width: 610px; margin: -1rem 0 1.35rem; padding: .78rem 1rem; border-left: 3px solid var(--gold); color: var(--muted); background: rgba(228,166,76,.08); border-radius: 0 10px 10px 0; font-size: .94rem; }
.availability-note strong { color: var(--ink); }

.join-panel { max-width: 610px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .72rem .72rem .72rem 1.2rem; border: 1px solid rgba(255,201,111,.42); background: rgba(18,36,31,.86); border-radius: 14px; box-shadow: 0 18px 50px rgba(0,0,0,.2); }
.join-panel > div { min-width: 0; display: grid; }
.join-label, .status-label { color: var(--muted); font-size: .73rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
#server-address { overflow: hidden; text-overflow: ellipsis; font-size: clamp(1.05rem, 2.4vw, 1.35rem); letter-spacing: .01em; }
.copy-button { min-height: 48px; border: 0; padding: .72rem 1.05rem; border-radius: 10px; background: var(--gold); color: #17110a; font-weight: 850; cursor: pointer; box-shadow: inset 0 -2px 0 rgba(0,0,0,.2); transition: transform .15s ease, background .15s ease; }
.copy-button:hover { transform: translateY(-2px); background: var(--gold-bright); }
.copy-button:focus-visible, a:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.copy-feedback { height: 1.5em; margin: .5rem 0 0; color: var(--emerald); font-size: .9rem; }
.quick-facts { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1rem; }
.quick-facts span { padding: .42rem .72rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .84rem; }

.server-card { position: relative; overflow: hidden; border: 1px solid var(--line); padding: 1rem; border-radius: 28px; background: linear-gradient(150deg, rgba(18,36,31,.96), rgba(8,21,18,.98)); box-shadow: var(--shadow); }
.server-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,.05), transparent 36%); pointer-events: none; }
.server-art { display: grid; place-items: center; min-height: 280px; border-radius: 19px; background: radial-gradient(circle, rgba(228,166,76,.18), transparent 60%), #081512; }
.server-art img { width: min(78%, 224px); height: auto; filter: drop-shadow(0 22px 30px rgba(0,0,0,.38)); image-rendering: pixelated; image-rendering: crisp-edges; }
.status-row { display: flex; align-items: center; gap: .85rem; padding: 1.25rem .25rem 1rem; }
.status-row > div { display: grid; }
.status-dot { width: 12px; height: 12px; flex: none; border-radius: 50%; background: #96a29d; box-shadow: 0 0 0 5px rgba(150,162,157,.1); }
.status-dot.online { background: var(--emerald); box-shadow: 0 0 0 5px rgba(72,213,151,.12), 0 0 20px rgba(72,213,151,.5); }
.status-dot.offline { background: var(--danger); box-shadow: 0 0 0 5px rgba(255,116,108,.11); }
.status-dot.planned { background: var(--gold); box-shadow: 0 0 0 5px rgba(228,166,76,.12); }
#status-text { font-size: 1.16rem; }
.status-stats { display: grid; grid-template-columns: 1fr 1fr; margin: 0; border-block: 1px solid var(--line); }
.status-stats div { padding: .9rem .25rem; }
.status-stats div + div { padding-left: 1rem; border-left: 1px solid var(--line); }
.status-stats dt { color: var(--muted); font-size: .78rem; }
.status-stats dd { margin: .15rem 0 0; font-weight: 800; }
.status-note { margin: .8rem .25rem .15rem; color: var(--muted); font-size: .78rem; }
.hours-note { margin: .35rem .25rem .15rem; color: var(--gold-bright); font-size: .78rem; }

.section { padding: 100px 0; border-top: 1px solid var(--line); }
.section-heading { max-width: 710px; margin-bottom: 3rem; }
h2 { margin: 0; font-size: clamp(2.25rem, 5vw, 4.2rem); line-height: 1.02; letter-spacing: -.055em; }
.section-heading > p:last-child { color: var(--muted); font-size: 1.05rem; }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
.feature-card { min-height: 260px; padding: 2rem; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(18,36,31,.78), rgba(10,23,20,.86)); }
.feature-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 2.6rem; border: 1px solid currentColor; border-radius: 12px; font-size: 1.5rem; }
.accent-gold .feature-icon { color: var(--gold-bright); }
.accent-emerald .feature-icon { color: var(--emerald); }
.accent-blue .feature-icon { color: var(--blue); }
.accent-violet .feature-icon { color: var(--violet); }
.feature-card h3 { margin: 0 0 .5rem; font-size: 1.35rem; }
.feature-card p { max-width: 44ch; margin: 0; color: var(--muted); }

.split-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(3rem,8vw,7rem); }
.sticky-heading { position: sticky; top: 3rem; align-self: start; }
code { padding: .13em .36em; border: 1px solid rgba(228,166,76,.3); border-radius: 6px; color: var(--gold-bright); background: rgba(228,166,76,.08); font: 700 .92em ui-monospace, SFMono-Regular, Consolas, monospace; }
.command-list { display: grid; }
.command-list article { display: grid; grid-template-columns: minmax(120px,.55fr) 1.45fr; gap: 1rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.command-list article:first-child { border-top: 1px solid var(--line); }
.command-list code { align-self: start; justify-self: start; }
.command-list h3 { margin: -.2rem 0 .12rem; font-size: 1.04rem; }
.command-list p { margin: 0; color: var(--muted); font-size: .92rem; }

.rules-section { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(3rem,8vw,7rem); }
.rules-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: rule; }
.rules-list li { display: grid; grid-template-columns: 54px 1fr; gap: 1rem; align-items: start; padding: 1.3rem 0; border-bottom: 1px solid var(--line); }
.rules-list li:first-child { border-top: 1px solid var(--line); }
.rules-list span { color: var(--gold); font: 800 .82rem ui-monospace, SFMono-Regular, Consolas, monospace; }
.rules-list p { margin: -.25rem 0 0; }

.join-cta { display: flex; align-items: center; justify-content: space-between; gap: 3rem; margin-block: 100px; padding: clamp(2rem,5vw,4rem); border: 1px solid rgba(228,166,76,.35); border-radius: 28px; background: linear-gradient(120deg, rgba(228,166,76,.14), rgba(42,128,101,.12)); }
.join-cta h2 { font-size: clamp(2.1rem,4vw,3.4rem); }
.join-cta p:last-child { margin-bottom: 0; color: var(--muted); }
.copy-button-large { flex: none; padding-inline: 1.5rem; }
footer { min-height: 150px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.footer-brand { color: var(--ink); }
.legal { text-align: right; }
.legal a { color: inherit; text-underline-offset: .18em; }

@media (max-width: 840px) {
  .hero { grid-template-columns: 1fr; padding-top: 58px; }
  .server-card { max-width: 520px; }
  .split-section, .rules-section { grid-template-columns: 1fr; }
  .sticky-heading { position: static; }
  footer { grid-template-columns: 1fr; gap: .2rem; padding-block: 2rem; }
  .legal { text-align: left; }
}

@media (max-width: 620px) {
  .site-header, main, footer { width: min(100% - 24px, 1180px); }
  .site-header { min-height: 72px; }
  nav { display: none; }
  h1 { font-size: clamp(2.85rem, 15vw, 4.4rem); }
  .hero { gap: 2.4rem; padding-block: 50px 64px; }
  .join-panel { align-items: stretch; flex-direction: column; padding: 1rem; }
  .copy-button { width: 100%; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 230px; }
  .section { padding: 72px 0; }
  .command-list article { grid-template-columns: 1fr; gap: .75rem; }
  .join-cta { align-items: stretch; flex-direction: column; margin-block: 70px; }
}

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