@import url('https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:wght@400;700&family=Crimson+Pro:wght@400;500;600;700&display=swap');

:root {
  --ink: #26171f;
  --ink-deep: #180e13;
  --rose: #ff0080;
  --magenta: #ff00ff;
  --paper: #f7eaf2;
  --dim: #cbb0c1;
  --line: rgba(255, 255, 255, 0.13);
  --card: rgba(52, 28, 41, 0.62);
  --serif: 'Crimson Pro', 'Songti SC', 'Noto Serif SC', Georgia, serif;
  --sans: 'Atkinson Hyperlegible', system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --r: 28px;
  --edge: 1200px;
}

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

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  color: var(--paper);
  background: radial-gradient(120vmax 80vmax at 50% -10%, #3a1b2c 0%, var(--ink) 42%, var(--ink-deep) 100%) fixed;
  overflow-x: hidden;
}

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

a {
  color: var(--paper);
  text-decoration: none;
}

/* ---------- aurora backdrop ---------- */
.aurora {
  position: fixed;
  inset: -22vmax;
  z-index: -1;
  pointer-events: none;
  opacity: 0.82;
  filter: blur(38px) saturate(1.25);
  background:
    radial-gradient(44vmax 44vmax at 14% 18%, rgba(255, 0, 128, 0.5), transparent 62%),
    radial-gradient(48vmax 48vmax at 84% 10%, rgba(255, 0, 255, 0.38), transparent 64%),
    radial-gradient(58vmax 58vmax at 62% 92%, rgba(150, 20, 220, 0.42), transparent 66%),
    conic-gradient(from 200deg at 50% 55%, rgba(255, 0, 128, 0.22), rgba(38, 23, 31, 0) 28%, rgba(255, 0, 255, 0.2) 52%, rgba(255, 0, 128, 0.24));
  animation: flow 26s ease-in-out infinite alternate, prism 22s linear infinite;
}

.aurora i {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;
  filter: blur(20px);
}

.aurora i:nth-child(1) {
  inset: 22% 12% auto auto;
  width: 34vmax;
  height: 34vmax;
  background: radial-gradient(circle, rgba(255, 0, 255, 0.5), transparent 68%);
  animation: bob 17s ease-in-out infinite alternate;
}

.aurora i:nth-child(2) {
  inset: auto auto 18% 8%;
  width: 30vmax;
  height: 30vmax;
  background: radial-gradient(circle, rgba(255, 0, 128, 0.45), transparent 70%);
  animation: bob 21s ease-in-out infinite alternate-reverse;
}

.aurora i:nth-child(3) {
  inset: 50% 40% auto auto;
  width: 22vmax;
  height: 22vmax;
  background: radial-gradient(circle, rgba(120, 40, 255, 0.4), transparent 70%);
  animation: bob 25s ease-in-out infinite alternate;
}

@keyframes flow {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to { transform: translate3d(3%, 2%, 0) scale(1.1); }
}

@keyframes bob {
  from { transform: translate3d(0, -4%, 0) scale(0.94); }
  to { transform: translate3d(4%, 5%, 0) scale(1.08); }
}

@keyframes prism {
  from { filter: blur(38px) saturate(1.25) hue-rotate(0deg); }
  to { filter: blur(38px) saturate(1.35) hue-rotate(46deg); }
}

/* ---------- masthead ---------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px clamp(12px, 3vw, 26px);
  background: rgba(28, 16, 23, 0.74);
  backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid transparent;
  border-image: linear-gradient(90deg, rgba(255, 0, 128, 0.7), rgba(255, 0, 255, 0.55), rgba(255, 0, 128, 0)) 1;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  min-height: 44px;
  padding: 6px 10px 6px 6px;
  border-radius: 999px;
  transition: background 0.25s ease, transform 0.25s ease;
}

.brand:hover {
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-1px);
}

.brand__mark {
  width: 26px;
  height: 26px;
  border-radius: 9px;
  background: conic-gradient(from 40deg, var(--rose), var(--magenta), #7a2bff, var(--rose));
  box-shadow: 0 0 18px rgba(255, 0, 128, 0.55);
}

.brand__logo {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  object-fit: cover;
}

.brand__text {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: linear-gradient(96deg, #fff, #ffa6d4 60%, #ff8cf7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

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

.tabs__a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  min-height: 44px;
  padding: 9px 13px;
  border-radius: 999px;
  font-size: 16px;
  color: var(--dim);
  white-space: nowrap;
  transition: color 0.2s ease, background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.tabs__i {
  fill: var(--rose);
  transition: fill 0.25s ease, transform 0.3s ease;
}

.tabs__a:hover,
.tabs__a:focus-visible {
  color: #fff;
  background: linear-gradient(120deg, rgba(255, 0, 128, 0.34), rgba(255, 0, 255, 0.24));
  transform: translateY(-2px);
  box-shadow: 0 8px 22px -12px rgba(255, 0, 128, 0.9);
}

.tabs__a:hover .tabs__i {
  fill: #fff;
  transform: rotate(90deg);
}

.ping {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  color: #2a0016;
  background: linear-gradient(112deg, var(--rose), var(--magenta));
  box-shadow: 0 10px 26px -14px rgba(255, 0, 255, 0.95);
  transition: transform 0.22s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.ping:hover,
.ping:focus-visible {
  transform: translateY(-2px) scale(1.03);
  filter: brightness(1.12);
  box-shadow: 0 16px 30px -14px rgba(255, 0, 255, 1);
}

/* ---------- hero ---------- */
.stage {
  display: block;
}

