/* ============================================================
   LumiLand — 真 · 穩 · 深
   紋章莊重 · 深黑金 · 中文襯線
   ============================================================ */

/* ---------- TOKENS ---------- */
:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.4rem + 2.5vw, 3.25rem);
  --text-3xl: clamp(2.4rem, 1.2rem + 4vw, 4.5rem);

  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem;
  --space-4: 1rem; --space-5: 1.25rem; --space-6: 1.5rem;
  --space-8: 2rem; --space-10: 2.5rem; --space-12: 3rem;
  --space-16: 4rem; --space-20: 5rem; --space-24: 6rem; --space-32: 8rem;

  --radius-sm: 0.375rem; --radius-md: 0.5rem; --radius-lg: 0.75rem;
  --radius-full: 9999px;
  --transition-interactive: 220ms cubic-bezier(0.16, 1, 0.3, 1);

  --content-narrow: 720px;
  --content-default: 1080px;

  --font-display: 'Noto Serif TC', 'Songti TC', serif;
  --font-body: 'Noto Sans TC', 'PingFang TC', sans-serif;

  --gold: #c8a24a;
  --gold-soft: #d9bd78;
  --gold-deep: #a07f2e;
}

/* ---------- LIGHT (only mode) ---------- */
:root, [data-theme='light'] {
  --color-bg: #f7f3ea;
  --color-surface: #fdfbf5;
  --color-surface-2: #f1ebdd;
  --color-ink: #3a3324;
  --color-text: #2b2820;
  --color-text-muted: #6c665a;
  --color-text-faint: #a39c8c;
  --color-border: #e2dac9;
  --color-divider: #ebe4d4;
  --color-accent: var(--gold-deep);
  /* Warm, gentle backdrop behind the crest — no more dark black */
  --color-on-dark: #4a4230;
  --hero-bg: radial-gradient(130% 100% at 50% 0%, #f6ecd4 0%, #f0e3c6 45%, #ead9b8 100%);
  --hero-text: #3a3120;
  --hero-text-soft: #6b5f45;
  --hero-hook: #927a3f;
  --shadow-md: 0 10px 30px rgba(90, 74, 40, 0.10);
  --shadow-lg: 0 24px 60px rgba(90, 74, 40, 0.16);
}

/* ---------- BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}
body {
  min-height: 100dvh; line-height: 1.75;
  font-family: var(--font-body);
  font-size: var(--text-base); font-weight: 300;
  color: var(--color-text); background: var(--color-bg);
  transition: background 400ms ease, color 400ms ease;
}
img, svg { display: block; max-width: 100%; height: auto; }
button { cursor: pointer; background: none; border: none; color: inherit; font: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { text-wrap: balance; line-height: 1.25; font-weight: 700; }
p { text-wrap: pretty; }
::selection { background: rgba(200, 162, 74, 0.28); }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; border-radius: var(--radius-sm); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--color-ink); color: var(--color-on-dark);
  padding: var(--space-3) var(--space-5); border-radius: var(--radius-sm);
}
.skip-link:focus { left: var(--space-4); top: var(--space-4); }

.container { width: 100%; max-width: var(--content-default); margin-inline: auto; padding-inline: var(--space-6); }
.container--narrow { max-width: var(--content-narrow); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ---------- SHARED SECTION HEADS ---------- */
.section-eyebrow {
  font-size: var(--text-xs); letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--color-accent); font-weight: 500; margin-bottom: var(--space-4);
}
.section-eyebrow--center { text-align: center; }
.section-eyebrow--light { color: var(--gold-soft); }
.section-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--text-2xl); line-height: 1.3; color: var(--color-text);
  letter-spacing: 0.01em; margin-bottom: var(--space-10);
}
.section-title--center { text-align: center; }

