/* ======================================================
   ROOT & GLOBAL
====================================================== */
:root{
  --hp-bg: #e9eeff;
  --hp-bg-soft: #f5f7ff;
  --hp-shell: #fdfdff;
  --hp-accent: #4d6bff;
  --hp-accent-soft: #9fb4ff;
  --hp-accent-neon: #6ff3ff;
  --hp-text-main: #1a2340;
  --hp-text-sub: #5d6685;
  --hp-pill-bg: #ffffff;
  --hp-pill-border: rgba(150,170,230,.55);
  --hp-radius-xl: 32px; 
  --hp-card-bg: rgba(255,255,255,0.22);
  --hp-card-border: rgba(255,255,255,0.38);
  --hp-glow: rgba(120,150,255,0.36);
  --hp-radius: 24px; 
  --hp-shadow-soft: 0 28px 60px rgba(15,35,95,.25);
  --muted: #5c6482;
}

/* ======================================================
   RESET & BASE
====================================================== */
*, *::before, *::after{
  box-sizing: border-box;
}

html, body{
  margin: 0;
  padding: 0;
}

body{
  font-family: 'IBM Plex Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: radial-gradient(circle at top,#f2f4ff,#e1e7ff 48%,#dae2ff 100%);
  color: var(--hp-text-main);
}

/* 通用區塊 */
.section{
  padding: 80px 20px;
}

.section-title{
  text-align: center;
  margin: 0 auto 40px;
  max-width: 720px;
}

.section-title h2{
  font-size: 1.9rem;
  margin: 0 0 10px;
}

.section-title p{
  color: var(--hp-text-sub);
  margin: 0;
}

/* ======================================================
   TOPBAR
====================================================== */
.topbar{
  position: relative;
  z-index: 10000;
  background: #050f3a;
  color: #e3e8ff;
  font-size: 12px;
}

