* {
  box-sizing: border-box;
}

:root {
  --bg: #06090d;
  --panel: rgba(15, 21, 28, 0.82);
  --panel-solid: #0d131a;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f5f7fa;
  --muted: #9aa7b3;
  --accent: #56e39f;
  --accent-2: #2dbd80;
  --accent-soft: rgba(86, 227, 159, 0.12);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(52, 126, 92, 0.12), transparent 34%),
    radial-gradient(circle at 90% 15%, rgba(39, 112, 79, 0.10), transparent 28%),
    var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
  z-index: -1;
}

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

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

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 32px));
  margin: 16px auto 0;
  padding: 12px 14px 12px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(6, 9, 13, 0.76);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 50px rgba(0,0,0,.22);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
}

.brand-mark {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #04150d;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 0 30px rgba(86, 227, 159, 0.18);
}

.brand-text {
  letter-spacing: -0.03em;
  font-size: 18px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: #c7d0d8;
  font-size: 14px;
  font-weight: 600;
}

.nav-links a {
  transition: color .2s ease, transform .2s ease;
}

.nav-links a:hover {
  color: #fff;
}

.nav-cta {
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255,255,255,.045);
}

.menu-btn {
  display: none;
  border: 0;
  background: transparent;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: 720px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 60px;
  padding: 80px 0 60px;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.eyebrow,
.section-kicker,
.section-heading > span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
}

.eyebrow::before,
.section-kicker::before,
.section-heading > span::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent);
}

h1 {
  max-width: 760px;
  margin: 19px 0 22px;
  font-size: clamp(56px, 7.4vw, 94px);
  line-height: .95;
  letter-spacing: -.065em;
}

h1 span {
  color: var(--accent);
  text-shadow: 0 0 45px rgba(86,227,159,.16);
}

.hero-copy {
  max-width: 670px;
  margin: 0;
  color: #a9b4be;
  font-size: 18px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin-top: 34px;
}

.primary-btn,
.secondary-btn,
.primary-link {
  border-radius: 14px;
  font-family: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.primary-btn {
  min-width: 200px;
  padding: 13px 22px;
  border: 0;
  background: linear-gradient(135deg, var(--accent), #42cf8d);
  color: #04120c;
  text-align: left;
  box-shadow: 0 12px 35px rgba(86,227,159,.13);
}

.primary-btn span {
  display: block;
  font-size: 16px;
}

.primary-btn small {
  display: block;
  margin-top: 3px;
  opacity: .7;
  font-size: 11px;
  font-weight: 700;
}

.secondary-btn {
  display: grid;
  place-items: center;
  padding: 0 25px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.035);
  color: #f2f4f6;
}

.primary-btn:hover,
.secondary-btn:hover,
.primary-link:hover,
.ip-box:hover {
  transform: translateY(-2px);
}

.copy-message {
  height: 20px;
  margin-top: 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.quick-stats {
  display: flex;
  gap: 38px;
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.quick-stats div {
  display: grid;
  gap: 4px;
}

.quick-stats strong {
  font-size: 20px;
}

.quick-stats span {
  color: var(--muted);
  font-size: 12px;
}

.hero-card-wrap {
  position: relative;
  display: flex;
  justify-content: flex-end;
  perspective: 1000px;
}

.hero-card {
  width: min(390px, 100%);
  min-height: 470px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 40%, rgba(86,227,159,.12), transparent 36%),
    linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
  box-shadow: var(--shadow);
  transform: rotateY(-8deg) rotateX(2deg);
  backdrop-filter: blur(16px);
}

.card-top {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #b6c0c8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
}

.server-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 18px var(--accent);
}

.pixel-emblem {
  display: grid;
  place-items: center;
  min-height: 270px;
}

.pixel-core {
  position: relative;
  width: 148px;
  height: 148px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #76efb4, #34b97b);
  color: #04120c;
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -.08em;
  clip-path: polygon(12% 0, 88% 0, 100% 12%, 100% 88%, 88% 100%, 12% 100%, 0 88%, 0 12%);
  box-shadow: 0 0 70px rgba(86,227,159,.2);
}

.pixel-core::before,
.pixel-core::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(86,227,159,.35);
  inset: -18px;
  clip-path: inherit;
}

.pixel-core::after {
  inset: -34px;
  opacity: .5;
}

