:root {
  --ink: #07100f;
  --ink-soft: #0d1d1a;
  --paper: #f4eedf;
  --paper-muted: #c7c1b2;
  --jade: #3fc8a4;
  --jade-dark: #146c5b;
  --gold: #e8bd62;
  --gold-light: #ffe7a0;
  --crimson: #b7463e;
  --line: rgba(232, 189, 98, 0.22);
  --serif: "Noto Serif SC", "Songti SC", "STSong", Georgia, serif;
  --sans: Inter, "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--paper);
  background:
    radial-gradient(circle at 85% 10%, rgba(31, 115, 93, 0.15), transparent 28rem),
    var(--ink);
  font-family: var(--sans);
  line-height: 1.65;
}
body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: 0.035;
  pointer-events: none;
  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='.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; }

.lang-zh, .lang-en { display: none; }
html[data-lang="zh"] .lang-zh { display: inline; }
html[data-lang="en"] .lang-en { display: inline; }
html[data-lang="zh"] div.lang-zh,
html[data-lang="zh"] section.lang-zh,
html[data-lang="en"] div.lang-en,
html[data-lang="en"] section.lang-en { display: block; }
html[data-lang="zh"] p.lang-zh,
html[data-lang="en"] p.lang-en { display: block; }

.shell { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  border-bottom: 1px solid transparent;
  transition: background 180ms ease, border-color 180ms ease, backdrop-filter 180ms ease;
}
.site-header.is-scrolled,
.legal-page .site-header {
  background: rgba(5, 15, 14, 0.88);
  border-color: var(--line);
  backdrop-filter: blur(16px);
}
.nav { min-height: 76px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(232, 189, 98, 0.55);
  border-radius: 50%;
  color: var(--gold);
  font: 700 1.55rem var(--serif);
  background: rgba(5, 15, 14, 0.55);
  box-shadow: inset 0 0 18px rgba(232, 189, 98, 0.12);
}
.brand-copy { display: grid; line-height: 1.1; }
.brand-copy strong { color: var(--gold-light); font: 700 1.1rem var(--serif); letter-spacing: 0.12em; }
.brand-copy small { margin-top: 5px; color: var(--paper-muted); font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 25px; }
.nav-links a { color: #e8e3d8; font-size: 0.88rem; text-decoration: none; }
.nav-links a:hover { color: var(--gold-light); }
.language-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(5, 15, 14, 0.48);
}
.language-switch button {
  padding: 6px 10px;
  border: 0;
  border-radius: 999px;
  color: var(--paper-muted);
  background: transparent;
  cursor: pointer;
  font-size: 0.75rem;
}
.language-switch button.is-active { color: var(--ink); background: var(--gold); }
.nav-play { padding: 9px 17px; border: 1px solid rgba(232, 189, 98, 0.55); border-radius: 4px; }

