:root {
  --bg: #ffffff;
  --band: #f5f7fb;
  --panel: #ffffff;
  --text: #16202c;
  --muted: #5d6877;
  --line: #e1e6ee;
  --accent: #1f6feb;
  --accent-ink: #ffffff;
  --accent-soft: #e8f0fe;
  --warm: #fff6e0;
  --warm-line: #f0c36d;
  --ok: #1a7f37;
  --error: #c62828;
  --radius: 12px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1419;
    --band: #151b22;
    --panel: #1a2129;
    --text: #e7ecf2;
    --muted: #9aa6b4;
    --line: #2a333e;
    --accent: #4c8dff;
    --accent-soft: #1b2a44;
    --warm: #2c2516;
    --warm-line: #8a6d2b;
    --ok: #4cc26b;
    --error: #ff7b7b;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.7 system-ui, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

[hidden] { display: none !important; }

h1, h2, h3 { line-height: 1.25; margin: 0; }
h1 { font-size: clamp(34px, 5.4vw, 54px); letter-spacing: -0.01em; }
h2 { font-size: clamp(26px, 3.4vw, 34px); margin-bottom: 10px; }
h3 { font-size: 18px; margin-bottom: 6px; }
p { margin: 0; }
a { color: var(--accent); }

.wrap { width: min(1120px, 100% - 32px); margin: 0 auto; }
.narrow { width: min(760px, 100% - 32px); }
section { padding: 88px 0; }
.band { background: var(--band); }
.sub { color: var(--muted); max-width: 640px; margin-bottom: 36px; }

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.btn.ghost { background: transparent; color: var(--accent); }
.btn.small { padding: 7px 16px; font-size: 14px; }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .6; cursor: default; }

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-row { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--text); text-decoration: none; }
.mark { width: 28px; height: 28px; }
.links { display: flex; gap: 22px; margin-left: auto; }
.links a { color: var(--muted); text-decoration: none; font-size: 15px; }
.links a:hover { color: var(--text); }

/* Hero */
.hero { padding: 72px 0 88px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow { color: var(--accent); font-weight: 700; margin-bottom: 14px; }
.lead { color: var(--muted); font-size: 18px; margin: 22px 0 30px; max-width: 560px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.note { color: var(--muted); font-size: 14px; margin-top: 22px; }
.note strong { color: var(--text); font-weight: 600; }

/* The case mock-up in the hero */
.demo {
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(20, 40, 80, .12);
  overflow: hidden;
}
.demo-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.demo-title { font-weight: 700; }
.tag { font-size: 12px; padding: 2px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.demo-log { list-style: none; margin: 0; padding: 16px 18px; display: grid; gap: 10px; font-size: 14px; }
.demo-log li { padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); }
.demo-log b { display: block; font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.demo-log .ai { background: var(--accent-soft); border-color: transparent; }
.demo-log .wait { background: var(--warm); border-color: var(--warm-line); display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.demo-log .wait b { display: inline; font-size: inherit; color: inherit; }
.demo-log .sys { border: 0; padding: 0 12px; color: var(--muted); font-size: 13px; }
.demo-log .sys b { display: inline; font-size: inherit; color: var(--text); }
.at { color: var(--accent); font-weight: 600; }
.draft { display: block; margin-top: 6px; padding-left: 10px; border-left: 3px solid var(--accent); color: var(--muted); font-size: 13px; }
.actions { display: flex; gap: 6px; }
.pill { font-size: 12px; padding: 3px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); }
.pill.ok { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.demo figcaption { padding: 0 18px 16px; color: var(--muted); font-size: 13px; }

/* Cards and steps */
.cards { display: grid; gap: 18px; }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.cards.industries { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card p { color: var(--muted); font-size: 15px; }
.icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 14px;
}
.icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.industries .icon { width: 36px; height: 36px; border-radius: 10px; margin-bottom: 10px; }
.industries .icon svg { width: 20px; height: 20px; }

.steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: none; }
.steps li { position: relative; padding-top: 6px; }
.steps p { color: var(--muted); font-size: 15px; }
.num {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  margin-bottom: 12px;
}

/* Trust */
.trust { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { padding-left: 30px; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--ok); font-weight: 800; }

/* Application form */
.apply { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: start; }
.small-list { margin: 0; padding-left: 20px; color: var(--muted); }
.form { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 15px; }
.opt { color: var(--muted); font-weight: 400; font-size: 13px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
input, select, textarea {
  width: 100%;
  font: inherit;
  color: inherit;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
textarea { resize: vertical; }
.domain { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); overflow: hidden; }
.domain input { border: 0; border-radius: 0; }
.domain input:focus { outline: none; }
.domain:focus-within { outline: 2px solid var(--accent); outline-offset: 1px; }
.domain span { padding: 0 12px; color: var(--muted); white-space: nowrap; }
.hint { color: var(--muted); font-size: 13px; }
.hint.good { color: var(--ok); }
.hint.bad { color: var(--error); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.consent input { width: auto; margin-top: 5px; }
.error { color: var(--error); }
.done { text-align: center; padding: 12px 0; }
.done p { color: var(--muted); }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
summary { cursor: pointer; font-weight: 600; font-size: 17px; }
details p { color: var(--muted); margin-top: 10px; }

.foot { border-top: 1px solid var(--line); padding: 26px 0; color: var(--muted); font-size: 14px; }
.foot-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }

@media (max-width: 980px) {
  .hero-grid, .trust, .apply { grid-template-columns: 1fr; gap: 36px; }
  .cards.four, .cards.industries, .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  section { padding: 60px 0; }
  .hero { padding: 40px 0 60px; }
  .links { display: none; }
  .nav-row { justify-content: space-between; }
  .cards.four, .cards.industries, .steps, .row2 { grid-template-columns: 1fr; }
  .form { padding: 20px; }
  .lead { font-size: 17px; }
}
