/* ============================================================
   home-2026.css — 首頁 2026 版面（hero26 / marquee / hsec /
   prd-grid / svc-list / stat26 / codev26 / cta26）
   設計語系：quiet dark（同 style.css REDESIGN 2026 一致）
   ============================================================ */

/* ---------- 基礎 ---------- */
body.home2026 { overflow-x: hidden; }

.rv {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s cubic-bezier(.2,.8,.2,1), transform 0.75s cubic-bezier(.2,.8,.2,1);
  will-change: opacity, transform;
}
.rv.in { opacity: 1; transform: none; }
.rv.out-none { transform: none; }

/* ============================================================
   HERO 26
   ============================================================ */
.hero26 {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 150px 28px 110px;
  overflow: hidden;
  isolation: isolate;
}
#aurora {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
}
.hero26-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(236,238,242,0.035) 1px, transparent 1px);
  background-size: min(11.1vw, 132px) 100%;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 78%);
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 78%);
}
.hero26-inner {
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
}
.hero26 .badge { margin-bottom: 26px; }

/* 標題 — 一行過（.ht-line inline 顯示，自然流動） */
.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 5.2vw, 62px);
  line-height: 1.18;
  letter-spacing: -0.028em;
  margin: 0;
  max-width: 20em;
}
.hero-title .ht-line {
  display: inline;
  white-space: normal;
}
.hero-title .ht-accent {
  color: var(--accent);
  -webkit-text-fill-color: var(--accent);
}
.hero-sub {
  margin: 22px 0 0;
  max-width: 38rem;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-dim);
}
.hero-cta {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  width: 1px;
  height: 56px;
  overflow: hidden;
  opacity: 0.9;
}
.hero-scroll .hs-line {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent, var(--accent));
  animation: hs-drop 2.2s cubic-bezier(.65,0,.35,1) infinite;
}
@keyframes hs-drop {
  0% { transform: translateY(-100%); }
  55% { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(18,20,26,0.45);
  overflow: hidden;
  padding: 18px 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-slide 36s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group {
  display: flex;
  align-items: center;
  gap: 44px;
  padding-right: 44px;
  white-space: nowrap;
}
.marquee-group span {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--text-dim);
}
.marquee-group i {
  font-style: normal;
  font-size: 10px;
  color: var(--accent);
  opacity: 0.65;
}
@keyframes marquee-slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================================
   HSEC — editorial 章節
   ============================================================ */
.hsec {
  max-width: 1180px;
  margin: 0 auto;
  padding: 104px 28px 0;
}
.hsec-head { margin-bottom: 44px; }
.hsec-tag {
  display: flex;
  align-items: center;
  gap: 14px;
}
.hsec-no {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.hsec-tag::after {
  content: "";
  width: 46px;
  height: 1px;
  background: rgba(94,234,212,0.35);
}
.hsec-kicker {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.hsec-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.022em;
  margin: 16px 0 0;
}
.hsec-head .sub {
  margin: 12px 0 0;
  max-width: 36rem;
  color: var(--text-dim);
  line-height: 1.7;
}
.hsec-more { margin-top: 34px; }

/* ============================================================
   PRD GRID — 自研產品卡
   ============================================================ */
.prd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.prd-card {
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), transparent 42%),
    var(--bg-soft);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.3s ease, transform 0.35s cubic-bezier(.2,.8,.2,1), box-shadow 0.35s ease;
}
.prd-card:hover {
  transform: translateY(-5px);
  border-color: rgba(94,234,212,0.45);
  box-shadow: 0 22px 44px rgba(0,0,0,0.35), 0 0 0 1px rgba(94,234,212,0.1);
}
.prd-visual {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.pv-zeus {
  background:
    radial-gradient(circle at 30% 30%, rgba(124,140,255,0.16), transparent 55%),
    radial-gradient(circle at 78% 72%, rgba(94,234,212,0.12), transparent 50%),
    linear-gradient(160deg, #151824, #101218);
}
.pv-mars {
  background:
    radial-gradient(circle at 70% 30%, rgba(232,165,75,0.14), transparent 55%),
    radial-gradient(circle at 26% 74%, rgba(94,234,212,0.1), transparent 50%),
    linear-gradient(160deg, #17161c, #101218);
}
.pv-ticker {
  background:
    radial-gradient(circle at 32% 36%, rgba(94,234,212,0.15), transparent 55%),
    linear-gradient(160deg, #141a1d, #101218);
}
/* Zeus：對話泡泡 */
.pv-chat {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 26px 30px;
}
.pv-chat i {
  display: block;
  height: 16px;
  border-radius: 8px;
  background: rgba(236,238,242,0.12);
  animation: pv-pulse 2.8s ease-in-out infinite;
}
.pv-chat i:nth-child(1) { width: 58%; align-self: flex-start; }
.pv-chat i:nth-child(2) {
  width: 42%;
  align-self: flex-end;
  background: rgba(94,234,212,0.4);
  animation-delay: 0.4s;
}
.pv-chat i:nth-child(3) { width: 66%; animation-delay: 0.8s; }
/* Mars：柱狀圖 */
.pv-bars {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 9px;
  padding: 30px 34px 26px;
}
.pv-bars b {
  flex: 1;
  max-width: 26px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, rgba(94,234,212,0.9), rgba(94,234,212,0.15));
  animation: pv-rise 3.2s ease-in-out infinite;
}
.pv-bars b:nth-child(1) { height: 34%; }
.pv-bars b:nth-child(2) { height: 56%; animation-delay: 0.15s; }
.pv-bars b:nth-child(3) { height: 42%; animation-delay: 0.3s; }
.pv-bars b:nth-child(4) { height: 72%; animation-delay: 0.45s; }
.pv-bars b:nth-child(5) { height: 52%; animation-delay: 0.6s; background: linear-gradient(180deg, rgba(232,165,75,0.85), rgba(232,165,75,0.12)); }
.pv-bars b:nth-child(6) { height: 84%; animation-delay: 0.75s; }
.pv-bars b:nth-child(7) { height: 62%; animation-delay: 0.9s; }
/* Ticker：報價行 */
.pv-row {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 14px 24px 0;
  padding: 9px 14px;
  border-radius: 10px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.06);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--text);
}
.pv-row span { font-weight: 600; }
.pv-row em {
  font-style: normal;
  font-weight: 600;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.pv-row em.dn { color: #F97066; }
/* 掃描線 */
.pv-scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 34%;
  background: linear-gradient(180deg, transparent, rgba(94,234,212,0.06), transparent);
  animation: pv-scan 4.2s cubic-bezier(.65,0,.35,1) infinite;
  pointer-events: none;
}
@keyframes pv-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}
@keyframes pv-rise {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.82); }
}
@keyframes pv-scan {
  0% { transform: translateY(-40%); }
  100% { transform: translateY(320%); }
}
.prd-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px 20px;
  flex: 1;
}
.prd-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.prd-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.prd-card:hover .prd-name { color: var(--accent); }
.prd-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(94,234,212,0.28);
  color: var(--accent);
  font-size: 14px;
  transition: transform 0.3s ease, background 0.3s ease;
}
.prd-card:hover .prd-arrow {
  transform: translate(2px, -2px);
  background: rgba(94,234,212,0.12);
}
.prd-cat {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.prd-desc {
  margin: 6px 0 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-dim);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   SVC LIST — 大行式服務列表
   ============================================================ */
.svc-list {
  border-top: 1px solid var(--border);
}
.svc-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 27px 10px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: background 0.3s ease, padding 0.3s ease;
}
.svc-row:hover { background: rgba(255,255,255,0.02); }
.svc-no {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  transition: color 0.3s ease;
}
.svc-row:hover .svc-no { color: var(--accent); }
.svc-main {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.svc-title {
  font-family: var(--font-display);
  font-size: clamp(19px, 2.4vw, 26px);
  font-weight: 600;
  letter-spacing: -0.018em;
  transition: color 0.3s ease;
}
.svc-row:hover .svc-title { color: var(--accent); }
.svc-desc {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}
.svc-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 17px;
  transition: border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.svc-row:hover .svc-arrow {
  border-color: rgba(94,234,212,0.45);
  color: var(--accent);
  transform: translateX(6px);
}

/* ============================================================
   STATS 26
   ============================================================ */
.hsec-stats { padding-bottom: 0; }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent 50%), var(--bg-soft);
  overflow: hidden;
}
.stat26 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 44px 20px;
  text-align: center;
}
.stat26 + .stat26 { border-left: 1px solid var(--border); }
.stat-val {
  font-family: var(--font-display);
  font-size: clamp(38px, 4.6vw, 54px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.stat-num { color: var(--accent); -webkit-text-fill-color: var(--accent); }
.stat-static { color: var(--text); -webkit-text-fill-color: var(--text); }
.stat-suffix { color: var(--accent); -webkit-text-fill-color: var(--accent); }
.stat-label {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

/* ============================================================
   CODEV 26 橫額
   ============================================================ */
.codev26 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 38px 40px;
  border: 1px solid rgba(94,234,212,0.22);
  border-radius: 20px;
  background:
    radial-gradient(90% 140% at 0% 50%, rgba(94,234,212,0.09), transparent 55%),
    var(--bg-soft);
  position: relative;
  overflow: hidden;
}
.codev26::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18%;
  bottom: 18%;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--accent), transparent);
  opacity: 0.7;
}
.codev26-copy h3 {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 27px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
}
.codev26-copy p {
  margin: 8px 0 0;
  color: var(--text-dim);
  line-height: 1.65;
  max-width: 34rem;
}

