/* A8之路 — design system
   Pure black ground, 鎏金 gilding. Gold is a line-weight material (rules,
   frames, the route, light itself), never a fill for large surfaces. */

:root {
  --ground: #070706;
  --surface: #14110A;
  --surface-2: #1C1810;
  --gold: #C9A227;
  --gold-hi: #EBCB73;
  --gold-dim: rgba(201, 162, 39, 0.35);
  --gold-faint: rgba(201, 162, 39, 0.14);
  --ink: #EDE6D3;
  --muted: #90887A;
  --line: rgba(160, 148, 120, 0.16);
  --serif: "Noto Serif SC", "Songti SC", serif;
  --latin-display: "Cinzel", "Times New Roman", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Code", Consolas, monospace;
  --maxw: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--gold); color: #0A0903; }

a { color: var(--gold-hi); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

:focus-visible {
  outline: 2px solid var(--gold-hi);
  outline-offset: 3px;
  border-radius: 2px;
}

img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- shared type ---------- */

.eyebrow {
  font-family: var(--latin-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}

.display {
  font-family: var(--serif);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.02em;
}

.latin { font-family: var(--latin-display); letter-spacing: 0.14em; }

/* thin gilded rule with a center diamond, used between sections */
.rule {
  border: none;
  height: 17px;
  margin: 0 auto;
  max-width: var(--maxw);
  position: relative;
}
.rule::before {
  content: "";
  position: absolute;
  left: 24px; right: 24px; top: 8px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim) 20%, var(--gold-dim) 80%, transparent);
}
.rule::after {
  content: "";
  position: absolute;
  left: 50%; top: 5px;
  width: 7px; height: 7px;
  transform: translateX(-50%) rotate(45deg);
  background: var(--ground);
  border: 1px solid var(--gold);
}

/* ---------- header ---------- */

.site-head {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 10;
}
.site-head .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 22px;
  padding-bottom: 22px;
}

.seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--gold);
  border-radius: 9px;
  background: linear-gradient(135deg, #E8C766 0%, #C9A227 55%, #9A7A1C 100%);
  color: #171205;
  font-family: var(--serif);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0;
  line-height: 1.1;
  text-align: center;
  flex: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 19px;
}
.brand-sub {
  font-family: var(--latin-display);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--muted);
  display: block;
  margin-top: 1px;
}

.head-spacer { flex: 1; }

.lang-toggle {
  font-family: var(--latin-display);
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--muted);
  background: none;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 6px 10px;
  cursor: pointer;
}
.lang-toggle:hover { color: var(--gold-hi); border-color: var(--gold-dim); }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.08em;
  padding: 13px 30px;
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.btn:hover { text-decoration: none; }

.btn-gold {
  color: var(--gold-hi);
  background: var(--gold-faint);
  border: 1px solid var(--gold);
}
.btn-gold:hover {
  background: var(--gold);
  color: #171205;
  box-shadow: 0 0 30px rgba(201, 162, 39, 0.35);
}
/* gilded sweep across gold buttons */
.btn-gold::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 42%, rgba(245, 225, 164, 0.35) 50%, transparent 58%);
  transform: translateX(-130%);
}
.btn-gold:hover::after { animation: sheen-sweep 0.9s ease; }

.btn-ghost {
  color: var(--muted);
  background: transparent;
  border: 1px solid rgba(160, 148, 120, 0.35);
}
.btn-ghost:hover { color: var(--ink); border-color: var(--muted); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 94vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  /* candle-lit black: faint warm glow upper right, vignette below */
  background:
    radial-gradient(1100px 650px at 78% 8%, rgba(201, 162, 39, 0.07), transparent 62%),
    radial-gradient(900px 600px at 10% 95%, rgba(201, 162, 39, 0.04), transparent 60%),
    var(--ground);
}

.fx-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.route-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 56px;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 80px;
}

