:root {
  --bg: #020812;
  --bg-soft: #071728;
  --blue: #92dcff;
  --blue-strong: #35bfff;
  --blue-deep: #126aa9;
  --white: #f4fbff;
  --muted: #a8cce0;
  --glass: rgba(144, 220, 255, 0.1);
  --line: rgba(180, 232, 255, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--white);
  font-family: Inter, system-ui, sans-serif;
  background:
    radial-gradient(circle at 20% 18%, rgba(102, 207, 255, 0.28), transparent 24rem),
    radial-gradient(circle at 82% 10%, rgba(196, 240, 255, 0.2), transparent 22rem),
    linear-gradient(180deg, #020711 0%, #051421 52%, #02070d 100%);
}

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

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

button {
  font: inherit;
}

.cursor-glow {
  position: fixed;
  left: var(--x, 50vw);
  top: var(--y, 50vh);
  z-index: 0;
  width: 11rem;
  height: 11rem;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(172, 232, 255, 0.32), transparent 68%);
  transform: translate(-50%, -50%);
  filter: blur(3px);
}

.sky-noise {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 5px 5px;
  mix-blend-mode: soft-light;
}

.topbar {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(92vw, 980px);
  padding: 10px 12px 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(2, 10, 18, 0.72);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(113, 214, 255, 0.55));
}

.topbar nav {
  display: flex;
  gap: 6px;
  color: var(--muted);
  font-size: 0.88rem;
}

.topbar nav a,
.copy-ip,
.primary-btn,
.ghost-btn,
.join-ip {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 999px;
}

.topbar nav a {
  display: grid;
  place-items: center;
  padding: 0 14px;
}

.topbar nav a:hover {
  color: var(--white);
  background: rgba(146, 220, 255, 0.1);
}

.copy-ip {
  justify-self: end;
  padding: 0 18px;
  color: #02101a;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(135deg, #d8f5ff, #72d6ff 45%, #2aa7f1);
  box-shadow: 0 0 30px rgba(101, 204, 255, 0.42);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.copy-ip:hover,
.primary-btn:hover,
.ghost-btn:hover,
.join-ip:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 18px 54px rgba(74, 201, 255, 0.34);
}

main {
  position: relative;
  z-index: 1;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: center;
  min-height: 100vh;
  padding: 130px max(6vw, 24px) 70px;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 24vh;
  z-index: 1;
  background: linear-gradient(transparent, rgba(2, 8, 18, 0.96));
}

.hero-grid {
  position: absolute;
  inset: 18% -12% auto;
  height: 58vh;
  opacity: 0.38;
  background:
    linear-gradient(90deg, rgba(117, 210, 255, 0.2) 1px, transparent 1px),
    linear-gradient(rgba(117, 210, 255, 0.2) 1px, transparent 1px);
  background-size: 58px 58px;
  transform: perspective(620px) rotateX(64deg);
  animation: gridFlow 12s linear infinite;
}

.hero-logo-mark {
  position: absolute;
  right: max(3vw, 20px);
  top: 17vh;
  z-index: 0;
  width: min(38vw, 560px);
  opacity: 0.11;
  filter: drop-shadow(0 0 46px rgba(101, 204, 255, 0.58));
  transform: rotate(-8deg);
  animation: logoDrift 8s ease-in-out infinite;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--blue);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
}

h1,
.pixel-title {
  margin: 0;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 0 28px rgba(101, 204, 255, 0.42);
}

.pixel-title {
  font-family: "Press Start 2P", monospace;
}

