/* =============================================================
   JET OPTO — 首頁樣式（三語共用）
   章節：Hero 光速感知隧道 → 信任跑馬 → 三軸光譜 → X-Ray 透視
        → 能力矩陣 → 全球據點 → 客戶 → 影片 → CTA
   ============================================================= */

/* ---------- HERO：光速感知隧道 ---------- */
.hero {
  position: relative; height: 100svh; min-height: 640px; overflow: hidden;
  background: var(--ink-950);
}
.hero-gl { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 50%, transparent 40%, rgba(4, 7, 13, .55) 78%, rgba(4, 7, 13, .92) 100%),
    linear-gradient(180deg, rgba(4,7,13,.5), transparent 22%, transparent 72%, rgba(4,7,13,.9));
}
/* 無 WebGL / reduced-motion 後備 */
.hero-fallback {
  position: absolute; inset: 0; display: none;
  background:
    radial-gradient(900px 500px at 30% 80%, rgba(var(--ent-rgb), .16), transparent 60%),
    radial-gradient(1100px 620px at 70% 30%, rgba(var(--ckpt-rgb), .2), transparent 60%),
    radial-gradient(800px 480px at 85% 85%, rgba(var(--safe-rgb), .14), transparent 60%),
    var(--ink-950);
}
.no-webgl .hero-fallback { display: block; }
.no-webgl .hero-gl { display: none; }

.hero-core {
  position: absolute; inset: 0; z-index: 10;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; padding: 0 var(--gutter); pointer-events: none;
}
.hero-core > * { pointer-events: auto; }
.hero-kicker {
  display: flex; align-items: center; gap: 16px;
  font-size: clamp(11px, 1vw, 13px); font-weight: 700; letter-spacing: .48em; text-transform: uppercase;
  color: rgba(var(--ckpt-rgb), .92); margin-bottom: 28px;
}
.hero-kicker::before, .hero-kicker::after {
  content: ""; width: 46px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--ckpt-rgb), .85));
}
.hero-kicker::after { transform: scaleX(-1); }
.hero-title {
  font-size: clamp(38px, 6.8vw, 100px); font-weight: 900; line-height: 1.06; letter-spacing: -.02em;
  text-shadow: 0 0 90px rgba(var(--ckpt-rgb), .28);
}
.hero-title em { font-style: normal; }
.hero-lede {
  max-width: 580px; margin-top: 26px;
  color: rgba(222, 232, 248, .68); font-size: clamp(14px, 1.3vw, 17.5px); line-height: 1.85;
}
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 40px; }

