/* ============================================
   宇鏈科技 Stellium Link · 官網樣式
   ============================================
   設計系統規則：
   - 色彩：primary 主導，secondary 副調，gold 僅用於 section 編號與細節 accent
   - 卡片：白底 + 1px line border + radius 16 + padding 32 + hover lift
   - 強調：accent (深霧藍綠色字)、accent-gold (金色下底線)
   - section 節奏：section-num → title/logo → tagline → body
   - 字級：clamp 確保響應式
============================================ */

:root {
  --bg: #FBF7EF;
  --primary: #0F4C5C;
  --primary-dark: #093540;
  --secondary: #2F6F73;
  --gold: #C9A84D;
  --surface: #EAF2F2;
  --text: #1a2e36;
  --text-soft: #4a6770;
  --line: rgba(15, 76, 92, 0.12);
  --line-strong: rgba(15, 76, 92, 0.2);
  --shadow-sm: 0 2px 12px rgba(15, 76, 92, 0.06);
  --shadow-md: 0 8px 32px rgba(15, 76, 92, 0.08);
  --shadow-lg: 0 20px 60px rgba(15, 76, 92, 0.10);
  --radius: 16px;
  --radius-sm: 10px;
  --container: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
a { color: inherit; text-decoration: none; transition: color .2s ease; }
img, svg { display: block; max-width: 100%; }

/* ============================================
   Typography utilities (統一強調樣式)
   ============================================ */
.accent {
  color: var(--secondary);
  font-weight: 900;
}
.accent-gold {
  color: var(--primary);
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.accent-gold::after {
  content: '';
  position: absolute;
  left: 2px; right: 2px; bottom: 2px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  opacity: 0.9;
}

/* ============================================
   Header
   ============================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(251, 247, 239, 0.85);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  background: rgba(251, 247, 239, 0.94);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.5px;
}
.brand-mark { display: inline-flex; align-items: center; }
.brand-mark img {
  background: var(--primary);
  border-radius: 8px;
  padding: 3px;
}
.brand-name { font-size: 18px; }
.brand-en {
  font-weight: 400;
  font-size: 13px;
  color: var(--secondary);
  letter-spacing: 1px;
  margin-left: 4px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.site-nav a {
  font-size: 15px;
  color: var(--text-soft);
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}
.site-nav a:hover { color: var(--primary); }
.site-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width .25s ease;
}
.site-nav a:hover::after { width: 100%; }

/* ============================================
   Buttons (統一系統)
   ============================================ */
.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 28px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  transition: all .25s ease;
  border: 1.5px solid transparent;
  letter-spacing: 0.3px;
  min-width: 200px;
  text-align: center;
  cursor: pointer;
}
.btn-sub {
  display: block;
  font-size: 12px;
  font-weight: 400;
  opacity: 0.7;
  margin-top: 4px;
  letter-spacing: 1px;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(15, 76, 92, 0.18);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 76, 92, 0.28);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--line-strong);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px);
}
.btn-secondary {
  background: transparent;
  color: var(--primary);
  border-color: var(--line-strong);
}
.btn-secondary:hover {
  background: var(--surface);
  border-color: var(--secondary);
  transform: translateY(-2px);
}

/* ============================================
   Hero Carousel (walkin.tw 樣式)
   ============================================ */
.hero-carousel {
  position: relative;
  margin-top: 72px;       /* 讓出 fixed header */
  padding: 24px 24px 0;
  background: var(--bg);
}
.carousel-viewport {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--surface) 0%, var(--bg) 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.carousel-track {
  display: flex;
  width: 100%;
  transition: transform .6s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}
