:root {
  --bg: #f4f3ee;
  --ink: #1f1c18;
  --muted: #67635c;
  --line: #d9d7d2;
  --card: #fffdf8;
  --gold: #bc8b4c;
  --green: #12bf68;
  --soft: #eee9df;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 72% -10%, rgb(222 203 172 / .44), transparent 24rem),
    linear-gradient(180deg, #faf8f1 0%, var(--bg) 62%, #f0ece3 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.mobile-page {
  width: min(100%, 460px);
  margin: 0 auto;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 0, rgb(255 255 255 / .78), transparent 28rem),
    var(--bg);
  box-shadow: 0 0 0 1px rgb(31 28 24 / .04), 0 24px 90px rgb(31 28 24 / .08);
}

.container {
  width: calc(100% - 28px);
  margin-inline: auto;
}

.mobile-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 10px 0 8px;
  background: linear-gradient(180deg, rgb(244 243 238 / .96), rgb(244 243 238 / .72));
  backdrop-filter: blur(20px);
}

.nav-shell {
  width: calc(100% - 20px);
  min-height: 56px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgb(217 215 210 / .72);
  border-radius: 999px;
  background: rgb(250 248 241 / .88);
  padding: 7px;
  box-shadow: 0 10px 30px rgb(31 28 24 / .06);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  white-space: nowrap;
  letter-spacing: -.04em;
}

.brand-mark {
  width: 30px;
  height: 30px;
  object-fit: contain;
  flex: 0 0 auto;
}

.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-demo {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  padding: 0 13px;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 12px 26px rgb(31 28 24 / .14);
}

.menu-link {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgb(255 253 248 / .86);
  font-weight: 900;
}

.page-links {
  width: calc(100% - 28px);
  margin: 8px auto 0;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.page-links::-webkit-scrollbar { display: none; }

.page-links a {
  flex: 0 0 auto;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgb(217 215 210 / .86);
  border-radius: 999px;
  background: rgb(255 253 248 / .68);
  color: var(--muted);
  padding: 0 13px;
  font-size: 13px;
  font-weight: 800;
}

.page-links a.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.hero {
  padding: 32px 0 22px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.eyebrow::before,
.section-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

h1,
h2 {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", Georgia, serif;
  font-weight: 400;
  letter-spacing: 0;
}

h1 {
  margin-top: 16px;
  font-size: clamp(42px, 11vw, 54px);
  line-height: 1.08;
}

h2 {
  margin-top: 12px;
  font-size: clamp(32px, 9vw, 43px);
  line-height: 1.13;
}

em {
  color: var(--gold);
  font-style: italic;
}

.lead,
.section-copy {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.82;
}

.section {
  padding: 42px 0 0;
}

.soft-card,
.feature-card,
.timeline-card,
.info-card,
.source-card {
  border: 1px solid rgb(221 216 206 / .82);
  border-radius: 26px;
  background: linear-gradient(145deg, rgb(255 253 248 / .96), rgb(249 246 238 / .9));
  box-shadow: 0 18px 58px rgb(31 28 24 / .08);
}

.stat-grid,
.card-grid {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.stat-card,
.feature-card,
.info-card,
.source-card {
  padding: 20px;
}

.stat-card strong {
  display: block;
  color: var(--gold);
  font: 500 42px/1 Georgia, serif;
}

.stat-card span,
.feature-card p,
.timeline-card p,
.info-card p,
.source-card p,
.mini-list li {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.72;
}

.feature-card {
  position: relative;
  overflow: hidden;
}

.feature-card::after {
  content: attr(data-index);
  position: absolute;
  right: 16px;
  top: 10px;
  color: rgb(31 28 24 / .065);
  font: 300 48px/1 Inter, sans-serif;
}

.feature-card small,
.timeline-card small,
.source-card small {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.feature-card h3,
.timeline-card h3,
.info-card h3,
.source-card h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.45;
}

.feature-card p,
.timeline-card p,
.info-card p,
.source-card p {
  margin: 8px 0 0;
}

.tag-row {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid rgb(217 215 210 / .82);
  border-radius: 999px;
  background: rgb(255 253 248 / .78);
  color: var(--muted);
  padding: 0 12px;
  font-size: 12px;
  font-weight: 800;
}

.timeline {
  position: relative;
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.timeline-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.timeline-card {
  position: relative;
  padding: 18px 18px 18px 24px;
  overflow: hidden;
}

.timeline-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  bottom: 20px;
  width: 4px;
  border-radius: 999px;
  background: var(--green);
}

.mini-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.mini-list li {
  border: 1px solid rgb(217 215 210 / .72);
  border-radius: 18px;
  background: rgb(255 253 248 / .72);
  padding: 13px 14px;
}

.cta {
  margin-top: 44px;
  padding: 42px 0 86px;
  background: linear-gradient(180deg, transparent, rgb(237 233 224 / .92));
}

.cta-card {
  padding: 26px 20px;
  text-align: center;
}

.cta-card h2 {
  font-size: 34px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 18px;
}

.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgb(255 253 248 / .88);
  padding: 0 16px;
  font-weight: 900;
}

.button.primary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.qr {
  display: block;
  width: min(220px, 70vw);
  margin: 18px auto 0;
  border-radius: 20px;
  border: 1px solid var(--line);
}

.footer {
  padding: 24px 18px 96px;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
  line-height: 1.8;
}

.bottom-bar {
  position: fixed;
  left: 50%;
  bottom: 14px;
  z-index: 50;
  width: min(432px, calc(100% - 28px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  border: 1px solid rgb(217 215 210 / .72);
  border-radius: 999px;
  background: rgb(250 248 241 / .9);
  padding: 8px;
  backdrop-filter: blur(20px);
  box-shadow: 0 16px 42px rgb(31 28 24 / .16);
}

.bottom-bar a {
  min-height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-weight: 900;
  background: rgb(255 253 248 / .86);
}

.bottom-bar a:first-child {
  background: var(--ink);
  color: #fff;
}

.motion-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 720ms var(--ease), transform 720ms var(--ease);
}

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

.float-soft {
  animation: floatSoft 4.2s ease-in-out infinite;
}

@keyframes floatSoft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
