:root {
  color-scheme: dark;
  --black: #050505;
  --ink: #0d0d0d;
  --ink-2: #171717;
  --paper: #f4f0e6;
  --muted: #aaa69d;
  --yellow: #ffd400;
  --cyan: #00c8f8;
  --pink: #ff2f92;
  --orange: #ff6b2c;
  --green: #62df76;
  --line: rgba(244, 240, 230, 0.22);
  --display: Impact, Haettenschweiler, "Arial Narrow Bold", "Arial Black", sans-serif;
  --body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--paper);
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    var(--black);
  background-size: 36px 36px;
  font-family: var(--body);
}

body::before {
  position: fixed;
  z-index: 100;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.14;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    rgba(255, 255, 255, 0.05) 4px
  );
  mix-blend-mode: overlay;
}

::selection {
  color: var(--black);
  background: var(--yellow);
}

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

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

button {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  color: var(--black);
  background: var(--yellow);
  font-weight: 900;
  transform: translateY(-150%);
}

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

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 78px;
  padding: 12px clamp(18px, 4vw, 60px);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 5, 5, 0.88);
  backdrop-filter: blur(18px);
}

.brand,
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img,
.footer-brand img {
  image-rendering: pixelated;
}

.brand strong,
.brand small,
.footer-brand strong,
.footer-brand small {
  display: block;
}

.brand strong,
.footer-brand strong {
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: 0.045em;
}

.brand small,
.footer-brand small {
  margin-top: 3px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 2.4vw, 32px);
}

