/* 九明智能官网 - 全局样式 */
:root {
  --bg-primary: #070b14;
  --bg-secondary: #0c1220;
  --bg-card: rgba(16, 24, 42, 0.7);
  --border-card: rgba(148, 180, 255, 0.08);
  --border-card-hover: rgba(10, 109, 194, 0.35);
  --text-primary: #f0f5ff;
  --text-secondary: #8fa3c0;
  --text-muted: #5d718c;
  --blue: #0a6dc2;
  --blue-light: #2e9bff;
  --cyan: #22d3ee;
  --yellow: #f5a623;
  --green: #22a864;
  --gradient-primary: linear-gradient(135deg, #0a6dc2 0%, #22d3ee 100%);
  --gradient-glow: linear-gradient(135deg, rgba(10,109,194,0.4) 0%, rgba(34,211,238,0.2) 100%);
  --font-stack: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", "Noto Sans SC", sans-serif;
  --radius: 14px;
  --radius-sm: 8px;
  --max-width: 1200px;
  --nav-height: 72px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-stack);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
}

/* 背景网格 + 渐变光晕 */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(10, 109, 194, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 109, 194, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 10%, rgba(10, 109, 194, 0.18), transparent 40%),
    radial-gradient(circle at 80% 30%, rgba(34, 211, 238, 0.12), transparent 35%),
    radial-gradient(circle at 50% 90%, rgba(34, 168, 100, 0.1), transparent 40%);
}

/* 粒子画布 */
#particles-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.6;
}

/* 容器 */
.container {
  width: 100%;
  min-width: 0;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* 导航栏 */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: background 0.3s, backdrop-filter 0.3s, box-shadow 0.3s;
}

.navbar.scrolled {
  background: rgba(7, 11, 20, 0.85);
  backdrop-filter: blur(14px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--border-card);
}

.navbar-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: radial-gradient(circle at 50% 35%, rgba(10, 109, 194, 0.22), rgba(10, 109, 194, 0.06) 55%, transparent 75%);
  box-shadow:
    0 0 0 1px rgba(10, 109, 194, 0.22),
    0 0 24px rgba(10, 109, 194, 0.28),
    inset 0 0 24px rgba(10, 109, 194, 0.12);
  transition: all 0.3s ease;
  overflow: hidden;
}

.logo-mark::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 0%, rgba(34, 211, 238, 0.18), transparent 60%);
  opacity: 0.7;
}

.logo-link:hover .logo-mark {
  box-shadow:
    0 0 0 1px rgba(10, 109, 194, 0.45),
    0 0 36px rgba(10, 109, 194, 0.45),
    inset 0 0 32px rgba(10, 109, 194, 0.2);
  transform: scale(1.04);
}

.logo-img {
  height: 38px;
  width: auto;
  opacity: 0.98;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 10px rgba(10, 109, 194, 0.55)) drop-shadow(0 0 20px rgba(10, 109, 194, 0.25));
}

.logo-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

.logo-text span {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 20px;
  margin-left: 4px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  font-size: 15px;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.25s;
  border-radius: 2px;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--text-primary);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.desktop-only { display: flex; }
.mobile-only { display: none; }

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 24px rgba(10, 109, 194, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(10, 109, 194, 0.5);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-outline:hover {
  border-color: var(--blue-light);
  color: var(--blue-light);
  background: rgba(10, 109, 194, 0.08);
}

.btn-sm {
  padding: 8px 20px;
  font-size: 14px;
}

/* 汉堡菜单 */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  min-width: 40px;
  min-height: 40px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: inherit;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: 0.3s;
}

/* 文字渐变 */
.text-gradient {
  background: linear-gradient(135deg, #fff 0%, #22d3ee 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-blue {
  background: linear-gradient(135deg, #0a6dc2 0%, #22d3ee 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 通用标题 */
.section {
  padding: 110px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 64px;
}

.section-label {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 100px;
  background: rgba(10, 109, 194, 0.12);
  border: 1px solid rgba(10, 109, 194, 0.25);
  color: var(--blue-light);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
  letter-spacing: 0.5px;
}

.section-title {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 18px;
}

.section-desc {
  font-size: 18px;
  color: var(--text-secondary);
  margin: 0;
}

/* 卡片 */
.card {
  min-width: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-glow);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--border-card-hover);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 22px;
  background: rgba(10, 109, 194, 0.12);
  border: 1px solid rgba(10, 109, 194, 0.2);
}

.card-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 12px;
  position: relative;
}

.card-text {
  color: var(--text-secondary);
  margin: 0;
  font-size: 15px;
  position: relative;
}

/* 网格布局 */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* 滚动渐入动画 */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* 页脚 */
.footer {
  background: rgba(5, 9, 18, 0.9);
  border-top: 1px solid var(--border-card);
  padding: 70px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 50px;
}

