/* ============================================================
   香港真海巍動力科技 — 官網設計系統
   深海藍金融科技 · 暗色調 · 能量綠點綴
   ============================================================ */

:root {
  /* —— 背景與表面（清爽淺色：白·灰·藍·綠） —— */
  --bg:        #f5f8fb;
  --bg-1:      #eef3f8;
  --bg-2:      #e7eef5;
  --surface:   #ffffff;
  --surface-2: #f3f8fb;
  --border:    rgba(40, 90, 140, 0.12);
  --border-2:  rgba(40, 110, 160, 0.24);

  /* —— 文字 —— */
  --text:      #102434;
  --text-dim:  #4a5f72;
  --text-faint:#8295a6;

  /* —— 品牌 / 強調色 (清潔能源藍綠) —— */
  --azure:  oklch(0.55 0.16 248);   /* 海藍 結構主色 */
  --cyan:   oklch(0.62 0.12 205);   /* 清能青 連結/光暈 */
  --green:  oklch(0.62 0.14 158);   /* 能量綠 增長/綠色 */
  --azure-soft: oklch(0.55 0.16 248 / 0.10);
  --cyan-soft:  oklch(0.62 0.12 205 / 0.12);
  --green-soft: oklch(0.62 0.14 158 / 0.12);

  /* —— 柔和陰影（淺色主題的縱深） —— */
  --shadow:    0 1px 2px rgba(16, 40, 64, 0.04), 0 8px 24px -12px rgba(16, 50, 80, 0.16);
  --shadow-lg: 0 2px 4px rgba(16, 40, 64, 0.05), 0 24px 50px -22px rgba(16, 50, 80, 0.26);

  /* —— 排版 —— */
  --f-cjk: "Noto Sans TC", -apple-system, "PingFang TC", "Microsoft JhengHei", sans-serif;
  --f-lat: "Space Grotesk", var(--f-cjk);

  --maxw: 1200px;
  --gut: clamp(20px, 5vw, 64px);
  --radius: 14px;
  --radius-lg: 22px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--f-cjk);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  letter-spacing: 0.01em;
}

/* 全局縱深背景（清爽藍綠淺洗） */
body::before {
  content: "";
  position: fixed; inset: 0;
  z-index: -2;
  background:
    radial-gradient(1100px 720px at 80% -10%, oklch(0.62 0.12 205 / 0.16), transparent 60%),
    radial-gradient(960px 640px at 4% 8%, oklch(0.62 0.14 158 / 0.12), transparent 58%),
    radial-gradient(900px 700px at 50% 110%, oklch(0.55 0.16 248 / 0.08), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 38%, var(--bg-1) 100%);
}
/* 細網格紋理 */
body::after {
  content: "";
  position: fixed; inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(40,100,150,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(40,100,150,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 35%, transparent 78%);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* —— 通用佈局 —— */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gut); }
