/* ==========================================================================
   Quant.TW 台灣量化金融科技 — 企業官網 v2
   版型參考：白底大標、圓角卡片、深色區塊交錯；配色取自 VI（深藍 #003893、青藍 #59C2E1、藍 #0085D0）
   ========================================================================== */

:root {
  --ink: #0a1f44;          /* 標題深藍 */
  --ink-2: #33415a;        /* 內文 */
  --ink-3: #5b687f;        /* 次要說明 */
  --navy: #003893;         /* VI 深藍 */
  --blue: #0085d0;         /* VI 藍 */
  --blue-ink: #006aa8;     /* 白底上的藍色文字 */
  --cyan: #59c2e1;         /* VI 青藍 */
  --cyan-soft: #cfecf7;
  --cyan-softer: #eaf6fb;
  --cyan-on-dark: #8fdcf3;
  --ground: #ffffff;
  --alt: #f5f7fa;
  --card: #fafbfd;
  --line: #e4e9f0;
  --line-strong: #cfd7e2;
  --dark-1: #05132e;
  --dark-2: #0a2a66;
  --danger: #c0392b;

  --font: "Geist", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  --mono: "Geist Mono", "Noto Sans TC", ui-monospace, SFMono-Regular, Menlo, monospace;

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-xl: 30px;
  --shadow-card: 0 1px 2px rgba(10, 31, 68, .04), 0 12px 32px -12px rgba(10, 31, 68, .14);
  --shadow-float: 0 2px 6px rgba(10, 31, 68, .06), 0 28px 60px -20px rgba(10, 31, 68, .28);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-2);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--cyan-soft); color: var(--ink); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; transition: top .2s; }
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: 1208px; margin-inline: auto; padding-inline: 24px; }
.wrap--narrow { max-width: 908px; }
.center { text-align: center; margin-inline: auto; }
.only-wide { display: none; }
@media (min-width: 900px) { .only-wide { display: inline; } }

/* ---------- 共用文字 ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: center;
  margin-bottom: 18px;
}
.eyebrow--left { text-align: left; }
.eyebrow--light { color: var(--cyan-on-dark); }

.h2 {
  font-size: clamp(28px, 4.5vw, 54px);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -.02em;
  color: var(--ink);
  text-wrap: balance;
}
.h2--light { color: #fff; }
.h2--xl { font-size: clamp(40px, 8.4vw, 104px); line-height: 1.05; letter-spacing: -.03em; }

.lede { font-size: clamp(16.5px, 1.5vw, 19px); line-height: 1.7; color: var(--ink-2); max-width: 44em; margin-top: 18px; }
.lede.center { margin-inline: auto; }
.fineprint { font-size: 13.5px; color: var(--ink-3); margin-top: 28px; }

.sec { padding-block: clamp(76px, 10vw, 136px); }
.sec--alt { background: var(--alt); }
.sec--tight { padding-top: clamp(24px, 4vw, 48px); }

/* ---------- 按鈕 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; border: 1px solid transparent;
  padding: 11px 20px; font-size: 15.5px; font-weight: 600; line-height: 1.2; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, border-color .2s;
}
.btn:active { transform: translateY(1px) scale(.985); }
.btn--lg { padding: 18px 30px; font-size: 17px; }
.btn--sm { padding: 9px 16px; font-size: 14.5px; }
.btn--dark {
  color: #fff;
  background: radial-gradient(120% 140% at 50% 0%, #14408f 0%, var(--ink) 58%);
  box-shadow: 0 10px 26px -10px rgba(10, 31, 68, .55);
}
.btn--dark:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(10, 31, 68, .6); }
.btn--tint {
  color: var(--ink);
  background: var(--cyan-soft);
  border-color: rgba(0, 133, 208, .22);
  box-shadow: 0 0 0 5px rgba(89, 194, 225, .18);
}
.btn--tint:hover { background: #bfe5f4; transform: translateY(-1px); }
.btn--ghost { color: var(--ink); background: #fff; border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-1px); }

.tag { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink); background: var(--cyan-softer); border: 1px solid var(--cyan-soft); }
.tag--dark { color: #fff; background: var(--ink); border-color: var(--ink); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(89, 194, 225, .25); flex: none; }

/* ---------- 導覽列 ---------- */
.gnav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  transition: box-shadow .25s, background-color .25s;
}
.gnav.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 10px 30px -22px rgba(10, 31, 68, .5); }
.gnav__inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.gnav__brand img { width: 208px; height: auto; }
.gnav__links { display: flex; align-items: center; gap: 30px; margin-inline: auto; font-size: 15.5px; color: var(--ink); }
.gnav__links a:not(.btn) { position: relative; padding: 6px 0; }
.gnav__links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--cyan); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.gnav__links a:not(.btn):hover::after { transform: scaleX(1); }
.gnav__menu-cta { display: none; }
.gnav__side { display: flex; align-items: center; gap: 22px; }
.gnav__ext { font-size: 15px; color: var(--ink); display: inline-flex; align-items: center; gap: 4px; }
.gnav__ext:hover { color: var(--blue-ink); }
.gnav__toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-strong); background: #fff; font-size: 22px; color: var(--ink); align-items: center; justify-content: center; }