section { position: relative; }
.pain, .method, .value { padding-block: clamp(var(--space-20), 10vw, var(--space-32)); }
.belief, .faq { padding-block: clamp(var(--space-20), 10vw, var(--space-32)); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-weight: 500; font-size: var(--text-sm);
  letter-spacing: 0.08em; padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-full); border: 1px solid transparent;
  transition: var(--transition-interactive);
}
.btn--sm { padding: var(--space-2) var(--space-5); }
.btn--lg { padding: var(--space-5) var(--space-10); font-size: var(--text-base); }
.btn--gold {
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  color: #1a1509; box-shadow: 0 6px 20px rgba(200, 162, 74, 0.28);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(200, 162, 74, 0.42); }
.btn--ghost { border-color: rgba(200, 162, 74, 0.5); color: var(--gold-soft); }
.btn--ghost:hover { background: rgba(200, 162, 74, 0.1); border-color: var(--gold-soft); }
.btn--whatsapp { gap: var(--space-3); }
.btn--whatsapp .btn__wa-icon { flex: 0 0 auto; }
.header .btn--sm {
  background: transparent; border-color: var(--color-accent); color: var(--color-accent);
}
.header .btn--sm:hover { background: var(--color-accent); color: var(--color-bg); }

/* ---------- HEADER ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--color-bg) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 300ms ease, background 300ms ease;
}
.header--scrolled { border-bottom-color: var(--color-divider); }
.header__inner {
  max-width: 1240px; margin-inline: auto; padding: var(--space-3) var(--space-6);
  display: flex; align-items: center; gap: var(--space-6);
}
.brand { display: flex; align-items: center; gap: var(--space-3); }
.brand__mark { width: 44px; height: 44px; object-fit: contain; }
.brand__name { display: flex; flex-direction: column; line-height: 1.1; }
.brand__title { font-family: var(--font-display); font-weight: 900; font-size: 1.05rem; letter-spacing: 0.14em; color: var(--color-text); }
.brand__tagline { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-accent); }
.nav { display: flex; gap: var(--space-6); margin-left: auto; }
.nav a { font-size: var(--text-sm); color: var(--color-text-muted); position: relative; padding-block: var(--space-1); }
.nav a::after {
  content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 1.5px;
  background: var(--color-accent); transition: width var(--transition-interactive);
}
.nav a:hover { color: var(--color-text); }
.nav a:hover::after { width: 100%; }
.header__actions { display: flex; align-items: center; gap: var(--space-4); }
.nowrap { white-space: nowrap; }

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  /* extra bottom padding so CTA never collides with the scroll cue */
  padding: var(--space-24) var(--space-6) var(--space-32);
  background: var(--hero-bg); color: var(--hero-text); overflow: hidden;
}
.hero__glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(50% 40% at 50% 28%, rgba(200,162,74,0.22), transparent 70%);
}
.hero__inner { position: relative; max-width: 860px; }
.hero__crest {
  width: clamp(96px, 14vw, 148px); height: auto; margin: 0 auto var(--space-6);
  filter: drop-shadow(0 10px 26px rgba(120, 96, 40, 0.28));
  animation: crestIn 1.1s cubic-bezier(0.16,1,0.3,1) both;
}
.hero__eyebrow {
  font-size: var(--text-xs); letter-spacing: 0.5em; color: var(--gold-deep);
  margin-bottom: var(--space-6); font-weight: 600; padding-left: 0.5em;
}
.hero__title {
  font-family: var(--font-display); font-weight: 900;
  font-size: var(--text-3xl); line-height: 1.35; letter-spacing: 0.02em;
  color: var(--hero-text); margin-bottom: var(--space-8);
  animation: fadeUp 1s ease both 0.15s;
}
.hero__wager {
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--text-lg); line-height: 1.9; letter-spacing: 0.03em;
  color: var(--gold-deep); max-width: 42ch; margin: 0 auto var(--space-6);
  animation: fadeUp 1s ease both 0.25s;
}
.hero__lede {
  font-size: var(--text-base); font-weight: 400; line-height: 1.9;
  color: var(--hero-text-soft); max-width: 40ch; margin: 0 auto var(--space-8);
  animation: fadeUp 1s ease both 0.35s;
}
.hero__hook {
  font-family: var(--font-display); font-size: var(--text-base); font-style: normal;
  color: var(--hero-hook); line-height: 1.9; letter-spacing: 0.04em; font-weight: 500;
  padding-top: var(--space-6); border-top: 1px solid rgba(160,127,46,0.3);
  max-width: 38ch; margin: 0 auto var(--space-10);
  animation: fadeUp 1s ease both 0.45s;
}
.hero__cta { display: flex; gap: var(--space-4); justify-content: center; flex-wrap: wrap; animation: fadeUp 1s ease both 0.6s; }
.hero__scroll {
  position: absolute; bottom: var(--space-6); left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: var(--space-2);
  font-size: 0.7rem; letter-spacing: 0.3em; color: rgba(146,122,63,0.7);
}
.hero__scroll-line { width: 1px; height: 32px; background: linear-gradient(var(--gold-deep), transparent); animation: scrollPulse 2s ease-in-out infinite; }
.mobile-break { display: none; }

