/* ==========================================================================
   URFiT 官網共用樣式（首頁、隱私權政策、服務條款）
   風格：全深色、直角、髮絲線、單一招牌漸層（#3b82f6 → #6366f1）
   ========================================================================== */

:root {
  /* 底色：三階深藍，區塊交替使用 */
  --bg-0: #070b16;
  --bg-1: #0b1120;
  --bg-2: #0f172a;
  --panel: #0f1729;
  --panel-2: #131d33;

  /* 線條 */
  --line: rgba(148, 163, 184, 0.14);
  --line-strong: rgba(148, 163, 184, 0.28);

  /* 文字 */
  --text: #f8fafc;
  --text-2: #94a3b8;
  --text-3: #64748b;

  /* 品牌色（沿用既有色系） */
  --brand-deep: #1e40af;
  --brand: #3b82f6;
  --brand-light: #60a5fa;
  --accent: #6366f1;
  --ok: #059669;
  --ok-light: #34d399;
  --grad: linear-gradient(100deg, #3b82f6 0%, #6366f1 100%);

  /* 字體 */
  --font-zh: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", sans-serif;
  --font-display: "Michroma", "Noto Sans TC", "Microsoft JhengHei", sans-serif;

  /* 版面 */
  --wrap: 1240px;
  --gutter: 32px;
  --header-h: 72px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-zh);
  background: var(--bg-0);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--brand-light);
  outline-offset: 3px;
}

::selection {
  background: rgba(59, 130, 246, 0.4);
  color: #fff;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.num {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- 按鈕 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  height: 52px;
  padding: 0 8px 0 22px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: box-shadow 0.4s var(--ease-out), border-color 0.3s ease,
    background-color 0.3s ease, transform 0.4s var(--ease-out);
}

.btn-arrow {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  transition: transform 0.4s var(--ease-out), background-color 0.3s ease;
}

.btn-arrow svg {
  width: 16px;
  height: 16px;
  transition: transform 0.4s var(--ease-out);
}

.btn:hover .btn-arrow svg {
  transform: translateX(3px);
}

.btn-primary {
  background: var(--grad);
  color: #fff;
}

.btn-primary .btn-arrow {
  background: #fff;
  color: var(--bg-1);
}

.btn-primary:hover {
  box-shadow: 0 14px 40px -12px rgba(59, 130, 246, 0.75);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-ghost .btn-arrow {
  border: 1px solid var(--line-strong);
}

.btn-ghost:hover {
  border-color: rgba(96, 165, 250, 0.6);
  background: rgba(59, 130, 246, 0.06);
}

.btn-sm {
  height: 42px;
  gap: 12px;
  padding: 0 6px 0 16px;
  font-size: 14px;
}

.btn-sm .btn-arrow {
  width: 30px;
  height: 30px;
}

/* ---------- 頁首 ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s ease, border-color 0.4s ease,
    backdrop-filter 0.4s ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(7, 11, 22, 0.82);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  flex: none;
}

.brand img {
  height: 34px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
  height: 100%;
}

.nav-links li {
  height: 100%;
}

.nav-links a {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--text);
}

.nav-links a.is-active::after {
  transform: scaleX(1);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 42px;
  min-width: 42px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.icon-btn:hover {
  border-color: rgba(96, 165, 250, 0.6);
  background: rgba(59, 130, 246, 0.08);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.menu-btn {
  display: none;
  padding: 0;
}

.menu-btn .bar {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.35s var(--ease-out), opacity 0.2s ease;
}

.menu-btn .bars {
  display: grid;
  gap: 5px;
}

.site-header.is-open .menu-btn .bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.site-header.is-open .menu-btn .bar:nth-child(2) {
  opacity: 0;
}

.site-header.is-open .menu-btn .bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.mobile-nav {
  display: none;
}

/* ---------- 區塊共用 ---------- */
.section {
  position: relative;
  padding: 128px 0;
  scroll-margin-top: var(--header-h);
  overflow: hidden;
}

.section--0 {
  background: var(--bg-0);
}

.section--1 {
  background: var(--bg-1);
}

.section + .section {
  border-top: 1px solid var(--line);
}

/* 背景格線（淡） */
.section-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.35;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 0%, transparent 75%);
  pointer-events: none;
}

