/* The established Inter/Oxanium brand is retained. */
@font-face { font-family: 'Inter'; src: url('fonts/inter-latin.woff2') format('woff2'); font-style: normal; font-weight: 100 900; font-display: swap; } /* taste-skill-ignore: existing brand */
@font-face { font-family: 'Oxanium'; src: url('fonts/oxanium-latin.woff2') format('woff2'); font-style: normal; font-weight: 500 800; font-display: swap; }

html:has(body.landing-page) { scroll-behavior: smooth; }

.landing-page {
  --landing-canvas: #0a0c12;
  --landing-surface: #121620;
  --landing-surface-raised: #171c29;
  --landing-hover: #202636;
  --landing-border: rgba(148, 163, 184, 0.14);
  --landing-border-strong: rgba(148, 163, 184, 0.24);
  --landing-red: #ef5252;
  --landing-crimson-top: #e24343;
  --landing-crimson-bottom: #bd2828;
  --landing-blurple: #5865f2;
  --landing-ink: #f3f4f7;
  --landing-muted: #b9bfcc;
  --landing-dark: #0e1118;
  --landing-gold: #eac050;
  --landing-silver: #bcc5d1;
  --landing-bronze: #ce956c;
  --landing-gutter: 1rem;
  --landing-header-height: 65px;
  --motion-out: cubic-bezier(.16, 1, .3, 1);
  --font-base: 'Inter', sans-serif;
  --font-display: 'Oxanium', 'Inter', sans-serif;
  margin: 0;
  background: var(--landing-canvas);
  color: var(--landing-ink);
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.55;
  color-scheme: dark;
}
.landing-page *, .landing-page *::before, .landing-page *::after { box-sizing: border-box; }
.landing-page [hidden] { display: none !important; }
.landing-page #main { scroll-margin-top: 80px; }
.landing-page :is(h1, h2, h3, p) { margin: 0; }
.landing-page :is(h1, h2, h3) { font-family: var(--font-display); font-weight: 800; letter-spacing: -.035em; color: inherit; }
.landing-page h2 { font-size: clamp(34px, 4.2vw, 56px); line-height: 1.06; }
.landing-page a { color: inherit; text-decoration: none; }
.landing-page button { font: inherit; cursor: pointer; }
.landing-page :is(a, button, summary):focus-visible { outline: 2px solid var(--landing-red); outline-offset: 4px; }
.landing-page ::selection { background: var(--landing-red); color: #fff; }
.landing-page .icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
/* Match Overall's 80rem (1280px) rail and breakpoints so header and page edges align at every width. */
@media (min-width: 768px) {
  .landing-page { --landing-gutter: 1.5rem; }
}
.landing-width { width: min(80rem, calc(100% - var(--landing-gutter) * 2)); margin-inline: auto; }
.landing-page .skip-link { position: fixed; left: var(--landing-gutter); top: -100px; z-index: 500; padding: 12px 20px; border-radius: 0.5rem; background: var(--landing-ink); color: var(--landing-dark); font-weight: 600; }
.landing-page .skip-link:focus { top: 12px; }

/* Use the shared header geometry, surfaces and control states on every page. */
body.landing-page .site-header.reworked-nav { width: 100%; margin: 0 !important; }
body.landing-page .site-header.reworked-nav.reworked-nav .top-nav-layout { margin-left: calc((100% - var(--nav-predicted-width)) / 2); }

/* Hero */
.landing-hero {
  position: relative;
  overflow: clip;
  display: grid;
  align-items: center;
  min-height: calc(100vh - var(--landing-header-height));
  min-height: calc(100svh - var(--landing-header-height));
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 2vw, 28px);
  padding-block: clamp(24px, 3vh, 44px) clamp(44px, 6.5vh, 84px);
}
.hero-copy { position: relative; z-index: 1; }
.hero-copy h1 { font-size: clamp(56px, 6.6vw, 92px); line-height: 1.01; letter-spacing: -.035em; }
.hero-copy h1 > span { display: block; }
.hero-line { overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.hero-line > span { display: block; }
.hero-copy > p { margin-top: 28px; max-width: 44ch; font-size: clamp(18px, 1.45vw, 21px); line-height: 1.6; color: var(--landing-muted); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 18px; margin-top: 38px; }
.hero-actions .landing-button { min-height: 58px; padding: 15px 28px; font-size: 16px; border-radius: 0.875rem; }
.hero-actions .landing-button.primary { min-width: 232px; }

.hero-art { display: grid; place-items: center; min-width: 0; }
.hero-arsenal {
  position: relative;
  isolation: isolate;
  width: min(100%, 640px, calc(100vh - var(--landing-header-height) - 80px));
  width: min(100%, 640px, calc(100svh - var(--landing-header-height) - 80px));
  aspect-ratio: 1;
}
.hero-arsenal-glow {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 82, 82, 0.26) 0%, rgba(139, 92, 246, 0.16) 48%, transparent 72%);
  filter: blur(36px);
  pointer-events: none;
  z-index: -1;
}
.hero-arsenal-fallback { display: block; width: 100%; height: auto; pointer-events: none; }
.hero-arsenal-layers { position: absolute; inset: 0; visibility: hidden; }
.hero-arsenal-blocks { display: block; width: 100%; height: 100%; pointer-events: none; }
.hero-kit {
  position: absolute;
  left: var(--kit-left);
  top: var(--kit-top);
  width: var(--kit-width);
  display: block;
  cursor: pointer;
  transform-origin: 50% 100%;
  transition: opacity 180ms var(--motion-out), filter 180ms var(--motion-out);
}
.hero-kit:is([data-kit="sword"], [data-kit="axe"], [data-kit="uhc"], [data-kit="diapot"]) {
  --kit-arc: -2.5deg;
}
.hero-kit:is([data-kit="mace"], [data-kit="crystal"], [data-kit="spear"], [data-kit="smp"], [data-kit="nethpot"]) {
  --kit-arc: 2.5deg;
}
.hero-kit::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: max(100%, 44px);
  height: max(100%, 44px);
}
@media (pointer: coarse) {
  .hero-kit::after {
    width: max(100%, 48px);
    height: max(100%, 48px);
  }
}
.hero-kit img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  transform-origin: 50% 100%;
  filter: drop-shadow(0 0 0 rgba(var(--kit-glow-rgb, 239, 82, 82), 0));
  transition: transform 200ms var(--motion-out), filter 200ms var(--motion-out);
}
.hero-kit:hover,
.hero-kit:focus-visible {
  z-index: 4;
  outline: none;
}
.hero-kit:hover img,
.hero-kit:focus-visible img {
  transform: translateY(-7px) rotate(var(--kit-arc, -2.5deg)) scale(1.04);
  filter: drop-shadow(0 8px 18px rgba(var(--kit-glow-rgb, 239, 82, 82), 0.6));
  animation: hero-kit-lift 220ms var(--motion-out);
}
.hero-kit:active img {
  animation: none;
  transform: translateY(2px) rotate(calc(var(--kit-arc, -2.5deg) * 0.35)) scale3d(1.03, 0.95, 1);
  transition-duration: 40ms;
}
.hero-arsenal:not(.is-animating) .hero-arsenal-layers:has(.hero-kit:is(:hover, :focus-visible)) .hero-kit:not(:hover):not(:focus-visible) {
  opacity: 0.55;
  filter: saturate(0.7);
}
@keyframes hero-kit-lift {
  0% { transform: translateY(0) rotate(0deg) scale(1); }
  18% { transform: translateY(2px) rotate(0deg) scale(0.985, 0.965); }
  100% { transform: translateY(-7px) rotate(var(--kit-arc, -2.5deg)) scale(1.04); }
}
.hero-kit:focus-visible img { outline: 2px solid var(--landing-red); outline-offset: 4px; border-radius: 6px; }
.hero-arsenal.is-layered .hero-arsenal-layers { visibility: visible; }
.hero-arsenal.is-layered .hero-arsenal-fallback { visibility: hidden; }
/* Keep the settled sprites on the same compositor layers: dropping this hint
   after the entrance rerasterizes their fractional edges and causes a twitch. */
