:root {
  --red: #ff0000;
  --pink: #ff006e;
  --ink: #1a1a2e;
  --night: #07070f;
  --cyan: #3ce8ff;
  --text: #eae6f7;
  --dim: #a8a1c6;
  --line: rgba(255, 0, 110, 0.3);
  --sans: "Lexend", "Source Sans 3", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  background-color: var(--night);
  background-image:
    radial-gradient(circle at 10% 4%, rgba(255, 0, 110, 0.22), transparent 46%),
    radial-gradient(circle at 92% 2%, rgba(255, 0, 0, 0.18), transparent 50%),
    linear-gradient(rgba(255, 0, 110, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 0, 110, 0.075) 1px, transparent 1px);
  background-size: auto, auto, 46px 46px, 46px 46px;
  background-attachment: fixed, fixed, scroll, scroll;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 3px);
  opacity: 0.75;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 69;
  pointer-events: none;
  background: radial-gradient(circle at 50% 40%, transparent 55%, rgba(4, 4, 10, 0.72) 100%);
}

img {
  max-width: 100%;
}

main {
  display: block;
}

div[id] {
  scroll-margin-top: 140px;
}

.skip {
  position: absolute;
  left: 0.8rem;
  top: -80px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.4rem 1rem;
  border-radius: 6px;
  background: var(--pink);
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  transition: top 0.2s ease;
}

.skip:focus {
  top: 0.7rem;
}

.mast {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(7, 7, 15, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255, 0, 110, 0.18), 0 14px 34px rgba(0, 0, 0, 0.6);
}

.mast-top,
.mast-nav {
  max-width: 1400px;
  margin: 0 auto;
  padding-left: clamp(0.9rem, 4vw, 2.6rem);
  padding-right: clamp(0.9rem, 4vw, 2.6rem);
}

.mast-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 0.6rem;
  padding-bottom: 0.35rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.06rem;
  letter-spacing: 0.02em;
}

.brand .mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--red), var(--pink));
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 0 0 18px rgba(255, 0, 110, 0.75), inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.brand .txt {
  text-shadow: 0 0 16px rgba(255, 0, 110, 0.6);
}

.brand:hover .txt {
  text-shadow: 0 0 22px rgba(255, 0, 110, 0.95);
}

.mast-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 0.65rem;
}

.nav-rail {
  flex: 1 1 auto;
  min-width: 0;
}

.nav-rail ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-rail a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 0, 110, 0.38);
  color: #dad4ee;
  font-size: 0.88rem;
  line-height: 1.25;
  text-decoration: none;
  background: rgba(26, 26, 46, 0.5);
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.nav-rail a:hover,
.nav-rail a:focus-visible {
  color: #fff;
  border-color: var(--pink);
  background: rgba(255, 0, 110, 0.18);
  box-shadow: 0 0 18px rgba(255, 0, 110, 0.5);
  outline: none;
}

.nav-rail a.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, rgba(255, 0, 0, 0.9), rgba(255, 0, 110, 0.9));
  box-shadow: 0 0 20px rgba(255, 0, 110, 0.6);
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, var(--red), var(--pink));
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 0 20px rgba(255, 0, 110, 0.55);
  transition: filter 0.18s ease, box-shadow 0.18s ease;
}

.cta:hover,
.cta:focus-visible {
  filter: brightness(1.14);
  box-shadow: 0 0 28px rgba(255, 0, 110, 0.85);
  outline: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(1.2rem, 4vw, 3.2rem);
  min-height: 100vh;
  min-height: 100svh;
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(1.4rem, 5vw, 3.4rem) clamp(0.9rem, 4vw, 2.6rem);
}

.hero-art {
  position: relative;
  margin: 0;
  order: -1;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(255, 0, 110, 0.45);
  border-radius: 4px;
  background: #0a0a17;
  box-shadow: 0 0 46px rgba(255, 0, 110, 0.28), inset 0 0 70px rgba(26, 26, 46, 0.95);
}

