:root {
  color-scheme: dark;
  --bg: #09080d;
  --surface: #111017;
  --surface-soft: #17131f;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f7f4fb;
  --muted: #9e96aa;
  --purple: #8b5cf6;
  --purple-light: #b793ff;
  --green: #65e6a9;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a,
button {
  font: inherit;
}

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

.ambient {
  position: fixed;
  z-index: -1;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.13;
  pointer-events: none;
}

.ambient-one {
  top: -280px;
  right: -120px;
  background: #7547ef;
}

.ambient-two {
  bottom: 5%;
  left: -330px;
  background: #4a2b9d;
}

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 92px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  position: relative;
  display: inline-block;
  width: 31px;
  height: 31px;
  transform: rotate(-7deg);
}

.brand-mark span {
  position: absolute;
  width: 19px;
  height: 19px;
  border-radius: 6px;
  background: linear-gradient(145deg, #aa7eff, #5b30bd);
  box-shadow: 0 5px 16px rgba(117, 71, 239, 0.25);
}

.brand-mark span:nth-child(1) {
  top: 0;
  left: 6px;
}

.brand-mark span:nth-child(2) {
  bottom: 0;
  left: 0;
}

.brand-mark span:nth-child(3) {
  right: 0;
  bottom: 1px;
}

.brand-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-label {
  margin-left: 1px;
  color: #746b81;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.header-link {
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #c7c0cf;
  font-size: 13px;
  font-weight: 600;
  transition: 160ms ease;
}

.header-link:hover {
  border-color: rgba(183, 147, 255, 0.4);
  color: #fff;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  min-height: 540px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(90deg, rgba(139, 92, 246, 0.12), transparent 60%),
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    #100e16;
  background-size: auto, 52px 52px, 52px 52px, auto;
}

.hero-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  padding: 64px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--purple-light);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow span {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(101, 230, 169, 0.65);
}

