/* ═══════════════════════════════════════════════════════════
   MoreYou 摩宇 Brand System · Shared Styles
   v2.0 · 2026.09.28 — aligned with the MoreYou Exchange site
   (apps/exchange-app/public/site/site.css · G1 綠金 · 森林頂)

   森林綠 dark grounds · 金 primary buttons · 亮金 accents on forest ·
   米白 page · white / bone cards · radius: cards 16 · buttons 4.
   Contrast (WCAG AA): small text ≥ 4.5:1, large text ≥ 3:1.
   - gold-text #A9812F is 3.3:1 on cream → large text only (≥ 24px);
     small gold on cream uses --gold-deep.
   - sage #87A878 is never text on cream (2.4:1); on forest it is ok.
═══════════════════════════════════════════════════════════ */

:root {
  /* Exchange palette */
  --forest:       #1a3d2e;
  --forest-deep:  #163629;   /* footer, quiet dark bands */
  --forest-lift:  #22493a;   /* raised dark layer */
  --pine:         #2d5e44;
  --sage:         #87a878;
  --mint:         #b8d4c7;
  --cream:        #faf4e8;
  --bone:         #f4ecdc;   /* alternate light section ground */
  --white:        #ffffff;
  --ink:          #16241d;
  --gold:         #c79a3c;
  --gold-hover:   #d4ab55;
  --gold-bright:  #d4ab55;
  --gold-text:    #a9812f;   /* large text on cream only */
  --gold-deep:    #7e5e1c;   /* small gold text on cream */
  --text:         #3a4d42;
  --muted:        #5a6c60;
  --on-forest:    #dbe5dc;
  --on-forest-2:  #cdd9cf;
  --on-forest-3:  #9fb3a4;
  --border:       #e7ddc8;
  --border-strong:#cfc2a6;
  --divider:      #eee5d2;
  --panel-dark:      rgba(250,244,232,.06);
  --panel-dark-line: rgba(184,212,199,.22);
  --hairline-dark:   rgba(184,212,199,.14);
  --shadow-card:  0 32px 64px -32px rgba(22,36,29,.25);
  --shadow-deep:  0 32px 64px -32px rgba(22,36,29,.45);

  /* Type */
  --serif:   'Noto Serif TC', serif;
  --display: 'Fraunces', 'Noto Serif TC', serif;
  --body:    'DM Sans', 'Noto Sans TC', sans-serif;
  --mono:    'JetBrains Mono', 'Noto Sans TC', monospace;

  --nav-h: 64px;
  --glow: rgba(135,168,120,.28);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
  font-family: var(--body);
  background: var(--cream);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-wrap: balance;
}
/* Highlighted words: colour, never faux italics (Exchange .mint) */
em, .italic { font-style: normal; font-weight: inherit; }
.mono { font-family: var(--mono); }