.slide {
  flex: 0 0 100%;
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.slide-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.slide-bg svg {
  width: 100%;
  height: 100%;
  display: block;
}
.slide-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 64px 24px;
}
.slide-text {
  max-width: 620px;
}
.slide-eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 4px;
  color: var(--secondary);
  font-weight: 500;
  margin-bottom: 24px;
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
}
.slide-title {
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.5;
  font-weight: 900;
  letter-spacing: -0.3px;
  color: var(--primary);
  margin-bottom: 28px;
  text-wrap: balance;
}
.slide-sub {
  font-size: clamp(15px, 1.2vw, 17px);
  color: var(--text-soft);
  line-height: 1.95;
  margin-bottom: 36px;
  max-width: 540px;
}
.slide-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* 三張 slide 各自背景色微調 */
.slide-company {
  background: linear-gradient(135deg, var(--bg) 0%, #FFFBF0 100%);
}
.slide-murmur {
  background: linear-gradient(135deg, #EFF5F4 0%, var(--bg) 100%);
}
.slide-buildcheck {
  background: linear-gradient(135deg, var(--bg) 0%, #F0E8D8 100%);
}

/* 帶圖片的 slide */
.slide-with-image {
  background: var(--bg);
  min-height: 480px;
}
.slide-img {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 85%;                /* 圖片只佔右側 62%，左側留給文字 */
  height: 100%;
  object-fit: contain;
  object-position: right center;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}
.slide-fade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(251, 247, 239, 1) 0%,
    rgba(251, 247, 239, 0.95) 32%,
    rgba(251, 247, 239, 0.4) 42%,
    rgba(251, 247, 239, 0) 50%
  );
}
.slide-with-image .slide-inner {
  z-index: 2;
}
.slide-with-image .slide-text {
  max-width: 520px;          /* 限制文字寬度避免延伸到圖片區 */
}

/* 箭頭 */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  color: var(--primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: all .2s ease;
  box-shadow: var(--shadow-sm);
}
.carousel-arrow:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.carousel-prev { left: 36px; }
.carousel-next { right: 36px; }

/* 圓點 */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 20px 0 8px;
}
.dot {
  width: 28px;
  height: 4px;
  border-radius: 2px;
  background: var(--line-strong);
  border: none;
  cursor: pointer;
  transition: all .25s ease;
  padding: 0;
}
.dot:hover { background: var(--secondary); }
.dot.active {
  background: var(--primary);
  width: 48px;
}

/* ============================================
   Sections (統一節奏)
   ============================================ */
.section {
  position: relative;
  padding: 120px 0;
}
.section-head {
  margin-bottom: 64px;
  max-width: 720px;
}
.section-head.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.section-num {
  display: inline-block;
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
  font-size: 12px;
  letter-spacing: 4px;
  color: var(--gold);
  margin-bottom: 18px;
  font-weight: 500;
}
.section-title {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.3px;
  margin-bottom: 16px;
  line-height: 1.3;
}
.section-sub {
  font-size: clamp(15px, 1.2vw, 17px);
  color: var(--text-soft);
  line-height: 1.7;
}

/* 區段內副標題（用於 pain / features / target 等子區塊） */
.subsection-label {
  font-size: 12px;
  letter-spacing: 4px;
  color: var(--secondary);
  font-weight: 700;
  margin-bottom: 28px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
}
.subsection-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--gold);
}

/* ============================================
   Cards (統一規範)
   ============================================ */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  transition: all .3s ease;
  box-shadow: var(--shadow-sm);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--secondary);
}
.card-soft {
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 28px;
  transition: all .25s ease;
}
.card-soft:hover {
  border-color: var(--secondary);
  transform: translateY(-2px);
}

/* ============================================
   About
   ============================================ */
.section-about {
  background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 100%);
}
/* ============================================
   Founder
   ============================================ */
