@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&family=ZCOOL+XiaoWei&display=swap");

:root {
  --text: #4d3828;
  --muted: #77604f;
  --line: rgba(110, 80, 54, 0.18);
  --paper: rgba(251, 243, 229, 0.92);
  --shadow: 0 20px 44px rgba(51, 34, 22, 0.14);
  --font-sans: "Nunito", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --font-serif: "ZCOOL XiaoWei", "Songti SC", serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 243, 212, 0.2), transparent 18%),
    linear-gradient(180deg, #183053 0%, #556b8b 20%, #b77970 62%, #f1d9b0 100%);
}

.page-shell {
  padding: 28px 24px 90px;
}

.topbar,
.scene-card,
.card {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.topbar {
  position: sticky;
  top: 18px;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: min(1120px, 100%);
  margin: 0 auto 28px;
  padding: 14px 18px;
  border-radius: 999px;
  background: rgba(31, 31, 44, 0.42);
  backdrop-filter: blur(16px);
}

.brand,
.nav-link {
  color: #fff0d9;
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark,
.step {
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(180deg, #f0c170 0%, #da9a68 100%);
  color: #5a3a25;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nav-link {
  padding: 8px 12px;
  border-radius: 999px;
}

.nav-link:hover,
.nav-link.is-active {
  background: rgba(255, 240, 217, 0.12);
}

.app {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.95fr);
  gap: 28px;
  align-items: center;
  min-height: calc(100vh - 150px);
}

.eyebrow,
.card-kicker {
  margin: 0 0 14px;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #f4d3a1;
}

.hero h1,
.section-heading h2,
.card h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1.06;
  color: #fff0dc;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  color: #fff0dc;
}

.intro,
.card p {
  line-height: 1.85;
}

.intro {
  color: rgba(255, 238, 213, 0.86);
}

.highlight {
  color: #ffe4a8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  background: linear-gradient(180deg, #f0c170 0%, #d99066 100%);
  color: #573724;
}

.button.secondary {
  border: 1px solid rgba(255, 239, 214, 0.22);
  background: rgba(255, 245, 226, 0.08);
  color: #fff3de;
}

.scene-card {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border-radius: 40px;
  background: linear-gradient(180deg, rgba(22, 40, 67, 0.96) 0%, rgba(84, 103, 136, 0.92) 32%, rgba(207, 138, 101, 0.9) 100%);
}

.moon,
.castle,
.note {
  position: absolute;
}

.moon {
  top: 60px;
  right: 68px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff9e2, #f3dfaa);
  box-shadow: 0 0 0 26px rgba(243, 223, 170, 0.12);
}

.cloud {
  height: 30px;
  border-radius: 999px;
  background: rgba(255, 244, 224, 0.14);
  box-shadow: 20px -8px 0 8px rgba(255, 244, 224, 0.12), 50px -2px 0 9px rgba(255, 244, 224, 0.14);
}

.cloud-a {
  top: 126px;
  left: 64px;
  width: 92px;
}

.cloud-b {
  top: 98px;
  left: 230px;
  width: 100px;
}

.castle {
  left: 50%;
  bottom: 90px;
  width: 300px;
  height: 240px;
  transform: translateX(-50%);
}

.castle-body,
.castle-wing,
.castle-tower {
  position: absolute;
  background: linear-gradient(180deg, #766056 0%, #4d3e37 100%);
  border: 1px solid rgba(249, 223, 181, 0.14);
}

.castle-body {
  left: 76px;
  bottom: 70px;
  width: 150px;
  height: 90px;
  border-radius: 28px 24px 18px 20px;
}

.castle-wing {
  left: 24px;
  bottom: 92px;
  width: 90px;
  height: 72px;
  border-radius: 22px 18px 18px 18px;
}

.castle-tower {
  width: 44px;
  border-radius: 16px 16px 10px 10px;
}

.tower-a {
  left: 100px;
  bottom: 146px;
  height: 72px;
}

.tower-b {
  right: 62px;
  bottom: 136px;
  height: 82px;
}

.castle-window {
  position: absolute;
  width: 12px;
  height: 18px;
  border-radius: 6px;
  background: linear-gradient(180deg, #fff0aa 0%, #f0b464 100%);
  box-shadow: 0 0 10px rgba(255, 214, 125, 0.28);
}

.window-a {
  left: 100px;
  bottom: 110px;
}

.window-b {
  left: 144px;
  bottom: 104px;
}

.window-c {
  right: 86px;
  bottom: 112px;
}

.castle-leg {
  position: absolute;
  bottom: 20px;
  width: 20px;
  height: 82px;
  border-radius: 999px;
  background: linear-gradient(180deg, #7e6959 0%, #433530 100%);
}

.leg-a {
  left: 86px;
  transform: rotate(12deg);
}

.leg-b {
  left: 146px;
  transform: rotate(-8deg);
}

.leg-c {
  right: 88px;
  transform: rotate(10deg);
}

.note {
  padding: 14px 16px;
  border: 1px solid rgba(251, 229, 190, 0.16);
  border-radius: 18px;
  background: rgba(33, 29, 31, 0.42);
  color: #fff2df;
}

.note p {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #f6d7a8;
}

.note strong {
  display: block;
  margin-top: 6px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.2rem;
}

.top-note {
  top: 40px;
  left: 36px;
}

.bottom-note {
  right: 38px;
  bottom: 40px;
  max-width: 220px;
}

.section {
  margin-top: 96px;
}

.section-heading {
  margin-bottom: 24px;
}

.district-grid,
.law-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.card {
  padding: 24px;
  border-radius: 28px;
  background: var(--paper);
}

.card h3 {
  font-size: 1.9rem;
  color: #563d2b;
}

.card p {
  color: var(--muted);
}

.journey-list {
  display: grid;
  gap: 18px;
  list-style: none;
  padding: 0;
}

.journey-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.step {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(180deg, #f2c77b 0%, #d68b66 100%);
  color: #573a28;
  font-size: 1.35rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
}

@media (max-width: 820px) {
  .page-shell {
    padding-inline: 16px;
  }

  .topbar {
    position: static;
    border-radius: 26px;
  }

  .district-grid,
  .law-grid {
    grid-template-columns: 1fr;
  }
}
