:root {
  --bg-0: #01040b;
  --bg-1: #040a17;
  --bg-2: #08132a;
  --surface-0: rgba(8, 17, 34, 0.78);
  --surface-1: rgba(11, 23, 44, 0.88);
  --line: rgba(96, 198, 255, 0.32);
  --line-soft: rgba(96, 198, 255, 0.18);
  --text-0: #eff7ff;
  --text-1: #c7dbf5;
  --text-2: #8da3c4;
  --cyan: #46ddff;
  --teal: #3bffc8;
  --blue: #5f7bff;
  --shadow: 0 18px 44px rgba(0, 8, 23, 0.62), 0 0 38px rgba(70, 221, 255, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  color: var(--text-0);
  font-family: "Rajdhani", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0.01em;
  background:
    radial-gradient(circle at 50% -10%, #13346a 0%, transparent 42%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 45%, var(--bg-0) 100%);
  overflow-x: hidden;
}

.aurora {
  position: fixed;
  border-radius: 50%;
  width: min(50vw, 720px);
  aspect-ratio: 1;
  filter: blur(70px);
  opacity: 0.2;
  pointer-events: none;
  z-index: -4;
  animation: auroraFloat 15s ease-in-out infinite;
}

.aurora.a1 {
  top: -190px;
  left: -120px;
  background: radial-gradient(circle, #2ef6ff 0%, #1a67ff 40%, transparent 74%);
}

.aurora.a2 {
  bottom: -200px;
  right: -130px;
  background: radial-gradient(circle, #3dffc8 0%, #2b89ff 42%, transparent 76%);
  animation-delay: -7s;
}

@keyframes auroraFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(0, -34px, 0) scale(1.08);
  }
}

.grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -3;
  background-image: linear-gradient(rgba(54, 127, 188, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(54, 127, 188, 0.12) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.88), transparent 78%);
}

.scanline {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.02) 1px,
    transparent 1px,
    transparent 4px
  );
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.05;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0.5px, transparent 0.6px);
  background-size: 3px 3px;
}

.cursor-glow {
  position: fixed;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(70, 221, 255, 0.22) 0%, transparent 65%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: screen;
}

.topbar {
  position: sticky;
  top: 12px;
  z-index: 30;
  width: min(1180px, calc(100vw - 36px));
  margin: 12px auto 0;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid var(--line-soft);
  background: rgba(7, 14, 28, 0.72);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: inset 0 0 0 1px rgba(59, 255, 200, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 248px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  border: 1px solid rgba(70, 221, 255, 0.44);
  background: linear-gradient(145deg, rgba(16, 34, 62, 0.9), rgba(8, 18, 36, 0.95));
  color: var(--cyan);
  display: grid;
  place-items: center;
  font-family: "Orbitron", "Rajdhani", sans-serif;
  font-size: 14px;
  font-weight: 800;
  box-shadow: inset 0 0 15px rgba(70, 221, 255, 0.15);
}

.brand-title,
.brand-sub {
  margin: 0;
}

.brand-title {
  font-size: 17px;
  font-weight: 700;
  color: #9ad8ff;
  text-shadow: 0 0 10px rgba(98, 224, 255, 0.42);
}

.brand-sub {
  color: var(--text-2);
  font-size: 12px;
}

.nav {
  flex: 1;
  display: flex;
  justify-content: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  min-width: 0;
}

.nav a {
  text-decoration: none;
  color: #ffd47d;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 6px 12px;
  border: 1px solid rgba(255, 197, 82, 0.6);
  border-radius: 999px;
  background: rgba(53, 35, 6, 0.45);
  box-shadow: inset 0 0 0 1px rgba(255, 212, 125, 0.08);
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease;
  white-space: nowrap;
}

.nav a:hover {
  color: #fff2c4;
  border-color: rgba(255, 214, 122, 0.96);
  background: rgba(76, 50, 10, 0.72);
  transform: translateY(-1px);
}

.nav a.nav-auth {
  margin-left: auto;
}

main {
  width: min(1180px, calc(100vw - 36px));
  margin: 26px auto 56px;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

#access {
  order: 1;
}

#projects {
  order: 2;
}

