/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent: #E86533;
  --accent-light: #FFF3EE;
  --accent-dark: #C9501F;
  --text: #1a1a1a;
  --text-secondary: #666;
  --text-tertiary: #999;
  --bg: #ffffff;
  --bg-alt: #FAFAFA;
  --border: #E8E8E8;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.1);
  --transition: .2s ease;
  --max-w: 1120px;
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Noto Sans TC', 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

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

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; border: none; cursor: pointer;
  transition: all var(--transition); white-space: nowrap;
}
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: var(--radius); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--text); }
.btn-full { width: 100%; justify-content: center; }

/* ===== Header ===== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,.85); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 18px; font-weight: 700; letter-spacing: -.02em;
}
.nav { display: flex; gap: 32px; }
.nav a { font-size: 14px; color: var(--text-secondary); transition: color var(--transition); }
.nav a:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-toggle {
  padding: 6px 12px; border-radius: 6px; font-size: 13px; font-weight: 600;
  border: 1.5px solid var(--border); background: transparent; cursor: pointer;
  transition: all var(--transition); color: var(--text-secondary);
}
.lang-toggle:hover { border-color: var(--text); color: var(--text); }
.mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; color: var(--text); }
.mobile-menu {
  display: none; flex-direction: column; padding: 16px 24px 24px;
  border-top: 1px solid var(--border);
}
.mobile-menu a {
  padding: 12px 0; font-size: 16px; color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}
.mobile-menu-actions { display: flex; align-items: center; gap: 12px; padding-top: 16px; }
.mobile-menu.active { display: flex; }

/* ===== Hero ===== */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
}
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.badge {
  display: inline-block; padding: 6px 14px; border-radius: 100px;
  font-size: 13px; font-weight: 600; color: var(--accent);
  background: var(--accent-light); margin-bottom: 20px;
}
.hero h1 {
  font-size: 52px; font-weight: 800; line-height: 1.15;
  letter-spacing: -.03em; margin-bottom: 12px;
}
.text-accent { color: var(--accent); }
.hero-tagline { font-size: 20px; color: var(--text-secondary); margin-bottom: 16px; }
.hero-desc { font-size: 16px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 32px; max-width: 480px; }
.hero-stats {
  display: inline-flex; align-items: center; gap: 24px; margin-bottom: 36px;
  padding: 20px 28px; background: var(--bg); border-radius: var(--radius);
  border: 1px solid var(--border);
}
.stat { text-align: center; }
.stat-value { display: block; font-size: 28px; font-weight: 800; color: var(--text); letter-spacing: -.02em; }
.stat-label { font-size: 12px; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: .04em; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }
.hero-actions { margin-bottom: 12px; }
.hero-note { font-size: 13px; color: var(--text-tertiary); }

/* Hero Phone Image */
.hero-visual { display: flex; justify-content: center; }
.hero-phone-img {
  max-height: 720px; width: auto;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,.15));
}

/* ===== Sections ===== */
.section-header { text-align: center; margin-bottom: 56px; }
.section-label {
  font-size: 13px; font-weight: 700; color: var(--accent);
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px;
}
.section-header h2 { font-size: 36px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 12px; }
.section-desc { font-size: 16px; color: var(--text-secondary); max-width: 520px; margin: 0 auto; }