@keyframes crestIn { from { opacity: 0; transform: translateY(-16px) scale(0.94); } to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes scrollPulse { 0%,100% { opacity: 0.4; transform: scaleY(0.6); } 50% { opacity: 1; transform: scaleY(1); } }

/* ---------- PAIN ---------- */
.pain__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
.pain__card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: clamp(var(--space-8), 4vw, var(--space-12));
  position: relative; overflow: hidden; box-shadow: var(--shadow-md);
}
.pain__card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 100%;
  background: linear-gradient(var(--gold-soft), var(--gold-deep));
}
.pain__for { font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); letter-spacing: 0.15em; color: var(--color-accent); margin-bottom: var(--space-6); }
.pain__lead { font-family: var(--font-display); font-weight: 500; font-size: var(--text-lg); line-height: 1.7; color: var(--color-text); margin-bottom: var(--space-6); }
.pain__body { color: var(--color-text-muted); margin-bottom: var(--space-4); font-size: var(--text-base); }
.pain__body:last-child { margin-bottom: 0; }

/* ---------- BELIEF ---------- */
.belief { background: var(--color-surface-2); }
.belief__body { text-align: center; }
.belief__body > p { font-size: var(--text-lg); line-height: 1.95; color: var(--color-text-muted); margin: 0 auto var(--space-6); max-width: 34ch; }
.belief__emphasis { color: var(--color-text) !important; font-family: var(--font-display); font-weight: 500; }
.pullquote {
  font-family: var(--font-display); font-weight: 500; font-size: var(--text-xl);
  line-height: 1.7; color: var(--color-text); letter-spacing: 0.02em;
  margin: var(--space-12) auto; max-width: 26ch; position: relative; padding: var(--space-8) 0;
}
.pullquote::before, .pullquote::after {
  content: ''; display: block; width: 40px; height: 2px; margin: 0 auto;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.pullquote::before { margin-bottom: var(--space-8); }
.pullquote::after { margin-top: var(--space-8); }
.pullquote--warm { color: var(--color-accent); }

/* ---------- METHOD ---------- */
.method__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
.method__item {
  padding: clamp(var(--space-6), 3vw, var(--space-10));
  border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  background: var(--color-surface); transition: var(--transition-interactive);
}
.method__item:hover { transform: translateY(-4px); border-color: var(--color-accent); box-shadow: var(--shadow-lg); }
.method__num {
  font-family: var(--font-display); font-size: var(--text-xl); font-weight: 700;
  color: var(--color-accent); display: block; margin-bottom: var(--space-4);
  opacity: 0.85;
}
.method__name { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 700; color: var(--color-text); margin-bottom: var(--space-4); }
.method__item p { color: var(--color-text-muted); font-size: var(--text-base); }
.method__coda {
  text-align: center; font-family: var(--font-display); font-weight: 500;
  font-size: var(--text-lg); color: var(--color-text); margin-top: var(--space-12);
  letter-spacing: 0.02em;
}

/* ---------- IMAGE BANDS ---------- */
.imgband {
  margin: 0; width: 100%; overflow: hidden; position: relative;
  padding-bottom: var(--space-16);
}
.imgband img {
  display: block; width: 100%; height: clamp(320px, 46vw, 560px);
  object-fit: cover; object-position: center;
}
.imgband figcaption {
  font-family: var(--font-display); font-weight: 500;
  font-size: var(--text-base); color: var(--color-text-muted);
  text-align: center; letter-spacing: 0.03em;
  padding: var(--space-5) var(--space-6) 0;
}
.imgband--inset {
  max-width: 1120px; margin-inline: auto; margin-top: var(--space-16);
  padding-inline: var(--space-6);
}
.imgband--inset img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  height: clamp(280px, 40vw, 480px);
}

