/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, 'PingFang TC', 'Microsoft JhengHei', sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
  overflow-wrap: break-word;
  line-break: strict;
  word-break: normal;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ===== Design Tokens ===== */
:root {
  --aubergine: #4A154B;
  --aubergine-deep: #2a0c2c;
  --blue: #36C5F0;
  --green: #2EB67D;
  --red: #E01E5A;
  --yellow: #ECB22E;
  --ink: #1d1c1d;
  --paper: #ffffff;
  --surface: #faf8fb;
  --muted: #6b6b6b;
}

/* ===== Typography ===== */
h1, h2, h3 {
  font-family: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, 'PingFang TC', 'Microsoft JhengHei', sans-serif;
  font-weight: 900;
  color: var(--aubergine);
  line-height: 1.3;
  letter-spacing: 0.01em;
}
h1 { font-size: clamp(2.2rem, 7vw, 4rem); }
h2 { font-size: clamp(1.8rem, 5.5vw, 3rem); }
h3 { font-size: clamp(1.3rem, 3.5vw, 1.9rem); margin-bottom: 1rem; }
h4 {
  font-family: 'Noto Sans TC', sans-serif;
  font-weight: 700;
  color: var(--aubergine);
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  margin-bottom: 0.5rem;
}
p { font-size: clamp(1rem, 2.2vw, 1.15rem); color: #2b2b2b; margin-bottom: 0.75rem; }
li { font-size: clamp(1rem, 2.2vw, 1.15rem); color: #2b2b2b; margin-bottom: 0.6rem; }
.kicker {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 700;
  margin-bottom: 1rem;
}

/* ===== Layout ===== */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 6vw;
}
.hero, .divider {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8vh 8vw;
  color: #fff;
  position: relative;
  overflow: hidden;
  background-size: 200% 200%;
}
.hero { min-height: 100vh; }
.part { display: block; }

/* ===== Sticky Nav & Progress Bar ===== */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--green), var(--yellow), var(--red));
  z-index: 60;
  transition: width 0.1s linear;
}
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #ececec;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 6vw;
  max-width: 1200px;
  margin: 0 auto;
}
.nav-brand {
  font-family: 'Noto Sans TC', sans-serif;
  font-weight: 900;
  color: var(--aubergine);
  font-size: 1.1rem;
}
.nav-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
  font-weight: 700;
}
.nav-links a {
  color: var(--muted);
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.nav-links a[aria-current="true"] {
  color: var(--aubergine);
  border-bottom-color: var(--red);
}
.nav-progress-dot {
  display: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-progress-dot { display: block; }
}

/* ===== Hero ===== */
.hero-sub {
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  color: #e9d5ec;
  margin-top: 0.5rem;
  max-width: 50ch;
}

/* ===== Reveal & Reduced Motion ===== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
  .hero, .divider { animation: none !important; }
}

/* ===== Divider Variants ===== */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.hero, .divider {
  animation: gradientShift 18s ease infinite;
}
.divider--purple, .hero {
  background-image: linear-gradient(135deg, var(--aubergine) 0%, #611f69 45%, var(--aubergine-deep) 100%);
}
.divider--teal {
  background-image: linear-gradient(135deg, var(--green) 0%, var(--blue) 100%);
}
.divider__num {
  position: absolute;
  right: 4vw;
  top: 4vh;
  font-size: clamp(6rem, 20vw, 13rem);
  font-weight: 900;
  color: rgba(255, 255, 255, 0.12);
  font-family: 'Noto Sans TC', sans-serif;
  line-height: 1;
  pointer-events: none;
}
.divider .kicker, .hero .kicker { color: var(--yellow); }
.hero h1, .divider h1, .divider h2, .divider h3 { color: #fff; }
.divider p { color: #f1e4f2; }
.dots { display: flex; gap: 0.7rem; margin-bottom: 1.5rem; }
.dots span { width: 16px; height: 16px; border-radius: 50%; }
.dots .d1 { background: var(--blue); }
.dots .d2 { background: var(--green); }
.dots .d3 { background: var(--red); }
.dots .d4 { background: var(--yellow); }

/* ===== Text Highlights ===== */
.hl { color: var(--red); font-weight: 700; }
.hl-green { color: var(--green); font-weight: 700; }
.hl-yellow { color: var(--yellow); font-weight: 700; }

/* ===== Quote Block ===== */
.quote-block {
  background: var(--aubergine);
  color: #fff;
  border-left: 8px solid var(--yellow);
  border-radius: 16px;
  padding: 2.5rem clamp(1.5rem, 4vw, 3rem);
  margin: 2rem auto;
  max-width: 1100px;
}
.quote-block h3 { color: #fff; }
.quote-block .quote-en { color: #d9b8e0; font-size: 1rem; margin: 0.75rem 0; }
.quote-block p { color: #f1e4f2; }

/* ===== Numbers & Stat Grid ===== */
.num {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 900;
  line-height: 1;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  margin: 1.5rem 0;
}
.stat-block .num { color: var(--green); }
.stat-block .label { color: var(--muted); font-size: 0.95rem; margin-top: 0.5rem; }
.source-line { color: #b3b3b3; font-size: 0.8rem; margin-top: 1rem; }

/* ===== Compare Grid ===== */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0;
}
.compare-card {
  border: 2px solid #ececec;
  border-radius: 16px;
  padding: 1.75rem;
  background: var(--surface);
}
.compare-card--highlight {
  background: var(--aubergine);
  color: #fff;
  border: none;
}
.compare-card--highlight h4 { color: #fff; }
.compare-card--highlight .kicker { color: var(--yellow); }
.compare-card--highlight p { color: #f1e4f2; }

/* ===== Pain / Value Grid ===== */
.pain-value-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0;
}
.pain-value-grid .card {
  border: 2px solid #ececec;
  border-radius: 16px;
  padding: 1.75rem;
  background: var(--surface);
}
.pain-value-grid .card--value {
  background: #eafaf3;
  border-color: #cdeee1;
}
.pill {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
}
.pill--pain { background: var(--red); color: #fff; }
.pill--value { background: var(--green); color: #fff; }

/* ===== Tag Pills / Bullet Grid ===== */
.tag-pills { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.tag-pill {
  background: var(--surface);
  border: 1px solid #ececec;
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--aubergine);
}
.bullet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 3rem;
  margin-top: 1.5rem;
}
.bullet-grid li { padding-left: 1.2rem; position: relative; }
.bullet-grid li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.6em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--blue);
}

/* ===== Statement Banner ===== */
.statement-banner {
  padding: 4rem 6vw;
}
.statement-banner h3, .statement-banner .num, .statement-banner p {
  color: #fff;
}
.statement-banner--green { background: var(--green); }
.statement-banner--pink { background: var(--red); }
.statement-banner--purple-dark { background: var(--aubergine-deep); }
.statement-banner--purple-dark .num { color: var(--yellow); }

/* ===== Case Study Callout ===== */
.case-study {
  background: var(--surface);
  border-radius: 16px;
  padding: 2rem clamp(1.5rem, 4vw, 2.5rem);
  margin-top: 2rem;
}
.case-study--teal {
  background: linear-gradient(135deg, var(--green), var(--blue));
  color: #fff;
}
.case-study--teal h4, .case-study--teal p { color: #fff; }
.case-study--teal .kicker { color: #fff; opacity: 0.85; }

/* ===== Trio Grid (soul/nerve/brain) ===== */
.trio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.trio-card {
  background: var(--surface);
  border-radius: 16px;
  padding: 1.75rem;
}
.trio-card:nth-child(2) h4 { color: var(--green); }
.trio-card--highlight {
  background: var(--aubergine);
  color: #fff;
}
.trio-card--highlight h4 { color: #fff; }
.trio-card--highlight .kicker { color: var(--yellow); }
.trio-card--highlight p { color: #f1e4f2; }

/* ===== Agenda Grid ===== */
.agenda-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.agenda-step {
  display: block;
  border-top: 5px solid var(--aubergine);
  padding-top: 1rem;
  color: inherit;
}
.agenda-step:nth-child(1) { border-top-color: var(--blue); }
.agenda-step:nth-child(2) { border-top-color: var(--green); }
.agenda-step:nth-child(3) { border-top-color: var(--red); }
.agenda-step:nth-child(4) { border-top-color: var(--yellow); }
.agenda-step .t { font-size: 0.85rem; color: var(--red); font-weight: 700; margin-bottom: 0; }
.agenda-step h4 { margin: 0.4rem 0; }

/* ===== Footer ===== */
.site-footer {
  background: var(--surface);
  padding: 4rem 6vw;
  color: var(--muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 3rem;
  margin-top: 1.5rem;
  font-size: 0.9rem;
}
.footer-credit {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e4dce6;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--aubergine);
}

/* ===== Slack UI Mock (CSS-built, no external assets) ===== */
.slack-window {
  margin: 2rem 0 1rem;
  max-width: 640px;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e6e0e8;
  box-shadow: 0 18px 40px rgba(74, 21, 75, 0.12);
}
.slack-topbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.1rem;
  background: var(--aubergine);
  color: #fff;
}
.slack-dots { display: flex; gap: 0.4rem; }
.slack-dots i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,0.35); display: block; }
.slack-channel { font-weight: 700; font-size: 1rem; letter-spacing: 0.01em; }
.slack-hash { opacity: 0.6; font-weight: 400; }
.slack-body { padding: 0.4rem 0.6rem 0.9rem; }
.slack-msg {
  display: flex;
  gap: 0.75rem;
  padding: 0.6rem 0.6rem;
  border-radius: 8px;
}
.slack-msg--bot { background: #f7f0f8; }
.slack-avatar {
  flex: 0 0 auto;
  width: 38px; height: 38px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 1.05rem;
}
.av-blue { background: var(--blue); }
.av-green { background: var(--green); }
.av-yellow { background: var(--yellow); color: #4a3a00; }
.av-bot { background: var(--aubergine); }
.slack-msg-content { min-width: 0; }
.slack-meta { display: flex; align-items: baseline; gap: 0.5rem; margin-bottom: 0.1rem; flex-wrap: wrap; }
.slack-user { font-weight: 700; color: var(--ink); font-size: 0.98rem; }
.slack-time { color: var(--muted); font-size: 0.78rem; }
.slack-badge {
  background: var(--green); color: #fff;
  font-size: 0.66rem; font-weight: 700;
  padding: 0.05rem 0.4rem; border-radius: 4px; letter-spacing: 0.05em;
}
.slack-text { font-size: 0.98rem; line-height: 1.6; color: #2b2b2b; margin: 0; }
.slack-text strong { color: var(--aubergine); }

/* ===== Responsive Collapse (must stay last so it wins the cascade) ===== */
@media (max-width: 720px) {
  .compare-grid,
  .pain-value-grid,
  .bullet-grid,
  .trio-grid,
  .agenda-grid,
  .footer-grid,
  .stat-grid {
    grid-template-columns: 1fr;
  }
}