.hero-arsenal.is-layered .hero-kit { will-change: transform, opacity; }
.hero-arsenal.is-layered .hero-kit img { will-change: transform, filter; }

/* Buttons & text links — unified with STL's rounded tactical UI */
.landing-button, .landing-text-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.3;
  min-height: 48px;
  transition: transform 180ms var(--motion-out), background-color 180ms var(--motion-out), color 180ms var(--motion-out), filter 180ms var(--motion-out);
}
.landing-button {
  border: 0;
  border-radius: 0.75rem;
  padding: 13px 22px;
}
.landing-button.primary {
  background: var(--landing-blurple);
  color: #ffffff;
  min-width: 210px;
  min-height: 52px;
}
.landing-button.primary.testing-action {
  background: linear-gradient(180deg, var(--landing-crimson-top) 0%, var(--landing-crimson-bottom) 100%);
}
.landing-button.primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}
.landing-button.secondary {
  background: var(--landing-surface);
  color: var(--landing-ink);
  min-height: 52px;
}
.landing-button.secondary:hover {
  transform: translateY(-2px);
  background: var(--landing-surface-raised);
}
.landing-button:active { transform: translateY(1px); }
.landing-text-link { justify-content: flex-start; color: var(--landing-ink); }
.landing-text-link:hover { color: var(--landing-red); transform: translateX(3px); }
.landing-button svg, .landing-text-link svg { width: 18px; height: 18px; flex: 0 0 auto; }

