/* ─────────────────────────────────────────────────────────
   Co-Thinking 科新企業管理顧問 — Design System
   主色：深藍 + 鼠尾草綠 / 大氣商務 顧問權威
   ───────────────────────────────────────────────────────── */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@300;400;500;700&family=Noto+Serif+TC:wght@400;500;700;900&display=swap");

:root{
  --bg:        oklch(98% 0.005 240);
  --surface:   oklch(100% 0 0);
  --surface-2: oklch(96% 0.008 240);
  --fg:        oklch(22% 0.035 255);
  --muted:     oklch(48% 0.022 255);
  --border:    oklch(90% 0.012 240);
  --hairline:  oklch(85% 0.015 240);

  --navy:      oklch(28% 0.062 255);
  --navy-2:    oklch(22% 0.055 255);
  --navy-soft: oklch(94% 0.018 250);
  --sage:      oklch(72% 0.085 158);
  --sage-2:    oklch(60% 0.095 158);
  --sage-soft: oklch(95% 0.025 158);

  --accent:    var(--sage-2);

  --font-display: 'Noto Serif TC','Source Han Serif TC','Iowan Old Style', Georgia, serif;
  --font-body:    'Noto Sans TC','PingFang TC','Microsoft JhengHei',-apple-system,system-ui,sans-serif;
  --font-mono:    'JetBrains Mono','IBM Plex Mono',ui-monospace,Menlo,monospace;

  --maxw: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 0 oklch(0% 0 0 / .04), 0 6px 18px -10px oklch(28% 0.06 255 / .12);
  --shadow:    0 1px 0 oklch(0% 0 0 / .04), 0 24px 60px -30px oklch(28% 0.06 255 / .25);
}