/* 三色光帶入口 */
.hero-gates {
  position: absolute; left: 50%; bottom: clamp(40px, 7vh, 76px); transform: translateX(-50%);
  z-index: 10; display: flex; gap: clamp(16px, 3.4vw, 48px);
}
.hero-gate {
  --c-rgb: var(--ckpt-rgb);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: .26em; text-transform: uppercase;
  color: rgba(222, 232, 248, .62); padding: 8px 4px;
  transition: color .3s;
}
.hero-gate i {
  width: clamp(60px, 7.5vw, 104px); height: 3px; border-radius: 3px;
  background: rgb(var(--c-rgb));
  box-shadow: 0 0 18px 2px rgba(var(--c-rgb), .65);
  transition: transform .55s var(--ease-out), box-shadow .55s;
}
.hero-gate:hover { color: #fff; }
.hero-gate:hover i { transform: scaleX(1.4); box-shadow: 0 0 34px 6px rgba(var(--c-rgb), .8); }

.hero-scrollhint {
  position: absolute; right: clamp(18px, 3.4vw, 44px); bottom: clamp(40px, 7vh, 72px); z-index: 10;
  writing-mode: vertical-rl;
  font-size: 11px; letter-spacing: .4em; text-transform: uppercase;
  color: rgba(222, 232, 248, .42);
  display: flex; align-items: center; gap: 12px;
}
.hero-scrollhint::after {
  content: ""; width: 1px; height: 54px;
  background: linear-gradient(180deg, rgba(var(--ckpt-rgb), .9), transparent);
  animation: hint-drip 2.2s ease-in-out infinite;
}
@keyframes hint-drip {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- 信任跑馬 ---------- */
.trust-strip {
  border-block: 1px solid var(--line);
  padding-block: 22px;
  background: linear-gradient(180deg, rgba(14, 21, 36, .5), rgba(7, 11, 20, .8));
}
.trust-strip .marquee-track span {
  display: inline-flex; align-items: center; gap: 18px;
  padding-right: 18px;
  font-size: clamp(13px, 1.15vw, 15.5px); font-weight: 600; letter-spacing: .14em;
  color: var(--txt-mute); white-space: nowrap;
}
.trust-strip .marquee-track span::after {
  content: "◆"; font-size: 8px; color: rgba(var(--ckpt-rgb), .6);
}

/* ---------- 三軸光譜（產品線） ---------- */
.spectrum { --label-dot: var(--ckpt); }
.spectrum-deck { display: flex; gap: 18px; margin-top: 56px; min-height: 560px; }
.spec-card {
  --c: var(--ckpt); --c-rgb: var(--ckpt-rgb);
  position: relative; flex: 1; min-width: 0; overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 32px clamp(22px, 2.4vw, 38px) 36px;
  isolation: isolate;
  transition: flex 1s var(--ease-out), border-color .5s;
  background: var(--ink-900);
}
.spec-card:hover { border-color: rgba(var(--c-rgb), .55); }
@media (min-width: 901px) {
  .spectrum-deck:hover .spec-card { flex: .82; }
  .spectrum-deck .spec-card:hover { flex: 1.9; }
}
.spec-media { position: absolute; inset: 0; z-index: -2; }
.spec-media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.9) brightness(.72);
  transform: scale(1.08);
  transition: transform 1.4s var(--ease-out), filter .8s;
}
.spec-card:hover .spec-media img { transform: scale(1.16); filter: saturate(1.05) brightness(.82); }
.spec-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(4,7,13,.1) 30%, rgba(4,7,13,.88) 82%),
    radial-gradient(120% 70% at 50% 115%, rgba(var(--c-rgb), .38), transparent 62%);
}
.spec-no {
  position: absolute; top: 26px; left: 28px;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .3em;
  color: rgb(var(--c-rgb));
  display: flex; align-items: center; gap: 12px;
}
.spec-no::after { content: ""; width: 40px; height: 1px; background: linear-gradient(90deg, rgb(var(--c-rgb)), transparent); }
.spec-en {
  position: absolute; top: 50px; left: 26px;
  font-size: clamp(24px, 2.6vw, 40px); font-weight: 900; letter-spacing: .01em;
  color: transparent; -webkit-text-stroke: 1px rgba(var(--c-rgb), .5);
  text-transform: uppercase; white-space: nowrap;
  opacity: .8;
}
.spec-card h3 { font-size: clamp(24px, 2.2vw, 34px); font-weight: 800; }
.spec-card h3::after {
  content: ""; display: block; width: 46px; height: 4px; border-radius: 4px;
  background: rgb(var(--c-rgb)); margin-top: 14px;
  box-shadow: 0 0 16px 2px rgba(var(--c-rgb), .6);
  transition: width .7s var(--ease-out);
}
.spec-card:hover h3::after { width: 110px; }
.spec-card p {
  margin-top: 16px; max-width: 380px;
  color: rgba(238, 243, 251, .72); font-size: 14.5px; line-height: 1.85;
}
.spec-go {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 20px;
  font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: rgb(var(--c-rgb));
}
.spec-go .arr { transition: transform .4s var(--ease-out); }
.spec-card:hover .spec-go .arr { transform: translateX(6px); }
@media (max-width: 900px) {
  .spectrum-deck { flex-direction: column; min-height: 0; }
  .spec-card { min-height: 340px; }
  .spec-en { top: 54px; }
}

