:root {
  --bg: #07100b;
  --panel: rgba(10, 20, 14, 0.9);
  --border: rgba(190, 151, 74, 0.42);
  --gold: #c39a4b;
  --gold-soft: #edcc7b;
  --text: #e8edf2;
  --muted: #9aa7b5;
  --error: #ff7b7b;
  --success: #7dffb0;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.55);
  --radius: 18px;
  --max: 1080px;
  --serif: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-family: var(--sans);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
}

.backdrop {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 18% 8%, rgba(190, 151, 74, 0.17), transparent 42%),
    radial-gradient(ellipse at 88% 0%, rgba(39, 80, 55, 0.24), transparent 38%),
    radial-gradient(ellipse at 50% 100%, rgba(74, 47, 23, 0.2), transparent 45%),
    linear-gradient(165deg, #050a07 0%, #102017 48%, #09110b 100%);
  z-index: -2;
}

.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.45) 100%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(198, 166, 75, 0.22);
  background: rgba(5, 12, 8, 0.88);
  backdrop-filter: blur(14px);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--gold-soft);
}

.eyebrow {
  margin: 0 0 0.2rem;
  color: var(--gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.68rem;
}

.site-nav {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.nav-link {
  padding: 0.48rem 0.9rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.88rem;
  cursor: pointer;
  width: auto;
  margin: 0;
}

.nav-link:hover { color: var(--text); border-color: rgba(255,255,255,0.1); }
.nav-link.active {
  color: var(--gold-soft);
  border-color: var(--border);
  background: rgba(198, 166, 75, 0.12);
}

.site-main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 1.25rem 3.5rem;
}

.section { display: none; }
.section.active { display: block; }

.hero-banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  min-height: 320px;
  margin-bottom: 1.5rem;
}

.hero-art {
  display: block;
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: center 42%;
  filter: saturate(1.05) contrast(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem 1.75rem 1.6rem;
  background:
    linear-gradient(180deg, rgba(5, 12, 8, 0.05) 0%, rgba(5, 12, 8, 0.28) 40%, rgba(5, 12, 8, 0.94) 100%);
}

.hero-kicker {
  margin: 0 0 0.35rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--gold);
}

.hero-title {
  margin: 0 0 0.45rem;
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gold-soft);
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.65);
}

.hero-lead {
  margin: 0 0 1.15rem;
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.2rem;
  border: none;
  border-radius: 10px;
  background: linear-gradient(180deg, #d4b45a, #a8842d);
  color: #1b1408;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  width: auto;
  margin: 0;
}

.cta.ghost {
  background: rgba(8, 10, 14, 0.55);
  color: var(--gold-soft);
  border: 1px solid var(--border);
}

.cta:hover { filter: brightness(1.08); }

.launcher-paused {
  cursor: not-allowed;
  opacity: 0.65;
}

.link-btn.launcher-paused:hover { text-decoration: none; }
.button-link.launcher-paused { cursor: not-allowed; }

.home-steps { margin-bottom: 1.25rem; }

.server-overview-grid,
.server-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 0 0 1.5rem;
}

.server-overview-card,
.server-detail-card {
  position: relative;
  overflow: hidden;
  padding: 1.45rem;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(20, 37, 26, 0.96), rgba(9, 17, 12, 0.96));
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
}

.server-overview-card::before,
.server-detail-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--gold-soft), rgba(195, 154, 75, 0.08));
}

.server-overview-card h2,
.server-detail-card h3 {
  margin: 0 0 0.6rem;
  color: var(--gold-soft);
  font-family: var(--serif);
  font-size: 1.65rem;
}

.server-overview-card p:not(.server-label),
.server-lead,
.server-footnote {
  color: var(--muted);
  line-height: 1.55;
}

.server-label {
  margin: 0 0 0.35rem;
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.server-detail-card { padding: 1.6rem; }
.server-detail-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.server-detail-heading h3 { font-size: 2rem; }
.server-badge {
  flex: 0 0 auto;
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--gold-soft);
  background: rgba(195, 154, 75, 0.1);
  font-size: 0.72rem;
}

.server-highlights { margin: 1.1rem 0 1.35rem; padding-left: 1.2rem; color: var(--muted); }
.server-highlights li { margin: 0 0 0.7rem; line-height: 1.5; }
.server-highlights strong { color: var(--text); }

.survival-system-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 1.1rem 0;
}

.survival-system {
  padding: 0.9rem;
  border: 1px solid rgba(190, 151, 74, 0.2);
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.18);
}

.survival-system h4 { margin: 0 0 0.35rem; color: var(--gold-soft); font-size: 0.98rem; }
.survival-system p { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.48; }
.server-footnote { margin: 1rem 0 0; padding-top: 0.85rem; border-top: 1px solid rgba(190, 151, 74, 0.18); font-size: 0.87rem; }

