:root {
  color-scheme: dark;
  --ink: #f5fff8;
  --muted: #9eb5aa;
  --night: #07110e;
  --night-soft: #0c1c17;
  --panel: rgba(16, 37, 30, 0.72);
  --green: #67e892;
  --green-bright: #a7ffc4;
  --mint: #d8ffe5;
  --gold: #ffd479;
  --line: rgba(183, 255, 205, 0.13);
  --shadow: 0 32px 100px rgba(0, 0, 0, 0.4);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--night);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 8%, rgba(50, 171, 102, 0.19), transparent 26rem),
    radial-gradient(circle at 6% 32%, rgba(42, 112, 81, 0.13), transparent 30rem),
    linear-gradient(180deg, #081612 0%, #07110e 48%, #0b1713 100%);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(255,255,255,.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.1) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 70%);
  content: "";
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--green-bright);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.8rem 1rem;
  border-radius: 0.5rem;
  background: white;
  color: #07110e;
  transform: translateY(-170%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
main,
footer {
  width: min(1180px, calc(100% - 3rem));
  margin-inline: auto;
}

.site-header {
  display: flex;
  min-height: 6rem;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: white;
  font-size: 1.1rem;
  font-weight: 840;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.brand img {
  width: 3.15rem;
  height: 3.15rem;
  image-rendering: pixelated;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.32));
}

.brand strong {
  color: var(--green);
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.2rem);
}

nav a {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 160ms ease;
}

nav a:hover {
  color: white;
}

nav .nav-join {
  padding: 0.7rem 1rem;
  border: 1px solid rgba(103, 232, 146, 0.38);
  border-radius: 0.65rem;
  background: rgba(103, 232, 146, 0.08);
  color: var(--green-bright);
}

.hero {
  display: grid;
  min-height: min(760px, calc(100vh - 6rem));
  grid-template-columns: minmax(0, 1.04fr) minmax(22rem, 0.96fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  padding-block: clamp(4.5rem, 10vw, 8rem);
}

.hero-copy {
  position: relative;
  z-index: 3;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1.3rem;
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow > span {
  width: 1.6rem;
  height: 2px;
  background: currentColor;
  box-shadow: 0 0 14px currentColor;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.055em;
}

h1 {
  max-width: 11ch;
  font-size: clamp(4rem, 8vw, 7.6rem);
  line-height: 0.9;
}

h1 em,
h2 em {
  color: var(--green);
  font-weight: 400;
}

.hero-intro {
  max-width: 39rem;
  margin: 2rem 0 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.5vw, 1.22rem);
  line-height: 1.75;
}

.server-address {
  display: flex;
  width: min(100%, 39rem);
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.15rem;
  padding: 0.72rem 0.72rem 0.72rem 1.2rem;
  border: 1px solid rgba(167, 255, 196, 0.2);
  border-radius: 1rem;
  background: rgba(13, 31, 25, 0.82);
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.22), inset 0 1px rgba(255,255,255,.03);
  backdrop-filter: blur(16px);
}

.server-address > div {
  display: grid;
  gap: 0.18rem;
}

.address-label {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.server-address strong {
  color: white;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(0.98rem, 2vw, 1.15rem);
  letter-spacing: -0.02em;
}

.server-address button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.48rem;
  padding: 0.82rem 1rem;
  border: 0;
  border-radius: 0.72rem;
  background: var(--green);
  color: #06200f;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 850;
  box-shadow: 0 10px 28px rgba(53, 202, 105, 0.18);
  transition: transform 160ms ease, background 160ms ease;
}

.server-address button:hover {
  background: var(--green-bright);
  transform: translateY(-2px);
}

.server-address svg {
  width: 1.05rem;
  fill: currentColor;
}

.edition-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 1.15rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 620;
}

.edition-row span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.edition-row i {
  width: 0.46rem;
  height: 0.46rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(103, 232, 146, 0.11);
}

.edition-row .bedrock-dot {
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(255, 212, 121, 0.11);
}

.hero-world {
  position: relative;
  min-height: 33rem;
  perspective: 900px;
}

.world-glow {
  position: absolute;
  inset: 5% 4% 2%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(100, 239, 148, 0.2), transparent 68%);
  filter: blur(8px);
}

.island {
  position: absolute;
  top: 25%;
  left: 50%;
  width: min(24rem, 80%);
  height: 12rem;
  transform: translateX(-50%) rotateX(4deg) rotateY(-8deg);
  filter: drop-shadow(0 50px 42px rgba(0, 0, 0, 0.46));
}