.hero {
  max-width: var(--edge);
  margin: 0 auto;
  padding: clamp(22px, 4vw, 44px) clamp(14px, 3vw, 28px);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(18px, 3.4vw, 44px);
  align-items: center;
  min-height: 45vh;
}

.hero__art {
  margin: 0;
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #33192a;
  box-shadow: 0 26px 60px -34px rgba(255, 0, 128, 0.9);
}

.hero__art::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 5px;
  background: linear-gradient(90deg, var(--rose), var(--magenta), #7a2bff);
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__art--mesh {
  background:
    radial-gradient(60% 70% at 22% 26%, rgba(255, 0, 128, 0.85), transparent 68%),
    radial-gradient(70% 70% at 82% 74%, rgba(255, 0, 255, 0.75), transparent 70%),
    conic-gradient(from 120deg at 50% 50%, #4a1338, #9a1a6b, #331030, #4a1338);
  animation: prism 18s linear infinite;
}

.hero__copy {
  text-align: center;
  padding: 6px 4px;
}

.hero__h1 {
  font-family: var(--serif);
  font-size: clamp(30px, 5.4vw, 54px);
  line-height: 1.22;
  letter-spacing: 0.01em;
  margin: 0 0 16px;
  background: linear-gradient(104deg, #ffffff, #ffb3da 48%, #ff8bfb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 44px rgba(255, 0, 128, 0.28);
}

.lede {
  margin: 0 auto;
  max-width: 34em;
  font-size: 17px;
  color: var(--dim);
  line-height: 1.8;
}

/* ---------- section + rail ---------- */
.doc {
  max-width: var(--edge);
  margin: 0 auto clamp(40px, 7vw, 82px);
  padding: 0 clamp(14px, 3vw, 28px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 296px;
  gap: clamp(18px, 3vw, 36px);
  align-items: start;
}

.doc__main {
  position: relative;
  border-radius: var(--r);
  padding: clamp(20px, 3.4vw, 42px);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px -52px rgba(255, 0, 255, 0.9);
}

.doc__main::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 4px;
  border-radius: 0 0 var(--r) var(--r);
  background: linear-gradient(90deg, var(--rose), var(--magenta));
}

.doc__main > div {
  padding-bottom: 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  scroll-margin-top: 92px;
}

.doc__main > div:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 4px;
}

.doc__main h2 {
  font-family: var(--serif);
  font-size: clamp(23px, 3.2vw, 31px);
  line-height: 1.35;
  margin: 0 0 14px;
  padding-bottom: 12px;
  color: #fff0f8;
  background: linear-gradient(90deg, var(--rose), var(--magenta)) no-repeat left bottom / 64px 3px;
}

.doc__main h3 {
  font-family: var(--serif);
  font-size: 21px;
  margin: 24px 0 8px;
  color: #ffd7ec;
}

.doc__main p {
  margin: 0 0 15px;
  font-size: 17px;
  line-height: 1.85;
  color: #f0dde8;
}

.doc__main a {
  color: #ff7ec2;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.doc__main a:hover {
  color: #ffb3dd;
}

.doc__main ul,
.doc__main ol {
  margin: 0 0 16px;
  padding-left: 1.3em;
}

.doc__main li {
  margin-bottom: 8px;
  line-height: 1.8;
}

.doc__main time {
  display: inline-block;
  font-size: 16px;
  color: var(--dim);
}

.doc__main blockquote {
  margin: 0 0 16px;
  padding: 12px 18px;
  border-left: 3px solid var(--magenta);
  background: rgba(255, 0, 255, 0.07);
  border-radius: 0 18px 18px 0;
}

.rail {
  position: sticky;
  top: 92px;
  border-radius: var(--r);
  padding: 22px 20px 18px;
  background: rgba(48, 24, 38, 0.72);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rail::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 4px;
  background: linear-gradient(90deg, var(--magenta), var(--rose));
}

.rail:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 48px -34px rgba(255, 0, 255, 0.95);
}

.rail__h2 {
  font-family: var(--serif);
  font-size: 24px;
  margin: 0 0 4px;
  color: #fff;
}

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

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

.rail__list li {
  counter-increment: rail;
}

.rail__a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 9px 10px;
  border-radius: 14px;
  font-size: 16px;
  color: #e8cfdd;
  transition: background 0.22s ease, color 0.2s ease, padding-left 0.22s ease;
}

