:root {
  --red: #ff0000;
  --pink: #ff1493;
  --ink: #261717;
  --bg: #150d0e;
  --panel: #2a191a;
  --panel-2: #33201f;
  --fg: #f7ecec;
  --dim: #c9b3b6;
  --line: rgba(255, 236, 236, 0.12);
  --glow: #ff74b8;
  --max: 1120px;
  --r: 10px;
}

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

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

body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: "Noto Sans SC", system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: -25% -15%;
  z-index: -2;
  background:
    radial-gradient(38% 34% at 16% 20%, rgba(255, 0, 0, 0.55), transparent 70%),
    radial-gradient(36% 30% at 80% 14%, rgba(255, 20, 147, 0.5), transparent 72%),
    radial-gradient(44% 38% at 60% 84%, rgba(255, 0, 60, 0.3), transparent 70%),
    conic-gradient(from 200deg at 50% 50%, rgba(255, 20, 147, 0.2), rgba(255, 0, 0, 0.16), rgba(120, 0, 60, 0.22), rgba(255, 20, 147, 0.2));
  background-size: 200% 200%;
  filter: saturate(1.2) blur(22px);
  opacity: 0.55;
  animation: aurora 11s ease-in-out infinite alternate;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.45;
}

@keyframes aurora {
  0% {
    transform: translate3d(-2%, -1%, 0) scale(1);
    background-position: 0% 0%;
  }
  100% {
    transform: translate3d(3%, 2%, 0) scale(1.14);
    background-position: 100% 100%;
  }
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

.bar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.9rem;
  padding: 0.55rem 1.05rem;
  background: rgba(21, 13, 14, 0.78);
  border-bottom: 1px solid rgba(255, 236, 236, 0.08);
  backdrop-filter: blur(14px) saturate(1.2);
}

.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--r);
  background: linear-gradient(140deg, var(--red), var(--pink));
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  overflow: hidden;
  box-shadow: 0 0 22px rgba(255, 20, 147, 0.35);
}

.brand img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nav {
  order: 3;
  flex: 1 1 100%;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.nav p {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin: 0;
  white-space: nowrap;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.5rem 0.72rem;
  border-radius: var(--r);
  color: var(--dim);
  font-size: 1rem;
  text-decoration: none;
  transition: color 0.25s ease, background-color 0.25s ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: #fff;
  background: rgba(255, 20, 147, 0.16);
}

.cta {
  flex: 0 0 auto;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.55rem 1.15rem;
  border-radius: var(--r);
  background: linear-gradient(100deg, var(--red), var(--pink));
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-decoration: none;
  box-shadow: 0 6px 22px rgba(255, 0, 80, 0.35);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 66vh;
  display: grid;
  align-content: end;
  padding: 6rem 1.05rem 3rem;
  isolation: isolate;
}

.hero-figure {
  position: absolute;
  inset: 0;
  margin: 0;
  z-index: -1;
  background:
    radial-gradient(60% 50% at 78% 18%, rgba(255, 20, 147, 0.5), transparent 72%),
    conic-gradient(from 160deg at 70% 30%, rgba(255, 0, 0, 0.55), rgba(120, 0, 60, 0.5), rgba(255, 20, 147, 0.45), rgba(255, 0, 0, 0.55));
}

.hero-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.5;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.7;
  filter: saturate(1.15);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(21, 13, 14, 0.97) 4%, rgba(21, 13, 14, 0.55) 52%, rgba(21, 13, 14, 0.82) 100%);
}

.hero-copy {
  position: relative;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  text-align: right;
}

.hero-copy h1 {
  margin: 0 auto 0.9rem;
  max-width: 20ch;
  font-size: clamp(2rem, 7vw, 3.4rem);
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: -0.015em;
  color: #fff;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.hero-lede {
  margin: 0 0 0 auto;
  max-width: 46ch;
  color: var(--dim);
  font-size: 1rem;
  line-height: 1.8;
}

.shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.05rem 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.4rem;
}

.prose {
  min-width: 0;
}

.prose > div {
  padding: 2.6rem 0;
  border-top: 1px solid var(--line);
}

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

.prose > div[id] {
  scroll-margin-top: 108px;
}

