:root {
  --bg: #ffffff;
  --bg-soft: #f5f6f8;
  --surface: #ffffff;
  --text: #16181d;
  --muted: #5b6270;
  --border: #e3e6eb;
  --accent: #5b5bf0;
  --accent-soft: #ececfd;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 24px rgba(16, 24, 40, .08);
  --radius: 14px;
  --col-gray: #8a919e;
  --col-yellow: #d4a72c;
  --col-blue: #3b82f6;
  --col-green: #22a06b;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang HK", "Noto Sans TC", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0f13;
    --bg-soft: #16181e;
    --surface: #1c1f26;
    --text: #eceef2;
    --muted: #9aa1ad;
    --border: #2a2e37;
    --accent: #8b8bff;
    --accent-soft: #23234a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }

.container { width: min(1120px, 100% - 40px); margin-inline: auto; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { color: var(--muted); font-size: .95rem; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
@media (max-width: 720px) { .nav-links a:not(.btn) { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 1rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .1s ease, background .2s ease;
  font-family: inherit;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-small { padding: 7px 14px; font-size: .9rem; }
.badge-soon {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 12px;
  background: var(--text); color: var(--bg); font-weight: 600;
}
.badge-soon small { display: block; font-size: .7rem; font-weight: 500; opacity: .75; line-height: 1.1; }

/* Hero */
.hero { padding: 88px 0 56px; text-align: center; }
.eyebrow {
  display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .85rem; font-weight: 600;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 20px;
}
.hero h1 { font-size: clamp(2.3rem, 6vw, 4rem); line-height: 1.08; margin: 0 0 20px; letter-spacing: -.02em; }
.hero p.lead { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--muted); max-width: 640px; margin: 0 auto 32px; }
.hero .cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Mock board */
.mock {
  margin: 56px auto 0; max-width: 980px; padding: 18px; border-radius: 22px;
  background: var(--bg-soft); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.mock-board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; text-align: left; }
@media (max-width: 760px) { .mock-board { grid-template-columns: repeat(2, 1fr); } }
.mock-col { background: var(--surface); border-radius: 12px; padding: 10px; border: 1px solid var(--border); }
.mock-col h4 { margin: 2px 4px 10px; font-size: .85rem; display: flex; align-items: center; gap: 8px; }
.mock-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 9px 10px;
  margin-bottom: 8px; font-size: .82rem;
}
.mock-card .ref { color: var(--muted); font-size: .72rem; }

.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.dot.gray { background: var(--col-gray); }
.dot.yellow { background: var(--col-yellow); }
.dot.blue { background: var(--col-blue); }
.dot.green { background: var(--col-green); }

.label {
  display: inline-block; font-size: .68rem; font-weight: 600; padding: 1px 8px; border-radius: 999px; margin-top: 6px; margin-right: 4px;
}
.label.bug { background: #fbe3e4; color: #b42318; }
.label.enhancement { background: #dcf6f7; color: #0e7490; }
.label.design { background: #f6e3fa; color: #8e24aa; }
@media (prefers-color-scheme: dark) {
  .label.bug { background: #4a1d20; color: #ffb4ae; }
  .label.enhancement { background: #12383d; color: #8ee6ef; }
  .label.design { background: #3c1d47; color: #eab2ff; }
}

/* Sections */
section { padding: 72px 0; }
section.soft { background: var(--bg-soft); border-block: 1px solid var(--border); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); margin: 0 0 12px; letter-spacing: -.01em; }
.section-head p { color: var(--muted); margin: 0; font-size: 1.1rem; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px;
}
.card .icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-size: 1.3rem; margin-bottom: 14px;
}
.card h3 { margin: 0 0 6px; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); }
.soon {
  font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; vertical-align: middle;
  padding: 2px 7px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); margin-left: 4px;
}

/* Devices */
.devices { display: flex; justify-content: center; align-items: flex-end; gap: 28px; flex-wrap: wrap; }
.device { border: 3px solid var(--text); border-radius: 26px; padding: 10px; background: var(--surface); display: flex; gap: 6px; }
.device .col { flex: 1; background: var(--bg-soft); border-radius: 8px; padding: 6px; display: flex; flex-direction: column; gap: 5px; }
.device .col i { display: block; height: 16px; border-radius: 4px; background: var(--border); }
.device.phone { width: 120px; height: 230px; }
.device.fold { width: 220px; height: 230px; border-radius: 20px; }
.device.tablet { width: 320px; height: 230px; border-radius: 22px; }
.device-caption { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 10px; }
.device-wrap { display: flex; flex-direction: column; align-items: center; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; margin-bottom: 12px; background: var(--surface);
}
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { color: var(--muted); margin: 10px 0 0; }

/* CTA */
.final-cta { text-align: center; }
.final-cta .cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 36px 0; color: var(--muted); font-size: .9rem; }
footer .container { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--muted); }

/* Prose pages */
.prose { max-width: 760px; margin: 0 auto; padding: 56px 0 80px; }
.prose h1 { font-size: 2.3rem; margin-bottom: 4px; }
.prose .updated { color: var(--muted); margin-top: 0; }
.prose h2 { margin-top: 36px; font-size: 1.35rem; }
.prose li { margin-bottom: 6px; }
.center { text-align: center; }
.muted { color: var(--muted); }