@media (max-width: 1100px) {
  .gnav__ext { display: none; }
  .gnav__links { gap: 20px; font-size: 15px; }
}
@media (max-width: 900px) {
  .gnav__brand img { width: 172px; }
  .gnav__inner { justify-content: space-between; }
  .gnav__side { display: none; }
  .gnav__toggle { display: inline-flex; }
  .gnav__links {
    position: absolute; left: 12px; right: 12px; top: calc(var(--nav-h) - 4px);
    flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-float);
    padding: 10px 18px 18px; font-size: 17px;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s, transform .2s var(--ease), visibility .2s;
  }
  .gnav__links.is-open { opacity: 1; visibility: visible; transform: none; }
  .gnav__links a:not(.btn) { padding: 13px 2px; border-bottom: 1px solid var(--line); }
  .gnav__links a:not(.btn)::after { display: none; }
  .gnav__menu-cta { display: inline-flex; margin-top: 16px; }
}

/* ---------- Hero ---------- */
.hero { padding-top: calc(var(--nav-h) + clamp(36px, 5vw, 60px)); }
.hero__head { text-align: center; }
.hero__title {
  font-size: clamp(27px, 7.4vw, 84px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.025em;
  color: var(--ink);
}
.uline { position: relative; display: inline-block; white-space: nowrap; }
.uline svg { position: absolute; left: -2%; bottom: -.16em; width: 104%; height: .16em; overflow: visible; }
.uline path { fill: none; stroke: var(--cyan); stroke-width: 4; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 320; stroke-dashoffset: 0; }
.js .uline path { animation: draw 1.1s .35s var(--ease) both; }
@keyframes draw { from { stroke-dashoffset: 320; } to { stroke-dashoffset: 0; } }

.hero__sub { font-size: clamp(16.5px, 1.6vw, 20px); line-height: 1.7; color: var(--ink-2); max-width: 40em; margin: 26px auto 0; }

.chooser { margin-top: 34px; }
.chooser__q { font-size: 19px; font-weight: 600; color: var(--ink); }
.chooser__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 16px; }
.chip {
  border: 1px solid var(--line-strong); background: #fff; color: var(--ink);
  border-radius: 999px; padding: 9px 18px; font-size: 15.5px; font-weight: 500;
  transition: border-color .2s, background-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.chip:hover { border-color: var(--blue); background: var(--cyan-softer); transform: translateY(-2px); box-shadow: 0 8px 18px -12px rgba(0, 133, 208, .6); }
.chooser__hint { font-size: 13.5px; color: var(--ink-3); margin-top: 14px; }
.hero__head > .btn { margin-top: 28px; }

/* Hero 展示區 */
.stage {
  position: relative; margin-top: clamp(64px, 6vw, 84px);
  background: linear-gradient(180deg, #edf1f6 0%, #f6f8fb 100%);
  border-radius: var(--r-xl);
  padding: 44px 0 0 44px;
  display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr); gap: 36px; align-items: end;
}
.js .stage { animation: rise .9s .15s var(--ease) both; }
.browser { background: #0b1220; border-radius: 14px 14px 0 0; overflow: hidden; box-shadow: var(--shadow-float); }
.browser__bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: #131c2e; }
.browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: #33415a; }
.browser__bar span { margin-left: 10px; font-family: var(--mono); font-size: 13px; color: #8fa0bb; }
.stage__shot img { width: 100%; }
.stage__chips { position: absolute; inset: 0; pointer-events: none; }
.float {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px 9px 12px;
  font-size: 13.5px; color: var(--ink-3); box-shadow: var(--shadow-card); white-space: nowrap;
}
.float i { font-size: 18px; color: var(--blue); }
.float b { color: var(--ink); font-weight: 600; }
.float:nth-child(1) { left: -20px; top: 104px; }
.float:nth-child(2) { left: 30%; top: -21px; }
.float:nth-child(3) { left: -22px; bottom: 16%; }
.js .float { animation: bob 6s ease-in-out infinite; }
.js .float:nth-child(2) { animation-delay: -2s; }
.js .float:nth-child(3) { animation-delay: -4s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

.stage__card {
  position: relative; z-index: 2; align-self: start;
  margin: -92px 36px 40px 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px;
  box-shadow: var(--shadow-float);
}
.stage__card header { display: flex; align-items: center; gap: 12px; }
.stage__card header img { width: 36px; height: auto; }
.stage__card header b { display: block; font-size: 18px; color: var(--ink); line-height: 1.3; }
.stage__card header span { font-size: 13px; color: var(--ink-3); }
.stage__tags { display: flex; gap: 8px; margin-top: 16px; }
.stage__rows { margin-top: 16px; border-top: 1px solid var(--line); }
.stage__rows div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.stage__rows dt { color: var(--ink-2); }
.stage__rows dd { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; color: var(--ink); background: var(--cyan-softer); border-radius: 999px; padding: 3px 10px 3px 7px; font-size: 13px; white-space: nowrap; }
.stage__rows dd i { color: var(--blue); }
.stage__note { font-size: 13px; line-height: 1.6; color: var(--ink-3); margin-top: 14px; }
.stage__go { display: flex; align-items: center; gap: 10px; margin-top: 16px; background: var(--ink); color: #fff; border-radius: 999px; padding: 11px 18px; font-size: 14.5px; font-weight: 600; transition: background-color .2s, transform .2s var(--ease); }
.stage__go i { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--cyan); color: var(--ink); font-size: 15px; }
.stage__go:hover { background: var(--navy); transform: translateY(-1px); }

@media (max-width: 980px) {
  .stage { grid-template-columns: 1fr; padding: 22px 22px 0; gap: 0; margin-top: 56px; }
  .stage__shot { order: 2; margin-top: 22px; }
  .stage__card { order: 1; margin: 0; box-shadow: var(--shadow-card); }
  .stage__chips { position: static; order: 3; display: flex; flex-wrap: wrap; gap: 8px; padding: 18px 0 22px; }
  .float { position: static; animation: none !important; box-shadow: none; }
  .browser { border-radius: 12px; }
}

/* ---------- 數字 ---------- */
.nums { padding-block: 44px clamp(72px, 9vw, 112px); }
.nums__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; max-width: 1040px; margin-inline: auto; }
.num { display: flex; flex-direction: column-reverse; align-items: center; justify-content: center; text-align: center; padding: 22px 12px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: 0 10px 26px -22px rgba(10, 31, 68, .5); }
.num dd { font-size: clamp(28px, 3vw, 36px); font-weight: 500; letter-spacing: -.02em; line-height: 1.15; color: var(--ink); font-variant-numeric: tabular-nums; }
.num dd small { font-size: .55em; margin-left: 3px; font-weight: 500; }
.num dt { font-size: 13.5px; color: var(--ink-3); margin-top: 6px; line-height: 1.45; }
.num--tint { background: var(--cyan-softer); border-color: var(--cyan-soft); }
.num--tint dd { font-size: clamp(20px, 2vw, 24px); display: inline-flex; align-items: center; gap: 6px; padding-block: 5px; }
.num--tint dd i { color: var(--blue); font-size: 1.15em; }
.nums__note { text-align: center; font-size: 13px; color: var(--ink-3); margin-top: 16px; }

.creds__cap { font-family: var(--mono); font-size: 13px; letter-spacing: .14em; color: var(--ink-3); text-align: center; margin-top: clamp(56px, 7vw, 84px); }
.creds { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px; margin-top: 24px; }
.creds li { display: inline-flex; align-items: center; gap: 9px; font-size: 17px; font-weight: 600; color: #566378; letter-spacing: -.005em; }
.creds i { font-size: 23px; }

@media (max-width: 900px) {
  .nums__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .num--tint { grid-column: 1 / -1; }
  .creds { gap: 12px 24px; }
  .creds li { font-size: 15.5px; }
}

/* ---------- 深色區塊 ---------- */
.dark {
  position: relative; overflow: hidden; color: rgba(255, 255, 255, .76);
  background: radial-gradient(90% 70% at 12% 0%, #0f3a86 0%, rgba(15, 58, 134, 0) 60%), linear-gradient(165deg, var(--dark-2) 0%, #071d49 46%, var(--dark-1) 100%);
  padding-block: clamp(84px, 10vw, 132px);
}
.pairs { margin-top: clamp(44px, 6vw, 72px); border-top: 1px solid rgba(255, 255, 255, .14); }
.pairs li { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px 64px; align-items: center; padding: 30px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.pairs h3 { font-size: clamp(20px, 2vw, 24px); font-weight: 600; color: #fff; line-height: 1.35; }
.pairs li > div p { margin-top: 6px; font-size: 16px; line-height: 1.65; }
.pairs__fix { text-wrap: balance; display: flex; align-items: flex-start; gap: 12px; font-size: 17px; font-weight: 600; line-height: 1.55; color: var(--cyan-on-dark); }
.pairs__fix i { font-size: 24px; flex: none; margin-top: 1px; }
@media (max-width: 760px) { .pairs li { grid-template-columns: 1fr; padding: 26px 0; } }

/* ---------- 產品 bento ---------- */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: clamp(40px, 5vw, 64px); }
.card {
  display: flex; flex-direction: column; min-width: 0;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(24px, 2.6vw, 34px);
  transition: border-color .25s, box-shadow .25s, transform .25s var(--ease);
  scroll-margin-top: calc(var(--nav-h) + 20px);
}
.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-card); transform: translateY(-3px); }
.card--wide { grid-column: span 2; }
.card__tag { font-family: var(--mono); font-size: 13px; letter-spacing: .12em; color: var(--blue-ink); margin-bottom: 10px; }
.card h3 { font-size: clamp(21px, 2vw, 26px); font-weight: 500; line-height: 1.3; letter-spacing: -.015em; color: var(--ink); }
.card__desc { margin-top: 10px; font-size: 16px; line-height: 1.7; }
.ticks { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 16px; }
.ticks li { display: inline-flex; align-items: center; gap: 7px; font-size: 14.5px; font-weight: 500; color: var(--ink); }
.ticks li::before { content: ""; width: 16px; height: 16px; flex: none; border-radius: 50%; background: var(--cyan-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.4 8.3l2.3 2.3 4.9-5' fill='none' stroke='%230a1f44' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.ticks--col { flex-direction: column; gap: 9px; }
.card__media { margin-top: 26px; }
.card__media--pair { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 14px; }
.card__media--media { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.shot { background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; box-shadow: 0 10px 26px -20px rgba(10, 31, 68, .5); }
.shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: left top; transition: transform .6s var(--ease); }
.card:hover .shot img { transform: scale(1.025); }
.shot figcaption { font-size: 13px; color: var(--ink-3); padding: 8px 12px; border-top: 1px solid var(--line); background: #fff; position: relative; }
.shot--tall { margin-top: 22px; margin-bottom: 20px; }
.shot--base { margin-bottom: 20px; }
.mini + .shot--base { margin-top: 0; }
.shot--photo img { aspect-ratio: 4 / 3; object-position: center 62%; }
.shot--reel img { aspect-ratio: 3 / 4; object-position: center top; }
.card__media--media .shot img { height: 100%; aspect-ratio: auto; min-height: 220px; max-height: 300px; }
.card__media--media .shot { display: flex; flex-direction: column; }
.card__foot { font-size: 13px; color: var(--ink-3); margin-top: 14px; }
.card__link { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 6px; font-size: 15.5px; font-weight: 600; color: var(--ink); align-self: flex-start; }
.card__link i { transition: transform .2s var(--ease); }
.card__link:hover { color: var(--blue-ink); }
.card__link:hover i { transform: translate(3px, 0); }
.card--wide .card__link { margin-top: 22px; }

.mini { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 16px 8px; margin: 22px 0 18px; box-shadow: 0 10px 26px -20px rgba(10, 31, 68, .5); }
.mini__cap { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; color: var(--ink); padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.mini__cap em { margin-left: auto; font-style: normal; font-weight: 400; color: var(--ink-3); }
.mini--log li { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.mini li:last-child { border-bottom: 0; }
.mini--log time { font-variant-numeric: tabular-nums; font-size: 13px; color: var(--ink-3); }
.mini--log b { font-size: 13px; font-weight: 600; color: var(--ink); background: var(--cyan-softer); border-radius: 6px; padding: 2px 8px; }
.mini--log li:last-child b { background: var(--ink); color: #fff; }
.mini--log span { color: var(--ink-2); }
.mini--check li { display: flex; align-items: center; gap: 9px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--ink); }
.mini--check i { color: var(--blue); font-size: 19px; }
.card .ticks--col { margin-bottom: 18px; }
.shot--tall + .ticks--col { margin-top: 0; }

.facts { display: flex; flex-wrap: wrap; gap: 12px 44px; margin-top: 20px; }
.facts div { display: flex; flex-direction: column-reverse; }
.facts dd { font-size: 34px; font-weight: 500; letter-spacing: -.02em; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.facts dt { font-size: 13.5px; color: var(--ink-3); margin-top: 4px; }

@media (min-width: 701px) {
  .card__media--pair .shot { position: relative; }
  .card__media--pair .shot:last-child img { position: absolute; inset: 0 0 auto 0; height: calc(100% - 38px); aspect-ratio: auto; }
  .card__media--pair .shot:last-child figcaption { position: absolute; inset: auto 0 0 0; }
}
@media (max-width: 1040px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .bento { grid-template-columns: 1fr; gap: 16px; }
  .card--wide { grid-column: auto; }
  .card__media--pair { grid-template-columns: 1fr; }
  .card__media--media { grid-template-columns: 1fr 1fr; }
  .card__media--media .shot--photo { grid-column: 1 / -1; }
}

/* ---------- 服務範圍 tabs ---------- */
.tabs { margin-top: clamp(32px, 4vw, 48px); }
.tabs__list { display: flex; gap: 4px; width: max-content; max-width: 100%; margin-inline: auto; padding: 5px; background: #e9edf3; border-radius: 999px; overflow-x: auto; scrollbar-width: none; }
.tabs__list::-webkit-scrollbar { display: none; }
.tabs__list button { border: 0; background: transparent; border-radius: 999px; padding: 10px 20px; font-size: 15.5px; font-weight: 500; color: var(--ink-2); white-space: nowrap; transition: background-color .2s, color .2s, box-shadow .2s; }
.tabs__list button:hover { color: var(--ink); }
.tabs__list button[aria-selected="true"] { background: var(--ink); color: #fff; box-shadow: 0 6px 16px -8px rgba(10, 31, 68, .7); }
.tabs__panel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 32px; }
.tabs__panel[hidden] { display: none; }
.js .tabs__panel:not([hidden]) .svc { animation: rise .5s var(--ease) both; }
.js .tabs__panel:not([hidden]) .svc:nth-child(2) { animation-delay: .07s; }
.js .tabs__panel:not([hidden]) .svc:nth-child(3) { animation-delay: .14s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.svc { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-card); }
.svc header { display: flex; align-items: center; gap: 14px; }
.svc header > i { font-size: 30px; color: var(--navy); flex: none; }
.svc h3 { font-size: 20px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.svc header p { font-size: 13.5px; color: var(--ink-3); }
.svc__proof { margin-top: 18px; background: var(--alt); border-radius: var(--r-sm); padding: 14px 16px; font-size: 15px; line-height: 1.7; color: var(--ink-2); flex: 1; }
.svc__proof b { display: block; font-family: var(--mono); font-size: 13px; letter-spacing: .12em; color: var(--ink-3); font-weight: 500; margin-bottom: 4px; }
.svc__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.svc__tags li { font-size: 13px; font-weight: 500; color: var(--ink); background: var(--cyan-softer); border-radius: 6px; padding: 3px 9px; }
.svc > a { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 15px; font-weight: 600; color: var(--ink); }
.svc > a:hover { color: var(--blue-ink); }
.svc > a i { transition: transform .2s var(--ease); }
.svc > a:hover i { transform: translateX(3px); }
@media (max-width: 900px) { .tabs__panel { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .tabs__list { display: grid; grid-template-columns: 1fr 1fr; width: 100%; border-radius: 22px; overflow: visible; }
  .tabs__list button { padding: 11px 8px; border-radius: 18px; }
}

/* ---------- 合作流程 ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: clamp(40px, 5vw, 64px); text-align: center; }
.steps li { position: relative; }
.steps__no { display: inline-block; font-family: var(--mono); font-size: 13px; color: var(--ink); background: var(--cyan-softer); border: 1px solid var(--cyan-soft); border-radius: 999px; padding: 2px 12px; }
.steps__box { position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 92px; margin-top: 16px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-card); }
.steps li + li .steps__box::before { content: ""; position: absolute; right: 100%; top: 50%; width: 40px; border-top: 2px dashed var(--line-strong); }
.steps__box em { font-style: normal; font-size: 13px; color: var(--ink-3); }
.pill { display: inline-flex; align-items: center; gap: 9px; border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 600; color: var(--ink); background: var(--cyan-softer); }
.pill--dark { background: var(--ink); color: #fff; }
.steps__box--list { display: grid; grid-template-columns: auto auto; gap: 8px 22px; }
.steps__box--list span { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--ink); }
.steps__box--list i { color: var(--blue); font-size: 18px; }
.steps h3 { font-size: 21px; font-weight: 600; color: var(--ink); margin-top: 22px; }
.steps p { font-size: 16px; line-height: 1.7; margin-top: 8px; max-width: 22em; margin-inline: auto; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; gap: 44px; } .steps li + li .steps__box::before { display: none; } }

/* ---------- 合作夥伴 ---------- */
.roster { margin-top: clamp(32px, 4vw, 52px); background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-card); }
.roster table { width: 100%; border-collapse: collapse; }
.roster thead th { text-align: left; font-family: var(--mono); font-weight: 500; font-size: 13px; letter-spacing: .12em; color: var(--ink-3); padding: 16px 28px; background: var(--card); border-bottom: 1px solid var(--line); }
.roster tbody th, .roster td { text-align: left; padding: 20px 28px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.roster tbody tr:last-child th, .roster tbody tr:last-child td { border-bottom: 0; }
.roster tbody th { font-size: 19px; font-weight: 600; color: var(--ink); white-space: nowrap; width: 26%; }
.roster tbody th i { font-size: 24px; color: var(--navy); margin-right: 12px; vertical-align: -4px; }
.roster td:nth-child(2) { width: 18%; white-space: nowrap; color: var(--ink); }
.roster td b { font-size: 30px; font-weight: 500; letter-spacing: -.02em; margin-right: 2px; font-variant-numeric: tabular-nums; }
.roster tbody tr { transition: background-color .2s; }
.roster tbody tr:hover { background: var(--card); }
.media-partners { margin-top: 36px; }
.media-partners__cap { font-family: var(--mono); font-size: 13px; letter-spacing: .14em; color: var(--ink-3); }
.media-partners ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.media-partners li { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px 26px; }
.media-partners b { display: block; font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; letter-spacing: .02em; color: var(--ink); line-height: 1.3; }
.media-partners span { font-size: 14px; color: var(--ink-3); }
@media (max-width: 760px) {
  .roster thead { display: none; }
  .roster tbody tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
  .roster tbody tr:last-child { border-bottom: 0; }
  .roster tbody th, .roster td { padding: 0; border: 0; width: auto !important; }
  .roster td:nth-child(3) { grid-column: 1 / -1; font-size: 15px; }
  .media-partners ul { grid-template-columns: 1fr; }
}

/* ---------- 合規與資安 ---------- */
.trust__mark { position: absolute; right: -60px; top: 50%; transform: translateY(-50%); width: min(46vw, 560px); height: auto; opacity: .16; pointer-events: none; }
.trust .wrap { position: relative; }
.trust__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin-top: clamp(44px, 6vw, 72px); }
.trust__grid article { border-top: 1px solid rgba(255, 255, 255, .22); padding-top: 24px; }
.trust__grid i { font-size: 30px; color: var(--cyan-on-dark); }
.trust__grid h3 { font-size: 20px; font-weight: 600; color: #fff; margin-top: 14px; }
.trust__grid p { font-size: 15.5px; line-height: 1.75; margin-top: 8px; }
@media (max-width: 1000px) { .trust__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .trust__grid { grid-template-columns: 1fr; } .trust__mark { opacity: .1; } }

/* ---------- 現場 ---------- */
.wall { position: relative; background: linear-gradient(180deg, #edf1f6 0%, #f7f9fc 100%); border-radius: var(--r-xl); padding: clamp(40px, 6vw, 72px) clamp(20px, 4vw, 56px) clamp(36px, 5vw, 56px); text-align: center; }
.wall__mark { width: 56px; height: auto; margin: 0 auto 18px; }
.wall__row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: start; margin-top: clamp(32px, 4vw, 52px); }
.wall figure { background: #fff; border-radius: var(--r-md); padding: 10px 10px 0; box-shadow: var(--shadow-card); text-align: left; transition: transform .3s var(--ease), box-shadow .3s; }
.wall figure:hover { transform: translateY(-4px); box-shadow: var(--shadow-float); }
.wall figure.is-lead { box-shadow: var(--shadow-float); }
.wall figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; }
.wall img[src*="lecture"] { object-position: 74% center; }
.wall img[src*="seminar"] { object-position: center 70%; }
.wall figcaption { padding: 14px 8px 16px; font-size: 14px; color: var(--ink-3); line-height: 1.5; }
.wall figcaption b { display: block; font-size: 17px; color: var(--ink); font-weight: 600; }
.wall__stat { margin-top: 30px; font-size: 17px; color: var(--ink); }
.wall__stat b { font-size: 26px; font-weight: 500; letter-spacing: -.02em; margin-right: 4px; }
@media (max-width: 1000px) { .wall__row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .wall__row { grid-template-columns: 1fr; } .wall figure img { aspect-ratio: 4 / 3.6; } }

/* ---------- 活動預告 ---------- */
.events { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; margin-top: clamp(32px, 4vw, 48px); }
.event { border-radius: var(--r-lg); padding: clamp(24px, 2.8vw, 36px); }
.event__when { font-family: var(--mono); font-size: 13px; letter-spacing: .04em; color: var(--blue-ink); }
.event h3 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 500; letter-spacing: -.015em; color: var(--ink); line-height: 1.3; margin-top: 8px; }
.event > p { font-size: 16px; margin-top: 8px; }
.event--expo { background: var(--card); border: 1px solid var(--line); }
.event__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.event__photos img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-sm); }
.event--expo dl { display: grid; gap: 0; margin-top: 18px; border-top: 1px solid var(--line); }
.event--expo dl div { display: flex; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.event--expo dt { color: var(--ink-3); width: 3em; flex: none; }
.event--expo dd { color: var(--ink); font-weight: 500; }
.event__note { font-size: 13px !important; color: var(--ink-3); margin-top: 14px !important; }
.event--show { color: rgba(255, 255, 255, .78); background: radial-gradient(100% 80% at 0% 0%, #10408f 0%, rgba(16, 64, 143, 0) 62%), linear-gradient(165deg, var(--dark-2), var(--dark-1)); display: flex; flex-direction: column; }
.event--show .event__when { color: var(--cyan-on-dark); }
.event--show h3 { color: #fff; }
.event--show ul { margin-top: auto; padding-top: 28px; }
.event--show li { padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .16); }
.event--show li b { display: block; font-size: 18px; font-weight: 600; color: #fff; }
.event--show li span { font-size: 14.5px; }
@media (max-width: 860px) { .events { grid-template-columns: 1fr; } }

/* ---------- 關於：公式與里程碑 ---------- */
.formula { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1.1fr); gap: 18px; align-items: stretch; margin-top: clamp(36px, 5vw, 56px); }
.formula article { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-card); }
.formula__tag { font-family: var(--mono); font-size: 13px; letter-spacing: .12em; color: var(--ink-3); }
.formula h3 { font-size: 22px; font-weight: 600; color: var(--ink); margin-top: 6px; line-height: 1.35; }
.formula article p:last-child { font-size: 15.5px; margin-top: 8px; line-height: 1.7; }
.formula__op { align-self: center; font-size: 26px; color: var(--ink-3); font-weight: 300; }
.formula__sum { color: rgba(255, 255, 255, .78); background: radial-gradient(100% 90% at 0% 0%, #10408f 0%, rgba(16, 64, 143, 0) 62%), linear-gradient(165deg, var(--dark-2), var(--dark-1)) !important; border-color: transparent !important; box-shadow: var(--shadow-float) !important; }
.formula__sum img { width: 176px; height: auto; margin-bottom: 14px; }
.formula__sum h3 { color: #fff; }
.miles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: clamp(44px, 6vw, 72px); border-top: 2px solid var(--line-strong); }
.miles li { position: relative; padding-top: 24px; }
.miles li::before { content: ""; position: absolute; left: 0; top: -7px; width: 12px; height: 12px; border-radius: 50%; background: var(--navy); box-shadow: 0 0 0 4px var(--alt); }
.miles li:last-child::before { background: var(--cyan); }
.miles time { font-family: var(--mono); font-size: 13px; color: var(--blue-ink); }
.miles b { display: block; font-size: 18px; font-weight: 600; color: var(--ink); margin-top: 4px; line-height: 1.4; }
.miles span { display: block; font-size: 14.5px; line-height: 1.65; color: var(--ink-3); margin-top: 4px; }
@media (max-width: 900px) {
  .formula { grid-template-columns: 1fr; }
  .formula__op { justify-self: center; line-height: 1; }
  .miles { grid-template-columns: 1fr 1fr; row-gap: 32px; }
}

/* ---------- 團隊（待補） ---------- */
.team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: clamp(28px, 4vw, 44px); }
.team__slot { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 32px 16px 28px; border: 1.5px dashed var(--line-strong); border-radius: var(--r-lg); background: repeating-linear-gradient(135deg, #fff 0 12px, #f8fafc 12px 24px); }
.team__ph { width: 76px; height: 76px; border-radius: 50%; background: #e9edf3; color: #9aa6b8; display: inline-flex; align-items: center; justify-content: center; font-size: 34px; margin-bottom: 12px; }
.team__slot b { font-size: 17px; color: var(--ink); font-weight: 600; }
.team__slot span:last-child { font-size: 13.5px; color: var(--ink-3); }
@media (max-width: 760px) { .team { grid-template-columns: 1fr 1fr; } }

/* ---------- 人才招募 accordion ---------- */
.acc { margin-top: clamp(28px, 4vw, 44px); border-top: 1px solid var(--line-strong); }
.acc details { border-bottom: 1px solid var(--line-strong); }
.acc summary { display: flex; align-items: center; gap: 16px; padding: 22px 4px; font-size: 19px; font-weight: 500; color: var(--ink); cursor: pointer; list-style: none; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary small { font-family: var(--mono); font-size: 13px; font-weight: 400; color: var(--ink-3); letter-spacing: .06em; }
.acc summary i { margin-left: auto; font-size: 22px; color: var(--blue); transition: transform .25s var(--ease); }
.acc details[open] summary i { transform: rotate(45deg); }
.acc summary:hover { color: var(--blue-ink); }
.acc details > div { padding: 0 4px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.acc details > div p { font-size: 16px; max-width: 34em; }

/* ---------- 聯絡表單 ---------- */
.closer { padding-block: clamp(76px, 10vw, 128px); }
.form { margin-top: clamp(28px, 4vw, 44px); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 3.4vw, 40px); }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 20px; }
.field--full { grid-column: 1 / -1; }
.field label { display: block; font-size: 14.5px; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.req { color: var(--danger); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="url"], .field select, .field textarea {
  width: 100%; background: #fff; border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 13px 14px; font-size: 16px; line-height: 1.5;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: #9aa6b8; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #9fb0c6; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 133, 208, .16); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--danger); }
.field__hint { font-size: 13px; color: var(--ink-3); margin-top: 6px; }
.field__err { font-size: 13.5px; color: var(--danger); margin-top: 6px; min-height: 0; }
.field__err:empty { display: none; }
.check { display: flex !important; gap: 12px; align-items: flex-start; font-weight: 400 !important; font-size: 14.5px !important; line-height: 1.65; color: var(--ink-2) !important; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--navy); flex: none; }
.form__submit { margin-top: 26px; }
.form__done { margin-top: clamp(28px, 4vw, 44px); text-align: center; background: var(--cyan-softer); border: 1px solid var(--cyan-soft); border-radius: var(--r-lg); padding: 44px 24px; }
.form__done > i { font-size: 44px; color: var(--blue); }
.form__done h3 { font-size: 24px; font-weight: 600; color: var(--ink); margin-top: 6px; }
.form__done p { margin: 8px auto 22px; max-width: 30em; font-size: 16px; }
@media (max-width: 640px) { .form__grid { grid-template-columns: 1fr; } }

/* ---------- 頁尾 ---------- */
.foot { position: relative; overflow: hidden; color: rgba(255, 255, 255, .72); background: radial-gradient(80% 60% at 10% 0%, #0f3a86 0%, rgba(15, 58, 134, 0) 60%), linear-gradient(165deg, var(--dark-2) 0%, #071d49 46%, var(--dark-1) 100%); padding-top: clamp(56px, 7vw, 88px); }
.foot .wrap { position: relative; z-index: 1; }
.foot__grid { display: grid; grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.foot__brand img { width: 260px; height: auto; }
.foot__tag { font-family: var(--mono); font-size: 13px; letter-spacing: .08em; color: var(--cyan-on-dark); margin-top: 18px; }
.foot__brand p:last-child { font-size: 14.5px; line-height: 1.8; margin-top: 12px; }
.foot h2 { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: .14em; color: rgba(255, 255, 255, .55); margin-bottom: 14px; }
.foot li { margin-bottom: 9px; }
.foot li a { font-size: 15.5px; color: #fff; transition: color .2s; }
.foot li a:hover { color: var(--cyan-on-dark); }
.foot__legal { margin-top: clamp(40px, 5vw, 64px); padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 13px; line-height: 1.85; color: rgba(255, 255, 255, .66); max-width: 54em; }
.foot__copy { font-size: 13.5px; margin-top: 16px; color: rgba(255, 255, 255, .8); }
.foot__giant { width: 100%; height: auto; margin-top: clamp(32px, 4vw, 56px); margin-bottom: -4.2%; opacity: .1; padding-inline: 24px; pointer-events: none; }
@media (max-width: 900px) { .foot__grid { grid-template-columns: 1fr 1fr; } .foot__brand { grid-column: 1 / -1; } .foot__brand img { width: 220px; } }
@media (max-width: 480px) { .foot__grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; } }

/* ==========================================================================
   產品獨立頁（products/*.html，由 tools/build_products.py 產生）
   ========================================================================== */
.gnav__links a[aria-current]:not(.btn)::after { transform: scaleX(1); }
.phero { padding-top: calc(var(--nav-h) + 26px); padding-bottom: clamp(52px, 6vw, 84px); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 14px; color: var(--ink-3); }
.crumbs li + li::before { content: "/"; margin-right: 10px; color: var(--line-strong); }
.crumbs a:hover { color: var(--blue-ink); }
.crumbs [aria-current] { color: var(--ink); }
.phero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; margin-top: clamp(28px, 4vw, 52px); }
.phero__title { font-size: clamp(28px, 3.7vw, 48px); font-weight: 500; line-height: 1.2; letter-spacing: -.02em; color: var(--ink); }
.phero__sub { font-size: clamp(16.5px, 1.4vw, 18.5px); line-height: 1.75; margin-top: 20px; max-width: 30em; }
.phero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.phero__stage { background: linear-gradient(180deg, #edf1f6 0%, #f6f8fb 100%); border-radius: var(--r-xl); padding: clamp(18px, 2.4vw, 30px); }
.js .phero__stage { animation: rise .9s .1s var(--ease) both; }
.phero__stage .browser { border-radius: 14px; }
.phero__stage .browser img { width: 100%; }
.phero__stage--photo { padding: 12px; }
.phero__stage--photo img { width: 100%; aspect-ratio: 4 / 3.1; object-fit: cover; object-position: center 60%; border-radius: 20px; }
.phero__stage--mock { padding: clamp(22px, 3vw, 40px); }
.phero__stage--mock .ticks { justify-content: center; margin-top: 4px; }
.mini--lg { margin: 0 0 18px; padding: 20px 20px 10px; box-shadow: var(--shadow-float); }
.mini--lg.mini--log li { font-size: 15.5px; padding: 13px 0; }
.phero__stage--mock .mini--lg:last-child { margin-bottom: 0; }
.pfacts { margin-top: clamp(40px, 5vw, 64px); max-width: none; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); }
.pfacts .num dd { font-size: clamp(26px, 2.8vw, 34px); }
.pfacts .num dd small { font-size: .5em; }

.pipe { counter-reset: pipe; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 14px 0 10px; }
.pipe li { counter-increment: pipe; display: flex; flex-direction: column; gap: 4px; background: var(--alt); border-radius: 10px; padding: 12px 14px; font-size: 15px; font-weight: 600; color: var(--ink); border-bottom: 0 !important; }
.pipe li::before { content: counter(pipe, decimal-leading-zero); font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--blue-ink); }
.pipe li:last-child { background: var(--ink); color: #fff; }
.pipe li:last-child::before { color: var(--cyan-on-dark); }

.frows { margin-top: clamp(40px, 5vw, 64px); }
.frow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.frow + .frow { margin-top: clamp(52px, 7vw, 92px); }
.frow:nth-child(even) .frow__text { order: 2; }
.frow h3 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 500; line-height: 1.32; letter-spacing: -.015em; color: var(--ink); text-wrap: balance; }
.frow p { margin-top: 12px; }
.shot--free img { aspect-ratio: auto; }
.frow .shot--free:not([data-ui]) img { aspect-ratio: 4 / 3; object-position: center 60%; }
.frow__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 460px; margin-inline: auto; }

.flist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; margin-top: clamp(32px, 4vw, 52px); }
.flist li { border-top: 1px solid var(--line-strong); padding: 24px 0 30px; }
.flist h3 { font-size: 20px; font-weight: 600; color: var(--ink); line-height: 1.4; }
.flist p { font-size: 16px; margin-top: 6px; max-width: 30em; }

.psteps { counter-reset: s; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: clamp(32px, 4vw, 52px); }
.psteps--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.psteps li { counter-increment: s; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-card); }
.psteps li::before { content: counter(s, decimal-leading-zero); display: inline-block; font-family: var(--mono); font-size: 13px; color: var(--ink); background: var(--cyan-softer); border: 1px solid var(--cyan-soft); border-radius: 999px; padding: 1px 11px; }
.psteps h3 { font-size: 20px; font-weight: 600; color: var(--ink); margin-top: 14px; line-height: 1.4; }
.psteps p { font-size: 15.5px; line-height: 1.7; margin-top: 6px; }

.pstack { margin-top: clamp(32px, 4vw, 52px); border-top: 1px solid var(--line-strong); }
.pstack div { display: grid; grid-template-columns: 10em minmax(0, 1fr); gap: 16px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line-strong); }
.pstack dt { font-size: 17px; font-weight: 600; color: var(--ink); }
.pstack dd { display: flex; flex-wrap: wrap; gap: 8px; }
.pstack dd span { font-size: 15px; font-weight: 500; color: var(--ink); background: #fff; border: 1px solid var(--line-strong); border-radius: 999px; padding: 5px 14px; }

.pdark .trust__grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; }
.pdark .trust__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pdark .trust__grid h3 { margin-top: 0; font-size: 21px; }

.sec--others { padding-block: clamp(48px, 6vw, 80px); }
.pnote { margin: 0 0 clamp(36px, 5vw, 56px); padding: 16px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); font-size: 14px; line-height: 1.75; color: var(--ink-2); }
.sec--others:not(.sec--alt) .pnote { background: var(--alt); }
.h2--sm { font-size: clamp(22px, 2.6vw, 30px); }
.others { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.others a { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 20px; transition: border-color .2s, transform .2s var(--ease), box-shadow .2s; }
.others a span { grid-column: 1; font-size: 13px; color: var(--ink-3); }
.others a b { grid-column: 1; font-size: 17px; font-weight: 600; color: var(--ink); line-height: 1.4; }
.others a i { grid-column: 2; grid-row: 1 / span 2; font-size: 20px; color: var(--blue); transition: transform .2s var(--ease); }
.others a:hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: var(--shadow-card); }
.others a:hover i { transform: translateX(3px); }

.pcloser { padding-block: clamp(72px, 9vw, 120px); text-align: center; }
.pcloser__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }

/* 首頁：卡片底部連結列、期貨策略橫幅卡 */
.card__links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: auto; padding-top: 6px; }
.card__links .card__link { margin-top: 0; padding-top: 0; }
.card--wide .card__links { margin-top: 22px; }
.card__link--sub { font-weight: 500; color: var(--ink-3); }
.card--full { grid-column: 1 / -1; }
.card__split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.card__split .card__link { margin-top: 20px; }
.card__split .mini { margin: 0; }

@media (max-width: 1040px) {
  .others { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .psteps--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .phero__grid { grid-template-columns: 1fr; gap: 32px; }
  .phero__title { font-size: clamp(27px, 7vw, 44px); }
  .frow { grid-template-columns: 1fr; gap: 22px; }
  .frow:nth-child(even) .frow__text { order: 0; }
  .card__split { grid-template-columns: 1fr; }
  .pdark .trust__grid--3 { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .pfacts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pfacts .num:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .flist { grid-template-columns: 1fr; }
  .psteps, .psteps--4 { grid-template-columns: 1fr; }
  .pstack div { grid-template-columns: 1fr; gap: 10px; }
  .pdark .trust__grid--2 { grid-template-columns: 1fr; }
  .others { grid-template-columns: 1fr; }
  .pipe { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- 進場動畫 ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .card[data-reveal].is-in, .js .wall figure[data-reveal].is-in { transition: opacity .7s var(--ease), transform .3s var(--ease), border-color .25s, box-shadow .25s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
