/* Zma PS5 — zamatools.com */

:root {
  --bg: #070b1a;
  --bg-2: #0a1024;
  --surface: rgba(18, 26, 54, 0.7);
  --surface-solid: #0f1630;
  --border: rgba(120, 150, 255, 0.14);
  --border-strong: rgba(120, 150, 255, 0.28);
  --text: #e8ecff;
  --muted: #9aa5c9;
  --dim: #6b759b;
  --cyan: #3ce7ff;
  --blue: #3b82f6;
  --purple: #a855f7;
  --grad: linear-gradient(110deg, var(--cyan) 0%, var(--blue) 45%, var(--purple) 100%);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.7);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", var(--font);
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.88em;
  padding: 0.12em 0.45em;
  border-radius: 6px;
  background: rgba(60, 231, 255, 0.08);
  border: 1px solid rgba(60, 231, 255, 0.18);
  color: #bff6ff;
}

.container { width: min(1180px, 100% - 48px); margin-inline: auto; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 10px; background: var(--cyan); color: #001018; font-weight: 600;
}
.skip-link:focus { top: 16px; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }

.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Background */
.bg-glow { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; }
.orb-a { width: 1000px; height: 1000px; background: radial-gradient(closest-side, rgba(29, 78, 216, 0.4), transparent); top: -420px; left: -380px; }
.orb-b { width: 900px; height: 900px; background: radial-gradient(closest-side, rgba(124, 58, 237, 0.36), transparent); top: 10%; right: -420px; }
.orb-c { width: 800px; height: 800px; background: radial-gradient(closest-side, rgba(8, 145, 178, 0.22), transparent); bottom: -420px; left: 25%; }
.grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(120, 150, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 150, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
}
/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 22px; border-radius: 999px;
  font-weight: 600; font-size: 15px; line-height: 1;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn-large { padding: 16px 28px; font-size: 16px; }