/* 背景光暈：位置以修飾類別輪替 */
.glow {
  position: absolute;
  width: 900px;
  height: 900px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(20px);
  opacity: 0.55;
}

.glow--tr {
  top: -520px;
  right: -380px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.22) 0%, transparent 62%);
}

.glow--bl {
  bottom: -560px;
  left: -420px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 62%);
}

.glow--c {
  left: 50%;
  bottom: -620px;
  transform: translateX(-50%);
  width: 1200px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.24) 0%, transparent 60%);
}

.glow--ok {
  top: 50%;
  right: -300px;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(5, 150, 105, 0.14) 0%, rgba(30, 64, 175, 0.12) 35%, transparent 62%);
}

.section-inner {
  position: relative;
  z-index: 1;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--brand-light);
}

.kicker-idx {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-3);
}

.kicker-line {
  width: 32px;
  height: 1px;
  background: var(--grad);
}

.section-title {
  font-size: clamp(28px, 3.4vw, 46px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.01em;
}

.section-sub {
  margin-top: 18px;
  max-width: 640px;
  font-size: 17px;
  color: var(--text-2);
}

.section-head {
  margin-bottom: 64px;
}

:lang(en) .section-title {
  font-size: clamp(26px, 3vw, 40px);
}

/* ---------- 進場動畫（只在 JS 啟用、未要求減少動態時隱藏） ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: max(700px, 100svh);
  display: flex;
  flex-direction: column;
  background: var(--bg-0);
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 11, 22, 0.92) 0%, rgba(7, 11, 22, 0.6) 42%, rgba(7, 11, 22, 0) 68%),
    linear-gradient(180deg, rgba(7, 11, 22, 0.5) 0%, rgba(7, 11, 22, 0) 22%, rgba(7, 11, 22, 0) 70%, var(--bg-0) 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: 64px;
}

.hero-copy {
  max-width: 660px;
}

.hero-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
}

.hero-mark i {
  display: block;
  height: 2px;
  background: var(--grad);
}

.hero-mark i:nth-child(1) {
  width: 48px;
}

.hero-mark i:nth-child(2) {
  width: 8px;
  opacity: 0.6;
}

.hero-mark i:nth-child(3) {
  width: 4px;
  opacity: 0.35;
}

.hero h1 {
  font-size: clamp(40px, 5.6vw, 76px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

:lang(en) .hero h1 {
  font-size: clamp(36px, 4.6vw, 64px);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.hero-subtitle {
  margin-top: 28px;
  max-width: 560px;
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-2);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 44px;
}

/* 開場：依序浮現 */
.js .hero-copy > * {
  opacity: 0;
  transform: translateY(24px);
  animation: heroIn 1.1s var(--ease-out) forwards;
}

.js .hero-copy > *:nth-child(2) {
  animation-delay: 0.12s;
}

.js .hero-copy > *:nth-child(3) {
  animation-delay: 0.28s;
}

.js .hero-copy > *:nth-child(4) {
  animation-delay: 0.42s;
}

@keyframes heroIn {
  to {
    opacity: 1;
    transform: none;
  }
}

/* 底部信任列 */
.hero-badges {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(7, 11, 22, 0) 0%, rgba(7, 11, 22, 0.6) 100%);
}

.badge-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
}

.badge-row li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 0 24px 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  border-left: 1px solid var(--line);
}

.badge-row li:first-child {
  padding-left: 0;
  border-left: 0;
}

.badge-row svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--brand-light);
}

.scroll-cue {
  position: absolute;
  right: var(--gutter);
  bottom: 110px;
  z-index: 2;
  width: 1px;
  height: 64px;
  background: var(--line-strong);
  overflow: hidden;
}

.scroll-cue::after {
  content: "";
  position: absolute;
  left: 0;
  top: -40%;
  width: 1px;
  height: 40%;
  background: linear-gradient(180deg, transparent, var(--brand-light));
  animation: cue 2.2s var(--ease-out) infinite;
}

@keyframes cue {
  to {
    top: 100%;
  }
}

/* ==========================================================================
   數據帶 + 客戶標誌
   ========================================================================== */
.proof {
  padding: 0 0 72px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}

.stat {
  padding: 56px 0 52px 40px;
  border-left: 1px solid var(--line);
}