.rail__a::before {
  content: counter(rail, decimal-leading-zero);
  font-family: var(--serif);
  font-size: 14px;
  color: var(--rose);
  letter-spacing: 0.06em;
}

.rail__a:hover {
  background: rgba(255, 0, 128, 0.16);
  color: #fff;
  padding-left: 14px;
}

/* ---------- footer ---------- */
.foot {
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, rgba(255, 0, 255, 0), rgba(255, 0, 128, 0.8), rgba(255, 0, 255, 0)) 1;
  background: linear-gradient(180deg, rgba(28, 15, 22, 0.55), rgba(20, 11, 16, 0.95));
  padding: clamp(30px, 5vw, 58px) clamp(14px, 3vw, 28px) 22px;
}

.foot__cta {
  max-width: var(--edge);
  margin: 0 auto clamp(26px, 4vw, 44px);
  padding: clamp(24px, 4vw, 46px);
  text-align: center;
  border-radius: var(--r);
  border: 2px solid transparent;
  background:
    linear-gradient(125deg, rgba(255, 0, 128, 0.26), rgba(255, 0, 255, 0.2)) padding-box,
    linear-gradient(125deg, var(--rose), var(--magenta)) border-box;
}

.foot__big {
  font-family: var(--serif);
  font-size: clamp(26px, 4.6vw, 42px);
  line-height: 1.2;
  margin: 0 0 16px;
  letter-spacing: 0.08em;
  background: linear-gradient(100deg, #fff, #ffa8d6 55%, #ff8bfb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.foot__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  color: #2a0016;
  background: linear-gradient(112deg, var(--magenta), var(--rose));
  transition: transform 0.22s ease, filter 0.22s ease;
}

.foot__btn:hover,
.foot__btn:focus-visible {
  transform: translateY(-2px) scale(1.03);
  filter: brightness(1.12);
}

.foot__cols {
  max-width: var(--edge);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 40px);
}

.foot__addr {
  font-style: normal;
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.08em;
  color: #fff;
  margin-bottom: 12px;
}

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

.foot__ul li {
  margin-bottom: 2px;
}

.foot__ul a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 2px 0;
  font-size: 16px;
  color: var(--dim);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.foot__ul a:hover {
  color: #fff;
  padding-left: 6px;
}

.foot__dl {
  margin: 0;
}

.foot__dl dt {
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.14em;
  color: #ffc4e4;
  margin-bottom: 10px;
}

.foot__dl dd {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
}

.foot__nav-a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 2px 0;
  font-size: 16px;
  color: var(--dim);
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.foot__nav-a:hover {
  color: #fff;
  border-bottom-color: var(--rose);
}

.foot__label {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.14em;
  color: #ffc4e4;
}

.foot__kw {
  margin: 0;
  font-size: 16px;
  line-height: 1.9;
  color: var(--dim);
  word-break: break-all;
}

.foot__base {
  max-width: var(--edge);
  margin: clamp(24px, 4vw, 38px) auto 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.foot__base p {
  margin: 0;
  font-size: 16px;
  color: #b79cae;
  letter-spacing: 0.08em;
}

/* ---------- reveal ---------- */
.js-reveal .doc__main > div,
.js-reveal .rail {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 0.68, 0.32, 1);
}

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

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

  .aurora,
  .aurora i,
  .hero__art--mesh {
    animation: none;
  }

  .js-reveal .doc__main > div,
  .js-reveal .rail {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .tabs__a,
  .ping,
  .brand,
  .rail,
  .rail__a,
  .foot__btn,
  .foot__ul a {
    transition: none;
  }
}

/* ---------- narrow ---------- */
@media (max-width: 900px) {
  .doc {
    grid-template-columns: minmax(0, 1fr);
  }

  .rail {
    position: static;
    top: auto;
  }

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

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

  .hero__art {
    aspect-ratio: 16 / 10;
  }

  .hero__copy {
    order: -1;
  }

  .hero__h1 {
    font-size: clamp(28px, 8.4vw, 38px);
  }

  .masthead {
    gap: 8px;
    padding: 8px 10px;
  }

  .ping {
    padding: 10px 15px;
  }

  .brand__text {
    font-size: 19px;
  }

  .doc__main > div {
    scroll-margin-top: 84px;
  }
}

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