@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=VT323&display=swap');

:root {
  --violet: #6514ff;
  --magenta: #bf00ff;
  --ink: #1c1726;
  --sky: #00d5ff;
  --acid: #c9ff2e;
  --paper: #f3efff;
  --line: rgba(243, 239, 255, .18);
  --glass: rgba(243, 239, 255, .07);
  --pix: 'Press Start 2P', ui-monospace, 'Courier New', monospace;
  --term: 'VT323', ui-monospace, 'Courier New', monospace;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font: 400 17px/1.85 var(--sans);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: -40px;
  z-index: 0;
  pointer-events: none;
  opacity: .65;
  background: radial-gradient(circle at 1px 1px, rgba(191, 0, 255, .3) 1px, transparent 0) 0 0 / 20px 20px;
  animation: drift 16s linear infinite;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(70rem 40rem at 92% -12%, rgba(101, 20, 255, .42), transparent 65%),
    radial-gradient(50rem 32rem at -5% 108%, rgba(191, 0, 255, .3), transparent 70%);
}

@keyframes drift {
  to {
    background-position: 20px 20px;
  }
}

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

.masthead {
  position: relative;
  z-index: 3;
  background: rgba(28, 23, 38, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--violet);
}

.brandrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  text-decoration: none;
  color: var(--paper);
}

.bm-txt {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--violet), var(--magenta));
  border: 2px solid rgba(255, 255, 255, .3);
  color: #fff;
  font: 400 13px/1 var(--pix);
}

.bm-img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  display: block;
  border: 2px solid rgba(255, 255, 255, .3);
}

.brandname {
  font: 400 15px/1.3 var(--pix);
  letter-spacing: .05em;
}

.contact {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 2px solid var(--magenta);
  background: rgba(191, 0, 255, .16);
  color: var(--paper);
  text-decoration: none;
  font-size: 16px;
  transition: background .24s ease, color .24s ease, transform .24s ease;
}

.contact:hover {
  background: var(--magenta);
  color: #120a1e;
  transform: translateY(-2px);
}

.menubar {
  border-top: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(101, 20, 255, .26), rgba(191, 0, 255, .12));
}

.pills {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 20px 12px;
}

.pills ul {
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: thin;
}

.pills li {
  flex: 0 0 auto;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #e9e1ff;
  text-decoration: none;
  font-size: 16px;
  white-space: nowrap;
  transition: background .24s ease, color .24s ease, border-color .24s ease, transform .24s ease;
}

.pill:hover {
  background: rgba(0, 213, 255, .2);
  border-color: var(--sky);
  color: #fff;
  transform: translateY(-2px);
}

.pills li:first-child .pill {
  background: var(--violet);
  border-color: var(--violet);
  color: #fff;
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 70vh;
  padding: 56px 32px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, .24);
  background: linear-gradient(125deg, #6514ff, #bf00ff 58%, #2a1240);
  box-shadow: 16px 16px 0 rgba(191, 0, 255, .22);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .5;
  background: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .35) 1px, transparent 0) 0 0 / 20px 20px;
  animation: drift 11s linear infinite;
}

.hero-art {
  position: relative;
  z-index: 1;
  flex: 0 0 140px;
  height: 140px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, .34);
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.hero-art .sq {
  position: absolute;
  border: 2px solid rgba(255, 255, 255, .55);
}

.sq1 {
  width: 34px;
  height: 34px;
  top: -12px;
  right: -12px;
  background: rgba(201, 255, 46, .4);
}

.sq2 {
  width: 22px;
  height: 22px;
  bottom: -10px;
  left: -10px;
  background: rgba(0, 213, 255, .45);
}

.hero-img {
  position: relative;
  z-index: 1;
  width: 84px;
  height: 84px;
  object-fit: contain;
}

.hero-copy {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 640px;
  margin-left: auto;
  text-align: right;
}

.hero-tag {
  display: block;
  margin: 0 0 16px;
  font: 400 15px/1.6 var(--term);
  letter-spacing: .3em;
  color: var(--acid);
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 18px;
  font: 400 clamp(26px, 4.4vw, 46px)/1.4 var(--pix);
  letter-spacing: .01em;
  color: #fff;
  text-shadow: 3px 3px 0 rgba(28, 23, 38, .55);
}

.lede {
  margin: 0;
  font-size: 17px;
  line-height: 1.8;
  color: #f2ecff;
}

.cta {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-top: 26px;
  padding: 0 24px;
  border: 2px solid #151024;
  background: var(--acid);
  color: #151024;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 6px 6px 0 rgba(21, 16, 36, .62);
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}

.cta:hover {
  background: #fff;
  transform: translate(-2px, -2px);
  box-shadow: 9px 9px 0 rgba(21, 16, 36, .72);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 288px;
  gap: 48px;
  margin-top: 56px;
  align-items: start;
}

.prose {
  min-width: 0;
  font-size: 17px;
  overflow-wrap: break-word;
}

