:root {
  color-scheme: dark;
  --ink: #edf4e8;
  --muted: #a9b6a2;
  --night: #0b110d;
  --panel: #121b15;
  --panel-soft: #17231b;
  --line: rgba(218, 235, 210, .14);
  --moss: #8bc26f;
  --gold: #dfbd68;
  --danger: #de776c;
  --shadow: 0 28px 80px rgba(0, 0, 0, .28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 75% 2%, rgba(79, 119, 77, .18), transparent 28rem),
    linear-gradient(180deg, #0d1510 0%, var(--night) 52%, #080d0a 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a { color: inherit; }
button { font: inherit; }
.shell { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.sky-glow { position: fixed; inset: 0; pointer-events: none; opacity: .4; background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to bottom, black, transparent 75%); }

.nav { min-height: 92px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; gap: 12px; align-items: center; text-decoration: none; }
.brand img { border-radius: 8px; image-rendering: pixelated; box-shadow: 0 0 0 1px var(--line); }
.brand span { display: grid; line-height: 1.15; }
.brand strong { letter-spacing: .02em; }
.brand small { color: var(--muted); margin-top: 4px; }
.nav nav { display: flex; gap: 28px; }
.nav nav a { color: var(--muted); text-decoration: none; font-size: .92rem; }
.nav nav a:hover { color: var(--ink); }

.hero { min-height: 670px; padding: 94px 0 80px; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); align-items: center; gap: 70px; }
.eyebrow { margin: 0 0 18px; color: var(--moss); font-size: .76rem; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; }
.status-dot { display: inline-block; width: 9px; height: 9px; margin-right: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px rgba(223, 189, 104, .09); }
.status-dot.online { background: var(--moss); box-shadow: 0 0 0 5px rgba(139, 194, 111, .1), 0 0 16px rgba(139, 194, 111, .35); }
.status-dot.offline { background: var(--danger); box-shadow: 0 0 0 5px rgba(222, 119, 108, .1); }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -.035em; }
.hero h1 { max-width: 760px; margin: 0; font-size: clamp(4rem, 8.3vw, 7.4rem); line-height: .86; }
.hero h1 em { color: var(--gold); font-weight: 500; }
.lede { max-width: 660px; margin: 36px 0 34px; color: var(--muted); font-size: 1.12rem; }
.join-box { max-width: 650px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 18px 18px 22px; border: 1px solid var(--line); border-radius: 12px; background: rgba(20, 31, 23, .76); box-shadow: var(--shadow); }
.join-box div { display: grid; }
.join-box small { color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; }
.join-box strong { margin-top: 2px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1rem; }
.copy-button, .button { border: 0; border-radius: 8px; background: var(--moss); color: #10170f; padding: 11px 16px; font-weight: 800; cursor: pointer; text-decoration: none; white-space: nowrap; }
.copy-button:hover, .button:hover { filter: brightness(1.08); }
.microcopy { color: #768475; font-size: .78rem; }

.world-card { padding: 32px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(160deg, rgba(29, 44, 32, .92), rgba(15, 24, 18, .96)); box-shadow: var(--shadow); }
.card-kicker { margin: 0; color: var(--muted); font-size: .78rem; letter-spacing: .11em; text-transform: uppercase; }
.big-stat { display: grid; margin: 26px 0 34px; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.big-stat strong { font-family: Georgia, serif; font-size: 5.4rem; line-height: 1; color: var(--gold); }
.big-stat span { color: var(--muted); }
.world-card dl { margin: 0; display: grid; gap: 14px; }
.world-card dl div { display: flex; justify-content: space-between; gap: 18px; }
.world-card dt { color: var(--muted); }
.world-card dd { margin: 0; text-align: right; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.feature-card { min-height: 300px; padding: 30px; display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(17, 27, 20, .5); text-decoration: none; transition: background .2s ease, transform .2s ease; }
a.feature-card:hover { background: var(--panel-soft); transform: translateY(-3px); }
.feature-number { color: #657264; font-family: ui-monospace, monospace; font-size: .78rem; }
.feature-card h2 { margin: 0; font-size: 2rem; }
.feature-card p:not(.eyebrow) { color: var(--muted); }
.feature-card .eyebrow { margin-bottom: 8px; }
.arrow { align-self: flex-end; color: var(--gold); font-size: 1.4rem; }

.principles { padding: 150px 0; display: grid; grid-template-columns: .55fr 1fr 1fr; gap: 56px; align-items: start; }
.principles h2 { margin: 0; font-size: clamp(2.5rem, 5vw, 4.8rem); line-height: 1; }
.principles > p:last-child { margin: 0; color: var(--muted); font-size: 1.08rem; }

footer { min-height: 100px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }

.status-page { padding: 95px 0 140px; }
.status-page > h1 { margin: 0 0 55px; font-size: clamp(3.8rem, 8vw, 7rem); line-height: .9; }
.status-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.status-grid article { min-height: 180px; padding: 25px; display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(17, 27, 20, .45); }
.status-grid article > span { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; }
.status-grid strong { color: var(--gold); font-family: Georgia, serif; font-size: 3.4rem; font-weight: 500; line-height: 1; }
.status-grid strong small { font-size: 1rem; color: var(--muted); }
.status-grid .version-stat { font-family: ui-sans-serif, system-ui; font-size: 1rem; line-height: 1.3; }
.connection-panel { margin-top: 38px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.connection-panel > div { padding: 30px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.connection-panel h2 { margin: 0; font-family: ui-monospace, monospace; font-size: clamp(1.3rem, 3vw, 2.2rem); }
.connection-panel p:last-child, .last-checked { color: var(--muted); }
.last-checked { margin-top: 26px; font-size: .82rem; }
.error-page { min-height: 100vh; display: grid; place-content: center; text-align: center; padding: 30px; }
.error-page h1 { margin: 0; color: var(--gold); font-size: 7rem; }
.error-page .button { display: inline-block; margin-top: 18px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 70px; gap: 38px; }
  .world-card { max-width: 620px; }
  .features { grid-template-columns: 1fr; }
  .feature-card { min-height: 230px; }
  .principles { grid-template-columns: 1fr; gap: 22px; }
  .status-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .shell { width: min(100% - 26px, 1160px); }
  .nav { min-height: 78px; }
  .nav nav { gap: 16px; }
  .brand small { display: none; }
  .hero { min-height: auto; padding: 64px 0; }
  .hero h1 { font-size: clamp(3.5rem, 20vw, 5.6rem); }
  .join-box { align-items: stretch; flex-direction: column; }
  .copy-button { width: 100%; }
  .features { border-left: 0; }
  .feature-card { border-left: 1px solid var(--line); }
  .principles { padding: 100px 0; }
  .status-grid, .connection-panel { grid-template-columns: 1fr; }
  footer { gap: 20px; }
}
