:root {
  --bg: #0b100d;
  --bg-soft: #101713;
  --surface: #131c17;
  --surface-2: #172119;
  --text: #f3f7f1;
  --muted: #9ca9a0;
  --quiet: #68766c;
  --lime: #c9ee88;
  --lime-strong: #baf05f;
  --line: rgba(201, 238, 136, .16);
  --line-soft: rgba(255, 255, 255, .08);
  --max: 1440px;
  --ease: cubic-bezier(.22, .9, .28, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 78% 3%, rgba(113, 164, 89, .09), transparent 28rem),
    var(--bg);
  font-family: "MiSans", "HarmonyOS Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, a { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; color: #0b100d; background: var(--lime);
}
.skip-link:focus { top: 16px; }

.site-header {
  position: absolute; z-index: 20; top: 0; left: 50%;
  width: min(calc(100% - 64px), var(--max));
  height: 92px; transform: translateX(-50%);
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--line-soft);
}
.brand { display: flex; align-items: center; gap: 13px; font-weight: 720; letter-spacing: -.02em; }
.brand img { width: 34px; height: 34px; object-fit: contain; border-radius: 8px; }
.site-header nav { display: flex; align-items: center; gap: 34px; color: var(--muted); font-size: 14px; }
.site-header nav a { transition: color .3s var(--ease); }
.site-header nav a:hover, .site-header nav a:focus-visible { color: var(--text); }
.nav-download {
  appearance: none; border: 1px solid rgba(201, 238, 136, .34); background: transparent;
  padding: 12px 17px; border-radius: 9px; color: var(--lime); cursor: pointer;
}
.nav-download:hover { background: rgba(201, 238, 136, .08); }