.grass-top {
  position: absolute;
  z-index: 3;
  inset: 0;
  border: 1px solid rgba(194, 255, 210, 0.18);
  border-radius: 1.3rem 1.3rem 0.4rem 0.4rem;
  background:
    linear-gradient(135deg, transparent 75%, rgba(255,255,255,.07) 75%) 0 0 / 3rem 3rem,
    linear-gradient(45deg, #388855 25%, #4fab6a 25% 50%, #3d965c 50% 75%, #5cba76 75%) 0 0 / 4rem 4rem;
  box-shadow: inset 0 -1.2rem rgba(15, 76, 40, 0.54);
}

.dirt-face {
  position: absolute;
  top: 10rem;
  right: 1.35rem;
  left: 1.35rem;
  height: 9rem;
  clip-path: polygon(0 0, 100% 0, 78% 52%, 58% 52%, 50% 100%, 41% 55%, 19% 55%);
  background:
    linear-gradient(45deg, rgba(255,255,255,.06) 25%, transparent 25% 75%, rgba(0,0,0,.08) 75%) 0 0 / 2.8rem 2.8rem,
    #6f4a31;
}

.tree {
  position: absolute;
  z-index: 4;
  top: -8.4rem;
  left: 52%;
  width: 9rem;
  height: 12rem;
}

.trunk {
  position: absolute;
  right: 3.5rem;
  bottom: 0;
  width: 2rem;
  height: 7.2rem;
  border-radius: 0.2rem;
  background: linear-gradient(90deg, #6a432a 0 28%, #8b5c36 28% 72%, #5a371f 72%);
}

.leaf {
  position: absolute;
  z-index: 2;
  width: 5.3rem;
  height: 5.3rem;
  border: 1px solid rgba(207, 255, 218, 0.12);
  background: linear-gradient(135deg, #3a9655, #226b3a);
  box-shadow: inset -0.75rem -0.75rem rgba(4, 43, 21, 0.18);
}

.leaf-one { top: 0; left: 1.8rem; }
.leaf-two { top: 2.5rem; left: 0; }
.leaf-three { top: 2.5rem; right: 0; }

.island > img {
  position: absolute;
  z-index: 6;
  top: 3.1rem;
  left: 3.25rem;
  width: 6.2rem;
  height: 6.2rem;
  image-rendering: pixelated;
  filter: drop-shadow(0 16px 16px rgba(0,0,0,.38));
  transform: rotate(-5deg);
}

.pixel-cloud {
  position: absolute;
  width: 5rem;
  height: 1.1rem;
  border-radius: 0.25rem;
  background: rgba(213, 255, 227, 0.12);
  box-shadow: 1.5rem -1rem rgba(213, 255, 227, 0.09), -1.2rem 0.8rem rgba(213, 255, 227, 0.07);
}

.cloud-one { top: 10%; right: 2%; }
.cloud-two { right: 68%; bottom: 12%; transform: scale(.65); }

.spark {
  position: absolute;
  color: var(--green-bright);
  text-shadow: 0 0 20px currentColor;
}

.spark-one { top: 18%; left: 15%; font-size: 1.2rem; }
.spark-two { top: 24%; right: 5%; color: var(--gold); font-size: .72rem; }
.spark-three { right: 12%; bottom: 12%; font-size: 1.5rem; }

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
}

.trust-strip div {
  display: grid;
  gap: 0.35rem;
  padding: 1.5rem clamp(0.9rem, 2vw, 1.7rem);
  border-left: 1px solid var(--line);
}

.trust-strip div:first-child {
  border-left: 0;
}

.trust-strip strong {
  font-size: 0.88rem;
}

.trust-strip span {
  color: var(--muted);
  font-size: 0.73rem;
}

.section {
  padding-block: clamp(6rem, 12vw, 10rem);
}

.crossplay {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(26rem, 1.14fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 8rem);
}

.section-heading h2 {
  max-width: 12ch;
  font-size: clamp(3rem, 6vw, 5.7rem);
  line-height: 0.98;
}

.crossplay-card {
  position: relative;
  padding: clamp(1.4rem, 4vw, 2.6rem);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.8rem;
  background:
    radial-gradient(circle at 100% 0%, rgba(103, 232, 146, 0.13), transparent 45%),
    var(--panel);
  box-shadow: var(--shadow);
}

.edition {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255,255,255,.025);
}

.edition-icon {
  display: grid;
  width: 3.5rem;
  height: 3.5rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 0.8rem;
  background: rgba(103, 232, 146, 0.12);
  color: var(--green-bright);
  font-family: Georgia, serif;
  font-size: 1.35rem;
  font-weight: 800;
}

.bedrock-edition .edition-icon {
  background: rgba(255, 212, 121, 0.1);
  color: var(--gold);
}

.edition div {
  display: grid;
  gap: 0.25rem;
}

.edition strong {
  font-size: 1rem;
}

.edition small {
  color: var(--muted);
}

.bridge {
  display: flex;
  height: 3.7rem;
  align-items: center;
  justify-content: center;
  color: var(--green);
}

.bridge i {
  width: 22%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(103,232,146,.35));
}

.bridge i:last-child {
  background: linear-gradient(90deg, rgba(103,232,146,.35), transparent);
}

.bridge b {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid rgba(103,232,146,.25);
  border-radius: 50%;
  font-weight: 500;
}

.crossplay-card > p {
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.7;
}

.features {
  border-top: 1px solid var(--line);
}

.section-heading.compact {
  display: flex;
  align-items: end;
  justify-content: space-between;
}