.server-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.65rem; margin-top: 1.25rem; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.step-card, .feature-card, .card {
  padding: 1.35rem 1.4rem;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid rgba(198, 166, 75, 0.22);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.card {
  padding: 2rem;
  border-color: var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.card.narrow { max-width: 520px; margin: 0 auto; }

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: rgba(198, 166, 75, 0.2);
  color: var(--gold-soft);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.65rem;
}

.step-card h2, .feature-card h4 {
  margin: 0 0 0.4rem;
  font-family: var(--serif);
  font-size: 1.12rem;
  color: var(--gold-soft);
}

.step-card p, .feature-card p {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.feature-card p { margin-bottom: 0; }

.link-btn {
  display: inline-block;
  padding: 0;
  border: none;
  background: none;
  color: var(--gold-soft);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  width: auto;
  margin: 0;
}

.link-btn:hover { text-decoration: underline; filter: none; }

.share-url {
  margin: 0 0 1rem;
  padding: 1.1rem 1.3rem;
  border-radius: 12px;
  background: rgba(198, 166, 75, 0.1);
  border: 1px solid var(--border);
}

.share-url .label {
  display: block;
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.share-url p { margin: 0 0 0.6rem; color: var(--muted); }

.share-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.share-row code {
  font-size: 1.05rem;
  color: var(--gold-soft);
}

.quick-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  border-radius: 12px;
  background: rgba(198, 166, 75, 0.08);
  border: 1px solid var(--border);
}

.quick-info .label {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.quick-info code { font-size: 1rem; }

.section-head { margin-bottom: 1.5rem; }
.section-head h2 {
  margin: 0 0 0.4rem;
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--gold-soft);
}

.subtitle {
  margin: 0;
  color: var(--muted);
  max-width: 46rem;
  line-height: 1.5;
}

.feature-block { margin-bottom: 2rem; }
.feature-block h3 {
  margin: 0 0 0.85rem;
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--gold);
  letter-spacing: 0.04em;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(198, 166, 75, 0.22);
}

.progression-notes {
  margin: -0.2rem 0 1.1rem;
  color: var(--muted);
  max-width: 48rem;
  line-height: 1.55;
}

.progression-path {
  margin: 0 0 1.15rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.progression-path li {
  padding: 1.15rem 1.35rem;
  border-radius: 14px;
  border: 1px solid rgba(198, 166, 75, 0.22);
  border-left: 3px solid var(--gold);
  background: var(--panel);
}

.progression-path h4 {
  margin: 0 0 0.35rem;
  font-family: var(--serif);
  font-size: 1.12rem;
  color: var(--gold-soft);
}

.progression-path p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.85rem;
}

.addon-strip {
  padding: 1.4rem 1.5rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(198, 166, 75, 0.1), rgba(12, 16, 22, 0.7));
}

.addon-strip h3 {
  margin: 0 0 0.4rem;
  font-family: var(--serif);
  color: var(--gold-soft);
}

.addon-strip p { margin: 0 0 0.75rem; color: var(--muted); }

.addon-strip ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.4rem 1rem;
}

.addon-strip li {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

label {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.92rem;
}

input {
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font-size: 1rem;
}

input:focus {
  outline: 2px solid rgba(198, 166, 75, 0.45);
  border-color: var(--gold);
}

.hint {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.82rem;
}

button[type="submit"], .button-link {
  display: inline-block;
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.85rem 1rem;
  border: none;
  border-radius: 10px;
  background: linear-gradient(180deg, #d0ad60, #98702a);
  color: #1b1408;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}

button[type="submit"]:hover, .button-link:hover { filter: brightness(1.05); }
button:disabled { opacity: 0.65; cursor: wait; }

button.secondary {
  width: 100%;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--gold-soft);
  margin-top: 0.5rem;
}

.copy-btn {
  width: auto;
  margin: 0.5rem 0 0;
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.08);
  color: var(--gold-soft);
  border: 1px solid var(--border);
}

.copy-btn.copied { color: var(--success); border-color: var(--success); }

.message {
  margin: 0.75rem 0 0;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  font-size: 0.92rem;
}

.message.error {
  color: var(--error);
  background: rgba(255, 123, 123, 0.12);
  border: 1px solid rgba(255, 123, 123, 0.35);
}

.success-panel h2 {
  margin: 0 0 0.5rem;
  color: var(--success);
}

.details {
  margin: 1rem 0;
  padding: 1rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.details div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0;
}

.details dt { color: var(--muted); }
.details dd { margin: 0; font-weight: 600; word-break: break-all; }

.guide-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: guide;
}

.guide-list > li {
  counter-increment: guide;
  margin-bottom: 1.75rem;
  padding-left: 2.5rem;
  position: relative;
}

.guide-list > li::before {
  content: counter(guide);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: rgba(198, 166, 75, 0.2);
  color: var(--gold-soft);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.guide-list h3 {
  margin: 0 0 0.4rem;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--gold-soft);
}

.guide-list p {
  margin: 0 0 0.75rem;
  color: var(--muted);
  line-height: 1.5;
}

.code-block {
  margin: 0.5rem 0;
  padding: 1rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--gold-soft);
  font-size: 0.95rem;
  white-space: pre-wrap;
  overflow-x: auto;
}

details.manual-setup { margin-top: 1.75rem; }
.faq h3 {
  margin: 1.5rem 0 0.75rem;
  font-family: var(--serif);
  color: var(--gold-soft);
}

details {
  margin-bottom: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--gold-soft);
}

details p {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

code {
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.35);
  color: var(--gold-soft);
  font-size: 0.9rem;
}

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem 2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
}

@media (max-width: 720px) {
  .card { padding: 1.25rem; }
  .header-inner { flex-direction: column; align-items: flex-start; }
  .hero-art { height: 260px; }
  .hero-overlay { padding: 1.1rem; }
  .hero-actions .cta { flex: 1 1 100%; }
  .server-overview-grid,
  .server-detail-grid { grid-template-columns: 1fr; }
  .survival-system-grid { grid-template-columns: 1fr; }
  .server-actions .cta { flex: 1 1 100%; }
}