h1 {
  max-width: 900px;
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(4.2rem, 10vw, 9.6rem);
  font-weight: 900;
  line-height: 0.86;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 span {
  display: block;
}

.title-logo-badge {
  position: absolute;
  left: clamp(430px, 43vw, 610px);
  top: clamp(230px, 27vw, 320px);
  z-index: 1;
  width: clamp(150px, 18vw, 240px);
  opacity: 0.95;
  pointer-events: none;
  filter: drop-shadow(0 0 28px rgba(168, 230, 255, 0.68)) drop-shadow(0 20px 50px rgba(0, 0, 0, 0.56));
  transform: rotate(5deg);
  animation: titleLogoFloat 6.5s ease-in-out infinite;
}

.title-fill {
  color: #f6fcff;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.2);
  text-shadow: 0 0 34px rgba(198, 239, 255, 0.5), 0 8px 36px rgba(0, 0, 0, 0.58);
}

.title-outline {
  color: transparent;
  -webkit-text-stroke: 3px rgba(244, 252, 255, 0.98);
  text-shadow: 0 0 36px rgba(96, 204, 255, 0.62), 0 8px 36px rgba(0, 0, 0, 0.58);
}

.hero-copy {
  max-width: 610px;
  margin: 26px 0 0;
  color: #d2effb;
  font-size: 1.12rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.primary-btn,
.ghost-btn,
.join-ip {
  display: inline-grid;
  place-items: center;
  padding: 0 24px;
  cursor: pointer;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.primary-btn,
.join-ip {
  color: #03121c;
  background: linear-gradient(135deg, #f2fcff, #87ddff 45%, #1aa4ee);
  box-shadow: 0 18px 46px rgba(49, 179, 255, 0.32);
}

.ghost-btn {
  color: var(--white);
  border-color: var(--line);
  background: rgba(146, 220, 255, 0.08);
}

.server-card {
  position: relative;
  z-index: 2;
  align-self: end;
  margin-bottom: 9vh;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(146, 220, 255, 0.16), rgba(0, 14, 24, 0.72));
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.5), 0 0 80px rgba(47, 174, 255, 0.2);
  backdrop-filter: blur(18px);
}

.card-logo-mark {
  position: absolute;
  right: 14px;
  bottom: 10px;
  width: 86px;
  opacity: 0.11;
  pointer-events: none;
  filter: drop-shadow(0 0 24px rgba(112, 214, 255, 0.62));
}

.card-top {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
}

.card-top strong {
  color: #a6ffdd;
}

.ip-box {
  margin-top: 18px;
  padding: 20px;
  border-radius: 8px;
  background: rgba(2, 12, 22, 0.62);
}

.ip-box span,
.players-box span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.ip-box b,
.players-box b {
  display: block;
  margin-top: 8px;
  font-size: 1.55rem;
}

.players-box {
  margin-top: 12px;
  padding: 16px 20px;
  border: 1px solid rgba(180, 232, 255, 0.13);
  border-radius: 8px;
  background: rgba(146, 220, 255, 0.07);
}

.signal-bars {
  display: flex;
  align-items: end;
  gap: 7px;
  height: 54px;
  margin-top: 22px;
}

.signal-bars i {
  flex: 1;
  border-radius: 5px 5px 0 0;
  background: linear-gradient(180deg, #e7fbff, #4cc9ff);
  animation: pulseBars 1.8s ease-in-out infinite;
}

.signal-bars i:nth-child(1) { height: 35%; }
.signal-bars i:nth-child(2) { height: 58%; animation-delay: 100ms; }
.signal-bars i:nth-child(3) { height: 78%; animation-delay: 200ms; }
.signal-bars i:nth-child(4) { height: 100%; animation-delay: 300ms; }

.floating-cube {
  position: absolute;
  width: 76px;
  height: 76px;
  border: 1px solid rgba(210, 244, 255, 0.25);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.28), transparent 42%),
    linear-gradient(135deg, #d8f8ff, #58c9ff 45%, #126aa9);
  box-shadow: 0 0 44px rgba(80, 203, 255, 0.42);
  image-rendering: pixelated;
  animation: floatCube 7s ease-in-out infinite;
}

.cube-one { top: 25%; right: 22%; }
.cube-two { bottom: 20%; left: 10%; width: 48px; height: 48px; animation-delay: -2s; }
.cube-three { top: 19%; left: 55%; width: 38px; height: 38px; animation-delay: -4s; }

.feature-intro {
  padding: 120px max(6vw, 24px) 40px;
  text-align: center;
}

.pixel-title {
  font-size: clamp(1.8rem, 6vw, 4.2rem);
  line-height: 1.45;
}

.section-copy {
  max-width: 660px;
  margin: 28px auto 0;
  color: var(--muted);
  line-height: 1.75;
}

.feature-stack {
  display: grid;
  gap: 38px;
  padding: 35px max(6vw, 24px) 110px;
}

.feature-panel {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(3, 14, 24, 0.74);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.4);
  isolation: isolate;
  perspective: 1200px;
  transition: box-shadow 220ms ease, border-color 220ms ease;
}

.feature-logo-mark {
  position: absolute;
  right: clamp(20px, 6vw, 72px);
  bottom: clamp(16px, 5vw, 52px);
  z-index: 2;
  width: clamp(120px, 18vw, 260px);
  opacity: 0.13;
  pointer-events: none;
  filter: drop-shadow(0 0 34px rgba(112, 214, 255, 0.5));
  transform: rotate(7deg);
  transition: opacity 180ms ease, transform 180ms ease;
}

.feature-panel:hover .feature-logo-mark {
  opacity: 0.22;
  transform: translate3d(var(--hover-bg-x, 0), var(--hover-bg-y, 0), 0) rotate(2deg) scale(1.05);
}

.feature-panel::before {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.72;
  background:
    radial-gradient(circle at var(--hover-x, calc(50% + var(--spot-x, 0px))) var(--hover-y, calc(48% + var(--spot-y, 0px))), rgba(192, 240, 255, 0.23), transparent 16rem),
    linear-gradient(90deg, rgba(0, 0, 0, 0.68), transparent 34%, transparent 64%, rgba(0, 0, 0, 0.68));
  transform: translate3d(calc(var(--spot-x, 0px) * -0.14), calc(var(--spot-y, 0px) * -0.1), 0);
  animation: spotlightPulse 5s ease-in-out infinite;
}

.feature-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.32;
  background: linear-gradient(110deg, transparent 18%, rgba(203, 242, 255, 0.13) 42%, transparent 66%);
  transform: translateX(-120%);
  animation: panelSweep 6.5s ease-in-out infinite;
}

