:root {
  --plum: #302442;
  --wine: #422427;
  --moss: #364224;
  --teal: #24423F;
  --ink: #110f16;
  --text: #f6f1e8;
  --muted: #c8beb2;
  --line: rgba(246, 241, 232, 0.14);
  --amber: #e6b85d;
  --flame: #d97745;
  --aqua: #83d5c8;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 20% 0%, rgba(131, 213, 200, 0.14), transparent 28rem),
    linear-gradient(135deg, var(--ink), var(--plum) 38%, var(--teal));
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

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

svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  flex: 0 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  background: rgba(17, 15, 22, 0.72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand,
.header-download,
.button,
.nav-links {
  display: inline-flex;
  align-items: center;
}

.brand {
  gap: 0.7rem;
  font-weight: 850;
}

.brand-mark {
  width: 1.45rem;
  height: 1.45rem;
  display: inline-block;
  background:
    linear-gradient(90deg, transparent 42%, rgba(255, 255, 255, 0.16) 42% 58%, transparent 58%),
    linear-gradient(0deg, transparent 42%, rgba(255, 255, 255, 0.16) 42% 58%, transparent 58%),
    linear-gradient(135deg, var(--amber), var(--teal));
  border: 1px solid rgba(246, 241, 232, 0.24);
  box-shadow: 0 0 24px rgba(230, 184, 93, 0.35);
  transform: rotate(8deg);
}

.nav-links {
  gap: 0.4rem;
  padding: 0.25rem;
  border: 1px solid var(--line);
  background: rgba(48, 36, 66, 0.44);
}

.nav-links a {
  padding: 0.55rem 0.85rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
  transition: color 160ms ease, background 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
  background: rgba(131, 213, 200, 0.12);
  outline: none;
}

.header-download {
  justify-self: end;
  gap: 0.55rem;
  padding: 0.7rem 0.9rem;
  color: #160f0a;
  background: var(--amber);
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.header-download,
.button,
.nav-links,
.server-strip,
.feature-card,
.builds-panel,
.steps li {
  border-radius: 8px;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: min(760px, 76svh);
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: clamp(3.2rem, 8vw, 6.7rem) clamp(1rem, 5vw, 5rem);
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media {
  background-image: url("assets/hero-world.png");
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(17, 15, 22, 0.94) 0%, rgba(48, 36, 66, 0.82) 35%, rgba(36, 66, 63, 0.28) 66%, rgba(17, 15, 22, 0.48) 100%),
    linear-gradient(0deg, rgba(17, 15, 22, 0.82), transparent 42%, rgba(17, 15, 22, 0.42));
}

.hero-content {
  width: min(720px, 100%);
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--aqua);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

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

h1 {
  max-width: 11ch;
  margin-bottom: 1rem;
  font-size: clamp(4.2rem, 10vw, 8.5rem);
  line-height: 0.92;
  font-weight: 850;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 5vw, 4.25rem);
  line-height: 1.02;
  font-weight: 850;
}

h3 {
  margin-bottom: 0.55rem;
  font-size: 1.1rem;
}

.hero-copy,
.section-copy p,
.builds-panel p,
.steps p,
.feature-card p,
.stat-item p {
  color: var(--muted);
}

.hero-copy {
  width: min(620px, 100%);
  margin-bottom: 2rem;
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.3rem;
}

.button {
  min-height: 3.1rem;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.82rem 1.05rem;
  border: 1px solid var(--line);
  color: var(--text);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible,
.header-download:hover,
.header-download:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.button.primary {
  color: #180f0a;
  background: linear-gradient(135deg, var(--amber), var(--flame));
  border-color: rgba(255, 255, 255, 0.24);
}

.button.secondary {
  background: rgba(36, 66, 63, 0.72);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  border-color: rgba(131, 213, 200, 0.5);
  background: rgba(36, 66, 63, 0.92);
}

.button.compact {
  width: fit-content;
}

.server-strip {
  width: min(430px, 100%);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0.95rem;
  background: rgba(17, 15, 22, 0.66);
  border: 1px solid rgba(131, 213, 200, 0.24);
  box-shadow: var(--shadow);
}

.server-label {
  color: var(--muted);
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat-item {
  min-height: 9.2rem;
  padding: clamp(1.2rem, 3vw, 2rem);
  background: linear-gradient(135deg, rgba(66, 36, 39, 0.95), rgba(48, 36, 66, 0.95));
}

.stat-item span {
  display: block;
  margin-bottom: 0.9rem;
  color: var(--amber);
  font-weight: 850;
}

.stat-item strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1.08rem;
}

.stat-item p {
  margin-bottom: 0;
}

.world-section,
.builds-section,
.join-section {
  padding: clamp(4rem, 9vw, 7rem) clamp(1rem, 5vw, 5rem);
}

.world-section {
  background:
    linear-gradient(135deg, rgba(54, 66, 36, 0.46), rgba(17, 15, 22, 0.78)),
    var(--ink);
}

.section-copy {
  width: min(780px, 100%);
  margin-bottom: 2rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feature-card {
  min-height: 14rem;
  padding: 1.2rem;
  background: rgba(246, 241, 232, 0.055);
  border: 1px solid var(--line);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.18);
}

.feature-icon {
  width: 2.3rem;
  height: 2.3rem;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(246, 241, 232, 0.2);
  background:
    linear-gradient(90deg, transparent 44%, rgba(255, 255, 255, 0.14) 44% 56%, transparent 56%),
    linear-gradient(0deg, transparent 44%, rgba(255, 255, 255, 0.14) 44% 56%, transparent 56%),
    var(--teal);
}

.feature-icon.stone {
  background-color: var(--plum);
}

.feature-icon.ember {
  background-color: var(--wine);
}

.feature-icon.moss {
  background-color: var(--moss);
}

.builds-section {
  background:
    linear-gradient(110deg, rgba(48, 36, 66, 0.96), rgba(66, 36, 39, 0.9) 50%, rgba(36, 66, 63, 0.92)),
    var(--plum);
}

.builds-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.72fr);
  gap: 2rem;
  align-items: end;
  padding: clamp(1.2rem, 4vw, 2rem);
  border: 1px solid rgba(246, 241, 232, 0.18);
  background: rgba(17, 15, 22, 0.42);
}

.builds-panel p {
  margin-bottom: 1.2rem;
}

.join-section {
  background: linear-gradient(180deg, var(--ink), #17141d);
}

.join-copy {
  margin-bottom: 2rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  position: relative;
  min-height: 12rem;
  padding: 1.2rem;
  background: rgba(246, 241, 232, 0.055);
  border: 1px solid var(--line);
}

.steps span {
  display: inline-grid;
  width: 2.2rem;
  height: 2.2rem;
  place-items: center;
  margin-bottom: 1.2rem;
  color: #170f0b;
  background: var(--amber);
  font-weight: 850;
}

.steps strong {
  display: block;
  margin-bottom: 0.45rem;
}

.steps p {
  margin-bottom: 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem clamp(1rem, 5vw, 5rem);
  color: var(--muted);
  background: #0d0b10;
  border-top: 1px solid var(--line);
}

.site-footer span {
  color: var(--text);
  font-weight: 850;
}

.site-footer a {
  color: var(--aqua);
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 72svh;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(17, 15, 22, 0.96), rgba(48, 36, 66, 0.84) 58%, rgba(17, 15, 22, 0.5)),
      linear-gradient(0deg, rgba(17, 15, 22, 0.84), transparent 40%, rgba(17, 15, 22, 0.42));
  }

  .stats-band,
  .feature-grid,
  .steps,
  .builds-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header {
    gap: 0.8rem;
  }

  .brand span:last-child {
    display: none;
  }

  .header-download span {
    display: none;
  }

  h1 {
    font-size: 4rem;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .server-strip,
  .site-footer {
    flex-direction: column;
  }
}
