:root {
  --black: #080908;
  --surface: #111310;
  --surface-2: #171915;
  --gold: #b59055;
  --gold-bright: #d4b273;
  --cream: #eee6d8;
  --muted: #aaa497;
  --line: rgba(211, 181, 124, .22);
  --serif: "Cinzel", Georgia, serif;
  --sans: "Inter", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--cream);
  font-family: var(--sans);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 6vw, 92px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(0,0,0,.8), transparent);
}
.brand { display: flex; align-items: center; gap: 12px; font: 700 14px var(--serif); letter-spacing: .16em; }
.brand img { width: 50px; height: 50px; object-fit: contain; }
.main-nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); }
.main-nav a { position: relative; color: #cbc5ba; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.main-nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -10px; height: 1px; background: var(--gold-bright); transition: right .25s; }
.main-nav a:hover::after, .main-nav a.active::after { right: 0; }
.nav-cta { border: 1px solid var(--gold); padding: 12px 18px; transition: .2s; }
.nav-cta:hover { color: #090909; background: var(--gold-bright); }
.nav-toggle { display: none; border: 0; background: none; padding: 10px; }
.nav-toggle span { display: block; width: 26px; height: 1px; margin: 7px; background: var(--cream); }

.hero {
  min-height: 100vh;
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  overflow: hidden;
  padding: 130px clamp(24px, 9vw, 150px) 90px;
}
.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6,7,6,.98) 0%, rgba(6,7,6,.88) 38%, rgba(6,7,6,.34) 75%, rgba(6,7,6,.75) 100%),
    linear-gradient(0deg, var(--black) 0%, transparent 25%),
    url("banner.png") center / cover no-repeat;
  filter: saturate(.72);
}
.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.08) .55px, transparent .55px);
  background-size: 5px 5px;
  opacity: .28;
}
.hero-content, .hero-crest { position: relative; z-index: 2; }
.hero-content { max-width: 700px; }
.eyebrow { margin: 0 0 20px; color: var(--gold-bright); font-size: 11px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; }
.eyebrow::before { content: ""; display: inline-block; vertical-align: middle; width: 42px; height: 1px; margin-right: 16px; background: var(--gold); }
h1, h2, h3 { margin-top: 0; font-family: var(--serif); text-transform: uppercase; line-height: 1.05; }
h1 { max-width: 760px; margin-bottom: 24px; font-size: clamp(50px, 6.6vw, 104px); letter-spacing: -.04em; text-shadow: 0 6px 30px #000; }
h2 { margin-bottom: 24px; font-size: clamp(34px, 4vw, 62px); letter-spacing: -.025em; }
h3 { font-size: 22px; letter-spacing: .02em; }
.hero-copy { max-width: 600px; margin: 0 0 36px; color: #c6c0b5; font-size: clamp(15px, 1.2vw, 18px); }
.button-row { display: flex; flex-wrap: wrap; gap: 14px; }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; border: 1px solid var(--gold); padding: 13px 24px; color: var(--cream); background: transparent; cursor: pointer; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; transition: .25s; }
.button-primary { color: #080908; background: var(--gold-bright); }
.button:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.button-primary:hover { background: #e3c58c; }
.button-ghost:hover { background: rgba(181,144,85,.12); }
.hero-crest { width: min(42vw, 550px); justify-self: end; filter: drop-shadow(0 22px 24px rgba(0,0,0,.7)); }
.scroll-cue { position: absolute; z-index: 3; bottom: 30px; left: 50%; color: #8f8a80; font-size: 8px; letter-spacing: .2em; transform: translateX(-50%); }
.scroll-cue span { display: block; width: 1px; height: 28px; margin: 0 auto 9px; background: var(--gold); }

.stats-strip { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 1180px; margin: -1px auto 0; border: 1px solid var(--line); border-width: 0 1px 1px; }
.stats-strip div { padding: 35px 28px; text-align: center; border-right: 1px solid var(--line); }
.stats-strip div:last-child { border: 0; }
.stats-strip strong { display: block; color: var(--gold-bright); font: 700 25px var(--serif); }
.stats-strip span { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .19em; text-transform: uppercase; }
.content-section, .server-preview, .values-section, .servers-page { max-width: 1280px; margin: auto; padding: clamp(80px, 10vw, 150px) clamp(24px, 5vw, 70px); }
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 70px; }
.intro-copy { border-left: 1px solid var(--line); padding-left: clamp(30px, 6vw, 90px); }
.intro-copy p, .lead { margin-top: 0; color: #c9c3b8; font-size: clamp(17px, 1.5vw, 21px); }
.text-link { display: inline-flex; gap: 10px; align-items: center; margin-top: 16px; color: var(--gold-bright); font-size: 11px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.text-link span { font-size: 17px; transition: transform .2s; }
.text-link:hover span { transform: translateX(5px); }
.server-preview { padding-top: 20px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 45px; }
.server-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.server-card { min-height: 410px; display: flex; flex-direction: column; border: 1px solid var(--line); overflow: hidden; background: linear-gradient(145deg, rgba(255,255,255,.035), transparent); transition: border-color .25s, transform .25s; }
.server-card:hover { transform: translateY(-5px); border-color: rgba(211,181,124,.55); }
.server-art { position: relative; height: 150px; overflow: hidden; background: #0b0c0a; }
.server-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,11,9,.55), transparent 65%); }
.server-art img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.72) contrast(1.08); transition: transform .4s, filter .4s; }
.server-card:hover .server-art img { transform: scale(1.035); filter: saturate(.95) contrast(1.05); }
.server-card-body { flex: 1; display: flex; flex-direction: column; padding: 25px 28px 28px; }
.server-topline { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.game-tag { color: var(--gold-bright); font-size: 9px; font-weight: 800; letter-spacing: .2em; }
.status { color: var(--muted); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.status i { display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: #9c875f; }
.status.online i { background: #7bb88b; box-shadow: 0 0 8px #7bb88b; }
.server-card p { flex: 1; color: var(--muted); font-size: 13px; }
.server-address { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.server-address span { display: block; color: #77746d; font-size: 8px; font-weight: 800; letter-spacing: .17em; }
.server-address strong { color: #d5cec1; font-size: 12px; font-weight: 600; }

.page-hero { min-height: 580px; position: relative; display: flex; align-items: flex-end; padding: 160px clamp(24px, 9vw, 150px) 100px; overflow: hidden; }
.page-hero-image { position: absolute; inset: 0; background: linear-gradient(0deg, var(--black), rgba(7,8,7,.35) 65%, rgba(7,8,7,.8)), url("banner.png") center / cover; filter: saturate(.6); }
.page-hero-content { position: relative; max-width: 810px; }
.page-hero h1 { margin-bottom: 20px; }
.page-hero-content > p:last-child { max-width: 680px; color: #c7c0b5; font-size: 17px; }
.about-story { display: grid; grid-template-columns: .65fr 1.35fr; gap: 70px; }
.story-mark { color: transparent; font: 800 clamp(100px, 17vw, 230px)/.8 var(--serif); -webkit-text-stroke: 1px rgba(211,181,124,.3); }
.about-story div:last-child { max-width: 700px; }
.about-story div:last-child p:last-child { color: var(--muted); }
.values-section { padding-top: 30px; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.value-card { min-height: 280px; padding: 35px; border-right: 1px solid var(--line); }
.value-card:last-child { border: 0; }
.value-card > span { display: block; margin-bottom: 70px; color: var(--gold); font: 600 12px var(--serif); }
.value-card p { color: var(--muted); font-size: 13px; }
.servers-page { padding-top: 80px; }
.server-note { margin: 35px 0 0; color: #77746d; font-size: 11px; text-align: center; }
.join-banner { max-width: 1140px; margin: 30px auto 130px; display: grid; grid-template-columns: 120px 1fr auto; align-items: center; gap: 35px; border: 1px solid var(--line); padding: 30px 45px; background: linear-gradient(90deg, #151711, #0c0d0b); }
.join-banner img { width: 110px; filter: drop-shadow(0 8px 14px #000); }
.join-banner h2 { margin: 0; font-size: clamp(28px, 3vw, 44px); }
.join-banner .eyebrow { margin-bottom: 10px; }

.site-footer { border-top: 1px solid var(--line); padding: 70px 24px 32px; text-align: center; background: #070807; }
.site-footer img { width: 90px; margin: auto; }
.site-footer > p { color: var(--gold-bright); font: 600 11px var(--serif); letter-spacing: .25em; }
.footer-links { display: flex; justify-content: center; gap: 35px; margin: 35px 0; }
.footer-links a { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.site-footer small { color: #55534e; font-size: 9px; }

.editor-shell { max-width: 1100px; min-height: 100vh; margin: auto; padding: 150px 24px 100px; }
.editor-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 35px; }
.editor-heading h1 { margin: 0; font-size: clamp(42px, 7vw, 76px); }
.editor-notice { margin-bottom: 25px; border-left: 3px solid var(--gold); padding: 16px 20px; color: var(--muted); background: var(--surface); font-size: 12px; }
.editor-panel { margin-bottom: 18px; border: 1px solid var(--line); padding: 28px; background: var(--surface); }
.editor-panel h2 { margin-bottom: 24px; font-size: 20px; }
.panel-heading, .server-editor-heading { display: flex; justify-content: space-between; align-items: center; }
.field-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.editor-field { display: flex; flex-direction: column; gap: 7px; }
.editor-field span { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.editor-field input, .editor-field textarea { width: 100%; border: 1px solid #35372f; outline: 0; padding: 12px 14px; color: var(--cream); background: #090a09; resize: vertical; }
.editor-field input:focus, .editor-field textarea:focus { border-color: var(--gold); }
.server-editor { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 20px; }
.server-editor-heading { margin-bottom: 14px; }
.server-editor-heading strong { color: var(--gold-bright); font: 600 12px var(--serif); }
.remove-server, .text-button { border: 0; color: #b9867f; background: none; cursor: pointer; font-size: 11px; }
.small-button { border: 1px solid var(--gold); padding: 8px 12px; color: var(--gold-bright); background: none; cursor: pointer; font-size: 9px; font-weight: 700; letter-spacing: .12em; }
.editor-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-top: 10px; }
.import-button { cursor: pointer; }
.import-button input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.save-message { color: #8ec29a; font-size: 12px; }
.reveal { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
.delay { animation-delay: .18s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 900px) {
  .site-header { height: 76px; padding: 0 20px; }
  .brand img { width: 42px; height: 42px; }
  .nav-toggle { display: block; position: relative; z-index: 2; }
  .main-nav { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 32px; background: rgba(7,8,7,.98); opacity: 0; pointer-events: none; transition: opacity .2s; }
  .main-nav a { font-size: 15px; }
  .nav-open .main-nav { opacity: 1; pointer-events: auto; }
  .hero { grid-template-columns: 1fr; padding-top: 130px; text-align: center; }
  .hero .eyebrow::before { display: none; }
  .hero-copy { margin-left: auto; margin-right: auto; }
  .button-row { justify-content: center; }
  .hero-crest { width: min(72vw, 410px); margin-top: 30px; justify-self: center; }
  .scroll-cue { display: none; }
  .server-grid, .values-grid { grid-template-columns: 1fr; }
  .value-card { min-height: 220px; border-right: 0; border-bottom: 1px solid var(--line); }
  .value-card > span { margin-bottom: 35px; }
  .join-banner { margin-left: 24px; margin-right: 24px; grid-template-columns: 85px 1fr; }
  .join-banner .button { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .brand span { display: none; }
  .hero { min-height: 900px; padding-left: 20px; padding-right: 20px; }
  h1 { font-size: 47px; }
  .stats-strip { grid-template-columns: 1fr; margin: 0 20px; }
  .stats-strip div { border-right: 0; border-bottom: 1px solid var(--line); }
  .intro-grid, .about-story { grid-template-columns: 1fr; gap: 30px; }
  .intro-copy { border-left: 0; border-top: 1px solid var(--line); padding: 30px 0 0; }
  .section-heading { display: block; }
  .section-heading .text-link { margin-top: 0; }
  .page-hero { min-height: 520px; padding-bottom: 65px; }
  .story-mark { font-size: 100px; }
  .join-banner { grid-template-columns: 1fr; text-align: center; padding: 30px 22px; }
  .join-banner img { margin: auto; }
  .join-banner .eyebrow::before { display: none; }
  .editor-heading { display: block; }
  .editor-heading .button { margin-top: 22px; }
  .field-grid { grid-template-columns: 1fr; }
  .editor-panel { padding: 20px; }
}
