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

:root {
  --red: #ff0000;
  --pink: #ff1493;
  --ink: #261717;
  --bg: #150d0d;
  --fg: #fdf2ef;
  --muted: #cbb0aa;
  --line: rgba(255, 255, 255, 0.13);
  --rail: 252px;
  --pad: clamp(18px, 4vw, 56px);
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--fg);
  background: #170e0e;
  font-family: Inter, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: 0.01em;
}

body::before {
  content: "";
  position: fixed;
  inset: -25% -15%;
  z-index: -2;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 0, 0, 0.55), rgba(255, 0, 0, 0) 46%),
    radial-gradient(circle at 82% 12%, rgba(255, 20, 147, 0.5), rgba(255, 20, 147, 0) 48%),
    radial-gradient(circle at 62% 84%, rgba(255, 20, 147, 0.32), rgba(255, 20, 147, 0) 55%),
    conic-gradient(from 210deg at 45% 45%, #2b1519, #3d1119, #201010, #2c1418, #2b1519);
  background-size: 200% 200%;
  filter: saturate(1.2);
  animation: aurora 11s ease-in-out infinite alternate;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(21, 13, 13, 0.38), rgba(21, 13, 13, 0.72));
}

@keyframes aurora {
  from { background-position: 0% 0%, 100% 0%, 50% 100%, 0 0; }
  to { background-position: 30% 40%, 60% 30%, 20% 60%, 100% 100%; }
}

a { color: #ff9dbe; }

h1, h2, h3 {
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
  line-height: 1.16;
  letter-spacing: -0.01em;
}

img { max-width: 100%; }

/* ---------- left rail ---------- */
.rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--rail);
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 16px 22px;
  background: linear-gradient(185deg, rgba(38, 23, 23, 0.9), rgba(26, 14, 16, 0.78));
  border-right: 1px solid var(--line);
  backdrop-filter: blur(16px) saturate(1.1);
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 6px 10px;
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.05em;
}

.mark img { width: 26px; height: 26px; border-radius: 7px; }

.mark-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: conic-gradient(from 20deg, var(--red), var(--pink), var(--red));
  box-shadow: 0 0 16px rgba(255, 20, 147, 0.85);
}

.mark-txt { white-space: nowrap; }

.sub-h {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.24em;
  color: var(--muted);
  font-family: "JetBrains Mono", ui-monospace, monospace;
}

.sub-h > span { display: inline-block; }

.rail-h { padding-left: 10px; }

.rail-nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; }

.rail-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.rail-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 9px 11px;
  border-radius: 10px;
  color: var(--muted);
  text-decoration: none;
  font-size: 16px;
  transition: color 0.25s ease, background 0.25s ease;
}

.rail-nav a::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--red), var(--pink));
  opacity: 0.55;
}

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

.rail-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border-radius: 10px;
  text-decoration: none;
  color: #fff;
  font-size: 16px;
  background: linear-gradient(120deg, rgba(255, 0, 0, 0.85), rgba(255, 20, 147, 0.85));
  box-shadow: 0 8px 26px rgba(255, 20, 147, 0.28);
}

.rail-call .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
}

/* ---------- main ---------- */
main {
  margin-left: var(--rail);
  padding: 0 var(--pad) 56px;
}

.wrap {
  max-width: 820px;
  margin: 0 auto;
}

.hero {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 3vw, 26px);
  min-height: 45vh;
  padding: clamp(28px, 5vw, 54px) 0 10px;
  text-align: right;
}

.hero h1 {
  margin: 0;
  font-size: clamp(30px, 5.4vw, 54px);
  font-weight: 700;
  background: linear-gradient(98deg, #ffffff 8%, #ffd7e6 44%, var(--pink) 88%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 25%, rgba(255, 0, 0, 0.65), rgba(255, 0, 0, 0) 55%),
    radial-gradient(circle at 78% 72%, rgba(255, 20, 147, 0.6), rgba(255, 20, 147, 0) 60%),
    linear-gradient(150deg, #34161b, #1d1012);
}

.hero-media .shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-media .shot.is-on { opacity: 1; }

.badge {
  position: absolute;
  left: 14px;
  bottom: 13px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: #fff;
  background: rgba(38, 23, 23, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
}

.doc { padding-bottom: 20px; }

/* ---------- prose ---------- */
.prose {
  font-size: 17px;
  color: #f2e4e0;
}

.prose div {
  padding: 26px 0 30px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 22px;
}

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

.prose h2 {
  margin: 4px 0 14px;
  font-size: clamp(22px, 3.4vw, 31px);
  font-weight: 600;
  color: #fff;
  text-align: right;
}

.prose h2 > span {
  display: inline-block;
  padding-bottom: 8px;
  background: linear-gradient(90deg, var(--red), var(--pink));
  background-repeat: no-repeat;
  background-size: 100% 3px;
  background-position: 0 100%;
}

.prose h3 {
  margin: 22px 0 10px;
  font-size: 19px;
  color: #ffe0eb;
}

.prose p { margin: 0 0 14px; }

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

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

.prose img {
  display: block;
  width: auto;
  height: auto;
  margin: 18px 0;
  border-radius: 10px;
}

.prose a { text-underline-offset: 3px; }

.prose strong { color: #fff; }

.prose blockquote {
  margin: 18px 0;
  padding: 12px 18px;
  border-left: 3px solid var(--pink);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0 10px 10px 0;
  color: #ffeaf2;
}

/* ---------- footer ---------- */
.foot {
  margin-left: var(--rail);
  padding: 34px var(--pad) 40px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(30, 17, 19, 0.55), rgba(20, 12, 13, 0.85));
}

.foot-grid {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 22px 26px;
}

.foot-col ul {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}

.foot-col li { margin-bottom: 2px; }

.foot-col a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 0;
  color: var(--muted);
  text-decoration: none;
  font-size: 16px;
}

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

.foot address {
  margin-top: 10px;
  font-style: normal;
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 17px;
  color: #fff;
}

.foot-mark {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: conic-gradient(from 60deg, var(--red), var(--pink));
  box-shadow: 0 0 12px rgba(255, 20, 147, 0.7);
}

.copy {
  max-width: 820px;
  margin: 26px auto 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
  color: var(--muted);
}

/* ---------- reveal ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ---------- mobile ---------- */
@media (max-width: 900px) {
  .rail {
    right: 0;
    bottom: auto;
    width: 100%;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
    overflow-y: hidden;
  }

  .mark { flex: 0 0 auto; padding: 6px; }
  .mark-txt { display: none; }
  .rail-h { display: none; }

  .rail-nav {
    flex: 1 1 auto;
    overflow: visible;
  }

  .rail-nav ul { flex-direction: row; gap: 4px; }

  .rail-nav a {
    white-space: nowrap;
    padding: 9px 11px;
    min-height: 42px;
  }

  .rail-nav a::before { display: none; }

  .rail-call { flex: 0 0 auto; padding: 0 14px; min-height: 42px; }

  main {
    margin-left: 0;
    padding: 68px var(--pad) 40px;
  }

  .hero { text-align: right; padding-top: 18px; }
  .hero h1 { font-size: clamp(26px, 7.4vw, 38px); }

  .hero-media { aspect-ratio: 4 / 3; }

  .prose div { scroll-margin-top: 76px; }

  .foot {
    margin-left: 0;
    padding: 28px var(--pad) 34px;
  }

  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .prose { font-size: 16px; }
  .rail-call { padding: 0 11px; }
  .copy { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body::before { animation: none; }
  .hero-media .shot { transition: none; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

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