/* ---------- VALUE ---------- */
.value { background: var(--color-surface-2); }
.value__intro { color: var(--color-text-muted); font-size: var(--text-base); margin-bottom: var(--space-10); max-width: 40ch; }
.value__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5); margin-bottom: var(--space-16); }
.value__card {
  padding: var(--space-8); background: var(--color-surface);
  border-radius: var(--radius-lg); border: 1px solid var(--color-border);
  border-top: 3px solid var(--gold); box-shadow: var(--shadow-md);
}
.value__card h3 { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 700; color: var(--color-text); margin-bottom: var(--space-3); }
.value__card p { color: var(--color-text-muted); font-size: var(--text-base); }

.value__contrast { max-width: var(--content-narrow); margin-inline: auto; text-align: center; }
.value__contrast-lead { font-family: var(--font-display); color: var(--color-accent); font-size: var(--text-lg); margin-bottom: var(--space-8); }
.value__pair { margin-bottom: var(--space-8); }
.value__not { color: var(--color-text-faint); font-size: var(--text-lg); text-decoration: line-through; text-decoration-color: rgba(160,127,46,0.5); margin-bottom: var(--space-2); }
.value__but { font-family: var(--font-display); font-weight: 500; font-size: var(--text-xl); color: var(--color-text); line-height: 1.6; }
.value__close { font-family: var(--font-display); color: var(--color-accent); font-size: var(--text-lg); margin-top: var(--space-12); line-height: 1.7; }

/* ---------- FAQ ---------- */
.faq__body { text-align: center; }
.faq__body > p { font-size: var(--text-lg); line-height: 1.95; color: var(--color-text-muted); margin: 0 auto var(--space-6); max-width: 36ch; }
.faq__turn { color: var(--color-text) !important; font-family: var(--font-display); font-weight: 500; }

