/* ============ AI 一人公司 — 品牌色取自宣傳圖 ============ */
:root {
  --ink: #10214b;        /* 深藍：標題、主文字 */
  --paper: #f7fbfc;      /* 雲白：頁面底色 */
  --teal: #0ea5a4;       /* 湖青：品牌主色 */
  --blue: #2f6bff;       /* 電藍：漸層搭配 */
  --orange: #ff9e2c;     /* 暖橙：價格、強調 */
  --line-green: #06c755;
  --tg-blue: #2aabee;
  --muted: #5b6b8c;
  --card: #ffffff;
  --radius: 18px;
  --font-tc: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --font-num: "Space Grotesk", var(--font-tc);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-tc);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3 { line-height: 1.25; letter-spacing: 0.01em; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 900; margin-bottom: 0.6em; }
h3 { font-size: 1.25rem; font-weight: 700; }

.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--teal);
  border: 1.5px solid currentColor;
  border-radius: 999px;
  padding: 0.15em 1em;
  margin-bottom: 1em;
}
.eyebrow-light { color: #7fe6e0; }

.lead { font-size: 1.1rem; color: var(--muted); max-width: 32em; }
.section-dark .lead { color: #b8c6e6; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 251, 252, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(16, 33, 75, 0.08);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 62px;
}
.brand {
  font-weight: 900; font-size: 1.15rem; text-decoration: none; color: var(--ink);
}
.brand-dot { color: var(--teal); }
.site-nav { display: flex; align-items: center; gap: 1.4rem; }
.site-nav a {
  text-decoration: none; color: var(--ink); font-weight: 500; font-size: 0.95rem;
}
.site-nav a:hover { color: var(--teal); }
.nav-cta {
  background: linear-gradient(135deg, var(--teal), var(--blue));
  color: #fff !important; padding: 0.4em 1.1em; border-radius: 999px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; text-align: center;
  font-weight: 700; font-size: 1rem;
  padding: 0.8em 1.8em; border-radius: 999px;
  border: none; cursor: pointer; font-family: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--teal), var(--blue));
  color: #fff;
  box-shadow: 0 6px 18px rgba(14, 165, 164, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(14, 165, 164, 0.45); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 2px solid rgba(16, 33, 75, 0.25);
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn-block { display: block; width: 100%; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(47, 107, 255, 0.14), transparent 65%),
    radial-gradient(700px 380px at -10% 110%, rgba(14, 165, 164, 0.14), transparent 65%);
  padding: 70px 0 80px;
}
.hero-inner {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: 48px; align-items: center;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--teal), var(--blue));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-actions { display: flex; gap: 14px; margin: 1.6em 0 1em; flex-wrap: wrap; }
.hero-note { font-size: 0.85rem; color: var(--muted); }
.hero-copy .lead { margin-top: 0.9em; }