/* Disclosure */
.landing-disclosure { min-width: 0; }
.landing-disclosure summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  min-height: 38px;
  border-radius: 999px;
  border: 1px solid var(--landing-border);
  background: var(--landing-surface);
  cursor: pointer;
  list-style: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--landing-muted);
  transition: color 160ms var(--motion-out), border-color 160ms var(--motion-out), background-color 160ms var(--motion-out);
}
.landing-disclosure summary::-webkit-details-marker { display: none; }
.landing-disclosure summary::before {
  content: '▸';
  color: var(--landing-red);
  font-size: 13px;
  line-height: 1;
  transition: transform 160ms var(--motion-out);
}
.landing-disclosure[open] summary::before { transform: rotate(90deg); }
.landing-disclosure summary:hover { color: var(--landing-ink); border-color: var(--landing-border-strong); }
.landing-disclosure[open] summary { color: var(--landing-ink); border-color: rgba(239, 82, 82, 0.45); background: var(--landing-surface-raised); }
.disclosure-content {
  margin-top: 12px;
  max-width: 66ch;
  padding: 16px 20px;
  border-radius: 0.75rem;
  border: 1px solid var(--landing-border);
  background: var(--landing-surface);
  font-size: 15px;
  line-height: 1.65;
  color: var(--landing-muted);
}
.disclosure-content p + p { margin-top: 10px; }
.disclosure-content .landing-text-link { margin-top: 10px; min-height: 36px; font-size: 14px; }