nav a {
  position: relative;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

nav a::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

nav a:hover,
nav a:focus-visible {
  color: var(--paper);
}

nav a:hover::after,
nav a:focus-visible::after {
  transform: scaleX(1);
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 16px rgba(255, 212, 0, 0.8);
  animation: pulse 1.6s infinite;
}

.status-dot.online {
  background: var(--green);
  box-shadow: 0 0 16px rgba(98, 223, 118, 0.8);
}

.status-dot.offline {
  background: var(--pink);
  box-shadow: 0 0 16px rgba(255, 47, 146, 0.7);
  animation: none;
}

main {
  overflow: clip;
}

.hero {
  min-height: calc(100vh - 78px);
  border-bottom: 1px solid var(--line);
}

.hero-grid,
.world-section,
.join-section,
.watch-section,
.vote-section,
.final-cta,
.site-footer {
  width: min(1260px, calc(100% - 40px));
  margin-inline: auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(390px, 0.8fr);
  gap: clamp(36px, 6vw, 92px);
  align-items: center;
  min-height: calc(100vh - 132px);
  padding: clamp(64px, 9vw, 128px) 0;
}

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

.kicker {
  margin: 0 0 20px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.kicker span {
  color: var(--black);
  background: var(--yellow);
  padding: 5px 7px;
}

h1,
h2,
h3,
p,
dl,
dd {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
}

h1 {
  max-width: 880px;
  font-size: clamp(4.5rem, 10.2vw, 10.5rem);
  line-height: 0.76;
  letter-spacing: -0.025em;
}

h1 em {
  color: var(--yellow);
  font-style: normal;
  text-shadow: 5px 5px 0 var(--pink);
}

h2 {
  font-size: clamp(3.4rem, 7vw, 7.2rem);
  line-height: 0.86;
  letter-spacing: -0.02em;
}

h3 {
  font-size: clamp(1.7rem, 2.6vw, 2.5rem);
  line-height: 0.95;
}

.hero-intro,
.section-heading > p:last-child,
.join-copy > p:last-child,
.video-copy > p,
.vote-heading > p:last-child {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.72;
}

.hero-intro {
  max-width: 690px;
  margin-top: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  border: 1px solid transparent;
  border-radius: 0;
  padding: 0 18px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    background-color 150ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translate(-3px, -3px);
}

.button-primary {
  color: var(--black);
  background: var(--yellow);
  box-shadow: 6px 6px 0 var(--pink);
}

.button-primary:hover,
.button-primary:focus-visible {
  box-shadow: 9px 9px 0 var(--cyan);
}

.button-primary strong {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  text-transform: lowercase;
}

.button-ghost {
  border-color: var(--line);
  color: var(--paper);
  background: var(--ink);
}

.button-ghost:hover,
.button-ghost:focus-visible {
  border-color: var(--yellow);
  background: #151300;
}

.copy-hint {
  min-height: 24px;
  margin-top: 17px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.72rem;
}

.hero-signal {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid rgba(255, 212, 0, 0.45);
  background:
    radial-gradient(circle at 72% 30%, rgba(255, 47, 146, 0.2), transparent 26%),
    radial-gradient(circle at 22% 65%, rgba(0, 200, 248, 0.2), transparent 30%),
    #090909;
  box-shadow: 14px 14px 0 rgba(255, 212, 0, 0.11);
}

.signal-noise {
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background:
    linear-gradient(90deg, transparent 49.4%, rgba(255, 212, 0, 0.45) 50%, transparent 50.6%),
    linear-gradient(transparent 49.4%, rgba(255, 212, 0, 0.45) 50%, transparent 50.6%);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, black, transparent 84%);
  transform: perspective(450px) rotateX(52deg) scale(1.5);
  transform-origin: top center;
}

.signal-header {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  padding: 18px;
  border-bottom: 1px solid var(--line);
  color: var(--yellow);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 900;
}

.signal-mark {
  position: absolute;
  top: 18%;
  right: 8%;
  left: 8%;
  height: 250px;
  filter: drop-shadow(0 0 22px rgba(0, 200, 248, 0.25));
}

.signal-mark span {
  position: absolute;
  width: 44%;
  height: 44%;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.signal-mark span:nth-child(1) {
  top: 0;
  left: 28%;
  background: var(--yellow);
}

.signal-mark span:nth-child(2) {
  top: 29%;
  right: 10%;
  background: var(--green);
  transform: rotate(90deg);
}

.signal-mark span:nth-child(3) {
  bottom: 0;
  left: 28%;
  background: var(--pink);
  transform: rotate(180deg);
}

.signal-mark span:nth-child(4) {
  top: 29%;
  left: 10%;
  background: var(--cyan);
  transform: rotate(-90deg);
}

.signal-stats {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  background: rgba(5, 5, 5, 0.92);
}

.signal-stats div {
  padding: 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.signal-stats dt {
  margin-bottom: 9px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.62rem;
  font-weight: 900;
  text-transform: uppercase;
}

.signal-stats dd {
  font-family: var(--display);
  font-size: 1.8rem;
  text-transform: uppercase;
}

.signal-stats small {
  color: var(--muted);
  font-size: 0.8rem;
}

.ticker {
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: var(--yellow);
  color: var(--black);
}

.ticker div {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 30px;
  min-height: 54px;
  padding-inline: 30px;
  animation: marquee 28s linear infinite;
}

.ticker span {
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

.ticker i {
  color: var(--pink);
  font-style: normal;
}

.world-section,
.join-section,
.watch-section,
.vote-section,
.final-cta {
  position: relative;
  padding: clamp(92px, 12vw, 170px) 0;
}

.world-section {
  display: grid;
  grid-template-columns: minmax(100px, 0.2fr) minmax(0, 1fr);
  gap: 34px;
}

.section-number {
  color: transparent;
  font-family: var(--display);
  font-size: clamp(6rem, 14vw, 13rem);
  line-height: 0.7;
  -webkit-text-stroke: 1px rgba(255, 212, 0, 0.55);
}

.section-heading {
  max-width: 980px;
}

.section-heading h2 {
  margin-bottom: 24px;
}

.principle-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 50px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.principle-grid article {
  min-height: 330px;
  padding: clamp(24px, 3vw, 42px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(13, 13, 13, 0.82);
  transition:
    color 180ms ease,
    background-color 180ms ease;
}

.principle-grid article:hover {
  color: var(--black);
  background: var(--yellow);
}

.principle-grid article:hover p,
.principle-grid article:hover .card-index {
  color: rgba(5, 5, 5, 0.72);
}

.card-index {
  display: block;
  margin-bottom: 78px;
  color: var(--yellow);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.7rem;
  font-weight: 900;
}

.principle-grid p {
  margin-top: 18px;
  color: var(--muted);
  line-height: 1.65;
}

.join-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(40px, 7vw, 100px);
  align-items: center;
  border-top: 1px solid var(--line);
}

.join-copy h2 {
  margin-bottom: 26px;
}

.join-cards {
  display: grid;
  gap: 18px;
}

.join-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(130px, 0.4fr) minmax(240px, 1fr) auto;
  gap: 24px;
  align-items: center;
  overflow: hidden;
  padding: 28px;
  color: var(--black);
}

.java-card {
  background: var(--yellow);
  box-shadow: 10px 10px 0 var(--pink);
}

.bedrock-card {
  grid-template-columns: minmax(130px, 0.4fr) minmax(220px, 1fr) minmax(80px, auto) auto;
  background: var(--cyan);
  box-shadow: 10px 10px 0 var(--orange);
}

.platform-label {
  display: flex;
  align-items: center;
  gap: 13px;
}

.platform-label span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 2px solid var(--black);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 900;
}

.platform-label strong {
  font-family: var(--display);
  font-size: 1.3rem;
}

.address-block small,
.bedrock-port small {
  display: block;
  margin-bottom: 7px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.58rem;
  font-weight: 900;
}

.address-block code,
.bedrock-port code {
  color: var(--black);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: clamp(0.86rem, 1.5vw, 1.05rem);
  font-weight: 900;
}

.button-dark {
  border-color: var(--black);
  color: var(--paper);
  background: var(--black);
}

.button-dark:hover,
.button-dark:focus-visible {
  box-shadow: 5px 5px 0 rgba(5, 5, 5, 0.3);
}

.watch-section {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: clamp(34px, 6vw, 84px);
  align-items: center;
  border-top: 1px solid var(--line);
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  background: var(--ink);
  box-shadow:
    13px 13px 0 rgba(255, 212, 0, 0.12),
    -13px -13px 0 rgba(255, 47, 146, 0.08);
}

.video-frame::before {
  position: absolute;
  z-index: 2;
  top: -1px;
  left: -1px;
  padding: 7px 10px;
  content: "REC / BORDER";
  color: var(--black);
  background: var(--yellow);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.62rem;
  font-weight: 900;
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-copy h2 {
  margin-bottom: 24px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  border-bottom: 2px solid var(--yellow);
  padding-bottom: 6px;
  font-weight: 950;
  text-transform: uppercase;
}

.text-link span {
  color: var(--yellow);
}

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

.vote-heading {
  max-width: 780px;
}

.vote-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 52px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.vote-grid a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  min-height: 120px;
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(13, 13, 13, 0.82);
  transition:
    color 160ms ease,
    background-color 160ms ease;
}

.vote-grid a:hover,
.vote-grid a:focus-visible {
  color: var(--black);
  background: var(--paper);
}

.vote-grid a > span {
  color: var(--yellow);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 900;
}

.vote-grid a:hover > span,
.vote-grid a:focus-visible > span {
  color: var(--pink);
}

.vote-grid strong {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.7vw, 2.3rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.vote-grid small {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.65rem;
  font-weight: 900;
  text-transform: uppercase;
}

.final-cta {
  display: grid;
  justify-items: center;
  border-top: 1px solid var(--line);
  text-align: center;
}

.final-cta h2 {
  max-width: 900px;
  margin-bottom: 38px;
  color: var(--yellow);
  text-shadow: 5px 5px 0 var(--pink);
}

.final-actions,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.footer-links {
  justify-content: flex-end;
}

.footer-links a {
  font-weight: 900;
  text-transform: uppercase;
}

.site-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 30px;
  align-items: center;
  padding: 36px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
}

.site-footer p {
  text-align: center;
  line-height: 1.55;
}

.toast {
  position: fixed;
  z-index: 120;
  right: 22px;
  bottom: 22px;
  padding: 14px 18px;
  color: var(--black);
  background: var(--yellow);
  box-shadow: 6px 6px 0 var(--pink);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse {
  50% {
    opacity: 0.35;
  }
}

@keyframes marquee {
  to {
    transform: translateX(-28%);
  }
}

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

  nav {
    display: none;
  }

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

  .hero-signal {
    min-height: 500px;
  }

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

  .principle-grid article {
    min-height: auto;
  }

  .card-index {
    margin-bottom: 42px;
  }

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

  .join-card,
  .bedrock-card {
    grid-template-columns: minmax(130px, 0.4fr) 1fr auto;
  }

  .bedrock-port {
    grid-column: 2;
  }

  .bedrock-card .button {
    grid-column: 3;
    grid-row: 1 / span 2;
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 68px;
    padding-inline: 14px;
  }

  .brand img {
    width: 40px;
    height: 40px;
  }

  .brand strong {
    font-size: 0.98rem;
  }

  .brand small {
    display: none;
  }

  .status-chip {
    padding-inline: 10px;
  }

  .hero-grid,
  .world-section,
  .join-section,
  .watch-section,
  .vote-section,
  .final-cta,
  .site-footer {
    width: min(100% - 26px, 1260px);
  }

  .hero-grid {
    min-height: auto;
    padding: 72px 0;
  }

  h1 {
    font-size: clamp(4.2rem, 21vw, 7.2rem);
  }

  h1 em {
    text-shadow: 3px 3px 0 var(--pink);
  }

  h2 {
    font-size: clamp(3.1rem, 16vw, 5.2rem);
  }

  .button-primary {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
    min-height: 66px;
  }

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

  .hero-signal {
    min-height: 440px;
  }

  .signal-mark {
    top: 17%;
    height: 210px;
  }

  .world-section {
    grid-template-columns: 1fr;
  }

  .section-number {
    font-size: 7rem;
  }

  .principle-grid {
    grid-column: auto;
  }

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

  .bedrock-port,
  .bedrock-card .button {
    grid-column: auto;
    grid-row: auto;
  }

  .join-card .button {
    width: 100%;
  }

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

  .vote-grid a {
    grid-template-columns: auto 1fr;
  }

  .vote-grid small {
    grid-column: 2;
  }

  .site-footer {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .site-footer p {
    text-align: left;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 440px) {
  .status-chip span:last-child {
    display: none;
  }

  .status-chip {
    width: 38px;
    justify-content: center;
  }

  .signal-stats {
    grid-template-columns: 1fr 1fr;
  }

  .signal-stats dd {
    font-size: 1.45rem;
  }
}

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

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