#ecosystem {
  order: 3;
}

#engine {
  order: 4;
}

section[id],
article[id] {
  scroll-margin-top: 104px;
}

.frame {
  position: relative;
}

.frame::before,
.frame::after {
  content: "";
  position: absolute;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(70, 221, 255, 0.35);
  pointer-events: none;
}

.frame::before {
  top: -7px;
  left: -7px;
  border-right: 0;
  border-bottom: 0;
}

.frame::after {
  right: -7px;
  bottom: -7px;
  border-left: 0;
  border-top: 0;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 16px;
}

.hero-main,
.hero-terminal {
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(155deg, rgba(9, 18, 36, 0.9), rgba(4, 10, 22, 0.92));
  box-shadow: var(--shadow);
}

.hero-main {
  padding: clamp(22px, 3.5vw, 42px);
}

.hero-terminal {
  padding: 16px;
}

.eyebrow {
  margin: 0;
  color: var(--teal);
  font-family: "Orbitron", sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.12;
}

.hero-title {
  margin-top: 12px;
  font-family: "Orbitron", "Rajdhani", "Noto Sans SC", sans-serif;
  font-size: clamp(34px, 6.4vw, 76px);
  position: relative;
  color: #8fd6ff;
  text-shadow: 0 0 22px rgba(70, 221, 255, 0.46), 0 0 44px rgba(70, 221, 255, 0.28);
}

.shine-text {
  position: relative;
  display: inline-block;
}

.shine-text::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  color: transparent;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0.98) 50%,
    rgba(255, 255, 255, 0) 60%,
    rgba(255, 255, 255, 0) 100%
  );
  background-size: 220% 100%;
  background-position: 220% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.46));
  animation: sweep-shine 2.1s linear infinite;
  mix-blend-mode: screen;
  will-change: background-position;
}