.founder {
  margin-top: 96px;
  padding-top: 64px;
  border-top: 1px solid var(--line);
}
.founder-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.0fr;
  gap: 120px;
  align-items: start;
  margin-top: 32px;
}
.founder-photo {
  margin: 0;
}
.founder-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  display: block;
}
.founder-photo-placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  border: 1px dashed var(--line-strong);
  background: var(--surface);
  color: var(--secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 3px;
}
.founder-profile p {
  font-size: 18px;
  line-height: 1.95;
  color: var(--text-soft);
  margin-bottom: 16px;
  max-width: 420px;
}
.founder-profile p:last-child { margin-bottom: 0; }
.founder-profile strong {
  color: var(--primary);
  font-weight: 700;
}
.founder-name {
  margin-bottom: 24px;
}
.founder-title {
  display: inline-block;
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.founder-name h4 {
  font-size: 32px;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.5px;
  line-height: 1.2;
}
.founder-en {
  font-size: 18px;
  font-weight: 500;
  color: var(--secondary);
  letter-spacing: 0.5px;
  margin-left: 6px;
}

.timeline {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.timeline li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--line);
}
.timeline li:last-child {
  padding-bottom: 0;
  border-bottom: none;
}
.tl-year {
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--secondary);
  font-weight: 700;
  padding-top: 2px;
}
.tl-body {
  font-size: 15px;
  color: var(--text);
  line-height: 1.6;
}
.tl-body strong {
  color: var(--primary);
  font-weight: 700;
}
.tl-body span {
  display: block;
  font-size: 13px;
  color: var(--text-soft);
  margin-top: 4px;
  line-height: 1.7;
}
.timeline-edu li {
  padding-bottom: 14px;
}

/* Section-level hero with overlay (about / product sections) */
.about-hero,
.section-hero {
  position: relative;
  width: 100%;
  min-height: 280px;
  margin-bottom: 64px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  background: var(--bg);
  display: flex;
  align-items: center;
}
.about-hero-img,
.section-hero-img {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 62%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}
.about-hero-fade,
.section-hero-fade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(251, 247, 239, 1) 0%,
    rgba(251, 247, 239, 0.95) 32%,
    rgba(251, 247, 239, 0.4) 42%,
    rgba(251, 247, 239, 0) 50%
  );
}
.about-hero-text,
.section-hero-text {
  position: relative;
  z-index: 2;
  padding: 48px 56px;
  max-width: 560px;
}
.about-hero-text .section-num,
.section-hero-text .section-num { margin-bottom: 14px; }
.about-hero-text .section-title { margin-bottom: 12px; }
.about-hero-text .section-sub { margin: 0; }
.section-hero-text .product-logo { margin-bottom: 10px; }
.section-hero-text .product-tagline { margin: 0; }

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: start;
}
.about-left {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.about-photo {
  margin: 0;
}
.about-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center 30%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  display: block;
}
.about-photo figcaption {
  margin-top: 12px;
  font-size: 12px;
  letter-spacing: 4px;
  color: var(--secondary);
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}
.about-statement p {
  font-size: 18px;
  line-height: 1.95;
  color: var(--text);
  margin-bottom: 20px;
}
.about-statement strong {
  color: var(--primary);
  font-weight: 700;
}

.capability-list {
  /* uses .card */
}
.cap-title {
  font-size: 13px;
  color: var(--secondary);
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.capability-list ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.capability-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--text);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.capability-list li:last-child { border-bottom: none; padding-bottom: 0; }
.cap-icon { color: var(--gold); font-size: 10px; }

/* ============================================
   Product sections
   ============================================ */
.section-product {
  position: relative;
  overflow: hidden;
}
.product-murmur {
  background: var(--bg);
}
.product-buildcheck {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
}
.product-deco {
  position: absolute;
  top: 100px;
  right: -40px;
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}
.product-deco-right {
  top: auto;
  bottom: 100px;
  right: auto;
  left: -60px;
}
.section-product .container { position: relative; z-index: 1; }

.product-logo {
  font-size: clamp(36px, 4.5vw, 52px);
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  line-height: 1.1;
  display: inline-block;
  position: relative;
}
.product-tagline {
  font-size: clamp(15px, 1.3vw, 18px);
  color: var(--secondary);
  font-weight: 500;
  letter-spacing: 0.3px;
}

.product-intro {
  font-size: 17px;
  line-height: 1.95;
  color: var(--text);
  max-width: 880px;
  margin-bottom: 80px;
  padding: 28px 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  box-shadow: var(--shadow-sm);
}
.product-intro strong {
  color: var(--primary);
  font-weight: 700;
}

/* 區塊組 */
.pain-points,
.features,
.target,
.bc-modules {
  margin-bottom: 72px;
}