.hero-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  will-change: transform;
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background-image:
    linear-gradient(rgba(255, 0, 110, 0.32) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 0, 110, 0.32) 1px, transparent 1px),
    radial-gradient(circle at 50% 110%, rgba(255, 0, 110, 0.4), transparent 62%);
  background-size: 34px 34px, 34px 34px, auto;
  transform: perspective(420px) rotateX(48deg) scale(1.25);
  transform-origin: bottom center;
}

.hero-cap {
  position: absolute;
  left: 0;
  bottom: 0;
  max-width: 100%;
  padding: 0.4rem 0.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: #ffd9e6;
  background: rgba(7, 7, 15, 0.78);
  border-top: 1px solid rgba(255, 0, 110, 0.45);
  border-right: 1px solid rgba(255, 0, 110, 0.45);
  border-radius: 0 4px 0 0;
}

.hero-copy {
  text-align: right;
}

.hero-copy h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5.6vw, 4.1rem);
  line-height: 1.14;
  letter-spacing: -0.01em;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 26px rgba(255, 0, 110, 0.62), 0 0 3px rgba(255, 255, 255, 0.55);
}

.glitch {
  animation: glitch 7s steps(1, end) infinite;
}

@keyframes glitch {
  0%, 90%, 100% {
    text-shadow: 0 0 26px rgba(255, 0, 110, 0.62), 2px 0 0 rgba(255, 0, 0, 0.45), -2px 0 0 rgba(60, 232, 255, 0.35);
  }
  93% {
    text-shadow: -5px 0 0 rgba(255, 0, 0, 0.85), 5px 0 0 rgba(60, 232, 255, 0.7);
  }
  96% {
    text-shadow: 5px 0 0 rgba(255, 0, 0, 0.8), -5px 0 0 rgba(60, 232, 255, 0.65);
  }
}

.lead {
  max-width: 52ch;
  margin: 0 0 1.6rem auto;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--dim);
}

.hero-keys {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: flex-end;
}

.ghost {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1px dashed rgba(255, 255, 255, 0.38);
  color: #dad4ee;
  font-size: 0.9rem;
  text-decoration: none;
}

.ghost:hover,
.ghost:focus-visible {
  color: #fff;
  border-color: var(--pink);
  box-shadow: 0 0 18px rgba(255, 0, 110, 0.45);
  outline: none;
}

.body-grid {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  align-items: start;
  gap: clamp(1rem, 3vw, 2.6rem);
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4rem) clamp(0.9rem, 4vw, 2.6rem);
  border-top: 1px solid rgba(255, 0, 110, 0.22);
}

.rail {
  position: sticky;
  top: 132px;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(26, 26, 46, 0.88), rgba(10, 10, 22, 0.9));
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55);
}

.rail h2 {
  margin: 0 0 0.1rem;
  font-size: 0.92rem;
  letter-spacing: 0.1em;
  color: #fff;
  text-shadow: 0 0 14px rgba(255, 0, 110, 0.75);
}

.rail .subtitle {
  margin: 0 0 0.8rem;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: var(--dim);
}

.rail-list {
  display: grid;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0.3rem 0.55rem;
  border-left: 2px solid transparent;
  color: #cdc7e4;
  font-size: 0.9rem;
  line-height: 1.35;
  text-decoration: none;
}

.rail-list a:hover,
.rail-list a:focus-visible {
  color: #fff;
  border-left-color: var(--pink);
  background: rgba(255, 0, 110, 0.12);
  outline: none;
}

.rail-foot {
  margin: 0.9rem 0 0;
  padding-top: 0.7rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.16);
  font-size: 0.84rem;
}

.rail-foot a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--pink);
  text-decoration: none;
}

.prose {
  max-width: 74ch;
  font-size: 1.05rem;
  line-height: 1.78;
  color: #e2ddf2;
}

