/* ============================================================
   駿騰智能 — 黑色系幾何漂浮版（HeroGeometric）
   夜黑 #030303／暖白 #F4F3F0／印泥朱紅 #C63F1F
   ============================================================ */

:root {
  color-scheme: dark;
  --paper: #030303;            /* 頁面底色（黑） */
  --wash: #0A0A0C;             /* 區塊底色 */
  --ink: #F4F3F0;              /* 主文字（暖白） */
  --graphite: #A6A4AD;         /* 次要文字 */
  --hairline: rgba(255, 255, 255, 0.12);
  --seal: #C63F1F;
  --seal-wash: rgba(198, 63, 31, 0.14);
  --serif: "Noto Serif TC", "Songti TC", serif;
  --sans: "Noto Sans TC", "PingFang TC", system-ui, sans-serif;
  --mono: "IBM Plex Mono", "Courier New", monospace;
  --nav-h: 64px;
  --measure: 1080px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(198, 63, 31, 0.4); color: #fff; }

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
.mono { font-family: var(--mono); font-size: 0.92em; letter-spacing: 0.01em; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid #E0644A;
  outline-offset: 3px;
  border-radius: 2px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px; left: 10px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--wash);
  border: 1px solid var(--seal);
  border-radius: 4px;
  transform: translateY(-200%);
  transition: transform 0.2s;
}
.skip-link:focus-visible { transform: none; }

/* ============ 動畫基元 ============
   html.js-anim 時由 GSAP 接手；否則退回 CSS 動畫 */
.rise, .reveal { opacity: 0; }
.mask { display: block; overflow: hidden; }
.line { display: block; }

html:not(.js-anim) .rise { animation: rise 0.7s var(--ease) forwards; }
html:not(.js-anim) .d1 { animation-delay: 0.08s; }
html:not(.js-anim) .d2 { animation-delay: 0.16s; }
html:not(.js-anim) .d3 { animation-delay: 0.24s; }
html:not(.js-anim) .d4 { animation-delay: 0.36s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

html:not(.js-anim) .reveal {
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }

/* ============ 導覽列 ============ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  background: rgba(3, 3, 3, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.nav.scrolled { border-bottom-color: var(--hairline); }
.nav-inner {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.seal {
  display: block;
  width: 36px; height: 36px;
  filter: drop-shadow(0 2px 12px rgba(198, 63, 31, 0.4));
  transition: transform 0.35s var(--ease), filter 0.35s;
  animation: stamp 0.5s var(--ease) 0.15s backwards;
}
.seal svg { display: block; }
@media (hover: hover) and (pointer: fine) {
  .brand:hover .seal {
    transform: scale(1.05);
    filter: drop-shadow(0 3px 16px rgba(198, 63, 31, 0.6));
  }
}
@keyframes stamp {
  0%   { opacity: 0; transform: scale(1.5); }
  65%  { opacity: 1; transform: scale(0.94); }
  100% { opacity: 1; transform: scale(1); }
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-name {
  font-weight: 900;
  font-size: 1.02rem;
  letter-spacing: 0.2em;
}
.brand-en {
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.34em;
  color: var(--graphite);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 0.92rem;
}
.nav-links a { color: var(--graphite); transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }
.nav-links a:not(.nav-cta) {
  background-image: linear-gradient(var(--seal), var(--seal));
  background-repeat: no-repeat;
  background-size: 0 1.5px;
  background-position: 0 100%;
  padding-bottom: 3px;
  transition: color 0.2s, background-size 0.3s var(--ease);
}
.nav-links a:not(.nav-cta):hover { background-size: 100% 1.5px; }
.nav-cta {
  padding: 8px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper) !important;
  transition: background 0.25s, color 0.25s;
}
.nav-cta:hover { background: var(--seal); color: #fff !important; }

/* ---- 下拉選單（Stripe 式） ---- */
.nav-item { position: relative; }
.nav-drop-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  color: var(--graphite);
  padding-bottom: 3px;
  transition: color 0.2s;
}
.nav-item:hover .nav-drop-btn,
.nav-item.open .nav-drop-btn,
.nav-item:focus-within .nav-drop-btn { color: var(--ink); }
.nav-drop-btn .caret { transition: transform 0.25s var(--ease); }
.nav-item:hover .caret,
.nav-item.open .caret,
.nav-item:focus-within .caret { transform: rotate(180deg); }