.btn-small { padding: 9px 18px; font-size: 14px; }
.btn-primary {
  color: #fff;
  background: var(--grad);
  background-size: 160% 100%;
  box-shadow: 0 10px 30px -8px rgba(59, 130, 246, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:hover { transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 16px 40px -8px rgba(168, 85, 247, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.btn-ghost { color: var(--text); background: rgba(255, 255, 255, 0.04); border-color: var(--border-strong); }
.btn-ghost:hover { transform: translateY(-2px); border-color: rgba(60, 231, 255, 0.5); background: rgba(60, 231, 255, 0.07); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(7, 11, 26, 0.94); border-bottom-color: var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: 0.01em; }
.brand img { filter: drop-shadow(0 0 12px rgba(96, 120, 255, 0.55)); }
.brand b { font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a:not(.btn) { padding: 8px 14px; border-radius: 999px; color: var(--muted); font-size: 15px; font-weight: 500; transition: color 0.2s, background 0.2s; }
.nav-links a:not(.btn):hover, .nav-links a.active { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border-strong); background: rgba(255, 255, 255, 0.04); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-toggle span { width: 18px; height: 2px; border-radius: 2px; background: var(--text); transition: transform 0.25s, opacity 0.25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { padding: 56px 0 72px; }
.hero-inner { display: grid; grid-template-columns: 1.02fr 1fr; align-items: center; gap: 56px; }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: #c9f8ff;
  background: rgba(60, 231, 255, 0.08); border: 1px solid rgba(60, 231, 255, 0.25);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(60, 231, 255, 0.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(60, 231, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(60, 231, 255, 0); } }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1.1; margin: 0; }
h1 { font-size: clamp(42px, 6vw, 72px); margin: 22px 0 20px; }
h2 { font-size: clamp(32px, 4vw, 48px); }
h3 { font-size: 20px; letter-spacing: -0.01em; }
.lead { font-size: 18px; color: var(--muted); max-width: 540px; margin: 0 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stats { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 540px; }
.hero-stats li { padding: 14px 12px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); text-align: center; }
.hero-stats strong { display: block; font-family: var(--font-display); font-size: 22px; }
.hero-stats span { font-size: 12.5px; color: var(--dim); }

.hero-visual { position: relative; perspective: 1200px; }
.hero-frame {
  position: relative; border-radius: 24px; padding: 1px;
  background: linear-gradient(140deg, rgba(60, 231, 255, 0.7), rgba(59, 130, 246, 0.2) 40%, rgba(168, 85, 247, 0.7));
  box-shadow: 0 40px 120px -30px rgba(80, 100, 255, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.04);
  transform: rotateY(-8deg) rotateX(4deg);
  transform-style: preserve-3d;
  transition: transform 0.4s ease;
}
.hero-frame img { width: 100%; height: auto; border-radius: 23px; aspect-ratio: 16 / 9; object-fit: cover; }
.chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 14px;
  font-size: 14px; font-weight: 600; white-space: nowrap;
  background: rgba(12, 18, 40, 0.94); border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}
.chip-ico { font-size: 16px; }
.chip-a { top: -18px; left: -22px; }
.chip-b { bottom: 18%; right: -26px; animation-delay: -2s; }
.chip-c { bottom: -20px; left: 12%; animation-delay: -4s; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* Marquee */
.strip { border-block: 1px solid var(--border); background: rgba(10, 16, 36, 0.6); overflow: hidden; }
.marquee { mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; gap: 48px; padding: 18px 0; animation: scroll 40s linear infinite; will-change: transform; }
.marquee-track span { font-family: var(--font-display); font-weight: 600; color: var(--dim); font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 48px; }
.marquee-track span::after { content: "◆"; font-size: 9px; color: rgba(60, 231, 255, 0.5); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* Sections */
.section { padding: 112px 0; position: relative; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(14, 22, 48, 0.55) 15%, rgba(14, 22, 48, 0.55) 85%, transparent); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head p { color: var(--muted); font-size: 17px; margin: 16px 0 0; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cyan); margin-bottom: 14px; }
.muted { color: var(--muted); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { padding: 28px; position: relative; overflow: hidden; }
.feature::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0; transition: opacity 0.3s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(60, 231, 255, 0.12), transparent 45%);
}
.feature:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: 0 24px 50px -24px rgba(59, 130, 246, 0.5); }
.feature:hover::before { opacity: 1; }
.feature h3 { margin: 20px 0 10px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }
.feature-ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; }
.feature-ico svg { width: 26px; height: 26px; fill: currentColor; }
.ico-cyan { color: var(--cyan); background: rgba(60, 231, 255, 0.1); border: 1px solid rgba(60, 231, 255, 0.25); }
.ico-blue { color: #7aa8ff; background: rgba(59, 130, 246, 0.12); border: 1px solid rgba(59, 130, 246, 0.3); }
.ico-purple { color: #c99bff; background: rgba(168, 85, 247, 0.12); border: 1px solid rgba(168, 85, 247, 0.3); }

/* Launcher mockup */
.launcher-wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; }
.launcher-copy p { color: var(--muted); font-size: 17px; margin: 18px 0 24px; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 34px; color: #cdd5f5; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #001018; background: var(--grad);
}

.mock {
  border-radius: 20px; overflow: hidden;
  background: linear-gradient(180deg, #0c1330, #070b1a);
  border: 1px solid var(--border-strong);
  box-shadow: 0 50px 120px -40px rgba(59, 130, 246, 0.55);
}
.mock-bar { display: flex; align-items: center; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, 0.02); }
.mock-dots { display: flex; gap: 6px; }
.mock-dots i { width: 10px; height: 10px; border-radius: 50%; background: #253056; }
.mock-title { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.mock-tabs { margin-left: auto; display: flex; gap: 4px; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, 0.04); font-size: 12px; }
.mock-tabs > * { padding: 4px 12px; border-radius: 999px; color: var(--dim); font-weight: 600; }
.mock-tabs b { color: #001018; background: var(--cyan); }
.mock-body { padding: 18px; }
.mock-continue { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.mock-label { font-size: 12px; font-weight: 700; color: var(--cyan); padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(60, 231, 255, 0.35); background: rgba(60, 231, 255, 0.08); }
.mock-mini { width: 34px; height: 34px; border-radius: 9px; }
.m1 { background: linear-gradient(135deg, #f97316, #db2777); }
.m2 { background: linear-gradient(135deg, #22d3ee, #2563eb); }
.m3 { background: linear-gradient(135deg, #a3e635, #059669); }
.mock-rail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; align-items: end; }
.mock-tile { position: relative; aspect-ratio: 3 / 4; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.08); transition: transform 0.3s; }
.t1 { background: linear-gradient(160deg, #1e3a8a, #0f172a 70%), #1e3a8a; }
.t2 { background: linear-gradient(160deg, #7c3aed, #1e1b4b 75%); }
.t3 { background: linear-gradient(160deg, #0e7490, #0b1120 75%); }
.t4 { background: linear-gradient(160deg, #be123c, #1c0a16 75%); }
.mock-tile.active { transform: scale(1.08); border-color: var(--cyan); box-shadow: 0 0 0 2px rgba(60, 231, 255, 0.35), 0 18px 40px -10px rgba(60, 231, 255, 0.45); }
.mock-tile .fav { position: absolute; top: 8px; right: 8px; color: #fbbf24; font-size: 14px; }
.mock-tile .badge { position: absolute; top: 8px; left: 8px; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: rgba(34, 197, 94, 0.9); color: #032312; }
.mock-details { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; padding: 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); }
.mock-line { height: 10px; border-radius: 6px; background: #c7d2fe; opacity: 0.85; }
.mock-line.dim { background: #3a4672; margin-top: 8px; opacity: 1; }
.w60 { width: 180px; } .w40 { width: 120px; } .w30 { width: 140px; margin-top: 0 !important; }
.mock-pill { font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px; color: #c99bff; background: rgba(168, 85, 247, 0.14); border: 1px solid rgba(168, 85, 247, 0.35); }
.mock-dock { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-top: 1px solid var(--border); background: rgba(255, 255, 255, 0.02); }
.mock-play { font-size: 13px; font-weight: 700; color: #fff; padding: 9px 20px; border-radius: 999px; background: var(--grad); box-shadow: 0 8px 24px -8px rgba(59, 130, 246, 0.8); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: none; }
.step { padding: 32px 28px; position: relative; }
.step:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.step-num { font-family: var(--font-display); font-size: 48px; font-weight: 700; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: 0.9; }
.step h3 { margin: 18px 0 10px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* Controls */
.controls-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.controls-wrap h2 { margin-bottom: 16px; }
.shortcuts { margin-top: 32px; }
.shortcuts h3 { font-size: 16px; color: var(--muted); font-family: var(--font); font-weight: 600; margin-bottom: 14px; }
.shortcuts dl { margin: 0; display: grid; gap: 10px; }
.shortcuts dl > div { display: flex; align-items: center; gap: 16px; }
.shortcuts dt { min-width: 110px; }
.shortcuts dd { margin: 0; color: #cdd5f5; }
kbd {
  display: inline-block; min-width: 30px; padding: 4px 9px; text-align: center;
  font-family: var(--font); font-size: 13px; font-weight: 600; color: var(--text);
  border-radius: 8px; background: linear-gradient(180deg, #1a2448, #121a36);
  border: 1px solid var(--border-strong); box-shadow: 0 2px 0 #060a18;
}
.keymap { padding: 10px 24px; }
.key-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.key-row:last-child { border-bottom: 0; }
.key-row > span:last-child { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.pad { font-weight: 600; color: #cdd5f5; }

/* Requirements */
.req-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 920px; margin-inline: auto; }
.req { padding: 32px; position: relative; }
.req h3 { margin-bottom: 18px; }
.req ul { list-style: none; padding: 0; margin: 0; }
.req li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
.req li:last-child { border-bottom: 0; }
.req li span { color: var(--dim); }
.req li b { font-weight: 600; text-align: right; }
.req-best { border-color: rgba(168, 85, 247, 0.4); background: linear-gradient(180deg, rgba(88, 60, 200, 0.18), var(--surface)); }
.req-tag { position: absolute; top: 28px; right: 28px; font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; color: #fff; background: var(--grad); }

/* Download */
.download { position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr; gap: 48px; align-items: center; padding: 56px; border-color: var(--border-strong); }
.download-glow {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 90% at 0% 50%, rgba(60, 231, 255, 0.16), transparent 70%),
    radial-gradient(60% 90% at 100% 50%, rgba(168, 85, 247, 0.2), transparent 70%);
}
.download-logo { width: 180px; height: 180px; }
.download-copy p { color: var(--muted); font-size: 17px; margin: 16px 0 28px; }
.download-copy .fine { font-size: 13.5px; color: var(--dim); margin: 22px 0 0; }

/* FAQ */
.faq-wrap { max-width: 820px; }
.faq { display: grid; gap: 12px; }
.faq details { border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); transition: border-color 0.25s, background 0.25s; }
.faq details[open] { border-color: rgba(60, 231, 255, 0.35); background: rgba(20, 30, 62, 0.7); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; font-weight: 600; font-size: 16.5px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; translate: 0 -50%;
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-size: 18px; color: var(--cyan); border: 1px solid rgba(60, 231, 255, 0.35); transition: rotate 0.25s;
}
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { margin: 0; padding: 0 24px 22px; color: var(--muted); }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 64px 0 32px; background: rgba(5, 8, 20, 0.7); }
.footer-inner { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer-brand p { color: var(--dim); margin: 14px 0 0; max-width: 320px; }
.footer-links { display: flex; gap: 72px; }
.footer-links h4 { margin: 0 0 14px; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.footer-links a { display: block; color: var(--dim); padding: 4px 0; transition: color 0.2s; }
.footer-links a:hover { color: var(--cyan); }
.footer-legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 13px; color: var(--dim); }
.footer-legal p { margin: 6px 0; }
.footer-legal a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Simple page (legal, 404) */
.page { padding: 72px 0 112px; }
.page .container { max-width: 820px; }
.page h1 { font-size: clamp(36px, 5vw, 54px); }
.page h2 { font-size: 24px; margin: 40px 0 12px; }
.page p, .page li { color: var(--muted); }
.page a:not(.btn) { color: var(--cyan); }
.notfound { min-height: calc(100vh - var(--nav-h)); display: grid; place-items: center; text-align: center; padding: 48px 0; }
.notfound .code { font-family: var(--font-display); font-size: clamp(110px, 20vw, 200px); font-weight: 700; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.notfound p { color: var(--muted); font-size: 18px; margin: 12px 0 32px; }

/* Responsive */
@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner, .launcher-wrap, .controls-wrap { grid-template-columns: 1fr; gap: 56px; }
  .hero-copy { text-align: center; }
  .hero-copy .lead, .hero-stats { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { max-width: 640px; margin-inline: auto; width: 100%; }
  .download { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 48px 28px; }
  .download .hero-actions { justify-content: center; }
}

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 16px 24px 24px;
    background: rgba(7, 11, 26, 0.98);
    border-bottom: 1px solid var(--border);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
  }
  .nav-links.open { transform: none; opacity: 1; visibility: visible; }
  .nav-links a:not(.btn) { padding: 12px 14px; font-size: 16px; }
  .nav-cta { margin: 8px 0 0; }
  .nav { background: rgba(7, 11, 26, 0.94); }
  .steps, .req-grid { grid-template-columns: 1fr; }
  .section { padding: 84px 0; }
}

@media (max-width: 600px) {
  .container { width: min(1180px, 100% - 32px); }
  .feature-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 32px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .chip { font-size: 12px; padding: 8px 12px; }
  .chip-a { left: -6px; } .chip-b { right: -6px; }
  .hero-frame { transform: none; }
  .mock-rail { gap: 8px; }
  .w60 { width: 120px; } .w40 { width: 80px; } .w30 { width: 80px; }
  .footer-links { gap: 40px; }
  .btn-large { width: 100%; }
  .shortcuts dt { min-width: 96px; }
}

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