/* Testing section — numbered vertical path with scroll-linked progress */
.landing-testing {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 80px;
  padding-block: 136px;
}
.testing-copy > p { max-width: 32ch; margin-top: 28px; font-size: 18px; color: var(--landing-muted); }
.testing-copy .landing-text-link { margin-top: 24px; }
.testing-preparation { margin-top: 24px; max-width: 34ch; }
.testing-flow { min-width: 0; }
.testing-action { margin-top: 32px; margin-left: 72px; }
.testing-steps { display: grid; gap: 36px; list-style: none; padding: 0; margin: 0; }
.testing-steps li { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 24px; }
/* The numbered path makes the required reading order explicit. */
.testing-steps li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 22px;
  top: 60px;
  bottom: -24px;
  width: 4px;
  background: var(--landing-hover);
}
.testing-steps li:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 18px;
  bottom: -24px;
  width: 12px;
  height: 12px;
  border-right: 4px solid var(--landing-red);
  border-bottom: 4px solid var(--landing-red);
  transform: rotate(45deg);
  z-index: 1;
}
.testing-step-number {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: var(--landing-red);
  color: var(--landing-dark);
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  border-radius: 50%;
}
.testing-step-copy { padding-top: 8px; padding-bottom: 8px; }
.testing-steps h3 { display: flex; align-items: center; gap: 12px; font-size: 28px; line-height: 1.15; }
.testing-steps h3 svg { width: 26px; height: 26px; flex: 0 0 auto; color: var(--landing-red); }
.testing-steps p { margin-top: 12px; font-size: 16px; max-width: 45ch; color: var(--landing-muted); }
.testing-steps p strong { color: var(--landing-ink); }
/* The static path stays complete unless the motion controller is running. */
.testing-steps.has-motion li:not(:last-child)::after {
  background: linear-gradient(to bottom, var(--landing-red) calc(var(--step-progress, 0) * 100%), var(--landing-hover) 0);
}
.testing-steps.has-motion .testing-step-number {
  background: var(--landing-hover);
  color: var(--landing-ink);
  transition: background-color 180ms var(--motion-out), color 180ms var(--motion-out);
}
.testing-steps.has-motion .is-step-active .testing-step-number {
  background: var(--landing-red);
  color: var(--landing-dark);
}
.testing-steps.has-motion li:not(.is-step-active)::before { border-color: var(--landing-hover); }

/* Community / Waterfront server section */
.landing-community {
  background: linear-gradient(180deg, #0d1018 0%, #0b0e15 100%);
  border-top: 1px solid var(--landing-border);
  border-bottom: 1px solid var(--landing-border);
  color: var(--landing-ink);
}
.community-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(340px, 1fr);
  gap: 36px 32px;
  align-items: start;
  padding-block: 80px;
}
.community-copy {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(340px, 1fr);
  align-items: end;
  gap: 32px;
  min-width: 0;
}
.community-copy h2 { font-size: clamp(38px, 4.6vw, 64px); line-height: 1.04; }
.community-discord { max-width: 44ch; }
.community-discord p { font-size: 17px; color: var(--landing-muted); }
.community-discord-link { margin-top: 14px; min-height: 40px; }

.community-scene {
  position: relative;
  margin: 0;
  min-width: 0;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--landing-border-strong);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
  background: #0d1017;
}
.community-scene img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }

.community-server-panel {
  --community-panel-padding: 24px;
  display: grid;
  gap: 22px;
  min-width: 0;
  padding: var(--community-panel-padding);
  border-radius: 1rem;
  border: 1px solid var(--landing-border);
  background: var(--landing-surface);
  color: var(--landing-ink);
}
.community-server { display: flex; align-items: center; gap: 14px; min-width: 0; }
.community-server img {
  display: block;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: 0.625rem;
  image-rendering: pixelated;
}
.community-server h3 { font-size: 23px; line-height: 1.15; }
.community-server p { margin-top: 4px; font-size: 15px; color: var(--landing-muted); }
.community-server p a { text-underline-offset: 4px; transition: color 150ms var(--motion-out); }
.community-server p a:hover { color: var(--landing-ink); text-decoration: underline; }
.community-details {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  margin: 0;
  padding: 14px 16px;
  border-radius: 0.75rem;
  background: rgba(10, 12, 18, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.1);
}
.community-details dt { font-size: 13px; color: var(--landing-muted); }
.community-details dd { margin: 2px 0 0; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.community-join h3 { font-size: 19px; line-height: 1.2; }
.community-steps { display: grid; gap: 8px; margin: 12px 0 0; padding-left: 1.4em; font-size: 15px; color: var(--landing-muted); }
.community-steps strong { color: var(--landing-ink); }
.community-steps li { padding-left: 4px; }
.community-steps li::marker { font-weight: 750; color: var(--landing-red); }
.community-address {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 0.75rem;
  background: rgba(10, 12, 18, 0.75);
  border: 1px solid var(--landing-border-strong);
}
.community-address > span {
  font-family: var(--font-display);
  font-size: clamp(19px, 1.7vw, 24px);
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -.02em;
  user-select: all;
}
.community-copy-button {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 15px;
  border: 0;
  border-radius: 0.625rem;
  background: linear-gradient(180deg, var(--landing-crimson-top) 0%, var(--landing-crimson-bottom) 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 650;
  transition: transform 180ms var(--motion-out), filter 180ms var(--motion-out), background-color 180ms var(--motion-out), box-shadow 180ms var(--motion-out);
}
.community-copy-button:hover { transform: translateY(-1px); filter: brightness(1.08); }
.community-copy-button:active { transform: translateY(1px); }
.community-copy-button svg { width: 18px; height: 18px; overflow: visible; flex: 0 0 auto; }
.community-copy-label-stack { display: grid; text-align: center; }
.community-copy-label-stack > span { grid-area: 1 / 1; }
.community-copy-sizer { visibility: hidden; }
.copy-icon-glyph,
.copy-check-glyph {
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity 180ms var(--motion-out), transform 180ms var(--motion-out);
}
.copy-check-glyph {
  opacity: 0;
  transform: scale(0.5) rotate(-20deg);
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  transition: opacity 180ms var(--motion-out), transform 180ms var(--motion-out), stroke-dashoffset 200ms var(--motion-out);
}
.community-copy-button.is-copied .copy-icon-glyph {
  opacity: 0;
  transform: scale(0.5) rotate(-20deg);
}
.community-copy-button.is-copied .copy-check-glyph {
  opacity: 1;
  transform: scale(1) rotate(0);
  stroke-dashoffset: 0;
  color: #86efac;
}
.community-copy-button.is-copied::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  border: 2px solid #4ade80;
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.45), 0 0 18px rgba(239, 82, 82, 0.35);
  pointer-events: none;
  animation: copy-pulse-ring 520ms var(--motion-out) forwards;
}
@keyframes copy-pulse-ring {
  0% { opacity: 0.95; transform: scale(0.96); }
  100% { opacity: 0; transform: scale(1.14, 1.32); }
}
.community-copy-status { display: block; font-size: 14px; }
.community-copy-status:not(.community-copy-error) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.community-copy-status.community-copy-error { margin-top: 10px; color: #fca5a5; }
.landing-community :is(a, button):focus-visible { outline-color: var(--landing-red); }

/* Footer */
.landing-footer { padding-block: 44px 24px; background: #0e1118; color: var(--landing-ink); text-align: left; }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px 64px; }
.footer-about { display: flex; align-items: center; gap: 18px; }
.footer-about img { width: 52px; height: 52px; object-fit: contain; flex: 0 0 auto; }
.footer-about p { max-width: 28ch; color: var(--landing-muted); font-size: 16px; line-height: 1.55; }
.landing-footer nav { display: grid; grid-template-columns: repeat(2, auto); gap: 8px 40px; }
.landing-footer nav a { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 44px; font-size: 16px; font-weight: 600; transition: color 150ms var(--motion-out); }
.landing-footer nav a svg { width: 17px; height: 17px; color: var(--landing-muted); transition: transform 160ms var(--motion-out), color 160ms var(--motion-out); }
.landing-footer nav a:hover, .landing-footer nav a:hover svg { color: var(--landing-red); }
.landing-footer nav a:hover svg { transform: translateX(3px); }
.footer-bottom { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 16px; border-top: 1px solid rgba(148, 163, 184, 0.1); }
.landing-footer small { color: var(--landing-muted); font-size: 14px; }
.footer-top-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--landing-muted); font-size: 14px; transition: color 160ms var(--motion-out), transform 180ms var(--motion-out); }
.footer-top-link svg { width: 17px; height: 17px; transform: rotate(-90deg); transition: transform 180ms var(--motion-out), color 160ms var(--motion-out); }
.footer-top-link:hover { color: var(--landing-ink); }
.footer-top-link:hover svg { transform: translateY(-3px) rotate(-90deg); color: var(--landing-red); }