/* ---------- Chat demo（招牌元素） ---------- */
.chat-demo {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(16, 33, 75, 0.14);
  overflow: hidden;
  border: 1px solid rgba(16, 33, 75, 0.06);
}
.chat-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px;
  background: linear-gradient(135deg, var(--ink), #1c3a7a);
  color: #fff; font-size: 0.9rem;
}
.chat-status {
  width: 9px; height: 9px; border-radius: 50%;
  background: #3ddc84;
  box-shadow: 0 0 0 3px rgba(61, 220, 132, 0.25);
}
.chat-title { font-weight: 700; }
.chat-time { margin-left: auto; font-size: 0.75rem; opacity: 0.75; }
.chat-body { padding: 20px 18px; display: flex; flex-direction: column; gap: 12px; min-height: 250px; }
.msg {
  max-width: 82%; padding: 10px 14px; border-radius: 16px;
  font-size: 0.92rem; line-height: 1.55;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.msg.shown { opacity: 1; transform: none; }
.msg-user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  color: #fff; border-bottom-right-radius: 4px;
}
.msg-bot {
  align-self: flex-start;
  background: #eef3f9; color: var(--ink);
  border-bottom-left-radius: 4px;
}
.chat-foot {
  padding: 12px 18px; font-size: 0.78rem; color: var(--muted);
  border-top: 1px dashed rgba(16, 33, 75, 0.12); text-align: center;
}

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-tint { background: #edf6f7; }

/* ---------- Cards ---------- */
.cards {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 22px; margin-top: 2rem;
}
.card {
  background: var(--card); border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid rgba(16, 33, 75, 0.07);
  box-shadow: 0 8px 24px rgba(16, 33, 75, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(16, 33, 75, 0.12); }
.card-icon {
  width: 52px; height: 52px; margin-bottom: 0.8em;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px; color: var(--teal);
  background: linear-gradient(135deg, rgba(14, 165, 164, 0.12), rgba(47, 107, 255, 0.12));
}
.card-icon svg { width: 28px; height: 28px; }
.card p { color: var(--muted); font-size: 0.95rem; margin: 0.5em 0 1em; }
.card ul { list-style: none; }
.card li {
  padding: 0.35em 0 0.35em 1.5em; position: relative; font-weight: 500; font-size: 0.95rem;
}
.card li::before {
  content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 900;
}

/* ---------- Steps（真實流程，數字有意義） ---------- */
.steps {
  list-style: none; counter-reset: step;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px; margin-top: 2rem;
}
.steps li {
  counter-increment: step;
  background: var(--card); border-radius: var(--radius);
  padding: 26px 22px;
  border: 1px solid rgba(16, 33, 75, 0.07);
}
.steps li::before {
  content: counter(step);
  font-family: var(--font-num);
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  color: #fff; font-weight: 700; font-size: 1.1rem;
  margin-bottom: 0.8em;
}
.steps strong { display: block; font-size: 1.05rem; margin-bottom: 0.3em; }
.steps span { color: var(--muted); font-size: 0.9rem; }

/* ---------- Pricing ---------- */
.pricing-wrap {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: center;
}
.price-card {
  background: var(--card); border-radius: 24px;
  padding: 36px 32px;
  border: 2px solid var(--orange);
  box-shadow: 0 24px 60px rgba(255, 158, 44, 0.18);
  position: relative;
}
.price-card::before {
  content: "入門計劃";
  position: absolute; top: -14px; left: 28px;
  background: var(--orange); color: #fff;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em;
  padding: 0.2em 1em; border-radius: 999px;
}
.price-tag {
  font-family: var(--font-num);
  display: flex; align-items: baseline; gap: 6px;
  margin-bottom: 1em;
}
.price-tag .currency { font-size: 1.3rem; font-weight: 700; color: var(--muted); }
.price-tag .amount { font-size: 3.6rem; font-weight: 700; color: var(--orange); line-height: 1; }
.price-tag .per { font-size: 1rem; color: var(--muted); }
.price-list { list-style: none; margin-bottom: 1.6em; }
.price-list li {
  padding: 0.5em 0 0.5em 1.7em; position: relative;
  border-bottom: 1px dashed rgba(16, 33, 75, 0.1); font-size: 0.97rem;
}
.price-list li:last-child { border-bottom: none; }
.price-list li::before {
  content: "✓"; position: absolute; left: 0; color: var(--orange); font-weight: 900;
}

/* ---------- Contact ---------- */
.section-dark {
  background:
    radial-gradient(800px 400px at 90% 0%, rgba(47, 107, 255, 0.25), transparent 60%),
    var(--ink);
  color: #fff;
}
.contact-wrap {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: start;
}
.im-links { display: flex; flex-direction: column; gap: 14px; margin-top: 1.8em; max-width: 340px; }
.im-btn {
  display: flex; align-items: center; justify-content: space-between;
  text-decoration: none; color: #fff;
  padding: 14px 20px; border-radius: 14px; font-weight: 700;
  transition: transform 0.15s ease;
}
.im-btn:hover { transform: translateY(-2px); }
.im-line { background: var(--line-green); }
.im-tg { background: var(--tg-blue); }
.im-id { font-family: var(--font-num); font-weight: 500; opacity: 0.95; }

.contact-form {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 28px;
  display: flex; flex-direction: column; gap: 16px;
}
.contact-form label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 0.9rem; font-weight: 500;
}
.contact-form input,
.contact-form textarea {
  font-family: inherit; font-size: 1rem;
  padding: 10px 14px; border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(14, 165, 164, 0.55); outline-offset: 1px;
}
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; }
.form-status { font-size: 0.9rem; min-height: 1.4em; }
.form-status.ok { color: #3ddc84; }
.form-status.err { color: #ff8f8f; }

/* ---------- Footer ---------- */
.site-footer {
  background: #0b1836; color: #8fa2c9; font-size: 0.85rem;
}
.footer-inner {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  padding-top: 22px; padding-bottom: 22px;
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Focus / a11y ---------- */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--orange); outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .msg { opacity: 1; transform: none; transition: none; }
  .btn, .card, .im-btn { transition: none; }
}

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .hero { padding: 44px 0 56px; }
  .hero-inner, .pricing-wrap, .contact-wrap { grid-template-columns: 1fr; gap: 36px; }
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .site-nav a:not(.nav-cta) { display: none; }
  .section { padding: 56px 0; }
}
@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
}
