/* ===============================
   MRNM OVERVIEW
================================ */
.mrnm-overview{
  padding: 96px 0;
  background: linear-gradient(180deg,#f5f7ff,#ffffff);
}

/* MRNM 左側文字區塊 */
.mrnm-copy{
  transform: translateY(-36px); 
}

.mrnm-wrap{
  max-width:1280px;
  margin:auto;
  padding:0 40px;

  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:64px;
  align-items:center;
}

/* LEFT */
.mrnm-eyebrow{
  font-size:13px;
  letter-spacing:.14em;
  color:#7c86c7;
}

.mrnm-title{
  font-size:42px;
  line-height:1.15;
  margin:14px 0;
}

.mrnm-title span{
  color:#4f6cff;
}

.mrnm-desc{
  font-size:15px;
  line-height:1.8;
  color:#4b5563;
  max-width:520px;
}

.mrnm-steps{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:28px;
}

.mrnm-step{
  padding:8px 16px;
  border-radius:999px;
  font-size:13px;
  border:1px solid rgba(180,190,255,.7);
  background: rgba(59,130,246,.18);
  color:#47518b;
  cursor:pointer;

  box-shadow:0 8px 22px rgba(150,170,230,.25);
  transition:.25s;
}

.mrnm-step.active,
.mrnm-step:hover{
  color:#1e3a8a;
  border-color:#6b7cff;
  box-shadow:0 12px 30px rgba(99,102,241,.35);
}

/* RIGHT */
.mrnm-glass-card{
  position:relative;
  height:420px;
  border-radius:32px;
  overflow:hidden;

  background:rgba(255,255,255,.82);
  backdrop-filter:blur(22px);
  border:1px solid rgba(255,255,255,.6);

  box-shadow:
    0 30px 80px rgba(40,60,140,.25),
    inset 0 0 0 1px rgba(255,255,255,.5);
}

#mrnmCanvas{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  display:block;

  background:   
    radial-gradient(120% 90% at 20% 10%,
      rgba(255,255,255,.18),
      transparent 55%),
    
    radial-gradient(80% 60% at 85% 25%,
      rgba(110,140,255,.22),
      transparent 60%),
    
    radial-gradient(60% 50% at 70% 85%,
      rgba(255,210,160,.18),
      transparent 65%),
    
    linear-gradient(180deg,
      #0b1224 0%,
      #070b1a 55%,
      #050814 100%);

  border-radius:26px;

  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.08),
    inset 0 -40px 80px rgba(0,0,0,.55),
    0 40px 90px rgba(10,15,40,.55);
}

.mrnm-card-badge{
  position:absolute;
  left:16px;
  bottom:16px;
  transform: translateZ(20px);
  animation: badgeFloat 6s ease-in-out infinite;
  background:rgba(255,255,255,.88);
  backdrop-filter:blur(10px);
  padding:12px 16px;
  border-radius:16px;

  box-shadow:0 10px 26px rgba(120,140,210,.25);
}

@keyframes badgeFloat{
  0%,100%{ transform: translateY(0) translateZ(20px); }
  50%{ transform: translateY(-6px) translateZ(24px); }
}

.mrnm-card-badge strong{
  display:block;
  font-size:14px;
}

.mrnm-card-badge span{
  font-size:12px;
  color:#5b6388;
}

/* iOS Glass 指標卡 */
.mrnm-metrics{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
  margin-top:36px;
}

/* ===============================
   MRNM – RWD PATCH
================================ */

/* 平板以下 */
@media (max-width:1024px){
  .mrnm-wrap{
    grid-template-columns: 1fr;
    gap:56px;
  }

  .mrnm-copy{
    transform:none;
  }

  .mrnm-visual{
    max-width:720px;
    margin-inline:auto;
  }
}

/* 手機 */
@media (max-width:768px){
  .mrnm-overview{
    padding:72px 0;
  }

  .mrnm-title{
    font-size:32px;
    line-height:1.2;
  }

  .mrnm-desc{
    font-size:14px;
  }

  .mrnm-steps{
    gap:10px;
  }

  .mrnm-step{
    font-size:12px;
    padding:7px 14px;
  }

  .mrnm-glass-card{
    height:360px;
    border-radius:26px;
  }
}

/* 小手機 */
@media (max-width:480px){
  .mrnm-wrap{
    padding:0 20px;
  }

  .mrnm-title{
    font-size:28px;
  }

  .mrnm-glass-card{
    height:300px;
    border-radius:22px;
  }

  .mrnm-card-badge{
    left:12px;
    right:12px;
    bottom:12px;
    padding:10px 14px;
  }

  .mrnm-card-badge strong{
    font-size:13px;
  }

  .mrnm-card-badge span{
    font-size:11px;
  }
}

/* ===============================
   VIDA COREX – Platform Core
================================ */
.vida-corex{
  position:relative;
  padding: 120px 0;
  background:
    radial-gradient(circle at 15% 0%, #10172e, #04060c 60%);
  color:#dbe3ff;
  overflow:hidden;
}

/* 背景光暈 */
.vida-corex::after{
  content:"";
  position:absolute;
  right:0;
  top:0;
  width:60%;
  height:100%;
  background:radial-gradient(
    circle at 70% 50%,
    rgba(20,30,80,.22),
    transparent 72%
  );
  pointer-events:none;
}

/* ===============================
   WRAP – 唯一水平控制者
================================ */
.vida-corex-wrap{
  max-width:1400px;
  margin:auto;
  display:grid;
  grid-template-columns: minmax(320px, 38%) 1fr;
  align-items:center;
  gap:72px;

  /* 官網級安全邊界 */
  padding-inline: clamp(32px, 6vw, 96px);
}

/* ===============================
   LEFT CONTENT
================================ */
.vida-corex-head .corex-eyebrow{
  color:#6faeff;
  letter-spacing:.14em;
  font-size:12px;
  margin-bottom:14px;
}

.vida-corex-head h2{
  font-size:44px;
  line-height:1.15;
  color:#eef2ff;
}

.vida-corex-head h2 span{
  color:#6faeff;
}

.corex-desc{
  margin-top:22px;
  color:#a9b3d9;
  line-height:1.8;
  font-size:15px;
}

/* ===============================
   CARD GRID
================================ */
.vida-corex-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(220px, 1fr));
  gap:32px;
  align-items:stretch;
  justify-content:start;
  padding:0;
}

/* ===============================
   CARD BASE
================================ */
.corex-card{
  position:relative;
  padding:34px;
  border-radius:26px;

  /* iOS Glass */
  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,.92),
      rgba(235,240,255,.86)
    );

  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);

  border:1px solid rgba(120,160,255,.22);
  box-shadow:
    0 20px 60px rgba(0,0,0,.35),
    inset 0 1px 0 rgba(255,255,255,.35);

  transition:
    transform .55s cubic-bezier(.2,.7,.2,1),
    box-shadow .55s,
    border-color .55s;

  transform-style:preserve-3d;
  will-change: transform;
}

/* 中央卡片微浮起 */
.corex-card:nth-child(2){
  transform: translateY(-14px);
  border-color: rgba(160,180,255,.45);
  box-shadow:
    0 40px 120px rgba(90,130,255,.45);
}

