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

:root {
  --void: #130f1b;
  --panel: #1c1726;
  --line: #3a2d55;
  --brand: #6514ff;
  --acc: #bf00ff;
  --paper: #f5f0ff;
  --muted: #b9aad6;
  --r: 10px;
}

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

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

body {
  margin: 0;
  background: var(--void);
  color: var(--paper);
  font-family: 'Figtree', 'Noto Sans', system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 17px;
  line-height: 1.72;
  padding-bottom: 108px;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: -25%;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(191, 0, 255, 0.18) 1px, transparent 1.4px);
  background-size: 30px 30px;
  animation: drift 22s linear infinite;
}

@keyframes drift {
  to {
    transform: translate3d(30px, 30px, 0);
  }
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--paper);
}

.skip {
  position: absolute;
  left: -999px;
  top: 10px;
  z-index: 40;
  background: var(--acc);
  color: #fff;
  padding: 12px 18px;
  border-radius: 8px;
  text-decoration: none;
}

.skip:focus {
  left: 14px;
}

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: center;
  min-height: 45vh;
  padding: 52px clamp(20px, 5vw, 72px) 48px;
  background: linear-gradient(135deg, #6514ff 0%, #4b0ec4 58%, #2a0f5e 100%);
  border-bottom: 3px solid var(--acc);
  border-radius: 0 0 26px 26px;
  overflow: hidden;
}

.hero-num {
  position: absolute;
  top: -12%;
  right: 1%;
  font-size: clamp(140px, 24vw, 260px);
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.3);
  pointer-events: none;
  will-change: transform;
}

.hero-copy {
  position: relative;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(30px, 5.2vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
  max-width: 18ch;
}

.hero-lede {
  margin: 0 0 26px;
  max-width: 46ch;
  color: #ece3ff;
  font-size: 17px;
}

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: var(--r);
  background: #12000a;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 2px solid rgba(255, 255, 255, 0.35);
  transition: background 0.24s ease, transform 0.24s ease;
}

.btn:hover,
.btn:focus-visible {
  background: var(--acc);
  transform: translateY(-2px);
}

.hero-art {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 3px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--r);
  overflow: hidden;
  background: repeating-linear-gradient(45deg, #1c1726, #1c1726 14px, #2a0f5e 14px, #2a0f5e 28px);
}

.hero-art .blob {
  position: absolute;
  inset: auto -20% -35% auto;
  width: 76%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #bf00ff, #6514ff 62%, transparent 74%);
  opacity: 0.85;
}

.hero-img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 236px) minmax(0, 1fr);
  gap: 40px;
  padding: 56px clamp(20px, 5vw, 72px);
  align-items: start;
}

aside {
  position: sticky;
  top: 26px;
  order: -1;
  padding: 18px 18px 22px;
  border: 2px solid var(--line);
  border-radius: var(--r);
  background: rgba(28, 23, 38, 0.78);
}

aside h2 {
  margin: 0;
  font-size: 16px;
  letter-spacing: 0.28em;
  color: var(--acc);
  font-weight: 600;
}

hr {
  border: 0;
  height: 3px;
  width: 56px;
  margin: 12px 0 20px;
  background: linear-gradient(90deg, var(--brand), var(--acc));
  border-radius: 3px;
}

aside .toc {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: sec;
}

aside .toc li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: baseline;
  gap: 6px;
  border-bottom: 1px dashed rgba(58, 45, 85, 0.9);
}

aside .toc li:last-child {
  border-bottom: 0;
}

aside .toc .no {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--brand);
  font-weight: 700;
}

aside .toc a {
  display: block;
  padding: 9px 0;
  font-size: 15px;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s ease;
}

aside .toc a:hover,
aside .toc a:focus-visible {
  color: #fff;
}

div {
  min-width: 0;
}

.body {
  padding: clamp(22px, 3vw, 44px);
  border: 2px solid var(--line);
  border-left: 6px solid var(--brand);
  border-radius: var(--r);
  background: var(--panel);
}

.body section {
  display: block;
}

.body section + section {
  margin-top: 56px;
  padding-top: 44px;
  border-top: 2px dashed var(--line);
}

.body h2 {
  margin: 0;
  font-size: clamp(23px, 3.1vw, 35px);
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: #fff;
}

.body h3 {
  margin: 34px 0 8px;
  font-size: 21px;
  line-height: 1.35;
  color: #fff;
}

.body p {
  margin: 0 0 18px;
  color: #ddd2f2;
}

