*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0c0c0c;
  --surface: #161616;
  --border: #272727;
  --text: #e8e4de;
  --muted: #6e6a65;
  --accent: #e8c547;
  --accent-dim: rgba(232, 197, 71, 0.08);
}

html { scroll-behavior: smooth; scroll-padding-top: 72px; }
::selection { background: var(--accent); color: #0c0c0c; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Barlow', 'Noto Sans TC', sans-serif;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ─── SKIP LINK ─── */
.skip-link {
  position: absolute;
  left: -999px;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 999;
  background: var(--accent);
  color: #0c0c0c;
  padding: 10px 14px;
  border-radius: 2px;
}

/* ─── NAV ─── */
nav.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12,12,12,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.nav-links {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}
.nav-links a {
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--text); }
.nav-links .nav-cta {
  color: var(--accent);
  border: 1px solid rgba(232,197,71,0.4);
  padding: 0.28rem 0.85rem;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
}
.nav-links .nav-cta:hover {
  background: var(--accent);
  color: #0c0c0c;
}
.lang-sep {
  color: var(--border);
  font-size: 0.75rem;
  user-select: none;
}

@media (max-width: 540px) { .nav-hide-mobile { display: none; } }

/* ─── SECTIONS ─── */
section {
  padding: 6rem 2rem;
  max-width: 720px;
  margin: 0 auto;
}