.hero {
  min-height: 780px;
  height: 100svh;
  display: grid;
  align-items: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #091413 url("hero-realm.png") center/cover no-repeat;
}
.hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(3, 11, 10, 0.96) 0%, rgba(3, 11, 10, 0.68) 38%, rgba(3, 11, 10, 0.1) 72%),
    linear-gradient(0deg, var(--ink) 0%, transparent 30%);
}
.hero-content { width: min(690px, 62%); padding-top: 76px; }
.eyebrow { margin: 0 0 18px; color: var(--gold); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase; }
.hero h1 { margin: 0; font: 700 clamp(3.6rem, 8vw, 7.6rem)/0.92 var(--serif); letter-spacing: -0.055em; text-wrap: balance; }
.hero h1 em { color: var(--gold-light); font-style: normal; }
.hero-lead { max-width: 610px; margin: 28px 0 0; color: #ddd8cc; font-size: clamp(1rem, 1.45vw, 1.18rem); }
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }
.button {
  min-width: 160px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1px solid rgba(232, 189, 98, 0.55);
  border-radius: 4px;
  color: var(--gold-light);
  background: rgba(5, 15, 14, 0.5);
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}
.button:hover { transform: translateY(-2px); background: rgba(232, 189, 98, 0.12); }
.button.primary { color: #18120a; border-color: var(--gold); background: linear-gradient(135deg, var(--gold-light), var(--gold)); font-weight: 800; }
.button.primary:hover { background: var(--gold-light); }
.hero-note { margin-top: 18px; color: rgba(244, 238, 223, 0.55); font-size: 0.76rem; }
.scroll-mark { position: absolute; bottom: 25px; left: 50%; color: rgba(244, 238, 223, 0.6); font-size: 0.68rem; letter-spacing: 0.25em; text-transform: uppercase; transform: translateX(-50%); }

.world-index { border-block: 1px solid var(--line); background: rgba(255,255,255,.018); }
.world-index-grid { min-height: 122px; display: grid; grid-template-columns: repeat(4, 1fr); }
.world-index-grid > div { display: flex; align-items: center; justify-content: center; gap: 14px; border-right: 1px solid var(--line); }
.world-index-grid > div:last-child { border-right: 0; }
.world-index strong { color: var(--gold-light); font: 700 1.7rem var(--serif); }
.world-index span { color: var(--paper-muted); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }

.section { padding: 110px 0; }
.section-heading { max-width: 720px; margin-bottom: 52px; }
.section-heading .kicker { color: var(--jade); font-size: 0.76rem; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase; }
.section-heading h2 { margin: 10px 0 14px; font: 700 clamp(2.25rem, 5vw, 4.25rem)/1.08 var(--serif); letter-spacing: -0.035em; }
.section-heading p { margin: 0; color: var(--paper-muted); }
.intro-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(38px, 7vw, 95px); align-items: center; }
.cast-frame { position: relative; padding: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.025); }
.cast-frame::before, .cast-frame::after { position: absolute; width: 52px; height: 52px; content: ""; border-color: var(--gold); }
.cast-frame::before { top: -1px; left: -1px; border-top: 2px solid; border-left: 2px solid; }
.cast-frame::after { right: -1px; bottom: -1px; border-right: 2px solid; border-bottom: 2px solid; }
.cast-frame img { width: 100%; aspect-ratio: 5/3; object-fit: cover; }
.story-copy h2 { margin: 0 0 22px; font: 700 clamp(2.2rem, 4vw, 3.7rem)/1.12 var(--serif); }
.story-copy p { color: var(--paper-muted); }
.story-quote { margin-top: 28px; padding-left: 20px; border-left: 2px solid var(--gold); color: var(--gold-light) !important; font-family: var(--serif); font-size: 1.05rem; }

.realms { padding-top: 70px; }
.realm-grid { display: grid; grid-template-columns: 1.08fr .92fr; grid-template-rows: repeat(2, minmax(260px, 1fr)); gap: 16px; }
.realm-card { min-height: 310px; position: relative; overflow: hidden; border: 1px solid var(--line); background: var(--ink-soft); }
.realm-card.realm-wide { grid-row: 1 / 3; }
.realm-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms cubic-bezier(.2,.7,.2,1); }
.realm-card:hover img { transform: scale(1.035); }
.realm-card::after { position: absolute; inset: 0; content: ""; background: linear-gradient(0deg, rgba(3,11,10,.95), transparent 64%); }
.realm-copy { position: absolute; z-index: 2; right: 26px; bottom: 24px; left: 26px; }
.realm-copy > span { color: var(--jade); font-size: .72rem; letter-spacing: .16em; }
.realm-copy h3 { margin: 3px 0 5px; color: var(--gold-light); font: 700 1.55rem var(--serif); }
.realm-copy p { max-width: 520px; margin: 0; color: #d0cdc4; font-size: .86rem; }

.features { background: linear-gradient(180deg, transparent, rgba(20,108,91,.08), transparent); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card { min-height: 260px; padding: 30px; border: 1px solid var(--line); background: linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.012)); }
.feature-number { color: var(--gold); font: 700 0.76rem var(--sans); letter-spacing: 0.16em; }
.feature-card h3 { margin: 42px 0 12px; font: 700 1.55rem var(--serif); }
.feature-card p { margin: 0; color: var(--paper-muted); font-size: 0.92rem; }