.prose small {
  display: block;
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: 0.3em;
  color: var(--glow);
  margin-bottom: 0.4rem;
}

.prose h2 {
  margin: 0 0 0.9rem;
  font-size: clamp(1.4rem, 3.4vw, 1.95rem);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: #fff;
}

.prose h3 {
  margin: 1.8rem 0 0.55rem;
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.5;
  color: #ffe6f1;
}

.prose p {
  margin: 0 0 1.1rem;
  max-width: 68ch;
  color: #e8d9db;
}

.prose a {
  color: var(--glow);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 116, 184, 0.45);
}

.prose a:hover,
.prose a:focus-visible {
  color: #fff;
  border-bottom-color: #fff;
}

.prose strong {
  color: #fff;
  font-weight: 700;
}

.prose ul,
.prose ol {
  margin: 0 0 1.1rem;
  padding-left: 1.3rem;
  max-width: 68ch;
}

.prose li {
  margin: 0.35rem 0;
}

.prose figure {
  margin: 1.6rem 0;
  padding: 0.6rem;
  background: var(--panel);
  border-radius: var(--r);
}

.prose figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.prose figcaption {
  padding: 0.6rem 0.3rem 0.1rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--dim);
}

.prose blockquote {
  margin: 1.4rem 0;
  padding: 0.9rem 1.1rem;
  background: var(--panel);
  border-left: 3px solid var(--pink);
  border-radius: 0 var(--r) var(--r) 0;
  color: #f0dfe2;
}

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

.prose code {
  padding: 0.1em 0.36em;
  background: var(--panel-2);
  border-radius: 5px;
  font-size: 0.95em;
}

.prose pre {
  overflow-x: auto;
  padding: 1rem;
  background: var(--panel-2);
  border-radius: var(--r);
}

.rail {
  align-self: start;
  padding: 1.15rem 1.05rem;
  background: var(--panel);
  border-radius: var(--r);
  font-size: 1rem;
}

.rail small {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: 0.3em;
  color: var(--glow);
}

.rail h2 {
  margin: 0 0 0.7rem;
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.5;
  color: #fff;
}

.rail-links {
  display: flex;
  flex-direction: column;
  margin: 0;
}

.rail-links a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0.5rem 0.2rem;
  color: var(--dim);
  text-decoration: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  transition: color 0.22s ease, padding-left 0.22s ease;
}

.rail-links a:first-child {
  border-top: 0;
}

.rail-links a:hover,
.rail-links a:focus-visible {
  color: #fff;
  padding-left: 0.4rem;
}

footer {
  max-width: var(--max);
  margin: 1.5rem auto 0;
  padding: 2.4rem 1.05rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  text-align: center;
  border-top: 1px solid var(--line);
}

.foot-cta {
  margin: 0;
}

.foot-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0.85rem 2.6rem;
  border-radius: var(--r);
  background: linear-gradient(100deg, var(--red), var(--pink));
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(255, 0, 80, 0.3);
}

.foot-note {
  margin: 0;
}

footer small {
  font-size: 1rem;
  line-height: 1.6;
  color: #a8929a;
}

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

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

@media (prefers-reduced-motion: no-preference) {
  .nav a {
    animation: rise 0.55s ease both;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  body::before {
    animation: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .nav a {
    animation: none;
  }
}

@media (min-width: 860px) {
  .bar {
    flex-wrap: nowrap;
    gap: 1rem;
    padding: 0.6rem 1.6rem;
  }
  .nav {
    order: 0;
    flex: 1 1 auto;
    overflow: visible;
  }
  .hero {
    padding: 8rem 1.6rem 3.6rem;
  }
}

@media (min-width: 920px) {
  .shell {
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 3.4rem;
    padding: 3.6rem 1.6rem 2.4rem;
  }
  .rail {
    position: sticky;
    top: 92px;
  }
  .hero-copy {
    padding: 0 1.6rem;
  }
}

@media (max-width: 400px) {
  body {
    font-size: 16px;
  }
  .hero {
    min-height: 60vh;
    padding-top: 4.5rem;
  }
  .hero-copy h1 {
    max-width: 100%;
  }
  .cta {
    padding: 0.5rem 0.85rem;
    font-size: 1rem;
  }
}

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