.hero h1 {
  font-size: clamp(52px, 8vw, 96px);
  margin: 18px 0 6px;
}
/* living gilding: the gradient itself slowly breathes */
.hero h1 .gilded {
  background: linear-gradient(100deg, #C9A227 10%, #F5E1A4 38%, #C9A227 55%, #9A7A1C 78%, #E8C766 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-latin {
  font-family: var(--latin-display);
  font-weight: 600;
  font-size: clamp(15px, 2vw, 20px);
  letter-spacing: 0.42em;
  color: var(--ink);
  margin-bottom: 26px;
}

.hero-tagline {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(18px, 2.4vw, 24px);
  color: var(--gold-hi);
  margin-bottom: 14px;
}

.hero-desc {
  color: var(--muted);
  max-width: 46ch;
  margin-bottom: 36px;
}

.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

/* the pass, framed like an exhibit; JS adds 3D tilt */
.hero-card {
  position: relative;
  justify-self: center;
  width: min(340px, 78vw);
  perspective: 900px;
}
.hero-card .card-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--gold-dim);
  border-radius: 14px;
  transform-style: preserve-3d;
  transition: transform 0.18s ease-out, box-shadow 0.3s;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.7),
    0 0 60px rgba(201, 162, 39, 0.12);
  will-change: transform;
}
.hero-card .card-frame img { border-radius: 13px; }
/* traveling sheen across the card face */
.hero-card .card-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(245, 225, 164, 0.16) 50%, transparent 60%);
  transform: translateX(-130%);
  pointer-events: none;
}
.hero-card::after {
  /* echo frame, offset like a mounting mat */
  content: "";
  position: absolute;
  inset: -14px;
  border: 1px solid var(--gold-faint);
  border-radius: 18px;
  pointer-events: none;
}
.hero-card figcaption {
  margin-top: 22px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.1em;
}

/* ---------- live stats ---------- */

.stats {
  padding: 68px 0 60px;
}
.stats .wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.stat {
  border: 1px solid var(--line);
  border-top: 1px solid var(--gold-dim);
  background: linear-gradient(180deg, rgba(28, 24, 16, 0.75), rgba(20, 17, 10, 0.25));
  padding: 26px 28px 22px;
  border-radius: 4px;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.stat:hover {
  border-color: var(--gold-dim);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(201, 162, 39, 0.08);
  transform: translateY(-3px);
}
.stat .tier-latin {
  font-family: var(--latin-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--gold);
}
.stat .num {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 44px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  margin: 6px 0 2px;
}
.stat .num .of { font-size: 20px; font-weight: 700; color: var(--muted); }
.stat .cap { font-size: 13px; color: var(--muted); }

/* ---------- tiers ---------- */

.section { padding: 80px 0; }
.section-head { max-width: 620px; margin-bottom: 48px; }
.section-head h2 {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(30px, 4vw, 40px);
  margin: 12px 0 14px;
}
.section-head p { color: var(--muted); }

.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.tier-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(28, 24, 16, 0.6), rgba(10, 9, 6, 0.25));
  padding: 26px 26px 30px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.35s, box-shadow 0.35s, transform 0.35s;
}
.tier-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-dim);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 40px rgba(201, 162, 39, 0.1);
}
.tier-card.vvip { border-color: var(--gold-dim); box-shadow: 0 0 40px rgba(201, 162, 39, 0.08); }

.tier-card .img-frame {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  margin-bottom: 22px;
}
.tier-card .img-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(245, 225, 164, 0.14) 50%, transparent 60%);
  transform: translateX(-130%);
  pointer-events: none;
}
.tier-card:hover .img-frame::after { animation: sheen-sweep 1s ease; }
.tier-card .img-frame img { transition: transform 0.6s cubic-bezier(0.2, 0.6, 0.2, 1); }
.tier-card:hover .img-frame img { transform: scale(1.04); }

