:root {
  color-scheme: dark;
  --bg: #030609;
  --bg-soft: #07111c;
  --panel: rgba(4, 10, 18, 0.78);
  --panel-strong: rgba(5, 13, 24, 0.92);
  --line: rgba(0, 153, 255, 0.2);
  --line-strong: rgba(255, 0, 0, 0.34);
  --text: #f4f8ff;
  --muted: #b7c9dd;
  --dim: #72869a;
  --red: #ff0000;
  --red-deep: #6e0508;
  --logo-red: #ff0000;
  --logo-blue: #0099ff;
  --blue: #0099ff;
  --blue-deep: #022a55;
  --cyan: #72d7ff;
  --glow-red: rgba(255, 0, 0, 0.32);
  --glow-blue: rgba(0, 153, 255, 0.34);
  --eso-wallpaper-hero: none;
  --parallax-y: 0px;
  --page-parallax-y: 0px;
  --backdrop-opacity: 0.8;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
  --max: 1180px;
  --nav-height: 72px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  overflow-x: hidden;
  background: #02050a;
  color: var(--text);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
}

.page-backdrop {
  position: fixed;
  inset: -18vh 0;
  z-index: 0;
  pointer-events: none;
  opacity: var(--backdrop-opacity);
  background-image:
    linear-gradient(90deg, rgba(2, 5, 10, 0.68) 0%, rgba(3, 10, 20, 0.42) 46%, rgba(2, 5, 10, 0.63) 100%),
    linear-gradient(180deg, rgba(2, 5, 10, 0.12) 0%, rgba(2, 5, 10, 0.58) 100%),
    radial-gradient(circle at 18% 30%, rgba(255, 0, 0, 0.26), transparent 26rem),
    radial-gradient(circle at 78% 42%, rgba(0, 153, 255, 0.24), transparent 30rem),
    url("assets/backgrounds/page/eso-wallpaper-blue.jpg");
  background-repeat: no-repeat;
  background-position: center calc(50% + var(--page-parallax-y));
  background-size: cover;
  filter: saturate(0.88) brightness(0.675);
  transform: translate3d(0, 0, 0) scale(1.05);
  will-change: background-position;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 1;
  content: "";
  pointer-events: none;
  opacity: 0.3;
  background-image:
    linear-gradient(rgba(0, 153, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 0, 0, 0.055) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.site-header,
main,
.site-footer,
.skip-link {
  position: relative;
  z-index: 2;
}

a {
  color: inherit;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  white-space: nowrap;
  border: 0;
  clip-path: inset(50%);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  background: var(--logo-blue);
  color: #00101f;
  border-radius: 6px;
  transition: top 160ms ease;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem clamp(1rem, 4vw, 3rem);
  background: rgba(2, 6, 12, 0.78);
  border-bottom: 1px solid rgba(0, 153, 255, 0.2);
  backdrop-filter: blur(18px);
  transition: background 180ms ease, border-color 180ms ease, backdrop-filter 180ms ease;
}

body.is-at-top .site-header {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  position: relative;
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #c9bd9a;
}

.brand-mark::before {
  position: absolute;
  inset: 8px;
  content: "";
  background: #020303;
  border-radius: 50%;
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.05);
}

.brand-mark img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 8px var(--glow-blue)) drop-shadow(0 0 6px var(--glow-red));
}

.brand-mark span {
  position: relative;
  z-index: 1;
  color: transparent;
  background: linear-gradient(135deg, #e6dcc0 0%, #b9ad90 45%, #746b58 100%);
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  font-family: Palatino, "Palatino Linotype", "Times New Roman", serif;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1;
  transform: scaleX(0.84);
  text-shadow:
    0 1px 0 rgba(2, 2, 2, 0.5),
    0 0 1px rgba(230, 220, 192, 0.22);
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  color: var(--text);
  font-weight: 900;
  letter-spacing: 0;
  text-shadow:
    0 2px 0 #020202,
    0 0 12px rgba(0, 0, 0, 0.55);
}

.wordmark-n {
  color: var(--logo-red);
}

.wordmark-qol {
  color: var(--logo-blue);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.primary-nav::-webkit-scrollbar {
  display: none;
}

.primary-nav a,
.button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 6px;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.primary-nav a {
  padding: 0.55rem 0.8rem;
  color: var(--muted);
  font-size: 0.92rem;
  white-space: nowrap;
}

.primary-nav a:hover,
.primary-nav a.is-active,
.primary-nav a[aria-current="true"] {
  color: var(--cyan);
  background: rgba(0, 153, 255, 0.1);
  border-color: rgba(0, 153, 255, 0.3);
}

.section-anchor {
  scroll-margin-top: calc(var(--nav-height) + 24px);
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  margin-top: calc(var(--nav-height) * -1);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  padding: calc(var(--nav-height) + clamp(5rem, 10vw, 9rem)) clamp(1rem, 4vw, 3rem) clamp(5rem, 8vw, 7rem);
  overflow: hidden;
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: min(28vh, 18rem);
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(2, 5, 10, 0.72) 64%, #02050a 100%);
}

/* Official ESO wallpaper stored locally in assets/. */
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--eso-wallpaper-hero);
  background-size: cover;
  background-position: center calc(50% + var(--parallax-y));
  filter: saturate(0.98) brightness(var(--hero-brightness, 0.5)) contrast(1.08);
  transform: translate3d(0, 0, 0) scale(1.06);
  will-change: transform;
}