.stat:first-child {
  padding-left: 0;
  border-left: 0;
}

.stat-number {
  font-size: clamp(40px, 4.6vw, 64px);
  line-height: 1;
}

.stat-label {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-2);
}

.clients {
  display: grid;
  gap: 28px;
  padding-top: 56px;
}

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 70s linear infinite;
}

.marquee--reverse .marquee-track {
  animation-direction: reverse;
  animation-duration: 90s;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 72px;
  padding-right: 72px;
  list-style: none;
}

.marquee-group li {
  display: flex;
  align-items: center;
  height: 56px;
}

.marquee-group img {
  max-width: none;
  opacity: 0.55;
  transition: opacity 0.3s ease;
}

.marquee-group img:hover {
  opacity: 1;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ==========================================================================
   三大產品
   ========================================================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.product {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--panel-2) 0%, var(--panel) 100%);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 0.4s ease, transform 0.6s var(--ease-out),
    box-shadow 0.6s var(--ease-out);
}

.product::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s var(--ease-out);
  z-index: 2;
}

.product::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(96, 165, 250, 0.08), transparent);
  transform: skewX(-12deg);
  pointer-events: none;
}

.product:hover {
  border-color: rgba(96, 165, 250, 0.45);
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -30px rgba(59, 130, 246, 0.45);
}

.product:hover::before {
  transform: scaleX(1);
}

.product:hover::after {
  animation: sweep 1.1s var(--ease-out);
}

@keyframes sweep {
  to {
    left: 130%;
  }
}

.product-visual {
  position: relative;
  height: 210px;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse 80% 90% at 50% 100%, rgba(59, 130, 246, 0.14) 0%, transparent 70%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 30px;
  overflow: hidden;
}

.product-visual svg {
  width: 100%;
  height: 100%;
}

.product-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 30px 30px 0;
}

.tag {
  align-self: flex-start;
  padding: 5px 10px;
  border: 1px solid var(--line-strong);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-2);
}

.product h3 {
  margin: 22px 0 14px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: -0.01em;
}

.product p {
  flex: 1;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-2);
}

.product-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 28px -30px 0;
  padding: 18px 30px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  font-weight: 600;
}

/* 整張卡可點 */
.product-link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
}

.product-link .btn-arrow {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
}

.product:hover .product-link .btn-arrow {
  background: var(--grad);
  border-color: transparent;
}

.product:hover .product-link .btn-arrow svg {
  transform: translateX(3px);
}

/* 產品抽象圖：共用動畫 */
.v-stroke {
  stroke: rgba(96, 165, 250, 0.45);
  stroke-width: 1;
  fill: none;
}

.v-flow {
  stroke: #60a5fa;
  stroke-width: 1.5;
  fill: none;
  stroke-dasharray: 4 8;
  animation: dashFlow 1.6s linear infinite;
}

.v-node {
  fill: var(--bg-1);
  stroke: rgba(148, 163, 184, 0.4);
  stroke-width: 1;
}

.v-node--on {
  fill: url(#vGrad);
  stroke: none;
}

.v-dot {
  fill: #fff;
}

.v-faint {
  fill: rgba(148, 163, 184, 0.18);
}

.v-hub {
  animation: hubGlow 2.4s ease-in-out infinite;
}

.v-ring {
  fill: none;
  stroke: rgba(96, 165, 250, 0.5);
  transform-box: fill-box;
  transform-origin: center;
  animation: ringPulse 2.4s ease-out infinite;
}

.v-fill {
  fill: url(#vGrad);
  transform-box: fill-box;
  transform-origin: 0 50%;
  animation: fillLoop 4s var(--ease-out) infinite;
}

@keyframes dashFlow {
  to {
    stroke-dashoffset: -24;
  }
}

@keyframes hubGlow {
  0%,
  100% {
    filter: drop-shadow(0 0 0 rgba(59, 130, 246, 0));
  }
  50% {
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.85));
  }
}

