:root {
  --ink: #16161D;
  --ink-2: #2A2A34;
  --ink-3: #3A3A46;
  --mute: #6B6B76;
  --mute-2: #9A9AA6;
  --paper: #F2F2F0;
  --paper-2: #FAFAF8;
  --line: #D8D8D4;
  --line-dark: #3A3A46;
  --acid: #C6F135;
  --acid-2: #E4FF7A;
  --max: 1200px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif; background: var(--paper); color: var(--ink); line-height: 1.7; font-size: 16px; }
a { color: inherit; }
img { max-width: 100%; display: block; }
code { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 0.92em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.mono { font-family: "IBM Plex Mono", ui-monospace, monospace; }
.eyebrow { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 13px; letter-spacing: 2px; color: var(--mute); text-transform: uppercase; }
.dark .eyebrow { color: var(--acid); }

/* wordmark */
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.wordmark svg { width: 28px; height: 28px; flex-shrink: 0; }
.wordmark .t { font-family: "Space Grotesk", sans-serif; font-size: 22px; letter-spacing: -0.5px; line-height: 1; }
.wordmark .t b { font-weight: 700; }
.wordmark .t i { font-style: normal; font-weight: 500; color: var(--acid); }
.wordmark.on-light .t i { color: var(--ink-3); }

/* header */
header.site { background: var(--ink); color: var(--paper); position: sticky; top: 0; z-index: 10; }
header.site .wrap { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
header.site nav { display: flex; gap: 28px; font-size: 15px; font-weight: 500; }
header.site nav a { color: #C9C9D0; text-decoration: none; }
header.site nav a:hover, header.site nav a[aria-current="page"] { color: var(--paper); }
header.site nav a[aria-current="page"] { text-decoration: underline 2px var(--acid); text-underline-offset: 8px; }
header.site .cta { display: flex; gap: 10px; align-items: center; }
.btn { display: inline-block; text-decoration: none; font-weight: 700; font-size: 15px; padding: 12px 20px; border-radius: 6px; border: 1px solid transparent; line-height: 1.2; white-space: nowrap; }
.btn.acid { background: var(--acid); color: var(--ink); }
.btn.acid:hover { background: var(--acid-2); }
.btn.ghost { color: var(--paper); border-color: #5A5A66; font-weight: 500; }
.btn.ghost:hover { border-color: var(--paper); }
.btn.line { color: var(--ink); border-color: var(--ink); font-weight: 700; }
.btn.line:hover { background: var(--ink); color: var(--paper); }
.btn.lg { font-size: 16px; padding: 16px 28px; }
.menu-toggle { display: none; white-space: nowrap; background: none; border: 1px solid #5A5A66; color: var(--paper); border-radius: 6px; padding: 8px 10px; font: inherit; }

/* sections */
section { padding: 88px 0; }
section.dark { background: var(--ink); color: var(--paper); }
section.tight { padding: 56px 0; }
h1 { font-size: clamp(36px, 5vw, 60px); line-height: 1.2; font-weight: 700; margin: 0; }
h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.3; font-weight: 700; margin: 0 0 12px; }
h3 { font-size: 20px; margin: 0 0 8px; }
.lead { font-size: 19px; line-height: 1.8; color: var(--mute); max-width: 640px; }
.dark .lead { color: #B4B4BE; }
.sec-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 44px; max-width: 760px; }

/* hero */
.hero { padding: 96px 0 88px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.hero .copy { display: flex; flex-direction: column; gap: 26px; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .fine { font-family: "IBM Plex Mono", monospace; font-size: 13px; color: var(--mute); }
.shot { background: #22222B; border: 1px solid var(--line-dark); border-radius: 12px; overflow: hidden; }
.shot .bar { height: 40px; padding: 0 16px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line-dark); }
.shot .bar i { width: 10px; height: 10px; border-radius: 999px; background: #5A5A66; }
.shot .bar span { margin-left: 10px; font-family: "IBM Plex Mono", monospace; font-size: 12px; color: var(--mute-2); }
.shot .ph { aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center; color: var(--mute-2); font-family: "IBM Plex Mono", monospace; font-size: 13px; text-align: center; padding: 24px; }
.shot img { width: 100%; height: auto; }

/* cards */
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 64px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.card p { margin: 0; color: #4A4A55; font-size: 15px; }
.icon { width: 40px; height: 40px; border-radius: 8px; background: var(--ink); display: flex; align-items: center; justify-content: center; }
.icon svg { width: 20px; height: 20px; stroke: var(--acid); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mini { border: 1px solid var(--line); border-radius: 10px; padding: 20px 24px; display: flex; flex-direction: column; gap: 4px; }
.mini b { font-size: 16px; } .mini span { font-size: 14px; color: var(--mute); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.step { display: flex; flex-direction: column; gap: 12px; padding-top: 20px; border-top: 2px solid var(--line-dark); }
.step.first { border-top-color: var(--acid); }
.step .n { font-family: "IBM Plex Mono", monospace; font-size: 13px; color: var(--mute-2); }
.step.first .n { color: var(--acid); }
.step b { font-size: 20px; }
.step p { margin: 0; font-size: 15px; color: #B4B4BE; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 36px; display: flex; flex-direction: column; gap: 18px; }
.plan.hl { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.plan .tier { font-size: 14px; font-weight: 700; color: var(--mute); }
.plan.hl .tier { color: var(--acid); }
.plan .price { display: flex; align-items: baseline; gap: 6px; }
.plan .price b { font-family: "Space Grotesk", sans-serif; font-size: 40px; font-weight: 700; letter-spacing: -1px; }
.plan .price span { font-size: 14px; color: var(--mute); }
.plan.hl .price span { color: var(--mute-2); }
.plan ul { margin: 0; padding: 0; list-style: none; font-size: 15px; line-height: 1.9; color: #4A4A55; }
.plan.hl ul { color: #C9C9D0; }
.plan .btn { margin-top: auto; text-align: center; }
.plan .yr { font-size: 13px; color: var(--mute); }
.plan.hl .yr { color: var(--mute-2); }
table.pt { width: 100%; border-collapse: collapse; font-size: 15px; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
table.pt th, table.pt td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.pt th { background: var(--ink); color: var(--paper); font-weight: 500; }
table.pt tr:last-child td { border-bottom: 0; }
table.pt td.num { white-space: nowrap; font-variant-numeric: tabular-nums; }

/* faq */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 64px; }
.faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq summary { font-size: 17px; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--mute); font-weight: 500; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 8px 0 0; font-size: 15px; color: #4A4A55; }

/* callout */
.callout { background: var(--ink); color: var(--paper); border-radius: 16px; padding: 56px 64px; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.callout h2 { margin: 0 0 8px; font-size: 32px; }
.callout p { margin: 0; color: #B4B4BE; }
.callout .actions { display: flex; gap: 14px; flex-shrink: 0; flex-wrap: wrap; }

/* demo accounts */
.accounts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.acct { border: 1px solid var(--line-dark); border-radius: 10px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; background: #22222B; }
.acct b { font-size: 16px; } .acct code { color: var(--acid); font-size: 13px; } .acct span { font-size: 13px; color: var(--mute-2); }

/* prose pages */
.prose { max-width: 760px; }
.prose h2 { font-size: 26px; margin: 40px 0 10px; }
.prose h3 { font-size: 19px; margin: 24px 0 6px; }
.prose p, .prose li { color: #2A2A34; }
.prose ol, .prose ul { padding-left: 22px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0 20px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--ink); color: var(--paper); font-weight: 500; }
.prose .note { font-size: 14px; color: var(--mute); }
.page-head { padding: 72px 0 40px; }
.page-head h1 { font-size: clamp(32px, 4vw, 48px); }
.dl { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; border: 1px solid var(--ink); border-radius: 6px; padding: 10px 16px; font-size: 15px; }
.dl:hover { background: var(--ink); color: var(--paper); }
.dl svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }

/* timeline */
.tl { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 20px 0 8px; }
.tl div { border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; font-size: 14px; background: #fff; }
.tl div b { display: block; font-size: 17px; margin-bottom: 2px; }
.tl div small { display: block; color: var(--mute); }
.tl div.us { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tl div.us small { color: var(--acid); }

/* footer */
/* 底部多留空間：捲到最底時右下角的「預約諮詢」不會蓋住頁尾 */
/* 頁尾上緣：一道淡淡的同心弧（限制在上方 40px 帶狀區，不碰內容） */
footer.site { padding: 72px 0 96px; font-size: 13px; color: var(--mute); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M0 10 Q50 -8 100 10' fill='none' stroke='%234A4A55' stroke-opacity='.25' stroke-width='1' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") no-repeat top center / 100% 40px; }
footer.site .wrap { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
footer.site .co { display: flex; flex-direction: column; gap: 8px; }
footer.site .tag { color: var(--ink); font-weight: 500; }
footer.site nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer.site nav a { text-decoration: none; color: var(--mute); }
footer.site nav a:hover { color: var(--ink); }

/* copy-to-clipboard email (footer + dock) */
.mail-copy { display: inline-flex; align-items: center; gap: 8px; }
button.copy { font: inherit; font-size: 12px; font-weight: 500; line-height: 1; padding: 5px 9px; border-radius: 6px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
button.copy:hover { border-color: var(--ink); }
button.copy.ok { background: var(--acid); border-color: var(--acid); }

/* floating contact dock */
.dock { position: fixed; right: 20px; bottom: 20px; z-index: 30; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.dock-btn { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 14px; font-weight: 700; padding: 10px 16px; border-radius: 999px; border: 0; background: var(--acid); color: var(--ink); cursor: pointer; box-shadow: 0 6px 20px rgba(22,22,29,.25); }
.dock-btn:hover { background: var(--acid-2); }
.dock-btn svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.dock-panel { width: 300px; max-width: calc(100vw - 32px); background: var(--ink); color: var(--paper); border-radius: 14px; padding: 10px; box-shadow: 0 16px 40px rgba(22,22,29,.35); }
.dock-panel[hidden] { display: none; }
.dock-head { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px 10px; font-size: 14px; }
.dock-close { font: inherit; font-size: 20px; line-height: 1; background: none; border: 0; color: var(--mute-2); cursor: pointer; padding: 2px 6px; }
.dock-close:hover { color: var(--paper); }
.dock-item { display: grid; grid-template-columns: 1fr auto; column-gap: 8px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--paper); }
.dock-item b { font-size: 15px; }
.dock-item span { grid-column: 1; font-size: 13px; color: var(--mute-2); }
.dock-item.mail-copy span { font-family: "IBM Plex Mono", ui-monospace, monospace; color: var(--paper); }
.dock-item.mail-copy button.copy { grid-column: 2; grid-row: 1 / span 2; align-self: center; background: transparent; color: var(--paper); border-color: var(--line-dark); }
.dock-item.mail-copy button.copy.ok { background: var(--acid); color: var(--ink); border-color: var(--acid); }
a.dock-item:hover { background: var(--ink-2); }
a.dock-item.primary { background: var(--acid); color: var(--ink); }
a.dock-item.primary span { color: var(--ink-3); }
a.dock-item.primary:hover { background: var(--acid-2); }
.dock-item + .dock-item { margin-top: 4px; }

/* ---- orrery: 一轉動，全部歸位 ---- */
.orrery { width: 100%; max-width: 460px; margin: 0 auto; }
.orrery-svg { display: block; width: 100%; height: auto; }
.orrery .orb { fill: none; stroke: #F2F2F0; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.orrery .sun { fill: var(--acid); }
.orrery .planet circle { fill: #F2F2F0; }
.orrery .planet { transform-box: view-box; transform-origin: 200px 200px; }
.orrery.spin .p1 { animation: orbit 40s linear infinite; }
.orrery.spin .p2 { animation: orbit 70s linear infinite; }
.orrery.spin .p3 { animation: orbit 110s linear infinite; }
@keyframes orbit { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .orrery.spin .planet { animation: none; } }
.orrery.on-light .orb { stroke: rgba(74, 74, 85, .35); }
.orrery.on-light .planet circle { fill: var(--ink); }
.hero .turn { margin: -12px 0 0; font-size: 18px; font-weight: 500; color: #B4B4BE; }
.nf-orrery { max-width: 240px; margin: 0 0 32px; }

/* 一套系統，全部連動 */
.system { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.system-fig { margin: 0; }
.system-svg { display: block; width: 100%; max-width: 480px; height: auto; margin: 0 auto; overflow: visible; }
.system-svg .orb { fill: none; stroke: rgba(74, 74, 85, .35); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.system-svg .core { fill: var(--acid); }
.system-svg .core-label { font-size: 17px; font-weight: 700; fill: var(--ink); }
.system-svg .node { fill: var(--ink); }
.system-svg .node-label { font-size: 16px; font-weight: 500; fill: var(--ink); paint-order: stroke; stroke: var(--paper); stroke-width: 6px; stroke-linejoin: round; }
.system-copy { display: flex; flex-direction: column; gap: 14px; }
.screen-shot { max-width: 980px; }

/* 區塊之間：淡淡的同心弧，不用直線 */
.orbit-sep { height: 40px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M0 10 Q50 -8 100 10' fill='none' stroke='%234A4A55' stroke-opacity='.25' stroke-width='1' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") no-repeat center / 100% 40px; }

/* 清單符號：小圓點＋一段弧（軌道） */
.plan ul li { position: relative; padding-left: 24px; }
.plan ul li::before, .mini b::before { content: ""; position: absolute; left: 0; top: .55em; width: 13px; height: 13px; box-sizing: border-box; border-radius: 50%;
  border: 1.5px solid transparent; border-top-color: currentColor; border-right-color: currentColor; transform: rotate(-20deg); opacity: .55;
  background: radial-gradient(circle, var(--acid) 0 2.6px, transparent 3.1px); }
.plan.hl ul li::before { opacity: .8; }
.mini b { position: relative; padding-left: 22px; }
.mini b::before { top: .3em; }

@media (max-width: 960px) {
  .hero .wrap, .grid3, .grid4, .grid2, .steps, .plans, .faq, .accounts { grid-template-columns: 1fr; }
  .tl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .callout { flex-direction: column; align-items: flex-start; padding: 40px 28px; }
  header.site nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--ink); flex-direction: column; padding: 16px 24px 24px; gap: 16px; border-top: 1px solid var(--line-dark); }
  header.site nav.open { display: flex; }
  header.site .cta .btn.ghost { display: none; }
  .menu-toggle { display: inline-block; }
  /* 首屏：太陽系儀縮到標語下方，約 60% 寬 */
  .hero .wrap { display: flex; flex-direction: column; align-items: stretch; gap: 22px; }
  .hero .copy { display: contents; }
  .hero .eyebrow { order: 1; } .hero h1 { order: 2; } .hero .turn { order: 3; margin-top: -8px; }
  .hero-orrery { order: 4; width: 60%; margin: 6px auto; }
  .hero .lead { order: 5; } .hero .actions { order: 6; } .hero .fine { order: 7; }
  .system { grid-template-columns: 1fr; gap: 32px; }
  .dock { right: 14px; bottom: 14px; }
  .dock-btn { padding: 12px; }
  .dock-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  section { padding: 64px 0; }
  .hero { padding: 64px 0; }
}
