:root {
  color-scheme: dark;
  --bg: #040814;
  --navy: #071326;
  --panel: rgba(8, 20, 35, 0.72);
  --panel-strong: rgba(9, 23, 40, 0.9);
  --panel-soft: rgba(255, 255, 255, 0.055);
  --line: rgba(144, 220, 255, 0.18);
  --line-strong: rgba(76, 216, 255, 0.32);
  --text: #f4f9ff;
  --muted: #9eb3c8;
  --cyan: #37d8ff;
  --emerald: #43f0a3;
  --gold: #f6c65b;
  --danger: #ff6a64;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --radius: 8px;
  font-family: Inter, "Segoe UI", system-ui, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(180deg, rgba(4, 8, 20, 0.52), rgba(4, 8, 20, 0.88) 54%, #040814 100%),
    url("/assets/minecraft-bg.png") center top / cover fixed no-repeat;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent 70%);
}

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 12%, rgba(55, 216, 255, 0.2), transparent 30%),
    radial-gradient(circle at 82% 6%, rgba(67, 240, 163, 0.14), transparent 28%),
    radial-gradient(circle at 70% 72%, rgba(246, 198, 91, 0.1), transparent 30%);
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.nav,
.hero,
.section,
.footer {
  width: min(1180px, calc(100% - 36px));
  margin-inline: auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(55, 216, 255, 0.45);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(55, 216, 255, 0.94), rgba(67, 240, 163, 0.94));
  color: #03111d;
  font-weight: 950;
  box-shadow: 0 0 28px rgba(55, 216, 255, 0.32);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  line-height: 1;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(5, 13, 25, 0.52);
  backdrop-filter: blur(16px);
}

.nav-links a,
.btn,
.copy-btn,
.button {
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 850;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, filter 0.18s ease;
}

.nav-links a {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a:hover,
.nav-links .nav-cta {
  color: var(--text);
  background: rgba(255, 255, 255, 0.075);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(310px, 0.55fr);
  gap: 28px;
  align-items: end;
  min-height: min(760px, calc(100vh - 80px));
  padding: 78px 0 84px;
}

.hero-copy {
  max-width: 820px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--emerald);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(54px, 10vw, 132px);
  line-height: 0.86;
  letter-spacing: 0;
  text-shadow: 0 0 36px rgba(55, 216, 255, 0.26), 0 12px 42px rgba(0, 0, 0, 0.48);
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1;
  letter-spacing: 0;
}

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

.subtitle {
  max-width: 720px;
  color: #d5e7f5;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.45;
}

.server-address {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: min(560px, 100%);
  margin: 30px 0 20px;
  padding: 9px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(3, 10, 20, 0.78);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 0 36px rgba(55, 216, 255, 0.12);
  backdrop-filter: blur(18px);
}

.server-address span {
  padding-left: 12px;
  color: var(--emerald);
  font-family: Consolas, "Cascadia Mono", monospace;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.copy-btn {
  border: 0;
  padding: 13px 16px;
  background: linear-gradient(135deg, var(--emerald), var(--cyan));
  color: #03111d;
}

.copy-btn.copied {
  filter: brightness(1.15);
}

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

.btn,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 13px 18px;
  border: 1px solid var(--line);
}

.btn.primary {
  border-color: rgba(246, 198, 91, 0.5);
  background: linear-gradient(135deg, var(--gold), var(--emerald));
  color: #061017;
}

.btn.secondary,
.button {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.status-card,
.feature-card,
.checkout,
.rules-section,
.join-section,
.map-preview,
.gallery-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), rgba(8, 17, 31, 0.58));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.status-card {
  padding: 22px;
}

.status-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 900;
}

.status-light {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--danger);
  box-shadow: 0 0 20px rgba(255, 106, 100, 0.6);
}

.status-light.online {
  background: var(--emerald);
  box-shadow: 0 0 22px rgba(67, 240, 163, 0.72);
}

.status-card dl {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
}

.status-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

dt {
  color: var(--muted);
}

dd {
  margin: 0;
  color: var(--text);
  font-weight: 850;
  text-align: right;
}

.section {
  padding: 72px 0;
}

