/*
 * 首页专属动效层。只被 site/home.html 引用，不参与站内其他页面。
 * 原则：动效全部走 transform / opacity / background-position，不碰布局尺寸；
 * prefers-reduced-motion 下全部降级为静态；没有 JS 时内容仍然可见。
 */

/* ---- 首页容器：让英雄区能铺满视口，正文仍回到 1120px ---- */
body>main.home-main {
  max-width: none;
  padding: 0;
  overflow-x: clip;
  position: relative;
}
.home-wrap { width: min(1120px, 100%); margin: 0 auto; padding: 0 1.5rem; }
.home-main .home-section { padding-top: 5.5rem; }

/* 顶部滚动进度条 */
.scroll-progress {
  position: fixed; inset: 0 auto auto 0; z-index: 200;
  width: 100%; height: 2px; transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, #2f6bff, #22d3ee, #a78bfa);
  box-shadow: 0 0 18px rgba(47, 107, 255, .8);
  pointer-events: none;
}

/* ---- 英雄区 ---- */
.mega-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 64px 0 0;
  background:
    radial-gradient(900px 700px at 82% -10%, rgba(47, 107, 255, .38), transparent 62%),
    radial-gradient(700px 600px at 6% 106%, rgba(34, 211, 238, .18), transparent 60%),
    radial-gradient(600px 500px at 50% 50%, rgba(167, 139, 250, .12), transparent 65%),
    #050912;
  color: #e8f0ff;
  border-bottom: 1px solid rgba(151, 180, 255, .16);
}
.hero-canvas {
  position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%;
  pointer-events: none; opacity: .9;
}
.hero-aurora {
  position: absolute; z-index: 0; border-radius: 50%; filter: blur(80px);
  pointer-events: none; opacity: .5;
}
.hero-aurora-a {
  width: 560px; height: 560px; left: -180px; top: -220px;
  background: #1f5eff; animation: auroraFloat 16s ease-in-out infinite;
}
.hero-aurora-b {
  width: 520px; height: 520px; right: -160px; bottom: -240px;
  background: #7c3aed; animation: auroraFloat 20s ease-in-out infinite reverse;
}
.hero-grid {
  position: absolute; inset: -20%; z-index: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(151, 180, 255, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(151, 180, 255, .08) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse at 50% 42%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 42%, #000 0%, transparent 70%);
  animation: gridDrift 28s linear infinite;
}
.hero-spotlight {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(520px circle at var(--sx, 70%) var(--sy, 30%),
    rgba(47, 107, 255, .2), transparent 58%);
  transition: background .2s ease-out;
}
.hero-scan {
  position: absolute; left: 0; right: 0; top: 0; z-index: 3; height: 1px;
  pointer-events: none; opacity: .7;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, .9), transparent);
  box-shadow: 0 0 28px rgba(34, 211, 238, .55);
  animation: scanLine 7s cubic-bezier(.4, 0, .2, 1) infinite;
}
.hero-inner {
  position: relative; z-index: 4;
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 32px; align-items: center;
  min-height: 600px; padding-top: 12px; padding-bottom: 46px;
}
.hero-copy {
  max-width: 680px;
  transform: translate3d(calc(var(--hx, 0) * 8px), calc(var(--hy, 0) * 6px), 0);
  transition: transform .18s ease-out;
}
.hero-kicker {
  display: flex; align-items: center; flex-wrap: wrap; gap: 9px;
  margin: 0 0 22px; font-family: var(--mono); font-size: .64rem;
  letter-spacing: .18em; text-transform: uppercase; color: #8fa1ba;
}
.hero-kicker .kicker-sep { color: rgba(151, 180, 255, .35); }
.hero-kicker .kicker-code { color: #7dd3fc; }
.live-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #22d3ee;
  box-shadow: 0 0 0 0 rgba(34, 211, 238, .6);
  animation: livePulse 2s ease-out infinite;
}
.mega-title {
  margin: 0 0 22px; padding: 0; color: #fff;
  font-size: clamp(3.3rem, 7.4vw, 6.2rem); line-height: .94;
  font-weight: 750; letter-spacing: -.06em;
  text-shadow: 0 0 46px rgba(47, 107, 255, .3);
}
.title-line { display: block; animation: titleRise .9s cubic-bezier(.16, 1, .3, 1) both; }
.title-line:nth-child(2) { animation-delay: .1s; }
.title-accent {
  width: fit-content; text-shadow: none;
  background: linear-gradient(100deg, #ffffff 8%, #a5f3fc 34%, #60a5fa 58%, #c4b5fd 88%);
  background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: titleRise .9s .1s cubic-bezier(.16, 1, .3, 1) both,
    gradientShift 7s linear infinite;
}
.title-dot { color: #22d3ee; text-shadow: 0 0 30px rgba(34, 211, 238, .9); }
.mega-sub {
  max-width: 39em; margin: 0 0 18px;
  color: #a8b7cf; font-size: 1rem; line-height: 1.8;
}
.hero-type {
  display: flex; align-items: baseline; gap: 8px; min-height: 1.5em;
  margin: 0 0 24px; font-family: var(--mono); font-size: .72rem;
  letter-spacing: .12em; color: #7dd3fc;
}
.hero-type .type-prompt { color: #5d6b7e; letter-spacing: .16em; }
.caret {
  display: inline-block; width: 8px; height: 1em; background: #22d3ee;
  box-shadow: 0 0 12px rgba(34, 211, 238, .8); animation: caretBlink 1s steps(2) infinite;
  transform: translateY(2px);
}
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; }
.mega-hero .btn { height: 44px; padding: 0 22px; border-radius: 10px; font-size: .9rem; }
.mega-hero .btn.primary {
  background: linear-gradient(100deg, #2f6bff, #1f5eff 45%, #0ea5e9);
  box-shadow: 0 12px 34px -14px rgba(47, 107, 255, .9), inset 0 0 0 1px rgba(255, 255, 255, .18);
}
.mega-hero .btn.primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(47, 107, 255, 1); }
.mega-hero .btn.ghost {
  color: #c9d6ec; border: 1px solid rgba(151, 180, 255, .24);
  background: rgba(255, 255, 255, .04);
}
.mega-hero .btn.ghost:hover { background: rgba(255, 255, 255, .1); border-color: rgba(125, 211, 252, .5); }
.fx-btn { position: relative; overflow: hidden; }
.fx-btn::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .4), transparent 70%);
  transform: translateX(-130%); transition: transform .65s ease;
}
.fx-btn:hover::after { transform: translateX(130%); }
.hero-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 22px; }
.hero-chips span {
  padding: 4px 9px; border: 1px solid rgba(151, 180, 255, .16); border-radius: 5px;
  font-family: var(--mono); font-size: .58rem; letter-spacing: .12em; color: #8fa1ba;
  background: rgba(255, 255, 255, .03); transition: color .2s, border-color .2s, background .2s;
}
.hero-chips span:hover { color: #7dd3fc; border-color: rgba(125, 211, 252, .4); background: rgba(34, 211, 238, .07); }

/* ---- 轨道视觉：品类图标绕着芯片转 ---- */
.orbit-wrap {
  --r: 190px; --spin: 38s;
  position: relative; width: min(480px, 100%); aspect-ratio: 1; margin: 0 auto;
  display: grid; place-items: center; perspective: 900px;
  transform: translate3d(calc(var(--hx, 0) * -12px), calc(var(--hy, 0) * -8px), 0);
  transition: transform .18s ease-out;
}
.orbit-glow {
  position: absolute; inset: 11%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(47, 107, 255, .4), rgba(34, 211, 238, .1) 45%, transparent 68%);
  filter: blur(28px); animation: glowPulse 5s ease-in-out infinite;
}
.orbit-ring { position: absolute; border-radius: 50%; pointer-events: none; }
.ring-a { inset: 5%; border: 1px dashed rgba(125, 211, 252, .22); animation: spin 62s linear infinite; }
.ring-b { inset: 18%; border: 1px solid rgba(167, 139, 250, .18); animation: spinRev 48s linear infinite; }
.ring-c {
  inset: 30%; border: 1px dotted rgba(125, 211, 252, .25);
  animation: spin 34s linear infinite;
}
.orbit { position: absolute; inset: 0; animation: spin var(--spin) linear infinite; }
.orbit-node {
  position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px;
  transform: rotate(var(--a)) translateX(var(--r)) rotate(calc(-1 * var(--a)));
}
.orbit-node-in {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  width: 52px; height: 52px; border-radius: 14px; border: 1px solid rgba(125, 211, 252, .24);
  background: rgba(9, 16, 30, .78); box-shadow: 0 0 22px rgba(47, 107, 255, .14), inset 0 1px 0 rgba(255, 255, 255, .06);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  animation: spinRev var(--spin) linear infinite;
}
.orbit-node-in .ic { width: 19px; height: 19px; color: #7dd3fc; filter: drop-shadow(0 0 8px rgba(34, 211, 238, .55)); }
.orbit-node-in em {
  font-style: normal; font-family: var(--mono); font-size: 6.3px;
  letter-spacing: .1em; color: #8fa1ba;
}
.orbit-core {
  position: relative; z-index: 3; display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 118px; height: 118px; border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, rgba(47, 107, 255, .42), rgba(5, 9, 18, .96) 70%);
  border: 1px solid rgba(125, 211, 252, .38);
  box-shadow: 0 0 64px rgba(47, 107, 255, .38), inset 0 0 34px rgba(34, 211, 238, .12);
}
.orbit-core .ic { width: 34px; height: 34px; color: #22d3ee; filter: drop-shadow(0 0 14px rgba(34, 211, 238, .8)); }
.orbit-core span { font-family: var(--mono); font-size: 7px; line-height: 1.6; letter-spacing: .13em; color: #8fa1ba; }
.orbit-wrap:hover .orbit,
.orbit-wrap:hover .orbit-node-in,
.orbit-wrap:hover .orbit-ring { animation-play-state: paused; }

/* ---- 英雄区底部数据条 ---- */
.hero-bottom { position: relative; z-index: 4; }
.mega-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0;
  padding: 22px 0; border-top: 1px solid rgba(151, 180, 255, .16);
  border-bottom: 1px solid rgba(151, 180, 255, .16);
}
.mega-stats > div { padding: 0 24px; border-right: 1px solid rgba(151, 180, 255, .14); }
.mega-stats > div:first-child { padding-left: 0; }
.mega-stats > div:last-child { border-right: 0; }
.mega-stats dt {
  margin: 0; font-family: var(--mono); font-size: .6rem; letter-spacing: .16em;
  text-transform: uppercase; color: #8fa1ba;
}
.mega-stats dd {
  display: flex; align-items: baseline; gap: 4px; margin: 6px 0 0;
  font-family: var(--mono); font-size: 2rem; line-height: 1; font-weight: 600;
  color: #fff; font-variant-numeric: tabular-nums;
}
.mega-stats .stat-unit { font-size: .66rem; font-weight: 400; color: #8fa1ba; letter-spacing: .05em; }
.mega-stats .stat-note { display: block; margin-top: 6px; color: #5d6b7e; font-size: .64rem; }

/* ---- 跑马灯 ---- */
.hero-marquee {
  position: relative; z-index: 4; overflow: hidden;
  border-top: 1px solid rgba(151, 180, 255, .12);
  border-bottom: 1px solid rgba(151, 180, 255, .16);
  background: rgba(5, 9, 18, .66);
}
.marquee-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.hero-marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; gap: 20px; padding: 11px 20px 11px 0; }
.marquee-group span {
  font-family: var(--mono); font-size: .6rem; letter-spacing: .16em;
  color: #8fa1ba; white-space: nowrap;
}
.marquee-group i { color: #2f6bff; font-style: normal; font-size: .58rem; }

/* ---- 通用区块 / 揭示 ---- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.16, 1, .3, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.reveal { will-change: opacity, transform; }
.mega-section-head { align-items: flex-end; margin-bottom: 22px; }
.mega-section-head h2 { font-size: clamp(1.6rem, 2.6vw, 2.15rem); letter-spacing: -.03em; }
.mega-section-head .sub { max-width: 36em; }

/* ---- 品类卡：3×3，悬浮扫光 + 鼠标聚光 ---- */
.mega-catgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.js .reveal .mega-card { opacity: 0; }
.js .reveal.in .mega-card {
  opacity: 1;
  animation: cardIn .65s cubic-bezier(.16, 1, .3, 1) backwards;
  animation-delay: calc(var(--i) * 65ms);
}
.mega-card {
  position: relative; display: block; overflow: hidden; min-height: 176px;
  padding: 22px 20px 18px; border: 1px solid var(--line); border-radius: 16px;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: 0 1px 0 rgba(11, 18, 32, .02);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.mega-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%),
    rgba(47, 107, 255, .16), transparent 62%);
  transition: opacity .3s ease;
}
.mega-card:hover { transform: translateY(-6px); border-color: rgba(47, 107, 255, .45); text-decoration: none;
  box-shadow: 0 24px 54px -28px rgba(47, 107, 255, .65), 0 0 0 1px rgba(47, 107, 255, .12); }
.mega-card:hover::before { opacity: 1; }
.mega-card .catcode { display: flex; align-items: center; gap: 8px; font-size: .62rem; letter-spacing: .15em; }
.mega-card .cat-ic { width: 30px; height: 30px; color: var(--accent); filter: drop-shadow(0 0 10px rgba(47, 107, 255, .3)); transition: transform .3s ease, filter .3s ease; }
.mega-card:hover .cat-ic { transform: translateY(-2px) scale(1.08); filter: drop-shadow(0 0 16px rgba(34, 211, 238, .55)); }
.mega-card .catname { display: block; margin: 14px 0 18px; font-size: 1.42rem; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.mega-card .catcount { font-family: var(--mono); font-size: .72rem; color: var(--muted); }
.mega-card .catcount b { font-size: 1.02rem; color: var(--ink); }
.mega-card .catarrow { position: absolute; right: 20px; bottom: 18px; top: auto; opacity: .45; font-family: var(--mono); transition: transform .25s ease, color .25s ease, opacity .25s ease; }
.mega-card:hover .catarrow { color: var(--accent); opacity: 1; transform: translateX(3px); }
.card-index {
  position: absolute; right: 20px; top: 18px; font-family: var(--mono);
  font-size: .58rem; letter-spacing: .18em; color: var(--muted); opacity: .5;
}
.card-scan {
  position: absolute; top: 0; bottom: 0; left: -45%; width: 38%;
  background: linear-gradient(90deg, transparent, rgba(125, 211, 252, .18), transparent);
  transform: skewX(-18deg); opacity: 0; pointer-events: none;
}
.mega-card:hover .card-scan { opacity: 1; animation: cardScan .9s ease; }

/* ---- 两栏面板 ---- */
.mega-split { display: grid; grid-template-columns: 1.08fr .92fr; gap: 16px; }
.panel-glow {
  position: relative; border: 1px solid transparent; border-radius: 16px;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(120deg, rgba(47, 107, 255, .55), rgba(34, 211, 238, .2), rgba(167, 139, 250, .5)) border-box;
  background-size: 100% 100%, 220% 220%;
  animation: borderFlow 9s linear infinite;
  box-shadow: 0 20px 50px -34px rgba(47, 107, 255, .45);
}
.panel-glow .eyebrow { color: var(--accent); }
.method-bars { display: grid; gap: 8px; margin-top: 22px; }
.method-bars span { position: relative; display: block; height: 4px; border-radius: 4px; background: #eef2f9; overflow: hidden; }
.method-bars span::after {
  content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w, 70%);
  border-radius: 4px; background: linear-gradient(90deg, var(--accent), #22d3ee);
  box-shadow: 0 0 12px rgba(47, 107, 255, .35);
  transform-origin: 0 50%; animation: barGrow 1.3s .15s cubic-bezier(.16, 1, .3, 1) both;
}
.holo-panel { position: relative; overflow: hidden; }
.holo-panel::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .45;
  background-image:
    linear-gradient(rgba(151, 180, 255, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(151, 180, 255, .08) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at 80% 0%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 80% 0%, #000, transparent 70%);
}
.terminal { position: relative; z-index: 1; display: grid; gap: 8px; margin-top: 22px;
  padding: 14px 16px; border: 1px solid rgba(151, 180, 255, .16); border-radius: 10px;
  background: rgba(5, 9, 18, .62); font-family: var(--mono); }
.terminal-row { display: flex; align-items: center; gap: 9px; font-size: .68rem; color: #b6c3d8; }
.terminal-row code { background: none; padding: 0; color: #c9d6ec; font-size: .68rem; }
.terminal-row b { margin-left: auto; font-size: .6rem; letter-spacing: .1em; }
.t-dot { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 10px currentColor; }
.t-dot.warn { background: #f59e0b; }
.t-dot.unk { background: #94a3b8; }
.t-pass { color: #34d399; }
.t-warn { color: #fbbf24; }

/* ---- 底部 CTA ---- */
.mega-cta {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap;
  padding: 42px 44px; border-radius: 20px;
  background:
    radial-gradient(700px 400px at 80% 10%, rgba(47, 107, 255, .4), transparent 65%),
    radial-gradient(500px 300px at 0% 100%, rgba(34, 211, 238, .2), transparent 60%),
    #080e1a;
  border: 1px solid rgba(151, 180, 255, .2);
  box-shadow: 0 30px 80px -46px rgba(47, 107, 255, .7);
}
.mega-cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .4;
  background-image:
    linear-gradient(rgba(151, 180, 255, .1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(151, 180, 255, .1) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at 75% 20%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 75% 20%, #000, transparent 75%);
}
.mega-cta h2 { margin: 0 0 8px; color: #fff; font-size: clamp(1.7rem, 3vw, 2.5rem); letter-spacing: -.04em; }
.mega-cta p { margin: 0; color: #a8b7cf; font-size: .9rem; }
.mega-cta .eyebrow { color: #7dd3fc; }
.cta-orbit {
  position: absolute; right: -80px; top: 50%; width: 300px; height: 300px;
  transform: translateY(-50%); border-radius: 50%; pointer-events: none;
  border: 1px dashed rgba(125, 211, 252, .25); animation: spin 26s linear infinite;
}
.cta-orbit::before, .cta-orbit::after {
  content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(167, 139, 250, .2);
}
.cta-orbit::before { inset: 34px; }
.cta-orbit::after { inset: 84px; border-style: dotted; }

/* ---- 响应式 ---- */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: 8px; min-height: 0; padding-bottom: 34px; }
  .orbit-wrap { width: min(380px, 90%); --r: 150px; margin-top: 6px; }
  .hero-copy { max-width: none; }
  .mega-catgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .home-wrap { padding: 0 1rem; }
  .mega-hero { padding-top: 44px; }
  .hero-inner { padding-bottom: 26px; }
  .mega-title { font-size: clamp(2.8rem, 13vw, 4.2rem); }
  .mega-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 0; padding: 18px 0; }
  .mega-stats > div { padding: 0 16px; }
  .mega-stats > div:nth-child(2) { border-right: 0; }
  .mega-stats > div:nth-child(3) { padding-left: 0; }
  .mega-catgrid { grid-template-columns: 1fr; }
  .mega-card { min-height: 150px; }
  .mega-split { grid-template-columns: 1fr; }
  .mega-cta { padding: 30px 22px; }
  .orbit-wrap { display: none; }
  .hero-aurora { filter: blur(60px); opacity: .35; }
}
/* ---- keyframes ---- */
@keyframes auroraFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(40px, 30px, 0) scale(1.12); }
}
@keyframes gridDrift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(54px, 54px, 0); }
}
@keyframes scanLine {
  0% { top: 8%; opacity: 0; }
  12% { opacity: .65; }
  50% { top: 92%; opacity: .35; }
  100% { top: 8%; opacity: 0; }
}
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 211, 238, .55); }
  70% { box-shadow: 0 0 0 9px rgba(34, 211, 238, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); }
}
@keyframes titleRise {
  from { opacity: 0; transform: translateY(26px) skewY(2deg); }
  to { opacity: 1; transform: none; }
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes caretBlink {
  0%, 45% { opacity: 1; }
  46%, 100% { opacity: 0; }
}
@keyframes glowPulse {
  0%, 100% { opacity: .65; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spinRev { to { transform: rotate(-360deg); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes cardScan {
  from { left: -45%; }
  to { left: 115%; }
}
@keyframes borderFlow {
  0% { background-position: 0 0, 0% 50%; }
  50% { background-position: 0 0, 100% 50%; }
  100% { background-position: 0 0, 0% 50%; }
}
@keyframes barGrow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .mega-hero *, .home-main * {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .hero-canvas, .hero-scan { display: none; }
}
