/* =========================================================================
   Frodo Online — лендинг
   Светлая воздушная гамма + фирменные мятно-зелёный и циановый акценты
   (в стиле лаунчера и спидометра проекта).
   ========================================================================= */

:root {
  /* --- Brand accents --- */
  --mint: #18c990;          /* основной мятно-зелёный (как в лаунчере) */
  --mint-bright: #2fe0a6;
  --mint-soft: #e3fbf1;
  --cyan: #00b8d4;          /* циан со спидометра */
  --cyan-bright: #25d3ee;
  --amber: #f0a92e;
  --danger: #e25563;

  /* --- Surfaces (light) --- */
  --bg: #eef3fc;
  --bg-2: #e4ecfb;
  --card: #ffffff;
  --card-2: #f6f9ff;
  --line: #e0e7f5;
  --line-strong: #cfd9ee;

  /* --- Text --- */
  --ink: #14213e;           /* тёмно-синий заголовочный */
  --ink-2: #3a4a6b;
  --muted: #6b7896;
  --muted-2: #93a0bb;

  /* --- Effects --- */
  --grad: linear-gradient(120deg, var(--mint) 0%, var(--cyan) 100%);
  --grad-soft: linear-gradient(120deg, #d7f7ec 0%, #d6f1fb 100%);
  --shadow-sm: 0 2px 8px rgba(20, 33, 62, 0.06);
  --shadow: 0 12px 34px rgba(20, 33, 62, 0.10);
  --shadow-lg: 0 30px 70px rgba(20, 33, 62, 0.16);
  --ring: 0 0 0 4px rgba(24, 201, 144, 0.18);

  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 24px;

  --maxw: 1180px;
  --nav-h: 72px;

  --font: "Manrope", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont,
    "Roboto", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* soft page-wide background glows */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(620px 520px at 12% -4%, rgba(24, 201, 144, 0.16), transparent 60%),
    radial-gradient(680px 560px at 96% 4%, rgba(0, 184, 212, 0.16), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 8px; }

::selection { background: rgba(24, 201, 144, 0.25); color: var(--ink); }

/* ---------- layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 24px);
}

.section { padding: clamp(56px, 9vw, 96px) 0; }
.section--tight { padding: clamp(44px, 7vw, 64px) 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--mint);
  background: var(--mint-soft);
  border: 1px solid #c6f1e0;
  padding: 6px 12px;
  border-radius: 999px;
}

.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head .eyebrow { margin-bottom: 16px; }

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; color: var(--ink); }

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
}
.section-sub {
  margin-top: 14px;
  color: var(--muted);
  font-size: 17px;
}

.accent { color: var(--mint); }
.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  padding: 14px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease,
    background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--grad);
  color: #053524;
  box-shadow: 0 10px 24px rgba(24, 201, 144, 0.32);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(24, 201, 144, 0.42);
}

.btn--ghost {
  background: var(--card);
  color: var(--ink);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}
.btn--ghost:hover {
  transform: translateY(-2px);
  border-color: var(--mint);
  color: var(--ink);
}

.btn--discord {
  background: #5865f2;
  color: #fff;
  box-shadow: 0 10px 24px rgba(88, 101, 242, 0.32);
}
.btn--discord:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(88, 101, 242, 0.42); }

.btn--lg { padding: 17px 28px; font-size: 16px; }
.btn--block { width: 100%; }

/* =========================================================================
   NAVBAR
   ========================================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(245, 249, 255, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.nav__inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 24px);
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.5vw, 28px);
}
.logo {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: inline-flex;
  align-items: baseline;
}
.logo .dot { color: var(--mint); }

.nav__menu {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
}
.nav__menu a {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
  padding: 9px 14px;
  border-radius: 10px;
  transition: background 0.16s ease, color 0.16s ease;
}
.nav__menu a:hover { background: #fff; color: var(--ink); }
.nav__menu .btn { display: none; } /* mobile-only CTA inside menu */

.nav__actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.nav__burger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  background: var(--card);
  border-radius: 12px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav__burger span,
.nav__burger span::before,
.nav__burger span::after {
  content: "";
  display: block;
  width: 20px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.nav__burger span { position: relative; }
.nav__burger span::before { position: absolute; top: -6px; }
.nav__burger span::after { position: absolute; top: 6px; }
.nav.is-open .nav__burger span { background: transparent; }
.nav.is-open .nav__burger span::before { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav__burger span::after { transform: translateY(-6px) rotate(-45deg); }

/* =========================================================================
   HERO
   ========================================================================= */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 70px) 0 90px;
}
.hero__grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero__copy { min-width: 0; max-width: 760px; }
.hero__copy .hero__lead { margin-inline: auto; }
.hero__copy .hero__cta,
.hero__copy .hero__stats { justify-content: center; }
.hero__title {
  font-size: clamp(38px, 6vw, 66px);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.hero__title .line2 { display: block; }
.hero__lead {
  margin-top: 22px;
  font-size: 19px;
  color: var(--muted);
  max-width: 540px;
}
.hero__cta {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero__stats {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.stat-chip {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: var(--shadow-sm);
  min-width: 120px;
}
.stat-chip b { font-size: 24px; font-weight: 800; color: var(--ink); }
.stat-chip span { font-size: 13px; color: var(--muted); font-weight: 600; }

/* hero visual: speedometer gauge + launcher mock */
.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}
.gauge-card {
  position: relative;
  width: min(420px, 100%);
  background: linear-gradient(160deg, #0f1626 0%, #0a0f1c 100%);
  border-radius: var(--radius-lg);
  padding: 34px 34px 30px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.gauge-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(420px 200px at 50% -10%, rgba(0, 184, 212, 0.22), transparent 70%),
    radial-gradient(360px 220px at 10% 120%, rgba(24, 201, 144, 0.18), transparent 70%);
  pointer-events: none;
}
.gauge-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  margin-bottom: 6px;
}
.gauge-card__tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8ea0c2;
}
.gauge-card__online {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  color: #2fe0a6;
}
.gauge-card__online .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: #2fe0a6;
  box-shadow: 0 0 0 0 rgba(47, 224, 166, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(47, 224, 166, 0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(47, 224, 166, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 224, 166, 0); }
}
.gauge-wrap { position: relative; }
.gauge {
  position: relative;
  width: 100%;
  display: block;
  margin: 4px auto 0;
}
/* hide the fill arc until JS measures the exact path length (~408px) */
.gauge .g-fill { stroke-dasharray: 410; stroke-dashoffset: 410; }
.gauge__readout {
  position: absolute;
  left: 0; right: 0;
  bottom: 26%;
  text-align: center;
  pointer-events: none;
}
.gauge__value {
  font-size: 56px;
  font-weight: 800;
  color: #eef4ff;
  letter-spacing: -0.02em;
  line-height: 1;
}
.gauge__unit { font-size: 14px; color: #8ea0c2; font-weight: 700; letter-spacing: 0.18em; }
.gauge-card__row {
  position: relative;
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.gauge-meta {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 10px 12px;
}
.gauge-meta span { display: block; font-size: 11px; color: #8093b3; font-weight: 600; }
.gauge-meta b { font-size: 16px; color: #eef4ff; font-weight: 700; }
.gauge-meta .fuel-bar {
  margin-top: 7px;
  height: 6px; border-radius: 3px;
  background: rgba(255, 255, 255, 0.10);
  overflow: hidden;
}
.gauge-meta .fuel-bar i {
  display: block; height: 100%;
  width: 72%;
  background: linear-gradient(90deg, var(--mint), var(--mint-bright));
  border-radius: 3px;
}

.hero__float {
  position: absolute;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
}
.hero__float .ic {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--mint-soft);
  color: var(--mint);
}
.hero__float .ic svg { width: 18px; height: 18px; }
.hero__float--a { top: 6%; left: -6%; animation: float 6s ease-in-out infinite; }
.hero__float--b { bottom: 8%; right: -4%; animation: float 7s ease-in-out infinite 0.6s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* =========================================================================
   FEATURES
   ========================================================================= */
.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 22px;
}
.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.feature:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: #c8efe0;
}
.feature__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--grad-soft);
  color: var(--mint);
  margin-bottom: 18px;
}
.feature__icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 19px; font-weight: 800; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 15px; }

/* =========================================================================
   SERVERS
   ========================================================================= */
.servers__list { display: grid; gap: 14px; max-width: 860px; margin-inline: auto; }
.server {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.server:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.server__dot {
  width: 12px; height: 12px; border-radius: 50%;
  flex: 0 0 auto;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(24, 201, 144, 0.16);
}
.server__dot--off { background: var(--muted-2); box-shadow: 0 0 0 4px rgba(147, 160, 187, 0.16); }
.server__name { font-weight: 800; font-size: 17px; }
.server__addr { font-size: 13px; color: var(--muted); font-weight: 600; }
.server__meta { display: flex; flex-direction: column; }
.server__mode {
  font-size: 12px; font-weight: 700;
  color: var(--cyan);
  background: #e1f6fb;
  border: 1px solid #c4ecf4;
  padding: 4px 10px; border-radius: 999px;
}
.server__players {
  margin-left: auto;
  display: flex; flex-direction: column; align-items: flex-end;
}
.server__players b { font-size: 18px; font-weight: 800; }
.server__players b .slash { color: var(--muted-2); font-weight: 700; }
.server__players span { font-size: 12px; color: var(--muted); font-weight: 600; }
.server__bar {
  width: 90px; height: 6px; border-radius: 3px;
  background: var(--line); overflow: hidden; margin-top: 6px;
}
.server__bar i { display: block; height: 100%; background: var(--grad); border-radius: 3px; }
.server--off .server__players b,
.server--off .server__mode { color: var(--muted); background: #eef1f7; border-color: var(--line); }

.servers__note { text-align: center; margin-top: 26px; color: var(--muted); font-size: 14px; }

/* =========================================================================
   HOW TO START (steps)
   ========================================================================= */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: step;
  max-width: 920px;
  margin-inline: auto;
}
.step {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
}
.step__num {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  font-weight: 800; font-size: 18px;
  color: #053524;
  background: var(--grad);
  margin-bottom: 16px;
  box-shadow: 0 8px 18px rgba(24, 201, 144, 0.28);
}
.step h3 { font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 14px; }

/* =========================================================================
   DOWNLOAD
   ========================================================================= */
.download__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  max-width: 860px;
  margin-inline: auto;
}
.dl-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.dl-card::after {
  content: "";
  position: absolute;
  top: -60px; right: -60px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: var(--grad-soft);
  opacity: 0.7;
  filter: blur(6px);
}
.dl-card > * { position: relative; }
.dl-card__icon {
  width: 58px; height: 58px;
  border-radius: 16px;
  display: grid; place-items: center;
  background: var(--ink);
  color: #fff;
  margin-bottom: 18px;
}
.dl-card__icon svg { width: 30px; height: 30px; }
.dl-card h3 { font-size: 22px; font-weight: 800; }
.dl-card p { color: var(--muted); font-size: 15px; margin: 8px 0 22px; }
.dl-card__meta { display: flex; flex-wrap: wrap; gap: 12px 18px; margin-bottom: 22px; }
.dl-card__meta div { font-size: 13px; color: var(--muted); font-weight: 600; }
.dl-card__meta b { display: block; color: var(--ink); font-size: 15px; }

/* =========================================================================
   DISCORD / community banner
   ========================================================================= */
.community {
  position: relative;
  background: linear-gradient(135deg, #101a30 0%, #0c1322 100%);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 56px);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.community::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(520px 320px at 88% -20%, rgba(0, 184, 212, 0.28), transparent 60%),
    radial-gradient(420px 320px at 0% 130%, rgba(24, 201, 144, 0.24), transparent 60%);
}
.community__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.community__text { flex: 1; min-width: 280px; }
.community h2 { color: #fff; font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; }
.community p { color: #aab6d2; font-size: 17px; margin-top: 12px; max-width: 520px; }
.community__cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* =========================================================================
   FAQ
   ========================================================================= */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq__item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq__q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq__q .chev {
  flex: 0 0 auto;
  width: 26px; height: 26px;
  border-radius: 8px;
  display: grid; place-items: center;
  background: var(--mint-soft);
  color: var(--mint);
  transition: transform 0.25s ease;
}
.faq__item.is-open .faq__q .chev { transform: rotate(180deg); }
.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq__a p { padding: 0 24px 22px; color: var(--muted); font-size: 15px; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
  padding: 56px 0 32px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer__brand p { color: var(--muted); font-size: 14px; margin-top: 14px; max-width: 280px; }
.footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-2); margin-bottom: 16px; }
.footer ul { display: grid; gap: 10px; }
.footer a { color: var(--ink-2); font-size: 15px; font-weight: 600; transition: color 0.16s ease; }
.footer a:hover { color: var(--mint); }
.footer__bottom {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
}
.footer__bottom a { color: var(--muted); }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink-2);
  transition: transform 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}
.socials a:hover { transform: translateY(-2px); color: var(--mint); border-color: var(--mint); }
.socials svg { width: 18px; height: 18px; }

/* =========================================================================
   Reveal-on-scroll animation
   ========================================================================= */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */

/* very large screens: a touch more breathing room */
@media (min-width: 1500px) {
  :root { --maxw: 1280px; }
}

/* laptops / small desktops: tighten nav a touch before collapse */
@media (max-width: 1100px) {
  .nav__menu { gap: 2px; }
  .nav__menu a { padding: 9px 11px; }
}

/* tablets: stack hero, keep two-column grids */
@media (max-width: 980px) {
  .hero { padding: calc(var(--nav-h) + 48px) 0 70px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

/* small laptops / tablets: collapse nav into burger menu */
@media (max-width: 900px) {
  .nav__burger { display: flex; }
  .nav__actions .btn { display: none; }

  /* mobile dropdown menu */
  .nav__menu {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    margin-left: 0;
    max-height: calc(100dvh - var(--nav-h));
    overflow-y: auto;
    background: rgba(245, 249, 255, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 16px clamp(18px, 4vw, 24px) 22px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .nav.is-open .nav__menu { display: flex; }
  .nav__menu a {
    font-size: 17px; font-weight: 700; color: var(--ink-2);
    padding: 13px 12px; border-radius: 10px;
  }
  .nav__menu a:hover { background: #fff; }
  .nav__menu .btn { display: inline-flex; margin-top: 10px; }
}

/* phones: single-column download */
@media (max-width: 760px) {
  .download__grid { grid-template-columns: 1fr; }
}

/* small phones: single columns, wrap server cards */
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px 22px; }

  /* server card reflows: meta on top, mode + players below */
  .server { flex-wrap: wrap; gap: 10px 14px; padding: 16px 18px; }
  .server__meta { flex: 1 1 auto; min-width: 0; }
  .server__name { font-size: 16px; }
  .server__players { order: 3; align-items: flex-start; }
  .server__bar { width: 120px; }
  .server__mode { order: 2; margin-left: auto; }
}

/* tiny phones */
@media (max-width: 400px) {
  .hero__cta .btn { width: 100%; }
  .hero__stats { gap: 10px; }
  .hero__stats .stat-chip { flex: 1 1 100%; flex-direction: row; align-items: baseline; gap: 8px; }
  .footer__grid { grid-template-columns: 1fr; }
}

/* landscape phones: trim vertical space */
@media (max-height: 480px) and (orientation: landscape) {
  .hero { padding: calc(var(--nav-h) + 28px) 0 48px; }
  .section { padding: 48px 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