.hero-flock {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.165;
  mix-blend-mode: screen;
}

.hero-flock canvas {
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(2, 5, 10, 0.9) 0%, rgba(3, 9, 18, 0.68) 42%, rgba(2, 8, 15, 0.38) 100%),
    linear-gradient(180deg, rgba(8, 9, 7, 0.02) 0%, rgba(2, 5, 10, 0.18) 58%, rgba(2, 5, 10, 0.78) 100%);
}

.hero-content,
.section,
.feature-group,
.site-footer {
  width: min(var(--max), calc(100vw - 2rem));
  min-width: 0;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 790px;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
  overflow-wrap: break-word;
}

h1 {
  margin-bottom: 0.85rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 13vw, 9.5rem);
  line-height: 0.9;
  letter-spacing: 0;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.55);
}

.hero-wordmark {
  display: inline-flex;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 900;
  text-shadow:
    0 4px 0 #020202,
    0 12px 38px rgba(0, 0, 0, 0.7),
    0 0 22px rgba(38, 167, 255, 0.24);
}

h2 {
  margin-bottom: 0.8rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 4.2vw, 4.4rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  color: var(--cyan);
  font-size: 1rem;
}

.subtitle {
  max-width: 820px;
  margin-bottom: 1rem;
  color: #fff7e8;
  font-size: clamp(1.3rem, 2.4vw, 2.05rem);
  line-height: 1.22;
  font-weight: 700;
}

.intro,
.section-heading p,
.feature-copy p,
.install-steps p,
.support-steps p,
.credits p {
  color: var(--muted);
}

.intro {
  max-width: 690px;
  font-size: 1.08rem;
}

.button {
  gap: 0.45rem;
  padding: 0.72rem 1rem;
  color: var(--text);
  background: rgba(2, 6, 12, 0.44);
  border-color: rgba(114, 215, 255, 0.24);
  font-weight: 800;
}

.button:hover {
  color: #ffffff;
  border-color: rgba(114, 215, 255, 0.72);
  background: rgba(2, 6, 12, 0.62);
}

.support-ticket-button {
  min-height: 48px;
  margin-top: 0.45rem;
  padding: 0.85rem 1.25rem;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(255, 0, 0, 0.94), rgba(0, 153, 255, 0.88));
  border-color: rgba(255, 255, 255, 0.32);
  box-shadow: 0 16px 42px rgba(0, 153, 255, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  font-size: 1rem;
}

.support-ticket-button:hover {
  border-color: rgba(255, 255, 255, 0.58);
  background:
    linear-gradient(135deg, #ff1a1a, #19a6ff);
  box-shadow: 0 20px 52px rgba(0, 153, 255, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.14) inset;
}

.section,
.feature-group,
.site-footer {
  margin-inline: auto;
}

.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.section-heading {
  max-width: 100%;
  margin-bottom: 2rem;
}

.feature-group {
  padding: clamp(3.2rem, 6vw, 5.5rem) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.feature-copy {
  max-width: 100%;
}

.feature-copy h2 {
  font-size: clamp(2rem, 3.5vw, 3.5rem);
}

.feature-copy p:last-child {
  max-width: 100%;
}

.feature-menu-index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: feature-menu;
}

.feature-menu-map {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.38fr);
  gap: clamp(1.25rem, 3vw, 2.25rem);
  align-items: start;
}

.feature-menu-preview {
  padding: 0;
}

.feature-menu-preview img {
  max-height: 620px;
}

.feature-menu-index a {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  color: var(--muted);
  text-decoration: none;
  border-radius: 6px;
  transition: color 160ms ease, background 160ms ease;
}

.feature-menu-index a:hover,
.feature-menu-index a:focus-visible {
  color: var(--text);
  background: rgba(0, 153, 255, 0.14);
}