.intro-section {
  padding-top: 36px;
}

.section-text {
  max-width: 780px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.feature-card {
  min-height: 260px;
  padding: 22px;
}

.card-index {
  display: inline-flex;
  margin-bottom: 44px;
  color: var(--gold);
  font-family: Consolas, "Cascadia Mono", monospace;
  font-weight: 900;
}

.feature-card h3 {
  color: var(--cyan);
}

.feature-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(300px, 0.62fr);
  gap: 24px;
  align-items: stretch;
}

.map-preview {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  text-decoration: none;
  background:
    linear-gradient(135deg, rgba(4, 12, 24, 0.2), rgba(4, 12, 24, 0.82)),
    url("/assets/minecraft-bg.png") center / cover;
}

.map-preview::before {
  content: "";
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(55, 216, 255, 0.22);
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(67, 240, 163, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(55, 216, 255, 0.18) 1px, transparent 1px);
  background-size: 28px 28px;
  transform: perspective(600px) rotateX(58deg) rotateZ(-8deg);
  transform-origin: center;
}

.map-preview span {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 1;
  padding: 12px 14px;
  border: 1px solid rgba(67, 240, 163, 0.34);
  border-radius: var(--radius);
  background: rgba(3, 10, 20, 0.78);
  color: var(--emerald);
  font-weight: 900;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 16px;
  margin-top: 28px;
}

.gallery-grid article {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(5, 12, 22, 0.1), rgba(5, 12, 22, 0.82)),
    url("/assets/minecraft-bg.png") center / cover;
}

.gallery-grid article:nth-child(2) {
  background-position: 35% center;
}

.gallery-grid article:nth-child(3) {
  background-position: 74% center;
}

.gallery-grid span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  color: var(--text);
  font-weight: 900;
}

.rules-section,
.join-section {
  padding: 34px;
}

.rule-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rule-list span {
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #cbd8e4;
  font-weight: 760;
}

.store-section {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(360px, 1fr);
  gap: 26px;
  align-items: start;
}

.checkout {
  display: grid;
  gap: 18px;
  padding: 22px;
}

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

label {
  display: grid;
  gap: 8px;
  color: #d8e8f6;
  font-size: 14px;
  font-weight: 850;
}

input {
  min-height: 50px;
  width: 100%;
  border: 1px solid rgba(144, 220, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(3, 10, 20, 0.75);
  color: var(--text);
  padding: 12px 13px;
}

input:focus {
  border-color: var(--cyan);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(55, 216, 255, 0.14);
}

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

.pack {
  display: grid;
  min-height: 138px;
  padding: 16px;
  border: 1px solid rgba(67, 240, 163, 0.28);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(18, 77, 64, 0.84), rgba(9, 38, 45, 0.86));
  color: var(--text);
  text-align: left;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}

.pack span {
  color: var(--emerald);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pack strong {
  font-size: 26px;
  line-height: 1.08;
}

.pack em {
  align-self: end;
  color: var(--gold);
  font-style: normal;
  font-weight: 950;
}

.message {
  min-height: 22px;
  margin: 0;
  color: var(--gold);
  font-weight: 800;
}

.join-section {
  margin-top: 24px;
  margin-bottom: 64px;
  text-align: center;
}

.join-section .server-address {
  margin-inline: auto;
}

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

.footer span:first-child {
  color: var(--text);
  font-weight: 900;
}

.success-shell {
  display: grid;
  align-content: center;
  min-height: 100vh;
}

.success-shell .hero {
  display: block;
  min-height: 0;
}

.button {
  width: fit-content;
}

.btn:hover,
.button:hover,
.copy-btn:hover,
.pack:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

@media (max-width: 960px) {
  .hero,
  .split-section,
  .store-section {
    grid-template-columns: 1fr;
  }

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

  .status-card {
    max-width: 560px;
  }

  .packs {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
  }

  .hero {
    padding-top: 46px;
  }

  .server-address,
  .fields,
  .footer {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .server-address span {
    padding: 8px 0 0;
  }

  .feature-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .rules-section,
  .join-section {
    padding: 24px;
  }
}