a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
::selection { background: var(--gold); color: var(--ink); }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ─── Nav (Exchange .gnav) ─── */
nav.main {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--forest);
  border-bottom: 1px solid var(--hairline-dark);
}
nav.main .in {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 32px;
}
nav.main .logo {
  display: flex; align-items: center;
  flex: none;
  text-decoration: none;
  border-radius: 4px;
}
nav.main .logo { display: flex; align-items: center; gap: 12px; }
nav.main .logo img { height: 26px; width: auto; display: block; }
nav.main .logo .wordmark { font-family: var(--body); font-size: 12px; font-weight: 600; letter-spacing: .32em; color: var(--cream); }
nav.main ul {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 4px;
  list-style: none;
  height: 100%;
}
nav.main ul li { display: flex; }
nav.main ul a {
  display: flex;
  align-items: center;
  padding: 0 14px;
  color: var(--on-forest-2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
nav.main ul a:hover { color: var(--cream); border-bottom-color: var(--gold); }
nav.main .cta {
  flex: none;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s;
}
nav.main .cta:hover { background: var(--gold-bright); }

/* ─── Breadcrumb (product pages) ─── */
.breadcrumb {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  color: var(--on-forest-3);
  text-transform: uppercase;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.breadcrumb a { color: var(--on-forest-3); text-decoration: none; transition: color .15s; }
.breadcrumb a:hover { color: var(--gold-bright); }
.breadcrumb > span:last-child { color: var(--gold-bright); }

/* ─── Buttons (Exchange .btn · hover changes colour only) ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  padding: 12px 24px;
  border-radius: 4px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn-gold, .btn-primary { background: var(--gold); color: var(--ink); }
.btn-gold:hover, .btn-primary:hover { background: var(--gold-hover); color: var(--ink); }
.btn-ghost {
  font-weight: 500;
  background: transparent;
  color: var(--cream);
  border-color: rgba(250,244,232,.4);
}
.btn-ghost:hover { background: rgba(250,244,232,.08); border-color: rgba(250,244,232,.6); }
/* outline on cream */
.btn-outline {
  font-weight: 500;
  background: transparent;
  color: var(--forest);
  border-color: var(--border-strong);
}
.btn-outline:hover { background: var(--white); border-color: var(--forest); }
.btn-sm { font-size: 14px; padding: 8px 16px; }

/* ─── Eyebrow / section labels ─── */
.sec-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  color: var(--pine);
  text-transform: uppercase;
  margin-bottom: 24px;
}
.sec-label::before {
  content: '';
  width: 24px; height: 1px;
  background: currentColor;
  opacity: .7;
}
.sec-label-dark,
.hero .sec-label, .moat .sec-label, .philosophy .sec-label, .cta-section .sec-label,
.p-hero .sec-label, .p-cta .sec-label, footer .sec-label { color: var(--gold-bright); }

/* ─── Pill label (Exchange .pill) ─── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  color: var(--on-forest);
  border: 1px solid var(--panel-dark-line);
  padding: 8px 16px;
  border-radius: 9999px;
  text-transform: uppercase;
}
.pill .dot, .dot-gold {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  display: inline-block;
  flex: none;
}

/* ─── Status badges ─── */
.soon-badge,
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 4px 10px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  color: var(--gold-bright);
}
.live-badge { background: var(--gold); color: var(--ink); }

/* ─── Footer (Exchange .sitefoot) ─── */
footer {
  background: var(--forest-deep);
  color: var(--on-forest-2);
  padding: 72px 0 32px;
  border-top: 1px solid var(--hairline-dark);
}
footer .wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.ft-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--hairline-dark);
}
.ft-brand .ft-badge { height: 44px; width: auto; display: block; margin: 0 0 20px; }
.ft-brand .ft-tag {
  font-family: var(--display);
  font-size: 20px;
  color: var(--on-forest);
  margin-bottom: 8px;
}
.ft-brand .ft-zh {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--on-forest-3);
  letter-spacing: .12em;
}
.ft-col h5 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  color: var(--sage);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.ft-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.ft-col ul a {
  color: var(--on-forest-2);
  text-decoration: none;
  font-size: 14px;
  transition: color .15s;
}
.ft-col ul a:hover { color: var(--cream); }

.ft-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-top: 32px;
  font-size: 13px;
  color: var(--on-forest-3);
}
.ft-bottom a { color: var(--on-forest-3); text-decoration: none; transition: color .15s; }
.ft-bottom a:hover { color: var(--cream); }

/* ─── Scroll reveal ─── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ─── Responsive ─── */
@media (max-width: 1000px) {
  nav.main ul { display: none; }
  .ft-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .ft-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  :root { --nav-h: 56px; }
  nav.main .in { padding: 0 16px; gap: 16px; }
  nav.main .logo img { height: 22px; }
  .wrap, footer .wrap { padding: 0 20px; }
  .btn { font-size: 15px; }
  .ft-top { grid-template-columns: 1fr; }
  footer { padding-top: 56px; }
}