.feature-menu-index span {
  color: var(--cyan);
  font: 700 0.72rem ui-monospace, "SFMono-Regular", Consolas, monospace;
  letter-spacing: 0.08em;
}

.feature-group.menu-group {
  display: block;
}

.menu-group .feature-copy {
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.menu-overview,
.menu-item {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(1.25rem, 3vw, 2.25rem);
  align-items: start;
}

.menu-overview {
  padding: 0 0 clamp(1.5rem, 3vw, 2.25rem);
}

.menu-items {
  display: grid;
  gap: 0;
  margin-top: 0;
}

.menu-item {
  padding: clamp(1.5rem, 3.5vw, 2.5rem) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-items > .menu-item:first-child {
  border-top: 0;
}

.menu-item-text {
  grid-template-columns: 1fr;
}

.menu-item-copy h3,
.menu-item-copy h4 {
  margin-top: 0;
  margin-bottom: 0.45rem;
}

.menu-item-copy h3 {
  font-size: clamp(1.3rem, 2vw, 1.75rem);
}

.menu-item-copy h4 {
  font-size: 1.02rem;
}

.menu-item-copy > p:last-child,
.nested-menu > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.menu-path {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 0.55rem;
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.menu-path span[aria-hidden="true"] {
  color: var(--dim);
}

.nested-menu {
  padding: 0.85rem 0 0 1rem;
  margin-top: 1rem;
  border-left: 2px solid rgba(255, 255, 255, 0.16);
}

.nested-menu-list {
  display: grid;
  gap: 0.45rem;
  padding: 0;
  margin: 1rem 0 0;
  color: var(--muted);
  list-style: none;
}

.nested-menu-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding-left: 0.9rem;
  border-left: 2px solid rgba(255, 255, 255, 0.16);
}

.nested-menu-list strong {
  color: var(--text);
}

.menu-root-screenshot {
  width: min(420px, 100%);
  padding: 0;
  margin: 0 0 1rem;
}

.menu-item .screenshot-frame img,
.menu-overview .screenshot-frame img,
.menu-root-screenshot img {
  max-height: 430px;
}

.menu-item .screenshot-frame.tall img,
.menu-overview .screenshot-frame.tall img {
  max-height: 620px;
}

.feature-list {
  display: grid;
  align-self: start;
  align-content: start;
  gap: 0.8rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.feature-list li {
  display: grid;
  grid-template-columns: minmax(160px, 0.32fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding: 0.95rem 0;
  border-bottom: 1px solid rgba(0, 153, 255, 0.18);
}

.feature-list li:last-child {
  border-bottom: 0;
}

.feature-list.compact li {
  grid-template-columns: 1fr;
  gap: 0.25rem;
}

.feature-list strong {
  color: #f7fbff;
}

.feature-list span {
  color: var(--muted);
}

.feature-list code {
  color: var(--cyan);
  font: 0.95em ui-monospace, "SFMono-Regular", Consolas, monospace;
}

.screenshot-frame {
  margin: 0;
}

.gallery figure {
  margin: 0;
}

.gallery-trigger {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.34), 0 0 28px rgba(0, 153, 255, 0.08);
  cursor: zoom-in;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.gallery-trigger:hover,
.gallery-trigger:focus-visible {
  border-color: rgba(114, 215, 255, 0.58);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.42), 0 0 34px rgba(0, 153, 255, 0.18);
  transform: translateY(-2px);
}

.gallery img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: rgba(2, 6, 12, 0.62);
}

.screenshot-frame img {
  width: auto;
  max-width: 100%;
  height: auto;
  margin-inline: auto;
  max-height: 360px;
  object-fit: contain;
}

.screenshot-frame.tall img {
  max-height: 620px;
}

.screenshot-frame.wide {
  grid-column: 1 / -1;
}

figcaption,
.gallery-caption {
  padding: 0.65rem 0.8rem;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid rgba(0, 153, 255, 0.16);
}

.gallery-caption {
  display: block;
}

.screenshot-frame figcaption {
  padding: 0.55rem 0 0;
  text-align: center;
  border-top: 0;
}

.gallery-caption,
.screenshot-modal-frame figcaption {
  text-align: center;
}

.screenshot-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 2rem);
}

.screenshot-modal[hidden] {
  display: none;
}

.screenshot-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 3, 8, 0.78);
  backdrop-filter: blur(16px);
  cursor: zoom-out;
  opacity: 0;
  animation: modalFadeIn 280ms ease forwards;
}