.topbar-inner{
  max-width: 1440px;
  margin: 0 auto;
  padding: 6px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar-tagline strong{
  color: #4fe2ff;
}

.topbar-left{
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-right{
  display: flex;
  align-items: center;
  gap: 12px;
}
/* ======================================================
   NAV – GLOBAL (DESKTOP + MOBILE)
====================================================== */
.nav{
  position: sticky;
  top: 0;
  z-index: 9000;
  backdrop-filter: blur(14px);
  background: linear-gradient(to bottom,rgba(239,244,255,.96),rgba(239,244,255,.72));
  border-bottom: 1px solid rgba(120,140,255,.18);
}

.nav-inner{
  max-width: 1440px;
  margin: 0 auto;
  padding: 10px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* ======================================================
   MENU – DESKTOP
====================================================== */
.nav-menu{
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a,
.nav-link-btn{
  border: 0;
  background: none;
  font: inherit;
  color: #4a5070;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: background .25s,color .25s,transform .25s;
}

.nav-menu a:hover,
.nav-link-btn:hover{
  background: rgba(82,113,255,.10);
  color: #5271ff;
  transform: translateY(-1px);
}

/* ======================================================
   SUB MENU – CLICK ONLY (NO HOVER)
====================================================== */
.has-sub{
  position: relative;
}

.nav-sub{
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: #fff;
  border-radius: 16px;
  padding: 10px;
  list-style: none;
  box-shadow: 0 18px 40px rgba(7,13,42,.25);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity .22s ease, transform .22s ease;
}

/* ✅ ONLY click (.open) can open */
.has-sub.open > .nav-sub{
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ======================================================
   2nd LEVEL
====================================================== */
.nav-sub-2{
  margin: 6px 0;
  padding: 0;
}

.nav-sub-2 li{
  list-style: none;
}

.nav-sub-2 a{
  display: block;
  padding: 6px 10px;
  border-radius: 10px;
}

.nav-sub-2 a:hover{
  background: rgba(82,113,255,.08);
}

/* ======================================================
   TOGGLE (HAMBURGER)
====================================================== */
.nav-toggle{
  display: none;
  flex-direction: column;
  gap: 4px;
  border: 0;
  background: none;
  cursor: pointer;
}

.nav-toggle span{
  width: 22px;
  height: 2px;
  border-radius: 99px;
  background: #303552;
}

/* ======================================================
   MOBILE
====================================================== */
@media (max-width:900px){

  .nav-toggle{ display: flex; }

  .nav-menu{
    position: absolute;
    top: 100%;
    left: 16px;
    right: 16px;
    margin-top: 10px;
    background: #fff;
    border-radius: 18px;
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    box-shadow: 0 18px 40px rgba(7,13,42,.35);

    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height .3s ease, opacity .3s ease;
    z-index: 99999;
  }

  .nav-menu.open{
    max-height: 2000px;
    opacity: 1;
    overflow: visible;
  }

  /* mobile sub menu */
  .nav-sub{
    position: static;
    box-shadow: none;
    opacity: 1;
    transform: none;
    display: none;
    margin-left: 14px;
    padding: 6px 0;
  }

  .has-sub.open > .nav-sub{
    display: block;
  }

  /* mobile language entry */
  .nav-lang-mobile{
    display: block;
    margin-bottom: 6px;
  }
}

/* ======================================================
   LANGUAGE SWITCH
====================================================== */
.lang-switch{
  position: relative;
}

.lang-btn{
  border: 1px solid rgba(255,255,255,.25);
  background: #0d1238;
  color: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-menu{
  display: none;
  position: absolute;
  top: 120%;
  right: 0;
  background: #0e133f;
  padding: 8px;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0,0,0,.35);
  min-width: 160px;
  z-index: 999999;
}

.lang-menu.open{
  display: block;
}

.lang-menu button{
  width: 100%;
  border: 0;
  background: none;
  color: #d3d9ff;
  text-align: left;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
}

.lang-menu button:hover{
  background: rgba(255,255,255,.10);
  color: #fff;
}

/* ======================================================
   MAIN & SECTION HEADER
====================================================== */
main{
  max-width: 1440px;
  margin: 0 auto;
  padding: 32px 32px 80px;
}

.section{
  margin-top: 80px;
}

.section-header h2{
  font-size: 22px;
  margin: 0 0 4px;
}

.section-header p{
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

/* ======================================================
   GLOBAL REVEAL
====================================================== */
.reveal{
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 480ms ease-out, transform 480ms ease-out;
  will-change: opacity, transform;
}

.reveal.visible{
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1{ transition-delay: 120ms; }
.reveal-delay-2{ transition-delay: 220ms; }
.reveal-delay-3{ transition-delay: 320ms; }

/* ======================================================
   GLASS CARD – GENERIC
====================================================== */
.glass-card{
  padding: 28px 24px;
  border-radius: var(--hp-radius);
  background: var(--hp-card-bg);
  border: 1px solid var(--hp-card-border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 22px 60px var(--hp-glow),
    inset 0 0 28px rgba(255,255,255,0.45);
  transition: 0.35s ease;
  animation: cardFloat 8s ease-in-out infinite;
}

.glass-card:hover{
  transform: translateY(-8px) scale(1.02);
  box-shadow:
    0 32px 75px rgba(120,130,255,0.38),
    inset 0 0 34px rgba(255,255,255,0.62);
}

@keyframes cardFloat{
  0%,100%{ transform: translateY(0); }
  50%{ transform: translateY(-8px); }
}

.card-icon{
  font-size: 2rem;
  margin-bottom: 16px;
  color: #6e7ff5;
}

/* ======================================================
   HERO – VISION PRO GLASS
====================================================== */
.hero-smart{
  position: relative;
  overflow: hidden;
  padding: 72px clamp(20px,6vw,80px) 88px;
}

.hero-bg{
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-cloud{
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 0 0,rgba(255,255,255,.85) 0,transparent 55%),
    radial-gradient(circle at 80% 0,rgba(171,188,255,.6) 0,transparent 60%),
    radial-gradient(circle at 0 100%,rgba(205,222,255,.65) 0,transparent 65%);
  opacity: .9;
}

.hero-cloud.cloud-2{
  inset: -10%;
  filter: blur(18px);
  opacity: .6;
}

.hero-beam{
  position: absolute;
  inset: 0;
  mix-blend-mode: screen;
}

.hero-shell{
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0,1.15fr) minmax(0,1.05fr);
  gap: 40px;
  align-items: center;
}

.hero-left{
  position: relative;
  z-index: 2;
}

.hero-kicker{
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--hp-text-sub);
  margin: 0 0 10px;
}

.hero-title{
  font-size: clamp(2.4rem,3vw,3rem);
  line-height: 1.15;
  margin: 0 0 14px;
}

.hero-title-accent{
  color: var(--hp-accent);
}

.hero-desc{
  margin: 0 0 22px;
  font-size: .95rem;
  color: var(--hp-text-sub);
}

.hero-cta-row{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.pill{
  border-radius: 999px;
  padding: 8px 18px;
  font-size: .88rem;
  border: 1px solid var(--hp-pill-border);
  background: var(--hp-pill-bg);
  box-shadow: 0 8px 24px rgba(90,110,190,.18);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition:
    transform .18s ease-out,
    box-shadow .18s ease-out,
    background .18s ease-out,
    color .18s ease-out;
}

.pill.primary{
  background: linear-gradient(135deg,#4f7dff,#6ed5ff);
  color: #fff;
  border-color: transparent;
}

.pill:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(40,70,160,.26);
}

.hero-tags{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: .8rem;
  color: #717aa2;
}

.hero-tags .tag{
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(248,250,255,.95);
  border: 1px solid rgba(200,210,250,.55);
}

/* HERO 右側卡 */
.hero-right{
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.orbit-card{
  position: relative;
  width: 100%;
  max-width: 430px;
  aspect-ratio: 4/5;
  border-radius: var(--hp-radius-xl);
  background: radial-gradient(circle at 20% 0,#fefeff 0,#edf2ff 50%,#dde6ff 100%);
  box-shadow:
    0 26px 80px rgba(40,60,130,.35),
    0 0 0 1px rgba(255,255,255,.8);
  overflow: hidden;
}

.orbit-bg-grid{
  position: absolute;
  inset: -60px;
  background-image:
    radial-gradient(circle at 10% 0,rgba(255,255,255,.9) 0,transparent 55%),
    radial-gradient(circle at 80% 100%,rgba(159,180,255,.4) 0,transparent 70%),
    repeating-linear-gradient(
      135deg,
      rgba(165,183,255,.15) 0,
      rgba(165,183,255,.15) 1px,
      transparent 1px,
      transparent 10px
    );
  opacity: .9;
  mix-blend-mode: screen;
}

.orbit-beam{
  position: absolute;
  inset: 8%;
  border-radius: 32px;
  pointer-events: none;
  background:
    conic-gradient(from 210deg,
      transparent 0,
      rgba(133,187,255,.13) 4%,
      rgba(111,243,255,.45) 9%,
      rgba(133,187,255,.08) 16%,
      transparent 25%,
      transparent 100%);
  mix-blend-mode: screen;
  opacity: .8;
  animation: orbitBeamSweep 22s linear infinite;
}

.orbit-beam-2{
  inset: 18%;
  filter: blur(4px);
  opacity: .5;
  animation-duration: 32s;
  animation-direction: reverse;
}

@keyframes orbitBeamSweep{
  from{ transform: rotate(0deg); }
  to{ transform: rotate(360deg); }
}

.orbit-stage{
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  touch-action: none;
}

.orbit-stage:active{
  cursor: grabbing;
}

.orbit-sphere{
  position: relative;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 18%,#ffffff 0,#f7f9ff 35%,#bccbff 70%,#8e9fff 100%);
  box-shadow:
    0 28px 80px rgba(40,60,140,.45),
    inset 0 0 28px rgba(255,255,255,1);
}

.orbit-sphere-inner{
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 15%,#ffffff 0,#f4f7ff 40%,#c2d0ff 100%);
  box-shadow:
    0 18px 40px rgba(45,70,150,.35),
    inset 0 0 22px rgba(255,255,255,.9);
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbit-core-label{
  text-align: center;
  z-index: 2;
}

.core-title{
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: .02em;
  margin-bottom: 4px;
}

.core-sub{
  font-size: .8rem;
  color: var(--hp-text-sub);
}

/* 水波紋 */
.wave{
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  border: 1px solid rgba(159,180,255,.6);
  box-shadow: 0 0 18px rgba(159,180,255,.9);
  opacity: 0;
  mix-blend-mode: screen;
  animation: wavePulse 5.5s ease-out infinite;
}
.wave-2{ animation-delay: 1.4s; }
.wave-3{ animation-delay: 2.8s; }

@keyframes wavePulse{
  0%{ transform: scale(.7); opacity: .6; }
  70%{ transform: scale(1.25); opacity: 0; }
  100%{ transform: scale(1.5); opacity: 0; }
}

/* 節點 pill */
.orbit-layer{
  position: absolute;
  inset: 0;
}

.orbit-node{
  position: absolute;
  border: none;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: .8rem;
  background: radial-gradient(circle at 30% 10%,#ffffff 0,#f8fbff 40%,#cfe0ff 100%);
  color: var(--hp-text-main);
  box-shadow:
    0 12px 32px rgba(70,100,180,.35),
    0 0 0 1px rgba(255,255,255,.9);
  transform: translate(-50%,-50%);
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  transition:
    box-shadow .18s ease-out,
    transform .18s ease-out,
    background .18s ease-out;
}

.orbit-node:hover{
  box-shadow:
    0 16px 38px rgba(40,70,150,.4),
    0 0 0 1px rgba(127,196,255,.9);
}

/* 粒子場 */
.particle-field{
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.particle{
  position: absolute;
  width: 2.5px;
  height: 2.5px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  box-shadow: 0 0 12px rgba(255,255,255,.9);
  opacity: 0;
  animation: particleRise linear infinite;
}

@keyframes particleRise{
  0%{ transform: translate3d(0,12px,0); opacity: 0; }
  10%{ opacity: .7; }
  80%{ opacity: .7; }
  100%{ transform: translate3d(0,-42px,0); opacity: 0; }
}

/* ======================================================
   ViDA BLOCK / 右側滑動軸
====================================================== */
.vida-right{
  width: 72%;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.vida-row{
  display: flex;
  gap: 26px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 10px;
}

.vida-row::-webkit-scrollbar{
  display: none;
}

.vida-scroll{
  display: flex;
  gap: 28px;
  overflow-x: auto;
  padding: 6px 6px 16px 6px;
  scrollbar-width: none;
}

.vida-scroll::-webkit-scrollbar{
  display: none;
}

/* 下方流動軌道 */
.vida-scroll-track{
  width: 100%;
  height: 4px;
  background: #ced6ff55;
  border-radius: 30px;
  margin-top: 22px;
  position: relative;
  overflow: hidden;
}

.vida-scroll-track::after{
  content: "";
  position: absolute;
  left: -30%;
  top: 0;
  height: 100%;
  width: 30%;
  background: linear-gradient(90deg,#8ea4ff 0%,#d7dfff 100%);
  animation: pipeline 3s linear infinite;
}

@keyframes pipeline{
  0%{ left: -30%; }
  100%{ left: 100%; }
}

/* ViDA 卡片 */
.vida-block{
  position: relative;
  min-width: 280px;
  background: rgba(255,255,255,0.25);
  border: 1px solid rgba(255,255,255,0.45);
  backdrop-filter: blur(18px) saturate(140%);
  padding: 26px;
  border-radius: 20px;
  box-shadow:
    0 14px 34px rgba(50,70,150,.15),
    inset 0 1px 1px rgba(255,255,255,.55),
    inset 0 -2px 4px rgba(50,70,140,.2);
  transition: .3s;
}

.vida-block:hover{
  transform: translateY(-8px);
  box-shadow:
    0 20px 50px rgba(80,110,200,.25),
    0 0 20px rgba(120,160,255,.42);
}

/* 底部光條 */
.vida-block::after{
  content: "";
  position: absolute;
  left: 40px;
  right: 40px;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg,#8fa8ff 0%,#d6ddff 60%,transparent 100%);
  border-radius: 4px;
  opacity: .6;
}

.vida-block h4{
  margin-bottom: 12px;
  color: #1c2f68;
  font-size: 18px;
  font-weight: 700;
}

.vida-block ul{
  padding-left: 16px;
  margin: 0;
  line-height: 1.7;
  font-size: 14px;
}

.vida-block ul li{
  margin: 4px 0;
  position: relative;
}

.vida-block ul li::before{
  content: "•";
  color: #5d76ff;
  font-weight: 700;
  margin-right: 6px;
}

/* ViDA Scroll Reveal */
.reveal-tech{
  opacity: 0;
  transform: translateY(30px);
  transition: .9s cubic-bezier(.17,.8,.3,1);
}

.reveal-tech.visible{
  opacity: 1;
  transform: translateY(0);
}

/* ======================================================
   CONTACT LOCATIONS + CITYNEURO — FULL INTEGRATED VERSION
   (HiPower Glass UI + Neon Interaction + CityNeuro BG)
====================================================== */

.contact-locations{
  padding:80px 0;
  background:#eef1ff;
  position:relative;
  overflow:hidden;
}

/* 覆蓋 CityNeuro 背景在底層 */
.cityneuro-bg{
  position:absolute;
  inset:0;
  overflow:hidden;
  background:linear-gradient(180deg,#f7faff 0%,#f9fbff 40%,#ffffff 100%);
  z-index:0;
}

/* 城市光暈 */
.cityneuro-bg::before{
  content:"";
  position:absolute;
  bottom:0;
  left:50%;
  width:140%;
  height:50%;
  transform:translateX(-50%);
  background:
    linear-gradient(to top,rgba(180,195,255,0.25),rgba(255,255,255,0)),
    url('img/bg/wireframe-light.png');
  background-size:cover;
  opacity:.28;
}

/* 品牌光束 */
.cityneuro-bg::after{
  content:"";
  position:absolute;
  top:10%;
  left:-10%;
  width:160%;
  height:160%;
  background:radial-gradient(
    circle at 30% 20%,
    rgba(120,150,255,0.18),
    rgba(120,150,255,0.05),
    transparent 70%
  );
  filter:blur(40px);
  opacity:.55;
}

/* CityNeuro Canvas Layer */
#cityGrid,#cityNodes,#cityPulse{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  pointer-events:none;
}
#cityPulse{ mix-blend-mode:soft-light; }

/* ---------------------------- SHELL ---------------------------- */
.cl-shell{
  max-width:1280px;
  margin:0 auto;
  padding:0 24px;
  text-align:center;
  position:relative;
  z-index:10;
}

.cl-title{
  font-size:32px;
  font-weight:800;
  color:#1b2340;
}

.cl-subtitle{
  margin-top:6px;
  color:#555;
}

/* ---------------------------- TABS ---------------------------- */
.country-tabs{
  display:flex;
  justify-content:center;
  gap:18px;
  margin:28px 0 40px;
}

.country-tab{
  padding:10px 22px;
  border-radius:10px;
  border:1px solid #bad1ff;
  background:#ffffff;
  color:#3b5bff;
  cursor:pointer;
  font-size:15px;
  transition:.25s;
}

.country-tab.active{
  background:#4c6fff;
  color:#fff;
  border-color:#4c6fff;
}

/* ======================================================
   Fade + Lift Entrance Animation (Cards)
====================================================== */

.cl-card,
.contact-card {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeLift 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* HQ 地區卡延遲時間 */
.cl-card {
  animation-delay: 0.15s;
}

/* 聯絡卡分別延遲 */
.contact-card:nth-child(1) { animation-delay: 0.28s; }
.contact-card:nth-child(2) { animation-delay: 0.38s; }
.contact-card:nth-child(3) { animation-delay: 0.48s; }
.contact-card:nth-child(4) { animation-delay: 0.58s; }

@keyframes fadeLift {
  0% {
    opacity: 0;
    transform: translateY(24px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ---------------------------- GLASS CARDS ---------------------------- */

.cl-cards{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(360px,1fr));
  gap:32px;
}

.glass{
  background:rgba(255,255,255,0.25);
  border-radius:18px;
  border:1px solid rgba(255,255,255,0.4);
  backdrop-filter:blur(16px);
  box-shadow:0 10px 30px rgba(0,0,40,0.08);
  text-align:left;
  transition:.3s;
  position:relative;
  padding:32px 34px;
  z-index:2;
}

/* ===== Glass Hover ===== */
.glass:hover{
  transform:translateY(-8px);
  background:rgba(245,248,255,0.55);
  border-color:rgba(140,160,255,0.8);
  box-shadow:
    0 26px 60px rgba(80,110,210,0.28),
    inset 0 0 40px rgba(255,255,255,0.55);
  filter:brightness(1.05) saturate(1.12);
  --pulse-boost:1;
}

/* Title */
.cl-card-title{
  font-size:20px;
  font-weight:700;
  color:#1b2340;
  margin-bottom:16px;
  padding-left:8px;
  transition:.3s;
}

.glass:hover .cl-card-title{
  color:#12204b;
}

/* Info List */
.cl-info{
  list-style:none;
  padding:0;
  margin:0 0 20px;
}
.cl-info li{
  margin-bottom:10px;
  color:#3d4458;
  padding-left:8px;
  transition:.28s;
}
.cl-info i{
  color:#5271ff;
  margin-right:6px;
}

.glass:hover .cl-info li{
  color:#1d2e66;
}

/* 按鈕 */
.cl-btn{
  width:100%;
  padding:12px;
  background:#1b2340;
  color:white;
  border-radius:12px;
  border:none;
  cursor:pointer;
  margin-bottom:20px;
  transition:.25s;
}
.cl-btn:hover{ background:#2b3a60; }

/* Map */
.cl-map iframe{
  border-radius:34px;
  width:100%;
}

/* ====================== 底部光條 ====================== */
.glass::after{
  content:"";
  position:absolute;
  left:34px;
  right:34px;
  bottom:0;
  height:3px;
  border-radius:99px;
  background:linear-gradient(
    90deg,
    rgba(120,150,255,0.25),
    rgba(220,230,255,0.75),
    rgba(120,150,255,0.25)
  );
  opacity:0;
  transform:translateY(4px);
  transition:.35s;
}
.glass:hover::after{
  opacity:1;
  transform:translateY(0);
}

/* ---------------------------- CONTACT CARDS ---------------------------- */

.contact-cards{
  margin-top:50px;
  display:grid;
  gap:24px;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  position:relative;
  z-index:10;
}

.contact-card{
  padding:26px;
  text-align:center;
  transition:.25s;
  border-radius:18px;
  background:rgba(255,255,255,0.25);
  border:1px solid rgba(255,255,255,0.38);
  backdrop-filter:blur(16px);
  box-shadow:0 10px 26px rgba(0,0,40,0.08);
  position:relative;
}

.contact-card i{
  font-size:28px;
  color:#4c6fff;
  margin-bottom:10px;
  transition:.28s;
}

.cc-title{
  font-size:16px;
  color:#333;
  transition:.28s;
}

.cc-value{
  font-size:15px;
  color:#2e57ff;
  transition:.28s;
}

/* Hover 效果（與 cl-card 同規格） */
.contact-card:hover{
  transform:translateY(-8px);
  background:rgba(245,248,255,0.55);
  border-color:rgba(140,160,255,0.8);
  box-shadow:
    0 26px 60px rgba(80,110,210,0.28),
    inset 0 0 40px rgba(255,255,255,0.55);
  filter:brightness(1.05) saturate(1.12);
  --pulse-boost:1;
}

.contact-card:hover i{
  transform:scale(1.18);
  color:#2d4dff;
  filter:drop-shadow(0 0 6px rgba(120,140,255,0.45));
}

.contact-card:hover .cc-title{
  color:#12204b;
}
.contact-card:hover .cc-value{
  color:#1d2e66;
}

/* 底部光條 */
.contact-card::after{
  content:"";
  position:absolute;
  left:30px;
  right:30px;
  bottom:0;
  height:3px;
  border-radius:99px;
  background:linear-gradient(
    90deg,
    rgba(120,150,255,0.25),
    rgba(220,230,255,0.75),
    rgba(120,150,255,0.25)
  );
  opacity:0;
  transform:translateY(4px);
  transition:.35s;
}
.contact-card:hover::after{
  opacity:1;
  transform:translateY(0);
}

/* ---------------------------- MAP MODAL ---------------------------- */
.map-modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.55);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:9999;
}

.modal-content{
  width:90%;
  max-width:900px;
  padding:16px;
  position:relative;
  background:#fff;
  border-radius:20px;
}

.modal-close{
  position:absolute;
  right:18px;
  top:10px;
  cursor:pointer;
  font-size:28px;
  color:#333;
}

/* ======================================================
   FOOTER
====================================================== */
.footer{
  background: #05001c;
  color: #e9edff;
  padding: 26px 20px 20px;
}

.footer-shell{
  max-width: 1440px;
  margin: 0 auto 10px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
  font-size: 14px;
}

/* Footer links color */
.footer a,
.footer-meta a,
.footer-links a{
  color: #a69bf7 !important;
  text-decoration: none;
}

.footer a:hover,
.footer-meta a:hover,
.footer-links a:hover{
  color: #a69bf7 !important;
  text-decoration: underline;
}

/* Company */
.footer-company .footer-title{
  margin: 0 0 6px;
  font-size: 20px;
  line-height: 1.2;
}

.footer-logo-wrap{
  display: inline-block;
  margin: 4px 0 10px;
}

.footer-logo{
  width: 150px;
  height: auto;
  display: block;
}

.footer-tagline{
  font-size: 12px;
  color: #9da5f5;
  margin-top: 0;
}

/* Contact */
.footer-contact p{
  margin: 1px 0;
  line-height: 1.3;
}

/* Social */
.footer-social{
  display: flex;
  gap: 12px;
}

.footer-social a{
  width: 28px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

/* Meta */
.footer-meta{
  max-width: 1440px;
  margin: 0 auto;
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #9da5f5;
}

.footer-links{
  display: flex;
  gap: 11px;
}

/* ======================================================
   RWD – LAYOUT
====================================================== */
@media (max-width: 1100px){
  .vida-layout{
    flex-direction: column;
  }

  .vida-left{
    width: 100%;
    position: relative;
    top: 0;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 12px;
  }

  .vida-right{
    width: 100%;
  }
}

@media (max-width: 900px){
  main{
    padding: 24px 16px 60px;
  }

  .hero-smart{
    padding: 52px 18px 60px;
  }

  .hero-shell{
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-right{
    order: -1;
  }

  .orbit-card{
    max-width: 360px;
    margin: 0 auto;
  }

  .footer-shell{
    grid-template-columns: 1fr;
    text-align: left;
    gap: 20px;
  }

  .footer-meta{
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    text-align: left;
  }
}

@media (max-width: 700px){
  .vida-left{
    grid-template-columns: 1fr 1fr;
  }

  .vida-block{
    min-width: 90%;
  }
}

@media (max-width: 640px){
  .section{
    padding: 60px 16px;
  }

  .hero-title{
    font-size: 2.1rem;
  }

  .orbit-sphere{
    width: 190px;
    height: 190px;
  }

  .orbit-sphere-inner{
    inset: 14%;
  }
}

/* ======================================================
   HiPower Motion System (HMS) – Global Animations
   放在整份 CSS 最後
====================================================== */

:root{
  --hm-ease: cubic-bezier(.16, 1, .3, 1);
}

/* 基本動畫狀態 */
.hm-animate{
  opacity:0;
  transform:translate3d(0, 18px, 0);
  transition:
    opacity .72s var(--hm-ease),
    transform .72s var(--hm-ease),
    filter .72s var(--hm-ease);
  will-change:opacity, transform, filter;
}

/* 進場後狀態 */
.hm-animate.hm-in{
  opacity:1;
  transform:translate3d(0, 0, 0);
  filter:none;
}

/* ========= 方向變化（data-motion） ========= */

/* 往上淡入 */
[data-motion="fade-up"]{
  transform:translate3d(0, 24px, 0);
}
[data-motion="fade-up"].hm-in{
  transform:translate3d(0, 0, 0);
}

/* 往下淡入 */
[data-motion="fade-down"]{
  transform:translate3d(0, -24px, 0);
}
[data-motion="fade-down"].hm-in{
  transform:translate3d(0, 0, 0);
}

/* 往左淡入（從右側滑入） */
[data-motion="fade-left"]{
  transform:translate3d(24px, 0, 0);
}
[data-motion="fade-left"].hm-in{
  transform:translate3d(0, 0, 0);
}

/* 往右淡入（從左側滑入） */
[data-motion="fade-right"]{
  transform:translate3d(-24px, 0, 0);
}
[data-motion="fade-right"].hm-in{
  transform:translate3d(0, 0, 0);
}

/* 縮放 + 淡入（適合卡片 / 圓形物件） */
[data-motion="scale-fade"]{
  transform:scale(.94);
}
[data-motion="scale-fade"].hm-in{
  transform:scale(1);
}

/* y 軸位移 + 微縮放 */
[data-motion="lift-soft"]{
  transform:translate3d(0, 26px, 0) scale(.98);
}
[data-motion="lift-soft"].hm-in{
  transform:translate3d(0, 0, 0) scale(1);
}

/* ===============================
   卡片類型細緻調整
================================ */

/* HERO 左文案 & 右球體，略帶銳利感 */
.hero-smart .hero-left.hm-animate,
.hero-smart .hero-right.hm-animate{
  transition-duration:.80s;
}

/* Solutions Map 卡片 / Node */
.section-solutions .solutions-node.hm-animate{
  transition-duration:.78s;
}

/* ViDA / Tech 卡片 */
.vida-block.hm-animate{
  transition-duration:.85s;
}

/* 地區卡 + 聯絡卡（沿用你剛剛的玻璃質感） */
.cl-card.hm-animate,
.contact-card.hm-animate{
  transition-duration:.9s;
}

/* Timeline / 歷程軸項目 */
.timeline-item.hm-animate{
  transition-duration:.8s;
}

/* Footer 整塊淡入 */
.footer.hm-animate{
  transition-duration:.8s;
}

/* ===============================
   Hover 不受進場動畫影響
================================ */
.hm-animate:hover{
  /* 保留既有 hover transform，由個別元件覆蓋 */
}

/* ===============================
   小螢幕：動畫距離稍微減少，避免太晃
================================ */
@media (max-width: 640px){
  .hm-animate{
    transform:translate3d(0, 14px, 0);
  }
  [data-motion="fade-left"],
  [data-motion="fade-right"]{
    transform:translate3d(0, 14px, 0);
  }
}