@keyframes sweep-shine {
  0% {
    background-position: 220% 0;
  }
  100% {
    background-position: -220% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shine-text::after {
    animation: none;
  }
}

.hero-copy {
  margin: 14px 0 0;
  max-width: 720px;
  color: var(--text-1);
  font-size: clamp(17px, 1.9vw, 22px);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.hero-tags {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span {
  border: 1px solid rgba(95, 123, 255, 0.34);
  border-radius: 999px;
  background: rgba(20, 31, 58, 0.72);
  padding: 5px 10px;
  color: #a9bbff;
  font-family: "Orbitron", sans-serif;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.hero-actions {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 11px 20px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  color: #001318;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  box-shadow: 0 12px 22px rgba(70, 221, 255, 0.32);
}

.btn.ghost {
  color: var(--text-0);
  border: 1px solid rgba(95, 123, 255, 0.42);
  background: rgba(19, 32, 57, 0.72);
}

.hero-stats {
  margin: 24px 0 0;
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.hero-stats li {
  border: 1px solid rgba(96, 198, 255, 0.24);
  border-radius: 13px;
  background: rgba(14, 26, 48, 0.62);
  padding: 10px 11px;
}

.hero-stats strong {
  display: block;
  color: var(--cyan);
  font-family: "Orbitron", sans-serif;
  font-size: 20px;
}

.hero-stats span {
  color: var(--text-2);
  font-size: 13px;
}

.service-banner {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 197, 82, 0.34);
  border-radius: 12px;
  background: rgba(46, 29, 4, 0.35);
  padding: 10px 12px;
}

.service-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffcb67;
  box-shadow: 0 0 14px rgba(255, 203, 103, 0.78);
}

.service-banner p {
  margin: 0;
  color: #ffe4b2;
}

.terminal-top {
  display: flex;
  gap: 6px;
}

.terminal-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(160, 181, 208, 0.5);
}

.terminal-top span:first-child {
  background: #ff5f57;
}

.terminal-top span:nth-child(2) {
  background: #ffbd2e;
}

.terminal-top span:nth-child(3) {
  background: #28c940;
}

.terminal-title,
.terminal-foot {
  margin: 10px 0 0;
  color: var(--text-2);
  font-family: "Orbitron", sans-serif;
  font-size: 11px;
  letter-spacing: 0.09em;
}

.terminal-lines {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  gap: 9px;
}

.terminal-lines li {
  border: 1px solid rgba(96, 198, 255, 0.18);
  border-radius: 10px;
  padding: 0;
  background: rgba(12, 25, 46, 0.72);
  color: var(--text-1);
  font-size: 14px;
  overflow: hidden;
  transition: border-color 180ms ease, background 180ms ease;
}

.terminal-lines li:hover {
  border-color: rgba(123, 223, 255, 0.66);
  background: rgba(14, 29, 52, 0.82);
}

.terminal-link {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  padding: 8px 9px;
  font: inherit;
  line-height: 1.45;
  cursor: pointer;
}

.terminal-link:focus-visible {
  outline: 2px solid rgba(123, 223, 255, 0.8);
  outline-offset: -2px;
}

.terminal-lines em {
  color: var(--teal);
  font-style: normal;
  margin-right: 6px;
}

.section {
  margin-top: 42px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(8, 16, 30, 0.9), rgba(4, 9, 20, 0.94));
  box-shadow: var(--shadow);
  padding: 18px;
}

.section-head {
  margin-bottom: 14px;
}

h2 {
  margin-top: 8px;
  font-family: "Orbitron", "Rajdhani", "Noto Sans SC", sans-serif;
  font-size: clamp(28px, 4.5vw, 52px);
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 13px;
}

.project-card {
  border: 1px solid var(--line-soft);
  border-radius: 15px;
  background: linear-gradient(155deg, rgba(13, 23, 42, 0.84), rgba(8, 15, 28, 0.9));
  padding: 16px;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 255, 200, 0.58);
  box-shadow: 0 14px 28px rgba(0, 9, 23, 0.64), 0 0 22px rgba(59, 255, 200, 0.14);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tag,
.code {
  margin: 0;
  border-radius: 999px;
  padding: 4px 10px;
  font-family: "Orbitron", sans-serif;
  font-size: 11px;
}

.tag {
  color: #001319;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
}

.code {
  color: var(--text-2);
  border: 1px solid rgba(95, 123, 255, 0.34);
  background: rgba(17, 31, 58, 0.7);
}

h3 {
  margin-top: 10px;
  font-family: "Orbitron", "Rajdhani", "Noto Sans SC", sans-serif;
  font-size: clamp(24px, 3vw, 35px);
}

.desc {
  margin: 10px 0;
  color: #e9f5ff;
  font-size: 17px;
  line-height: 1.72;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.project-card ul {
  margin: 0;
  padding-left: 16px;
  color: #d8e9ff;
  font-size: 15px;
}

.project-card li + li {
  margin-top: 5px;
}

.project-card li {
  line-height: 1.62;
  overflow-wrap: anywhere;
}

.xhz-shots {
  margin: 12px 0 14px;
}

.shots-title {
  margin: 0 0 8px;
  color: #eaf6ff;
  font-weight: 700;
  font-size: 16px;
}

.shots-hint {
  margin: -4px 0 8px;
  color: #f1f9ff;
  font-size: 14px;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.shot-grid-single {
  grid-template-columns: 1fr;
}

.shot-card {
  margin: 0;
  border: 2px solid rgba(130, 213, 255, 0.58);
  border-radius: 12px;
  background: rgba(8, 17, 34, 0.74);
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(8, 16, 30, 0.8), 0 10px 22px rgba(0, 10, 26, 0.46);
  transition: border-color 220ms ease, box-shadow 220ms ease;
}

.shot-link {
  display: block;
  padding: 8px;
  background: rgba(6, 13, 26, 0.9);
  overflow: hidden;
}

.shot-card img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: auto;
  border: 2px solid rgba(233, 245, 255, 0.88);
  border-radius: 8px;
  background: #09111f;
  box-shadow: 0 8px 16px rgba(0, 8, 20, 0.46);
  transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
  transform-origin: center center;
  cursor: zoom-in;
}

.shot-card:hover {
  border-color: rgba(123, 223, 255, 0.92);
  box-shadow: 0 0 0 1px rgba(123, 223, 255, 0.36), 0 14px 30px rgba(0, 13, 30, 0.56);
}

.shot-link:hover img,
.shot-link:focus-visible img {
  transform: scale(1.06);
  border-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 26px rgba(0, 10, 24, 0.58);
}

@media (pointer: coarse) {
  .shot-link:hover img,
  .shot-link:focus-visible img {
    transform: none;
  }
}

.shot-card figcaption {
  margin: 0;
  padding: 11px 12px;
  color: #f7fcff;
  font-size: 15px;
  line-height: 1.62;
}

.shot-card figcaption p {
  margin: 0;
}

.shot-card figcaption strong {
  display: block;
  margin-bottom: 5px;
  color: #ffffff;
  font-size: 17px;
}

.shot-features {
  margin: 9px 0 0;
  padding-left: 16px;
  color: #f2f9ff;
  font-size: 14px;
}

.shot-features li {
  line-height: 1.56;
}

.shot-features li + li {
  margin-top: 3px;
}

.miniapp-qr {
  margin: 12px 0;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(96, 198, 255, 0.28);
  border-radius: 12px;
  background: rgba(10, 20, 38, 0.62);
  padding: 10px;
}

.miniapp-qr img {
  width: 148px;
  height: auto;
  max-width: 100%;
  aspect-ratio: auto;
  border-radius: 8px;
  background: #ffffff;
  padding: 6px;
}

.miniapp-qr p {
  margin: 0;
  color: var(--text-1);
  font-size: 13px;
}

.keys-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 12px;
  align-items: start;
}

.keys-main ul {
  margin-top: 0;
}

.keys-layout .miniapp-qr {
  margin: 0;
  width: 100%;
  max-width: 220px;
  justify-self: end;
}

.access-notice {
  margin-bottom: 10px;
  border: 1px solid rgba(255, 197, 82, 0.55);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(64, 41, 8, 0.42);
  color: #ffe4a9;
  overflow-wrap: anywhere;
}

.download-hint {
  margin-bottom: 12px;
  border: 1px solid rgba(59, 255, 200, 0.33);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(7, 29, 26, 0.4);
  color: #b6ffe4;
  overflow-wrap: anywhere;
}

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

.download-card {
  border: 1px solid rgba(95, 123, 255, 0.32);
  border-radius: 15px;
  background: linear-gradient(150deg, rgba(18, 28, 50, 0.86), rgba(9, 17, 32, 0.9));
  padding: 16px;
  position: relative;
  overflow: hidden;
}

.download-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 20%, rgba(70, 221, 255, 0.14) 48%, transparent 76%);
  transform: translateX(-120%);
  transition: transform 600ms ease;
}