/* ===== Features ===== */
.features { padding: 100px 0; }
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.feature-card {
  padding: 32px; border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--bg); transition: all var(--transition);
}
.feature-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feature-icon {
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  background: var(--accent-light); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

/* ===== Pricing ===== */
.pricing { padding: 100px 0; background: var(--bg-alt); }
.pricing-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
  max-width: 800px; margin: 0 auto;
}
.pricing-card {
  padding: 36px; border-radius: var(--radius-lg); background: var(--bg);
  border: 1.5px solid var(--border); position: relative;
  transition: all var(--transition);
}
.pricing-card:hover { box-shadow: var(--shadow-md); }
.pricing-card-featured {
  border-color: var(--accent); box-shadow: var(--shadow-md);
}
.pricing-popular {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  padding: 4px 16px; border-radius: 100px; font-size: 12px; font-weight: 700;
  background: var(--accent); color: #fff; white-space: nowrap;
}
.pricing-header { margin-bottom: 24px; }
.pricing-header h3 { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.pricing-desc { font-size: 14px; color: var(--text-secondary); }
.pricing-price { margin-bottom: 4px; }
.price-amount { font-size: 40px; font-weight: 800; letter-spacing: -.02em; }
.price-period { font-size: 14px; color: var(--text-secondary); }
.pricing-yearly { font-size: 13px; color: var(--accent); font-weight: 600; margin-bottom: 24px; }
.pricing-features { list-style: none; margin-bottom: 32px; }
.pricing-features li {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; font-size: 14px; color: var(--text);
}
.pricing-features li.disabled { color: var(--text-tertiary); }
.pricing-features li svg { flex-shrink: 0; }

/* ===== Testimonials ===== */
.testimonials { padding: 100px 0; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card {
  padding: 32px; border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--bg); transition: all var(--transition);
}
.testimonial-card:hover { box-shadow: var(--shadow-md); }
.testimonial-stars { color: #F5A623; font-size: 16px; margin-bottom: 16px; letter-spacing: 2px; }
.testimonial-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 20px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700;
}
.author-name { font-size: 14px; font-weight: 600; }
.author-role { font-size: 12px; color: var(--text-tertiary); }

/* ===== FAQ ===== */
.faq { padding: 100px 0; background: var(--bg-alt); }
.faq-list { max-width: 680px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0; background: none; border: none; cursor: pointer;
  font-size: 16px; font-weight: 600; text-align: left; color: var(--text);
  gap: 16px;
}
.faq-chevron { transition: transform .3s ease; flex-shrink: 0; }
.faq-item.active .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease;
}
.faq-item.active .faq-answer { max-height: 300px; padding-bottom: 20px; }
.faq-answer p { font-size: 14px; color: var(--text-secondary); line-height: 1.8; }

/* ===== CTA ===== */
.cta {
  padding: 80px 0;
  background: var(--text);
  color: #fff;
  text-align: center;
}
.cta h2 { font-size: 32px; font-weight: 800; margin-bottom: 12px; letter-spacing: -.02em; }
.cta p { font-size: 16px; color: #aaa; margin-bottom: 32px; }
.cta .btn-primary { background: var(--accent); }
.cta .btn-primary:hover { background: var(--accent-dark); }

/* ===== Footer ===== */
.footer { padding: 64px 0 0; border-top: 1px solid var(--border); }
.footer-inner {
  display: grid; grid-template-columns: 1fr auto; gap: 64px;
  padding-bottom: 40px;
}
.footer-tagline { font-size: 14px; color: var(--text-secondary); margin-top: 12px; }
.footer-links { display: flex; gap: 64px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.footer-col a { font-size: 14px; color: var(--text-secondary); transition: color var(--transition); }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  padding: 20px 0; border-top: 1px solid var(--border);
  font-size: 13px; color: var(--text-tertiary);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .nav { display: none; }
  .header-actions .btn { display: none; }
  .mobile-menu-btn { display: block; }

  .hero-inner { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero h1 { font-size: 38px; }
  .hero-desc { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero-stats { justify-content: center; }
  .hero-actions { display: flex; justify-content: center; }

  .features-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; }
  .testimonials-grid { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-links { gap: 40px; }
}

@media (max-width: 600px) {
  .hero { padding: 120px 0 60px; }
  .hero h1 { font-size: 32px; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .stat-divider { width: 40px; height: 1px; }

  .features-grid { grid-template-columns: 1fr; }
  .section-header h2 { font-size: 28px; }

  .hero-phone-img { max-height: 460px; }

  .cta h2 { font-size: 26px; }
}

/* ===== Animations ===== */
.fade-in {
  opacity: 0; transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