.nav-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  min-width: 316px;
  padding: 14px;
  background: rgba(10, 10, 12, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(8px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
/* 補橋：游標穿過選單與面板間的空隙不會關閉 */
.nav-menu::before {
  content: "";
  position: absolute;
  top: -14px; left: 0; right: 0;
  height: 14px;
}
.nav-item:hover .nav-menu,
.nav-item.open .nav-menu,
.nav-item:focus-within .nav-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.menu-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: var(--graphite);
  margin: 4px 12px 8px;
}
.nav-links .nav-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  background-image: none;
  transition: background-color 0.2s;
}
.nav-links .nav-menu a:hover { background-color: rgba(255, 255, 255, 0.05); }
.menu-title {
  display: block;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.92rem;
  line-height: 1.4;
}
.nav-menu a:hover .menu-title { color: #E0644A; }
.menu-desc {
  display: block;
  color: var(--graphite);
  font-size: 0.8rem;
  line-height: 1.55;
  margin-top: 1px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 10px 6px;
}
.nav-toggle span {
  width: 22px; height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }

/* ============ 全頁環境背景：固定在視窗、捲到哪都在 ============ */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
/* 內容墊在環境層之上 */
main, .footer {
  position: relative;
  z-index: 1;
}
.amb { position: absolute; display: block; }
.amb-pill {
  display: block;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.07);
  animation: amb-drift 9s ease-in-out infinite alternate;
}
.a1 { right: -6%; top: 16%; transform: rotate(-14deg); }
.a1 .amb-pill { width: 480px; height: 110px; background: linear-gradient(90deg, rgba(99, 102, 241, 0.07), transparent); }
.a2 { left: -5%; top: 44%; transform: rotate(10deg); }
.a2 .amb-pill { width: 560px; height: 130px; background: linear-gradient(90deg, rgba(244, 63, 94, 0.06), transparent); animation-duration: 11s; animation-delay: -3s; }
.a3 { right: -8%; top: 66%; transform: rotate(-18deg); }
.a3 .amb-pill { width: 420px; height: 100px; background: linear-gradient(90deg, rgba(139, 92, 246, 0.07), transparent); animation-duration: 8s; animation-delay: -5s; }
.a4 { left: 8%; top: 86%; transform: rotate(8deg); }
.a4 .amb-pill { width: 300px; height: 80px; background: linear-gradient(90deg, rgba(245, 158, 11, 0.06), transparent); animation-duration: 10s; animation-delay: -7s; }
@keyframes amb-drift {
  from { transform: translateY(-16px) rotate(-1.5deg); }
  to   { transform: translateY(16px) rotate(1.5deg); }
}

/* ============ Hero：幾何漂浮 ============ */
.hero {
  position: relative;
  max-width: var(--measure);
  margin: 0 auto;
  padding: calc(var(--nav-h) + 96px) 24px 40px;
  text-align: center;
}
.hero > * { position: relative; z-index: 1; }

/* 幾何背景：滿版、裁切 */
.geo-bg {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.geo-haze {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.06), transparent 45%, rgba(244, 63, 94, 0.06));
  filter: blur(50px);
}
.geo-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--paper) 0%, transparent 26%, transparent 68%, rgba(3, 3, 3, 0.85) 100%);
}
.geo-shape { position: absolute; display: block; }
.geo-pill {
  position: relative;
  display: block;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  box-shadow: 0 8px 32px 0 rgba(255, 255, 255, 0.1);
}
.geo-pill::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.2), transparent 70%);
}
.g1 { left: -8%; top: 22%; transform: rotate(12deg); }
.g1 .geo-pill { width: 600px; height: 140px; background: linear-gradient(90deg, rgba(99, 102, 241, 0.15), transparent); }
.g2 { right: -4%; top: 72%; transform: rotate(-15deg); }
.g2 .geo-pill { width: 500px; height: 120px; background: linear-gradient(90deg, rgba(244, 63, 94, 0.15), transparent); }
.g3 { left: 8%; bottom: 6%; transform: rotate(-8deg); }
.g3 .geo-pill { width: 300px; height: 80px; background: linear-gradient(90deg, rgba(139, 92, 246, 0.15), transparent); }
.g4 { right: 18%; top: 12%; transform: rotate(20deg); }
.g4 .geo-pill { width: 200px; height: 60px; background: linear-gradient(90deg, rgba(245, 158, 11, 0.15), transparent); }
.g5 { left: 24%; top: 7%; transform: rotate(-25deg); }
.g5 .geo-pill { width: 150px; height: 40px; background: linear-gradient(90deg, rgba(6, 182, 212, 0.15), transparent); }
/* GSAP 接手時初始隱藏，避免閃現 */
html.js-anim .geo-shape { opacity: 0; }