/* Hover / Active */
.corex-card:hover{
  transform:
    translateY(-12px)
    scale(1.03)
    rotateX(2deg);
  box-shadow:
    0 50px 160px rgba(90,130,255,.55);
}

/* ===============================
   ICON 
================================ */
.corex-icon{
  width:52px;
  height:52px;
  border-radius:14px;
  display:grid;
  place-items:center;
  font-size:20px;
  margin-bottom:26px;

  background:rgba(255,255,255,.95);
  box-shadow:0 0 26px rgba(120,160,255,.35);
  position:relative;
  isolation:isolate;
}

.corex-icon.blue   { color:#7fb4ff; }
.corex-icon.purple{ color:#b39bff; }
.corex-icon.green { color:#7fe2b8; }

/* Halo */
.corex-icon::after{
  content:"";
  position:absolute;
  inset:-12px;
  border-radius:18px;
  background: radial-gradient(
    circle,
    rgba(120,160,255,.35),
    transparent 70%
  );
  filter: blur(14px);
  opacity:.45;
  z-index:-1;
  animation: icon-halo-breathe 3.6s ease-in-out infinite;
}

.corex-card:hover .corex-icon::after{
  opacity:.75;
  transform:scale(1.1);
}

/* ===============================
   TEXT
================================ */
.corex-card h3{
  font-size:18px;
  margin-bottom:14px;
  color:#1a2340;
}

.corex-card p{
  font-size:14px;
  color:#2b3146;
  line-height:1.7;
}

/* ===============================
   ANIMATIONS
================================ */
@keyframes icon-halo-breathe{
  0%   { opacity:.35; transform:scale(.92); }
  50%  { opacity:.65; transform:scale(1.05); }
  100% { opacity:.35; transform:scale(.92); }
}

/* ===============================
   RWD
================================ */
@media (max-width:1200px){
  .vida-corex-wrap{
    grid-template-columns:1fr;
    gap:56px;
  }
}

@media (max-width:820px){
  .vida-corex-grid{
    grid-template-columns:1fr;
  }
}
@media (max-width:480px){
  .vida-corex{
    padding:88px 0;
  }

  .vida-corex-head h2{
    font-size:30px;
  }

  .corex-desc{
    font-size:14px;
  }

  .corex-card{
    padding:26px;
  }
}

/* ===============================
   VIDA I/O SPEC
================================ */
.vida-io-spec{
  padding:100px 6vw;
  background:
    radial-gradient(circle at 20% 0%, #0f1735, #05070f 60%);
  color:#e8eeff;
}

.vida-io-wrap{ 
  max-width:1280px; 
  margin:auto; 
  align-items:center;
}

.vida-io-head h2{
  font-size:32px;
  margin-bottom:12px;
  align-items:center;
}

.vida-io-underline{
  display:block;
  width:64px;height:3px;
  background:#6fb6ff;
  align-items:center;
}

/* Grid */
.vida-io-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:60px;
  margin-top:48px;
}

/* Block */
.vida-io-block{
  position:relative;
}

/* Title */
.vida-io-title{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:20px;
}
.vida-io-icon{
  width:42px;height:42px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:rgba(120,160,255,.15);
  box-shadow:0 0 20px rgba(120,160,255,.35);
}
.vida-io-title h3{
  font-size:22px;
}
.vida-io-title em{
  font-style:normal;
  color:#9fb6ff;
  margin-left:6px;
}

/* Card */
.vida-io-card{
  border-radius:24px;
  padding:26px;
  background:linear-gradient(
    180deg,
    rgba(255,255,255,.12),
    rgba(255,255,255,.04)
  );
  backdrop-filter: blur(22px);
  box-shadow:0 30px 80px rgba(0,0,0,.45);
  transition:transform .5s ease, box-shadow .5s ease;
}
.vida-io-card:hover{
  transform:translateY(-8px);
  box-shadow:0 40px 120px rgba(0,0,0,.65);
}

/* Rows */
.vida-io-row{
  display:grid;
  grid-template-columns:120px 1fr;
  gap:14px;
  padding:14px 0;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.vida-io-row:last-child{ border-bottom:none; }

.vida-io-row strong{
  font-size:15px;
}
.vida-io-row small{
  display:block;
  color:#9aa6c6;
  margin-top:4px;
}

/* Tags */
.tag{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  align-self:start;
}
.tag.blue{ background:rgba(120,170,255,.18); color:#7fb4ff; }
.tag.purple{ background:rgba(160,140,255,.18); color:#a39bff; }
.tag.green{ background:rgba(120,220,180,.18); color:#7fe2b8; }

/* Notes */
.vida-io-note{
  margin-top:16px;
  padding:14px 16px;
  border-radius:14px;
  background:rgba(255,255,255,.08);
  font-size:13px;
  color:#c9d2ff;
}

/* RWD */
@media(max-width:960px){
  .vida-io-grid{ grid-template-columns:1fr; }
}

/* ===============================
   IO Interactive States
================================ */

/* Row hover sweep */
.vida-io-row{
  position:relative;
  overflow:hidden;
  transition:opacity .35s ease, transform .35s ease;
}

.vida-io-row::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(
    120deg,
    transparent 30%,
    rgba(255,255,255,.25),
    transparent 70%
  );
  transform:translateX(-120%);
  transition:transform .8s ease;
  pointer-events:none;
}

.vida-io-row.is-hover::after{
  transform:translateX(120%);
}

/* Highlight */
.vida-io-row.is-active{
  opacity:1;
  transform:translateX(6px);
}

.vida-io-row.is-dim{
  opacity:.25;
  transform:scale(.98);
}

/* Card subtle glow when active */
.vida-io-card.is-focus{
  box-shadow:
    0 0 0 1px rgba(140,180,255,.35),
    0 40px 120px rgba(80,120,255,.35);
}

/* ===============================
   VIDA Capability Glass
================================ */
.vida-capability-glass{
  padding:120px 6vw;
  background:radial-gradient(circle at 50% 0%, #0e1533, #05070f 70%);
}

.vcg-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:36px;
}

/* ===== Card ===== */
.vcg-card{
  position:relative;
  padding:36px 34px 38px;
  border-radius:26px;
  background:
    linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.02));
  backdrop-filter:blur(20px);
  box-shadow:
    0 40px 100px rgba(0,0,0,.55),
    inset 0 1px 0 rgba(255,255,255,.15);
  transition:.45s cubic-bezier(.22,.61,.36,1);
  color:#e8eeff;
}

.vcg-card::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.08);
  pointer-events:none;
}

.vcg-card:hover{
  transform:translateY(-8px);
  box-shadow:
    0 60px 140px rgba(0,0,0,.65),
    inset 0 1px 0 rgba(255,255,255,.25);
}

/* Highlight card */
.vcg-focus{
  box-shadow:
    0 0 0 1px rgba(140,255,200,.25),
    0 60px 140px rgba(0,0,0,.65);
}

/* ===== Icon ===== */
.vcg-icon{
  width:56px;
  height:56px;
  border-radius:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:22px;
  margin-bottom:22px;
  background:rgba(120,200,160,.25);
  color:#b9f3d8;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.25);
  transition:.4s ease;
}

.vcg-icon.glow{
  box-shadow:
    0 0 0 1px rgba(120,255,200,.35),
    0 0 30px rgba(120,255,200,.45);
}

.vcg-card:hover .vcg-icon{
  transform:translateY(-2px) scale(1.05);
}

/* ===== Text ===== */
.vcg-card h3{
  margin:0 0 18px;
  font-size:22px;
}

.vcg-card ul{
  margin:0;
  padding:0;
  list-style:none;
}

.vcg-card li{
  display:flex;
  align-items:center;
  gap:10px;
  margin:10px 0;
  color:#cfd7ff;
  opacity:.85;
  transition:.35s ease;
}

.vcg-card li::before{
  content:"";
  width:10px;
  height:10px;
  border-radius:50%;
  background:#6fe2b5;
  box-shadow:0 0 8px rgba(120,255,200,.6);
}

/* Hover reveal */
.vcg-card:hover li{
  opacity:1;
}

/* ===============================
   RWD
================================ */
@media(max-width:1100px){
  .vcg-grid{
    grid-template-columns:repeat(2,1fr);
  }
}

@media(max-width:640px){
  .vcg-grid{
    grid-template-columns:1fr;
  }
}

/* ===============================
   MRNM Canvas Tone Overlay
================================ */
.mrnm-canvas-overlay{
  position:absolute;
  inset:0;
  pointer-events:none;
  border-radius:26px;
  opacity:.85;
  transition:
    background .6s ease,
    box-shadow .6s ease;
}

/* 各狀態色調 */
.mrnm-canvas-overlay[data-tone="detect"]{
  background:
    radial-gradient(circle at 50% 45%,
      rgba(255,90,90,.35),
      transparent 60%);
}

.mrnm-canvas-overlay[data-tone="exchange"]{
  background:
    radial-gradient(circle at 50% 45%,
      rgba(120,160,255,.35),
      transparent 60%);
}

.mrnm-canvas-overlay[data-tone="platform"]{
  background:
    radial-gradient(circle at 50% 45%,
      rgba(160,120,255,.35),
      transparent 60%);
}

.mrnm-canvas-overlay[data-tone="archive"]{
  background:
    radial-gradient(circle at 50% 45%,
      rgba(120,220,180,.38),
      transparent 60%);
}

/* ===============================
   VIDA API ECOSYSTEM
================================ */
.vida-api-ecosys{
  padding:120px 6vw;
  background:
    radial-gradient(circle at 50% 0%, #b4c6ff03, #f3f3f5 65%);
  color:#edeef3;
  position:relative;
  overflow:hidden;         
  isolation:isolate;       
}

.vida-api-wrap{ max-width:1400px; margin:auto; }

.vida-api-head{
  text-align:center;
  margin-bottom:80px;
  
}
.vida-api-head h2{
  font-size:40px;
  margin-bottom:12px;
  color:#1a2340;
}
.vida-api-head h2 span{
  font-size:40px;
  margin-bottom:12px;
  color:#4b63ff;
}
.vida-api-head p{
  color:#454954;
}

/* GRID */
.vida-api-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:36px;
}

/* CARD */
.vida-api-card{
  position:relative;
  padding:34px;
  border-radius:28px;
  background:
    linear-gradient(
      180deg,
      rgba(248,249,252,.85),
      rgba(235,238,245,.55)
    ); 
  border: 1px solid rgba(30,60,180,.08);
  backdrop-filter:blur(24px);
  box-shadow:
    0 12px 28px rgba(60,80,160,.08),
    inset 0 0 0 1px rgba(160,180,255,.35);  
  transition:
    transform .55s cubic-bezier(.2,.8,.2,1),
    box-shadow .55s ease;
  transform-style:preserve-3d;
}

.vida-api-card.is-dim{
  opacity:.35;
  transform:scale(.96);
  filter:saturate(.7);
}

.vida-api-card:hover{
  transform:translateY(-10px) scale(1.015);
  box-shadow:
    0 24px 60px rgba(60,90,160,.18),
    inset 0 0 0 1px rgba(120,160,255,.45);
}


.vida-api-card:hover 
.vida-api-icon::after{
  opacity:1;
  animation:vidaPulse 3.8s ease-in-out infinite;
}

@keyframes vidaPulse{
  0%,100%{transform:scale(.9);opacity:.35}
  50%{transform:scale(1.05);opacity:.8}
}

.vida-api-card.is-core{
  outline:1px solid rgba(140,180,255,.25);
}

/* ICON */
.vida-api-icon{
  position:relative;
  width:52px;height:52px;
  border-radius:16px;
  display:grid;
  place-items:center;
  font-size:22px;
  margin-bottom:18px;
  background:rgba(255,255,255,.12);
  box-shadow:0 0 30px rgba(140,180,255,.35);
}

.vida-api-icon::after{
  content:"";
  position:absolute;
  inset:-10px;
  border-radius:22px;
  background:radial-gradient(circle,
    rgba(120,150,255,.45),
    transparent 65%
  );
  opacity:.0;
  filter:blur(14px);
  transition:.6s ease;
}

/* COLORS */
.blue{color:#4875f9}
.yellow{color:#ffd166}
.green{color:#7fe2b8}
.purple{color:#b9a8ff}
.red{color:#ff8a8a}
.cyan{color:#7ff5ff}

/* TEXT */
.vida-api-code{
  position:absolute;
  top:22px; right:26px;
  font-size:11px;
  opacity:.35;
}

/* ===== CARD LIGHT SWEEP ===== */
.vida-api-card::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  background:linear-gradient(
    120deg,
    transparent 30%,
    rgba(255,255,255,.6),
    transparent 70%
  );
  transform:translateX(-120%);
  transition:transform 1.1s ease;
  pointer-events:none;
}

.vida-api-card:hover::before{
  transform:translateX(120%);
}

.vida-api-card h3{
  font-size:20px;
  margin:12px 0;
  color:#3c3c3d;
}

.vida-api-card p,
.vida-api-card li{
  font-size:14px;
  line-height:1.7;
  color:#151516;
}

.vida-api-card ul{
  padding-left:18px;
  margin:10px 0;
}

.vida-api-card code{
  position:relative;
  display:block;
  margin-top:20px;
  padding:14px 16px;
  border-radius:14px;  
  background:rgba(120,140,255,68%);
  color:#24306a;
  border:1px solid rgba(120,150,255,.45);  
  font-size:14px;
  font-family: "JetBrains Mono","Fira Code",monospace;

  transform-style:preserve-3d;
  transition:
    transform .45s cubic-bezier(.2,.8,.2,1),
    box-shadow .45s ease,
    background .45s ease;

  box-shadow:
    0 14px 30px rgba(70,100,255,.18),
    inset 0 0 0 1px rgba(255,255,255,.6);
  overflow:hidden;
}

.vida-api-ecosys::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(
      90deg,
      #f3f3f5 0%,
      transparent 18%,
      transparent 82%,
      #f3f3f5 100%
    );
  pointer-events:none;
}

/* === 能量掃光層 === */
.vida-api-card code::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  background:linear-gradient(
    120deg,
    transparent 35%,
    rgba(255,255,255,.35),
    transparent 65%
  );
  transform:translateX(-100%);
  transition:transform 1.2s ease;
  pointer-events:none;
}

.vida-api-card::after{
  content:"";
  position:absolute;
  left:0; right:0; top:0;
  height:36%;
  background:linear-gradient(
    180deg,
    rgba(255,255,255,.35),
    transparent
  );
  pointer-events:none;
}

/* === 玻璃反射層 === */
.vida-api-card code::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(
      120% 80% at 10% 0%,
      rgba(255, 255, 255, 0.432),
      transparent 55%
    );
  opacity:.45;
  pointer-events:none;
}

/* Hover：掃光 + 浮起 */
.vida-api-card:hover code::before{
  transform:translateX(120%);
}

/* RWD */
@media(max-width:1100px){
  .vida-api-grid{ 
    grid-template-columns:repeat(2,1fr); }
}
@media(max-width:720px){
  .vida-api-grid{ 
    grid-template-columns:1fr; }
}

/* ===============================
   VIDA VALUEX – Business Value
================================ */

.vida-valuex{
  position:relative;
  padding:120px 0;
  background:
    radial-gradient(circle at 20% 0%, #0e1430, #04060c 60%);
  color:#e6ebff;
  overflow:hidden;
}

.vida-valuex-wrap{
  max-width:1400px;
  margin:auto;
  display:grid;
  grid-template-columns: minmax(360px, 40%) 1fr;
  gap:80px;
  padding-inline: clamp(32px, 6vw, 96px);
  align-items:center;
}

/* ===============================
   LEFT CONTENT
================================ */
.valuex-eyebrow{
  color:#8fb5ff;
  letter-spacing:.14em;
  font-size:32px;
  margin-bottom:12px;
}

.vida-valuex-left h2{
  font-size:44px;
  line-height:1.15;
  margin-bottom:40px;
}

.vida-valuex-left h2 span{
  color:#6faeff;
}

.valuex-list{
  display:flex;
  flex-direction:column;
  gap:22px;
}

.valuex-item{
  display:flex;
  gap:18px;
  padding:22px 24px;
  border-radius:20px;

  background: linear-gradient(
    180deg,
    rgba(255,255,255,.08),
    rgba(255,255,255,.02)
  );
  border:1px solid rgba(120,160,255,.18);
  backdrop-filter: blur(18px);
  transition:.4s ease;
}

.valuex-item:hover{
  transform: translateY(-2px) rotate(-3deg);
  box-shadow:0 20px 60px rgba(120,160,255,.35);
}

.valuex-item:hover .valuex-icon::after{
  opacity:.8;
  transform: scale(1.15);
}

/* animation */
@keyframes icon-breathe{
  0%   { opacity:.35; transform:scale(.92); }
  50%  { opacity:.65; transform:scale(1.05); }
  100% { opacity:.35; transform:scale(.92); }
}

.valuex-item h4{
  font-size:18px;
  margin-bottom:6px;
}

.valuex-item p{
  font-size:14px;
  line-height:1.7;
  color:#c7d0f2;
}

/* ICON */
.valuex-icon{
  width:85px;
  height:40px;
  border-radius:12px;
  display:grid;
  place-items:center;
  background:rgb(255, 255, 255);
  font-size:18px;
  position:relative;
  isolation:isolate;
  transform: translateY(-2px) rotate(-3deg);
}

.valuex-icon.blue{ color:#4082dd; }
.valuex-icon.green{ color:#02a762; }

.valuex-icon::after{
  content:"";
  position:absolute;
  inset:-12px;
  border-radius:18px;
  background:radial-gradient(
    circle,
    rgba(120,160,255,.35),
    transparent 70%
  );
  filter:blur(14px);
  opacity:.45;
  z-index:-1;
  animation:valuex-halo 4s ease-in-out infinite;
}

@keyframes valuex-halo{
  0%{opacity:.35; transform:scale(.95)}
  50%{opacity:.65; transform:scale(1.05)}
  100%{opacity:.35; transform:scale(.95)}
}

/* ===============================
   RIGHT MEDIA GRID
================================ */
.vida-valuex-right{
  position:relative;
}

.valuex-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 180px;
  gap:22px;
}

.valuex-media{
  position:relative;
  border-radius:22px;
  overflow:hidden;
  background:#000;
  transition:.45s ease;
  box-shadow:0 20px 60px rgba(0,0,0,.55);
}

.valuex-media.tall{
  grid-row: span 2;
}

.valuex-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition: transform .6s ease;
}

.valuex-media::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(
    180deg,
    transparent,
    rgba(0,0,0,.45)
  );
}

/* Focus interaction */
.valuex-grid:hover .valuex-media{
  filter: blur(1px) brightness(.85);
  transform: scale(.98);
}

.valuex-grid:hover .valuex-media:hover{
  filter:none;
  transform: scale(1.03);
  z-index:2;
}

.valuex-media:hover img{
  transform: scale(1.08);
}

/* ===============================
   RWD
================================ */

@media(max-width:1100px){
  .vida-valuex-wrap{
    grid-template-columns:1fr;
    gap:56px;
  }
}

@media(max-width:720px){
  .valuex-grid{
    grid-template-columns:1fr;
    grid-auto-rows:200px;
  }
}

/* KPI GROUP */
.valuex-kpis{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:20px;
  margin-top:28px;
}
.kpi-item.is-focus{
  opacity:1;
  transform: translateY(-2px);
}

.kpi-item.is-dim{
  opacity:.35;
}

.kpi-item{
  transition: opacity .35s ease, transform .35s ease;
  padding:18px 16px;
  border-radius:16px;
  text-align:center;

  background: linear-gradient(
    180deg,
    rgba(255,255,255,.10),
    rgba(255,255,255,.04)
  );
  border:1px solid rgba(120,160,255,.18);
  backdrop-filter: blur(16px);
}

.kpi-num{
  font-size:32px;
  font-weight:700;
  color:#8fb5ff;
  letter-spacing:-0.02em;
}

.kpi-unit{
  font-size:18px;
  margin-left:2px;
  color:#a8c2ff;
}

.kpi-item p{
  margin-top:6px;
  font-size:13px;
  color:#c7d0f2;
}

/* Before / After 微滑動 */
.roi-track{
  position:relative;
  height:36px;
  overflow:hidden;
}

.roi-before,
.roi-after{
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  font-size:32px;
  font-weight:700;
  color:#8fb5ff;
  transition: transform .6s ease, opacity .6s ease;
}

.roi-after{
  transform:translate(-50%, 120%);
  opacity:0;
}

.kpi-item.is-focus .roi-before{
  transform:translate(-50%, -120%);
  opacity:0;
}

.kpi-item.is-focus .roi-after{
  transform:translate(-50%, 0%);
  opacity:1;
}

/* Hover 時輕提示 */
.kpi-item.roi::after{
  content:"ROI ↑";
  position:absolute;
  top:10px;
  right:12px;
  font-size:11px;
  color:#9fc1ff;
  opacity:0;
  transition:.3s ease;
}

.kpi-item.is-focus::after{
  opacity:.8;
}

/* KPI card */
.valuex-scene{
  position:relative;
  padding:22px 24px;
  border-radius:18px;
  background:rgba(255,255,255,.08);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border:1px solid rgba(255,255,255,.14);
  overflow:hidden;
  cursor:pointer;

  transition:
    transform .45s cubic-bezier(.2,.7,.2,1),
    box-shadow .45s,
    opacity .45s;
}

.valuex-scene::after{
  content:"";
  position:absolute;
  inset:-40%;
  background:radial-gradient(
    circle,
    rgba(120,160,255,.35),
    transparent 60%
  );
  opacity:0;
  transform:scale(.85);
  transition:opacity .6s ease, transform .6s ease;
  pointer-events:none;
  z-index:0;
}

.valuex-scene:hover{
  transform:translateY(-8px) scale(1.02);
  box-shadow:
    0 30px 90px rgba(90,130,255,.45),
    inset 0 1px 0 rgba(255,255,255,.25);
}

.valuex-scene:hover::after{
  opacity:.85;
  transform:scale(1);
  animation:valuex-glow-breathe 3.6s ease-in-out infinite;
}

@keyframes valuex-glow-breathe{
  0%{ opacity:.55; }
  50%{ opacity:.85; }
  100%{ opacity:.55; }
}

/* 效率 KPI */
.valuex-scene[data-kpi="efficiency"]::after{
  background:radial-gradient(circle, rgba(120,180,255,.45), transparent 60%);
}

/* 成本 KPI */
.valuex-scene[data-kpi="cost"]::after{
  background:radial-gradient(circle, rgba(120,220,180,.45), transparent 60%);
}

/* ROI KPI */
.valuex-scene[data-kpi="roi"]::after{
  background:radial-gradient(circle, rgba(180,150,255,.45), transparent 60%);
}

/* /* ROI KPI */ */
.valuex-scene.dim{
  opacity:.35;
  transform:translateY(0);
  box-shadow:none;
}

/* ROI track */
.roi-track{
  position:relative;
  height:36px;
  margin-bottom:8px;
  overflow:hidden;
}

/* ROI numbers */
.roi-before,
.roi-after{
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  font-size:32px;
  font-weight:700;
  color:#8fb5ff;
  transition: transform .6s ease, opacity .6s ease;
}

.roi-after{
  transform:translate(-50%, 120%);
  opacity:0;
}

/* hover / focus 狀態 */
.valuex-scene.is-focus 
.roi-before{
  transform:translate(-50%, -120%);
  opacity:0;
}

.valuex-scene.is-focus .roi-after{
  transform:translate(-50%, 0%);
  opacity:1;
}


/* ===============================
   VIDA HUBX SECTION
================================ */
.vida-hubx-section{
  padding: clamp(60px, 8vw, 120px) 6vw;
  background: radial-gradient(circle at 30% 10%, #0b1430, #040814 70%);
}

.vida-hubx-wrap{
  max-width: 1400px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
}

/* ---------- Topology ---------- */
.vida-hubx-topology{
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 28px;
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,.08);
}

.hubx-node{
  position: absolute;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  font-size: 13px;
  color:#dfe9ff;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.15);
  cursor:pointer;
  transition:.3s;
}

.hubx-node:hover{
  transform: translateY(-4px);
  box-shadow: 0 0 24px rgba(120,180,255,.4);
}

.hubx-core{
  top:50%; left:50%;
  transform:translate(-50%,-50%);
  width:140px;
  height:140px;
  border-radius:24px;
  background: rgba(120,180,255,.15);
  box-shadow: 0 0 40px rgba(120,180,255,.6);
}

.hubx-police{ top:8%; left:8%; }
.hubx-fire{ bottom:8%; left:8%; }
.hubx-traffic{ bottom:8%; right:8%; }

/* ---------- Lines ---------- */
.hubx-lines{
  position:absolute;
  inset:0;
}
.hubx-lines line{
  stroke: rgba(255,255,255,.25);
  stroke-dasharray:6 6;
}

/* ---------- Info Panel ---------- */
.vida-hubx-panel{
  display:flex;
  align-items:center;
}

.hubx-card{
  display:none;
  width:100%;
  padding:32px;
  border-radius:24px;
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(20px);
  border:1px solid rgba(255,255,255,.1);
  color:#e9f1ff;
}

.hubx-card.active{
  display:block;
  animation: fadeIn .35s ease;
}

.hubx-card h3{
  margin-bottom:12px;
  color:#7cc4ff;
}

.hubx-card ul{
  margin-top:16px;
  padding-left:18px;
}

.hubx-ok{
  color:#6dff9c;
}

/* ---------- Animation ---------- */
@keyframes fadeIn{
  from{opacity:0; transform:translateY(6px);}
  to{opacity:1; transform:none;}
}

/* ---------- RWD ---------- */
@media(max-width: 960px){
  .vida-hubx-wrap{
    grid-template-columns: 1fr;
  }
}

/* ===== Data Flow Pulse ===== */
.hubx-lines line{
  stroke-width:1.5;
  animation: hubx-line-dash 2.4s linear infinite;
}

.hubx-police ~ .hubx-lines line:nth-child(1){
  stroke:#6fb7ff;
}
.hubx-fire ~ .hubx-lines line:nth-child(2){
  stroke:#ff6b6b;
}
.hubx-traffic ~ .hubx-lines line:nth-child(3){
  stroke:#6dff9c;
}

@keyframes hubx-line-dash{
  from{ stroke-dashoffset:0; }
  to{ stroke-dashoffset:-48; }
}

/* ===== Core Reactive Glow ===== */
.hubx-core::after{
  content:"";
  position:absolute;
  inset:-12px;
  border-radius:28px;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(140,200,255,.55),
    transparent 60%
  );
  opacity:0;
  transition:.3s;
  pointer-events:none;
}

.hubx-core.react::after{
  opacity:1;
}


/* ===== Status Indicator ===== */
.hubx-status{
  color:#6dff9c;
  font-weight:500;
}

.hubx-status.on{
  animation: hubx-status-pulse 1.8s infinite;
}

@keyframes hubx-status-pulse{
  0%{opacity:.4}
  50%{opacity:1}
  100%{opacity:.4}
}


/* ================= HUBX3 ================= */
.vida-hubx3-section{
  padding:100px 6vw;
  background:
    radial-gradient(1200px 600px at 50% -200px, #101a3a 0%, transparent 60%),
    radial-gradient(circle at 30% 10%, #0b1430, #050814 70%);
  color:#e6edff;
  position: relative;
  overflow: hidden;
}

/* 背景圖層 */
.vida-hubx3-section::before{
  content:"";
  position:absolute;
  inset:0;

  /* 底圖路徑 */
  background-image: url("../img/banner/grid-lines1.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: .22;            
  filter: 
    blur(1.5px)
    saturate(.9)
    brightness(.75);

  z-index:0; 
}

/* 內容到上層 */
.vida-hubx3-section > *{
  position: relative;
  z-index: 1;
}

.vida-hubx3-section
.collapsed 
.hubx3-panel{
  opacity:0;
  transform:translateX(40px);
  pointer-events:none;  
}

.hubx3-title{
  text-align:center;
  font-size:28px;
}
.hubx3-sub{
  text-align:center;
  opacity:.7;
  margin-bottom:60px;
}

.hubx3-wrap{
  max-width:1400px;
  margin:auto;
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:48px;
}

@media (max-width: 768px){
  .vida-hubx3-section::before{
    display:none;
  }
}

/* --- topology --- */
.hubx3-topology{
  position:relative;
  aspect-ratio:1/1;
  border-radius:28px;
  background:rgba(255,255,255,.05);
  backdrop-filter:blur(24px);
  border:1px solid rgba(255,255,255,.08);
}

.hubx3-node{
  position:absolute;
  width:100px;
  height:100px;
  border-radius:50%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition:.3s;
  background:rgba(14,22,44,.9);
  border-width:2px;
  box-shadow:
    inset 0 0 12px rgba(255,255,255,.04),
    0 0 0 rgba(0,0,0,0);
  opacity:.45;
  filter:saturate(.7);
  transition:.35s ease;
  
}

.hubx3-node.active{
  opacity:1;
  filter:saturate(1.1);
  box-shadow:
    0 0 32px currentColor,
    inset 0 0 18px rgba(255,255,255,.08);
}

.hubx3-node i{
  font-size:22px;
  margin-bottom:6px;
}

.police{
  top:8%;
  left:8%;
  border:1px solid #6fb7ff;
  color:#6fb7ff;
}

.fire{
  bottom:8%;
  left:8%;
  border:1px solid #ff6b6b;
  color:#ff6b6b;
}
.traffic{
  bottom:8%;
  right:8%;
  border:1px solid #6dff9c;
  border-color:#6dff9c;
  color:#6dff9c;
}
/* Hover */
.hubx3-node:hover{
  transform:translateY(-6px);
  box-shadow:
    0 0 24px currentColor,
    inset 0 0 18px rgba(255,255,255,.06);
}
/* --- core --- */
.hubx3-core{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  width:168px;
  height:168px;
  border-radius:22px;
  background:linear-gradient(
    180deg,
    rgba(24,32,58,.95),
    rgba(18,26,48,.95)
  );
  border:3px solid rgba(120,180,255,.85);
  text-align:center;
  padding-top:18px;
  margin-top:46px;
  box-shadow:
    0 0 18px rgba(120,180,255,.35),
    inset 0 0 18px rgba(120,180,255,.06);
}

.hubx3-throughput{
  margin-top:46px;
  font-size:16px;
}

.hubx3-core strong{
  color:#ffffff;
  font-size:18px;
  letter-spacing:.04em;
}

.hubx3-core small{
  display:block;
  margin-top:2px;
  opacity:.75;
  color:#8fbbe8;
}

.hubx3-throughput{
  margin-top:14px;
  font-size:13px;
  line-height:1.5;
  opacity:.9;
}

/* --- fire pulse event --- */
.fire.pulse{
  animation:firePulse 1.2s infinite;
}

@keyframes firePulse{
  0%{box-shadow:0 0 0 rgba(255,80,80,.0)}
  50%{box-shadow:0 0 36px rgba(255,80,80,.9)}
  100%{box-shadow:0 0 0 rgba(255,80,80,.0)}
}

/* --- panel --- */
.hubx3-panel{
  display:flex;
  align-items:center;
  transition:.45s ease;
}

.hubx3-card{
  display:none;
  padding:32px;
  border-radius:24px; 
  backdrop-filter:blur(20px);
  background:
    linear-gradient(
      180deg,
      rgba(18,26,48,.95),
      rgba(14,20,40,.95)
    );
  border:1px solid rgba(120,180,255,.18);
  box-shadow:
    0 30px 80px rgba(0,0,0,.45),
    inset 0 0 0 1px rgba(255,255,255,.04);
}

.hubx3-card
.active{
  display:block
}

.hubx3-card h3{
  color:#8fd0ff;
  font-size:20px;
}

.hubx3-card hr{
  border:none;
  border-top:1px solid rgba(255,255,255,.08);
  margin:18px 0;
}

/* --- lines --- */
.hubx3-lines line{
  opacity:.25;
  stroke:#ffffff33;
  stroke-dasharray:6 6;
  animation:dash 2.5s linear infinite;
}

@keyframes dash{
  to{stroke-dashoffset:-48}
}

/* --- RWD --- */
@media(max-width:960px){
  .hubx3-wrap{grid-template-columns:1fr}
}


/* ===== Timeline ===== */
.hubx3-timeline{
  border-top:1px solid rgba(255,255,255,.08);
  padding-top:18px;
  display:flex;
  gap:24px;
  margin-top:28px;
}

.tl-step{
  font-size:13px;
  flex:1;
  text-align:center;
  opacity:.3;
  transition:.4s;
}

.tl-step .dot{
  width:10px;
  height:10px;
  border-radius:50%;
  margin:0 auto 8px;
  background:currentColor;
  box-shadow:0 0 0 rgba(255,255,255,0);
}

.tl-step.active{
  opacity:1;
}

.tl-step.active .dot{
  box-shadow:0 0 18px currentColor;
}

.tl-step.fire{color:#ff6b6b;}
.tl-step.police{color:#6fb7ff;}
.tl-step.traffic{color:#6dff9c;}

/* ===== ACTION BUTTONS (MATCH SCREENSHOT) ===== */
.hubx3-actions{
  display:flex;
  gap:16px;
  margin-top:26px;
}

/* base */
.hubx3-btn{
  display:flex;
  align-items:center;
  height:44px;               
  padding:0 26px;  
  gap:10px;
  padding:12px 22px;
  border-radius:999px;
  font-size:14px;
  font-weight:500;
  letter-spacing:.06em;
  cursor:pointer;
  border:none;
  transition:.25s ease;
  backdrop-filter: blur(10px);
  white-space:nowrap;
}

.hubx3-btn i{
  font-size:14px;
  margin-top:-1px;
}

/* left – light blue */
.hubx3-btn.primary{
  color:#e8f4ff;
  background:
    linear-gradient(
      180deg,
      rgba(110,185,255,.35),
      rgba(70,145,255,.30)
    );
  border:1px solid rgba(140,200,255,.55);
  box-shadow:
    0 0 0 1px rgba(140,200,255,.12),
    0 6px 22px rgba(90,150,255,.35);
}

.hubx3-btn.primary:hover{
  box-shadow:
    0 0 0 1px rgba(160,220,255,.35),
    0 10px 36px rgba(90,160,255,.55);
}

/* right – dark / ghost */
.hubx3-btn.ghost{
  color:#cfe3ff;
  background:
    linear-gradient(
      180deg,
      rgba(26,34,66,.65),
      rgba(18,26,52,.65)
    );
  border:1px solid rgba(120,150,255,.25);
}

.hubx3-btn.ghost:hover{
  background:
    linear-gradient(
        180deg,
        rgba(38,50,96,.75),
        rgba(28,42,82,.75)
      );
    box-shadow:
      0 6px 20px rgba(60,100,180,.35);
}


/* ======================================================
   iPhone / Mobile RWD Fix – Vi API Page
   Add this at the END of vi_api.css
====================================================== */

@media (max-width: 768px){

  html,
  body{
    width:100%;
    max-width:100%;
    overflow-x:hidden;
  }

  *{
    min-width:0;
  }

  img,
  svg,
  canvas,
  video,
  iframe{
    max-width:100%;
  }

  /* ===============================
     MRNM Hero Overview
  ================================ */

  .mrnm-overview{
    padding:56px 0 70px;
  }

  .mrnm-wrap{
    width:100%;
    max-width:100%;
    padding:0 22px;
    grid-template-columns:1fr;
    gap:34px;
    overflow:hidden;
  }

  .mrnm-copy{
    transform:none;
  }

  .mrnm-eyebrow{
    font-size:13px;
    line-height:1.65;
    letter-spacing:.18em;
    overflow-wrap:anywhere;
  }

  .mrnm-title{
    font-size:clamp(38px, 10vw, 48px);
    line-height:1.18;
    letter-spacing:-.035em;
    margin:18px 0 18px;
    overflow-wrap:anywhere;
  }

  .mrnm-desc{
    max-width:100%;
    font-size:17px;
    line-height:1.85;
  }

  .mrnm-steps{
    margin-top:34px;
    gap:12px;
  }

  .mrnm-step{
    max-width:100%;
    white-space:normal;
    font-size:14px;
    line-height:1.35;
    padding:8px 15px;
  }

  .mrnm-visual{
    width:100%;
    max-width:100%;
    overflow:hidden;
  }

  .mrnm-glass-card{
    width:100%;
    height:320px;
    border-radius:26px;
  }

  #mrnmCanvas{
    width:100%;
    height:100%;
  }

  .mrnm-card-badge{
    left:14px;
    right:14px;
    bottom:14px;
    padding:12px 14px;
  }

  /* ===============================
     VIDA COREX
  ================================ */

  .vida-corex{
    padding:86px 0;
    overflow:hidden;
  }

  .vida-corex-wrap{
    width:100%;
    max-width:100%;
    grid-template-columns:1fr;
    gap:38px;
    padding-inline:22px;
  }

  .vida-corex-head h2{
    font-size:clamp(34px, 9vw, 44px);
    line-height:1.18;
    overflow-wrap:anywhere;
  }

  .corex-desc{
    font-size:15px;
    line-height:1.8;
  }

  .vida-corex-grid{
    grid-template-columns:1fr;
    gap:22px;
    width:100%;
  }

  .corex-card,
  .corex-card:nth-child(2){
    width:100%;
    transform:none;
    padding:28px 24px;
  }

  .corex-card:hover{
    transform:translateY(-6px) scale(1.01);
  }

  .corex-card h3{
    font-size:20px;
    line-height:1.35;
  }

  .corex-card p{
    font-size:15px;
    line-height:1.6;
  }

  /* ===============================
     VIDA I/O SPEC
  ================================ */

  .vida-io-spec{
    padding:82px 22px;
    overflow:hidden;
  }

  .vida-io-head h2{
    font-size:clamp(28px, 8vw, 38px);
    line-height:1.25;
  }

  .vida-io-grid{
    grid-template-columns:1fr;
    gap:36px;
    margin-top:36px;
  }

  .vida-io-card{
    padding:22px 18px;
    border-radius:22px;
  }

  .vida-io-row{
    grid-template-columns:1fr;
    gap:8px;
    padding:16px 0;
  }

  .vida-io-row strong{
    font-size:16px;
  }

  .vida-io-row small{
    font-size:13px;
    line-height:1.6;
  }

  /* ===============================
     Capability Cards
  ================================ */

  .vida-capability-glass{
    padding:82px 22px;
  }

  .vcg-grid{
    grid-template-columns:1fr;
    gap:24px;
  }

  .vcg-card{
    padding:30px 24px;
  }

  .vcg-card h3{
    font-size:21px;
    line-height:1.35;
  }

  .vcg-card li{
    font-size:15px;
    line-height:1.6;
  }

  /* ===============================
     API Ecosystem
  ================================ */

  .vida-api-ecosys{
    padding:82px 22px;
    overflow:hidden;
  }

  .vida-api-ecosys::before{
    display:none;
  }

  .vida-api-head{
    margin-bottom:44px;
  }

  .vida-api-head h2,
  .vida-api-head h2 span{
    font-size:clamp(32px, 9vw, 44px);
    line-height:1.2;
  }

  .vida-api-head p{
    font-size:15px;
    line-height:1.75;
  }

  .vida-api-grid{
    grid-template-columns:1fr;
    gap:24px;
  }

  .vida-api-card{
    width:100%;
    padding:28px 22px;
    border-radius:24px;
  }

  .vida-api-code{
    top:18px;
    right:20px;
  }

  .vida-api-card h3{
    font-size:20px;
    line-height:1.35;
  }

  .vida-api-card p,
  .vida-api-card li{
    font-size:15px;
    line-height:1.65;
  }

  .vida-api-card code{
    white-space:normal;
    overflow-wrap:anywhere;
    font-size:13px;
    line-height:1.55;
  }

  /* ===============================
     Business Value / Scenario
  ================================ */

  .vida-valuex{
    padding:88px 0;
    overflow:hidden;
  }

  .vida-valuex-wrap{
    width:100%;
    max-width:100%;
    grid-template-columns:1fr;
    gap:42px;
    padding-inline:22px;
    overflow:hidden;
  }

  .valuex-eyebrow{
    font-size:clamp(26px, 8vw, 36px);
    line-height:1.35;
    letter-spacing:.18em;
    overflow-wrap:anywhere;
  }

  .vida-valuex-left h2{
    font-size:clamp(42px, 12vw, 56px);
    line-height:1.16;
    letter-spacing:-.045em;
    margin-bottom:36px;
    overflow-wrap:anywhere;
  }

  .vida-valuex-left h2 span{
    display:block;
    margin-top:2px;
  }

  .valuex-list{
    gap:22px;
  }

  .valuex-item{
    width:100%;
    gap:16px;
    padding:24px 20px;
    border-radius:22px;
    align-items:flex-start;
  }

  .valuex-icon{
    width:44px;
    min-width:44px;
    height:44px;
    border-radius:14px;
    transform:none;
  }

  .valuex-item:hover{
    transform:translateY(-3px);
  }

  .valuex-item h4{
    font-size:20px;
    line-height:1.35;
  }

  .valuex-item p{
    font-size:15px;
    line-height:1.65;
  }

  .vida-valuex-right{
    width:100%;
    max-width:100%;
    overflow:hidden;
  }

  .valuex-grid{
    grid-template-columns:1fr;
    grid-auto-rows:210px;
    gap:18px;
  }

  .valuex-media,
  .valuex-media.tall{
    grid-row:auto;
    width:100%;
  }

  .valuex-kpis{
    grid-template-columns:1fr;
    gap:16px;
  }

  .kpi-num,
  .roi-before,
  .roi-after{
    font-size:28px;
  }

  .valuex-scene{
    padding:22px 20px;
  }

  /* ===============================
     HUBX / Topology
  ================================ */

  .vida-hubx-section{
    padding:76px 22px;
    overflow:hidden;
  }

  .vida-hubx-wrap{
    grid-template-columns:1fr;
    gap:32px;
  }

  .vida-hubx-topology{
    width:100%;
    max-width:100%;
    aspect-ratio:1 / 1.05;
    border-radius:24px;
  }

  .hubx-node{
    width:76px;
    height:76px;
    font-size:12px;
    text-align:center;
    line-height:1.25;
  }

  .hubx-core{
    width:118px;
    height:118px;
    border-radius:22px;
  }

  .hubx-card{
    padding:26px 22px;
  }

  /* ===============================
     HUBX3 – Main Fix
  ================================ */

  .vida-hubx3-section{
    padding:82px 20px;
    overflow:hidden;
  }

  .hubx3-title{
    font-size:clamp(28px, 8vw, 38px);
    line-height:1.25;
    padding:0 4px;
    overflow-wrap:anywhere;
  }

  .hubx3-sub{
    font-size:15px;
    line-height:1.75;
    margin-bottom:38px;
  }

  .hubx3-wrap{
    width:100%;
    max-width:100%;
    grid-template-columns:1fr;
    gap:36px;
    overflow:hidden;
  }

  .hubx3-topology{
    width:100%;
    max-width:100%;
    aspect-ratio:1 / 1.05;
    border-radius:26px;
    overflow:hidden;
  }

  .hubx3-node{
    width:76px;
    height:76px;
    font-size:13px;
    line-height:1.35;
    text-align:center;
  }

  .hubx3-node i{
    font-size:18px;
    margin-bottom:4px;
  }

  .police{
    top:8%;
    left:8%;
  }

  .fire{
    bottom:12%;
    left:8%;
  }

  .traffic{
    bottom:12%;
    right:8%;
  }

  .hubx3-core{
    width:132px;
    height:132px;
    border-radius:22px;
    padding-top:18px;
    margin-top:26px;
    border-width:2px;
  }

  .hubx3-core strong{
    font-size:20px;
  }

  .hubx3-core small{
    font-size:13px;
  }

  .hubx3-throughput{
    margin-top:16px;
    font-size:13px;
    line-height:1.55;
  }

  .hubx3-panel{
    width:100%;
  }

  .hubx3-card{
    width:100%;
    padding:26px 22px;
    border-radius:22px;
  }

  .hubx3-card h3{
    font-size:20px;
    line-height:1.35;
  }

  .hubx3-card p,
  .hubx3-card li{
    font-size:15px;
    line-height:1.65;
  }

  .hubx3-timeline{
    gap:10px;
    margin-top:22px;
  }

  .tl-step{
    font-size:12px;
    line-height:1.35;
  }

  .hubx3-actions{
    display:grid;
    grid-template-columns:1fr;
    gap:14px;
    margin-top:28px;
    width:100%;
  }

  .hubx3-btn{
    width:100%;
    justify-content:center;
    height:auto;
    min-height:48px;
    padding:13px 18px;
    white-space:normal;
    text-align:center;
    line-height:1.35;
    border-radius:999px;
  }
}


/* iPhone SE / Mini */
@media (max-width: 390px){

  .mrnm-wrap,
  .vida-corex-wrap,
  .vida-valuex-wrap,
  .vida-api-ecosys,
  .vida-io-spec,
  .vida-capability-glass,
  .vida-hubx-section,
  .vida-hubx3-section{
    padding-left:16px;
    padding-right:16px;
  }

  .mrnm-title{
    font-size:36px;
  }

  .vida-valuex-left h2{
    font-size:40px;
  }

  .valuex-eyebrow{
    font-size:24px;
  }

  .hubx3-node{
    width:68px;
    height:68px;
    font-size:12px;
  }

  .hubx3-core{
    width:118px;
    height:118px;
    margin-top:22px;
  }

  .hubx3-core strong{
    font-size:18px;
  }

  .hubx3-throughput{
    font-size:12px;
  }

  .hubx3-btn{
    font-size:13px;
  }
}

/* ======================================================
   HUBX3 Topology Position Fix
   Fix Police / Fire / Traffic node drifting
   Add this at the END of vi_api.css
====================================================== */

/* Desktop / tablet topology correction */
.hubx3-topology{
  position: relative;
  overflow: hidden;
  min-height: 520px;
}

/* reset node base */
.hubx3-node{
  z-index: 3;
  text-align: center;
  line-height: 1.35;
}

/* Police node */
.hubx3-node.police,
.police.hubx3-node{
  top: 8%;
  left: 10%;
  right: auto;
  bottom: auto;
}

/* Fire node */
.hubx3-node.fire,
.fire.hubx3-node{
  left: 10%;
  bottom: 8%;
  top: auto;
  right: auto;
}

/* Traffic node */
.hubx3-node.traffic,
.traffic.hubx3-node{
  right: 10%;
  bottom: 8%;
  top: auto;
  left: auto;
}

/* VIDA.ai core must stay true center */
.hubx3-core{
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  transform: translate(-50%, -50%);
  margin-top: 0 !important;
  z-index: 4;
}

/* keep SVG lines aligned to same coordinate space */
.hubx3-lines{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* action buttons stay below topology */
.hubx3-actions{
  position: relative;
  z-index: 5;
}

/* ======================================================
   HUBX3 Mobile Position Fix
====================================================== */

@media (max-width: 768px){

  .hubx3-topology{
    width: 100%;
    aspect-ratio: 1 / 1.05;
    min-height: 360px;
    border-radius: 26px;
  }

  .hubx3-node{
    width: 74px;
    height: 74px;
    font-size: 12px;
    z-index: 3;
  }

  .hubx3-node i{
    font-size: 17px;
    margin-bottom: 4px;
  }

  .hubx3-node.police,
  .police.hubx3-node{
    top: 7%;
    left: 7%;
  }

  .hubx3-node.fire,
  .fire.hubx3-node{
    left: 7%;
    bottom: 9%;
  }

  .hubx3-node.traffic,
  .traffic.hubx3-node{
    right: 7%;
    bottom: 9%;
  }

  .hubx3-core{
    width: 132px;
    height: 132px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin-top: 0 !important;
    padding-top: 18px;
  }

  .hubx3-throughput{
    margin-top: 14px;
  }
}

@media (max-width: 390px){

  .hubx3-topology{
    min-height: 330px;
  }

  .hubx3-node{
    width: 66px;
    height: 66px;
    font-size: 11px;
  }

  .hubx3-core{
    width: 116px;
    height: 116px;
  }

  .hubx3-core strong{
    font-size: 17px;
  }

  .hubx3-throughput{
    font-size: 11px;
    line-height: 1.45;
  }
}