:root {
  --grass: #4caf50;
  --grass-bright: #6fdc73;
  --dirt: #795548;
  --night: #0b0e1a;
  --night-2: #131829;
  --gold: #ffb733;
  --text: #e9edf5;
  --muted: #a7b0c4;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--night);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.6;
}

.pixel, h1, .logo, .step, .addr-label {
  font-family: "Press Start 2P", monospace;
}

/* ── Hero ─────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: auto;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,14,26,0.55) 0%, rgba(11,14,26,0.25) 45%, rgba(11,14,26,0.92) 100%);
}

nav {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem clamp(1rem, 5vw, 4rem);
}

.logo {
  font-size: 1.1rem;
  color: #fff;
  text-shadow: 3px 3px 0 rgba(0,0,0,0.6);
}
.logo span { color: var(--grass-bright); }

.hero-content {
  position: relative;
  z-index: 2;
  margin: auto 0 8vh;
  padding: 0 clamp(1rem, 6vw, 5rem);
  max-width: 60rem;
}

h1 {
  font-size: clamp(1.4rem, 4.2vw, 2.8rem);
  line-height: 1.5;
  text-shadow: 4px 4px 0 rgba(0,0,0,0.65);
}
h1 .accent { color: var(--grass-bright); }

.tagline {
  margin: 1.5rem 0 2rem;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  color: var(--text);
  max-width: 34rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

.addr-demo {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  background: rgba(11,14,26,0.85);
  border: 3px solid var(--grass);
  padding: 0.9rem 1.2rem;
  margin-bottom: 2rem;
  box-shadow: 6px 6px 0 rgba(0,0,0,0.5);
}
.addr-label { font-size: 0.55rem; color: var(--muted); }
.addr-demo code { font-size: clamp(0.85rem, 2vw, 1.1rem); color: var(--grass-bright); }
.addr-lock { font-size: 0.8rem; color: var(--gold); }

/* ── Buttons ──────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: "Press Start 2P", monospace;
  font-size: 0.75rem;
  padding: 1rem 1.5rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--grass);
  color: #06130a;
  box-shadow: 0 5px 0 #2e7d32, 6px 11px 0 rgba(0,0,0,0.45);
  transition: transform 0.06s, box-shadow 0.06s;
}
.btn-primary:hover { background: var(--grass-bright); }
.btn-primary:active { transform: translateY(4px); box-shadow: 0 1px 0 #2e7d32; }
.btn-ghost {
  background: rgba(11,14,26,0.6);
  color: var(--muted);
  border: 2px solid var(--muted);
  font-size: 0.6rem;
  padding: 0.7rem 1rem;
}
.btn-ghost[disabled] { opacity: 0.75; cursor: not-allowed; }

/* ── Features ─────────────────────────────────────── */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 2rem;
  padding: 5rem clamp(1rem, 6vw, 5rem);
  max-width: 80rem;
  margin: 0 auto;
}

.feature {
  background: var(--night-2);
  border: 3px solid #232b45;
  padding: 2rem;
  box-shadow: 8px 8px 0 rgba(0,0,0,0.35);
}
.feature h2 { font-size: 1.15rem; margin: 1rem 0 0.5rem; font-weight: 800; }
.feature p { color: var(--muted); font-size: 0.95rem; }

.feature-icon {
  width: 44px; height: 44px;
  image-rendering: pixelated;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.4);
}
.feature-icon.grass { background: linear-gradient(180deg, var(--grass) 0 35%, var(--dirt) 35% 100%); }
.feature-icon.redstone { background: radial-gradient(circle at 35% 35%, #ff6659, #b71c1c 70%); }
.feature-icon.diamond { background: linear-gradient(135deg, #7fe7e0, #26c6da 55%, #0097a7); }

/* ── How it works ─────────────────────────────────── */
.how {
  padding: 3rem clamp(1rem, 6vw, 5rem) 5rem;
  max-width: 60rem;
  margin: 0 auto;
}
.how h2 { font-family: "Press Start 2P", monospace; font-size: 1.1rem; margin-bottom: 2rem; color: var(--grass-bright); }
.how ol { list-style: none; display: grid; gap: 1.25rem; }
.how li { display: flex; align-items: center; gap: 1.25rem; font-size: 1.05rem; }
.how code { color: var(--grass-bright); background: var(--night-2); padding: 0.15rem 0.5rem; }
.step {
  flex: 0 0 auto;
  width: 2.6rem; height: 2.6rem;
  display: grid; place-items: center;
  background: var(--dirt);
  color: #fff;
  font-size: 0.9rem;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.45);
}

/* ── CTA / footer ─────────────────────────────────── */
.cta {
  text-align: center;
  padding: 4rem 1rem 5rem;
  background: linear-gradient(180deg, var(--night) 0%, #0d2412 100%);
}
.cta h2 { font-family: "Press Start 2P", monospace; font-size: 1rem; margin-bottom: 1rem; }
.cta p { color: var(--muted); margin-bottom: 2rem; }

footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 2px solid #1a2138;
}