/* ============================================================
   CTA 26
   ============================================================ */
.cta26 {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 150px 28px 130px;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.cta26-glow {
  position: absolute;
  left: 50%;
  top: 58%;
  width: min(720px, 90vw);
  height: 340px;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(closest-side, rgba(94,234,212,0.13), transparent 70%),
    radial-gradient(closest-side at 62% 60%, rgba(124,140,255,0.08), transparent 70%);
  filter: blur(6px);
  z-index: -1;
  animation: cta-breathe 7s ease-in-out infinite;
  pointer-events: none;
}
@keyframes cta-breathe {
  0%, 100% { opacity: 0.75; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); }
}
.cta26 h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.6vw, 50px);
  font-weight: 600;
  letter-spacing: -0.026em;
  margin: 0;
}
.cta26 p {
  margin: 18px auto 0;
  max-width: 34rem;
  color: var(--text-dim);
  line-height: 1.75;
}
.cta26 .btn-primary { margin-top: 34px; }

/* ============================================================
   磁吸按鈕
   ============================================================ */
.magnetic { transition: transform 0.25s cubic-bezier(.2,.8,.2,1); will-change: transform; }

/* ============================================================
   響應式
   ============================================================ */
@media (max-width: 980px) {
  .svc-row { grid-template-columns: 44px 1fr auto; padding: 22px 6px; }
  .svc-arrow { width: 38px; height: 38px; }
}
@media (max-width: 860px) {
  .hero26 { padding-top: 128px; padding-bottom: 96px; min-height: 92svh; }
  .hero-scroll { display: none; }
  .codev26 { flex-direction: column; align-items: flex-start; padding: 30px 26px; }
  .stat-grid { grid-template-columns: 1fr; }
  .stat26 + .stat26 { border-left: none; border-top: 1px solid var(--border); }
  .stat26 { padding: 32px 20px; }
  .cta26 { padding: 110px 28px 96px; }
  .hsec { padding-top: 84px; }
}
@media (max-width: 640px) {
  .hero-title { font-size: clamp(30px, 8.4vw, 44px); }
  .hero-sub { font-size: 15.5px; }
  .marquee { padding: 14px 0; }
  .marquee-group { gap: 30px; padding-right: 30px; }
  .pv-row { margin: 10px 16px 0; font-size: 12px; }
}

/* ============================================================
   動效偏好
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .pv-scan { animation: none; opacity: 0; }
  .pv-chat i, .pv-bars b { animation: none; }
  .hero-scroll .hs-line { animation: none; }
  .cta26-glow { animation: none; }
  .rv { opacity: 1; transform: none; transition: none; }
  .magnetic { transition: none; }
}