/* ─── HERO ─── */
#hero {
  position: relative;
  padding-top: 7rem;
  padding-bottom: 5rem;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -80px; left: -120px;
  width: 520px; height: 420px;
  background: radial-gradient(ellipse at center, rgba(232,197,71,0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
#hero > *:not(.hero-glow) { position: relative; z-index: 1; }

.badge {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  border: 1px solid rgba(232,197,71,0.5);
  padding: 0.22rem 0.7rem;
  border-radius: 2px;
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3.2rem, 9vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: 0.03em;
  color: var(--text);
  margin-bottom: 1.75rem;
}
.hero-title span { color: var(--accent); }

.hero-body {
  font-size: 1.05rem;
  color: #cfc9be;
  margin-bottom: 2.5rem;
  max-width: 560px;
  line-height: 1.85;
}
.hero-body strong { color: var(--text); font-weight: 700; }

.cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.cta-primary {
  display: inline-block;
  background: var(--accent);
  color: #0c0c0c;
  font-family: 'Barlow', 'Noto Sans TC', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.07em;
  padding: 0.9rem 2.2rem;
  border-radius: 2px;
  transition: opacity 0.2s, transform 0.15s;
  white-space: nowrap;
  text-transform: uppercase;
}
.cta-primary:hover { opacity: 0.85; transform: translateY(-1px); }
.cta-secondary {
  color: var(--muted);
  font-size: 0.85rem;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.cta-secondary:hover { color: var(--text); border-color: var(--border); }

.disclosure {
  margin-top: 1.75rem;
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ─── DIVIDER ─── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  max-width: 720px;
  margin: 0 auto;
}

/* ─── SECTION LABELS & TITLES ─── */
.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  letter-spacing: 0.04em;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  font-weight: 400;
}
.section-body {
  color: #cfc9be;
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 1rem;
}
.section-body strong { color: var(--text); font-weight: 700; }

/* ─── FEATURES ─── */
.feature-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5px;
  background: var(--border);
  border: 1px solid var(--border);
}
@media (max-width: 540px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-item {
  background: var(--surface);
  padding: 1.75rem;
  transition: background 0.2s;
}
.feature-item:hover { background: #1b1b1b; }
.feature-icon { font-size: 1.3rem; margin-bottom: 0.75rem; display: block; }
.feature-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}
.feature-desc {
  font-size: 0.875rem;
  color: #b5afa4;
  line-height: 1.65;
}

/* ─── FOR WHO ─── */
.who-list {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.who-item {
  display: flex;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  transition: border-color 0.25s, background 0.25s;
}
.who-item:hover {
  border-color: rgba(232,197,71,0.4);
  background: var(--accent-dim);
}
.who-check {
  color: var(--accent);
  font-size: 0.85rem;
  margin-top: 0.25rem;
  flex-shrink: 0;
}
.who-text {
  font-size: 0.92rem;
  color: #cfc9be;
  line-height: 1.7;
}
.who-text strong { color: var(--text); font-weight: 700; }

/* ─── FAQ ─── */
.faq-list { margin-top: 2rem; }
.faq-item {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-q {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}
.faq-a {
  font-size: 0.9rem;
  color: #b5afa4;
  line-height: 1.75;
}

/* ─── FINAL CTA ─── */
#final-cta {
  text-align: center;
  padding-top: 5rem;
  padding-bottom: 7rem;
}
#final-cta .section-title { margin-bottom: 0.75rem; }
#final-cta .section-body { margin: 0 auto 2.5rem; max-width: 420px; }
#final-cta .cta-row { justify-content: center; }

/* ─── FOOTER ─── */
footer.footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
  font-size: 0.76rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
footer.footer a {
  color: var(--muted);
  transition: color 0.2s;
}
footer.footer a:hover { color: var(--text); }

/* ─── ANIMATIONS ─── */
.fade-up {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.stagger-1 { transition-delay: 0.05s; }
.stagger-2 { transition-delay: 0.12s; }
.stagger-3 { transition-delay: 0.19s; }
.stagger-4 { transition-delay: 0.26s; }

@media (max-width: 480px) {
  section { padding: 4rem 1.25rem; }
  nav.topbar { padding: 0 1.25rem; }
}

/* ─── ZH-HANT LOCALE TWEAKS ───
   Downloads zh-tw uses slightly different typography scales and spacings
   than the EN version. Keep these in sync with motra-zh-tw.html. */
html[lang="zh-Hant"] {
  --border: #2a2a2a;
  --muted: #9a948b;
  --accent-dim: rgba(232, 197, 71, 0.12);
}
html[lang="zh-Hant"] body {
  font-weight: 400;
}
html[lang="zh-Hant"] .badge {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  border-color: var(--accent);
}
html[lang="zh-Hant"] .hero-title {
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 1.0;
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
}
html[lang="zh-Hant"] .hero-body {
  max-width: 560px;
  line-height: 1.75;
}
html[lang="zh-Hant"] .cta-primary {
  text-transform: none;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  padding: 0.85rem 2rem;
}
html[lang="zh-Hant"] .cta-primary:hover { opacity: 0.88; }
html[lang="zh-Hant"] .disclosure {
  font-size: 0.78rem;
  margin-top: 1.5rem;
}
html[lang="zh-Hant"] .section-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  margin-bottom: 1.25rem;
}
html[lang="zh-Hant"] .section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
}
html[lang="zh-Hant"] .section-body {
  line-height: 1.75;
}
html[lang="zh-Hant"] .feature-item {
  padding: 1.75rem 2rem;
}
html[lang="zh-Hant"] .feature-item:hover {
  background: #1d1d1d;
}
html[lang="zh-Hant"] .feature-icon { font-size: 1.4rem; }
html[lang="zh-Hant"] .feature-title { font-size: 1rem; }
html[lang="zh-Hant"] .feature-desc {
  font-size: 0.9rem;
  line-height: 1.6;
}
html[lang="zh-Hant"] .who-list { gap: 1rem; }
html[lang="zh-Hant"] .who-item { padding: 1.25rem 1.5rem; }
html[lang="zh-Hant"] .who-item:hover {
  border-color: var(--accent);
  background: transparent;
}
html[lang="zh-Hant"] .who-check {
  font-size: 1rem;
  margin-top: 0.1rem;
}
html[lang="zh-Hant"] .who-text {
  font-size: 0.95rem;
}
html[lang="zh-Hant"] .faq-q { font-size: 0.98rem; }
html[lang="zh-Hant"] .faq-a {
  font-size: 0.92rem;
  line-height: 1.75;
}
html[lang="zh-Hant"] footer.footer {
  font-size: 0.78rem;
}
