:root {
  --ink: #161417;
  --muted: #5e5854;
  --paper: #f4f0ea;
  --card: #fffdfb;
  --line: #e3dbd2;
  --plum: #47183c;
  --plum-2: #6a2458;
  --white: #f7f4f1;
  --header: 72px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  height: var(--header);
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 32px;
  color: var(--white);
  background: rgba(14, 12, 16, 0.55);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease;
}
.site-header.is-stuck {
  background: rgba(14, 12, 16, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  letter-spacing: 0.14em;
  font-weight: 700;
}
.brand img { width: 28px; height: 28px; filter: brightness(0) invert(1); }
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.site-nav > a,
.drop > a {
  text-decoration: none;
  padding: 8px 12px;
  font-size: 14px;
  opacity: 0.86;
}
.site-nav > a.on,
.drop.on > a { opacity: 1; }
.drop { position: relative; }
.drop-panel {
  position: absolute;
  top: calc(100% - 4px);
  left: 0;
  min-width: 220px;
  padding: 8px;
  background: #1c191c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: none;
}
.drop:hover .drop-panel,
.drop:focus-within .drop-panel { display: block; }
.drop-panel a {
  display: block;
  text-decoration: none;
  padding: 8px 10px;
  font-size: 14px;
  opacity: 0.9;
}
.drop-panel a:hover { background: rgba(255, 255, 255, 0.06); }
.head-cta {
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 8px 14px;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.head-cta:hover { background: #fff; color: var(--ink); }
.nav-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 8px 12px;
}
.hero {
  position: relative;
  min-height: 100vh;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: drift 22s ease-in-out alternate infinite;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 10, 14, 0.82) 0%, rgba(12, 10, 14, 0.28) 70%),
    linear-gradient(180deg, rgba(12, 10, 14, 0.2), rgba(12, 10, 14, 0.55));
}
.hero-copy, .hero-stats { position: relative; z-index: 1; }
.hero-copy {
  width: min(760px, calc(100% - 64px));
  margin: 140px 32px 36px;
  animation: rise .9s ease both;
}
.kicker {
  margin: 0 0 12px;
  letter-spacing: 0.18em;
  font-size: 12px;
  text-transform: uppercase;
  color: #e7d5e2;
}
.hero h1, .page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.12;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.lede { margin: 0 0 22px; font-size: 18px; max-width: 40em; color: rgba(255, 255, 255, 0.88); }
.hero-actions, .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-block;
  text-decoration: none;
  padding: 12px 18px;
  font-size: 14px;
}
.btn.solid { background: var(--plum); color: #fff; }
.btn.solid:hover { background: var(--plum-2); }
.btn.ghost { border: 1px solid rgba(255, 255, 255, 0.55); color: #fff; }
.btn.ghost.dark { border-color: var(--plum); color: var(--plum); }
.hero-stats {
  position: relative;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(14, 12, 16, 0.72);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.hero-stats div { padding: 18px 22px; }
.hero-stats b { display: block; font-size: 28px; font-weight: 650; }
.hero-stats span { color: rgba(255, 255, 255, 0.72); font-size: 13px; }
.wrap { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
.band { padding: 84px 0; }
.band h2 { margin: 0 0 10px; font-size: clamp(28px, 4vw, 40px); line-height: 1.2; }
.band .intro { margin: 0 0 28px; color: var(--muted); max-width: 42em; }
.grid-3, .grid-2 { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.path {
  display: block;
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 22px 22px 20px;
  min-height: 210px;
  transition: transform .3s ease;
}
.path:hover { transform: translateY(-3px); }
.path .no { margin: 0 0 8px; color: var(--plum); letter-spacing: 0.14em; font-size: 12px; }
.path h3 { margin: 0 0 8px; font-size: 26px; }
.path p { margin: 0; color: var(--muted); }
.path em { display: block; margin-top: 14px; color: var(--plum); font-style: normal; font-size: 14px; }
.grid-2 { grid-template-columns: 1.1fr 0.9fr; align-items: center; }
.pcard {
  display: block;
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .35s ease;
}
.pcard:hover { transform: translateY(-4px); }
.pcard .pic { aspect-ratio: 4 / 3; overflow: hidden; background: #ddd; }
.pcard img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.pcard:hover img { transform: scale(1.05); }
.pcard .body { padding: 16px 16px 18px; }
.pcard .no { margin: 0; color: var(--plum); font-size: 12px; letter-spacing: 0.12em; }
.pcard h3 { margin: 4px 0; font-size: 20px; }
.pcard p { margin: 0; color: var(--muted); }
.split-photo { overflow: hidden; }
.split-photo img { width: 100%; height: 100%; max-height: 520px; object-fit: cover; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { border-top: 1px solid var(--plum); padding-top: 14px; }
.step b { display: block; color: var(--plum); font-size: 13px; letter-spacing: 0.08em; }
.apps { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px; }
.app {
  position: relative;
  min-height: 240px;
  overflow: hidden;
  color: #fff;
}
.app img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.app span {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 16px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
}
.cta-band {
  background: var(--ink);
  color: #fff;
}
.cta-band .wrap { display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.page-hero {
  position: relative;
  min-height: 420px;
  margin-top: 0;
  padding: 140px 32px 56px;
  color: #fff;
  background-color: #1a1618;
  background-position: center;
  background-size: cover;
  display: flex;
  align-items: flex-end;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 10, 14, 0.78), rgba(12, 10, 14, 0.25));
}
.page-hero .inner { position: relative; width: min(1120px, 100%); }
.page-hero .lede { color: rgba(255, 255, 255, 0.88); }
.layout {
  width: min(1120px, calc(100% - 48px));
  margin: -36px auto 0;
  display: grid;
  grid-template-columns: 1.4fr 0.7fr;
  gap: 22px;
  position: relative;
}
.prose, .side {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 28px;
}
.prose h2 { margin: 1.2em 0 0.4em; font-size: 22px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 12px; }
.side img { width: 100%; aspect-ratio: 4/3; object-fit: cover; margin-bottom: 14px; }
.side dt { margin-top: 12px; font-size: 12px; letter-spacing: 0.08em; color: var(--muted); }
.side dd { margin: 0; }
.site-footer {
  margin-top: 72px;
  background: #121014;
  color: rgba(255, 255, 255, 0.78);
  padding: 56px 32px 24px;
}
.foot-grid {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr 1fr;
  gap: 28px;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer h2 { margin: 0 0 10px; font-size: 14px; letter-spacing: 0.12em; color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 6px 0; }
.foot-brand { letter-spacing: 0.16em; font-weight: 700; color: #fff; }
.foot-bar {
  width: min(1120px, 100%);
  margin: 28px auto 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
}
.reveal { opacity: 0; transform: translateY(22px); animation: rise .8s ease forwards; animation-play-state: paused; }
.reveal.in { animation-play-state: running; }
@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
@keyframes drift {
  to { transform: scale(1.1); }
}
@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .head-cta { display: none; }
  .site-nav {
    display: none;
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    margin: 0;
    padding: 12px 16px 20px;
    background: #141216;
    flex-direction: column;
    align-items: stretch;
  }
  body.nav-open .site-nav { display: flex; }
  .drop-panel { position: static; display: block; border: 0; background: transparent; padding: 0 0 8px 12px; }
  .hero-copy { margin: 120px 20px 28px; width: auto; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .paths, .grid-3, .grid-2, .steps, .apps, .layout, .foot-grid, .cta-band .wrap {
    grid-template-columns: 1fr;
  }
  .apps .app { min-height: 200px; }
  .site-header { padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg, .reveal, .pcard, .pcard img { animation: none; transition: none; }
  .reveal { opacity: 1; transform: none; }
}