.hero {
  position: relative; isolation: isolate; min-height: 100dvh; overflow: hidden;
  display: grid; grid-template-columns: minmax(500px, .95fr) minmax(0, 1.05fr);
  grid-template-rows: 1fr auto; gap: 42px 58px;
  align-items: center; width: min(calc(100% - 64px), var(--max));
  margin: 0 auto; padding: 148px 0 48px;
}
.hero::before {
  content: ""; position: absolute; z-index: -3; inset: 0;
  background: linear-gradient(115deg, transparent 0 47%, rgba(201, 238, 136, .045) 47.2%, transparent 47.5%);
}
.hero-ambient {
  position: absolute; z-index: -2; width: 720px; height: 720px; right: -260px; top: -130px;
  border: 1px solid rgba(201, 238, 136, .12); border-radius: 50%;
  box-shadow: 0 0 0 110px rgba(201, 238, 136, .014), 0 0 0 240px rgba(201, 238, 136, .01);
}
.eyebrow { margin: 0 0 24px; color: var(--lime); font: 600 11px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .24em; }
.eyebrow span { display: inline-block; width: 30px; height: 2px; margin: 0 13px 3px 0; background: var(--lime); }
.hero h1, .section h2 {
  margin: 0; font-weight: 780; letter-spacing: -.065em; line-height: .99; text-wrap: balance;
}
.hero h1 { max-width: 660px; font-size: clamp(46px, 4vw, 64px); }
.hero h1 span, .section h2 em { color: var(--lime); font-style: normal; }
.hero-lead { max-width: 540px; margin: 30px 0 0; color: #b4beb6; font-size: 18px; line-height: 1.8; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 28px; margin-top: 38px; }
.primary-action {
  min-height: 58px; display: inline-flex; align-items: center; justify-content: center; gap: 17px;
  border: 0; border-radius: 10px; padding: 0 25px; color: #11170e; background: var(--lime);
  font-weight: 760; cursor: pointer; box-shadow: 0 16px 46px rgba(135, 174, 85, .12);
  transition: transform .35s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease);
}
.primary-action:hover { transform: translateY(-3px); background: #d7ff97; box-shadow: 0 20px 54px rgba(154, 201, 91, .18); }
.primary-action:active { transform: scale(.98); }
.text-action { color: var(--text); padding: 14px 0; border-bottom: 1px solid var(--line); }
.windows-mark { width: 20px; height: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.windows-mark i { background: currentColor; }
.release-line { display: flex; flex-wrap: wrap; gap: 0; margin: 28px 0 0; color: var(--quiet); font-size: 12px; }
.release-line div { display: flex; gap: 8px; padding-right: 17px; margin-right: 17px; border-right: 1px solid var(--line-soft); }
.release-line div:last-child { border-right: 0; }
.release-line dt { margin: 0; }
.release-line dd { margin: 0; color: #b2bdb4; font-variant-numeric: tabular-nums; }

.hero-product { position: relative; min-width: 0; }
.product-glow {
  position: absolute; inset: 10% 3% -4% 12%; z-index: -1;
  background: radial-gradient(ellipse, rgba(184, 233, 114, .17), transparent 62%); filter: blur(32px);
}
.product-frame {
  position: relative; margin: 0; overflow: hidden; border: 1px solid rgba(201, 238, 136, .2); border-radius: 15px;
  background: #111821; box-shadow: 0 36px 90px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 255, 255, .035);
}
.product-frame img { width: 100%; aspect-ratio: 1080 / 760; object-fit: cover; object-position: center; }
.product-caption { position: absolute; left: 14px; bottom: 14px; display: flex; align-items: center; gap: 10px; padding: 9px 12px; color: #dce5de; background: rgba(7, 12, 9, .84); border: 1px solid rgba(255,255,255,.09); backdrop-filter: blur(8px); }
.product-caption span { color: var(--lime); font: 650 10px ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .08em; }
.product-caption strong { font-size: 11px; font-weight: 620; }
.note-line { position: absolute; width: 74px; height: 28px; display: grid; place-items: center; border: 1px solid var(--lime); color: var(--lime); background: rgba(11, 16, 13, .86); font: 700 11px ui-monospace, monospace; }
.note-line::after { content: ""; position: absolute; width: 1px; height: 68px; top: 100%; background: linear-gradient(var(--lime), transparent); }
.note-line-one { left: 51%; top: 42%; animation: float-note 5.8s ease-in-out infinite; }
.note-line-two { left: 71%; top: 56%; animation: float-note 5.8s ease-in-out -2.1s infinite; }
@keyframes float-note { 0%,100% { transform: translateY(-5px); } 50% { transform: translateY(10px); } }
.hero-proof {
  grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-soft);
}
.hero-proof div { display: flex; align-items: baseline; gap: 14px; padding: 24px 0; border-right: 1px solid var(--line-soft); }
.hero-proof div:not(:first-child) { padding-left: 34px; }
.hero-proof div:last-child { border-right: 0; }
.hero-proof strong { color: var(--lime); font: 650 28px ui-monospace, SFMono-Regular, Consolas, monospace; }
.hero-proof span { color: var(--muted); font-size: 13px; }

.section { width: min(calc(100% - 64px), var(--max)); margin: 0 auto; padding: 138px 0; border-top: 1px solid var(--line-soft); }
.section h2 { font-size: clamp(48px, 6vw, 88px); }
.section-intro { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: end; margin-bottom: 78px; }
.section-intro .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
.section-intro > p:last-child { max-width: 400px; margin: 0 0 10px; color: var(--muted); line-height: 1.8; }
.workflow-grid { display: grid; grid-template-columns: .55fr 1.45fr; gap: 64px; align-items: center; }
.workflow-steps { list-style: none; margin: 0; padding: 0; }
.workflow-steps li {
  display: grid; grid-template-columns: 68px 1fr; gap: 22px; padding: 27px 0;
  border-top: 1px solid var(--line-soft); cursor: pointer; outline: none;
  opacity: .52; transition: opacity .35s var(--ease), padding-left .35s var(--ease);
}
.workflow-steps li:last-child { border-bottom: 1px solid var(--line-soft); }
.workflow-steps li:hover, .workflow-steps li:focus-visible, .workflow-steps li.is-active { opacity: 1; padding-left: 8px; }
.workflow-steps li.is-active { border-top-color: var(--lime); }
.step-number { color: var(--lime); font: 500 14px ui-monospace, monospace; letter-spacing: .08em; }
.workflow-steps h3 { margin: -5px 0 9px; font-size: 26px; letter-spacing: -.03em; }
.workflow-steps p { margin: 0; color: var(--muted); line-height: 1.7; }
.workflow-stage { position: relative; padding: 28px; }
.workflow-stage::before { content: ""; position: absolute; inset: 0; border: 1px solid var(--line); transform: skewY(-1deg); }
.workflow-frame { position: relative; z-index: 1; border-radius: 11px; }
.workflow-frame img { aspect-ratio: 1080 / 760; }
.stage-callout { position: absolute; z-index: 3; display: flex; align-items: center; gap: 8px; color: var(--lime); font: 650 11px ui-monospace, monospace; opacity: .2; transition: opacity .35s var(--ease), transform .35s var(--ease); }
.stage-callout i { width: 9px; height: 9px; border: 2px solid var(--lime); border-radius: 50%; background: var(--bg); box-shadow: 0 0 0 5px rgba(201,238,136,.08); }
.stage-callout.is-active { opacity: 1; transform: translateY(-4px); }
.callout-song { left: 13%; top: 12%; }
.callout-controls { left: 22%; top: 31%; }
.callout-track { right: 10%; bottom: 17%; }

.skins { overflow: hidden; }
.skins-heading { display: grid; grid-template-columns: 1.4fr .6fr; gap: 80px; align-items: end; margin-bottom: 62px; }
.skins-heading > p { margin: 0 0 10px; color: var(--muted); line-height: 1.85; max-width: 450px; }
.skin-viewer { display: grid; grid-template-columns: 1.55fr .45fr; gap: 50px; align-items: center; }
.skin-main { position: relative; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #0d1315; }
.skin-main img { width: 100%; aspect-ratio: 1.39; object-fit: cover; transition: opacity .22s var(--ease), transform .55s var(--ease); }
.skin-main.is-changing img { opacity: .15; transform: scale(1.012); }
.skin-main figcaption { position: absolute; left: 18px; right: 18px; bottom: 16px; display: flex; justify-content: space-between; align-items: center; padding: 11px 14px; background: rgba(8, 13, 10, .82); border: 1px solid rgba(255,255,255,.08); }
.skin-main figcaption span { color: var(--lime); font: 600 11px ui-monospace, monospace; }
.skin-main figcaption strong { font-size: 13px; }
.skin-copy { padding-left: 10px; }
.skin-kicker { color: var(--lime); font: 600 11px ui-monospace, monospace; letter-spacing: .18em; }
.skin-copy h3 { margin: 18px 0 18px; font-size: 35px; letter-spacing: -.04em; }
.skin-copy p { margin: 0; color: var(--muted); line-height: 1.8; }
.skin-copy ul { list-style: none; margin: 30px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line-soft); color: #c6cec8; }
.skin-copy li { margin: 12px 0; }
.skin-copy li::before { content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 12px 2px 0; background: var(--lime); }
.skin-tabs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 28px; }
.skin-tabs button { appearance: none; min-width: 0; padding: 0 0 12px; border: 0; border-bottom: 2px solid transparent; text-align: left; color: var(--muted); background: transparent; cursor: pointer; transition: color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease); }
.skin-tabs button:hover { color: var(--text); transform: translateY(-3px); }
.skin-tabs button.is-active { color: var(--text); border-bottom-color: var(--lime); }
.skin-tabs img { width: 100%; aspect-ratio: 1.55; object-fit: cover; margin-bottom: 11px; border: 1px solid var(--line-soft); filter: saturate(.76) brightness(.8); }
.skin-tabs button.is-active img { filter: none; }
.skin-tabs span { font-size: 12px; }

.download { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; min-height: 760px; }
.download::after { content: ""; position: absolute; z-index: -1; inset: 14% -20%; background: radial-gradient(circle at 75% 50%, rgba(163, 213, 96, .11), transparent 31%); }
.download-copy > p:not(.eyebrow) { max-width: 480px; color: var(--muted); line-height: 1.8; }
.download-final { min-width: 340px; margin-top: 25px; }
.download-meta { display: flex; flex-wrap: wrap; gap: 12px 0; margin-top: 28px; color: var(--muted); font: 500 12px ui-monospace, monospace; }
.download-meta span { padding: 0 14px; border-right: 1px solid var(--line-soft); }
.download-meta span:first-child { padding-left: 0; }
.download-meta span:last-child { border: 0; }
.checksum { appearance: none; margin-top: 22px; padding: 0 0 5px; border: 0; border-bottom: 1px solid var(--line); color: var(--lime); background: transparent; cursor: pointer; }
.download-visual { position: relative; overflow: hidden; border-left: 1px solid var(--line); }
.download-visual img { width: 118%; max-width: none; aspect-ratio: 1.25; object-fit: cover; object-position: center; margin-left: 2%; filter: brightness(.8) contrast(1.08); }
.download-orbit { position: absolute; left: -28%; bottom: -36%; width: 72%; aspect-ratio: 1; border: 1px solid var(--lime); border-radius: 50%; box-shadow: 0 0 0 80px rgba(201,238,136,.018); }

.site-footer { width: min(calc(100% - 64px), var(--max)); margin: 0 auto; padding: 32px 0 46px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line-soft); color: var(--muted); }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 28px; height: 28px; border-radius: 7px; }
.footer-brand strong { color: var(--text); }
.footer-brand span { padding-left: 12px; border-left: 1px solid var(--line-soft); }
.footer-links { display: flex; gap: 22px; font-size: 13px; }
.footer-links a:hover { color: var(--lime); }