.feature-panel-alt {
  --card-side: 36%;
}

.feature-panel:hover {
  border-color: rgba(203, 242, 255, 0.42);
  box-shadow: 0 38px 120px rgba(0, 0, 0, 0.58), 0 0 78px rgba(82, 202, 255, 0.14);
}

.feature-panel:hover .scene {
  filter: saturate(1.22) brightness(1.1);
}

.scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(2, 8, 18, 0.34), rgba(2, 8, 18, 0.82)),
    var(--scene);
  transform: translate3d(calc(var(--scene-slide, 0px) * -1), var(--parallax, 0), 0) scale(1.08);
  transition: transform 160ms ease-out, filter 180ms ease;
}

.scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 34px 34px;
  transform: translate3d(calc(var(--scene-slide, 0px) + var(--hover-bg-x, 0px)), calc((var(--parallax, 0) * 0.6) + var(--hover-bg-y, 0px)), 0);
}

.scene::after {
  content: "";
  position: absolute;
  inset: auto 8% 0;
  height: 38%;
  background:
    linear-gradient(90deg, transparent, rgba(168, 234, 255, 0.14), transparent),
    repeating-linear-gradient(90deg, #16415c 0 34px, #1a5070 34px 68px);
  clip-path: polygon(0 50%, 10% 42%, 18% 48%, 28% 32%, 38% 50%, 50% 38%, 66% 52%, 76% 36%, 100% 48%, 100% 100%, 0 100%);
}

.scene-spawn {
  --scene: radial-gradient(circle at 50% 26%, rgba(221, 249, 255, 0.28), transparent 16rem), linear-gradient(135deg, #072236, #0b4c78 45%, #05111d);
}

.scene-events {
  --scene: radial-gradient(circle at 72% 32%, rgba(125, 221, 255, 0.36), transparent 14rem), linear-gradient(135deg, #02101d, #17496a 52%, #0a1b25);
}

.scene-economy {
  --scene: radial-gradient(circle at 30% 34%, rgba(214, 248, 255, 0.32), transparent 15rem), linear-gradient(135deg, #062235, #0c5f85 48%, #02101a);
}

.feature-text {
  display: grid;
  align-content: center;
  position: absolute;
  top: 50%;
  left: var(--card-side, 58%);
  z-index: 2;
  width: min(520px, 72vw);
  min-height: 230px;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid rgba(190, 235, 255, 0.15);
  border-radius: 8px;
  background: rgba(2, 9, 16, 0.72);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.54), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  transform:
    translate3d(calc(-50% + var(--card-slide, 0px) + var(--hover-card-x, 0px)), calc(-50% + var(--hover-card-y, 0px)), 0)
    rotateX(var(--tilt-x, 0deg))
    rotateY(var(--tilt-y, 0deg))
    skewX(var(--tilt-skew, 0deg))
    scale(var(--card-scale, 1));
  transform-style: preserve-3d;
  transition: transform 95ms ease-out, border-color 180ms ease, background 180ms ease;
  animation: cardGlow 4.8s ease-in-out infinite;
}

.feature-panel:hover .feature-text {
  border-color: rgba(203, 242, 255, 0.34);
  background: rgba(2, 9, 16, 0.82);
}

.feature-text::before,
.feature-text::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
}

.feature-text::before {
  opacity: var(--hover-light, 0);
  background:
    radial-gradient(circle at var(--hover-x, 50%) var(--hover-y, 50%), rgba(230, 249, 255, 0.2), transparent 18rem),
    linear-gradient(110deg, transparent 8%, rgba(255, 255, 255, 0.09), transparent 34%);
  mix-blend-mode: screen;
  transition: opacity 160ms ease;
}

.feature-text::after {
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 44px rgba(153, 224, 255, 0.04);
}

.feature-text > * {
  position: relative;
  z-index: 1;
  transform: translateZ(42px);
}

.feature-text span {
  color: var(--blue);
  font-weight: 900;
}

.feature-text h3 {
  margin: 14px 0 0;
  font-size: clamp(1.8rem, 3.2vw, 2.45rem);
  line-height: 1.08;
}

.world-copy h2 {
  margin: 14px 0 0;
  font-size: clamp(2rem, 5vw, 4.8rem);
  line-height: 1;
}

.feature-text p,
.world-copy p,
.join-section p {
  color: var(--muted);
  line-height: 1.75;
}

.world-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: 42px;
  align-items: center;
  padding: 110px max(6vw, 24px);
  background: linear-gradient(180deg, rgba(4, 19, 33, 0), rgba(7, 31, 50, 0.72), rgba(4, 19, 33, 0));
}

.world-preview {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(3, 14, 24, 0.75);
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.42), 0 0 90px rgba(71, 194, 255, 0.16);
}