.card-bottom {
  display: grid;
  gap: 7px;
  padding: 18px;
  border-radius: 16px;
  background: rgba(0,0,0,.24);
  border: 1px solid var(--line);
}

.card-bottom span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}

.card-bottom strong {
  font-size: 17px;
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(85px);
  pointer-events: none;
}

.hero-glow-one {
  width: 350px;
  height: 350px;
  right: 2%;
  top: 16%;
  background: rgba(38, 158, 105, .13);
}

.hero-glow-two {
  width: 260px;
  height: 260px;
  left: -8%;
  bottom: 8%;
  background: rgba(64, 180, 128, .07);
}

.feature-section {
  padding: 90px 0 70px;
}

.section-heading {
  max-width: 650px;
  margin-bottom: 34px;
}

.section-heading h2,
.play-panel h2,
.community-card h2 {
  margin: 12px 0 10px;
  font-size: clamp(36px, 4.5vw, 58px);
  letter-spacing: -.055em;
  line-height: 1;
}

.section-heading p,
.play-panel p,
.community-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

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

.feature-card {
  min-height: 285px;
  display: flex;
  flex-direction: column;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(255,255,255,.042), rgba(255,255,255,.015));
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(86,227,159,.28);
  background: linear-gradient(160deg, rgba(86,227,159,.07), rgba(255,255,255,.018));
}

.feature-icon {
  width: 47px;
  height: 47px;
  display: grid;
  place-items: center;
  margin-bottom: 38px;
  border-radius: 13px;
  background: var(--accent-soft);
  border: 1px solid rgba(86,227,159,.18);
  color: var(--accent);
  font-size: 21px;
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 21px;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.feature-tag {
  margin-top: auto;
  padding-top: 22px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
}

.play-section {
  padding: 70px 0;
}

.play-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
  padding: 44px;
  border: 1px solid rgba(86,227,159,.18);
  border-radius: 28px;
  background:
    radial-gradient(circle at 90% 50%, rgba(86,227,159,.10), transparent 25%),
    rgba(255,255,255,.025);
}

.play-panel h2 {
  font-size: clamp(34px, 4vw, 50px);
}

.ip-box {
  min-width: 330px;
  display: grid;
  gap: 7px;
  padding: 21px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #080d12;
  color: white;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease;
}

.ip-box:hover {
  border-color: rgba(86,227,159,.35);
}

.ip-box span,
.ip-box em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: .1em;
}

.ip-box strong {
  color: var(--accent);
  font-size: 21px;
}

.community-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 50px 0 100px;
}

.community-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255,255,255,.025);
}

.community-card h2 {
  font-size: 34px;
}

.store-card {
  background:
    radial-gradient(circle at 80% 20%, rgba(86,227,159,.09), transparent 32%),
    rgba(255,255,255,.025);
}

.primary-link {
  align-self: flex-start;
  margin-top: 30px;
  padding: 13px 18px;
  background: var(--accent);
  color: #06130d;
  font-size: 13px;
}

footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  padding: 28px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

footer > span {
  justify-self: end;
}

.footer-brand .brand-text {
  color: #e7ebef;
  font-size: 15px;
}

.footer-brand .brand-mark {
  width: 31px;
  height: 31px;
  border-radius: 8px;
  font-size: 11px;
}

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

  .hero-card-wrap {
    justify-content: center;
  }

  .hero-card {
    transform: none;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .play-panel {
    grid-template-columns: 1fr;
  }

  .ip-box {
    min-width: 0;
  }

  footer {
    grid-template-columns: 1fr;
  }

  footer > span {
    justify-self: start;
  }
}

@media (max-width: 700px) {
  .nav {
    width: calc(100% - 20px);
    margin-top: 10px;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #0b1016;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 12px;
  }

  .menu-btn {
    display: block;
  }

  main,
  footer {
    width: calc(100% - 24px);
  }

  .hero {
    gap: 45px;
    padding-top: 70px;
  }

  h1 {
    font-size: clamp(48px, 15vw, 70px);
  }

  .hero-copy {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .secondary-btn {
    min-height: 50px;
  }

  .quick-stats {
    gap: 20px;
    justify-content: space-between;
  }

  .hero-card {
    min-height: 390px;
  }

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

  .play-panel {
    padding: 28px;
  }
}