.prose article {
  scroll-margin-top: 120px;
}

.prose article + article {
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}

.prose h2 {
  margin: 0 0 18px;
  font: 400 clamp(19px, 2.4vw, 25px)/1.55 var(--pix);
  letter-spacing: .01em;
  color: #fff;
}

.prose h2::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 12px;
  vertical-align: middle;
  background: var(--magenta);
}

.prose h3 {
  margin: 32px 0 12px;
  font: 400 17px/1.6 var(--pix);
  color: #fff;
}

.prose small,
.rail small,
.colophon small {
  display: block;
  margin-bottom: 10px;
  font: 400 14px/1.6 var(--term);
  letter-spacing: .26em;
  color: var(--acid);
  text-transform: uppercase;
}

.prose p {
  margin: 0 0 1.1em;
}

.prose a {
  color: var(--sky);
  text-underline-offset: 3px;
}

.prose a:hover {
  color: var(--acid);
}

.prose ul,
.prose ol {
  margin: 0 0 1.2em;
  padding-left: 1.4em;
}

.prose li {
  margin: .4em 0;
}

.prose blockquote {
  margin: 0 0 1.2em;
  padding: 18px 22px;
  border-left: 5px solid var(--magenta);
  background: var(--glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.prose blockquote p:last-child {
  margin-bottom: 0;
}

.prose img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 2px solid var(--line);
  margin: 0 0 1.2em;
}

.prose table {
  width: 100%;
  margin: 0 0 1.2em;
  border-collapse: collapse;
  font-size: 16px;
}

.prose th,
.prose td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
  overflow-wrap: break-word;
}

.prose th {
  background: rgba(101, 20, 255, .22);
  color: #fff;
}

.prose strong {
  color: #fff;
}

.rail {
  position: relative;
  min-width: 0;
}

.panel {
  position: sticky;
  top: 24px;
  padding: 24px 20px;
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 10px 10px 0 rgba(101, 20, 255, .26);
}

.panel h2 {
  margin: 0 0 14px;
  font: 400 15px/1.5 var(--pix);
  color: #fff;
}

.toc {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 10px;
  border-left: 3px solid transparent;
  color: #ded4f5;
  text-decoration: none;
  font-size: 16px;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.toc a:hover,
.toc a.on {
  border-left-color: var(--magenta);
  background: rgba(191, 0, 255, .2);
  color: #fff;
}

.colophon {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 40px 48px;
  margin-top: 64px;
  padding: 52px max(20px, calc((100% - 1180px) / 2)) 28px;
  border-top: 2px solid var(--violet);
  background: linear-gradient(180deg, rgba(101, 20, 255, .18), rgba(28, 23, 38, .95));
}

.colophon article {
  min-width: 0;
}

.foot-brand .brand {
  margin-bottom: 14px;
}

.foot-brand p {
  margin: 0;
  max-width: 34em;
  font-size: 16px;
  line-height: 1.8;
  color: #cfc3e8;
}

.colophon h3 {
  margin: 0 0 12px;
  font: 400 14px/1.5 var(--pix);
  color: #fff;
}

.foot-links ul {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: #ded4f5;
  text-decoration: none;
  font-size: 16px;
  transition: color .2s ease;
}

.foot-links a:hover {
  color: var(--acid);
}

.foot-bar {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 16px;
  color: #a99fc0;
}

.foot-bar a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: #ded4f5;
  text-decoration: none;
  transition: color .2s ease;
}

.foot-bar a:hover {
  color: var(--acid);
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .rail {
    order: 2;
  }

  .panel {
    position: static;
  }

  .hero {
    flex-direction: column;
    align-items: flex-end;
    gap: 26px;
    min-height: 0;
    padding: 40px 22px 36px;
  }

  .hero-art {
    flex: 0 0 auto;
    align-self: flex-start;
    width: 96px;
    height: 96px;
  }

  .hero-copy {
    width: 100%;
    max-width: none;
  }

  .colophon {
    grid-template-columns: minmax(0, 1fr);
    padding: 44px 20px 24px;
  }

  .foot-bar {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .wrap {
    padding: 20px 16px 48px;
  }

  .brandname {
    font-size: 13px;
  }

  .pills {
    padding: 10px 16px 12px;
  }

  .pills ul {
    gap: 8px;
  }

  .hero {
    padding: 32px 18px 30px;
    box-shadow: 10px 10px 0 rgba(191, 0, 255, .22);
  }

  .hero-art {
    width: 84px;
    height: 84px;
  }

  .hero-img {
    width: 60px;
    height: 60px;
  }

  .prose {
    font-size: 16px;
  }

  .prose article {
    scroll-margin-top: 24px;
  }
}

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

  body::before,
  .hero::before {
    animation: none;
  }

  * {
    transition-duration: .01ms !important;
  }
}

button[aria-expanded]{min-width:44px;min-height:44px}