@keyframes ringPulse {
  0% {
    transform: scale(0.8);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

@keyframes fillLoop {
  0% {
    transform: scaleX(0.08);
  }
  70%,
  100% {
    transform: scaleX(1);
  }
}

/* ==========================================================================
   服務特色（bento）
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 32px;
  background: var(--panel);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 0.4s ease, background-color 0.4s ease;
}

.feature:hover {
  border-color: rgba(96, 165, 250, 0.4);
  background: var(--panel-2);
}

.feature--lg {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 32px;
  min-height: 300px;
}

.feature-main {
  display: flex;
  flex-direction: column;
}

.feature-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 40px;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line-strong);
  color: var(--brand-light);
  transition: background-color 0.4s ease, border-color 0.4s ease, color 0.4s ease;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature:hover .feature-icon {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
}

.feature-idx {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--text-3);
}

.feature h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-2);
}

.feature-art {
  position: relative;
  display: grid;
  place-items: center;
  border-left: 1px solid var(--line);
  margin: -32px -32px -32px 0;
  background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.14) 0%, transparent 65%);
}

.feature-art svg {
  width: 180px;
  height: 180px;
}

.orbit {
  fill: none;
  stroke: rgba(96, 165, 250, 0.4);
  stroke-dasharray: 2 6;
  transform-box: fill-box;
  transform-origin: center;
  animation: orbitSpin 18s linear infinite;
}

.orbit--rev {
  stroke: rgba(99, 102, 241, 0.5);
  stroke-dasharray: 24 10;
  animation-direction: reverse;
  animation-duration: 26s;
}

.typing circle {
  fill: #60a5fa;
  animation: typingDot 1.4s ease-in-out infinite;
}

.typing circle:nth-child(2) {
  animation-delay: 0.18s;
}

.typing circle:nth-child(3) {
  animation-delay: 0.36s;
}

@keyframes orbitSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes typingDot {
  0%,
  60%,
  100% {
    opacity: 0.25;
  }
  30% {
    opacity: 1;
  }
}

/* ==========================================================================
   金融級資安
   ========================================================================== */
.security-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.security-list {
  list-style: none;
  margin-top: 44px;
  border-top: 1px solid var(--line);
}

.security-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  color: var(--text);
}

.check {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: none;
  border: 1px solid rgba(52, 211, 153, 0.45);
  color: var(--ok-light);
  transition: background-color 0.6s var(--ease-out), color 0.6s ease, box-shadow 0.6s ease;
  transition-delay: calc(var(--d, 0) * 90ms + 300ms);
}

.check svg {
  width: 14px;
  height: 14px;
}

.security-list li.is-in .check,
.no-js .check {
  background: var(--ok);
  border-color: var(--ok);
  color: #fff;
  box-shadow: 0 0 18px rgba(5, 150, 105, 0.45);
}

.firewall {
  position: relative;
  width: 100%;
  max-width: 540px;
  aspect-ratio: 1;
  margin-left: auto;
}

.firewall svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.fw-lane {
  fill: none;
  stroke: rgba(96, 165, 250, 0.22);
  stroke-width: 1;
}

.fw-lane--out {
  stroke: rgba(52, 211, 153, 0.28);
}

.fw-lamp {
  fill: var(--ok-light);
  animation: lamp 1.8s ease-in-out infinite;
}

.fw-lamp:nth-of-type(2) {
  animation-delay: 0.3s;
}

.fw-lamp:nth-of-type(3) {
  animation-delay: 0.6s;
}

@keyframes lamp {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
  }
}

/* ==========================================================================
   合作流程
   ========================================================================== */
.process {
  --p: 0;
}

.process-body {
  position: relative;
}

.process-steps {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  list-style: none;
}

/* 從第一個節點中心連到最後一個節點中心（4 欄、欄距 32px、節點 56px） */
.process-track,
.process-progress {
  position: absolute;
  top: 28px;
  left: 28px;
  right: calc(25% - 52px);
  height: 1px;
}

.process-track {
  background: var(--line-strong);
}

.process-progress {
  background: var(--grad);
  transform: scaleX(var(--p));
  transform-origin: left;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.7);
}

.step {
  position: relative;
}

.step-node {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 28px;
  background: var(--bg-1);
  border: 1px solid var(--line-strong);
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--text-3);
  transition: color 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease, background 0.5s ease;
}

.step.is-on .step-node {
  color: #fff;
  border-color: transparent;
  background: var(--grad);
  box-shadow: 0 0 28px -4px rgba(59, 130, 246, 0.7);
}

.step-title {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-desc {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-2);
}