@media (max-width: 1199px) and (min-width: 768px) {
  .landing-page { --landing-header-height: 109px; }
  .hero-inner {
    grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
    padding-block: clamp(20px, 3vh, 36px) clamp(32px, 5vh, 56px);
    gap: 24px;
  }
  .hero-copy h1 { font-size: clamp(52px, 6.2vw, 76px); }
  .hero-copy > p { margin-top: 22px; font-size: clamp(17px, 1.8vw, 19px); }
  .hero-actions { margin-top: 30px; }
  .hero-actions .landing-button { min-height: 54px; padding: 14px 24px; font-size: 15px; }
  .hero-actions .landing-button.primary { min-width: 214px; }
  .hero-arsenal {
    width: min(100%, 500px, calc(100vh - var(--landing-header-height) - 72px));
    width: min(100%, 500px, calc(100svh - var(--landing-header-height) - 72px));
  }
  .landing-testing { gap: 36px; padding-block: 84px; }
  .community-inner, .community-copy { gap: 28px; }
}
@media (min-width: 768px) and (max-width: 999px) {
  .community-inner { grid-template-columns: 1fr; gap: 28px; padding-block: 64px; }
  .community-copy { grid-template-columns: 1fr 1fr; gap: 28px; }
  .community-server-panel { grid-template-columns: 1fr 1fr; gap: 20px 32px; }
  .community-join { grid-column: 2; grid-row: 1 / 3; }
}
@media (min-width: 768px) and (max-width: 899px) {
  .hero-inner { grid-template-columns: 1fr; align-content: center; gap: 28px; padding-block: 28px 40px; }
  .hero-copy h1 { font-size: clamp(54px, 8.2vw, 76px); }
  .hero-arsenal {
    width: min(100%, 480px, 46vh);
    width: min(100%, 480px, 46svh);
  }
}
@media (max-width: 767px) {
  .landing-page { --landing-header-height: 57px; }
  .hero-inner { grid-template-columns: 1fr; padding-block: 24px 32px; gap: 24px; }
  .hero-copy h1 { font-size: clamp(40px, 12.2vw, 66px); line-height: 1.02; }
  .hero-copy > p { margin-top: 18px; font-size: 16.5px; max-width: 42ch; }
  .hero-actions { margin-top: 24px; flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-actions .landing-button { width: 100%; min-height: 52px; padding: 13px 20px; font-size: 15px; }
  .hero-actions .landing-button.primary { min-width: 0; }
  .hero-arsenal { width: min(100%, 400px); }
  .landing-testing { grid-template-columns: 1fr; padding-block: 64px; gap: 32px; }
  .testing-action { margin-left: 0; width: 100%; }
  .testing-copy h2 { font-size: clamp(40px, 10vw, 60px); }
  .testing-copy > p { font-size: 16px; margin-top: 24px; }
  .testing-steps { gap: 36px; }
  .testing-steps li { grid-template-columns: 40px minmax(0, 1fr); gap: 16px; }
  .testing-step-number { width: 40px; height: 40px; font-size: 24px; }
  .testing-step-copy { padding-top: 6px; }
  .testing-steps li:not(:last-child)::after { left: 18px; top: 52px; }
  .testing-steps li:not(:last-child)::before { left: 14px; }
  .testing-steps h3 { font-size: 24px; gap: 8px; }
  .testing-steps h3 svg { width: 22px; height: 22px; }
  .community-inner { grid-template-columns: 1fr; padding-block: 56px; gap: 24px; }
  .community-copy { grid-template-columns: 1fr; gap: 16px; }
  .community-copy h2 { font-size: clamp(34px, 9vw, 54px); }
  .community-server-panel { --community-panel-padding: 18px; gap: 18px; }
  .community-server h3 { font-size: 21px; }
  .community-server p { font-size: 14px; }
  .community-discord p { font-size: 16px; }
  .community-details { display: flex; flex-wrap: wrap; gap: 14px 20px; }
  .community-details dd { font-size: 15px; }
  .community-address { flex-direction: column; align-items: stretch; gap: 12px; }
  .community-address > span { font-size: 22px; text-align: center; }
  .community-copy-button { width: 100%; }
  .landing-footer { padding-block: 36px 20px; }
  .footer-inner { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .footer-about p { font-size: 15px; }
  .landing-footer nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; }
  .landing-footer nav a { font-size: 15px; gap: 8px; }
  .footer-bottom { gap: 16px; flex-wrap: wrap; margin-top: 0; }
}

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

/* Use the same independent mobile header controls as the kit pages. */
@media (max-width: 767px) {
  body.landing-page .site-header.reworked-nav.reworked-nav .top-nav-layout {
    grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem;
    grid-template-areas: "logo address trigger";
    min-height: 3.5rem;
    height: auto;
    gap: 0.25rem;
    padding-block: 0.25rem;
    align-items: center;
  }
  body.landing-page .site-header.reworked-nav.reworked-nav .top-nav-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 2.75rem;
    min-height: 2.75rem;
  }
  body.landing-page .site-header.reworked-nav.reworked-nav .top-nav-logo-image { width: 2.25rem; height: 2.25rem; }
  body.landing-page .site-header.reworked-nav.reworked-nav .nav-address-actions {
    justify-self: end;
    min-width: 0;
    gap: 0.25rem;
    padding: 0;
    border: 0;
    background: transparent;
  }
  body.landing-page .site-header.reworked-nav.reworked-nav :is(.nav-server-address, .nav-address-actions > .nav-search-toggle, .mobile-nav-trigger) {
    min-width: 2.75rem;
    width: auto;
    height: 2.75rem;
    min-height: 2.75rem;
    padding: 0.5rem;
    border: 1px solid rgba(148, 163, 184, 0.2); /* taste-skill-ignore: match the existing shared navigation border */
    border-radius: 0.5rem;
    background: #141821;
    font-size: 0.75rem;
    gap: 0.375rem;
    color: #d2d4da;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  body.landing-page .site-header.reworked-nav .nav-search-toggle > span,
  body.landing-page .site-header.reworked-nav .nav-address-actions > .nav-search-toggle::before { display: none; }
  body.landing-page .site-header.reworked-nav .nav-search-toggle svg { width: 1.25rem; height: 1.25rem; }
  body.landing-page .site-header.reworked-nav .nav-server-address.is-copied { color: #fff; border-color: var(--accent-primary, #ef5252); }
  body.landing-page .site-header.reworked-nav.reworked-nav .mobile-nav-trigger {
    grid-area: trigger;
    margin: 0;
    justify-self: end;
  }
  body.landing-page .site-header.reworked-nav.reworked-nav .top-nav-layout > .top-nav-links { display: none; }
  body.landing-page .site-header.reworked-nav.reworked-nav .mobile-nav-drawer {
    position: fixed;
    top: var(--mobile-header-height, 3.5rem);
    left: 0;
    right: 0;
    z-index: 302;
    max-height: calc(100dvh - var(--mobile-header-height, 3.5rem));
    margin: 0;
    padding: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-top: 1px solid #303641; /* taste-skill-ignore: match the existing shared navigation border */
    border-bottom: 1px solid #303641; /* taste-skill-ignore: match the existing shared navigation border */
    background: #0a0c12;
  }
  body.landing-page .site-header.reworked-nav .mobile-nav-drawer:not([hidden]) { display: block; }
  body.landing-page .site-header.reworked-nav .mobile-nav-drawer[hidden] { display: none; }
  body.landing-page .site-header.reworked-nav .mobile-nav-drawer-inner {
    padding: 0.5rem max(0.75rem, env(safe-area-inset-right)) 1rem max(0.75rem, env(safe-area-inset-left));
  }
  body.landing-page .site-header.reworked-nav.reworked-nav .mobile-nav-links-slot .top-nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
  }
  body.landing-page .site-header.reworked-nav.reworked-nav .mobile-nav-links-slot .nav-button {
    justify-content: flex-start;
    width: 100%;
    min-height: 3rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
  }
}
