:root {
  --bg: #07090c;
  --panel: rgba(16, 21, 28, 0.82);
  --panel-strong: rgba(18, 27, 22, 0.9);
  --green: #2d9b5a;
  --gold: #c9a227;
  --magic: #7b3fbe;
  --red: #a83a35;
  --cyan: #3b98a8;
  --text: #e8e8e0;
  --muted: #a7a694;
  --soft: #777667;
  --line: rgba(232, 232, 224, 0.13);
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.46);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  letter-spacing: 0;
}

a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }

.hero-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
  z-index: -3;
}

body::before,
.mist-layer {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: -2;
  background:
    radial-gradient(circle at 18% 16%, rgba(45, 155, 90, 0.22), transparent 27%),
    radial-gradient(circle at 82% 12%, rgba(123, 63, 190, 0.2), transparent 26%),
    radial-gradient(circle at 78% 72%, rgba(201, 162, 39, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(7, 9, 12, 0.66), #07090c 74%);
}

.mist-layer {
  z-index: -1;
  opacity: 0.24;
  background:
    repeating-linear-gradient(115deg, transparent 0 72px, rgba(255,255,255,.045) 72px 74px),
    linear-gradient(90deg, transparent, rgba(255,255,255,.035), transparent);
  animation: mistDrift 18s linear infinite;
}

@keyframes mistDrift {
  from { transform: translate3d(-40px, 0, 0); }
  to { transform: translate3d(40px, 0, 0); }
}

.site-shell {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  min-height: 64px;
  margin-top: 14px;
  padding: 10px 12px 10px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 9, 12, 0.72);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 23px;
  font-weight: 950;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background:
    linear-gradient(135deg, transparent 0 35%, rgba(7,9,12,.65) 35% 48%, transparent 48%),
    linear-gradient(135deg, var(--gold), var(--green) 56%, var(--magic));
  box-shadow: 0 0 24px rgba(45, 155, 90, .34);
}

nav {
  justify-self: center;
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
  text-transform: uppercase;
}

nav a:hover { color: var(--text); }

.top-download,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-weight: 900;
}

.top-download,
.button.green {
  border-color: transparent;
  background: linear-gradient(180deg, #37b86b, #247c49);
  color: #fff;
}

.button.gold {
  border-color: transparent;
  background: linear-gradient(180deg, #e0bd42, #a27b18);
  color: #080908;
}

.button.ghost {
  background: rgba(255, 255, 255, 0.06);
}

.button.disabled {
  border-color: rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .05);
  color: var(--soft);
  cursor: not-allowed;
}

.button.compact {
  min-height: 38px;
  padding: 0 14px;
  font-size: 13px;
}

.hero {
  position: relative;
  display: flex;
  min-height: calc(100vh - 80px);
  align-items: center;
  padding: 92px 0 110px;
}

.hero-copy {
  width: min(760px, 68vw);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

h1,
h2,
h3,
p { margin-top: 0; }

h1 {
  margin-bottom: 18px;
  font-size: clamp(64px, 10vw, 126px);
  line-height: 0.88;
  font-weight: 950;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1;
  font-weight: 950;
}

h3 {
  margin-bottom: 10px;
  font-size: 26px;
}

.lead {
  max-width: 720px;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.5;
}

.hero-actions,
.auth-actions,
.server-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions { margin-top: 28px; }

.hero-status {
  position: absolute;
  right: 0;
  bottom: 72px;
  width: min(420px, 36vw);
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(10, 13, 18, 0.68);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-status__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--gold);
  text-transform: uppercase;
  font-size: 13px;
}

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 99px;
  background: #72ff95;
  box-shadow: 0 0 18px #72ff95;
}

.status-list {
  display: grid;
  gap: 10px;
}

.status-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
}

.status-line strong {
  color: var(--text);
}

.quick-worlds {
  margin-top: -76px;
  padding-bottom: 54px;
}

.world-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.world-chip {
  position: relative;
  height: 112px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #10151c;
  color: var(--text);
  text-align: left;
}

.world-chip img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .78;
}

.world-chip::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.72));
}

.world-chip span {
  position: absolute;
  z-index: 1;
  left: 14px;
  bottom: 12px;
  font-weight: 950;
}

.section {
  padding: 76px 0;
}

.section-head {
  margin-bottom: 26px;
}

.section-head--row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
}

