/* 官網像素設計系統 — tokens 與前台 frontend/src/app/globals.css 一致。
   @font-face 由 Blade 依語系內嵌（zh_hant / ja 字型檔不同）。 */
:root {
  --background: #ffffff;
  --foreground: #1a1a1a;
  --primary: #333333;
  --secondary: #666666;
  --accent: #ff6b35;
  --border: #e0e0e0;
  --muted: #f5f5f5;
}

* { box-sizing: border-box; border-color: var(--border); }

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: 'Fusion Pixel', 'MS Gothic', 'PMingLiU', monospace;
  -webkit-font-smoothing: none;
  image-rendering: pixelated;
  font-size: 15px;
  line-height: 1.9;
}

a { color: var(--foreground); text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
s { color: var(--secondary); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 800px; }

/* ---- 基元 ---- */
.sq { display: inline-block; width: 8px; height: 8px; flex-shrink: 0; }
.sq--accent { background: var(--accent); }
.sq--dark { background: var(--foreground); }
.dot { display: inline-block; width: 4px; height: 4px; background: var(--secondary); }
.kicker { font-size: 13px; letter-spacing: 4px; color: var(--accent); }
.h1 { font-size: 44px; line-height: 1.45; letter-spacing: 1px; font-weight: normal; }
.h2 { font-size: 32px; letter-spacing: 1px; font-weight: normal; }
.body-text { color: var(--secondary); }
.disclaimer { font-size: 12px; color: #999999; }

.checker {
  height: 16px;
  background-image: repeating-conic-gradient(var(--foreground) 0% 25%, transparent 0% 50%);
  background-size: 16px 16px;
  opacity: 0.08;
}
.checker--dark {
  background-image: repeating-conic-gradient(#ffffff 0% 25%, transparent 0% 50%);
  opacity: 0.1;
}

.cursor {
  display: inline-block;
  width: 12px;
  height: 38px;
  background: var(--foreground);
  vertical-align: -4px;
  margin-left: 10px;
  animation: blink 1.1s step-end infinite;
}
@keyframes blink {
  0%, 45% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* ---- 按鈕（PixelButton 規格） ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 1px;
  box-shadow: 4px 4px 0 0 rgba(0, 0, 0, 1);
  transition: box-shadow 0.1s, transform 0.1s, filter 0.1s;
  cursor: pointer;
  user-select: none;
  text-align: center;
}
.btn:active { box-shadow: 2px 2px 0 0 rgba(0, 0, 0, 1); transform: translate(2px, 2px); }
.btn--accent { background: var(--accent); color: #ffffff; }
.btn--accent:hover { color: #ffffff; filter: brightness(1.1); }
.btn--secondary { background: #ffffff; color: var(--foreground); border: 2px solid var(--foreground); }
.btn--secondary:hover { background: var(--muted); color: var(--foreground); }
.btn--md { padding: 8px 20px; font-size: 14px; }
.btn--lg { padding: 14px 32px; font-size: 16px; }
.btn--block { display: flex; width: 100%; padding: 12px 0; font-size: 15px; margin-top: auto; }
.btn--glow { box-shadow: 5px 5px 0 0 rgba(255, 255, 255, 0.25); }
.btn--glow:active { box-shadow: 2px 2px 0 0 rgba(255, 255, 255, 0.25); }

/* ---- 語系建議列（僅繁中根頁，前端偵測顯示） ---- */
.lang-suggest { display: flex; align-items: center; justify-content: center; gap: 12px; background: var(--foreground); color: #ffffff; font-size: 13px; padding: 8px 16px; }
.lang-suggest[hidden] { display: none; }
.lang-suggest-link { color: var(--accent); border-bottom: 2px solid var(--accent); padding-bottom: 1px; }
.lang-suggest-link:hover { color: #ffffff; border-color: #ffffff; }
.lang-suggest-close { background: none; border: none; color: #999999; cursor: pointer; display: flex; padding: 4px; }
.lang-suggest-close:hover { color: #ffffff; }

/* ---- Nav ---- */
.nav { border-bottom: 2px solid var(--foreground); background: var(--background); }
.nav-inner { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-name { font-size: 18px; letter-spacing: 2px; }
.nav-links { display: flex; align-items: center; gap: 36px; font-size: 15px; }
.nav-right { display: flex; align-items: center; gap: 20px; }
.lang { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.lang a { color: var(--secondary); padding: 2px 4px; }
.lang a.active { color: var(--foreground); border-bottom: 2px solid var(--accent); }
.lang a:hover { color: var(--accent); }

/* ---- Hero ---- */
.hero { display: flex; align-items: center; gap: 72px; padding-top: 88px; padding-bottom: 96px; }
.hero-copy { flex: 1; display: flex; flex-direction: column; gap: 28px; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: 3px; color: var(--secondary); }
.hero-sub { font-size: 17px; color: var(--secondary); max-width: 540px; }
.hero-ctas { display: flex; align-items: center; gap: 20px; padding-top: 8px; flex-wrap: wrap; }
.hero-notes { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--secondary); flex-wrap: wrap; }

.hero-mock { width: 430px; flex-shrink: 0; display: flex; flex-direction: column; gap: 20px; }
.mock-card {
  background: #ffffff;
  border: 2px solid var(--foreground);
  box-shadow: 8px 8px 0 0 rgba(0, 0, 0, 0.15);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mock-head { display: flex; align-items: center; gap: 14px; }
.mock-title { flex: 1; }
.mock-name { font-size: 19px; }
.mock-sub { font-size: 12px; color: var(--secondary); letter-spacing: 1px; }
.mock-live { padding: 4px 10px; background: var(--accent); color: #ffffff; font-size: 12px; letter-spacing: 1px; }
.mock-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stat { border: 2px solid var(--border); padding: 12px 14px; font-size: 15px; line-height: 1.5; }
.stat--row { display: flex; align-items: center; gap: 10px; }
.stat-label { font-size: 12px; color: var(--secondary); margin-bottom: 4px; }
.stat-price { display: flex; align-items: baseline; gap: 8px; }
.stat-price .accent { font-size: 24px; color: var(--accent); }
.stat-price s { font-size: 13px; }
.stat-big-num { font-size: 24px; }
.stat-total { font-size: 14px; color: var(--secondary); }
.prize-a { width: 26px; height: 26px; background: var(--accent); color: #ffffff; display: flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; }
.stat-watch { font-size: 15px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 2px solid var(--border); padding: 5px 10px; font-size: 11px; line-height: 1.4; }
.bar { display: flex; gap: 4px; }
.bar-seg { flex: 1; height: 12px; background: var(--border); }
.bar-seg.is-filled { background: var(--accent); }
.bar-seg.is-dark { background: var(--foreground); }
.bar--tall .bar-seg { height: 36px; }
.mock-drawn { font-size: 12px; color: var(--secondary); }
.mock-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 0;
  background: var(--foreground);
  color: #ffffff;
  font-size: 17px;
  letter-spacing: 4px;
  box-shadow: 4px 4px 0 0 rgba(0, 0, 0, 0.3);
}
.mock-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 2px solid var(--foreground);
  background: #ffffff;
  padding: 12px 16px;
  box-shadow: 4px 4px 0 0 rgba(0, 0, 0, 0.15);
}
.badge-title { font-size: 14px; line-height: 1.6; }
.badge-sub { font-size: 12px; color: var(--secondary); line-height: 1.6; }

/* ---- Profit ---- */
.profit { border-bottom: 1px solid var(--border); }
.profit-grid { display: flex; align-items: center; gap: 80px; padding-top: 88px; padding-bottom: 88px; }
.profit-copy { flex: 1; display: flex; flex-direction: column; gap: 20px; }
.profit-visual { width: 460px; flex-shrink: 0; display: flex; flex-direction: column; gap: 28px; }
.stat-hero { display: flex; align-items: baseline; gap: 16px; }
.stat-num { font-size: 72px; color: var(--accent); letter-spacing: 2px; line-height: 1.1; }
.stat-desc { font-size: 18px; }
.profit-bar-wrap { display: flex; flex-direction: column; gap: 10px; }
.bar-caption { font-size: 13px; color: var(--secondary); }
.bar-labels { display: flex; justify-content: space-between; font-size: 13px; color: var(--secondary); }
.bar-labels span { display: inline-flex; align-items: center; gap: 8px; }
.bar-labels .sq { width: 10px; height: 10px; }

/* ---- Sections ---- */
.section { padding-top: 96px; padding-bottom: 96px; }
.section-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 48px; }
.section-head--center { align-items: center; text-align: center; }
.section-sub { font-size: 15px; color: var(--secondary); }

.cards-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card {
  background: #ffffff;
  border: 2px solid var(--foreground);
  box-shadow: 4px 4px 0 0 rgba(0, 0, 0, 0.15);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.card-title { font-size: 20px; font-weight: normal; }
.card-body { font-size: 14px; color: var(--secondary); }
.card--dark { background: var(--foreground); color: #ffffff; }
.card--dark .card-body { color: #aaaaaa; }
.fair-num {
  width: 40px;
  height: 40px;
  background: var(--foreground);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 3px 3px 0 0 var(--accent);
}
.card--dark .fair-num { background: #ffffff; color: var(--foreground); }

/* ---- Steps ---- */
.steps-band { background: var(--muted); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.steps { display: flex; gap: 48px; padding-top: 56px; padding-bottom: 56px; }
.step { display: flex; align-items: flex-start; gap: 18px; flex: 1; }
.step-num {
  width: 44px;
  height: 44px;
  background: var(--foreground);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 3px 3px 0 0 var(--accent);
  flex-shrink: 0;
}
.step-title { font-size: 18px; font-weight: normal; }
.step-body { font-size: 13px; color: var(--secondary); }

/* ---- Pricing ---- */
.pricing-band { background: var(--muted); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 96px 0; }
.plans { display: flex; justify-content: center; align-items: stretch; gap: 40px; }
.plan {
  width: 400px;
  background: #ffffff;
  border: 2px solid var(--foreground);
  box-shadow: 4px 4px 0 0 rgba(0, 0, 0, 0.15);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.plan--pro { box-shadow: 8px 8px 0 0 var(--accent); position: relative; }
.plan-tag {
  position: absolute;
  top: -14px;
  right: 24px;
  background: var(--accent);
  color: #ffffff;
  padding: 5px 14px;
  font-size: 13px;
  letter-spacing: 2px;
}
.plan-name { font-size: 14px; letter-spacing: 3px; color: var(--secondary); font-weight: normal; }
.plan-price { display: flex; align-items: baseline; gap: 8px; }
.price-num { font-size: 44px; }
.price-per { font-size: 15px; color: var(--secondary); }
.plan-fee { font-size: 15px; color: var(--secondary); }
.plan-hr { border: none; height: 2px; background: var(--border); margin: 0; width: 100%; }
.plan-items { display: flex; flex-direction: column; gap: 14px; font-size: 14px; }
.plan-items li { display: flex; align-items: center; gap: 10px; line-height: 1.6; }
.pricing-note { font-size: 13px; color: var(--secondary); text-align: center; margin-top: 40px; }

/* ---- FAQ ---- */
.faq-list { display: flex; flex-direction: column; }
.faq-item { display: flex; gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.q-badge {
  width: 28px;
  height: 28px;
  background: var(--foreground);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.faq-q { font-size: 17px; font-weight: normal; margin-bottom: 10px; }
.faq-a { font-size: 14px; color: var(--secondary); }

/* ---- CTA band ---- */
.cta-band { background: var(--foreground); }
.cta-inner { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; padding-top: 80px; padding-bottom: 80px; }
.cta-title { font-size: 34px; color: #ffffff; font-weight: normal; letter-spacing: 1px; }
.cta-sub { font-size: 15px; color: #aaaaaa; }
.cta-band .btn--accent { color: #ffffff; }

/* ---- Footer ---- */
.footer { border-top: 2px solid var(--foreground); }
.footer-grid { display: flex; justify-content: space-between; gap: 48px; padding-top: 48px; }
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-tagline { font-size: 13px; color: var(--secondary); }
.footer-cols { display: flex; gap: 64px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.footer-col-title { font-size: 12px; letter-spacing: 2px; color: var(--secondary); }
.footer-muted { color: var(--secondary); }
.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 32px;
  padding: 20px 0 40px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: #999999;
  flex-wrap: wrap;
}

/* ---- RWD ---- */
@media (max-width: 1024px) {
  .hero { flex-direction: column; align-items: stretch; gap: 48px; padding-top: 48px; padding-bottom: 56px; }
  .hero-mock { width: 100%; max-width: 460px; margin: 0 auto; }
  .h1 { font-size: 32px; }
  .cursor { width: 9px; height: 26px; vertical-align: -3px; margin-left: 8px; }
  .profit-grid { flex-direction: column; align-items: stretch; gap: 40px; padding-top: 64px; padding-bottom: 64px; }
  .profit-visual { width: 100%; }
  .stat-num { font-size: 56px; }
  .cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { flex-direction: column; gap: 28px; }
  .plans { flex-direction: column; align-items: center; gap: 32px; }
  .plan { width: 100%; max-width: 440px; }
}

@media (max-width: 768px) {
  .nav-inner { height: 60px; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .brand-name { font-size: 15px; }
  .h2 { font-size: 24px; line-height: 1.6; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .pricing-band { padding: 64px 0; }
  .cards-3 { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; }
  .hero-notes { justify-content: center; }
  .bar--tall .bar-seg { height: 28px; }
  .footer-grid { flex-direction: column; gap: 28px; }
  .footer-cols { flex-wrap: wrap; gap: 28px; }
  .cta-title { font-size: 26px; line-height: 1.6; }
  .checker { height: 12px; background-size: 12px 12px; }
}