.preview-toolbar {
  display: flex;
  gap: 8px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.preview-toolbar span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #8ee0ff;
}

.preview-landscape {
  position: relative;
  height: 440px;
  background:
    radial-gradient(circle at 70% 18%, rgba(221, 249, 255, 0.4), transparent 7rem),
    linear-gradient(180deg, #03111f 0%, #0f3b5d 55%, #03111c 100%);
}

.preview-logo-mark {
  position: absolute;
  left: 50%;
  top: 48%;
  z-index: 3;
  width: min(42%, 260px);
  opacity: 0.68;
  filter: drop-shadow(0 0 34px rgba(112, 214, 255, 0.65));
  transform: translate(-50%, -50%) rotate(-4deg);
  animation: logoDriftCentered 6s ease-in-out infinite reverse;
}

.moon {
  position: absolute;
  top: 54px;
  right: 90px;
  width: 78px;
  height: 78px;
  background: linear-gradient(135deg, #ffffff, #8bdcff);
  box-shadow: 0 0 70px rgba(129, 218, 255, 0.75);
}

.mountain {
  position: absolute;
  bottom: 74px;
  width: 64%;
  height: 54%;
  background: linear-gradient(135deg, #102e43, #36b4ed);
  clip-path: polygon(0 100%, 48% 0, 100% 100%);
}

.mountain-left {
  left: -8%;
}

.mountain-right {
  right: -12%;
  bottom: 50px;
  opacity: 0.72;
}

.water {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 118px;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.12) 0 2px, transparent 2px 18px),
    linear-gradient(180deg, rgba(70, 200, 255, 0.36), rgba(3, 16, 28, 0.92));
  animation: waterMove 5s ease-in-out infinite;
}

.join-section {
  margin: 40px max(6vw, 24px) 90px;
  padding: clamp(42px, 8vw, 90px);
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 0%, rgba(194, 240, 255, 0.28), transparent 22rem),
    linear-gradient(135deg, rgba(11, 69, 103, 0.78), rgba(2, 10, 18, 0.88));
}