.footer-brand .logo-img {
  height: 50px;
  margin-bottom: 18px;
}

.footer-desc {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.8;
  margin: 0 0 20px;
}

.footer-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 20px;
  color: var(--text-primary);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 14px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--blue-light);
}

.footer-contact p {
  color: var(--text-secondary);
  font-size: 14px;
  margin: 0 0 10px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  overflow-wrap: anywhere;
}

.footer-bottom {
  border-top: 1px solid var(--border-card);
  padding-top: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

/* 响应式 */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --nav-height: 64px; }

  .nav-toggle { display: flex; }

  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(7, 11, 20, 0.97);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 6px;
    border-bottom: 1px solid var(--border-card);
    transform: translateY(-150%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      transform 0.35s ease,
      opacity 0.35s ease,
      visibility 0s linear 0.35s;
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
  }

  body.menu-open { overflow: hidden; }

  .nav-menu li { width: 100%; }
  .nav-menu a { display: block; padding: 12px 0; font-size: 16px; }

  .nav-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 16px;
    width: 100%;
  }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section-title { font-size: 30px; }
  .section { padding: 80px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .desktop-only { display: none; }
  .mobile-only { display: flex; }
  .hero-title-xl { font-size: 40px; }
  .hero-subtitle { font-size: 16px; }
  .hero-keywords p { font-size: 15px; letter-spacing: 0.02em; white-space: normal; max-width: 320px; }
  .chain-node { min-width: 130px; padding: 14px 16px; }
  .value-chain { gap: 10px; }
  .loop-node { padding: 18px 20px; }
}

/* 首页超大标题 */
.hero-title-xl {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.12;
  margin: 0 0 22px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 20px;
  color: var(--text-secondary);
  margin: 0 0 38px;
  max-width: 680px;
  line-height: 1.6;
}

/* 首屏六大关键词：一行展示，窄屏自动折行 */
.hero-keywords {
  margin: 0 0 38px;
}

.hero-keywords p {
  margin: 0;
  font-size: 20px;
  color: var(--text-secondary);
  line-height: 1.9;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.hero-subtitle .dot,
.hero-keywords .dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  margin: 0 10px;
  vertical-align: middle;
  opacity: 0.7;
}

/* 功能标签 */
.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.feature-tag {
  padding: 7px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  transition: all 0.2s;
}

.feature-tag:hover {
  background: rgba(10, 109, 194, 0.12);
  border-color: rgba(10, 109, 194, 0.25);
  color: var(--blue-light);
}

.feature-tag.accent-blue { color: var(--blue-light); border-color: rgba(10, 109, 194, 0.25); background: rgba(10, 109, 194, 0.08); }
.feature-tag.accent-cyan { color: var(--cyan); border-color: rgba(34, 211, 238, 0.25); background: rgba(34, 211, 238, 0.08); }
.feature-tag.accent-yellow { color: var(--yellow); border-color: rgba(245, 166, 35, 0.25); background: rgba(245, 166, 35, 0.08); }
.feature-tag.accent-green { color: var(--green); border-color: rgba(34, 168, 100, 0.25); background: rgba(34, 168, 100, 0.08); }

/* 核心价值链 */
.value-section {
  text-align: center;
}

.value-headline {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 auto 50px;
  max-width: 900px;
}

.value-chain {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

.chain-node {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 100px;
  padding: 16px 22px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  position: relative;
  transition: all 0.25s;
  backdrop-filter: blur(8px);
}

.chain-node:hover {
  border-color: var(--border-card-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.chain-node::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 100px;
  background: var(--gradient-glow);
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}

.chain-node:hover::before { opacity: 1; }

.chain-node span { position: relative; z-index: 1; }

.chain-arrow {
  color: var(--blue-light);
  font-size: 22px;
  opacity: 0.8;
  flex-shrink: 0;
}

/* AI 增长闭环 */
.growth-loop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
}

.loop-node {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 22px 28px;
  display: flex;
  align-items: center;
  gap: 18px;
  position: relative;
  transition: all 0.25s;
  text-align: left;
}

.loop-node:hover {
  border-color: var(--border-card-hover);
  transform: translateX(8px);
}

.loop-node .num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
  background: rgba(10, 109, 194, 0.15);
  color: var(--blue-light);
  border: 1px solid rgba(10, 109, 194, 0.25);
}

.loop-node:nth-child(odd) .num {
  background: rgba(34, 211, 238, 0.12);
  color: var(--cyan);
  border-color: rgba(34, 211, 238, 0.25);
}

.loop-node .title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.loop-node .desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 4px 0 0;
}

.loop-arrow {
  color: var(--blue-light);
  font-size: 24px;
  opacity: 0.6;
  line-height: 1;
}

.loop-node.loop-end {
  border-style: dashed;
  border-color: rgba(10, 109, 194, 0.35);
}