section { position: relative; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-lat);
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 22px;
}
.eyebrow .num {
  font-variant-numeric: tabular-nums;
  color: var(--text-faint);
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

h1, h2, h3 { font-weight: 600; line-height: 1.18; letter-spacing: -0.01em; text-wrap: balance; }
.sec-title {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.22;
  max-width: 19ch;
  margin-bottom: 20px;
}
.sec-intro {
  color: var(--text-dim);
  font-size: clamp(15px, 1.5vw, 18px);
  max-width: 56ch;
  text-wrap: pretty;
}

.section-pad { padding-block: clamp(72px, 11vw, 132px); }

/* 強調漸層文字 */
.grad {
  background: linear-gradient(100deg, var(--cyan), var(--green) 60%, var(--azure));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* —— 按鈕 —— */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-cjk); font-size: 15px; font-weight: 500;
  padding: 14px 26px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .25s cubic-bezier(.2,.7,.3,1), box-shadow .25s, background .25s, border-color .25s;
  white-space: nowrap;
}
.btn .arr { transition: transform .25s; }
.btn:hover .arr { transform: translateX(4px); }
.btn-primary {
  background: linear-gradient(100deg, var(--azure), var(--green));
  color: #fff; font-weight: 600;
  box-shadow: 0 10px 26px -10px oklch(0.58 0.15 210 / 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 38px -12px oklch(0.58 0.15 210 / 0.7); }
.btn-ghost {
  background: #fff;
  border-color: var(--border-2); color: var(--text);
  box-shadow: var(--shadow);
}
.btn-ghost:hover { border-color: var(--azure); transform: translateY(-2px); background: var(--cyan-soft); }

/* ============================================================
   導航
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .35s, border-color .35s, backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom-color: var(--border);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 34px; width: auto; display: block; }
.footer-logo { height: 42px; }
.brand .mark {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  position: relative;
  background:
    radial-gradient(circle at 30% 30%, oklch(0.80 0.13 160 / 0.9), transparent 60%),
    linear-gradient(135deg, var(--azure), oklch(0.80 0.13 205));
  box-shadow: 0 6px 18px -6px oklch(0.70 0.15 220 / 0.7), inset 0 0 0 1px rgba(255,255,255,0.18);
}
.brand .mark::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, transparent 38%, rgba(4,12,22,0.55) 39%, transparent 42%);
}
.brand .b-txt { line-height: 1.1; }
.brand .b-cn { font-size: 16px; font-weight: 600; letter-spacing: 0.04em; }
.brand .b-en {
  font-family: var(--f-lat); font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--text-faint);
}

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: 14px; color: var(--text-dim);
  padding: 8px 13px; border-radius: 8px;
  transition: color .2s, background .2s; position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 2px; height: 2px;
  border-radius: 2px; background: linear-gradient(90deg, var(--cyan), var(--green));
}
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-cta .btn { padding: 10px 20px; font-size: 14px; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: .3s; }

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(245,248,251,0.0) 0%, transparent 55%, rgba(245,248,251,0.85) 100%);
}
.hero .wrap { position: relative; z-index: 2; padding-top: 96px; padding-bottom: 56px; width: 100%; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-lat); font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-dim);
  padding: 7px 15px; border-radius: 999px;
  border: 1px solid var(--border-2); background: rgba(255,255,255,0.7); box-shadow: var(--shadow);
  margin-bottom: 30px; white-space: nowrap; max-width: 100%;
}
.hero-tag .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); }
.hero h1 {
  font-size: clamp(34px, 6vw, 72px);
  line-height: 1.12; letter-spacing: -0.02em;
  max-width: 17ch; margin-bottom: 28px;
}
.hero .sub {
  font-size: clamp(16px, 1.7vw, 20px); color: var(--text-dim);
  max-width: 54ch; line-height: 1.75; margin-bottom: 40px; text-wrap: pretty;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 64px; }

.hero-stats {
  display: flex; flex-wrap: wrap; gap: clamp(28px, 5vw, 72px);
  padding-top: 34px; border-top: 1px solid var(--border);
}
.hero-stats .stat .k {
  font-family: var(--f-lat); font-size: clamp(28px, 3.4vw, 42px); font-weight: 600;
  font-variant-numeric: tabular-nums; line-height: 1;
  background: linear-gradient(120deg, var(--azure), var(--green));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-stats .stat .k .u { font-size: 0.5em; margin-left: 3px; -webkit-text-fill-color: var(--text-dim); }
.hero-stats .stat .l { font-size: 13.5px; color: var(--text-faint); margin-top: 8px; letter-spacing: 0.04em; }

.scroll-hint {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--f-lat); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-faint);
}
.scroll-hint .line { width: 1px; height: 40px; background: linear-gradient(var(--cyan), transparent); position: relative; overflow: hidden; }
.scroll-hint .line::after { content: ""; position: absolute; top: -40%; left: 0; width: 100%; height: 40%; background: var(--cyan); animation: scrolldot 2s infinite; }
@keyframes scrolldot { 0% { top: -40%; } 60%,100% { top: 100%; } }

/* ============================================================
   Reveal 動畫
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.7,.3,1), transform .8s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   公司簡介
   ============================================================ */
.about-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.about-tags .tag {
  font-family: var(--f-lat); font-size: 13px; letter-spacing: 0.04em;
  padding: 9px 16px; border-radius: 999px; color: var(--text-dim);
  border: 1px solid var(--border); background: var(--surface);
}
.about-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.about-copy p { color: var(--text-dim); font-size: clamp(15px,1.5vw,17.5px); margin-bottom: 20px; text-wrap: pretty; }
.about-copy p strong { color: var(--text); font-weight: 500; }

.about-visual {
  position: relative; aspect-ratio: 4/3.4; border-radius: var(--radius-lg);
  border: 1px solid var(--border); overflow: hidden; box-shadow: var(--shadow-lg);
  background:
    radial-gradient(120% 120% at 80% 10%, oklch(0.62 0.12 205 / 0.20), transparent 55%),
    radial-gradient(120% 120% at 10% 90%, oklch(0.62 0.14 158 / 0.16), transparent 55%),
    #ffffff;
  display: grid; place-items: center;
}
.about-visual .orbit { position: absolute; inset: 0; }
.about-visual .ring { position: absolute; top: 50%; left: 50%; border: 1px solid var(--border-2); border-radius: 50%; transform: translate(-50%,-50%); }
.about-visual .ring.r1 { width: 46%; aspect-ratio: 1; }
.about-visual .ring.r2 { width: 70%; aspect-ratio: 1; border-style: dashed; opacity: .6; }
.about-visual .ring.r3 { width: 94%; aspect-ratio: 1; opacity: .4; }
.about-visual .core {
  width: 32%; aspect-ratio: 1; border-radius: 50%; position: relative; z-index: 2;
  background: radial-gradient(circle at 35% 30%, oklch(0.80 0.13 160 / 0.95), oklch(0.70 0.15 245) 70%);
  box-shadow: 0 0 60px -8px oklch(0.80 0.13 195 / 0.8), inset 0 0 0 1px rgba(255,255,255,0.2);
  animation: pulse 5s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.about-visual .sat { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 14px var(--cyan); }
.about-visual .ph-label {
  position: absolute; bottom: 14px; left: 14px;
  font-family: var(--f-lat); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint);
}

/* ============================================================
   通用區塊頭
   ============================================================ */
.sec-head { margin-bottom: clamp(40px, 6vw, 64px); max-width: 760px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .sec-title { max-width: none; }
.sec-head.center .eyebrow { justify-content: center; }
.sec-head.center .eyebrow::before { display: none; }

/* ============================================================
   市場機會 — 三點
   ============================================================ */
.opp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.opp-card {
  position: relative; padding: 34px 30px 32px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border); overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .35s, border-color .35s, background .35s, box-shadow .35s;
}
.opp-card:hover { transform: translateY(-5px); border-color: var(--border-2); background: var(--surface); box-shadow: var(--shadow-lg); }
.opp-card .idx {
  font-family: var(--f-lat); font-size: 13px; letter-spacing: 0.1em; color: var(--cyan);
  font-variant-numeric: tabular-nums; margin-bottom: 26px;
  display: flex; align-items: center; gap: 10px;
}
.opp-card .idx::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.opp-card h3 { font-size: 20px; margin-bottom: 14px; line-height: 1.4; }
.opp-card p { color: var(--text-dim); font-size: 14.5px; line-height: 1.7; }
.opp-card .glow { position: absolute; top: -40px; right: -40px; width: 140px; height: 140px; border-radius: 50%; background: var(--cyan-soft); filter: blur(34px); opacity: 0; transition: opacity .35s; }
.opp-card:hover .glow { opacity: 1; }

/* ============================================================
   技術優勢 — 五卡
   ============================================================ */
.tech-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.tech-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 30px 28px; display: flex; flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform .35s, border-color .35s, background .35s, box-shadow .35s;
  position: relative; overflow: hidden;
}
.tech-card:hover { transform: translateY(-5px); border-color: var(--border-2); background: var(--surface); box-shadow: var(--shadow-lg); }
.tech-card .ic {
  width: 50px; height: 50px; border-radius: 13px; flex: none; margin-bottom: 22px;
  display: grid; place-items: center;
  background: var(--cyan-soft); border: 1px solid var(--border-2);
  color: var(--cyan);
}
.tech-card .ic svg { width: 24px; height: 24px; }
.tech-card h3 { font-size: 19px; margin-bottom: 12px; }
.tech-card p { color: var(--text-dim); font-size: 14.5px; line-height: 1.7; }
/* 12欄分佈: 前兩張各佔 4(=3卡一行的兩張更寬)，這裡做 3+3 → 用 span */
.tech-card.feat { grid-column: span 6; }
.tech-card.feat .ic { background: var(--green-soft); border-color: oklch(0.80 0.13 160 / 0.3); color: var(--green); }
.tech-card.std { grid-column: span 4; }
.tech-card.half { grid-column: span 6; }