/* ---------- X-Ray 透視段 ---------- */
.xray-stage { position: relative; height: 340vh; }
.xray-frame {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: flex; align-items: center;
  background:
    linear-gradient(rgba(var(--ckpt-rgb), .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--ckpt-rgb), .035) 1px, transparent 1px),
    radial-gradient(1300px 720px at 72% 42%, #10182a, var(--ink-950));
  background-size: 54px 54px, 54px 54px, 100% 100%;
}
.xray-panel {
  position: relative; z-index: 10;
  width: min(480px, 46vw);
  padding-left: var(--gutter);
}
.xray-panel .sec-label { --label-dot: var(--safe); --label-rgb: var(--safe-rgb); }
.xray-title { font-size: clamp(28px, 3.4vw, 50px); font-weight: 900; line-height: 1.15; letter-spacing: -.015em; }
.xray-title em { font-style: normal; color: transparent; -webkit-text-stroke: 1.2px rgba(238, 243, 251, .85); }
.xray-steps { position: relative; margin-top: 34px; min-height: 170px; }
.xray-step { position: absolute; inset: 0; opacity: 0; transform: translateY(24px); }
.xray-step .tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase;
  color: #04121c; background: rgb(var(--c-rgb)); padding: 6px 12px; border-radius: 5px; margin-bottom: 14px;
}
.xray-step h3 { font-size: 24px; font-weight: 800; }
.xray-step p { margin-top: 10px; color: var(--txt-dim); font-size: 14.5px; line-height: 1.85; max-width: 380px; }
.xray-progress { display: flex; gap: 8px; margin-top: 30px; }
.xray-progress i {
  width: 46px; height: 3px; border-radius: 3px; background: rgba(238, 243, 251, .14);
  overflow: hidden; position: relative;
}
.xray-progress i::after {
  content: ""; position: absolute; inset: 0;
  background: rgb(var(--pc-rgb, var(--ckpt-rgb)));
  transform: scaleX(var(--p, 0)); transform-origin: left;
}
.xray-car {
  position: absolute; z-index: 5; right: -5vw; top: 50%; transform: translateY(-50%);
  width: min(70vw, 1120px);
}
.xray-car img { width: 100%; border-radius: 12px; }
.xray-scanline {
  position: absolute; z-index: 8; left: 0; right: 0; top: 8%; height: 2px; opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(var(--ckpt-rgb), .95) 30%, rgba(var(--ckpt-rgb), .95) 70%, transparent);
  box-shadow: 0 0 26px 5px rgba(var(--ckpt-rgb), .45);
}
.xray-scanline::after {
  content: attr(data-label);
  position: absolute; right: 6vw; top: 10px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .3em;
  color: rgba(var(--ckpt-rgb), .95);
}
.xray-hotspot { position: absolute; z-index: 12; opacity: 0; }
.xray-hotspot .ring {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgb(var(--c-rgb));
  background: rgba(var(--c-rgb), .28);
  box-shadow: 0 0 0 0 rgba(var(--c-rgb), .5);
  animation: xr-pulse 2.2s ease-out infinite;
}
@keyframes xr-pulse { 70% { box-shadow: 0 0 0 16px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.xray-hotspot .lbl {
  position: absolute; left: 26px; top: -9px; white-space: nowrap;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em;
  background: rgba(7, 11, 20, .92); color: #fff;
  border: 1px solid rgba(var(--c-rgb), .55); border-left: 3px solid rgb(var(--c-rgb));
  padding: 7px 12px; border-radius: 5px;
  backdrop-filter: blur(6px);
}
.xray-hotspot.flip .lbl { left: auto; right: 26px; }
@media (max-width: 860px) {
  .xray-stage { height: 300vh; }
  .xray-frame { align-items: flex-start; }
  .xray-panel { width: 100%; padding: 14vh var(--gutter) 0; }
  .xray-car { width: 135vw; right: -46vw; top: 68%; }
  .xray-hotspot .lbl { font-size: 10px; }
}

/* ---------- 能力矩陣 ---------- */
.caps { --label-dot: var(--ent); --label-rgb: var(--ent-rgb); }
.caps-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  margin: 60px 0 26px;
}
.stat {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px;
  background: linear-gradient(165deg, var(--ink-850), var(--ink-900));
}
.stat .v {
  font-size: clamp(34px, 3.6vw, 54px); font-weight: 900; letter-spacing: -.02em;
  background: linear-gradient(120deg, #fff, rgba(var(--ckpt-rgb), .9));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat .k { margin-top: 6px; font-size: 13px; letter-spacing: .16em; color: var(--txt-mute); text-transform: uppercase; }
.caps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cap-card { padding: 0 0 26px; }
.cap-card .cap-img { height: 190px; overflow: hidden; }
.cap-card .cap-img img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.8) brightness(.82); transform: scale(1.04);
  transition: transform 1.2s var(--ease-out), filter .6s;
}
.cap-card:hover .cap-img img { transform: scale(1.12); filter: saturate(1) brightness(.95); }
.cap-card h3 { font-size: 20px; font-weight: 800; margin: 22px 24px 10px; display: flex; align-items: baseline; gap: 10px; }
.cap-card h3 .idx { font-family: var(--font-mono); font-size: 12px; color: rgba(var(--card-rgb, var(--ckpt-rgb)), .9); }
.cap-card p { margin: 0 24px; color: var(--txt-dim); font-size: 14px; line-height: 1.85; }
@media (max-width: 1024px) {
  .caps-stats, .caps-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .caps-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .caps-grid { grid-template-columns: 1fr; }
}

/* ---------- 全球據點 ---------- */
.globe { --label-dot: var(--safe); --label-rgb: var(--safe-rgb); overflow: hidden; }
.globe-wrap { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.globe-map { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.globe-map img { width: 100%; filter: saturate(.85); }
.globe-list { display: grid; gap: 4px; margin-top: 34px; }
.globe-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 18px;
  padding: 16px 4px; border-bottom: 1px solid var(--line);
  transition: padding-left .4s var(--ease-out), border-color .4s;
}
.globe-row:hover { padding-left: 14px; border-color: rgba(var(--safe-rgb), .5); }
.globe-row .city { font-size: 17px; font-weight: 700; }
.globe-row .role { font-size: 13px; color: var(--txt-mute); letter-spacing: .08em; text-align: right; }
@media (max-width: 900px) { .globe-wrap { grid-template-columns: 1fr; } }

/* ---------- 客戶 ---------- */
.clients-strip { padding-block: clamp(56px, 9vh, 110px); border-block: 1px solid var(--line); }
.clients-strip .marquee { margin-top: 46px; }
.client-logo {
  flex: none; width: 168px; height: 84px; margin-right: 22px;
  display: grid; place-items: center;
  background: #fff; border-radius: 14px;
  transition: transform .45s var(--ease-out), box-shadow .45s;
}
.client-logo img { max-width: 78%; max-height: 62%; object-fit: contain; }
.client-logo:hover { transform: translateY(-5px); box-shadow: 0 14px 34px rgba(var(--ckpt-rgb), .25); }

/* ---------- 影片 ---------- */
.film { text-align: center; }
.film-embed {
  position: relative; max-width: 1080px; margin: 52px auto 0;
  aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .6), 0 0 0 1px rgba(var(--ckpt-rgb), .08);
}
.film-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- CTA ---------- */
.cta-final { position: relative; overflow: hidden; text-align: center; }
.cta-final .bg-beam {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(700px 320px at 20% 90%, rgba(var(--ent-rgb), .12), transparent 60%),
    radial-gradient(900px 400px at 50% 10%, rgba(var(--ckpt-rgb), .14), transparent 60%),
    radial-gradient(700px 320px at 80% 90%, rgba(var(--safe-rgb), .12), transparent 60%);
}
.cta-final h2 { font-size: clamp(32px, 5vw, 72px); font-weight: 900; line-height: 1.12; letter-spacing: -.02em; }
.cta-final p { max-width: 560px; margin: 22px auto 0; color: var(--txt-dim); font-size: 16px; line-height: 1.85; }
.cta-final .hero-cta { justify-content: center; }