.screenshot-modal-frame {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  width: min(1120px, 100%);
  min-width: 0;
  height: min(86vh, 900px);
  height: min(86dvh, 900px);
  max-height: min(86vh, 900px);
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(114, 215, 255, 0.38);
  border-radius: 8px;
  background: rgba(3, 7, 13, 0.96);
  box-shadow: 0 34px 120px rgba(0, 0, 0, 0.68), 0 0 45px rgba(0, 153, 255, 0.16);
  transform: translateY(18px) scale(0.96);
  opacity: 0;
  animation: modalZoomIn 360ms cubic-bezier(0.2, 0.82, 0.18, 1) forwards;
}

.screenshot-modal-frame img {
  display: block;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  place-self: center;
  object-fit: contain;
  background: rgba(2, 6, 12, 0.84);
}

.screenshot-modal-frame figcaption {
  position: relative;
  z-index: 1;
  color: var(--text);
  background: rgba(4, 10, 18, 0.92);
}

.screenshot-modal-frame .sr-only {
  color: var(--text);
}

.screenshot-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  padding: 0.45rem 0.65rem;
  color: var(--text);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(3, 7, 13, 0.82);
  border: 1px solid rgba(114, 215, 255, 0.42);
  border-radius: 6px;
  cursor: pointer;
}

.screenshot-modal-close:hover,
.screenshot-modal-close:focus-visible {
  border-color: var(--cyan);
}

body.has-screenshot-modal {
  overflow: hidden;
}

body.has-screenshot-modal main {
  z-index: 30;
}

@keyframes modalFadeIn {
  to { opacity: 1; }
}

@keyframes modalZoomIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.screenshot-pair {
  display: grid;
  gap: 1rem;
}

.screenshot-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.tag-list li {
  padding: 0.5rem 0.65rem;
  color: var(--muted);
  background: rgba(0, 153, 255, 0.065);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.ngear-wordmark {
  font-size: clamp(3.2rem, 10vw, 8rem);
}

.nprogress-wordmark {
  font-size: clamp(2.5rem, 10vw, 8rem);
}

.ngear-menu-index {
  grid-template-columns: 1fr;
}

.ngear-wide-shot img {
  max-height: 520px;
}

.addon-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

.addon-feature-grid article {
  min-width: 0;
  padding: 1.1rem;
  background: rgba(0, 153, 255, 0.055);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.addon-feature-grid h3 {
  margin-bottom: 0.4rem;
  color: var(--text);
  font-size: 1.08rem;
}

.addon-feature-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.addon-feature-grid .feature-number {
  margin-bottom: 0.35rem;
  color: var(--cyan);
  font: 700 0.72rem ui-monospace, "SFMono-Regular", Consolas, monospace;
  letter-spacing: 0.08em;
}

.ngear-showcases {
  margin-top: clamp(2rem, 5vw, 4rem);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.install-steps,
.support-steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.install-steps > div,
.support-steps > div {
  min-height: 170px;
  padding: 1.2rem;
  background: rgba(0, 153, 255, 0.055);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.support-email {
  color: var(--cyan);
  font-weight: 800;
}

.support-email-glyph::before {
  content: attr(data-glyph);
}

.credits {
  padding-top: clamp(3rem, 6vw, 5rem);
}

.credits a {
  color: var(--cyan);
}

.legal {
  font-size: 0.92rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 0 3rem;
  color: var(--dim);
  border-top: 1px solid var(--line);
}

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

  .menu-overview,
  .menu-item,
  .feature-menu-map {
    grid-template-columns: 1fr;
  }

  .screenshot-grid-2 {
    grid-template-columns: 1fr;
  }

  .feature-list li {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }
}

@media (max-width: 760px) {
  :root {
    --nav-height: 116px;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
  }

  .primary-nav {
    width: 100%;
    max-width: 100%;
  }

  .feature-menu-index {
    grid-template-columns: 1fr;
  }

  .addon-feature-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: calc(var(--nav-height) + 2rem);
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .ngear-page .hero {
    padding-top: calc(var(--nav-height) + 3.5rem);
  }

  .ngear-wordmark {
    font-size: clamp(2rem, 12vw, 3.8rem);
  }

  .hero-flock {
    display: none;
  }

  .hero-content,
  .section,
  .feature-group,
  .site-footer {
    width: 100%;
    max-width: 100%;
  }

  .section,
  .feature-group,
  .site-footer {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .eyebrow {
    font-size: 0.68rem;
  }

  .subtitle {
    font-size: 1.18rem;
  }

  .install-steps,
  .support-steps,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .install-steps,
  .support-steps {
    display: grid;
  }

  .site-footer {
    display: grid;
  }
}

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

  .page-backdrop,
  .hero-media,
  .hero-flock,
  .gallery-trigger,
  .screenshot-modal-frame {
    transform: none !important;
  }

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