.prose > div {
  padding-block: clamp(1.4rem, 4vw, 2.4rem);
  border-top: 1px solid rgba(255, 0, 110, 0.16);
}

.prose > div:first-child {
  padding-top: 0;
  border-top: 0;
}

.prose h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.32rem, 3vw, 1.82rem);
  line-height: 1.32;
  color: #fff;
  text-shadow: 0 0 18px rgba(255, 0, 110, 0.5);
}

.prose h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.14rem;
  color: #fff;
}

.prose p {
  margin: 0 0 1rem;
}

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

.prose ul,
.prose ol {
  margin: 0 0 1rem;
  padding-left: 1.3rem;
}

.prose li {
  margin: 0.35rem 0;
}

.prose blockquote {
  margin: 1.2rem 0;
  padding: 0.8rem 1rem;
  border-left: 3px solid var(--pink);
  border-radius: 0 4px 4px 0;
  background: rgba(255, 0, 110, 0.09);
}

.prose figure,
.prose aside {
  margin: 1.2rem 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(26, 26, 46, 0.62);
  font-size: 0.98rem;
}

.prose figure img {
  border-radius: 4px;
}

.prose figcaption {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--dim);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.prose th,
.prose td {
  padding: 0.5rem 0.7rem;
  border: 1px solid rgba(255, 0, 110, 0.26);
  text-align: left;
}

.prose code {
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  background: rgba(255, 0, 110, 0.16);
  font-size: 0.92em;
}

.foot {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: clamp(1rem, 3vw, 2.6rem);
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.2rem) clamp(0.9rem, 4vw, 2.6rem) 1.2rem;
  border-top: 1px solid rgba(255, 0, 110, 0.38);
  background: linear-gradient(180deg, rgba(26, 26, 46, 0.92), rgba(6, 6, 13, 0.98));
}

.mega {
  margin: 0;
  font-size: clamp(1.9rem, 6vw, 3.9rem);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--pink);
  text-shadow: 0 0 26px rgba(255, 0, 110, 0.55), 2px 0 0 rgba(255, 0, 0, 0.35);
  overflow-wrap: anywhere;
}

.foot h2 {
  margin: 0 0 0.1rem;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: #fff;
}

.foot .subtitle {
  margin: 0 0 0.65rem;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: var(--dim);
}

.foot-nav ul {
  display: grid;
  gap: 0.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot-nav a,
.foot-note a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: #cdc7e4;
  font-size: 0.9rem;
  text-decoration: none;
}

.foot-note p {
  margin: 0;
}

.foot-note a {
  color: var(--pink);
}

.foot-nav a:hover,
.foot-nav a:focus-visible,
.foot-note a:hover,
.foot-note a:focus-visible {
  color: #fff;
  text-shadow: 0 0 14px rgba(255, 0, 110, 0.9);
  outline: none;
}

.foot-bar {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0.6rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  color: var(--dim);
  font-size: 0.84rem;
  text-align: center;
}

.foot-bar p {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding-top: 2rem;
  }

  .hero-art {
    aspect-ratio: 16 / 10;
  }

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

  .rail {
    position: static;
  }

  .rail-list {
    grid-template-columns: 1fr 1fr;
  }

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

  .foot-brand {
    grid-column: 1 / -1;
  }

  .mast-nav {
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 1rem;
    min-height: 0;
  }

  .hero-art {
    aspect-ratio: 16 / 9;
  }

  .hero-copy {
    text-align: left;
  }

  .lead {
    margin-left: 0;
  }

  .hero-keys {
    justify-content: flex-start;
  }

  .hero-copy h1 {
    font-size: clamp(1.75rem, 8.2vw, 2.6rem);
  }

  .rail-list {
    grid-template-columns: minmax(0, 1fr);
  }

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

  div[id] {
    scroll-margin-top: 190px;
  }
}

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

  .glitch {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-img {
    transform: none !important;
  }
}

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