:root {
  color-scheme: dark;
  font-family: Inter, Segoe UI, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #eef7f0;
  background: #070b09;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 78% 12%, rgb(67 217 123 / 0.16), transparent 28%),
    linear-gradient(180deg, #0c1511 0%, #070b09 52%, #0b0d0c 100%);
}

body,
button,
input,
select,
textarea {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: 7px;
  padding: 0 12px;
  color: #eef7f0;
  background: #0a100d;
  outline: 0;
}

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

select {
  cursor: pointer;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgb(141 255 154 / 0.72);
  box-shadow: 0 0 0 3px rgb(141 255 154 / 0.12);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
}

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

h1 {
  max-width: 820px;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 0.96;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h2 {
  max-width: 680px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  font-size: 20px;
  line-height: 1.2;
}

code {
  color: #d7ffe2;
  font: 700 22px/1.1 Consolas, ui-monospace, monospace;
}

.topbar {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: calc(100% - 32px);
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 0;
  backdrop-filter: blur(18px);
}

.brand,
.nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border: 2px solid #8dff9a;
  border-radius: 6px;
  background:
    linear-gradient(90deg, transparent 48%, rgb(255 255 255 / 0.25) 50%, transparent 52%),
    linear-gradient(#79e06e 0 45%, #263a30 45% 100%);
  box-shadow: 0 0 26px rgb(83 255 128 / 0.28);
}

.nav {
  gap: 8px;
  max-width: 100%;
  padding: 4px;
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: 8px;
  background: rgb(7 11 9 / 0.78);
}

.nav a {
  white-space: nowrap;
  padding: 9px 12px;
  border-radius: 7px;
  color: #c8d8cd;
  font-size: 14px;
}

.nav a:hover {
  color: #ffffff;
  background: rgb(255 255 255 / 0.08);
}

.hero,
.section,
.status-band,
.footer {
  width: calc(100% - 32px);
  max-width: 1180px;
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  align-items: center;
  gap: 34px;
  min-height: calc(100vh - 76px);
  padding: 34px 0 72px;
}

.hero-copy {
  display: grid;
  gap: 24px;
  min-width: 0;
}

.eyebrow,
.label {
  color: #79eaa0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lead {
  max-width: 660px;
  color: #bed0c4;
  font-size: 19px;
  line-height: 1.65;
  overflow-wrap: break-word;
}

.join-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  max-width: 620px;
  padding: 16px;
  border: 1px solid rgb(121 234 160 / 0.34);
  border-radius: 8px;
  background: rgb(12 22 17 / 0.88);
  box-shadow: 0 22px 70px rgb(0 0 0 / 0.28);
}

.join-card div {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.join-card button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 7px;
  font-weight: 800;
  cursor: pointer;
}

.join-card button {
  color: #06100a;
  background: #8dff9a;
}

.join-card button:hover,
.button.primary:hover {
  background: #b8ff7a;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}

.button.primary {
  color: #06100a;
  background: #8dff9a;
}

.button.ghost {
  border: 1px solid rgb(255 255 255 / 0.12);
  color: #eaf6ed;
  background: rgb(255 255 255 / 0.06);
}

.button.ghost:hover {
  background: rgb(255 255 255 / 0.1);
}

.world-visual {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgb(120 255 160 / 0.07), transparent 54%),
    linear-gradient(180deg, #101b18 0%, #060807 100%);
  box-shadow: inset 0 0 90px rgb(0 0 0 / 0.45), 0 28px 80px rgb(0 0 0 / 0.34);
}

.moon {
  position: absolute;
  top: 52px;
  right: 60px;
  width: 72px;
  aspect-ratio: 1;
  border-radius: 8px;
  background: #dfffe6;
  box-shadow: 0 0 70px rgb(180 255 205 / 0.48);
}

.stars {
  position: absolute;
  inset: 0;
  opacity: 0.76;
  background-image:
    radial-gradient(circle, #dfffe6 0 1px, transparent 2px),
    radial-gradient(circle, #8dff9a 0 1px, transparent 2px);
  background-position: 28px 48px, 90px 120px;
  background-size: 126px 118px, 168px 150px;
}

.island {
  position: absolute;
  right: 8%;
  bottom: 58px;
  width: 360px;
  height: 300px;
  transform: rotateX(58deg) rotateZ(-22deg);
  transform-style: preserve-3d;
}

.block,
.torch {
  position: absolute;
  width: 82px;
  height: 82px;
  border: 2px solid rgb(0 0 0 / 0.25);
  border-radius: 5px;
  box-shadow: 0 18px 0 #17251d, 0 30px 28px rgb(0 0 0 / 0.3);
}

.grass {
  background:
    linear-gradient(135deg, rgb(255 255 255 / 0.16), transparent 36%),
    linear-gradient(180deg, #88d56d 0 42%, #284934 42% 100%);
}

.stone {
  background:
    linear-gradient(135deg, rgb(255 255 255 / 0.13), transparent 36%),
    linear-gradient(180deg, #6e7d78, #303937);
}

.deep {
  background:
    linear-gradient(135deg, rgb(255 255 255 / 0.08), transparent 36%),
    linear-gradient(180deg, #273932, #111916);
}

.ore {
  background:
    radial-gradient(circle at 30% 34%, #8dff9a 0 6px, transparent 7px),
    radial-gradient(circle at 66% 58%, #70d7ff 0 5px, transparent 6px),
    linear-gradient(180deg, #5c6763, #2a302e);
}

.block-a {
  left: 18px;
  top: 80px;
}

.block-b {
  left: 98px;
  top: 46px;
}

.block-c {
  left: 178px;
  top: 82px;
}

.block-d {
  left: 258px;
  top: 118px;
}

.block-e {
  left: 62px;
  top: 160px;
}

.block-f {
  left: 142px;
  top: 196px;
}

.block-g {
  left: 222px;
  top: 232px;
}

.block-h {
  left: 222px;
  top: 42px;
}

.torch {
  left: 164px;
  top: 112px;
  width: 20px;
  height: 92px;
  border-radius: 4px;
  background: linear-gradient(180deg, #e9ff8f 0 22%, #775233 22% 100%);
  box-shadow: 0 0 48px rgb(255 234 112 / 0.75), 0 16px 0 #2b1c12;
}

.status-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: 8px;
  background: rgb(255 255 255 / 0.1);
}

.status-band div {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 18px;
  background: #0d1310;
}

.status-band strong {
  overflow-wrap: anywhere;
  font-size: 20px;
}

.section {
  padding: 82px 0;
}

.section-head {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.section-text {
  max-width: 760px;
}

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

.feature {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 20px;
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: 8px;
  background: rgb(255 255 255 / 0.045);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgb(141 255 154 / 0.34);
  border-radius: 7px;
  color: #8dff9a;
  background: rgb(141 255 154 / 0.08);
  font-weight: 900;
}

.feature p,
.section-text,
.rules-list p {
  color: #b9c8be;
  font-size: 16px;
  line-height: 1.65;
}

.registration {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 28px;
  align-items: start;
}

.registration .section-head {
  margin-bottom: 0;
}

.site-form {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid rgb(121 234 160 / 0.24);
  border-radius: 8px;
  background: rgb(255 255 255 / 0.045);
}

.site-form label {
  display: grid;
  gap: 8px;
  min-width: 0;
  color: #c9d8cf;
  font-size: 14px;
  font-weight: 800;
}

.site-form .button {
  width: 100%;
}

.form-message {
  min-height: 24px;
  color: #aebbb3;
  font-size: 14px;
  line-height: 1.5;
}

.form-message[data-type="success"] {
  color: #8dff9a;
}

.form-message[data-type="error"] {
  color: #ff9b9b;
}

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

.payment-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 20px;
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: 8px;
  background: rgb(255 255 255 / 0.045);
}

.payment-card.active {
  border-color: rgb(141 255 154 / 0.44);
  background: rgb(141 255 154 / 0.07);
}

.payment-card strong {
  font-size: 26px;
  line-height: 1.15;
}

.payment-card p {
  color: #b9c8be;
  line-height: 1.55;
}

.payment-card button {
  min-height: 42px;
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: 7px;
  color: #eaf6ed;
  background: rgb(255 255 255 / 0.06);
  cursor: pointer;
  font-weight: 800;
}

.payment-card button:hover {
  background: rgb(255 255 255 / 0.1);
}

.payment-card button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.gateway-form button {
  min-height: 40px;
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: 7px;
  color: #eaf6ed;
  background: rgb(255 255 255 / 0.06);
  cursor: pointer;
  font-weight: 800;
}

.gateway-form button:hover {
  background: rgb(255 255 255 / 0.1);
}

.gateway-form h3 {
  margin-bottom: 2px;
}

.gateway-form {
  margin-top: 14px;
}

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

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 1.14fr);
  gap: 34px;
  align-items: start;
}

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

.rules-list div {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 16px;
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: 8px;
  background: rgb(255 255 255 / 0.045);
}

.rules-list span,
.steps span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 7px;
  color: #06100a;
  background: #8dff9a;
  font-weight: 900;
}

.connect {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 28px;
  align-items: center;
  padding-top: 38px;
}

.connect h2 {
  margin: 10px 0 16px;
}

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

.steps div {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: 8px;
  background: #0d1310;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0 38px;
  color: #8c9b91;
  font-size: 14px;
}

@media (max-width: 900px) {
  .hero,
  .split,
  .registration,
  .connect {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 28px;
  }

  .world-visual {
    min-height: 420px;
  }

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

@media (max-width: 680px) {
  .topbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    width: calc(100% - 24px);
    max-width: 1180px;
  }

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

  .hero,
  .section,
  .status-band,
  .footer {
    width: calc(100% - 24px);
    max-width: 1180px;
  }

  h1 {
    font-size: clamp(28px, 8vw, 36px);
    line-height: 1.04;
  }

  .lead {
    font-size: 16px;
  }

  .join-card,
  .feature-grid,
  .payment-grid,
  .gateway-fields,
  .status-band,
  .steps {
    grid-template-columns: 1fr;
  }

  .join-card button {
    width: 100%;
  }

  .hero-actions .button {
    flex: 1 1 100%;
  }

  .world-visual {
    min-height: 340px;
  }

  .island {
    right: auto;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%) scale(0.72) rotateX(58deg) rotateZ(-22deg);
  }

  .footer {
    flex-direction: column;
  }
}