.section-heading.compact h2 {
  max-width: 15ch;
  font-size: clamp(2.8rem, 5vw, 4.8rem);
}

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

.feature-grid article {
  position: relative;
  min-height: 22rem;
  padding: 1.6rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  background: rgba(15, 33, 27, 0.62);
  transition: border 180ms ease, transform 180ms ease, background 180ms ease;
}

.feature-grid article:hover {
  border-color: rgba(103,232,146,.3);
  background: rgba(19, 43, 34, 0.72);
  transform: translateY(-5px);
}

.card-number {
  color: rgba(223, 255, 234, 0.4);
  font-family: ui-monospace, monospace;
  font-size: 0.72rem;
}

.feature-icon {
  display: grid;
  width: 4.2rem;
  height: 4.2rem;
  margin: 4rem 0 1.5rem;
  place-items: center;
  border-radius: 1rem;
  background: rgba(103,232,146,.1);
  color: var(--green);
  font-size: 1.8rem;
}

.feature-grid h3 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 1.55rem;
  font-weight: 500;
}

.feature-grid p {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.join {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(20rem, .9fr);
  align-items: center;
  gap: clamp(2rem, 8vw, 7rem);
  margin-bottom: 5rem;
  padding-inline: clamp(1.5rem, 5vw, 4.8rem);
  border: 1px solid rgba(164,255,194,.25);
  border-radius: 2rem;
  background:
    linear-gradient(135deg, rgba(36, 116, 66, 0.95), rgba(19, 75, 44, 0.95)),
    var(--night-soft);
  box-shadow: 0 30px 80px rgba(0,0,0,.28);
}

.eyebrow.light {
  color: var(--mint);
}

.join h2 {
  max-width: 13ch;
  font-size: clamp(2.8rem, 5vw, 4.7rem);
  line-height: 1;
}

.join p:not(.eyebrow) {
  max-width: 36rem;
  margin: 1.2rem 0 0;
  color: rgba(239,255,244,.72);
  line-height: 1.7;
}

.join-address {
  display: grid;
  min-height: 8.5rem;
  place-items: center;
  align-content: center;
  gap: 0.45rem;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 1.2rem;
  background: rgba(5, 30, 15, 0.28);
  color: white;
  cursor: pointer;
  box-shadow: inset 0 1px rgba(255,255,255,.06);
  transition: background 160ms ease, transform 160ms ease;
}

.join-address:hover {
  background: rgba(5, 30, 15, 0.45);
  transform: translateY(-3px);
}

.join-address span {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 750;
}

.join-address small {
  color: var(--green-bright);
  font-weight: 750;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  padding-block: 2.3rem 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}

.footer-brand {
  font-size: 0.95rem;
}

.footer-brand img {
  width: 2.35rem;
  height: 2.35rem;
}

footer > p {
  margin: 0;
  text-align: center;
}

footer > div {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

footer a {
  text-underline-offset: 0.2rem;
}

.simple-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 2rem;
}

.simple-card {
  width: min(680px, 100%);
  padding: clamp(2rem, 6vw, 4rem);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.simple-card h1 {
  max-width: none;
  font-size: clamp(2.7rem, 8vw, 5rem);
}

.simple-card h2 {
  margin-top: 2rem;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.simple-card p,
.simple-card li {
  color: var(--muted);
  line-height: 1.75;
}

.simple-card a {
  color: var(--green-bright);
}

@media (max-width: 880px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 43rem;
  }

  .hero-world {
    min-height: 28rem;
  }

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

  .section-heading h2 {
    max-width: 15ch;
  }

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

  .feature-grid article {
    min-height: 17rem;
  }

  .feature-icon {
    margin-top: 2rem;
  }

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

  footer {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  footer > div {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .site-header,
  main,
  footer {
    width: min(100% - 1.4rem, 1180px);
  }

  .site-header {
    min-height: 5rem;
  }

  .brand span {
    display: none;
  }

  nav {
    gap: 0.9rem;
  }

  nav a:not(.nav-join) {
    display: none;
  }

  .hero {
    padding-top: 4rem;
  }

  h1 {
    font-size: clamp(3.35rem, 18vw, 5rem);
  }

  .server-address {
    align-items: stretch;
    flex-direction: column;
    padding: 1rem;
  }

  .server-address button {
    justify-content: center;
  }

  .hero-world {
    min-height: 22rem;
  }

  .island {
    width: 17rem;
    height: 9rem;
  }

  .dirt-face {
    top: 7.5rem;
  }

  .tree {
    top: -8.5rem;
    left: 47%;
    transform: scale(.82);
  }

  .island > img {
    top: 1.8rem;
    left: 2rem;
    width: 5rem;
    height: 5rem;
  }

  .trust-strip {
    grid-template-columns: 1fr 1fr;
  }

  .trust-strip div:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .trust-strip div:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .crossplay {
    gap: 2.5rem;
  }

  .crossplay-card {
    padding: 1rem;
  }

  .edition-icon {
    width: 3rem;
    height: 3rem;
  }

  .join {
    width: calc(100% - 1.4rem);
    margin-bottom: 3rem;
    border-radius: 1.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