h1 {
  max-width: 750px;
  margin: 23px 0 22px;
  font-size: clamp(48px, 6vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.hero-text {
  max-width: 570px;
  margin: 0;
  color: #aea6b8;
  font-size: 17px;
  line-height: 1.7;
}

.hero-invitation {
  max-width: 560px;
  margin: 18px 0 0;
  color: #e8e1f2;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.65;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  margin-top: 38px;
  padding: 16px 19px 16px 22px;
  border-radius: 13px;
  background: linear-gradient(135deg, #8659ed, #7043cf);
  box-shadow: 0 12px 35px rgba(112, 67, 207, 0.2);
  font-size: 14px;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.primary-action span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
}

.primary-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 42px rgba(112, 67, 207, 0.31);
}

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.hero-cube {
  position: relative;
  z-index: 2;
  display: block;
  width: min(88%, 330px);
  height: auto;
  filter:
    drop-shadow(0 18px 24px rgba(87, 37, 187, 0.32))
    drop-shadow(0 0 22px rgba(155, 102, 255, 0.16));
  transform: translate3d(0, -13px, 0);
  transform-origin: 50% 60%;
  will-change: transform, filter;
  animation: cube-levitate 5.2s ease-in-out infinite;
}

.cube-floor {
  position: absolute;
  z-index: 0;
  top: 72%;
  left: 50%;
  width: min(84%, 320px);
  height: 104px;
  border: 1px solid rgba(154, 99, 255, 0.08);
  border-radius: 50%;
  background:
    linear-gradient(rgba(150, 92, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(150, 92, 255, 0.1) 1px, transparent 1px),
    radial-gradient(ellipse, rgba(119, 61, 224, 0.13), transparent 68%);
  background-size: 24px 24px, 24px 24px, auto;
  opacity: 0.58;
  transform: translate(-50%, -50%) perspective(240px) rotateX(63deg);
  transform-origin: center;
}

.cube-shadow {
  position: absolute;
  z-index: 1;
  top: 73%;
  left: 50%;
  width: min(62%, 220px);
  height: 42px;
  border-radius: 50%;
  background: rgba(130, 68, 239, 0.38);
  filter: blur(16px);
  transform: translate(-50%, -50%) scale(0.82);
  will-change: transform, opacity;
  animation: cube-shadow-breathe 5.2s ease-in-out infinite;
}

@keyframes cube-levitate {
  0%, 100% {
    transform: translate3d(0, -13px, 0) rotate(-0.6deg);
    filter:
      drop-shadow(0 18px 24px rgba(87, 37, 187, 0.32))
      drop-shadow(0 0 22px rgba(155, 102, 255, 0.16));
  }
  50% {
    transform: translate3d(0, -31px, 0) rotate(0.8deg);
    filter:
      drop-shadow(0 30px 34px rgba(87, 37, 187, 0.42))
      drop-shadow(0 0 32px rgba(169, 119, 255, 0.24));
  }
}

@keyframes cube-shadow-breathe {
  0%, 100% {
    opacity: 0.72;
    transform: translate(-50%, -50%) scale(0.9);
  }
  50% {
    opacity: 0.34;
    transform: translate(-50%, -50%) scale(0.68);
  }
}

.pixel {
  position: absolute;
  width: 7px;
  height: 7px;
  background: #9167e8;
  opacity: 0.5;
}

.p1 { top: 25%; right: 14%; }
.p2 { bottom: 24%; left: 13%; width: 4px; height: 4px; }
.p3 { top: 18%; left: 20%; width: 5px; height: 5px; }

.downloads-section,
.steps-section {
  padding: 110px 0 0;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.section-heading h2,
.server-section h2 {
  margin: 12px 0 0;
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.045em;
}

.section-heading > p {
  max-width: 380px;
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

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

.download-card,
.loading-card {
  min-height: 278px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(139, 92, 246, 0.055), transparent 48%), var(--surface);
}

.download-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding: 28px;
  transition: border-color 170ms ease, transform 170ms ease;
}

.download-card:hover {
  border-color: rgba(183, 147, 255, 0.25);
  transform: translateY(-2px);
}

.loading-card {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  color: var(--muted);
}

.file-icon {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 1px solid rgba(164, 120, 255, 0.22);
  border-radius: 14px;
  background: rgba(139, 92, 246, 0.12);
  color: var(--purple-light);
}

.file-icon svg,
.download-button svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.file-copy {
  min-width: 0;
}

.file-meta {
  display: flex;
  gap: 9px;
  color: #7f7789;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.file-size::before {
  content: "•";
  margin-right: 9px;
}

.file-title {
  margin: 12px 0 8px;
  overflow-wrap: anywhere;
  font-size: 20px;
  letter-spacing: -0.025em;
}

.file-description {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.download-button {
  grid-column: 1 / -1;
  align-self: end;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border: 1px solid rgba(183, 147, 255, 0.2);
  border-radius: 12px;
  background: rgba(139, 92, 246, 0.1);
  color: #d8c5ff;
  font-size: 13px;
  font-weight: 700;
  transition: 160ms ease;
}

.download-button:hover {
  border-color: rgba(183, 147, 255, 0.45);
  background: rgba(139, 92, 246, 0.18);
  color: #fff;
}

.download-button.is-missing {
  cursor: not-allowed;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.025);
  color: #6e6876;
  pointer-events: none;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  list-style: none;
}

.steps li {
  display: flex;
  gap: 20px;
  min-height: 185px;
  padding: 34px 30px;
}

.steps li + li {
  border-left: 1px solid var(--line);
}

.step-number {
  color: var(--purple-light);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.steps h3 {
  margin: -5px 0 12px;
  font-size: 17px;
}

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

.server-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-top: 110px;
  padding: 48px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(100deg, rgba(139, 92, 246, 0.1), transparent 60%),
    var(--surface);
}

.servers-section,
.mods-section {
  padding-top: 110px;
  scroll-margin-top: 20px;
}

.server-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.server-card {
  min-height: 310px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(139, 92, 246, .08), transparent 58%), var(--surface);
}

.server-card.is-techno { border-color: rgba(183, 147, 255, .35); }
.server-card-top { display: flex; align-items: center; justify-content: space-between; }
.server-icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 14px; background: rgba(139, 92, 246, .18); color: var(--purple-light); font-weight: 800; }
.development-badge { padding: 6px 9px; border-radius: 999px; background: rgba(255, 193, 92, .1); color: #f1c77d; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.server-kicker { display: block; margin-top: 28px; color: var(--purple-light); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.server-card h3 { margin: 10px 0 12px; font-size: 30px; }
.server-card p { min-height: 68px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.server-state { display: inline-flex; margin-top: 24px; color: #d9ccf5; font-size: 12px; font-weight: 700; }

.page-hero {
  position: relative;
  padding: 82px 64px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(110deg, rgba(139, 92, 246, .16), transparent 58%),
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px),
    #100e16;
  background-size: auto, 52px 52px, 52px 52px, auto;
}

.page-hero::after {
  position: absolute;
  right: 7%;
  bottom: -95px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(117, 71, 239, .2);
  content: "";
  filter: blur(85px);
}

.page-hero h1 { margin-bottom: 18px; }
.page-hero p { position: relative; z-index: 1; max-width: 680px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.75; }
.compact-section { padding-top: 78px; }

.download-hero {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(420px, .72fr);
  gap: 54px;
  align-items: center;
  min-height: 430px;
  padding: 50px 56px;
}

.download-hero-copy,
.download-hero-panel {
  position: relative;
  z-index: 1;
}

.download-hero-copy h1 {
  margin-bottom: 20px;
}

.download-hero-panel {
  padding: 20px;
  border: 1px solid rgba(183, 147, 255, .2);
  border-radius: 22px;
  background: rgba(8, 7, 12, .48);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .2);
  backdrop-filter: blur(10px);
}

.download-hero-heading {
  margin: 2px 4px 16px;
}

.download-hero-heading h2 {
  margin: 9px 0 5px;
  font-size: 24px;
  letter-spacing: -.035em;
}

.download-hero-heading p {
  font-size: 13px;
  line-height: 1.5;
}

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

.download-hero .download-card,
.download-hero .loading-card {
  min-height: 235px;
}

.download-hero .download-card {
  padding: 23px;
  background: linear-gradient(145deg, rgba(139, 92, 246, .12), transparent 55%), #12101a;
}

.about-section { padding-top: 110px; }
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.about-grid article { min-height: 245px; padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.about-grid article > span { color: var(--purple-light); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.about-grid h3 { margin: 34px 0 12px; font-size: 20px; }
.about-grid p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.about-grid .card-link { display: inline-block; margin-top: 18px; color: var(--purple-light); font-size: 12px; font-weight: 800; }
.about-grid .card-link:hover { color: #fff; }

.server-detail {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 42px;
  margin-top: 24px;
  padding: 48px;
  scroll-margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(140deg, rgba(139, 92, 246, .08), transparent 60%), var(--surface);
}
.page-hero + .server-detail { margin-top: 78px; }
.server-detail.is-techno { border-color: rgba(183, 147, 255, .32); }
.server-detail-index { color: rgba(183, 147, 255, .35); font-size: 64px; font-weight: 800; letter-spacing: -.08em; }
.server-detail .development-badge { float: right; }
.server-detail h2 { margin: 13px 0 18px; font-size: clamp(38px, 5vw, 62px); letter-spacing: -.055em; }
.server-detail p { max-width: 720px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.8; }
.feature-list { display: grid; gap: 10px; margin: 26px 0 0; padding: 0; list-style: none; }
.feature-list li { position: relative; padding-left: 20px; color: #d5cedd; font-size: 13px; }
.feature-list li::before { position: absolute; top: 6px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--green); content: ""; }
.small-action { margin-top: 28px; }

.mods-details.is-open { padding-top: 6px; }
.mods-list-title { padding: 16px 22px; color: #ded6e6; font-size: 13px; font-weight: 800; }

.transparency-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  margin-top: 24px;
  padding: 36px;
  border: 1px solid rgba(183, 147, 255, .24);
  border-radius: 22px;
  background: linear-gradient(120deg, rgba(139, 92, 246, .12), transparent 65%), var(--surface);
}
.transparency-card h2 { margin: 12px 0 10px; font-size: 28px; }
.transparency-card p { max-width: 720px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.secondary-action { flex: 0 0 auto; padding: 13px 17px; border: 1px solid rgba(183, 147, 255, .3); border-radius: 12px; color: #dfd3f7; font-size: 12px; font-weight: 800; }

.featured-mods {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 18px;
}

.featured-mods span { padding: 9px 12px; border: 1px solid rgba(183, 147, 255, .2); border-radius: 999px; background: rgba(139, 92, 246, .08); color: #d8c9f5; font-size: 11px; font-weight: 700; }
.mods-details { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.mods-details summary { padding: 18px 22px; color: #ded6e6; cursor: pointer; font-size: 13px; font-weight: 800; }
.mods-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0; padding: 0 22px 22px; list-style: none; }
.mods-list li { padding: 9px 10px; border-bottom: 1px solid rgba(255,255,255,.045); color: var(--muted); font-size: 11px; }

.server-section p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.server-address {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 10px 10px 10px 21px;
  border: 1px solid rgba(183, 147, 255, 0.25);
  border-radius: 13px;
  background: #0d0b12;
  color: #fff;
  cursor: pointer;
}

.server-address code {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.server-address span {
  padding: 10px 13px;
  border-radius: 8px;
  background: rgba(139, 92, 246, 0.17);
  color: var(--purple-light);
  font-size: 11px;
  font-weight: 700;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 160px;
  margin-top: 70px;
  border-top: 1px solid var(--line);
  color: #77717f;
  font-size: 12px;
}

.footer-brand .brand-mark {
  transform: scale(0.75) rotate(-7deg);
  transform-origin: left center;
  margin-right: -5px;
}

.footer-brand .brand-name {
  font-size: 16px;
}

footer > span:last-child {
  justify-self: end;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.footer-links a {
  color: #9891a1;
  font-weight: 700;
  text-decoration: none;
}

.footer-links a:hover { color: var(--text); }

.footer-links a.is-disabled,
[data-discord-support].is-disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.terms-hero { min-height: 360px; }

.terms-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding-top: 42px;
}

.terms-card {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(18, 16, 24, 0.88);
}

.terms-card h2 {
  margin: 18px 0 12px;
  font-size: clamp(24px, 3vw, 34px);
}

.terms-card p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.terms-card p + p { margin-top: 14px; }

.inline-policy-link { color: var(--purple-light); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.inline-policy-link:hover { color: #fff; }

.terms-index {
  color: var(--purple-light);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.support-card {
  border-color: rgba(142, 91, 255, 0.38);
  background: linear-gradient(135deg, rgba(50, 31, 79, 0.72), rgba(18, 16, 24, 0.92));
}

.support-action {
  display: inline-flex;
  width: auto;
  margin-top: 24px;
}

.terms-summary { margin-top: 28px; }

.analytics-consent {
  position: fixed;
  z-index: 10000;
  right: 24px;
  bottom: 24px;
  left: 24px;
  display: none;
  width: min(920px, calc(100% - 48px));
  margin-inline: auto;
  padding: 1px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(183, 147, 255, 0.62), rgba(101, 230, 169, 0.32));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.analytics-consent.is-visible { display: block; }

.analytics-consent__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 22px;
  border-radius: 21px;
  background: rgba(15, 13, 21, 0.98);
}

.analytics-consent strong {
  display: block;
  margin-bottom: 6px;
  font-size: 17px;
}

.analytics-consent p {
  max-width: 610px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.analytics-consent__actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.analytics-consent__actions button {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(183, 147, 255, 0.34);
  border-radius: 12px;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.analytics-consent__decline { background: rgba(255, 255, 255, 0.04); }
.analytics-consent__accept { background: linear-gradient(135deg, #8b5cf6, #7141dc); }
.analytics-consent__actions button:hover { border-color: var(--purple-light); }
.analytics-consent__actions button:focus-visible,
.analytics-settings-button:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

.analytics-settings-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.analytics-settings-button:hover { color: var(--text); }

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-art {
    position: absolute;
    right: -60px;
    bottom: -50px;
    width: 360px;
    height: 360px;
    opacity: 0.32;
  }

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

  .download-hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 48px;
  }

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

  .steps li {
    min-height: auto;
  }

  .steps li + li {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .server-section {
    align-items: flex-start;
    flex-direction: column;
  }

  .server-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .terms-layout { grid-template-columns: 1fr; }
  .server-detail { grid-template-columns: 1fr; }
  .server-detail-index { font-size: 42px; }
  .transparency-card { align-items: flex-start; flex-direction: column; }
  .mods-list { grid-template-columns: repeat(2, 1fr); }
  .analytics-consent__content { align-items: stretch; flex-direction: column; }
  .analytics-consent__actions { justify-content: flex-end; }
}

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

  .footer-links {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .site-header {
    height: 76px;
  }

  .brand-label,
  .header-link {
    display: none;
  }

  .hero {
    min-height: 560px;
    border-radius: 20px;
  }

  .page-hero { padding: 54px 26px; border-radius: 20px; }
  .page-hero h1 { font-size: 47px; }
  .page-hero p { font-size: 15px; }
  .download-hero { gap: 28px; min-height: auto; padding: 40px 20px 20px; }
  .download-hero-panel { padding: 14px; border-radius: 18px; }
  .download-hero-heading { margin: 2px 6px 14px; }
  .download-hero-heading p { font-size: 13px; }
  .download-hero .download-card { padding: 20px; }
  .about-section { padding-top: 82px; }
  .server-detail { padding: 28px 22px; }
  .server-detail .development-badge { float: none; display: inline-flex; margin-bottom: 22px; }
  .transparency-card { padding: 28px 22px; }

  .hero-copy {
    align-self: flex-start;
    padding: 48px 26px;
  }

  h1 {
    font-size: 47px;
  }

  .hero-text {
    font-size: 15px;
  }

  .downloads-section,
  .steps-section {
    padding-top: 82px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .download-card {
    padding: 22px;
  }

  .server-section {
    margin-top: 82px;
    padding: 30px 22px;
  }

  .servers-section,
  .mods-section { padding-top: 82px; }
  .mods-list { grid-template-columns: 1fr; }

  .server-address {
    width: 100%;
    justify-content: space-between;
    padding-left: 14px;
  }

  .server-address code {
    min-width: 0;
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
  }

  footer {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
  }

  footer p {
    margin: 0;
  }

  .analytics-consent {
    right: 14px;
    bottom: 14px;
    left: 14px;
    width: calc(100% - 28px);
  }

  .analytics-consent__content { gap: 18px; padding: 18px; }
  .analytics-consent__actions { flex-direction: column-reverse; }
  .analytics-consent__actions button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