.tier-card .tier-latin {
  font-family: var(--latin-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.3em;
  color: var(--gold-hi);
}
.tier-card .supply {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.12em;
  margin: 4px 0 18px;
}
.tier-card ul { list-style: none; margin-top: auto; }
.tier-card li {
  padding: 9px 0 9px 22px;
  position: relative;
  font-size: 15px;
  border-top: 1px solid var(--line);
}
.tier-card li::before {
  content: "";
  position: absolute;
  left: 2px; top: 17px;
  width: 6px; height: 6px;
  transform: rotate(45deg);
  border: 1px solid var(--gold);
}

/* ---------- mint radar teaser ---------- */

.radar-preview {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 24px;
  min-height: 60px;
}
.radar-preview:empty::before {
  content: "";
  grid-column: 1 / -1;
  height: 60px;
}
.rp-row {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: linear-gradient(180deg, rgba(28,24,16,0.4), rgba(20,17,10,0.1));
}
.rp-img { width: 40px; height: 40px; border-radius: 6px; overflow: hidden; flex: none; border: 1px solid var(--line); background: var(--surface); display: flex; align-items: center; justify-content: center; }
.rp-img img { width: 100%; height: 100%; object-fit: cover; }
.rp-ph { font-family: var(--serif); font-weight: 900; color: var(--muted); font-size: 14px; }
.rp-nm { flex: 1; min-width: 0; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-ch { display: block; font-family: var(--latin-display); font-size: 10px; letter-spacing: 0.16em; color: var(--gold); text-transform: uppercase; margin-top: 2px; }
.rp-pr { font-family: var(--mono); font-size: 13px; color: var(--gold-hi); flex: none; }

@media (max-width: 700px) { .radar-preview { grid-template-columns: 1fr; } }

/* ---------- about ---------- */

.about .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
.about-quote {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(28px, 3.6vw, 38px);
  line-height: 1.4;
  border-left: 2px solid var(--gold);
  padding-left: 28px;
}
.about-quote .latin-line {
  display: block;
  font-family: var(--latin-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.24em;
  color: var(--gold);
  margin-top: 18px;
}
.about-body p { color: var(--muted); margin-bottom: 18px; }
.about-body strong { color: var(--ink); font-weight: 500; }

/* ---------- steps (a real sequence) ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step {
  padding: 26px 26px 30px;
  border-top: 1px solid var(--gold-dim);
  background: linear-gradient(180deg, rgba(28, 24, 16, 0.45), transparent);
  transition: background 0.3s;
}
.step:hover { background: linear-gradient(180deg, rgba(28, 24, 16, 0.8), transparent); }
.step .n {
  font-family: var(--latin-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--gold);
  letter-spacing: 0.2em;
}
.step h3 { font-family: var(--serif); font-weight: 700; font-size: 20px; margin: 10px 0 8px; }
.step p { color: var(--muted); font-size: 15px; }

.enter-cta { margin-top: 48px; text-align: center; }

/* ---------- footer ---------- */

.site-foot {
  border-top: 1px solid var(--line);
  padding: 44px 0 56px;
  margin-top: 40px;
}
.site-foot .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 40px;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: var(--muted);
}
.contract {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--muted);
  word-break: break-all;
}
.foot-links { display: flex; gap: 26px; }

/* ---------- scroll reveals (JS adds .in) ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.6, 0.2, 1);
  transition-delay: var(--rd, 0s);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- motion ---------- */

@keyframes sheen-sweep { to { transform: translateX(130%); } }

@media (prefers-reduced-motion: no-preference) {
  .route-line {
    stroke-dasharray: 2400;
    stroke-dashoffset: 2400;
    animation: route-draw 2.8s cubic-bezier(0.5, 0, 0.2, 1) 0.3s forwards;
  }
  .route-station {
    opacity: 0;
    animation: station-in 0.7s ease forwards;
  }
  .route-station:nth-of-type(2) { animation-delay: 1.2s; }
  .route-station:nth-of-type(3) { animation-delay: 2.0s; }
  .route-station:nth-of-type(4) { animation-delay: 2.8s; }
  .hero-fade { opacity: 0; transform: translateY(14px); animation: rise-in 0.9s ease 0.15s forwards; }
  .hero-card { opacity: 0; animation: rise-in 1.1s ease 0.5s forwards; }
  .hero h1 .gilded { animation: gild-breathe 7s ease-in-out infinite; }
  .hero-card .card-frame::after { animation: sheen-sweep 2.4s ease 1.8s; }
  .hero-card:hover .card-frame::after { animation: sheen-sweep 1.1s ease; }
}

@keyframes route-draw { to { stroke-dashoffset: 0; } }
@keyframes station-in { to { opacity: 1; } }
@keyframes rise-in { to { opacity: 1; transform: none; } }
@keyframes gild-breathe {
  0%, 100% { background-position: 0% 0; }
  50% { background-position: 100% 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .fx-canvas { display: none; }
  .route-pulse { display: none; }
  .btn-gold::after, .card-frame::after, .img-frame::after { display: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 940px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 130px; gap: 48px; }
  .hero-card { order: -1; width: min(260px, 70vw); }
  .stats .wrap, .tiers, .steps { grid-template-columns: 1fr; }
  .about .wrap { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 520px) {
  .brand-name { font-size: 16px; }
  .btn { width: 100%; text-align: center; }
  .hero-ctas { flex-direction: column; }
}
