:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-2: #eef1f5;
  --text: #0e1726;
  --muted: #536175;
  --line: #dde3ea;
  --accent: #0b6e69;
  --accent-ink: #ffffff;
  --accent-soft: #e2f2f0;
  --warn-soft: #fdf3e1;
  --warn-ink: #7a4b00;
  --radius: 14px;
  --max: 1120px;
  --font: "Inter", "Noto Sans TC", system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b111a;
    --surface: #111a26;
    --surface-2: #172233;
    --text: #e8edf3;
    --muted: #9aa8ba;
    --line: #233147;
    --accent: #3cc2b6;
    --accent-ink: #04201e;
    --accent-soft: #0f2d2c;
    --warn-soft: #2c2210;
    --warn-ink: #f2c66b;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; letter-spacing: 0.04em; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px; background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; font-size: 13px; font-weight: 800; letter-spacing: 0;
}
.nav { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--text); text-decoration: none; }
.nav .lang { border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 10px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; font-family: inherit;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: var(--line); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: var(--muted); }

/* Hero */
.hero { padding: 96px 0 72px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin: 0 0 16px; }
.hero h1 { font-size: clamp(38px, 6vw, 64px); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 22px; max-width: 14ch; }
.hero .lede { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 62ch; margin: 0 0 32px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.pipeline { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 44px; font-size: 14px; color: var(--muted); align-items: center; }
.pipeline span.step { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; color: var(--text); }

/* Sections */
section { padding: 72px 0; border-top: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 38px); line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 12px; }
.section-head p { color: var(--muted); margin: 0; font-size: 17px; }

.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card h3 { margin: 0 0 8px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card .tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.card ul { margin: 14px 0 0; padding-left: 18px; color: var(--muted); font-size: 15px; }
.card ul li { margin: 4px 0; }

.num { width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 700; font-size: 14px; margin-bottom: 14px; }

.note { margin-top: 24px; padding: 14px 18px; border-radius: 10px; background: var(--surface-2); color: var(--muted); font-size: 14px; }

.status { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--warn-soft); color: var(--warn-ink); margin-bottom: 12px; }

.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.check-list li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; font-size: 15px; }
.check-list li strong { display: block; margin-bottom: 2px; }
.check-list li span { color: var(--muted); font-size: 14px; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: start; }
form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 16px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
input, select, textarea {
  font: inherit; font-weight: 400; color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
textarea { min-height: 120px; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.form-msg { font-size: 14px; color: var(--muted); }
.form-msg.ok { color: var(--accent); }
.form-msg.err { color: #c43d3d; }
.privacy { font-size: 13px; color: var(--muted); margin: 0; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer p { margin: 0; }

/* Responsive */
@media (max-width: 960px) {
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .nav a:not(.lang) { display: none; }
  .grid-3, .grid-2, .grid-5 { grid-template-columns: 1fr; }
  .row-2 { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 48px; }
  section { padding: 56px 0; }
}