/* ==========================================================================
   聯絡
   ========================================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 72px;
  align-items: start;
}

.contact-title {
  font-size: clamp(32px, 4.2vw, 56px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

:lang(en) .contact-title {
  font-size: clamp(30px, 3.6vw, 48px);
  font-weight: 800;
}

.routes {
  margin-top: 44px;
  list-style: none;
  border-top: 1px solid var(--line);
}

.route {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
  font-weight: 600;
  transition: padding 0.5s var(--ease-out), color 0.3s ease;
}

.route::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease-out);
}

.route .btn-arrow {
  border: 1px solid var(--line-strong);
}

.route:hover {
  padding-left: 12px;
}

.route:hover::before {
  transform: scaleX(1);
}

.route:hover .btn-arrow {
  background: var(--grad);
  border-color: transparent;
}

.route:hover .btn-arrow svg {
  transform: translateX(3px);
}

.contact-card {
  position: relative;
  padding: 40px;
  background: linear-gradient(180deg, rgba(19, 29, 51, 0.9) 0%, rgba(15, 23, 41, 0.9) 100%);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.contact-card::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto -1px;
  height: 2px;
  background: var(--grad);
}

.contact-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
}

.contact-rows {
  display: grid;
}

.contact-row {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
}

.contact-row dt {
  color: var(--text-3);
  font-weight: 500;
}

.contact-row dd {
  color: var(--text);
}

.contact-row a {
  transition: color 0.3s ease;
}

.contact-row a:hover {
  color: var(--brand-light);
}

/* ==========================================================================
   頁尾
   ========================================================================== */
.site-footer {
  background: var(--bg-1);
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 40px;
  padding-bottom: 40px;
  font-size: 14px;
  color: var(--text-3);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-brand img {
  height: 28px;
  width: auto;
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  color: var(--text-2);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--text);
}

/* ==========================================================================
   Cookie 提示
   ========================================================================== */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 10000;
  width: calc(100% - 32px);
  max-width: 600px;
  display: grid;
  gap: 18px;
  padding: 24px;
  background: rgba(11, 17, 32, 0.9);
  border: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
  transform: translate(-50%, 140%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.6s var(--ease-out), opacity 0.4s ease, visibility 0.6s;
}

.cookie-banner::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto -1px;
  height: 2px;
  background: var(--grad);
}

.cookie-banner.show {
  transform: translate(-50%, 0);
  opacity: 1;
  visibility: visible;
}

.cookie-text {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-2);
}

.cookie-text a {
  color: var(--brand-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.cookie-buttons button {
  height: 42px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--line-strong);
  transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.cookie-btn-decline {
  color: var(--text-2);
}

.cookie-btn-decline:hover {
  color: var(--text);
  border-color: rgba(96, 165, 250, 0.6);
}

.cookie-btn-accept {
  background: var(--grad);
  border-color: transparent !important;
  color: #fff;
}

.cookie-btn-accept:hover {
  box-shadow: 0 10px 30px -10px rgba(59, 130, 246, 0.8);
}

/* ==========================================================================
   文件頁（隱私權政策、服務條款）
   ========================================================================== */
.doc-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.doc-page .site-header {
  background: rgba(7, 11, 22, 0.82);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  transition: color 0.3s ease, border-color 0.3s ease;
}

.back-link svg {
  width: 16px;
  height: 16px;
}

.back-link:hover {
  color: var(--text);
  border-color: rgba(96, 165, 250, 0.6);
}

.doc-main {
  position: relative;
  flex: 1;
  padding: calc(var(--header-h) + 88px) 0 120px;
  overflow: hidden;
}

.doc-main .wrap {
  position: relative;
  z-index: 1;
  max-width: calc(860px + var(--gutter) * 2);
}

.document-card h1 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.last-updated {
  margin: 16px 0 56px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--text-3);
}

.content-section {
  margin-bottom: 48px;
}

.content-section h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  font-size: 21px;
  font-weight: 700;
}

.content-section h2::before {
  content: "";
  width: 24px;
  height: 1px;
  flex: none;
  background: var(--grad);
}

.content-section p {
  margin-bottom: 14px;
  font-size: 16px;
  line-height: 1.9;
  color: var(--text-2);
}

.content-section ul {
  list-style: none;
  margin-bottom: 14px;
  border-left: 1px solid var(--line);
}

