:root {
  --bg: #f6f7f4;
  --paper: #ffffff;
  --ink: #111312;
  --muted: #5d6461;
  --line: #dfe4df;
  --soft: #edf1ed;
  --green: #1f6f5b;
  --green-dark: #164c40;
  --blue: #2481cc;
  --blue-soft: #e7f2fb;
  --amber: #c77d1f;
  --violet: #6854c8;
  --shadow: 0 18px 50px rgba(17, 19, 18, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans TC", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC", "Microsoft JhengHei", "Noto Sans CJK TC", sans-serif;
  line-height: 1.6;
  letter-spacing: 0;
}

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 0 32px;
  border-bottom: 1px solid rgba(223, 228, 223, 0.86);
  background: rgba(246, 247, 244, 0.92);
  backdrop-filter: blur(16px);
}

.site-header[data-scrolled] {
  box-shadow: 0 10px 30px rgba(17, 19, 18, 0.06);
}

.brand,
.site-nav,
.header-cta,
.hero-actions,
.hero-stats,
.tg-topbar,
.checkout-bar,
.product-row,
.therapist,
.feature-grid,
.system-list,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 760;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
}

.site-nav {
  justify-content: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

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

.header-cta,
.button,
.tg-bottom-action,
.bubble button,
.bot-buttons button {
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 700;
}

.header-cta {
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 88px 28px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.88fr);
  gap: 46px;
  align-items: center;
  min-height: min(820px, calc(100vh - 72px));
  padding-top: 46px;
  padding-bottom: 70px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  max-width: 680px;
  font-size: clamp(44px, 7vw, 84px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 26px;
  line-height: 1.18;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 660px;
  margin-bottom: 30px;
  color: #303634;
  font-size: 20px;
  line-height: 1.7;
}

.hero-actions {
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
}

.button.primary {
  background: var(--green);
  color: #fff;
}

.button.secondary {
  border-color: var(--line);
  background: #fff;
}

.hero-stats {
  gap: 10px;
  flex-wrap: wrap;
}

.hero-stats div {
  min-width: 128px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.hero-stats dt {
  font-size: 24px;
  font-weight: 820;
  line-height: 1;
}

.hero-stats dd {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.hero-visual {
  position: relative;
  display: grid;
  justify-items: center;
}

.phone {
  width: min(100%, 382px);
  overflow: hidden;
  border: 10px solid #101312;
  border-radius: 30px;
  background: #17212b;
  box-shadow: var(--shadow);
}

.hero-phone {
  min-height: 682px;
}

.small-phone {
  width: min(100%, 328px);
  min-height: 520px;
  border-width: 8px;
  border-radius: 28px;
}

.tg-topbar {
  min-height: 64px;
  gap: 12px;
  padding: 10px 14px;
  background: var(--blue);
  color: #fff;
}

.phone-appbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding: 0 14px;
  background: #17212b;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.phone-appbar span {
  font-size: 13px;
  font-weight: 820;
}

.phone-appbar small {
  color: rgba(255, 255, 255, 0.64);
  font-size: 11px;
}

.phone-appbar.compact {
  min-height: 34px;
}

.tg-topbar strong,
.tg-topbar small {
  display: block;
}

.tg-topbar strong {
  font-size: 15px;
  line-height: 1.2;
}

.tg-topbar small {
  opacity: 0.82;
  font-size: 12px;
  line-height: 1.3;
}

.tg-back {
  font-size: 32px;
  line-height: 1;
}

.tg-menu {
  margin-left: auto;
  letter-spacing: 2px;
}

.chat-area {
  min-height: 578px;
  padding: 18px 14px;
  background:
    linear-gradient(45deg, rgba(36, 129, 204, 0.05) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(31, 111, 91, 0.05) 25%, transparent 25%),
    #edf2f6;
  background-size: 18px 18px;
}

.compact-chat {
  position: relative;
  min-height: 490px;
  padding-bottom: 62px;
}

.bubble {
  width: fit-content;
  max-width: 86%;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.45;
}

.bubble.bot {
  background: #fff;
  color: #1f2522;
}

.bubble.user {
  margin-left: auto;
  background: #d8f0c6;
}

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

.bubble button,
.bot-buttons button {
  width: 100%;
  margin-top: 8px;
  padding: 9px 10px;
  background: var(--blue-soft);
  color: var(--blue);
  border-color: rgba(36, 129, 204, 0.18);
}

.bot-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 6px 0 10px;
}

.mini-sheet {
  margin-top: 18px;
  padding: 12px;
  border-radius: 14px 14px 8px 8px;
  background: #fff;
  box-shadow: 0 -8px 28px rgba(16, 19, 18, 0.12);
}

.mini-handle {
  width: 44px;
  height: 4px;
  margin: 0 auto 12px;
  border-radius: 999px;
  background: #d9ded9;
}

.mini-context {
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 850;
  text-align: center;
}

.mini-title {
  display: grid;
  margin-bottom: 14px;
}

.mini-title span {
  font-weight: 790;
}

.mini-title small {
  color: var(--muted);
}

.product-row {
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.product-row > span {
  margin-left: auto;
  font-size: 13px;
  font-weight: 780;
}

.product-thumb,
.mock-img,
.avatar {
  flex: 0 0 auto;
  border-radius: 8px;
}

.product-thumb {
  width: 48px;
  height: 48px;
}

.thumb-green,
.mock-img.green {
  background: linear-gradient(135deg, #d7eadc, #1f6f5b);
}

.mock-img.blue {
  background: linear-gradient(135deg, #d9ecfa, #2481cc);
}

.mock-img.violet {
  background: linear-gradient(135deg, #eeeaff, #6854c8);
}

.checkout-bar {
  justify-content: space-between;
  margin-top: 12px;
  padding: 10px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
}

.checkout-bar button {
  border: 0;
  border-radius: 7px;
  padding: 8px 10px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
}

.dashboard-slab {
  position: absolute;
  right: 0;
  bottom: 34px;
  width: 174px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.message-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  margin-top: 14px;
  padding: 0 12px;
  border-radius: 999px;
  background: #fff;
  color: #8d969c;
  font-size: 13px;
}

.message-input strong {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  line-height: 1;
}

.dashboard-slab span,
.dashboard-slab small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.dashboard-slab strong {
  display: block;
  margin: 4px 0;
  font-size: 40px;
  line-height: 1;
}

.intro-band {
  max-width: none;
  background: var(--ink);
  color: #fff;
}

.intro-band .section-heading,
.intro-band .flow {
  max-width: 1124px;
  margin-left: auto;
  margin-right: auto;
}

.intro-band .eyebrow {
  color: #a4d5c0;
}

.intro-band h2 {
  max-width: 760px;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 34px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}

.section-heading.compact {
  margin-bottom: 26px;
}

.flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.flow div,
.feature-grid div,
.contact-panel,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.flow div {
  min-height: 150px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.flow span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 18px;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
}

.flow strong,
.flow small {
  display: block;
}

.flow small {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.72);
}

.demo-grid {
  display: grid;
  gap: 18px;
}

.demo-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 34px;
  align-items: center;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.demo-copy {
  max-width: 590px;
}

.demo-label {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 5px 9px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 820;
}

.demo-copy p {
  color: var(--muted);
  font-size: 17px;
}

.demo-copy ul,
.contact-panel ul {
  margin: 18px 0 0;
  padding-left: 18px;
}

.demo-copy li,
.contact-panel li {
  margin: 7px 0;
}

.mini-app-screen {
  min-height: 490px;
  padding: 14px;
  background: #f7f8fa;
}

.mini-search,
.banner,
.fake-input {
  border-radius: 8px;
}

.mini-search {
  padding: 10px 12px;
  background: #e8edf1;
  color: #7b858c;
  font-size: 13px;
}

.banner {
  margin: 12px 0;
  padding: 18px;
  background: var(--green-dark);
  color: #fff;
  font-weight: 800;
}

.item-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.item-grid div {
  min-height: 150px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.mock-img {
  display: block;
  width: 100%;
  height: 78px;
  margin-bottom: 10px;
}

.item-grid strong,
.item-grid small,
.therapist strong,
.therapist small,
.code-product strong,
.code-product small {
  display: block;
}

.item-grid small,
.therapist small,
.code-product small {
  color: var(--muted);
  font-size: 12px;
}

.tg-bottom-action {
  display: grid;
  place-items: center;
  min-height: 44px;
  margin-top: 14px;
  background: var(--blue);
  color: #fff;
  text-align: center;
}

.booking-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 16px;
}

.booking-steps span,
.time-pills span {
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  min-height: 38px;
  font-size: 13px;
  border: 1px solid var(--line);
}

.booking-steps .active,
.time-pills span:first-child {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.therapist,
.code-product {
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.therapist span {
  margin-left: auto;
  color: var(--amber);
  font-weight: 800;
}

.avatar {
  width: 54px;
  height: 54px;
  background:
    radial-gradient(circle at 50% 34%, #f1c7a6 0 16%, transparent 17%),
    radial-gradient(circle at 50% 78%, #26463e 0 30%, transparent 31%),
    #e7ede8;
}

.time-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.code-product {
  align-items: center;
  margin-bottom: 12px;
}

.code-product .mock-img {
  width: 64px;
  height: 64px;
  margin: 0;
}

.fake-input {
  display: block;
  margin-bottom: 10px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: #39413e;
  font-size: 13px;
}

.feature-section {
  max-width: none;
  background: #fff;
}

.feature-section .section-heading,
.feature-section .feature-grid {
  max-width: 1124px;
  margin-left: auto;
  margin-right: auto;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.feature-grid div {
  display: grid;
  align-content: start;
  min-height: 160px;
  padding: 18px;
  background: #fbfcfb;
}

.feature-grid strong {
  font-size: 18px;
}

.feature-grid span {
  margin-top: 10px;
  color: var(--muted);
}

.integrations {
  max-width: 1124px;
}

.integration-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.5fr) minmax(0, 1fr);
  gap: 18px;
}

.system-list {
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.system-list span {
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--soft);
  font-size: 13px;
  font-weight: 740;
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.pipeline div {
  min-height: 130px;
  padding: 14px;
  border-radius: 8px;
  background: #f5f7f5;
}

.pipeline small,
.pipeline strong {
  display: block;
}

.pipeline small {
  color: var(--blue);
  font-weight: 800;
  margin-bottom: 14px;
}

.pipeline strong {
  line-height: 1.35;
}

.faq-section {
  max-width: 920px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  padding: 18px 20px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 800;
}

.faq-list p {
  margin: 12px 0 0;
  color: var(--muted);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.55fr);
  gap: 24px;
  align-items: start;
}

.contact-section h2 {
  max-width: 760px;
}

.contact-section p {
  color: var(--muted);
  font-size: 18px;
}

.contact-panel {
  padding: 22px;
  background: #fff;
}

.contact-panel strong {
  display: block;
  font-size: 18px;
}

.site-footer {
  justify-content: space-between;
  gap: 16px;
  padding: 28px 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
    padding: 0 18px;
  }

  .site-nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 48px;
  }

  .hero-visual {
    order: -1;
  }

  .hero-phone {
    min-height: 590px;
  }

  .chat-area {
    min-height: 526px;
  }

  .dashboard-slab {
    right: calc(50% - 190px);
    bottom: 12px;
  }

  .flow,
  .feature-grid,
  .pipeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .demo-item,
  .integration-layout,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .demo-item {
    justify-items: center;
  }

  .demo-copy {
    max-width: none;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 64px;
  }

  .header-cta {
    min-height: 36px;
    padding: 0 12px;
    font-size: 13px;
  }

  .section {
    padding: 58px 16px;
  }

  .hero {
    padding-top: 28px;
    gap: 28px;
  }

  h1 {
    font-size: 48px;
  }

  .hero-lead,
  .section-heading p:not(.eyebrow),
  .contact-section p {
    font-size: 16px;
  }

  .button {
    width: 100%;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .hero-stats div {
    min-width: 0;
    padding: 12px 10px;
  }

  .hero-stats dt {
    font-size: 20px;
  }

  .phone {
    width: min(100%, 340px);
    border-width: 8px;
  }

  .small-phone {
    min-height: 492px;
  }

  .dashboard-slab {
    position: static;
    width: min(100%, 340px);
    margin-top: 14px;
  }

  .flow,
  .feature-grid,
  .pipeline,
  .item-grid {
    grid-template-columns: 1fr;
  }

  .flow div,
  .feature-grid div,
  .pipeline div {
    min-height: auto;
  }

  .demo-item {
    padding: 18px;
  }

  .bot-buttons,
  .time-pills,
  .booking-steps {
    grid-template-columns: 1fr;
  }

  .site-footer {
    display: grid;
    padding: 24px 16px;
  }
}