.server-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.server-card {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #10151c;
  box-shadow: var(--shadow);
}

.server-card:hover {
  transform: translateY(-3px);
  border-color: rgba(201, 162, 39, .32);
  transition: transform .18s ease, border-color .18s ease;
}

.server-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.server-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 9, 12, 0.9), rgba(7, 9, 12, 0.24) 60%, rgba(7, 9, 12, 0.68)),
    linear-gradient(180deg, transparent, rgba(7, 9, 12, 0.82));
}

.server-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 420px;
  padding: 26px;
}

.server-topline,
.details-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.server-content h3 {
  margin-top: auto;
  margin-bottom: 12px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1;
}

.server-content p {
  max-width: 520px;
  color: var(--muted);
  line-height: 1.45;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: var(--text);
  font-size: 12px;
  font-weight: 950;
}

.status-online {
  border-color: rgba(45, 155, 90, .34);
  background: rgba(45, 155, 90, .22);
  color: #8dffb6;
}

.status-soon {
  border-color: rgba(201, 162, 39, .3);
  background: rgba(201, 162, 39, .16);
  color: #f2d56d;
}

.status-maintenance {
  border-color: rgba(123, 63, 190, .36);
  background: rgba(123, 63, 190, .18);
  color: #d7b6ff;
}

.server-actions {
  margin-top: 18px;
}

.server-details {
  padding-top: 12px;
}

.details-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.details-layout img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
}

.details-layout p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

.details-meta {
  margin: 20px 0;
}

.launcher-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .86fr);
  gap: 24px;
  align-items: center;
}

.launcher-copy,
.launcher-preview,
.panel,
.steps article,
.path-grid article,
.news-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.launcher-copy {
  padding: 34px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.feature-grid article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
}

.feature-grid strong,
.feature-grid span {
  display: block;
}

.feature-grid span {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.4;
}

.launcher-preview {
  overflow: hidden;
}

.launcher-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.steps,
.path-grid,
.news-grid,
.account-grid {
  display: grid;
  gap: 20px;
}

.steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.steps article,
.path-grid article,
.panel,
.news-card {
  padding: 24px;
}

.steps b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border-radius: 8px;
  background: var(--green);
}

.steps p,
.path-grid p,
.news-card p {
  color: var(--muted);
  line-height: 1.45;
}

.path-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.path-grid article span {
  display: block;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 22px;
  font-weight: 950;
}

.news-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.news-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  margin-bottom: 16px;
  object-fit: cover;
  border-radius: 8px;
}

.news-card h3 {
  margin-top: 16px;
  font-size: 22px;
}

.account-grid {
  grid-template-columns: minmax(0, 1fr) minmax(300px, .82fr);
}

.auth-form,
.profile-form {
  display: grid;
  gap: 12px;
}

input,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .07);
  color: var(--text);
  padding: 0 14px;
  outline: 0;
}

textarea {
  min-height: 94px;
  padding-top: 12px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: rgba(201, 162, 39, .44);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, .12);
}

.profile-box {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.profile-form,
.link-button {
  grid-column: 1 / -1;
}

.skin-preview {
  width: 120px;
  height: 120px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 34%, rgba(0,0,0,.28) 34% 45%, transparent 45% 55%, rgba(0,0,0,.28) 55% 66%, transparent 66%),
    linear-gradient(135deg, var(--magic), var(--green));
  background-size: cover;
  background-position: center;
}

.skin-upload {
  display: inline-flex;
  margin-top: 10px;
  color: var(--gold);
  font-weight: 900;
  cursor: pointer;
}

.community-panel a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.link-button {
  width: max-content;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
}

.message {
  min-height: 22px;
  color: var(--gold);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

[hidden] { display: none !important; }

@media (max-width: 940px) {
  nav { display: none; }
  .topbar { grid-template-columns: auto auto; }
  .top-download { justify-self: end; }
  .hero { min-height: 720px; align-items: flex-start; padding-top: 100px; }
  .hero-copy { width: 100%; }
  .hero-status { position: relative; width: 100%; right: auto; bottom: auto; margin-top: 36px; }
  .quick-worlds { margin-top: 0; }
  .world-rail,
  .server-grid,
  .launcher-band,
  .steps,
  .path-grid,
  .news-grid,
  .account-grid,
  .details-layout,
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .server-content,
  .server-card { min-height: 360px; }
  footer { flex-direction: column; }
}