.loop-node.loop-end .num {
  background: rgba(34, 168, 100, 0.15);
  color: var(--green);
  border-color: rgba(34, 168, 100, 0.3);
}

/* 页脚 Logo 徽章 */
.footer-mark {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  background: radial-gradient(circle at 50% 35%, rgba(10, 109, 194, 0.22), rgba(10, 109, 194, 0.06) 55%, transparent 75%);
  box-shadow:
    0 0 0 1px rgba(10, 109, 194, 0.22),
    0 0 28px rgba(10, 109, 194, 0.25),
    inset 0 0 28px rgba(10, 109, 194, 0.12);
}

.footer-mark .logo-img {
  height: 50px;
}

/* 产品页功能详情 */
.feature-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 90px;
}

.feature-detail.reverse {
  direction: rtl;
}

.feature-detail.reverse > * {
  direction: ltr;
}

.feature-detail:last-child {
  margin-bottom: 0;
}

.feature-detail-visual {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 24px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-detail-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(10, 109, 194, 0.18), transparent 60%);
}

.feature-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(10, 109, 194, 0.15);
  color: var(--blue-light);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 16px;
}

.feature-detail h3 {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 16px;
  line-height: 1.3;
}

.feature-detail p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.8;
  margin: 0 0 22px;
}

@media (max-width: 1024px) {
  .feature-detail { grid-template-columns: 1fr; gap: 36px; }
  .feature-detail.reverse { direction: ltr; }
  .feature-detail-visual { min-height: 260px; }
}

/* Keep the homepage keyword line readable after the later desktop declarations. */
@media (max-width: 768px) {
  .hero-title-xl { font-size: 40px; }
  .hero-subtitle { font-size: 16px; }
  .hero-keywords p {
    max-width: 320px;
    font-size: 15px;
    letter-spacing: 0.02em;
    white-space: normal;
  }
}

/* Fine-pointer depth layer: shared, restrained, and layout-neutral. */
@media (hover: hover) and (pointer: fine) {
  .bg-glow::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(
      circle 340px at var(--pointer-x, 50vw) var(--pointer-y, 50vh),
      rgba(34, 211, 238, 0.11) 0%,
      rgba(10, 109, 194, 0.055) 38%,
      transparent 72%
    );
    opacity: var(--pointer-light-opacity, 0);
    transition: opacity 0.28s ease;
  }

  .card {
    --card-pointer-x: 50%;
    --card-pointer-y: 50%;
    --card-spotlight-opacity: 0;
  }

  .card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(
      circle 240px at var(--card-pointer-x) var(--card-pointer-y),
      rgba(34, 211, 238, 0.13) 0%,
      rgba(10, 109, 194, 0.055) 34%,
      transparent 70%
    );
    box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.055);
    opacity: var(--card-spotlight-opacity);
    transition: opacity 0.2s ease;
  }

  .card:hover {
    transform: translateY(-6px);
    border-color: rgba(46, 155, 255, 0.38);
    box-shadow:
      0 20px 50px rgba(0, 0, 0, 0.35),
      inset 0 0 0 1px rgba(34, 211, 238, 0.035);
  }

  .btn {
    --magnetic-x: 0px;
    --magnetic-y: 0px;
    --button-lift: 0px;
    --button-pointer-x: 50%;
    --button-pointer-y: 50%;
    --button-sheen-opacity: 0;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    transform: translate3d(
      var(--magnetic-x),
      calc(var(--magnetic-y) + var(--button-lift)),
      0
    );
    transition:
      transform 0.22s cubic-bezier(0.2, 0.75, 0.25, 1),
      color 0.25s ease,
      background 0.25s ease,
      border-color 0.25s ease,
      box-shadow 0.25s ease;
  }

  .btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(
      circle 92px at var(--button-pointer-x) var(--button-pointer-y),
      rgba(255, 255, 255, 0.2),
      transparent 68%
    );
    opacity: var(--button-sheen-opacity);
    transition: opacity 0.18s ease;
  }

  .btn-primary:hover {
    --button-lift: -2px;
    transform: translate3d(
      var(--magnetic-x),
      calc(var(--magnetic-y) + var(--button-lift)),
      0
    );
  }

  .btn:active {
    --button-lift: 0px;
    transform: translate3d(
      var(--magnetic-x),
      calc(var(--magnetic-y) + var(--button-lift)),
      0
    ) scale(0.98);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  #particles-canvas { display: none; }
  .reveal { opacity: 1; transform: none; }
  .bg-glow::after,
  .card::after,
  .btn::after {
    display: none !important;
    opacity: 0 !important;
  }
  .card:hover,
  .btn,
  .btn:hover,
  .btn:active,
  .btn-primary:hover,
  .chain-node:hover,
  .loop-node:hover,
  .logo-link:hover .logo-mark { transform: none; }
}