/* Pain points (用 card-soft, surface 底) */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.pain-card {
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 28px;
  transition: all .25s ease;
}
.pain-card:hover {
  border-color: var(--secondary);
  transform: translateY(-2px);
}
.pain-num {
  display: inline-block;
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
  font-size: 12px;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.pain-card h5 {
  font-size: 17px;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 10px;
}
.pain-card p {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.7;
}

/* Features (用 .card 白底) */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: all .3s ease;
  box-shadow: var(--shadow-sm);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--secondary);
}
.feature-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--primary);
  margin-bottom: 16px;
}
.feature-card h5 {
  font-size: 16px;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.7;
}

/* Target tags */
.target-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.target-tags span {
  display: inline-block;
  padding: 8px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  color: var(--primary);
  font-weight: 500;
  transition: all .2s ease;
}
.target-tags span:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Partners */
.partners {
  margin-bottom: 72px;
}
.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.partner-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  transition: transform .25s ease;
}
.partner-card:hover {
  transform: translateY(-4px);
}
.partner-card img {
  max-width: 100%;
  max-height: 120px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 12px;
}

/* Product CTA */
.product-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  padding-top: 24px;
}
.product-logo-link {
  cursor: pointer;
  transition: opacity .2s ease, transform .2s ease;
}
.product-logo-link:hover {
  opacity: 0.82;
  transform: translateY(-1px);
}
.ext-icon {
  font-size: 0.45em;
  vertical-align: super;
  margin-left: 6px;
  font-weight: 400;
  color: var(--gold);
}

/* ============================================
   BuildingCheck Modules
   ============================================ */
.bc-modules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.bc-module {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  position: relative;
  transition: all .3s ease;
  box-shadow: var(--shadow-sm);
}
.bc-module:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--secondary);
}
.bc-tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 3px;
  font-weight: 700;
  color: var(--secondary);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 5px 12px;
  border-radius: 4px;
  margin-bottom: 18px;
  text-transform: uppercase;
}
.bc-module h4 {
  font-size: 22px;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.4;
}
.bc-module-intro {
  font-size: 15px;
  color: var(--text-soft);
  line-height: 1.85;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.bc-module-intro strong { color: var(--primary); font-weight: 700; }
.bc-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bc-features li {
  display: flex;
  gap: 12px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
}
.bc-features li span {
  color: var(--gold);
  font-size: 10px;
  margin-top: 7px;
  flex-shrink: 0;
}

/* ============================================
   Contact
   ============================================ */
.section-contact {
  background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 60%);
  padding-bottom: 160px;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 760px;
  margin: 0 auto;
}
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  transition: all .3s ease;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.contact-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s ease;
}
.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--secondary);
}
.contact-card:hover::before { transform: scaleX(1); }
.contact-icon {
  width: 64px; height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--primary);
}
.contact-card h4 {
  font-size: 12px;
  letter-spacing: 4px;
  color: var(--secondary);
  font-weight: 700;
  margin-bottom: 14px;
  text-transform: uppercase;
}
.contact-value {
  font-size: 20px;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0.3px;
  word-break: break-all;
}
.contact-note {
  font-size: 13px;
  color: var(--text-soft);
}