/* ============================================================
   商業模式 — 四模式 (timeline 流向)
   ============================================================ */
.model-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.model-card {
  display: flex; gap: 22px; padding: 30px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform .35s, border-color .35s, background .35s, box-shadow .35s;
}
.model-card:hover { transform: translateY(-4px); border-color: var(--border-2); background: var(--surface); box-shadow: var(--shadow-lg); }
.model-card .no {
  font-family: var(--f-lat); font-size: 30px; font-weight: 600; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.2px var(--border-2); flex: none;
  font-variant-numeric: tabular-nums;
}
.model-card:hover .no { -webkit-text-stroke: 1.2px var(--cyan); }
.model-card h3 { font-size: 19px; margin-bottom: 10px; }
.model-card p { color: var(--text-dim); font-size: 14.5px; line-height: 1.7; }

/* ============================================================
   項目與案例 — 兩個重磅案例
   ============================================================ */
.cases { display: grid; gap: 22px; }
.case {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,4vw,56px); align-items: center;
  padding: clamp(34px, 4vw, 52px); border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #ffffff, var(--surface-2));
  border: 1px solid var(--border); position: relative; overflow: hidden;
  box-shadow: var(--shadow);
}
.case::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(var(--cyan), var(--green));
}
.case .tag {
  font-family: var(--f-lat); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 18px; display: inline-block;
}
.case h3 { font-size: clamp(22px, 2.4vw, 30px); margin-bottom: 20px; line-height: 1.3; }
.case p { color: var(--text-dim); font-size: 15px; line-height: 1.8; text-wrap: pretty; }
.case .metric {
  border-top: 1px solid var(--border); margin-top: 26px; padding-top: 24px;
}
.case-media { aspect-ratio: 4 / 3; position: relative; }
.case-content { display: flex; flex-direction: column; justify-content: center; }
.case.alt .case-media { order: 2; }
.slot-fill { display: block; width: 100%; height: 100%; }
.tech-banner { width: 100%; aspect-ratio: 24 / 7; margin-bottom: 26px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.case .metric .big {
  font-family: var(--f-lat); font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums;
  font-size: clamp(40px, 6vw, 68px);
  background: linear-gradient(120deg, var(--green), var(--cyan));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap;
}
.case .metric .big .unit { font-size: 0.34em; -webkit-text-fill-color: var(--text-dim); font-weight: 500; letter-spacing: 0.02em; }
.case .metric .cap { color: var(--text-faint); font-size: 14px; margin-top: 14px; }
.case .metric .sub { color: var(--text-dim); font-size: 13px; margin-top: 6px; }
.case.alt { grid-template-columns: 1fr 1fr; }

/* ============================================================
   團隊實力 — 數字卡
   ============================================================ */
.team-wrap { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(36px,5vw,72px); align-items: center; }
.team-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.team-stats .ts {
  padding: 28px 26px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--border); box-shadow: var(--shadow);
  transition: border-color .35s, transform .35s, background .35s, box-shadow .35s;
}
.team-stats .ts:hover { border-color: var(--border-2); transform: translateY(-4px); background: var(--surface); box-shadow: var(--shadow-lg); }
.team-stats .ts .k {
  font-family: var(--f-lat); font-size: clamp(34px, 4.5vw, 50px); font-weight: 600;
  font-variant-numeric: tabular-nums; line-height: 1;
  background: linear-gradient(120deg, var(--azure), var(--green)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.team-stats .ts .k .u { font-size: 0.42em; -webkit-text-fill-color: var(--text-dim); margin-left: 2px; }
.team-stats .ts .l { color: var(--text-faint); font-size: 14px; margin-top: 12px; }
.team-stats .ts.wide { grid-column: span 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.team-stats .ts.wide .l { margin-top: 0; max-width: 18ch; text-align: right; color: var(--text-dim); }

/* ============================================================
   發展規劃 — 三階段時間軸
   ============================================================ */
.roadmap { position: relative; }
.roadmap .track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.phase {
  position: relative; padding: 36px 30px 32px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform .35s, border-color .35s, background .35s, box-shadow .35s;
}
.phase:hover { transform: translateY(-5px); border-color: var(--border-2); background: var(--surface); box-shadow: var(--shadow-lg); }
.phase .ph-no {
  font-family: var(--f-lat); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 18px; display: flex; align-items: center; gap: 12px;
}
.phase .ph-no .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 14px var(--cyan); flex: none; }
.phase h3 { font-size: 20px; margin-bottom: 14px; line-height: 1.35; }
.phase p { color: var(--text-dim); font-size: 14.5px; line-height: 1.7; }
.phase .barline { position: absolute; top: 41px; left: 100%; width: 22px; height: 1px; background: var(--border-2); }
.phase:last-child .barline { display: none; }

/* ============================================================
   投資亮點
   ============================================================ */
.invest { background:
    radial-gradient(900px 500px at 85% 0%, oklch(0.70 0.15 245 / 0.12), transparent 60%),
    var(--bg-1);
  border-block: 1px solid var(--border); }
.invest-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.inv {
  padding: 32px 30px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform .35s, border-color .35s, background .35s, box-shadow .35s;
  position: relative; overflow: hidden;
}
.inv:hover { transform: translateY(-5px); border-color: var(--border-2); background: var(--surface); box-shadow: var(--shadow-lg); }
.inv .n {
  font-family: var(--f-lat); font-size: 14px; color: var(--green);
  font-variant-numeric: tabular-nums; letter-spacing: 0.1em; margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.inv .n::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); }
.inv h3 { font-size: 18px; margin-bottom: 12px; line-height: 1.45; }
.inv p { color: var(--text-dim); font-size: 14px; line-height: 1.7; }
.inv.span3 { grid-column: span 3; }
.inv.span2 { grid-column: span 2; }

/* ============================================================
   聯絡我們
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px,6vw,80px); align-items: start; }
.contact-info .ci-block { margin-bottom: 30px; }
.contact-info .ci-label { font-family: var(--f-lat); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 8px; }
.contact-info .ci-val { font-size: 17px; color: var(--text); }
.contact-info .ci-val.lg { font-size: clamp(20px,2.4vw,26px); font-weight: 600; line-height: 1.4; }
.contact-info .ci-val a { color: var(--cyan); }
.contact-info .ci-val a:hover { text-decoration: underline; }
.contact-info .ci-en { color: var(--text-faint); font-size: 14px; font-family: var(--f-lat); letter-spacing: 0.03em; margin-top: 4px; }

.form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(28px,4vw,42px); box-shadow: var(--shadow-lg); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 13.5px; color: var(--text-dim); margin-bottom: 9px; }
.field label .req { color: var(--green); }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--f-cjk); font-size: 15px; color: var(--text);
  background: var(--bg-1); border: 1px solid var(--border); border-radius: 11px;
  padding: 13px 15px; transition: border-color .25s, box-shadow .25s; outline: none;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--cyan); box-shadow: 0 0 0 3px var(--cyan-soft);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234a5f72' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field.err input, .field.err select, .field.err textarea { border-color: oklch(0.7 0.18 25); }
.field .msg { font-size: 12.5px; color: oklch(0.78 0.15 25); margin-top: 6px; display: none; }
.field.err .msg { display: block; }
.form .submit-row { display: flex; align-items: center; gap: 18px; margin-top: 6px; }
.form .submit-row .note { font-size: 12.5px; color: var(--text-faint); }
.form-success {
  display: none; text-align: center; padding: 24px 10px;
}
.form-success.show { display: block; }
.form-success .check {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 20px;
  display: grid; place-items: center; background: var(--green-soft); border: 1px solid oklch(0.80 0.13 160 / 0.4); color: var(--green);
}
.form-success h3 { font-size: 22px; margin-bottom: 10px; }
.form-success p { color: var(--text-dim); font-size: 15px; }

/* ============================================================
   頁腳
   ============================================================ */
.footer { border-top: 1px solid var(--border); background: var(--bg-1); padding-block: 64px 36px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer .f-intro { color: var(--text-dim); font-size: 15px; max-width: 44ch; margin-top: 20px; line-height: 1.8; }
.footer-nav { display: grid; grid-template-columns: repeat(2, auto); gap: 14px 56px; align-content: start; justify-content: end; }
.footer-nav a { color: var(--text-dim); font-size: 14.5px; transition: color .2s; }
.footer-nav a:hover { color: var(--cyan); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 28px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.footer-bottom .copy { color: var(--text-faint); font-size: 13px; }
.footer-bottom .f-en { font-family: var(--f-lat); color: var(--text-faint); font-size: 12px; letter-spacing: 0.08em; }

/* ============================================================
   響應式
   ============================================================ */
@media (max-width: 1024px) {
  .about-grid, .team-wrap, .contact-grid { grid-template-columns: 1fr; }
  .about-visual { aspect-ratio: 16/9; max-width: 520px; }
  .opp-grid, .roadmap .track { grid-template-columns: 1fr; }
  .phase .barline { display: none; }
  .tech-card.feat, .tech-card.std, .tech-card.half { grid-column: span 6; }
  .invest-grid { grid-template-columns: repeat(2, 1fr); }
  .inv.span3, .inv.span2 { grid-column: span 1; }
}
@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 76px; left: 0; right: 0;
    background: rgba(6,12,24,0.96); backdrop-filter: blur(18px);
    padding: 16px var(--gut) 28px; gap: 4px; border-bottom: 1px solid var(--border);
  }
  .nav.open .nav-links a { padding: 14px 8px; }
  .nav-cta .btn { display: none; }
  .model-grid, .footer-top { grid-template-columns: 1fr; }
  .footer-nav { justify-content: start; }
  .case, .case.alt { grid-template-columns: 1fr; gap: 28px; }
  .case .metric, .case.alt .metric { order: 0; border: 0; border-top: 1px solid var(--border); padding: 24px 0 0; }
}
@media (max-width: 560px) {
  .hero-tag { white-space: normal; font-size: 11.5px; }
  .tech-card.feat, .tech-card.std, .tech-card.half { grid-column: span 12; }
  .invest-grid, .team-stats { grid-template-columns: 1fr; }
  .team-stats .ts.wide { grid-column: span 1; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px 36px; }
}