.toast { position: fixed; z-index: 50; left: 50%; bottom: 28px; transform: translate(-50%, 30px); min-width: min(420px, calc(100% - 32px)); padding: 14px 18px; border: 1px solid var(--line); border-radius: 9px; color: var(--text); background: rgba(17, 25, 20, .96); box-shadow: 0 18px 50px rgba(0,0,0,.35); opacity: 0; pointer-events: none; transition: opacity .3s var(--ease), transform .3s var(--ease); text-align: center; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }

@media (max-width: 1120px) {
  .hero { grid-template-columns: minmax(430px, .9fr) minmax(0, 1.1fr); gap: 42px 26px; }
  .hero h1 { font-size: 45px; }
  .workflow-grid { grid-template-columns: .65fr 1.35fr; gap: 32px; }
  .skin-viewer { grid-template-columns: 1.35fr .65fr; }
  .skin-tabs { gap: 10px; }
}

@media (max-width: 840px) {
  .site-header { width: calc(100% - 36px); height: 72px; }
  .site-header nav a { display: none; }
  .hero { width: calc(100% - 36px); grid-template-columns: 1fr; grid-template-rows: auto; padding-top: 118px; min-height: auto; }
  .hero-copy { order: 1; }
  .hero-product { order: 2; }
  .hero-proof { order: 3; }
  .hero h1 { font-size: clamp(43px, 11vw, 70px); }
  .hero-proof { grid-template-columns: 1fr; }
  .hero-proof div, .hero-proof div:not(:first-child) { padding: 16px 0; border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .section { width: calc(100% - 36px); padding: 94px 0; }
  .section-intro, .skins-heading, .skin-viewer, .download { grid-template-columns: 1fr; gap: 38px; }
  .workflow-grid { grid-template-columns: 1fr; }
  .workflow-stage { padding: 12px; }
  .skin-tabs { grid-template-columns: repeat(3, 1fr); }
  .download { min-height: 0; }
  .download-visual { border-left: 0; }
  .site-footer { width: calc(100% - 36px); align-items: flex-start; gap: 26px; flex-direction: column; }
}

@media (max-width: 540px) {
  .brand span { font-size: 14px; }
  .nav-download { padding: 9px 11px; font-size: 12px; }
  .hero { gap: 30px; }
  .hero h1 { font-size: 43px; line-height: 1.05; }
  .hero-lead { font-size: 16px; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 8px; }
  .primary-action { width: 100%; }
  .text-action { text-align: center; }
  .note-line { display: none; }
  .section h2 { font-size: 45px; }
  .section-intro { margin-bottom: 48px; }
  .workflow-steps li { grid-template-columns: 48px 1fr; }
  .stage-callout { display: none; }
  .skin-tabs { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; }
  .skin-tabs button { min-width: 145px; scroll-snap-align: start; }
  .skin-viewer { gap: 24px; }
  .download-final { min-width: 0; }
  .footer-brand { flex-wrap: wrap; }
  .footer-brand span { width: 100%; padding: 0; border: 0; }
  .footer-links { flex-wrap: wrap; gap: 14px 20px; }
}

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

/* Keep the three gun-code destinations available on narrow screens. */
.site-header nav a { white-space: nowrap; }
@media (min-width: 841px) and (max-width: 1120px) {
  .site-header nav { gap: 16px; font-size: 13px; }
}
@media (max-width: 840px) {
  .site-header { height: auto; min-height: 72px; padding: 16px 0; flex-wrap: wrap; gap: 14px; }
  .site-header nav { width: 100%; flex-wrap: wrap; gap: 10px 18px; font-size: 13px; }
  .site-header nav a.gun-code-link { display: inline-flex; align-items: center; min-height: 36px; }
  .site-header nav a.nav-download { display: inline-flex; align-items: center; }
  .hero { padding-top: 218px; }
}

/* Official membership entry; retain the three game-mode links on narrow screens. */
.site-header nav { gap: 22px; }
.site-header nav .membership-link { color: var(--lime); }
@media (min-width: 841px) and (max-width: 1200px) {
  .site-header { height: auto; min-height: 80px; padding: 18px 0; flex-wrap: wrap; gap: 16px; }
  .site-header nav { flex-wrap: wrap; gap: 12px 20px; }
  .hero { padding-top: 190px; }
}
@media (max-width: 840px) {
  .site-header nav a.membership-link { display: inline-flex; align-items: center; min-height: 36px; }
  .hero { padding-top: 250px; }
}
