@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --ink: #26171f;
  --pink: #ff0080;
  --magenta: #ff00ff;
  --text: #f7eaf1;
  --muted: #cdaec0;
  --line: rgba(255, 255, 255, 0.14);
  --r: 4px;
  --shell: 1140px;
  --head-h: 128px;
}

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

html {
  background: #120a0f;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "DM Sans", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.68;
  color: var(--text);
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ---------- aurora backdrop ---------- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.aurora__b {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(72px);
  mix-blend-mode: screen;
  opacity: 0.6;
  will-change: transform;
}

.aurora__b--one {
  width: 62vw;
  height: 62vw;
  top: -18vw;
  right: -14vw;
  background: radial-gradient(circle at 40% 40%, #ff00ff 0%, rgba(255, 0, 128, 0.5) 45%, transparent 70%);
  animation: drift 20s ease-in-out infinite alternate;
}

.aurora__b--two {
  width: 55vw;
  height: 55vw;
  bottom: -20vw;
  left: -16vw;
  background: radial-gradient(circle at 60% 40%, #ff0080 0%, rgba(255, 0, 255, 0.42) 50%, transparent 72%);
  animation: drift 26s ease-in-out infinite alternate-reverse;
}

.aurora__b--three {
  width: 40vw;
  height: 40vw;
  top: 38%;
  left: 34%;
  background: radial-gradient(circle at 50% 50%, rgba(255, 0, 255, 0.55) 0%, rgba(38, 23, 31, 0) 68%);
  opacity: 0.45;
  animation: drift 32s ease-in-out infinite alternate;
}

.aurora__grain {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    linear-gradient(180deg, rgba(18, 10, 15, 0.15), rgba(18, 10, 15, 0.85) 78%);
  background-size: 26px 26px, 100% 100%;
  opacity: 0.5;
}

@keyframes drift {
  0% {
    transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
    filter: blur(72px) hue-rotate(0deg);
  }
  100% {
    transform: translate3d(-4vw, 4vw, 0) scale(1.18) rotate(14deg);
    filter: blur(88px) hue-rotate(38deg);
  }
}

/* ---------- header ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: linear-gradient(180deg, rgba(18, 10, 15, 0.95), rgba(18, 10, 15, 0.72));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.topbar.is-stuck {
  box-shadow: 0 14px 36px -22px rgba(255, 0, 128, 0.9);
}

.topbar__row {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 12px 20px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-family: "Space Grotesk", "PingFang SC", system-ui, sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.02em;
  padding: 10px 2px;
  background: linear-gradient(96deg, #ffffff, #ffb3dd 42%, var(--magenta) 78%, var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.find {
  display: flex;
  align-items: stretch;
  gap: 6px;
}

.find__in {
  width: 148px;
  min-height: 42px;
  padding: 8px 12px;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  border-radius: var(--r);
}

.find__in::placeholder {
  color: var(--muted);
}

.find__btn {
  min-height: 42px;
  padding: 8px 16px;
  font: inherit;
  font-size: 16px;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(120deg, var(--pink), var(--magenta));
  border: 0;
  border-radius: var(--r);
  transition: transform 0.16s ease, filter 0.16s ease;
}

.find__btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.12);
}

.nav {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 20px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav__line {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0 0 8px;
}

.nav__a {
  display: block;
  padding: 11px 13px;
  font-size: 16px;
  line-height: 1.25;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: var(--r);
  white-space: nowrap;
  transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.nav__a:hover,
.nav__a.is-on {
  color: #fff;
  border-color: rgba(255, 0, 128, 0.6);
  background: linear-gradient(120deg, rgba(255, 0, 128, 0.22), rgba(255, 0, 255, 0.16));
}

/* ---------- layout ---------- */
main {
  display: block;
}

.sheet {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 20px 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 268px;
  gap: 12px 44px;
  align-items: start;
}

/* ---------- hero ---------- */
.hero {
  grid-column: 1 / -1;
  position: relative;
  min-height: 70vh;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 30px;
  padding: 34px 0 48px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 10px -12px 0;
  z-index: -1;
  border-radius: var(--r);
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px),
    linear-gradient(140deg, rgba(255, 0, 128, 0.12), rgba(38, 23, 31, 0));
  background-size: 22px 22px, 100% 100%;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent);
  mask-image: linear-gradient(180deg, #000 55%, transparent);
}

.hero__glyph {
  animation: float 9s ease-in-out infinite alternate;
}

.hero__glyph svg {
  display: block;
}

@keyframes float {
  0% {
    transform: translateY(0) rotate(-3deg);
  }
  100% {
    transform: translateY(-14px) rotate(3deg);
  }
}

.hero__copy {
  min-width: 0;
  text-align: right;
}

h1 {
  margin: 0 0 16px;
  font-family: "Space Grotesk", "PingFang SC", system-ui, sans-serif;
  font-size: clamp(30px, 5.4vw, 60px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  background: linear-gradient(104deg, #ffffff 6%, #ffb9e0 38%, var(--magenta) 70%, var(--pink) 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subtitle {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
}

.hero .subtitle {
  max-width: 42ch;
  margin-left: auto;
}

/* ---------- prose ---------- */
.prose {
  min-width: 0;
  max-width: 68ch;
}

.prose > article {
  position: relative;
  padding: 34px 0 30px;
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--head-h) + 14px);
}

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

.prose h2 {
  margin: 0 0 14px;
  font-family: "Space Grotesk", "PingFang SC", system-ui, sans-serif;
  font-size: clamp(22px, 2.9vw, 30px);
  font-weight: 600;
  line-height: 1.22;
  color: #fff;
  scroll-margin-top: calc(var(--head-h) + 14px);
}

.prose h2::before {
  content: "";
  display: block;
  width: 46px;
  height: 4px;
  margin-bottom: 12px;
  border-radius: var(--r);
  background: linear-gradient(90deg, var(--pink), var(--magenta));
}

.prose h3 {
  margin: 24px 0 8px;
  font-size: 19px;
  font-weight: 600;
  color: #ffd9ee;
}

.prose p {
  margin: 0 0 14px;
  color: #f1e4ec;
  overflow-wrap: anywhere;
}

.prose a {
  color: #ff8ccb;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose a:hover {
  color: #fff;
}

.prose ul,
.prose ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.prose li {
  margin-bottom: 8px;
}

.prose li::marker {
  color: var(--pink);
}

.prose strong {
  color: #fff;
}

.prose blockquote {
  margin: 20px 0;
  padding: 14px 18px;
  border-left: 4px solid var(--pink);
  border-radius: 0 var(--r) var(--r) 0;
  background: rgba(255, 0, 128, 0.1);
}

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

.prose figure {
  margin: 20px 0;
}

.prose img {
  display: block;
  height: auto;
  border-radius: var(--r);
}

.prose figcaption {
  margin-top: 8px;
  font-size: 16px;
  color: var(--muted);
}

.prose hr {
  margin: 24px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.prose table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 16px;
}

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

.prose th {
  background: rgba(255, 0, 255, 0.13);
  color: #fff;
}

.prose code {
  padding: 2px 6px;
  font-size: 15px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

/* ---------- aside rail ---------- */
.rail {
  position: sticky;
  top: calc(var(--head-h) + 10px);
  padding: 18px 16px 12px;
  border: 1px solid rgba(255, 0, 128, 0.28);
  border-radius: var(--r);
  background: linear-gradient(165deg, rgba(255, 0, 128, 0.14), rgba(38, 23, 31, 0.78));
  box-shadow: 0 22px 46px -34px rgba(255, 0, 128, 1);
}

.rail h2 {
  margin: 0 0 6px;
  font-family: "Space Grotesk", "PingFang SC", system-ui, sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}

.rail .subtitle {
  font-size: 16px;
  margin-bottom: 12px;
}

.rail__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rail__li {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.rail__li:first-child {
  border-top: 0;
}

.rail__li a {
  display: block;
  padding: 11px 8px;
  font-size: 16px;
  color: var(--muted);
  border-radius: var(--r);
  transition: color 0.16s ease, padding-left 0.16s ease, background 0.16s ease;
}

.rail__li a:hover {
  padding-left: 14px;
  color: #fff;
  background: rgba(255, 0, 255, 0.12);
}

/* ---------- footer ---------- */
.foot {
  margin-top: 44px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 0, 128, 0.08), rgba(18, 10, 15, 0.9));
}

.foot__grid {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 34px 20px 22px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 26px;
}

.foot__ttl {
  margin: 0 0 12px;
  font-family: "Space Grotesk", "PingFang SC", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
}

.foot__addr {
  font-style: normal;
}

.foot__addr strong {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
  color: #ffb9e0;
}

.foot__addr p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

.foot__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot__list a {
  display: block;
  padding: 8px 0;
  font-size: 16px;
  color: var(--muted);
  transition: color 0.16s ease, transform 0.16s ease;
}

.foot__list a:hover {
  color: #fff;
  transform: translateX(3px);
}

.sub {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sub__in {
  flex: 1 1 130px;
  min-height: 42px;
  padding: 8px 12px;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  border-radius: var(--r);
}

.sub__in::placeholder {
  color: var(--muted);
}

.sub__btn {
  min-height: 42px;
  padding: 8px 18px;
  font: inherit;
  font-size: 16px;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(120deg, var(--magenta), var(--pink));
  border: 0;
  border-radius: var(--r);
  transition: filter 0.16s ease;
}

.sub__btn:hover {
  filter: brightness(1.12);
}

.foot__bottom {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 14px 20px 26px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 18px;
  text-align: center;
}

.foot__copy {
  margin: 0;
  font-size: 16px;
  color: var(--muted);
}

.foot__top {
  display: inline-block;
  padding: 10px 14px;
  font-size: 16px;
  color: #fff;
  border: 1px solid rgba(255, 0, 128, 0.5);
  border-radius: var(--r);
  background: rgba(255, 0, 128, 0.12);
}

.foot__top:hover {
  background: rgba(255, 0, 255, 0.2);
}

/* ---------- reveal ---------- */
.prose > article,
.rail__li {
  opacity: 0;
  transform: translateY(14px);
}

.prose > article.in,
.rail__li.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.rail__li:nth-child(2) { transition-delay: 0.05s; }
.rail__li:nth-child(3) { transition-delay: 0.1s; }
.rail__li:nth-child(4) { transition-delay: 0.15s; }
.rail__li:nth-child(5) { transition-delay: 0.2s; }
.rail__li:nth-child(6) { transition-delay: 0.25s; }
.rail__li:nth-child(7) { transition-delay: 0.3s; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .sheet {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .rail {
    position: static;
    margin-top: 26px;
  }
  .foot__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  :root {
    --head-h: 118px;
  }
  body {
    font-size: 16px;
  }
  .topbar__row {
    padding: 10px 16px 4px;
  }
  .brand {
    font-size: 18px;
  }
  .find__in {
    width: 108px;
  }
  .nav {
    padding: 0 12px;
  }
  .nav__a {
    padding: 11px 11px;
    font-size: 16px;
  }
  .sheet {
    padding: 0 16px 32px;
  }
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    min-height: 62vh;
    padding: 20px 0 34px;
  }
  .hero__copy {
    text-align: left;
  }
  .hero .subtitle {
    margin-left: 0;
    max-width: none;
  }
  .hero__glyph svg {
    width: 76px;
    height: 76px;
  }
  .foot__grid {
    grid-template-columns: 1fr;
    padding: 28px 16px 18px;
  }
  .foot__bottom {
    padding: 14px 16px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .aurora__b,
  .hero__glyph {
    animation: none;
  }
  .prose > article,
  .rail__li {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

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