.body ul,
.body ol {
  margin: 0 0 20px;
  padding-left: 22px;
  color: #ddd2f2;
}

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

.body strong {
  color: #fff;
}

.body a {
  color: #d0a6ff;
  text-underline-offset: 3px;
}

.body blockquote {
  margin: 22px 0;
  padding: 14px 20px;
  border-left: 4px solid var(--acc);
  background: rgba(101, 20, 255, 0.14);
  border-radius: 0 var(--r) var(--r) 0;
}

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

section[id] {
  scroll-margin-top: 24px;
}

.foot {
  position: relative;
  z-index: 1;
  margin-top: 72px;
  padding: 56px clamp(20px, 5vw, 72px) 34px;
  background: var(--panel);
  border-top: 3px solid var(--acc);
}

.foot-cta h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.foot-go {
  display: inline-block;
  margin-top: 6px;
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  border-bottom: 3px solid var(--acc);
  padding-bottom: 5px;
  transition: color 0.22s ease, border-color 0.22s ease;
}

.foot-go:hover,
.foot-go:focus-visible {
  color: var(--acc);
  border-color: #fff;
}

.foot-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin: 44px 0 30px;
}

.foot-cols dl {
  margin: 0;
}

.foot-cols dt {
  font-size: 13px;
  letter-spacing: 0.24em;
  color: var(--acc);
  margin-bottom: 8px;
  font-weight: 600;
}

.foot-cols dd {
  margin: 0;
}

.foot-cols dd a {
  display: inline-block;
  padding: 9px 0;
  font-size: 15px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.foot-cols dd a:hover,
.foot-cols dd a:focus-visible {
  color: #fff;
}

.foot-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 22px;
  padding-top: 20px;
  border-top: 2px solid var(--line);
  font-size: 15px;
  color: var(--muted);
}

.foot-base p {
  margin: 0;
}

.foot-base a {
  display: inline-block;
  padding: 10px 2px;
  color: var(--muted);
  text-decoration: none;
}

.foot-base a:hover,
.foot-base a:focus-visible {
  color: #fff;
}

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  background: rgba(19, 15, 27, 0.94);
  border-top: 2px solid var(--acc);
  backdrop-filter: blur(9px);
  padding-bottom: env(safe-area-inset-bottom);
}

.dock ol {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 8px clamp(10px, 3vw, 28px);
  overflow-x: auto;
  scrollbar-width: none;
}

.dock ol::-webkit-scrollbar {
  display: none;
}

.dock li {
  flex: 0 0 auto;
}

.dock a {
  display: block;
  padding: 13px 11px;
  font-size: 15px;
  line-height: 1.4;
  text-decoration: none;
  color: var(--muted);
  border-radius: 8px;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
}

.dock a:hover,
.dock a:focus-visible {
  color: #fff;
  background: rgba(101, 20, 255, 0.28);
}

.dock a[aria-current] {
  color: #fff;
  background: rgba(191, 0, 255, 0.26);
}

.dock .mark {
  margin-inline: auto;
}

.dock .mark a {
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.06em;
}

.dock .go a {
  background: linear-gradient(120deg, var(--brand), var(--acc));
  color: #fff;
  font-weight: 600;
  padding-inline: 16px;
}

.dock .go a:hover,
.dock .go a:focus-visible {
  background: linear-gradient(120deg, var(--acc), var(--brand));
  color: #fff;
}

.js .hero-copy,
.js .body > section,
.js .foot-cta {
  opacity: 0;
  transform: translateY(20px);
}

.js .in {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

:focus-visible {
  outline: 3px solid var(--acc);
  outline-offset: 2px;
}

@media (max-width: 900px) {
  main {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    padding-block: 34px;
  }

  aside {
    position: static;
  }

  aside .toc {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 14px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    min-height: 0;
    padding-block: 34px 30px;
    border-radius: 0 0 18px 18px;
  }

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

  .hero-num {
    font-size: clamp(110px, 30vw, 170px);
    top: -6%;
    opacity: 0.75;
  }

  .foot-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 20px;
  }
}

@media (max-width: 420px) {
  body {
    font-size: 16px;
    padding-bottom: 96px;
  }

  .hero-lede {
    font-size: 16px;
  }

  .dock a {
    font-size: 14px;
    padding: 13px 9px;
  }

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

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

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

  body::before {
    animation: none;
  }

  .js .hero-copy,
  .js .body > section,
  .js .foot-cta {
    opacity: 1;
    transform: none;
  }

  .btn:hover {
    transform: none;
  }
}

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