:root {
  --paper: #f7f1e8;
  --tile: #fffbf5;
  --inverse: #3d2e24;
  --gold: #d4a06a;
  --accent-soft: #f8ecdc;
  --ink: #2c241c;
  --muted: #a89884;
  --line: #e8dcce;
  --soft: #4f3c30;
  --deep: #1a1612;
  --mist: #efe6da;
  --white: #fffbf5;
  --font-display: 'Newsreader', 'Songti SC', 'Noto Serif SC', serif;
  --font-body: 'Geist', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(ellipse at 12% 0%, rgba(212, 160, 106, 0.14), transparent 46%),
    radial-gradient(ellipse at 88% 8%, rgba(201, 123, 92, 0.08), transparent 42%),
    linear-gradient(180deg, #fbf6ef 0%, var(--paper) 42%, #efe6da 100%);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0;
}

p {
  margin: 0;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: var(--gold);
  margin: 0 0 12px;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  border: 1px solid transparent;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.btn-pill:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.btn-gold {
  background: var(--gold);
  color: var(--inverse);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: #5a4a3c;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 clamp(24px, 5vw, 72px);
  background: var(--deep);
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.2em;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-right a:not(.btn-pill) {
  font-size: 13px;
  color: #c9b8a4;
}

.nav-right .btn-pill {
  padding: 8px 18px;
  font-size: 12px;
}

/* Hero */
.hero {
  background: var(--deep);
  color: var(--white);
  text-align: center;
  padding: 96px 24px 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.hero-brand {
  font-size: clamp(48px, 8vw, 96px);
  letter-spacing: 0.18em;
  color: var(--white);
  line-height: 1.1;
}

.hero-rule {
  width: 64px;
  height: 2px;
  background: var(--gold);
  margin: 8px 0;
}

.hero-line {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 28px);
  letter-spacing: 0.2em;
  color: #e8dcce;
}

.hero-sub {
  font-size: 15px;
  color: var(--muted);
  letter-spacing: 0.08em;
  max-width: 42em;
  line-height: 1.6;
}

.hero-sub.seo-desc {
  letter-spacing: 0.04em;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 12px;
}

/* Why */
.why {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
}

.why-visual {
  background: var(--accent-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 64px 24px;
}

.big-seal {
  width: 200px;
  height: 200px;
  border-radius: 28px;
  background: var(--inverse);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 96px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 32px rgba(61, 46, 36, 0.12);
}

.seal-cap {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--soft);
  letter-spacing: 0.2em;
}

.why-copy {
  background: var(--paper);
  padding: clamp(48px, 6vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}

.why-copy h2 {
  font-size: clamp(32px, 4vw, 44px);
  letter-spacing: 0.08em;
  line-height: 1.2;
  color: var(--ink);
}

.pillars {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pillars li {
  display: flex;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.pillars .num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gold);
  width: 32px;
  flex-shrink: 0;
}

.pillars strong {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}

.pillars p {
  font-size: 14px;
  color: var(--soft);
  line-height: 1.5;
}

/* Features */
.features {
  background: var(--mist);
  padding: clamp(64px, 8vw, 96px) clamp(24px, 6vw, 100px);
}

.features h2 {
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.feat-sub {
  font-size: 15px;
  color: var(--soft);
  margin-bottom: 36px;
}

.bento {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}

.feat-card,
.feat-bar {
  width: 100%;
  box-sizing: border-box;
}

.feat-card {
  background: var(--tile);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 26px;
  box-shadow: 0 8px 20px rgba(44, 36, 28, 0.05);
}

.feat-card.soft {
  background: var(--accent-soft);
  border-color: transparent;
}

.feat-card.featured {
  background: var(--inverse);
  border: none;
  padding: 40px;
  box-shadow: 0 12px 28px rgba(61, 46, 36, 0.16);
}

.feat-card.featured h3,
.feat-card.featured p {
  color: var(--white);
}

.feat-card.featured p {
  color: rgba(255, 251, 245, 0.65);
}

.feat-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.go {
  font-size: 14px;
  color: rgba(255, 251, 245, 0.7);
}

.feat-card h3 {
  font-size: 22px;
  margin: 12px 0 8px;
}

.feat-card p {
  font-size: 13px;
  color: var(--soft);
  line-height: 1.5;
}

.feat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  width: 100%;
}

.seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
}

.seal-gold { background: var(--gold); }
.seal-ink { background: var(--inverse); }

.feat-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 26px;
  border-radius: 20px;
  background: var(--tile);
  border: 1px solid var(--line);
}

.feat-bar h3 {
  font-size: 22px;
  margin-bottom: 4px;
}

.feat-bar p {
  font-size: 13px;
  color: var(--soft);
}

/* Download */
.download {
  background: var(--deep);
  color: var(--white);
  text-align: center;
  padding: clamp(64px, 8vw, 96px) clamp(24px, 6vw, 100px);
}

.download h2 {
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 12px;
}

.dl-sub {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 40px;
}

.platforms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.platforms-empty {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 14px;
  padding: 40px 0;
}

.platform-card {
  background: #221c18;
  border: 1px solid #3d322a;
  border-radius: 8px;
  padding: 40px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.platform-card h3 {
  font-size: 22px;
  color: var(--white);
}

.platform-card .desc {
  font-size: 13px;
  color: var(--muted);
}

.platform-card .qr {
  width: 160px;
  height: 160px;
  border-radius: 12px;
  background: var(--tile);
  border: 1px solid var(--line);
  object-fit: contain;
  padding: 8px;
}

.platform-card .qr-fallback {
  width: 160px;
  height: 160px;
  border-radius: 12px;
  background: var(--tile);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.platform-card .hint {
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.08em;
}

.platform-card a.link {
  font-size: 12px;
  color: #c9b8a4;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Footer */
.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 40px clamp(24px, 6vw, 120px);
  background: var(--paper);
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--ink);
  border-top: 1px solid var(--line);
}

.footer span:last-child {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .why {
    grid-template-columns: 1fr;
  }

  .feat-row,
  .platforms {
    grid-template-columns: 1fr;
  }

  .nav-right a:not(.btn-pill) {
    display: none;
  }
}