.join-section p {
  max-width: 560px;
  margin: 22px auto 28px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 40;
  padding: 12px 18px;
  color: #03121c;
  font-weight: 900;
  border-radius: 999px;
  background: #c7f3ff;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
  transform: translate(-50%, 120px);
  transition: transform 220ms ease;
}

.toast.show {
  transform: translate(-50%, 0);
}

.reveal {
  opacity: 0;
  transform: translateY(46px) scale(0.98);
  transition: opacity 800ms ease, transform 800ms cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--delay, 0ms);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.feature-panel.visible {
  transform: translate3d(0, var(--panel-lift, 0px), 0) scale(var(--panel-scale, 1));
}

@keyframes gridFlow {
  from { background-position: 0 0; }
  to { background-position: 0 58px; }
}

@keyframes floatCube {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(0, -22px, 0) rotate(7deg); }
}

@keyframes pulseBars {
  0%, 100% { opacity: 0.55; transform: scaleY(0.82); }
  50% { opacity: 1; transform: scaleY(1); }
}

@keyframes waterMove {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

@keyframes logoDrift {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-8deg) scale(1); }
  50% { transform: translate3d(0, -14px, 0) rotate(-5deg) scale(1.035); }
}

@keyframes logoDriftCentered {
  0%, 100% { transform: translate(-50%, -50%) translate3d(0, 0, 0) rotate(-4deg) scale(1); }
  50% { transform: translate(-50%, -50%) translate3d(0, -12px, 0) rotate(-1deg) scale(1.04); }
}

@keyframes titleLogoFloat {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-1deg) scale(1); }
  50% { transform: translate3d(0, -10px, 0) rotate(1deg) scale(1.025); }
}

@keyframes spotlightPulse {
  0%, 100% { opacity: 0.58; }
  50% { opacity: 0.82; }
}

@keyframes panelSweep {
  0%, 36% { transform: translateX(-120%); }
  68%, 100% { transform: translateX(120%); }
}

@keyframes cardGlow {
  0%, 100% {
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.54), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }
  50% {
    box-shadow: 0 34px 110px rgba(0, 0, 0, 0.62), 0 0 42px rgba(111, 207, 255, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  }
}

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

  .topbar nav {
    display: none;
  }

  .hero,
  .world-section,
  .feature-panel,
  .feature-panel-alt {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 44px;
    padding-top: 120px;
  }

  .server-card {
    align-self: auto;
    margin-bottom: 0;
  }

  .feature-panel-alt .scene {
    order: 0;
  }

  .world-copy h2 {
    font-size: clamp(2rem, 12vw, 3.4rem);
  }

  .feature-text h3 {
    font-size: clamp(2rem, 10vw, 3.2rem);
  }

  .feature-text {
    left: 50%;
    width: min(620px, 84vw);
  }
}

@media (max-width: 520px) {
  .topbar {
    top: 10px;
    width: calc(100vw - 20px);
    padding-left: 14px;
  }

  .brand {
    font-size: 0.95rem;
  }

  .copy-ip {
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.84rem;
  }

  h1 {
    font-size: clamp(3.05rem, 16vw, 5.4rem);
  }

  .title-logo-badge {
    left: auto;
    right: 5vw;
    top: 235px;
    width: clamp(100px, 30vw, 160px);
    opacity: 0.86;
  }

  .title-outline {
    -webkit-text-stroke-width: 2px;
  }

  .pixel-title {
    font-size: clamp(1.35rem, 8vw, 2.3rem);
  }

  .hero-actions {
    display: grid;
  }

  .preview-landscape {
    height: 320px;
  }
}