.download-card:hover::before {
  transform: translateX(120%);
}

.dl-name {
  margin: 0;
  font-family: "Orbitron", sans-serif;
  color: var(--cyan);
  font-size: 18px;
}

.dl-desc,
.dl-meta {
  margin: 6px 0 0;
}

.dl-desc {
  color: var(--text-1);
  overflow-wrap: anywhere;
}

.dl-meta {
  color: var(--text-2);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.dl-points {
  margin: 6px 0 0;
  color: #8ef6d8;
  font-size: 14px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.points-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}

.points-card {
  border: 1px solid rgba(96, 198, 255, 0.28);
  border-radius: 15px;
  background: linear-gradient(150deg, rgba(18, 28, 50, 0.86), rgba(9, 17, 32, 0.9));
  padding: 16px;
}

.points-title {
  margin: 0;
  color: #f2f9ff;
  font-family: "Orbitron", sans-serif;
  font-size: 18px;
}

.points-desc {
  margin: 8px 0 0;
  color: var(--text-1);
  font-size: 14px;
  line-height: 1.6;
}

.points-list {
  margin: 10px 0 0;
  padding-left: 16px;
  color: #d8e9ff;
  font-size: 14px;
}

.points-list li + li {
  margin-top: 5px;
}

.points-list li {
  line-height: 1.56;
  overflow-wrap: anywhere;
}

.points-total {
  margin: 10px 0 0;
  border: 1px solid rgba(255, 217, 143, 0.46);
  border-radius: 11px;
  background: rgba(57, 38, 8, 0.42);
  color: #ffe9bf;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
  padding: 9px 10px;
}

.dl-actions {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.dl-btn {
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  line-height: 1.32;
  white-space: normal;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.dl-btn:hover {
  transform: translateY(-1px);
}

.dl-btn.disabled {
  opacity: 0.64;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
}

.dl-btn.primary {
  color: #001218;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  box-shadow: 0 10px 20px rgba(70, 221, 255, 0.28);
}

.dl-btn.ghost {
  color: var(--text-0);
  border: 1px solid rgba(96, 198, 255, 0.3);
  background: rgba(14, 25, 45, 0.68);
}

.engine-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.engine-card {
  border: 1px solid var(--line-soft);
  border-radius: 13px;
  background: rgba(12, 22, 40, 0.72);
  padding: 13px;
}

h4 {
  font-family: "Orbitron", sans-serif;
  font-size: 15px;
}

.engine-card p {
  margin: 8px 0 0;
  color: var(--text-2);
}

.footer {
  width: min(1180px, calc(100vw - 36px));
  margin: 0 auto 24px;
  color: var(--text-2);
  font-size: 13px;
  position: relative;
  z-index: 3;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 560ms ease, transform 560ms ease;
  transition-delay: var(--delay, 0ms);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .topbar,
  main,
  .footer {
    width: min(1180px, calc(100vw - 22px));
  }

  .topbar {
    top: 8px;
    padding: 10px 12px;
    flex-wrap: wrap;
    gap: 10px;
  }

  .brand {
    min-width: auto;
  }

  .nav {
    order: 3;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    border-top: 1px solid rgba(96, 198, 255, 0.14);
    padding-top: 8px;
  }

  .nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 36px;
    padding: 6px 10px;
  }

  .nav a.nav-auth {
    margin-left: 0;
  }

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

@media (max-width: 920px) {
  .project-grid,
  .download-grid,
  .points-grid {
    grid-template-columns: 1fr;
  }

  .keys-layout {
    grid-template-columns: 1fr;
  }

  .keys-layout .miniapp-qr {
    justify-self: start;
  }

  .shot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .engine-grid,
  .hero-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .topbar,
  main,
  .footer {
    width: min(1180px, calc(100vw - 14px));
  }

  section[id],
  article[id] {
    scroll-margin-top: 120px;
  }

  .nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding-top: 10px;
  }

  .nav a {
    font-size: 13px;
    padding: 6px 9px;
  }

  .hero-main {
    padding: 18px;
  }

  .hero-title {
    font-size: clamp(28px, 11vw, 46px);
  }

  .hero-copy {
    font-size: 16px;
  }

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

  .btn {
    width: 100%;
  }

  .section {
    padding: 12px;
  }

  .project-card,
  .download-card,
  .points-card,
  .engine-card {
    padding: 14px;
    border-radius: 12px;
  }

  .dl-btn {
    min-height: 44px;
  }

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

  .shot-card figcaption {
    padding: 9px 10px;
  }

  .miniapp-qr {
    width: 100%;
    max-width: 220px;
  }

  .miniapp-qr img {
    width: min(58vw, 180px);
    height: auto;
  }

  h2 {
    font-size: clamp(24px, 8.4vw, 34px);
  }

  h3 {
    font-size: clamp(20px, 6.8vw, 30px);
  }

  .frame::before,
  .frame::after {
    display: none;
  }

  .cursor-glow {
    display: none;
  }
}