/* ---------- CONTACT ---------- */
.contact {
  background: radial-gradient(130% 100% at 50% 0%, #f3e6c8 0%, #ecdcb6 50%, #e4cfa4 100%);
  color: var(--hero-text); text-align: center;
  padding-block: clamp(var(--space-24), 12vw, var(--space-32)); overflow: hidden; position: relative;
}
.contact__glow { position: absolute; inset: 0; background: radial-gradient(50% 50% at 50% 50%, rgba(200,162,74,0.2), transparent 70%); pointer-events: none; }
.contact .container { position: relative; }
.contact__title { font-family: var(--font-display); font-weight: 900; font-size: var(--text-2xl); color: var(--hero-text); margin-bottom: var(--space-6); }
.contact__lead { font-size: var(--text-lg); color: var(--gold-deep); margin-bottom: var(--space-6); font-family: var(--font-display); font-weight: 600; }
.contact__body { color: var(--hero-text-soft); font-size: var(--text-base); line-height: 1.9; max-width: 38ch; margin: 0 auto var(--space-10); }
.contact__note { color: rgba(107,95,69,0.9); font-size: var(--text-sm); margin-top: var(--space-8); letter-spacing: 0.02em; }

/* ---------- FOOTER ---------- */
.footer { background: #efe4cd; color: var(--hero-text); border-top: 1px solid var(--color-border); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-8); padding-block: var(--space-12); flex-wrap: wrap; }
.footer__brand { display: flex; align-items: center; gap: var(--space-4); }
.footer__brand img { width: 52px; height: 52px; object-fit: contain; }
.footer__name { font-family: var(--font-display); font-weight: 900; font-size: var(--text-lg); letter-spacing: 0.06em; color: var(--hero-text); }
.footer__tag { color: var(--hero-text-soft); font-size: var(--text-sm); }
.footer__motto { font-family: var(--font-display); font-size: var(--text-xl); letter-spacing: 0.5em; color: var(--gold-deep); padding-left: 0.5em; }
.footer__base { border-top: 1px solid rgba(160,127,46,0.2); padding-block: var(--space-6); text-align: center; }
.footer__base p { color: rgba(74,66,48,0.6); font-size: var(--text-xs); letter-spacing: 0.1em; }

/* ---------- PRUDENCE ---------- */
.prudence { background: var(--color-surface-2); padding-block: clamp(var(--space-20), 10vw, var(--space-32)); }
.prudence__body { text-align: center; }
.prudence__body > p { font-size: var(--text-lg); line-height: 1.95; color: var(--color-text-muted); margin: 0 auto var(--space-6); max-width: 40ch; }
.prudence__statement {
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--text-2xl); line-height: 1.5; letter-spacing: 0.02em;
  color: var(--color-text); text-align: center;
  max-width: 22ch; margin: var(--space-16) auto; position: relative; padding: var(--space-10) 0;
}
.prudence__statement::before, .prudence__statement::after {
  content: ''; display: block; width: 48px; height: 2px; margin: 0 auto;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.prudence__statement::before { margin-bottom: var(--space-10); }
.prudence__statement::after { margin-top: var(--space-10); }
.prudence__notes { max-width: 44ch; margin-inline: auto; text-align: center; }
.prudence__notes > p { font-size: var(--text-base); line-height: 1.9; color: var(--color-text-muted); margin-bottom: var(--space-5); }
.prudence__notes > p:last-child { margin-bottom: 0; }

/* ---------- REVEAL ---------- */
[data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1); }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  .nav { display: none; }
  .pain__grid, .method__grid, .value__grid { grid-template-columns: 1fr; }
  .mobile-break { display: inline; }
  .brand__title { font-size: 0.95rem; white-space: nowrap; }
  .brand__tagline { white-space: nowrap; }
  .header__inner { gap: var(--space-3); }
  .header .btn--sm { white-space: nowrap; padding: var(--space-2) var(--space-4); }
  .theme-toggle { flex-shrink: 0; }
  .footer__inner { flex-direction: column; text-align: center; }
  .footer__brand { flex-direction: column; }
}
@media (max-width: 420px) {
  .brand__tagline { display: none; }
}
@media (max-width: 460px) {
  .hero__cta { flex-direction: column; width: 100%; }
  .hero__cta .btn { width: 100%; }
}

/* ============ FLOATING WHATSAPP BUTTON (mobile only) ============ */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 20px;
  z-index: 900;
  width: 56px;
  height: 56px;
  display: none;                 /* hidden on desktop */
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  color: #1a1509;                /* icon colour */
  box-shadow: 0 6px 20px rgba(200, 162, 74, 0.42), 0 2px 8px rgba(0,0,0,0.12);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .4s ease, transform .4s ease, box-shadow .25s ease;
  -webkit-tap-highlight-color: transparent;
}
.wa-float svg { display: block; }
.wa-float.is-in { opacity: 1; transform: translateY(0); }
.wa-float.is-hidden { opacity: 0; transform: translateY(12px); pointer-events: none; }
.wa-float:active { transform: translateY(0) scale(0.94); }

@media (max-width: 820px) {
  .wa-float { display: inline-flex; }
}
/* respect notch / home-indicator safe area */
@supports (padding: max(0px)) {
  .wa-float { bottom: max(20px, env(safe-area-inset-bottom)); }
}
