:root {
  --ground: #F3F4F6;
  --card: #FFFFFF;
  --line: #E3E5EA;
  --ink: #15171C;
  --muted: #5B6070;
  --accent: #C2410C;
  --accent-ink: #FFFFFF;
  --ok: #15803D;
  --err: #B91C1C;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #111318;
    --card: #1A1D24;
    --line: #2C303A;
    --ink: #EEF0F4;
    --muted: #A3A8B5;
    --accent: #F26B3A;
    --accent-ink: #15171C;
    --ok: #4ADE80;
    --err: #F87171;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: 'Noto Sans TC', system-ui, sans-serif;
  line-height: 1.6;
}
a { color: inherit; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

.top { background: var(--card); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 900; font-size: 20px; }
.brand .sweep { stroke: var(--accent); }
.brand .blip { fill: var(--accent); }
.brand small { font-weight: 500; font-size: 13px; color: var(--muted); }
.top-cta { font-weight: 700; text-decoration: none; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--ink); }

.hero { padding: 72px 16px 48px; max-width: 760px; text-align: center; }
.eyebrow { margin: 0; font-weight: 700; color: var(--accent); letter-spacing: .08em; }
.hero h1 { margin: 8px 0 16px; font-size: clamp(32px, 6vw, 52px); font-weight: 900; line-height: 1.2; }
.lead { margin: 0 auto 28px; font-size: 17px; color: var(--muted); max-width: 620px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; border: 0; border-radius: 12px;
  font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
}
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn:disabled { opacity: .6; cursor: progress; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; padding-bottom: 56px; }
.features article { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.features h2 { margin: 0 0 6px; font-size: 18px; }
.features p { margin: 0; color: var(--muted); font-size: 15px; }

.signup { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; padding-bottom: 72px; align-items: start; }
.signup h2 { margin: 0 0 8px; font-size: 28px; font-weight: 900; }
.signup-copy p { margin: 0 0 8px; color: var(--muted); }
.fine { font-size: 13px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.roles { border: 0; margin: 0; padding: 0; display: flex; gap: 20px; align-items: center; }
.roles legend { float: left; margin-right: 12px; font-weight: 700; }
.roles label { display: flex; align-items: center; gap: 6px; min-height: 44px; cursor: pointer; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 500; font-size: 14px; }
.field input, .field select {
  font: inherit; font-size: 16px; color: var(--ink); background: var(--ground);
  border: 1px solid var(--line); border-radius: 10px; height: 46px; padding: 0 12px;
}
.field input:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.owner-only { display: flex; flex-direction: column; gap: 16px; }
.owner-only[hidden] { display: none; }
.captcha { min-height: 65px; }
.msg { margin: 0; min-height: 1.6em; font-size: 14px; }
.msg.ok { color: var(--ok); }
.msg.err { color: var(--err); }

.foot { border-top: 1px solid var(--line); background: var(--card); color: var(--muted); font-size: 13px; padding: 20px 0; }