.content-section li {
  position: relative;
  padding: 6px 0 6px 22px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-2);
}

.content-section li::before {
  content: "";
  position: absolute;
  left: -3px;
  top: 19px;
  width: 5px;
  height: 5px;
  background: var(--brand);
}

.content-section strong {
  color: var(--text);
  font-weight: 600;
}

.content-section a {
  color: var(--brand-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   響應式
   ========================================================================== */
@media (max-width: 1080px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature--lg {
    grid-template-columns: 1fr;
  }

  .feature-art {
    display: none;
  }

  .products-grid {
    grid-template-columns: 1fr;
    max-width: 640px;
  }

  .security-layout,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .firewall {
    margin: 0 auto;
    max-width: 460px;
  }
}

@media (max-width: 900px) {
  :root {
    --gutter: 20px;
    --header-h: 64px;
  }

  .nav-links,
  .header-cta {
    display: none;
  }

  .menu-btn {
    display: inline-flex;
  }

  .mobile-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: block;
    background: rgba(7, 11, 22, 0.96);
    border-bottom: 1px solid var(--line);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s var(--ease-out), opacity 0.3s ease, visibility 0.4s;
  }

  .site-header.is-open .mobile-nav {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .mobile-nav ul {
    list-style: none;
    padding: 8px var(--gutter) 4px;
  }

  .mobile-nav .wrap {
    padding-bottom: 24px;
  }

  .mobile-nav li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    font-size: 17px;
    font-weight: 500;
  }

  .mobile-nav .btn {
    width: 100%;
    justify-content: space-between;
    margin-top: 20px;
  }

  .brand img {
    height: 28px;
  }

  .section {
    padding: 88px 0;
  }

  .section-head {
    margin-bottom: 44px;
  }

  .hero-veil {
    background: linear-gradient(180deg, rgba(7, 11, 22, 0.55) 0%, rgba(7, 11, 22, 0.75) 45%, rgba(7, 11, 22, 0.9) 75%, var(--bg-0) 100%);
  }

  .hero-inner {
    align-items: flex-end;
    padding-top: calc(var(--header-h) + 120px);
    padding-bottom: 48px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .scroll-cue {
    display: none;
  }

  .badge-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .badge-row li {
    padding: 18px 0 18px 16px;
    font-size: 13px;
  }

  .badge-row li:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .badge-row li:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .stat,
  .stat:first-child {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 28px 0;
    border-left: 0;
  }

  .stat + .stat {
    border-top: 1px solid var(--line);
  }

  .stat-label {
    margin-top: 0;
    text-align: right;
  }

  .marquee-group {
    gap: 48px;
    padding-right: 48px;
  }

  .marquee-group img {
    transform: scale(0.85);
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature--lg {
    grid-column: auto;
  }

  .feature {
    min-height: 0;
    padding: 28px 24px;
  }

  .feature-top {
    padding-bottom: 32px;
  }

  .process-steps {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .process-track,
  .process-progress {
    top: 28px;
    bottom: 28px;
    left: 28px;
    right: auto;
    width: 1px;
    height: auto;
  }

  .process-progress {
    transform: scaleY(var(--p));
    transform-origin: top;
  }

  .step {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 0 24px;
  }

  .step-node {
    grid-row: span 2;
    margin-bottom: 0;
  }

  .contact-card {
    padding: 28px 22px;
  }

  .contact-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .footer-inner,
  .footer-brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .doc-main {
    padding-top: calc(var(--header-h) + 56px);
  }
}

@media (max-width: 480px) {
  .hero-cta .btn {
    width: 100%;
    justify-content: space-between;
  }

  .header-controls .lang-label {
    display: none;
  }

  .cookie-buttons {
    flex-direction: column-reverse;
  }

  .cookie-buttons button {
    width: 100%;
  }
}

/* 減少動態：關閉所有裝飾性動畫，內容直接呈現 */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .js [data-reveal],
  .js .hero-copy > * {
    opacity: 1;
    transform: none;
  }

  .marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .marquee-track {
    width: auto;
  }

  .marquee-group {
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px 56px;
    padding-right: 0;
  }

  .marquee-group[aria-hidden="true"] {
    display: none;
  }

  .process {
    --p: 1 !important;
  }
}
