:root {
  color-scheme: dark;
  --ink: #f3ead8;
  --ink-soft: #d5c6ae;
  --muted: #9b8e7b;
  --gold: #c9a365;
  --gold-bright: #e0bd7d;
  --paper: #17110b;
  --paper-deep: #0e0b08;
  --panel: #211810;
  --line: rgba(211, 174, 112, 0.22);
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 74% 18%, rgba(143, 83, 31, .16), transparent 28rem),
    linear-gradient(180deg, #191109 0%, var(--paper-deep) 48%, #171009 100%);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
}
body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: .18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
}
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }

.site-header {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 5;
  display: flex;
  width: min(1240px, calc(100% - 48px));
  padding: 28px 0;
  align-items: center;
  justify-content: space-between;
  transform: translateX(-50%);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand span:last-child { display: grid; gap: 2px; }
.brand strong { font-size: 17px; font-weight: 500; letter-spacing: .16em; }
.brand small { color: var(--muted); font: 10px/1.2 var(--sans); letter-spacing: .18em; }
.brand-seal {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #24140a;
  background: var(--gold);
  border-radius: 50% 46% 48% 44%;
  font-size: 18px;
  transform: rotate(-3deg);
}
.site-header nav { display: flex; gap: 30px; }
.site-header nav a { color: var(--ink-soft); font: 12px var(--sans); letter-spacing: .12em; text-decoration: none; }
.site-header nav a:hover { color: var(--gold-bright); }

main { overflow: hidden; }
.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  grid-template-columns: minmax(0, .88fr) minmax(380px, .72fr);
  gap: clamp(40px, 8vw, 120px);
  align-items: center;
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 124px 0 76px;
}
.hero-copy { z-index: 2; padding-left: clamp(0px, 4vw, 52px); }
.kicker, .section-mark { color: var(--gold); font: 600 11px/1.4 var(--sans); letter-spacing: .28em; text-transform: uppercase; }
.wish-line { margin: 36px 0 20px; color: var(--ink-soft); font-size: clamp(16px, 1.5vw, 20px); line-height: 1.9; letter-spacing: .12em; }
.hero h1 {
  margin: 0 0 28px;
  font-size: clamp(76px, 10vw, 152px);
  font-weight: 400;
  letter-spacing: .18em;
  line-height: .92;
  text-shadow: 0 10px 50px rgba(0, 0, 0, .5);
}
.lead { margin: 0; color: var(--ink-soft); font-size: clamp(18px, 2vw, 27px); line-height: 1.75; }
.purchase-row { display: flex; gap: 24px; align-items: center; margin-top: 42px; }
.price { display: grid; gap: 3px; font-family: var(--sans); }
.price span { color: var(--muted); font-size: 11px; }
.price strong { font-size: 25px; font-weight: 600; }
.fine-print, .boundary { max-width: 620px; color: #827566; font: 12px/1.8 var(--sans); }
.fine-print { margin-top: 18px; }

.primary, .secondary, .ghost {
  min-height: 48px;
  padding: 13px 24px;
  border: 1px solid var(--gold);
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 14px;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.primary { color: #1c1209; background: var(--gold); font-weight: 650; }
.secondary { color: var(--ink); background: transparent; }
.ghost { color: var(--muted); background: transparent; border-color: var(--line); }
.primary:hover, .secondary:hover { transform: translateY(-2px); background: var(--gold-bright); color: #1c1209; }
button:disabled { cursor: wait; opacity: .55; }
.full { width: 100%; }

.shrine-stage { position: relative; z-index: 1; width: min(100%, 480px); margin: 0 auto; }
.shrine-stage::before, .shrine-stage::after {
  position: absolute;
  z-index: -1;
  content: "";
  border: 1px solid var(--line);
  border-radius: 50% 50% 8px 8px;
}
.shrine-stage::before { inset: -24px -24px 48px; }
.shrine-stage::after { inset: -48px -48px 24px; opacity: .46; }
.shrine-stage img { display: block; width: 100%; max-height: 72svh; object-fit: cover; object-position: center 46%; box-shadow: 0 42px 100px rgba(0, 0, 0, .55); }
.shrine-stage figcaption { display: flex; gap: 12px; align-items: center; padding-top: 18px; color: var(--muted); font: 11px var(--sans); letter-spacing: .16em; }
.shrine-stage figcaption span { color: var(--gold); }
.halo { position: absolute; top: 18%; left: 50%; z-index: -1; width: 88%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: rgba(181, 113, 44, .14); filter: blur(24px); }
.scroll-cue { position: absolute; bottom: 26px; left: 0; display: flex; gap: 12px; align-items: center; color: var(--muted); font: 10px var(--sans); letter-spacing: .16em; text-decoration: none; }
.scroll-cue i { display: block; width: 44px; height: 1px; background: var(--line); }

.manifesto, .principles, .product-story, .wish-room, .closing, footer {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}
.manifesto { display: grid; grid-template-columns: .45fr 1fr; gap: 40px; padding: 150px 0 90px; border-top: 1px solid var(--line); }
.manifesto-copy h2, .product-detail h2, .wish-room h2 { margin: 0; font-size: clamp(34px, 5.5vw, 72px); font-weight: 400; line-height: 1.35; letter-spacing: .04em; }
.manifesto-copy > p { max-width: 650px; margin: 42px 0 0; color: var(--muted); font-size: 18px; line-height: 2; }

.principles { display: grid; grid-template-columns: repeat(3, 1fr); padding: 0 0 150px; }
.principles article { min-height: 260px; padding: 36px; border: 1px solid var(--line); border-right: 0; background: rgba(255, 255, 255, .018); }
.principles article:last-child { border-right: 1px solid var(--line); }
.principles span { color: var(--gold); font: 11px var(--sans); }
.principles h3 { margin: 52px 0 18px; font-size: 27px; font-weight: 400; letter-spacing: .1em; }
.principles p { color: var(--muted); font-size: 15px; line-height: 1.9; }

.product-story { display: grid; grid-template-columns: .75fr 1fr; gap: clamp(48px, 9vw, 130px); align-items: center; padding: 130px 0; }
.product-visual { position: relative; }
.product-visual::before { position: absolute; inset: -18px; content: ""; border: 1px solid var(--line); }
.product-visual img { display: block; width: 100%; max-height: 720px; object-fit: cover; object-position: center 47%; }
.product-detail h2 { margin: 24px 0 44px; font-size: clamp(32px, 4vw, 55px); }
.deliverable-list { margin: 0 0 36px; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.deliverable-list li { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.deliverable-list span { color: var(--muted); font: 12px var(--sans); }
.deliverable-list strong { font-size: 15px; font-weight: 400; }

.wish-room { display: grid; grid-template-columns: .8fr 1fr; gap: clamp(48px, 8vw, 110px); padding: 140px 0; border-top: 1px solid var(--line); }
.wish-room h2 { margin: 24px 0; font-size: clamp(34px, 4.5vw, 62px); }
.wish-room > div > p:last-child { color: var(--muted); font-size: 16px; line-height: 1.9; }
.wish-form { display: grid; align-content: start; padding: 28px; border: 1px solid var(--line); background: rgba(255,255,255,.02); }
.wish-form label, dialog > form > label:not(.consent) { margin-bottom: 12px; color: var(--ink-soft); font: 13px var(--sans); }
textarea, input {
  width: 100%;
  color: var(--ink);
  background: rgba(8, 6, 4, .52);
  border: 1px solid var(--line);
  border-radius: 0;
  outline: none;
}
textarea { min-height: 180px; padding: 18px; resize: vertical; line-height: 1.8; }
input { padding: 14px; }
textarea:focus, input:focus { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.wish-form-footer { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin-top: 18px; }
.wish-form-footer span { color: var(--muted); font: 11px var(--sans); }
.form-result { color: var(--gold-bright); font: 13px/1.7 var(--sans); }

.closing { display: grid; justify-items: center; padding: 150px 0; text-align: center; border-top: 1px solid var(--line); }
.brand-seal.large { width: 54px; height: 54px; margin-bottom: 34px; font-size: 26px; }
.closing p { margin: 0; color: var(--ink-soft); font-size: clamp(27px, 4vw, 52px); line-height: 1.65; }
.closing strong { margin-top: 34px; color: var(--gold-bright); font-size: 18px; font-weight: 400; letter-spacing: .2em; }

footer { display: grid; grid-template-columns: 1fr 2fr auto; gap: 30px; align-items: end; padding: 44px 0; color: var(--muted); border-top: 1px solid var(--line); font: 11px/1.7 var(--sans); }
.footer-brand { display: grid; gap: 3px; }

dialog { width: min(590px, calc(100% - 24px)); max-height: calc(100svh - 24px); padding: 0; color: var(--ink); background: #1d150e; border: 1px solid var(--line); border-radius: 0; box-shadow: 0 30px 120px rgba(0,0,0,.7); }
dialog::backdrop { background: rgba(5,4,3,.84); backdrop-filter: blur(7px); }
dialog form { position: relative; padding: 42px; }
.dialog-close { position: absolute; top: 18px; right: 20px; color: var(--muted); background: none; border: 0; font-size: 28px; }
dialog h2 { margin: 18px 0; font-size: 34px; font-weight: 400; }
.dialog-intro { color: var(--muted); font-size: 14px; line-height: 1.8; }
.order-summary { display: flex; justify-content: space-between; gap: 20px; margin: 24px 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-family: var(--sans); }
.order-summary span { color: var(--muted); font-size: 13px; }
.order-summary strong { color: var(--gold-bright); }
dialog input { margin-bottom: 18px; }
.consent { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; margin: 4px 0 22px; color: var(--muted); font: 12px/1.7 var(--sans); }
.consent input { width: auto; margin: 4px 0 0; }
.pending-order { display: grid; gap: 8px; margin-top: 22px; padding: 18px; border: 1px solid var(--line); font: 12px/1.6 var(--sans); }
.pending-order span { color: var(--muted); }
.pending-order a { color: var(--gold-bright); }

.delivery, .admin { width: min(1060px, calc(100% - 40px)); margin: 0 auto; padding: 80px 0 120px; }
.delivery h1, .admin h1 { margin: 20px 0; font-size: clamp(52px, 9vw, 105px); font-weight: 400; letter-spacing: .1em; line-height: 1; }
.delivery > .brand { margin-bottom: 70px; }
.delivery-hero { display: grid; grid-template-columns: 1fr 320px; gap: 70px; align-items: center; padding-bottom: 90px; }
.delivery-hero img { width: 100%; max-height: 520px; object-fit: cover; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.delivery-section { padding: 70px 0; border-top: 1px solid var(--line); }
.delivery-section h2, .install h2, .delivery-note h2 { font-size: clamp(28px, 4vw, 46px); font-weight: 400; }
.downloads, .orders { display: grid; gap: 12px; margin: 42px 0; }
.download, .order { display: flex; justify-content: space-between; gap: 20px; padding: 22px; color: var(--ink); text-decoration: none; border: 1px solid var(--line); background: var(--panel); }
.download span { display: grid; gap: 8px; }
.download small { color: var(--muted); font: 10px var(--sans); letter-spacing: .18em; }
.download strong { color: var(--gold-bright); }
.install { margin: 60px 0; padding: 34px; border: 1px solid var(--line); }
.install button { margin: 8px 8px 8px 0; }
.install > p:not(.section-mark), .delivery-note p { color: var(--muted); line-height: 1.9; }
.delivery-note { padding: 70px 0; border-top: 1px solid var(--line); }
.admin h1 { max-width: 900px; font-size: clamp(42px, 7vw, 86px); letter-spacing: 0; }
.key-form { display: flex; gap: 10px; max-width: 560px; margin: 38px 0; }
.decision-card { padding: 28px; border-left: 3px solid var(--gold); background: var(--panel); }
.decision-card span { color: var(--gold); font-family: var(--sans); }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.metrics article { display: grid; gap: 12px; padding: 20px; border: 1px solid var(--line); background: var(--panel); }
.metrics span, .order span { color: var(--muted); font: 12px var(--sans); }
.metrics strong { font: 700 28px var(--sans); }
.order p { color: var(--muted); }
.order-actions button { padding: 10px 14px; color: var(--ink); background: transparent; border: 1px solid var(--line); }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 820px) {
  .site-header { width: calc(100% - 32px); padding: 18px 0; }
  .site-header nav { display: none; }
  .hero { grid-template-columns: 1fr; width: calc(100% - 32px); padding: 112px 0 82px; }
  .shrine-stage { order: -1; width: min(82vw, 390px); }
  .shrine-stage img { max-height: 58svh; }
  .hero-copy { padding: 0; text-align: center; }
  .hero h1 { font-size: clamp(68px, 22vw, 108px); }
  .purchase-row { justify-content: center; }
  .fine-print { margin-inline: auto; }
  .scroll-cue { display: none; }
  .manifesto, .product-story, .wish-room { grid-template-columns: 1fr; }
  .manifesto, .principles, .product-story, .wish-room, .closing, footer { width: calc(100% - 32px); }
  .manifesto { padding-top: 100px; }
  .principles { grid-template-columns: 1fr; }
  .principles article { min-height: 0; border-right: 1px solid var(--line); border-bottom: 0; }
  .principles article:last-child { border-bottom: 1px solid var(--line); }
  .principles h3 { margin-top: 25px; }
  .product-visual { width: min(78vw, 420px); margin: 0 auto; }
  .wish-room { padding: 100px 0; }
  footer { grid-template-columns: 1fr; align-items: start; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .delivery-hero { grid-template-columns: 1fr; }
  .delivery-hero img { order: -1; width: min(76vw, 360px); margin: 0 auto; }
}

@media (max-width: 520px) {
  .brand strong { font-size: 14px; }
  .hero { gap: 52px; }
  .wish-line { margin-top: 20px; }
  .lead { font-size: 17px; }
  .purchase-row { flex-direction: column; gap: 14px; }
  .primary, .secondary { width: 100%; }
  .shrine-stage::before { inset: -12px -12px 30px; }
  .shrine-stage::after { display: none; }
  .manifesto-copy h2 { font-size: 36px; }
  .product-story { padding: 90px 0; }
  .wish-form { padding: 20px; }
  .wish-form-footer { flex-direction: column; align-items: stretch; }
  .closing { padding: 100px 0; }
  .closing strong { font-size: 14px; letter-spacing: .1em; }
  dialog form { padding: 34px 22px 26px; }
  .download, .order, .key-form { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
