:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f7f5fb;
  --color-text: #1c1730;
  --color-text-muted: #6b6478;
  --color-primary: #6d4bff;
  --color-primary-dark: #5636e0;
  --color-border: #e8e4f2;
  --radius: 16px;
  --max-width: 1120px;
  --font: "Noto Sans TC", -apple-system, BlinkMacSystemFont, "PingFang HK", "Microsoft JhengHei", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

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

a { color: inherit; text-decoration: none; }

.muted { color: var(--color-text-muted); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
}

.logo-img { height: 32px; width: auto; display: block; }
.footer-logo-img { height: 28px; width: auto; display: block; margin-bottom: 8px; }

.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
}

.nav a:hover { color: var(--color-primary); }

.nav-cta { display: inline-flex; }

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-toggle {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
  color: var(--color-text);
}

.lang-toggle:hover { border-color: var(--color-primary); color: var(--color-primary); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(109, 75, 255, 0.25);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-ghost:hover { border-color: var(--color-primary); color: var(--color-primary); }

.btn-store {
  background: var(--color-text);
  color: #fff;
}

.btn-store:hover { transform: translateY(-1px); }

.store-icon::before { content: "📱"; }

.coming-soon-badge {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  background: var(--color-bg-alt);
  color: var(--color-primary);
  border: 1px solid var(--color-border);
}

.coming-soon-badge-light {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Hero */
.hero {
  padding: 96px 0 80px;
  background: linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  text-align: center;
}

.hero-inner .hero-sub { margin-left: auto; margin-right: auto; }
.hero-inner .hero-actions { justify-content: center; }

.eyebrow {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 2px;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.hero-text h1 {
  font-size: 44px;
  font-weight: 900;
  line-height: 1.3;
  margin: 0 0 20px;
}

.hero-sub {
  font-size: 17px;
  color: var(--color-text-muted);
  margin: 0 0 32px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-video {
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius);
  box-shadow: 0 30px 60px rgba(28, 23, 48, 0.2);
  display: block;
}

/* Sections */
.section { padding: 88px 0; }
.section-alt { background: var(--color-bg-alt); }

.section-title {
  font-size: 32px;
  font-weight: 900;
  text-align: center;
  margin: 0 0 8px;
}

.section-sub {
  text-align: center;
  color: var(--color-text-muted);
  margin: 0 0 48px;
}

/* Grids */
.grid {
  display: grid;
  gap: 24px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(28, 23, 48, 0.08);
}

.card-icon { font-size: 40px; margin-bottom: 16px; }

.card h3 { margin: 0 0 8px; font-size: 18px; }

.card p { margin: 0; color: var(--color-text-muted); font-size: 14px; }

/* Steps */
.step { text-align: center; padding: 0 16px; }

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-weight: 900;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.step h3 { margin: 0 0 8px; font-size: 18px; }
.step p { margin: 0; color: var(--color-text-muted); font-size: 14px; }

/* Masters */
.avatar-placeholder {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin: 0 auto 16px;
}

/* CTA */
.section-cta {
  background: linear-gradient(135deg, var(--color-primary) 0%, #4a2fd4 100%);
  color: #fff;
  text-align: center;
}

.cta-inner h2 { font-size: 30px; margin: 0 0 12px; }
.cta-inner p { margin: 0 0 32px; opacity: 0.9; }
.cta-inner .hero-actions { justify-content: center; }

/* Footer */
.site-footer {
  padding: 48px 0;
  border-top: 1px solid var(--color-border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-logo { margin: 0 0 8px; }

.footer-contact p { margin: 0 0 8px; font-weight: 700; }
.footer-contact a { color: var(--color-primary); }

.footer-links { margin: 12px 0 0; font-size: 14px; }
.footer-links a { color: var(--color-text-muted); margin-right: 16px; }
.footer-links a:hover { color: var(--color-primary); }

/* Pain points */
.pain-grid { margin-top: 40px; }

.pain-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px 20px;
}

.pain-number {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.pain-topic {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--color-text-muted);
}

.pain-card h3 { margin: 0; font-size: 17px; line-height: 1.4; }

.pain-coverage {
  text-align: center;
  margin: 40px 0 0;
  color: var(--color-text-muted);
  font-size: 14px;
}

.pain-coverage span { font-weight: 700; color: var(--color-text); margin-right: 12px; }
.pain-coverage em { font-style: normal; margin: 0 8px; }

/* FAQ */
.faq-grid { margin-top: 32px; gap: 48px; }
.faq-col h3 { font-size: 18px; margin: 0 0 16px; }

.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 16px 0;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 500;
  font-size: 15px;
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::before {
  content: "+";
  display: inline-block;
  width: 18px;
  color: var(--color-primary);
  font-weight: 700;
}

.faq-item[open] summary::before { content: "−"; }

.faq-item p {
  margin: 12px 0 0 18px;
  color: var(--color-text-muted);
  font-size: 14px;
}

/* Join (玄學家加入) */
.join-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.join-title, .join-sub { text-align: left; }
.join-benefits { grid-template-columns: 1fr; gap: 20px; margin-top: 32px; }

.benefit h3 { margin: 0 0 4px; font-size: 16px; }
.benefit p { margin: 0; color: var(--color-text-muted); font-size: 14px; }

.join-form {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.join-form h3 { margin: 0 0 16px; font-size: 20px; }

.join-form-embed { padding: 16px; }

.join-form label {
  font-size: 14px;
  font-weight: 500;
  margin-top: 14px;
}

.join-form input[type="text"],
.join-form input[type="email"],
.join-form input[type="tel"],
.join-form select,
.join-form textarea {
  font-family: var(--font);
  font-size: 15px;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  color: var(--color-text);
}

.join-form textarea { resize: vertical; }

.join-form fieldset {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 12px 14px;
  margin-top: 14px;
}

.join-form legend { font-size: 14px; font-weight: 500; padding: 0 6px; }

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400 !important;
  margin-top: 8px !important;
}

.checkbox-label input { width: auto; }

.form-submit {
  margin-top: 20px;
  border: none;
  cursor: pointer;
  width: 100%;
}

/* Responsive */
@media (max-width: 860px) {
  .nav { display: none; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-text { order: 1; }
  .hero-visual { order: 0; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-text h1 { font-size: 32px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .join-inner { grid-template-columns: 1fr; }
  .join-title, .join-sub { text-align: center; }
  .faq-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
}