*,*::before,*::after{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; }
body{
  font-family:var(--font-body);
  background:var(--bg);
  color:var(--fg);
  font-size:16px;
  line-height:1.7;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
img,svg,video{ display:block; max-width:100%; height:auto; }
a{ color:inherit; text-decoration:none; }
button{ font:inherit; cursor:pointer; }
hr{ border:0; border-top:1px solid var(--border); margin:48px 0; }

h1,h2,h3,h4{
  font-family:var(--font-display);
  font-weight:700;
  color:var(--navy-2);
  letter-spacing:-0.01em;
  margin:0 0 .4em;
  line-height:1.2;
}
h1{ font-size:clamp(38px, 5.4vw, 68px); letter-spacing:-0.02em; line-height:1.08; }
h2{ font-size:clamp(28px, 3.4vw, 44px); }
h3{ font-size:clamp(20px, 2vw, 26px); }
h4{ font-size:18px; }
p{ margin:0 0 1em; color:var(--fg); }
.lede{ font-size:18px; color:var(--muted); line-height:1.8; max-width:62ch; }
.eyebrow{
  display:inline-block;
  font-family:var(--font-body);
  font-size:13px;
  font-weight:500;
  letter-spacing:0.18em;
  text-transform:uppercase;
  color:var(--sage-2);
}

.section-header{ text-align:center; margin: 0 auto 56px; max-width:680px; }
.section-header .eyebrow{ margin-bottom:14px; }
.section-header h2{ position:relative; display:inline-flex; align-items:center; gap:18px; }
.section-header h2::before,
.section-header h2::after{
  content:""; width:24px; height:1px; background:currentColor; opacity:.55;
}
.section-header .desc{ color:var(--muted); margin-top:14px; }

.container{ max-width:var(--maxw); margin:0 auto; padding-left:var(--gutter); padding-right:var(--gutter); }
section{ padding:96px 0; }
section.tight{ padding:64px 0; }
section.dark{ background:var(--navy); color:oklch(96% 0.01 240); }
section.dark h1,section.dark h2,section.dark h3{ color:#fff; }
section.dark .lede,section.dark p{ color:oklch(86% 0.018 240); }
section.dark .eyebrow{ color:var(--sage); }
section.soft{ background:var(--surface-2); }
section.cream{ background:oklch(97% 0.012 95); }

.site-header{
  position:sticky; top:0; z-index:50;
  background: oklch(100% 0 0 / .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom:1px solid var(--border);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  height:72px; gap:32px;
}
.brand{
  display:flex; align-items:center; gap:12px;
  font-family:var(--font-display); font-weight:700; color:var(--navy-2);
  font-size:18px; letter-spacing:.02em;
}
.brand-mark{
  width:38px; height:38px; border-radius:9px;
  background: var(--navy);
  display:grid; place-items:center; color:#fff;
  font-family:var(--font-display); font-weight:900; font-size:17px;
  letter-spacing:-0.04em;
  position:relative;
  flex-shrink:0;
}
.brand-mark::after{
  content:""; position:absolute; right:-3px; bottom:-3px;
  width:10px; height:10px; border-radius:50%;
  background:var(--sage);
  box-shadow: 0 0 0 2px #fff;
}
.brand-text{ display:flex; flex-direction:column; line-height:1.1; }
.brand-text small{ font-size:11px; color:var(--muted); font-weight:400; letter-spacing:.16em; margin-top:2px; }
.nav-links{ display:flex; gap:2px; align-items:center; margin:0; padding:0; list-style:none; flex:1; justify-content:center; }
.nav-links a{
  padding:10px 14px; border-radius:8px;
  font-size:15px; color:var(--fg); font-weight:500;
  transition: background .2s, color .2s;
}
.nav-links a:hover{ background:var(--surface-2); color:var(--navy-2); }
.nav-links a.active{ color:var(--navy-2); background:var(--navy-soft); }
.nav-cta{ display:flex; gap:10px; }
@media (max-width: 1080px){ .nav-links a{ padding:10px 10px; font-size:14px; } }
@media (max-width: 920px){
  .nav-links{ display:none; }
  .brand-text small{ display:none; }
}

.btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:13px 22px; border-radius:999px;
  font-weight:500; font-size:15px; border:1px solid transparent;
  transition: transform .15s, background .2s, color .2s, border-color .2s;
  white-space:nowrap;
}
.btn:hover{ transform: translateY(-1px); }
.btn-primary{ background:var(--navy); color:#fff; }
.btn-primary:hover{ background:var(--navy-2); }
.btn-outline{ border-color:var(--border); color:var(--navy-2); background:#fff; }
.btn-outline:hover{ border-color:var(--navy); }
.btn-sage{ background:var(--sage-2); color:#fff; }
.btn-sage:hover{ background:oklch(54% 0.1 158); }
.btn-ghost{ color:var(--navy-2); }
.btn-ghost:hover{ background:var(--surface-2); }
.btn-sm{ padding:9px 16px; font-size:13px; }

.card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:28px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover{ transform: translateY(-3px); box-shadow:var(--shadow-sm); border-color:var(--hairline); }
.card .kicker{ font-size:12px; letter-spacing:.18em; text-transform:uppercase; color:var(--sage-2); font-weight:600; display:block; margin-bottom:8px; }
.card h3{ margin:.2em 0 .5em; }

.ph{
  aspect-ratio: 4/3;
  border-radius:var(--radius);
  background:
    linear-gradient(135deg, oklch(94% 0.025 240) 0%, oklch(86% 0.04 250) 100%);
  position:relative; overflow:hidden;
  display:grid; place-items:center;
}
.ph.tall{ aspect-ratio: 3/4; }
.ph.square{ aspect-ratio: 1/1; }
.ph.wide{ aspect-ratio: 16/9; }
.ph.sage{ background: linear-gradient(135deg, var(--sage-soft) 0%, oklch(80% 0.075 158) 100%); }
.ph.navy{ background: linear-gradient(135deg, var(--navy) 0%, oklch(22% 0.055 255) 100%); color:#fff; }
.ph.cream{ background: linear-gradient(135deg, oklch(96% 0.018 80) 0%, oklch(90% 0.03 70) 100%); }
.ph-label{ font-family:var(--font-body); font-size:12px; color:oklch(40% 0.025 250 / .55); letter-spacing:.14em; text-transform:uppercase; padding:0 16px; text-align:center; font-weight:500; }
.ph.navy .ph-label{ color: oklch(80% 0.04 250 / .8); }
.ph.sage .ph-label{ color: oklch(35% 0.06 158 / .75); }

.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); }
.grid-6{ grid-template-columns: repeat(6, 1fr); }
@media (max-width: 900px){
  .grid-3,.grid-4{ grid-template-columns: repeat(2, 1fr); }
  .grid-6{ grid-template-columns: repeat(3, 1fr); }
  .grid-2{ grid-template-columns: 1fr; }
}
@media (max-width: 560px){
  .grid-3,.grid-4{ grid-template-columns: 1fr; }
  .grid-6{ grid-template-columns: repeat(2, 1fr); }
}

.page-banner{
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color:#fff;
  padding: 96px 0 80px;
  position:relative;
  overflow:hidden;
}
.page-banner::before{
  content:""; position:absolute; inset:0;
  background:
    radial-gradient(60% 80% at 80% 20%, oklch(72% 0.085 158 / .14), transparent 60%),
    radial-gradient(50% 70% at 10% 80%, oklch(60% 0.12 255 / .25), transparent 60%);
  pointer-events:none;
}
.page-banner .container{ position:relative; }
.page-banner .eyebrow{ color:var(--sage); }
.page-banner h1{ color:#fff; max-width:18ch; }
.page-banner p{ color:oklch(88% 0.02 240); max-width:60ch; font-size:18px; }
.breadcrumb{
  font-size:13px; color:oklch(78% 0.025 240); margin-bottom:24px;
  letter-spacing:.04em;
}
.breadcrumb a{ opacity:.8; }
.breadcrumb a:hover{ opacity:1; text-decoration:underline; }

.site-footer{
  background:var(--navy-2);
  color:oklch(82% 0.02 240);
  padding:64px 0 32px;
  font-size:14px;
}
.site-footer h4{ color:#fff; font-family:var(--font-body); font-size:13px; letter-spacing:.16em; text-transform:uppercase; margin-bottom:18px; font-weight:600; }
.footer-grid{
  display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap:48px;
}
@media (max-width: 780px){ .footer-grid{ grid-template-columns: 1fr 1fr; } }
.footer-grid ul{ list-style:none; margin:0; padding:0; }
.footer-grid li{ margin-bottom:8px; }
.footer-grid a:hover{ color:#fff; }
.footer-grid p{ color:oklch(72% 0.02 240); font-size:13px; line-height:1.8; margin:6px 0; }
.footer-grid .brand{ color:#fff; margin-bottom:16px; }
.footer-meta{
  margin-top:48px; padding-top:24px; border-top:1px solid oklch(40% 0.04 255);
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:16px;
  font-size:12px; color:oklch(64% 0.02 240); letter-spacing:.04em;
}

.q-mark{
  font-family:var(--font-display); font-size:72px; line-height:.8; color:var(--sage-2);
  display:block; margin-bottom:0;
}

.row-num{
  font-family:var(--font-display);
  font-weight:900; line-height:.9;
  color: oklch(28% 0.062 255 / .12);
  letter-spacing:-0.04em;
}

.chip{
  display:inline-block; padding:6px 12px; border-radius:999px;
  background:var(--navy-soft); color:var(--navy-2);
  font-size:13px; font-weight:500; letter-spacing:.04em;
}
.chip.sage{ background:var(--sage-soft); color: oklch(40% 0.06 158); }
.chip.outline{ background:transparent; border:1px solid var(--border); color:var(--muted); }

.logo-wall{
  display:grid; grid-template-columns: repeat(6, 1fr);
  gap:1px; background:var(--border);
  border:1px solid var(--border); border-radius:var(--radius);
  overflow:hidden;
}
.logo-cell{
  background:#fff; height:110px;
  display:grid; place-items:center;
  font-family:var(--font-display); font-weight:700;
  color:oklch(38% 0.02 250); letter-spacing:.02em;
  text-align:center; padding:12px; transition: background .2s;
  font-size:17px;
}
.logo-cell:hover{ background:var(--surface-2); }
.logo-cell small{ display:block; font-family:var(--font-body); font-weight:400; font-size:10px; color:var(--muted); letter-spacing:.12em; margin-top:4px; text-transform:uppercase; }
@media (max-width: 900px){ .logo-wall{ grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px){ .logo-wall{ grid-template-columns: repeat(2, 1fr); } }

.stats{ display:grid; grid-template-columns: repeat(4, 1fr); gap:32px; text-align:center; }
.stats .num{ font-family:var(--font-display); font-size:56px; font-weight:700; color:var(--navy-2); letter-spacing:-0.02em; line-height:1; }
.stats .num sup{ font-size:24px; vertical-align:top; margin-left:2px; color:var(--sage-2); }
.stats .lbl{ font-size:13px; color:var(--muted); letter-spacing:.1em; text-transform:uppercase; margin-top:8px; }
section.dark .stats .num{ color:#fff; }
section.dark .stats .lbl{ color:oklch(78% 0.02 240); }
@media (max-width: 720px){ .stats{ grid-template-columns: repeat(2, 1fr); gap:40px 24px; } }

.tbl-wrap{ overflow-x:auto; border-radius:var(--radius); border:1px solid var(--border); background:#fff; }
.tbl{ width:100%; border-collapse:collapse; font-size:15px; min-width:760px; }
.tbl th, .tbl td{ padding:18px 16px; text-align:start; vertical-align:top; border-bottom:1px solid var(--border); }
.tbl thead th{ background:var(--navy); color:#fff; font-weight:500; font-size:14px; letter-spacing:.04em; }
.tbl tbody tr:last-child td{ border-bottom:none; }
.tbl tbody tr:hover{ background:var(--surface-2); }
.tbl td:first-child{ font-weight:600; color:var(--navy-2); background:var(--navy-soft); width:120px; }

.accent-line{ width:48px; height:3px; background:var(--sage-2); border-radius:2px; margin: 0 0 24px; }
.section-header .accent-line{ margin-inline:auto; }

@media (prefers-reduced-motion: no-preference){
  .reveal{ opacity:0; transform: translateY(14px); animation: rise .8s ease-out .1s forwards; }
  @keyframes rise{ to{ opacity:1; transform:none; } }
}

::selection{ background:var(--sage); color:var(--navy-2); }
