:root {
  --ink: #1d1510;
  --brown: #392218;
  --wine: #64291f;
  --gold: #c99a4d;
  --gold-light: #f0d5a0;
  --paper: #f5f0e5;
  --paper-deep: #e9dec9;
  --muted: #76685c;
  --line: rgba(87, 59, 38, .18);
  --white: #fffdf8;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  text-rendering: geometricPrecision;
}
body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  min-height: 72px; padding: 11px clamp(18px, 5vw, 64px);
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(245, 240, 229, .88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; letter-spacing: .08em; }
.brand img { width: 42px; height: 42px; border-radius: 11px; object-fit: cover; }
.site-nav { display: flex; align-items: center; gap: 26px; color: #66584d; font-size: 14px; font-weight: 650; }
.site-nav a:hover { color: var(--wine); }
.nav-cta { padding: 11px 16px; color: #fff !important; background: var(--wine); border-radius: 999px; }
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: var(--white); }
.nav-toggle span { display: block; width: 18px; height: 2px; margin: 4px auto; background: var(--ink); }

.hero {
  position: relative; min-height: min(800px, calc(100svh - 72px)); overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, .8fr); align-items: center;
  padding: clamp(64px, 8vw, 108px) max(20px, calc((100vw - var(--max)) / 2));
  color: #fff8e9;
  background:
    linear-gradient(90deg, rgba(22, 13, 9, .98) 0%, rgba(39, 21, 14, .95) 48%, rgba(54, 25, 17, .75) 100%),
    url("/assets/night-hall.jpg") center/cover;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .1;
  background-image: radial-gradient(circle at center, var(--gold) 1px, transparent 1.5px);
  background-size: 42px 42px; mask-image: linear-gradient(90deg, #000, transparent 72%);
}
.hero-glow { position: absolute; width: 650px; height: 650px; left: -220px; top: 8%; border-radius: 50%; background: rgba(198, 120, 46, .13); filter: blur(70px); }
.hero-copy { position: relative; z-index: 2; max-width: 650px; }
.eyebrow, .kicker { margin: 0 0 15px; color: var(--gold); font-size: 13px; font-weight: 700; letter-spacing: .18em; }
.hero h1 { margin: 0; font-family: "Songti SC", "STSong", serif; font-size: clamp(56px, 7vw, 96px); line-height: 1.08; font-weight: 700; letter-spacing: .05em; }
.lead { max-width: 610px; margin: 26px 0 0; color: rgba(255, 248, 233, .78); font-size: clamp(17px, 2vw, 22px); line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { min-height: 50px; padding: 0 21px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; font-weight: 700; }
.button.primary { color: #25150e; background: linear-gradient(180deg, #f2d49b, #c89543); box-shadow: 0 16px 36px rgba(201, 154, 77, .22); }
.button.ghost { color: #f5dfb5; border: 1px solid rgba(240, 213, 160, .35); background: rgba(255,255,255,.05); }
.hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 610px; margin: 36px 0 0; }
.hero-facts div { padding: 16px; border: 1px solid rgba(240, 213, 160, .18); border-radius: 14px; background: rgba(255,255,255,.045); }
.hero-facts dt { color: var(--gold-light); font-size: 20px; font-weight: 700; }
.hero-facts dd { margin: 6px 0 0; color: rgba(255, 248, 233, .6); font-size: 12px; line-height: 1.5; }
.hero-visual { position: relative; z-index: 3; width: min(410px, 85%); justify-self: end; }
.hero-poster { width: 100%; max-height: 690px; object-fit: contain; border-radius: 28px; filter: drop-shadow(0 30px 50px rgba(0,0,0,.45)); }
.seal { position: absolute; right: -16px; bottom: 9%; display: grid; place-items: center; width: 74px; height: 74px; color: #f7dca7; border: 1px solid rgba(240,213,160,.55); border-radius: 50%; background: #7a2e23; font-family: serif; font-weight: 700; line-height: 1.05; }
.scroll-cue { position: absolute; left: max(20px, calc((100vw - var(--max)) / 2)); bottom: 20px; z-index: 4; color: rgba(255,248,233,.58); font-size: 12px; letter-spacing: .12em; }

.quick-band { padding: 22px max(20px, calc((100vw - var(--max)) / 2)); display: grid; grid-template-columns: repeat(4, 1fr); color: #ead9bc; background: #251711; }
.quick-band div { display: grid; gap: 5px; padding: 7px 24px; border-left: 1px solid rgba(240,213,160,.13); }
.quick-band div:first-child { border-left: 0; }
.quick-band strong { color: #fff5df; font-size: 16px; }
.quick-band span { color: rgba(234,217,188,.6); font-size: 12px; }

.section { padding: clamp(76px, 9vw, 120px) max(20px, calc((100vw - var(--max)) / 2)); }
.section-heading { max-width: 810px; margin-bottom: 40px; }
.section-heading h2, .scene-copy h2, .privacy-band h2, .download h2 { margin: 0; font-family: "Songti SC", "STSong", serif; font-size: clamp(34px, 4.5vw, 56px); line-height: 1.25; letter-spacing: .02em; }
.section-heading > p:last-child { color: var(--muted); font-size: 17px; line-height: 1.8; }
.steps { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; list-style: none; }
.steps li { position: relative; min-height: 250px; padding: 30px 24px; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,253,248,.76); }
.steps li::after { content: ""; position: absolute; width: 130px; height: 130px; right: -42px; bottom: -50px; border: 1px solid rgba(201,154,77,.2); border-radius: 50%; }
.steps span { color: var(--gold); font-family: serif; font-size: 13px; letter-spacing: .14em; }
.steps h3, .feature-grid h3 { margin: 28px 0 12px; font-size: 21px; }
.steps p, .feature-grid p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }

.features { background: #ece2d0; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-grid article { padding: 28px; border: 1px solid rgba(84,52,30,.12); border-radius: 22px; background: rgba(255,253,248,.68); }
.feature-grid b { display: grid; place-items: center; width: 48px; height: 48px; color: #f2d6a0; border-radius: 50%; background: var(--wine); font-family: serif; font-size: 20px; }
.feature-grid h3 { margin-top: 22px; }

.scene-showcase { min-height: 720px; display: grid; grid-template-columns: .75fr 1.25fr; color: #f8eed9; background: #1d130e; }
.scene-copy { align-self: center; padding: clamp(60px, 8vw, 110px) clamp(24px, 6vw, 86px); }
.scene-copy > p:not(.kicker) { color: rgba(248,238,217,.65); line-height: 1.8; }
.scene-tabs { display: flex; gap: 9px; margin-top: 30px; }
.scene-tabs button { padding: 10px 17px; color: #d9c4a4; border: 1px solid rgba(240,213,160,.18); border-radius: 999px; background: transparent; cursor: pointer; }
.scene-tabs button.active { color: #28160f; background: var(--gold-light); }
.scene-frame { position: relative; min-height: 720px; margin: 0; overflow: hidden; }
.scene-frame img { width: 100%; height: 100%; min-height: 720px; object-fit: cover; transition: opacity .2s ease; }
.scene-frame::after { content: ""; position: absolute; inset: 0; box-shadow: inset 42px 0 70px rgba(29,19,14,.55); pointer-events: none; }
.scene-frame figcaption { position: absolute; right: 24px; bottom: 20px; z-index: 2; padding: 8px 13px; border-radius: 999px; background: rgba(20,12,8,.65); backdrop-filter: blur(10px); font-size: 12px; }

.app-preview { overflow: hidden; }
.phones { display: grid; grid-template-columns: repeat(3, minmax(0, 280px)); justify-content: center; gap: clamp(16px, 4vw, 48px); }
.phones figure { margin: 0; text-align: center; }
.phones img { width: 100%; aspect-ratio: 1290/2796; object-fit: cover; object-position: top; border: 7px solid #1e1510; border-radius: 30px; box-shadow: 0 24px 55px rgba(64,38,22,.2); }
.phones .raised { transform: translateY(-30px); }
.phones figcaption { margin-top: 14px; color: var(--muted); font-size: 13px; }

.privacy-band { padding: clamp(72px, 9vw, 110px) max(20px, calc((100vw - var(--max)) / 2)); display: grid; grid-template-columns: 1.1fr .9fr; gap: 70px; align-items: center; color: #f5ead6; background: var(--wine); }
.privacy-band > div > p:last-child { color: rgba(245,234,214,.72); line-height: 1.8; }
.privacy-band ul { margin: 0; padding: 0; list-style: none; }
.privacy-band li { padding: 18px 0 18px 30px; border-bottom: 1px solid rgba(245,234,214,.15); position: relative; }
.privacy-band li::before { content: "•"; position: absolute; left: 5px; color: var(--gold-light); }

.download { padding: 110px 20px; text-align: center; background: radial-gradient(circle at 50% 25%, #fffdf7, #eadfc9); }
.download img { width: 84px; height: 84px; margin: 0 auto 24px; border-radius: 20px; object-fit: cover; box-shadow: 0 15px 35px rgba(74,38,20,.16); }
.download > p:not(.kicker) { max-width: 620px; margin: 18px auto 28px; color: var(--muted); line-height: 1.7; }

footer { padding: 36px max(20px, calc((100vw - var(--max)) / 2)); display: grid; grid-template-columns: 1fr auto; gap: 18px; color: rgba(245,234,214,.65); background: #160f0c; font-size: 12px; }
footer strong { color: #f6e6ca; font-size: 16px; letter-spacing: .08em; }
footer p { margin: 8px 0 0; }
footer nav { display: flex; gap: 22px; color: #e5cfaa; }
footer > p { grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid rgba(245,234,214,.1); }

@media (max-width: 900px) {
  .site-nav { position: fixed; inset: 72px 0 auto; display: none; padding: 24px; flex-direction: column; align-items: stretch; background: #f5f0e5; box-shadow: 0 18px 30px rgba(40,20,12,.15); }
  .nav-open .site-nav { display: flex; }
  .nav-toggle { display: block; }
  .hero { grid-template-columns: 1fr; padding-top: 72px; }
  .hero-copy { text-align: center; margin: 0 auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { justify-self: center; width: min(360px, 76vw); margin-top: 54px; }
  .hero-facts { text-align: left; }
  .quick-band, .steps { grid-template-columns: repeat(2, 1fr); }
  .quick-band div:nth-child(3) { border-left: 0; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .scene-showcase { grid-template-columns: 1fr; }
  .scene-frame, .scene-frame img { min-height: 540px; }
  .privacy-band { grid-template-columns: 1fr; gap: 35px; }
}

@media (max-width: 560px) {
  .hero { padding-left: 20px; padding-right: 20px; }
  .hero h1 { font-size: clamp(48px, 15vw, 70px); }
  .hero-facts { grid-template-columns: 1fr; }
  .quick-band, .steps, .feature-grid { grid-template-columns: 1fr; }
  .quick-band div { border-left: 0; border-top: 1px solid rgba(240,213,160,.13); }
  .quick-band div:first-child { border-top: 0; }
  .steps li { min-height: 210px; }
  .scene-frame, .scene-frame img { min-height: 460px; }
  .phones { grid-template-columns: repeat(3, 64vw); justify-content: start; overflow-x: auto; padding: 20px 10vw 35px; scroll-snap-type: x mandatory; }
  .phones figure { scroll-snap-align: center; }
  .phones .raised { transform: none; }
  footer { grid-template-columns: 1fr; }
  footer nav { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