.contact-card-line { cursor: default; }
.contact-icon-line {
  background: #06C755;
  border-color: #06C755;
  color: #fff;
}
.line-qr-wrap {
  display: flex;
  justify-content: center;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 14px auto;
  width: fit-content;
  box-shadow: 0 4px 14px rgba(15, 76, 92, 0.08);
}
.line-qr-wrap img {
  display: block;
  width: 180px;
  height: 180px;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.85);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  padding: 64px 32px 48px;
  align-items: start;
}
.footer-brand .brand { color: #fff; margin-bottom: 16px; }
.footer-brand .brand-en { color: rgba(255, 255, 255, 0.6); }
.footer-tagline {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  max-width: 420px;
  margin-bottom: 14px;
}
.footer-meta {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.5px;
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
}
.footer-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 4px 0 0;
  max-width: 460px;
}
.footer-info > div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  font-size: 13px;
  line-height: 1.6;
}
.footer-info dt {
  color: rgba(255, 255, 255, 0.45);
  font-weight: 500;
  letter-spacing: 0.5px;
}
.footer-info dd {
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}
.footer-info dd a {
  color: rgba(255, 255, 255, 0.85);
  transition: color .2s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.footer-info dd a:hover { color: var(--gold); border-bottom-color: var(--gold); }
.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.footer-links h5 {
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: 16px;
  text-transform: uppercase;
}
.footer-links a {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 10px;
  transition: color .2s ease;
}
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.5px;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 960px) {
  .hero-inner,
  .about-grid,
  .bc-modules,
  .contact-grid,
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-visual { max-width: 380px; margin: 0 auto; }
  .about-photo { position: static; max-width: 520px; margin: 0 auto; }
  .founder-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-hero,
  .section-hero { min-height: 220px; }
  .about-hero-text,
  .section-hero-text { padding: 32px 28px; }
  .about-hero-img,
  .section-hero-img { width: 100%; }
  .pain-grid,
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .partner-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 80px 0; }
  .product-deco { display: none; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }

  /* Header / Nav */
  .header-inner { height: 60px; }
  .brand-name { font-size: 15px; }
  .brand-mark img { width: 28px; height: 28px; }
  .brand-en { display: none; }
  .site-nav { gap: 14px; }
  .site-nav a { font-size: 12px; padding: 4px 2px; white-space: nowrap; }

  /* Hero Carousel */
  .hero-carousel { margin-top: 60px; padding: 12px 12px 0; }
  .carousel-viewport { border-radius: 16px; }
  .slide, .slide-with-image { min-height: auto; }
  .slide-inner { padding: 32px 18px; }
  .slide-eyebrow { font-size: 11px; letter-spacing: 2px; padding: 5px 12px; margin-bottom: 16px; }
  .slide-title { font-size: 22px; line-height: 1.55; margin-bottom: 18px; }
  .slide-sub { font-size: 14px; line-height: 1.8; margin-bottom: 24px; }
  .slide-cta { flex-direction: column; align-items: stretch; gap: 10px; }

  /* 圖片在手機上 hide（避免穿透文字）*/
  .slide-img { display: none; }
  .slide-fade { display: none; }
  .slide-with-image { background: linear-gradient(135deg, var(--surface) 0%, var(--bg) 100%); }

  /* 箭頭縮小、靠近邊緣 */
  .carousel-arrow { width: 36px; height: 36px; }
  .carousel-prev { left: 8px; }
  .carousel-next { right: 8px; }
  .carousel-dots { padding: 14px 0 6px; }
  .dot { width: 22px; }
  .dot.active { width: 36px; }

  /* Buttons */
  .btn { min-width: auto; width: 100%; padding: 14px 20px; font-size: 15px; }

  /* Sections */
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }
  .section-title { font-size: 26px; }
  .product-intro { padding: 20px 18px; font-size: 15px; margin-bottom: 48px; }
  .pain-grid, .feature-grid, .partner-grid { grid-template-columns: 1fr; }
  .pain-points, .features, .target, .bc-modules, .partners { margin-bottom: 48px; }

  /* About hero / Section hero — 圖也 hide */
  .about-hero, .section-hero { min-height: auto; padding: 28px 20px; }
  .about-hero-text, .section-hero-text { padding: 0; max-width: 100%; }
  .about-hero-img, .section-hero-img { display: none; }
  .about-hero-fade, .section-hero-fade { display: none; }

  /* Founder timeline */
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
  .founder-name h4 { font-size: 24px; }
  .founder-en { font-size: 16px; }
  .founder { margin-top: 56px; padding-top: 40px; }
  .founder-timeline.card { padding: 24px 20px; }

  /* BuildingCheck modules */
  .bc-module { padding: 24px 20px; }
  .bc-module h4 { font-size: 19px; }

  /* Capability list */
  .capability-list.card { padding: 24px 20px; }

  /* Footer */
  .footer-info > div { grid-template-columns: 100px 1fr; gap: 8px; font-size: 12px; }

  .scroll-indicator { display: none; }
}

/* ============================================
   個別 slide 微調
   ============================================ */
.slide-murmur .slide-img {
  width: 88%;
}
.slide-company .slide-img {
  width: 90%;
}