:root {
  --bg: #090d12;
  --panel: rgba(17, 24, 33, 0.76);
  --panel-solid: #111821;
  --border: rgba(255,255,255,0.12);
  --text: #f5f7fb;
  --muted: #a6b0c0;
  --soft: #dbe6f3;
  --green: #62d977;
  --green-2: #2fbd5a;
  --gold: #f4c766;
  --shadow: 0 30px 90px rgba(0,0,0,0.5);
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, #172331 0%, var(--bg) 48%, #05080c 100%);
  overflow-x: hidden;
}
body::selection { background: var(--green); color: #07100a; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.045;
  background-image: linear-gradient(90deg, rgba(255,255,255,.35) 1px, transparent 1px), linear-gradient(rgba(255,255,255,.35) 1px, transparent 1px);
  background-size: 4px 4px;
  mix-blend-mode: overlay;
}
.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1160px, calc(100% - 32px));
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  background: rgba(7, 11, 16, 0.62);
  backdrop-filter: blur(22px);
  border-radius: 999px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; letter-spacing: -0.03em; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: #06220d;
  background: linear-gradient(135deg, var(--green), #b2f58c);
  box-shadow: 0 0 24px rgba(98,217,119,.35);
}
.nav { display: flex; gap: 24px; color: var(--soft); font-weight: 700; font-size: 0.92rem; }
.nav a { opacity: 0.82; transition: .2s ease; }
.nav a:hover { opacity: 1; color: white; }
.nav-cta, .button, .copy-mini, .code-row button {
  border: 0;
  cursor: pointer;
  font-weight: 900;
  border-radius: 999px;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.nav-cta { padding: 11px 16px; background: white; color: #07100a; }
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 140px 0 90px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(5,8,12,.92) 0%, rgba(5,8,12,.5) 45%, rgba(5,8,12,.84) 100%), linear-gradient(0deg, rgba(9,13,18,1) 0%, rgba(9,13,18,.1) 38%, rgba(9,13,18,.36) 100%), url("assets/backyardmc-hero.png");
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  animation: slowPan 22s ease-in-out infinite alternate;
}
.hero-glow {
  position: absolute;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(98,217,119,.22), transparent 64%);
  bottom: -330px;
  left: 50%;
  transform: translateX(-50%);
}
.hero-content { position: relative; z-index: 2; max-width: 880px; text-align: center; }
.eyebrow {
  margin: 0 0 16px;
  color: var(--green);
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: .16em;
  font-size: .78rem;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 22px;
  font-size: clamp(3.8rem, 8vw, 8.2rem);
  line-height: .88;
  letter-spacing: -0.085em;
  text-wrap: balance;
  text-shadow: 0 18px 70px rgba(0,0,0,.7);
}
h2 { font-size: clamp(2.2rem, 5vw, 4.8rem); line-height: .98; letter-spacing: -0.07em; }
h3 { font-size: 1.25rem; letter-spacing: -0.03em; }
.lead {
  max-width: 690px;
  margin: 0 auto;
  color: #dce5ef;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.75;
}
.hero-actions { margin-top: 34px; display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.button { padding: 16px 24px; }
.button.primary { background: linear-gradient(135deg, var(--green), var(--green-2)); color: #061008; box-shadow: 0 16px 40px rgba(98,217,119,.24); }
.button.secondary { color: white; border: 1px solid var(--border); background: rgba(255,255,255,.08); backdrop-filter: blur(12px); }
.button:hover, .nav-cta:hover, .copy-mini:hover, .code-row button:hover { transform: translateY(-3px); }
.trust-row { margin-top: 34px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.trust-row span { border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.08); padding: 10px 14px; border-radius: 999px; color: var(--soft); font-size: .9rem; font-weight: 800; }
.particles span { position: absolute; z-index: 1; width: 5px; height: 5px; background: rgba(244,199,102,.7); border-radius: 50%; box-shadow: 0 0 22px rgba(244,199,102,.8); animation: float 8s linear infinite; }
.particles span:nth-child(1){left:12%;top:38%;animation-delay:0s}.particles span:nth-child(2){left:72%;top:26%;animation-delay:1s}.particles span:nth-child(3){left:84%;top:60%;animation-delay:2.5s}.particles span:nth-child(4){left:24%;top:70%;animation-delay:4s}.particles span:nth-child(5){left:45%;top:30%;animation-delay:1.8s}.particles span:nth-child(6){left:62%;top:76%;animation-delay:5s}
.server-strip { position: relative; z-index: 3; margin-top: -54px; }
.strip-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr auto; gap: 18px; align-items: center; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: rgba(17,24,33,.78); backdrop-filter: blur(24px); box-shadow: var(--shadow); }
.label { margin-bottom: 8px; color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 900; }
.strip-grid strong { font-size: clamp(1.05rem, 2vw, 1.45rem); }
.copy-mini { padding: 14px 20px; background: var(--green); color: #061008; }
.section { padding: 120px 0; }
.two-col { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: end; margin-bottom: 38px; }
.section-copy { color: var(--muted); font-size: 1.08rem; line-height: 1.8; }
.narrow { max-width: 640px; margin-inline: auto; }
.center { text-align: center; }
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature-card, .join-card, .showcase-card, .rule-list div { border: 1px solid var(--border); background: var(--panel); backdrop-filter: blur(20px); box-shadow: 0 22px 70px rgba(0,0,0,.24); }
.feature-card { min-height: 250px; padding: 26px; border-radius: 24px; transition: .25s ease; }
.feature-card:hover { transform: translateY(-8px); border-color: rgba(98,217,119,.45); }
.icon { display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 24px; border-radius: 16px; background: rgba(255,255,255,.08); font-size: 1.45rem; }
.feature-card p, .showcase-card p, .join-head p, .footer p, .rule-list span { color: var(--muted); line-height: 1.7; }
.showcase { padding: 40px 0 80px; }
.showcase-card { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; padding: 54px; border-radius: 34px; }
.showcase-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, rgba(98,217,119,.18), transparent 36%); pointer-events: none; }
.showcase-card > * { position: relative; }
.mini-world { height: 280px; display: grid; place-items: center; transform: rotateX(58deg) rotateZ(-38deg); transform-style: preserve-3d; }
.block { position: absolute; width: 118px; height: 118px; border-radius: 18px; box-shadow: 0 35px 70px rgba(0,0,0,.35); }
.grass { background: linear-gradient(135deg, #6bdb61, #2b7f39); transform: translate(-55px,-50px); }
.dirt { background: linear-gradient(135deg, #8a5a36, #4d2e1e); transform: translate(50px,20px); }
.stone { background: linear-gradient(135deg, #9aa3aa, #4f5961); transform: translate(-5px,96px); }
.emerald { background: linear-gradient(135deg, #9df59a, #1fa855); transform: translate(115px,-80px); }
.join-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 44px; }
.join-card { border-radius: var(--radius); padding: 30px; }
.join-card.featured { border-color: rgba(98,217,119,.42); box-shadow: 0 28px 90px rgba(47,189,90,.12); }
.join-head { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 24px; }
.join-head > span { font-size: 2rem; }
ol { color: var(--soft); line-height: 2; padding-left: 22px; }
.code-row, .connection-box { margin-top: 24px; }
.code-row { display: flex; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--border); background: rgba(0,0,0,.25); border-radius: 18px; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; color: var(--green); font-weight: 900; }
.code-row code { flex: 1; padding-left: 8px; overflow-wrap: anywhere; }
.code-row button { padding: 12px 16px; background: white; color: #07100a; }
.connection-box { display: grid; gap: 10px; }
.connection-box div { display: flex; justify-content: space-between; gap: 14px; padding: 14px; border: 1px solid var(--border); background: rgba(0,0,0,.2); border-radius: 16px; }
.connection-box span { color: var(--muted); font-weight: 800; }
.rules { padding-top: 80px; }
.rule-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 38px; }
.rule-list div { padding: 24px; border-radius: 22px; }
.rule-list strong, .rule-list span { display: block; }
.rule-list strong { margin-bottom: 8px; }
.footer { padding: 70px 0; border-top: 1px solid var(--border); background: rgba(0,0,0,.28); }
.footer-grid { display: flex; justify-content: space-between; gap: 30px; align-items: center; }
.footer h2 { font-size: 2rem; letter-spacing: -0.06em; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 60; padding: 14px 18px; background: white; color: #07100a; border-radius: 999px; font-weight: 900; box-shadow: var(--shadow); opacity: 0; transform: translateY(18px); transition: .25s ease; pointer-events: none; }
.toast.show { opacity: 1; transform: translateY(0); }
@keyframes slowPan { from { transform: scale(1.04) translateX(-10px); } to { transform: scale(1.09) translateX(12px); } }
@keyframes float { 0% { transform: translateY(40px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(-90px); opacity: 0; } }
@media (max-width: 900px) {
  .nav { display: none; }
  .strip-grid, .two-col, .join-grid, .showcase-card { grid-template-columns: 1fr; }
  .card-grid, .rule-list { grid-template-columns: repeat(2, 1fr); }
  .showcase-card { padding: 34px; }
}
@media (max-width: 620px) {
  .site-header { top: 10px; width: calc(100% - 20px); }
  .brand span:last-child { display: none; }
  .nav-cta { font-size: .86rem; }
  .hero { padding-top: 120px; }
  h1 { font-size: 3.45rem; }
  .card-grid, .rule-list { grid-template-columns: 1fr; }
  .connection-box div { flex-direction: column; }
  .footer-grid { flex-direction: column; align-items: flex-start; }
}
