:root {
  --bg: #08070c;
  --ink: #f6f0e9;
  --ink2: rgba(246, 240, 233, 0.68);
  --ink3: rgba(246, 240, 233, 0.42);
  --line: rgba(255, 255, 255, 0.08);
  --glass: rgba(255, 255, 255, 0.04);
  --thread: linear-gradient(100deg, #ff4d73, #ff7a68 45%, #ffb36b);
  --sans: 'PingFang SC', 'HarmonyOS Sans SC', 'MiSans', 'Microsoft YaHei UI', 'Microsoft YaHei', 'Noto Sans SC', system-ui, sans-serif;
  --serif: 'Songti SC', 'Noto Serif SC', 'Source Han Serif SC', 'STSong', Georgia, serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a {
  color: inherit;
}
.aurora {
  position: fixed;
  inset: -20vmax;
  z-index: -2;
  filter: blur(60px);
  pointer-events: none;
}
.aurora i {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;
  animation: drift 28s ease-in-out infinite alternate;
}
.aurora i:nth-child(1) {
  width: 55vmax;
  height: 55vmax;
  left: 8vmax;
  top: 0;
  background: radial-gradient(circle, rgba(255, 77, 115, 0.34), transparent 62%);
}
.aurora i:nth-child(2) {
  width: 50vmax;
  height: 50vmax;
  right: 0;
  top: 22vmax;
  background: radial-gradient(circle, rgba(143, 125, 255, 0.2), transparent 60%);
  animation-delay: -9s;
}
.aurora i:nth-child(3) {
  width: 46vmax;
  height: 46vmax;
  left: 32vmax;
  bottom: 0;
  background: radial-gradient(circle, rgba(255, 166, 91, 0.2), transparent 60%);
  animation-delay: -15s;
}
@keyframes drift {
  50% {
    transform: translate(6vmax, -4vmax) scale(1.1);
  }
  100% {
    transform: translate(-5vmax, 5vmax) scale(0.95);
  }
}
.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(18px, 4vw, 48px);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: linear-gradient(180deg, rgba(8, 7, 12, 0.8), rgba(8, 7, 12, 0.3));
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand b {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0.1em;
}
.brand small {
  color: var(--ink3);
  letter-spacing: 0.3em;
  font-size: 10px;
}
.nav nav {
  display: flex;
  gap: clamp(10px, 2.4vw, 28px);
  align-items: center;
  font-size: 14px;
}
.nav nav a {
  text-decoration: none;
  color: var(--ink2);
  transition: color 0.2s;
}
.nav nav a:hover {
  color: var(--ink);
}
.nav .pill {
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--thread);
  color: #fff !important;
  font-weight: 600;
}
@media (max-width: 560px) {
  .nav nav a:not(.pill) {
    display: none;
  }
}

main section {
  padding: clamp(70px, 10vw, 130px) clamp(18px, 5vw, 48px);
  max-width: 1120px;
  margin: 0 auto;
}
h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(28px, 4.4vw, 44px);
  letter-spacing: 0.06em;
  text-align: center;
  margin: 0 0 12px;
}
.sub {
  text-align: center;
  color: var(--ink2);
  margin: 0 auto 40px;
  max-width: 620px;
}
.small {
  font-size: 13.5px;
}

.hero {
  text-align: center;
  padding-top: clamp(60px, 10vw, 120px) !important;
}
.knot {
  width: clamp(130px, 22vw, 190px);
  height: auto;
  overflow: visible;
}
.knot path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 2.2s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}
.knot .s2 {
  animation-delay: 0.18s;
}
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(52px, 9vw, 92px);
  font-weight: 600;
  letter-spacing: 0.3em;
  margin: 8px 0 0;
  padding-left: 0.3em;
  opacity: 0;
  animation: rise 1.2s 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.tag {
  font-family: var(--serif);
  font-size: clamp(16px, 2.2vw, 21px);
  letter-spacing: 0.4em;
  margin: 6px 0 0;
  background: linear-gradient(100deg, var(--ink) 0%, var(--ink) 40%, #ffb3c1 50%, var(--ink) 60%, var(--ink) 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6s linear infinite, rise 1.2s 1.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.lead {
  color: var(--ink2);
  font-size: clamp(15px, 1.8vw, 18px);
  margin: 26px auto 0;
  opacity: 0;
  animation: rise 1s 1.9s ease forwards;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes shimmer {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: -100% 0;
  }
}
.cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 36px;
  flex-wrap: wrap;
  opacity: 0;
  animation: rise 1s 2.2s ease forwards;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 28px;
  border-radius: 16px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.13);
  transition: transform 0.25s, background 0.25s;
}
.btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
}
.btn.primary {
  background: var(--thread);
  border: 0;
  color: #fff;
  box-shadow: 0 14px 40px -14px rgba(255, 77, 115, 0.9);
}
.badges {
  list-style: none;
  padding: 0;
  margin: 34px 0 0;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: rise 1s 2.5s ease forwards;
}
.badges li {
  font-size: 12.5px;
  color: var(--ink2);
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--glass);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
  margin-top: 42px;
}
.grid article,
.cards article,
.dl-card {
  position: relative;
  padding: 24px 22px;
  border-radius: 24px;
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s, background 0.3s;
}
.grid article:hover,
.cards article:hover,
.dl-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 120, 130, 0.35);
  background: rgba(255, 255, 255, 0.06);
}
.grid span {
  font-size: 28px;
}
.grid h3,
.cards h3 {
  margin: 10px 0 6px;
  font-size: 17px;
  letter-spacing: 0.04em;
}
.grid p,
.cards p {
  margin: 0;
  color: var(--ink2);
  font-size: 14px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}
.cards b {
  color: #ffb3c1;
  font-weight: 600;
}
.cards h3 {
  background: var(--thread);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 30px;
}
.dl-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
}
.dl-card .os {
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--ink3);
  text-transform: uppercase;
}
.dl-card b {
  font-size: 22px;
  font-family: var(--serif);
}
.dl-card small {
  color: var(--ink2);
}
.sha {
  margin-top: 10px;
  font-size: 10.5px;
  color: var(--ink3);
  word-break: break-all;
  font-family: 'Cascadia Code', Consolas, monospace;
}
.note {
  text-align: center;
  color: var(--ink3);
  font-size: 13px;
  margin-top: 22px;
}
.steps {
  counter-reset: s;
  list-style: none;
  padding: 0;
  margin: 40px auto 0;
  max-width: 560px;
  display: grid;
  gap: 10px;
}
.steps li {
  counter-increment: s;
  display: flex;
  gap: 14px;
  align-items: center;
  color: var(--ink2);
}
.steps li::before {
  content: counter(s);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--thread);
  color: #fff;
  font-weight: 700;
  flex: none;
}
.steps b {
  color: var(--ink);
}
pre {
  max-width: 560px;
  margin: 0 auto;
  padding: 18px 22px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--line);
  overflow-x: auto;
  font-size: 14.5px;
  color: #ffd0d9;
}
footer {
  text-align: center;
  padding: 60px 20px 50px;
  color: var(--ink3);
  border-top: 1px solid var(--line);
}
footer p {
  margin: 8px 0 2px;
  font-family: var(--serif);
  letter-spacing: 0.2em;
  color: var(--ink2);
}
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
