/* Peakstar 產品入口 v2：正式、有層次的 B2B 版面。品牌色：Ink #22577A、Teal #2E8C8C、Jade #43B2A1。 */
:root {
  --ink: #0f1719; --ink-2: #384a4d; --ink-3: #5f7477;
  --brand-ink: #22577a; --brand-ink-2: #1b4763; --brand: #2e8c8c; --jade: #43b2a1; --mint: #80eda5;
  --paper: #ffffff; --paper-2: #f6f8f8; --mist: #eef4f4; --line: #e0e8e8; --red: #d9455f;
  --radius: 16px; --radius-s: 10px;
  --shadow: 0 14px 40px -16px rgba(15, 40, 50, .22); --shadow-s: 0 6px 18px -10px rgba(15, 40, 50, .18);
  --font-body: 'Inter', 'Noto Sans TC', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Manrope', 'Noto Sans TC', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --z-top: 30;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.75; }
a { color: var(--brand); text-decoration: none; cursor: pointer; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--jade); outline-offset: 2px; border-radius: 4px; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.25; margin: 0; letter-spacing: -0.012em; color: var(--ink); }
h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; }
h3 { font-size: 18px; font-weight: 700; }
p { margin: 10px 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); font-weight: 600; margin-bottom: 10px; }
.eyebrow.light { color: var(--mint); }
.dim { color: var(--ink-3); font-weight: 500; }
.skip { position: absolute; left: 8px; top: 8px; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; background: var(--brand-ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 99; }
.skip:focus { width: auto; height: auto; clip: auto; clip-path: none; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.delay { transition-delay: .12s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Top bar */
.top { position: sticky; top: 0; z-index: var(--z-top); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 28px; height: 64px; background: rgba(255,255,255,.9); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; color: var(--ink); font-size: 17px; }
.brand img { width: 30px; height: 30px; }
.top nav { display: flex; align-items: center; gap: 24px; font-size: 14.5px; font-weight: 500; }
.top nav a { color: var(--ink-2); transition: color .2s; }
.top nav a:hover { color: var(--brand-ink); text-decoration: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border-radius: 12px; border: 1px solid var(--line); color: var(--ink-2); font-weight: 600; font-size: 15px; background: var(--paper); transition: background .2s, border-color .2s, color .2s, box-shadow .2s; cursor: pointer; }
.btn:hover { text-decoration: none; border-color: var(--brand); color: var(--brand-ink); }
.btn.primary { background: var(--brand-ink); border-color: var(--brand-ink); color: #fff; box-shadow: 0 8px 20px -10px rgba(34, 87, 122, .7); }
.btn.primary:hover { background: var(--brand-ink-2); border-color: var(--brand-ink-2); color: #fff; }
.btn.ghost { background: transparent; }
.btn.small { min-height: 38px; padding: 0 16px; font-size: 14px; border-radius: 10px; box-shadow: none; }
.btn.lg { min-height: 52px; padding: 0 28px; font-size: 16px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 84px 0 72px; }
.hero-bg { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(900px 420px at 85% 10%, rgba(67,178,161,.18), transparent 60%),
  radial-gradient(700px 400px at 10% 90%, rgba(34,87,122,.10), transparent 60%),
  linear-gradient(180deg, #fbfdfd 0%, #ffffff 100%); }
.hero-bg::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(34,87,122,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(34,87,122,.06) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(600px 400px at 70% 30%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(600px 400px at 70% 30%, #000 30%, transparent 75%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 44px; align-items: center; }
.hero h1 { font-size: clamp(32px, 3.9vw, 46px); font-weight: 900; font-family: 'Noto Sans TC', var(--font-display); line-height: 1.22; letter-spacing: -0.01em; }
.lead { font-size: 18px; color: var(--ink-2); margin: 20px 0 26px; max-width: 540px; }
.proof { list-style: none; padding: 0; margin: 28px 0 0; display: flex; gap: 20px; flex-wrap: wrap; font-size: 14px; color: var(--ink-3); font-weight: 500; }
.proof li { display: flex; align-items: center; gap: 8px; }
.proof li::before { content: ''; width: 18px; height: 18px; border-radius: 50%; background: var(--jade) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center/11px no-repeat; }
.hero-shot { position: relative; margin: 0; }
.browser { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; background: #eef2f3; border: 1px solid var(--line); border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0; }
.browser span { width: 10px; height: 10px; border-radius: 50%; background: #d3dcdc; }
.browser em { font-style: normal; font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); margin-left: 10px; background: #fff; border-radius: 6px; padding: 2px 10px; flex: 1; text-align: center; }
.hero-shot img { border: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow); }
.float-card { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; box-shadow: var(--shadow-s); display: flex; flex-direction: column; gap: 2px; min-width: 130px; }
.float-card strong { font-size: 12px; color: var(--ink-3); font-weight: 500; }
.float-card .num { font-family: var(--font-display); font-size: 22px; font-weight: 800; color: var(--ink); }
.float-card .num.red { color: var(--red); }
.fc-1 { left: -22px; bottom: 26%; }
.fc-2 { right: -18px; top: 18%; }

/* Credibility strip */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper-2); }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip-grid div { padding: 22px 20px; display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.strip-grid div:last-child { border-right: 0; }
.strip-grid b { font-family: var(--font-display); font-size: 28px; font-weight: 800; color: var(--brand-ink); line-height: 1.1; }
.strip-grid span { font-size: 14px; color: var(--ink-3); margin-top: 4px; }

/* Sections */
.section { padding: 88px 24px 40px; }
.section-head { max-width: 760px; margin-bottom: 36px; }
.intro { color: var(--ink-2); font-size: 17px; margin-top: 14px; }
.band { background: var(--mist); padding: 88px 0; margin-top: 56px; }
.band.soft { background: linear-gradient(180deg, #f6f9f9, #fff); }
.band.dark { background: linear-gradient(160deg, #1b4763 0%, #22577a 55%, #2a6d84 100%); color: #fff; }
.band.dark h2, .band.dark h3 { color: #fff; }
.band.dark p { color: rgba(255,255,255,.84); }

/* Problem */
.pain-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.pain { position: relative; padding: 26px 26px 22px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: box-shadow .25s, border-color .25s; }
.pain:hover { box-shadow: var(--shadow-s); border-color: #cfdede; }
.pain .pn { font-family: var(--font-mono); font-size: 12px; color: var(--brand); letter-spacing: .1em; }
.pain h3 { margin: 8px 0 6px; }
.pain p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* Versions */
.ver-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ver { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 26px 26px 22px; box-shadow: var(--shadow-s); border-top: 4px solid var(--brand-ink); display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.ver:hover { box-shadow: var(--shadow); }
.ver.design { border-top-color: #1f3a5f; } .ver.fire { border-top-color: #b03a2e; } .ver.law { border-top-color: #3b3b6b; }
.ver .tag { display: inline-block; font-size: 12.5px; padding: 3px 10px; border-radius: 999px; font-weight: 700; margin-bottom: 10px; }
.ver.design .tag { background: #eef2f8; color: #1f3a5f; } .ver.fire .tag { background: #faf0ee; color: #8c2d24; } .ver.law .tag { background: #efeff6; color: #2b2b50; }
.ver h3 { font-size: 18px; min-height: 2.5em; }
.ver ul { padding-left: 1.1em; margin: 14px 0 18px; color: var(--ink-2); font-size: 14.5px; flex: 1; }
.ver li { margin: 6px 0; }
.ver a { font-weight: 600; font-size: 14.5px; }

/* Features */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feat { padding: 26px; border-radius: var(--radius); background: var(--paper-2); border: 1px solid transparent; transition: background .25s, border-color .25s; }
.feat:hover { background: #fff; border-color: var(--line); }
.feat svg { width: 28px; height: 28px; fill: none; stroke: var(--brand-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 14px; }
.feat h3 { margin-bottom: 6px; }
.feat p { margin: 0; color: var(--ink-2); font-size: 15px; }
.feat small.fine { display: block; margin-top: 10px; font-size: 12.5px; line-height: 1.6; color: var(--ink-3); }

/* Screens */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.shots figure { margin: 0; }
.shots img { border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow-s); width: 100%; height: 250px; object-fit: cover; object-position: top; }
.shots figcaption { font-size: 14px; color: var(--ink-2); margin-top: 12px; }
.shots figcaption strong { display: block; color: var(--ink); font-family: var(--font-display); font-weight: 700; }

/* Onboarding */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 24px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.steps li { counter-increment: s; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px 18px; font-size: 14.5px; color: var(--ink-2); position: relative; }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font-family: var(--font-mono); color: var(--brand); font-size: 13px; letter-spacing: .1em; margin-bottom: 12px; }
.steps strong { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; font-family: var(--font-display); }
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 12px; }
.modes div { border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; background: var(--paper-2); }
.modes h3 { font-size: 16px; }
.modes p { color: var(--ink-2); font-size: 14px; margin: 6px 0 0; }
.note { color: var(--ink-2); font-size: 15px; margin-top: 24px; }
.note a { font-weight: 600; margin-left: 6px; }

/* Security */
.sec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 40px; }
.sec-grid div { padding: 22px 24px; border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); background: rgba(255,255,255,.06); }
.sec-grid h3 { margin-bottom: 6px; }
.sec-grid p { margin: 0; font-size: 15px; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 6px 0; }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; font-family: var(--font-display); font-size: 17px; padding: 14px 40px 14px 0; position: relative; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq p { margin: 0 0 16px; color: var(--ink-2); font-size: 15px; max-width: 760px; }

/* Final */
.final { text-align: center; padding: 96px 24px 100px; background: radial-gradient(700px 300px at 50% 0%, rgba(67,178,161,.14), transparent 70%); }
.final p { color: var(--ink-2); max-width: 600px; margin: 14px auto 26px; font-size: 17px; }
.final .cta { justify-content: center; }

/* Footer */
footer { border-top: 1px solid var(--line); background: var(--paper-2); padding: 40px 0 28px; font-size: 14px; color: var(--ink-2); }
footer .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 24px; }
footer .co { display: flex; gap: 12px; align-items: flex-start; }
footer h4 { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
footer .cols a { display: block; color: var(--ink-2); padding: 3px 0; }
footer .fine { color: var(--ink-3); font-size: 13px; margin-top: 26px; }

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .fc-1 { left: 8px; } .fc-2 { right: 8px; }
  .strip-grid { grid-template-columns: repeat(2, 1fr); }
  .strip-grid div:nth-child(2) { border-right: 0; }
  .strip-grid div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .ver-grid, .feat-grid, .shots, .modes { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .top { padding: 0 16px; height: 60px; }
  .top nav { gap: 14px; font-size: 13.5px; }
  .top nav a:not(.btn) { display: none; }
  .hero { padding: 48px 0 48px; }
  .section { padding: 64px 16px 32px; }
  .wrap { padding: 0 16px; }
  .band { padding: 64px 0; }
  .pain-grid, .ver-grid, .feat-grid, .shots, .modes, .steps, .sec-grid { grid-template-columns: 1fr; }
  .strip-grid { grid-template-columns: 1fr 1fr; }
  .strip-grid b { font-size: 24px; }
  .float-card { display: none; }
  .btn { width: 100%; }
  .cta { flex-direction: column; }
  footer .cols { grid-template-columns: 1fr; }
}