/* 徽章 */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 17px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.6);
}
.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--seal);
  flex: none;
}

.hero-title {
  margin-top: 30px;
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(2.05rem, 8.8vw, 4.9rem);
  line-height: 1.28;
  letter-spacing: 0.015em;
  text-wrap: balance;
}
.hero-title .line {
  background: linear-gradient(180deg, #FFFFFF, rgba(255, 255, 255, 0.8));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-title .line-grad {
  background: linear-gradient(90deg, #A5B4FC, rgba(255, 255, 255, 0.92) 50%, #FDA4AF);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.red-dot { -webkit-text-fill-color: var(--seal); color: var(--seal); }

.hero-lead {
  margin: 26px auto 0;
  max-width: 580px;
  color: rgba(255, 255, 255, 0.55);
  font-size: clamp(1rem, 2vw, 1.1rem);
  font-weight: 300;
  letter-spacing: 0.02em;
  text-wrap: balance;
}
.hero-actions {
  margin-top: 38px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.98rem;
  letter-spacing: 0.06em;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); }
}
.btn-ink {
  background: var(--ink);
  color: var(--paper);
}
.btn-ink:hover { background: var(--seal); color: #fff; }
.btn-line {
  border: 1px solid var(--hairline);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.02);
}
.btn-line:hover { border-color: rgba(255, 255, 255, 0.45); }
.btn-lg { padding: 16px 44px; font-size: 1.05rem; }

/* ============ 產品畫面（保持亮色，浮在暗底上） ============ */
.product-window {
  max-width: 920px;
  margin: 72px auto 0;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: #FFFFFF;
  color: #1C1B18;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05), 0 30px 90px -20px rgba(0, 0, 0, 0.85);
  overflow: hidden;
}
.pw-chrome {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 16px;
  border-bottom: 1px solid #E5E3DC;
  background: #FDFDFB;
}
.pw-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #E5E3DC;
}
.pw-url {
  margin: 0 auto;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: #6E6B64;
  letter-spacing: 0.08em;
}
.pw-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-bottom: 1px solid #E5E3DC;
  font-size: 0.8rem;
  flex-wrap: wrap;
}
.pw-search {
  flex: 1 1 180px;
  min-width: 150px;
  padding: 7px 13px;
  border: 1px solid #E5E3DC;
  border-radius: 6px;
  color: #A6A29A;
}
.pw-filter {
  padding: 6px 13px;
  border: 1px solid #E5E3DC;
  border-radius: 6px;
  color: #6E6B64;
  white-space: nowrap;
}
.pw-filter.is-due {
  color: #C63F1F;
  border-color: rgba(198, 63, 31, 0.35);
  background: #FBEFEB;
}
.pw-app { position: relative; }
.demo-cursor {
  position: absolute;
  top: 0; left: 0;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(28, 27, 24, 0.85);
  border: 2px solid #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  z-index: 5;
  pointer-events: none;
  opacity: 0;
}
.pw-filter.is-on {
  color: #C63F1F;
  border-color: #C63F1F;
  background: #FBEFEB;
  box-shadow: 0 0 0 3px rgba(198, 63, 31, 0.15);
}
.pw-roles .on {
  background: #1C1B18;
  color: #FDFDFB;
}
.pw-roles .off {
  background: none;
  color: #6E6B64;
}
.pw-roles {
  margin-left: auto;
  display: flex;
  gap: 4px;
  font-style: normal;
}
.pw-print {
  padding: 6px 14px;
  border-radius: 6px;
  background: #1C1B18;
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

/* 打字填入 demo：正在輸入的格子 */
.pw-table td.typing {
  background: rgba(198, 63, 31, 0.07);
}
.pw-table td.typing::after {
  content: "▏";
  color: #C63F1F;
  font-weight: 700;
  animation: caret-blink 0.7s steps(1) infinite;
}
@keyframes caret-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* 發票單據（demo 印出） */
.pw-receipt {
  position: absolute;
  top: 58px;
  right: 34px;
  width: 212px;
  z-index: 4;
  transform: rotate(-1.5deg);
  filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.3));
  pointer-events: none;
  opacity: 0;
}
.r-paper {
  position: relative;
  background: #FFFDF6;
  color: #1C1B18;
  padding: 16px 16px 20px;
  font-family: var(--mono);
}
.r-title {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-align: center;
  font-weight: 500;
}
.r-period {
  font-size: 10px;
  text-align: center;
  color: #6E6B64;
  margin-top: 2px;
}
.r-no {
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.04em;
  margin: 8px 0 10px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #D8D4C8;
}
.r-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  margin-top: 6px;
  color: #47443E;
}
.r-stamp {
  position: absolute;
  right: 10px;
  bottom: 12px;
  padding: 5px 10px;
  background: rgba(198, 63, 31, 0.92);
  color: #fff;
  font-family: var(--serif);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.22em;
  border-radius: 6px;
  transform: rotate(-10deg);
  opacity: 0;
}
.r-zig {
  height: 8px;
  background:
    linear-gradient(-45deg, #FFFDF6 5.66px, transparent 0),
    linear-gradient(45deg, #FFFDF6 5.66px, transparent 0);
  background-size: 16px 16px;
  background-repeat: repeat-x;
}

/* 自動化標籤與完成通知（demo） */
.auto-tag {
  position: absolute;
  top: 0; left: 0;
  z-index: 6;
  padding: 4px 10px;
  border-radius: 999px;
  background: #C63F1F;
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(198, 63, 31, 0.4);
  pointer-events: none;
  opacity: 0;
}
.pw-toast {
  position: absolute;
  right: 14px;
  bottom: 40px;
  z-index: 6;
  padding: 9px 16px;
  border-radius: 8px;
  background: #1C1B18;
  color: #fff;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  opacity: 0;
}
.pw-roles b, .pw-roles i {
  font-style: normal;
  font-weight: 500;
  padding: 5px 11px;
  border-radius: 6px;
  color: #6E6B64;
}
.pw-roles b { background: #1C1B18; color: #FDFDFB; }
.pw-scroll { overflow-x: auto; }
.pw-table {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
  font-size: 0.8rem;
}
.pw-table th {
  text-align: left;
  font-weight: 500;
  color: #6E6B64;
  padding: 9px 18px;
  border-bottom: 1px solid #E5E3DC;
  white-space: nowrap;
}
.pw-table td {
  padding: 11px 18px;
  border-bottom: 1px solid #F0EEE8;
  white-space: nowrap;
}
.pw-table td:first-child,
.pw-table td:nth-child(4),
.pw-table td:last-child { font-family: var(--mono); font-size: 0.76rem; }
.pw-table tbody tr { transition: background 0.15s; }
.pw-table tbody tr:hover { background: #FAFAF8; }
.pw-table tr.is-due td:first-child { box-shadow: inset 2.5px 0 0 #C63F1F; }
.chip {
  display: inline-block;
  padding: 2.5px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-family: var(--sans);
  white-space: nowrap;
}
.chip-ok {
  color: #1C1B18;
  border: 1px solid #E5E3DC;
  background: #F5F4EF;
}
.chip-due {
  color: #C63F1F;
  border: 1px solid rgba(198, 63, 31, 0.35);
  background: #FBEFEB;
}
.pw-status {
  padding: 9px 18px;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: #6E6B64;
  letter-spacing: 0.06em;
}

/* ============ 數據列 ============ */
.stats {
  max-width: var(--measure);
  margin: 88px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 26px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.5);
}
.stat + .stat { border-left: 1px solid var(--hairline); }
.stat-num {
  font-family: var(--mono);
  font-size: 2rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.stat-unit {
  margin-left: 4px;
  font-size: 0.88rem;
  color: var(--graphite);
}
.stat p {
  margin-top: 4px;
  font-size: 0.85rem;
  color: var(--graphite);
}

/* ============ 區塊通用 ============ */
.section {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 130px 24px 0;
}
.section-wash {
  max-width: none;
  margin-top: 130px;
  padding: 100px 24px;
  background:
    radial-gradient(ellipse 60% 50% at 80% 0%, rgba(99, 102, 241, 0.06), transparent),
    var(--wash);
}
.section-wash > * {
  max-width: calc(var(--measure) - 48px);
  margin-left: auto;
  margin-right: auto;
}
.sec-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  color: var(--graphite);
}
.sec-label::before {
  content: "";
  width: 9px; height: 9px;
  background: var(--seal);
  border-radius: 2px;
  transform: rotate(-2deg);
}
.sec-title {
  margin-top: 16px;
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  line-height: 1.35;
  letter-spacing: 0.02em;
  text-wrap: balance;
}
.sec-head { margin-bottom: 56px; }

/* ============ 理念與產品 ============ */
.thesis { max-width: 780px; }
.thesis-lead {
  color: var(--graphite);
  font-size: 1.05rem;
}
.thesis-core {
  margin-top: 12px;
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(1.5rem, 3.8vw, 2.35rem);
  line-height: 1.6;
  letter-spacing: 0.02em;
  text-wrap: balance;
  background: linear-gradient(90deg, #A5B4FC, rgba(255, 255, 255, 0.92) 55%, #FDA4AF);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.thesis-duo {
  margin-top: 40px;
  padding: 24px 30px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--seal);
  border-radius: 0 8px 8px 0;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  line-height: 2.1;
}
.thesis-duo p:first-child { color: var(--graphite); }
.thesis-duo .is-strong { color: var(--ink); font-weight: 700; }
.u-first {
  color: #E0644A;
  background-image: linear-gradient(rgba(198, 63, 31, 0.55), rgba(198, 63, 31, 0.55));
  background-repeat: no-repeat;
  background-size: 100% 2px;
  background-position: 0 100%;
  padding-bottom: 2px;
}

.products { margin-top: 76px; }
.products-intro {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  margin-bottom: 26px;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.p-card {
  padding: 28px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  transition: transform 0.35s var(--ease), border-color 0.35s, background 0.35s;
}
@media (hover: hover) and (pointer: fine) {
  .p-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.05);
  }
}
.p-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.p-card h3 {
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.p-chip {
  flex: none;
  padding: 3px 12px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.p-chip.is-live {
  color: var(--ink);
  border: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.06);
}
.p-chip.is-plan {
  color: var(--graphite);
  border: 1px dashed rgba(255, 255, 255, 0.3);
}
.p-card > p {
  margin-top: 10px;
  color: var(--graphite);
  font-size: 0.93rem;
  max-width: 44ch;
}

/* ============ 服務項目 ============ */
.service-row {
  display: grid;
  grid-template-columns: minmax(200px, 5fr) 7fr;
  gap: 20px 56px;
  padding: 34px 0;
  border-top: 1px solid var(--hairline);
}
.service-row:last-child { border-bottom: 1px solid var(--hairline); }
.service-row h3 {
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.service-row p { color: var(--graphite); max-width: 60ch; }
.row-tags {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
}

/* ============ 精選案例 ============ */
.case-grid {
  display: grid;
  grid-template-columns: 7fr 4fr;
  gap: 64px;
  align-items: start;
}
.case-lead {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  line-height: 1.8;
  letter-spacing: 0.02em;
}
.ba-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.ba-col {
  padding: 24px 26px;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}
.ba-col.is-after {
  background: rgba(198, 63, 31, 0.06);
  border-color: rgba(198, 63, 31, 0.32);
}
.ba-col h4 {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--graphite);
}
.ba-col.is-after h4 { color: #E0644A; }
.ba-col ul {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}
.ba-col li {
  position: relative;
  padding-left: 22px;
  font-size: 0.92rem;
  color: var(--graphite);
  line-height: 1.7;
}
.ba-col li::before {
  content: "✕";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.8em;
  line-height: 2.1;
  color: rgba(255, 255, 255, 0.3);
}
.ba-col.is-after li { color: var(--ink); }
.ba-col.is-after li::before {
  content: "";
  width: 9px; height: 9px;
  top: 0.55em;
  background: var(--seal);
  border-radius: 2px;
  transform: rotate(-2deg);
}
.principle {
  margin-top: 44px;
  padding: 26px 30px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--seal);
  border-radius: 0 8px 8px 0;
}
.principle p {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.08rem;
  line-height: 1.9;
}
.principle cite {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-size: 0.82rem;
  color: var(--graphite);
}
.case-facts {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 8px 26px;
}
.case-facts div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  padding: 15px 0;
}
.case-facts div + div { border-top: 1px solid var(--hairline); }
.case-facts dt {
  font-size: 0.82rem;
  color: var(--graphite);
  letter-spacing: 0.12em;
  white-space: nowrap;
}
.case-facts dd {
  font-size: 0.9rem;
  font-weight: 500;
  text-align: right;
}
.case-facts .chip-ok {
  color: var(--ink);
  border-color: var(--hairline);
  background: rgba(255, 255, 255, 0.06);
}

/* 案例二：春日部 App */
.case2 {
  margin-top: 72px;
  padding: 34px 36px;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
}
.case2-head {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.case2-head h3 {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  letter-spacing: 0.02em;
}
.case2-lead {
  margin-top: 12px;
  color: var(--graphite);
  max-width: 66ch;
}
.case2-points {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.case2-points li {
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  font-size: 0.9rem;
  color: var(--graphite);
  line-height: 1.75;
}
.case2-points strong {
  display: block;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 4px;
}
.case2-facts {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
  font-size: 0.74rem;
  color: var(--graphite);
  letter-spacing: 0.06em;
}

/* ============ 開發流程 ============ */
.steps { counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 24px;
  padding: 30px 0;
  border-top: 1px solid var(--hairline);
}
.step:last-child { border-bottom: 1px solid var(--hairline); }
.step-num {
  font-family: var(--mono);
  font-size: 1.5rem;
  color: #E0644A;
  line-height: 1.4;
}
.step h3 {
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.step p {
  margin-top: 2px;
  color: var(--graphite);
  font-size: 0.95rem;
  max-width: 56ch;
}

/* ============ 聯絡 ============ */
.contact {
  padding-bottom: 140px;
  text-align: center;
  background: radial-gradient(ellipse 55% 45% at 50% 115%, rgba(99, 102, 241, 0.1), transparent);
}
.contact .sec-label { justify-content: center; }
.contact-title {
  margin-top: 18px;
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(1.9rem, 5vw, 3.2rem);
  line-height: 1.4;
  letter-spacing: 0.02em;
  text-wrap: balance;
}
.contact-lead {
  margin: 18px auto 40px;
  color: var(--graphite);
  max-width: 34em;
  text-wrap: balance;
}
.contact-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.contact-mail {
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--graphite);
  letter-spacing: 0.05em;
}

/* ============ Footer ============ */
.footer { border-top: 1px solid var(--hairline); }
.footer-inner {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 26px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--graphite);
}
.footer-inner .mono { font-size: 0.78rem; }
.footer nav { display: flex; gap: 24px; }
.footer a:hover { color: #E0644A; }

/* ============ 響應式 ============ */
@media (max-width: 880px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .case-grid { grid-template-columns: 1fr; gap: 44px; }
  .ba-grid { grid-template-columns: 1fr; }
  .case2-points { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 1fr; gap: 10px; padding: 28px 0; }
}

@media (max-width: 680px) {
  .nav-toggle { display: flex; z-index: 110; }
  .nav-links {
    /* 注意：.nav 的 backdrop-filter 會把 fixed 定位改成以導覽列為基準，
       不能用 inset:0，要明確給滿版寬高 */
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 4px;
    padding: calc(var(--nav-h) + 20px) 32px 48px;
    font-size: 1rem;
    background: #030303;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    overflow-y: auto;
  }
  .nav-links.open { opacity: 1; pointer-events: auto; }
  /* 手機：下拉群組攤平成分組清單。
     選擇器要壓過桌面的 .nav-item.open .nav-menu，避免殘留的 open 狀態位移 */
  .nav-drop-btn { display: none; }
  .nav-links .nav-menu,
  .nav-item.open .nav-menu,
  .nav-item:focus-within .nav-menu {
    position: static;
    min-width: 0;
    padding: 0 0 20px;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    transition: none;
  }
  .nav-links .nav-menu::before { display: none; }
  .menu-label { margin: 0 0 6px; }
  .nav-links .nav-menu a { padding: 10px 0; }
  .nav-links .nav-menu a:hover { background-color: transparent; }
  .nav-cta { align-self: center; margin-top: 8px; padding: 12px 36px; }
  .brand-en { display: none; }
  .hero { padding-top: calc(var(--nav-h) + 64px); }
  .product-window { margin-top: 52px; }
  .g1 .geo-pill { width: 420px; height: 100px; }
  .g2 .geo-pill { width: 360px; height: 88px; }
  .stats { grid-template-columns: 1fr; margin-top: 64px; }
  .stat + .stat { border-left: 0; }
  .section { padding-top: 96px; }
  .section-wash { margin-top: 96px; padding: 72px 24px; }
  .sec-head { margin-bottom: 40px; }
  .step { grid-template-columns: 48px 1fr; gap: 16px; }
  .contact { padding-bottom: 100px; }
}

/* ============ 減少動態偏好 ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
  .rise, .reveal { opacity: 1; transform: none; }
  html.js-anim .geo-shape { opacity: 1; }
}