.journey { position: relative; background: linear-gradient(90deg, rgba(20,108,91,.1), transparent 52%); }
.journey-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(45px, 8vw, 120px); align-items: start; }
.journey-heading { position: sticky; top: 125px; margin-bottom: 0; }
.text-link { display: inline-block; margin-top: 24px; color: var(--gold-light); text-decoration: none; border-bottom: 1px solid rgba(232,189,98,.45); }
.journey-steps { margin: 0; padding: 0; list-style: none; counter-reset: journey; }
.journey-steps li { display: grid; grid-template-columns: 76px 1fr; gap: 22px; padding: 30px 0 38px; border-bottom: 1px solid var(--line); }
.journey-steps li:first-child { padding-top: 0; }
.step-mark { width: 66px; height: 66px; display: grid; place-items: center; border: 1px solid rgba(232,189,98,.45); border-radius: 50%; color: var(--gold); font: 700 1.3rem var(--serif); }
.journey-steps small { color: var(--jade); font-size: .68rem; letter-spacing: .18em; }
.journey-steps h3 { margin: 3px 0 8px; font: 700 1.45rem var(--serif); }
.journey-steps p { margin: 0; color: var(--paper-muted); font-size: .9rem; }

.paths { overflow: hidden; }
.path-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.path-card { position: relative; min-height: 360px; overflow: hidden; border: 1px solid var(--line); background: #0c1715; }
.path-card img { position: absolute; inset: auto -32% 0; max-width: 150%; height: 88%; object-fit: contain; transition: transform 250ms ease; filter: drop-shadow(0 18px 20px rgba(0,0,0,.55)); }
.path-card:hover img { transform: scale(1.035) translateY(-4px); }
.path-card::after { position: absolute; inset: 0; content: ""; background: linear-gradient(180deg, rgba(5,15,14,.2), transparent 48%, rgba(5,15,14,.92)); }
.path-label { position: absolute; z-index: 2; left: 22px; right: 22px; bottom: 20px; }
.path-label small { color: var(--jade); letter-spacing: 0.15em; text-transform: uppercase; }
.path-label h3 { margin: 3px 0 0; color: var(--gold-light); font: 700 1.35rem var(--serif); }

.legacy { border-block: 1px solid var(--line); background: radial-gradient(circle at 15% 50%, rgba(232,189,98,.09), transparent 28rem); }
.legacy-grid { display: grid; grid-template-columns: .6fr 1.4fr; gap: clamp(45px, 9vw, 130px); align-items: center; }
.legacy-seal { width: min(300px, 100%); aspect-ratio: 1; position: relative; display: grid; place-items: center; border: 1px solid rgba(232,189,98,.5); border-radius: 50%; box-shadow: inset 0 0 0 18px var(--ink), inset 0 0 0 19px rgba(232,189,98,.2), 0 0 70px rgba(232,189,98,.08); }
.legacy-seal > span { color: var(--gold-light); font: 700 clamp(5rem, 10vw, 8rem)/1 var(--serif); }
.legacy-seal small { position: absolute; right: -10px; bottom: 28px; padding: 8px 11px; color: var(--ink); background: var(--crimson); font-size: .62rem; font-weight: 900; letter-spacing: .13em; }
.legacy h2 { margin: 0 0 18px; font: 700 clamp(2.3rem, 4.7vw, 4rem)/1.08 var(--serif); }
.legacy p:not(.eyebrow) { max-width: 680px; color: var(--paper-muted); }
.legacy-points { margin-top: 30px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.legacy-points > span { padding: 19px 12px 0 0; color: var(--paper-muted); font-size: .78rem; }
.legacy-points b { display: block; margin-bottom: 5px; color: var(--jade); font-size: .7rem; letter-spacing: .14em; }

.faq-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(45px, 9vw, 130px); align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 23px 46px 23px 0; color: var(--paper); cursor: pointer; list-style: none; font: 700 1.06rem var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { position: absolute; top: 20px; right: 4px; content: "+"; color: var(--gold); font: 400 1.5rem/1 var(--sans); transition: transform 160ms ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { max-width: 650px; margin: -4px 0 24px; color: var(--paper-muted); font-size: .9rem; }

.cta { padding: 110px 0 130px; text-align: center; }
.cta-panel { padding: 74px 24px; border: 1px solid var(--line); background: radial-gradient(circle at 50% 120%, rgba(63,200,164,.2), transparent 55%), rgba(255,255,255,.025); }
.cta h2 { max-width: 760px; margin: 0 auto 18px; font: 700 clamp(2.3rem, 5vw, 4.2rem)/1.08 var(--serif); }
.cta p { max-width: 620px; margin: 0 auto 30px; color: var(--paper-muted); }
.site-footer { padding: 36px 0; border-top: 1px solid var(--line); color: var(--paper-muted); font-size: 0.78rem; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--gold-light); }

.legal-main { padding: 145px 0 100px; }
.legal-hero { max-width: 800px; padding-bottom: 52px; border-bottom: 1px solid var(--line); }
.legal-hero h1 { margin: 9px 0 15px; font: 700 clamp(2.8rem, 6vw, 5rem)/1.05 var(--serif); }
.legal-hero p { color: var(--paper-muted); }
.legal-content { max-width: 840px; padding-top: 44px; }
.legal-content section { padding: 25px 0; border-bottom: 1px solid rgba(232,189,98,.12); }
.legal-content h2 { margin: 0 0 10px; color: var(--gold-light); font: 700 1.35rem var(--serif); }
.legal-content h3 { margin: 20px 0 8px; color: var(--paper); font-size: 1rem; }
.legal-content p, .legal-content li { color: var(--paper-muted); }
.legal-content ul { padding-left: 1.25rem; }
.policy-callout { margin-top: 34px; padding: 20px 22px; border: 1px solid rgba(63,200,164,.28); background: rgba(63,200,164,.06); color: #d9ede7; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

@media (max-width: 860px) {
  .nav-links a:not(.nav-play) { display: none; }
  .hero { min-height: 720px; background-position: 62% center; }
  .hero-content { width: 82%; }
  .hero::before { background: linear-gradient(90deg, rgba(3,11,10,.96), rgba(3,11,10,.6) 58%, rgba(3,11,10,.15)), linear-gradient(0deg, var(--ink), transparent 35%); }
  .intro-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .realm-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .realm-card.realm-wide { grid-row: auto; }
  .realm-card { min-height: 360px; }
  .journey-layout, .faq-layout { grid-template-columns: 1fr; }
  .journey-heading { position: static; }
  .path-grid { grid-template-columns: 1fr 1fr; }
  .legacy-grid { grid-template-columns: .7fr 1.3fr; gap: 50px; }
}
@media (max-width: 560px) {
  .shell { width: min(100% - 28px, 1160px); }
  .nav { gap: 12px; }
  .brand-copy small { display: none; }
  .nav-play { display: none; }
  .hero { min-height: 690px; background-position: 68% center; }
  .hero-content { width: 100%; }
  .hero h1 { font-size: clamp(3rem, 14.5vw, 4rem); }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .section { padding: 78px 0; }
  .world-index-grid { grid-template-columns: 1fr 1fr; padding-block: 10px; }
  .world-index-grid > div { min-height: 78px; border-right: 0; border-bottom: 1px solid var(--line); justify-content: flex-start; padding-left: 16px; }
  .world-index-grid > div:nth-last-child(-n+2) { border-bottom: 0; }
  .feature-grid, .path-grid { grid-template-columns: 1fr; }
  .realm-card { min-height: 330px; }
  .journey-steps li { grid-template-columns: 58px 1fr; gap: 15px; }
  .step-mark { width: 52px; height: 52px; }
  .path-card { min-height: 330px; }
  .legacy-grid { grid-template-columns: 1fr; }
  .legacy-seal { width: 210px; margin-inline: auto; }
  .legacy-points { grid-template-columns: 1fr; }
  .legacy-points > span { padding: 14px 0; border-bottom: 1px solid rgba(232,189,98,.12); }
  .footer-row { align-items: flex-start; flex-direction: column; }
}
