/* QingluAI visual and motion upgrade. Loaded after the compiled application CSS. */
:root {
  --xai-green: #65f598;
  --xai-green-dim: rgba(101, 245, 152, 0.78);
  --xai-green-subtle: rgba(101, 245, 152, 0.12);
  --xai-green-glow: rgba(101, 245, 152, 0.16);
  --xai-cyan: #73d9ff;
  --xai-cyan-dim: rgba(115, 217, 255, 0.72);
  --xai-amber: #ffc978;
  --bg-deep: #07090a;
  --bg-mid: #0a0d0e;
  --bg-surface: #0e1213;
  --bg-elevated: #131819;
  --bg-card: #0b0e0f;
  --bg-card-hover: #101617;
  --border-subtle: rgba(232, 250, 243, 0.09);
  --border-default: rgba(232, 250, 243, 0.16);
  --border-strong: rgba(232, 250, 243, 0.27);
  --border-green: rgba(101, 245, 152, 0.42);
  --text-primary: rgba(248, 252, 250, 0.97);
  --text-secondary: rgba(235, 244, 240, 0.78);
  --text-tertiary: rgba(224, 238, 232, 0.64);
  --text-muted: rgba(216, 232, 225, 0.46);
  --ease-qinglu: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  background: var(--bg-deep);
}

body {
  background: var(--bg-deep);
  color: var(--text-primary);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  opacity: 0.022;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.34) 0,
    rgba(255, 255, 255, 0.34) 1px,
    transparent 1px,
    transparent 3px
  );
}

.display-title {
  letter-spacing: 0 !important;
}

.navbar-container {
  background: rgba(5, 8, 9, 0.8) !important;
  border-bottom: 1px solid rgba(115, 217, 255, 0.1) !important;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.18);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  backdrop-filter: blur(18px) saturate(130%);
}

.navbar-container::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  opacity: 0.5;
  transform: scaleX(0.36);
  transform-origin: center;
  background: linear-gradient(90deg, transparent, var(--xai-cyan), var(--xai-green), transparent);
  transition: transform 800ms var(--ease-qinglu), opacity 500ms ease;
}

.navbar-container:hover::after {
  opacity: 0.75;
  transform: scaleX(0.8);
}

.home-hero-section {
  min-height: max(92svh, 650px) !important;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(115, 217, 255, 0.025), transparent 28%),
    linear-gradient(180deg, #07090a 0%, #080b0c 66%, #0a0d0e 100%) !important;
}

.home-hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(115, 217, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(101, 245, 152, 0.065) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 5%, #000 48%, transparent 94%);
  mask-image: linear-gradient(to bottom, transparent 5%, #000 48%, transparent 94%);
  transform: perspective(760px) rotateX(58deg) scale(1.35) translateY(23%);
  transform-origin: 50% 78%;
}

.home-hero-section::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 5;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(115, 217, 255, 0.52), rgba(101, 245, 152, 0.78), transparent);
  box-shadow: 0 -10px 42px rgba(101, 245, 152, 0.13);
}

.home-hero-section > .relative.z-10 {
  z-index: 10;
  width: min(100%, 1080px);
  padding-top: 4.75rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.48);
}

.home-hero-section .display-title {
  max-width: 980px;
  margin-right: auto;
  margin-left: auto;
  font-size: 6rem !important;
  font-weight: 650;
  text-wrap: balance;
}

.home-hero-section .display-title span {
  color: transparent !important;
  background: linear-gradient(90deg, #aebabb 0%, #eef5f3 36%, var(--xai-cyan) 66%, var(--xai-green) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.home-hero-section p {
  max-width: 920px;
  margin-right: auto;
  margin-left: auto;
}

.home-fog-sphere,
.home-hero-section > canvas,
.home-hero-section > .absolute.inset-0.z-0.pointer-events-none,
.home-hero-section > .absolute.pointer-events-none[style*="radial-gradient"] {
  display: none !important;
}

.home-orbital-horizon {
  z-index: 3;
  bottom: -7vh;
  opacity: 0.82;
  width: min(1500px, 120vw);
  box-shadow:
    inset 0 14px 22px -20px rgba(255, 255, 255, 0.65),
    0 -14px 90px -48px rgba(101, 245, 152, 0.46),
    0 -8px 72px -52px rgba(115, 217, 255, 0.55);
}

.home-orbital-horizon::before {
  opacity: 0.9;
  background: linear-gradient(90deg, transparent, rgba(115, 217, 255, 0.4), rgba(101, 245, 152, 0.72), rgba(255, 201, 120, 0.22), transparent);
  animation: qinglu-horizon-breathe 5.6s ease-in-out infinite;
}

.qinglu-airfield {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 900ms var(--ease-qinglu);
}

.qinglu-experience-ready .qinglu-airfield {
  opacity: 1;
}

.qinglu-boundary-band {
  position: absolute;
  right: -8%;
  bottom: 11%;
  left: -8%;
  z-index: 4;
  height: 18%;
  pointer-events: none;
  opacity: 0.65;
  transform: skewY(-1.25deg);
  background:
    linear-gradient(180deg, transparent 0%, rgba(115, 217, 255, 0.035) 42%, rgba(101, 245, 152, 0.08) 48%, rgba(101, 245, 152, 0.015) 53%, transparent 68%),
    repeating-linear-gradient(90deg, transparent 0 8%, rgba(115, 217, 255, 0.1) 8.05% 8.12%, transparent 8.18% 13%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
}

.qinglu-boundary-band::after {
  content: "";
  position: absolute;
  top: 49%;
  left: 0;
  width: 26%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--xai-cyan), var(--xai-green), transparent);
  box-shadow: 0 0 18px rgba(101, 245, 152, 0.32);
  animation: qinglu-boundary-scan 4.8s var(--ease-qinglu) infinite;
}

.home-hero-rail {
  position: relative;
  z-index: 12;
  overflow: hidden;
  border-color: rgba(232, 250, 243, 0.14);
  background: rgba(7, 11, 12, 0.56);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025), 0 18px 48px rgba(0, 0, 0, 0.14);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.home-hero-rail__item {
  min-height: 60px;
  color: rgba(226, 239, 233, 0.52);
  transition:
    color 260ms var(--ease-qinglu),
    background-color 260ms var(--ease-qinglu),
    transform 260ms var(--ease-qinglu);
}

.home-hero-rail__item:hover {
  color: var(--text-primary);
  background: linear-gradient(180deg, rgba(115, 217, 255, 0.06), rgba(101, 245, 152, 0.04));
  transform: translate3d(0, -2px, 0);
}

.btn-xai,
.btn-xai-green {
  position: relative;
  min-height: 42px;
  border-radius: 4px;
  overflow: hidden;
  isolation: isolate;
  transition:
    color 260ms var(--ease-qinglu),
    border-color 260ms var(--ease-qinglu),
    background-color 260ms var(--ease-qinglu),
    box-shadow 320ms var(--ease-qinglu),
    transform 180ms var(--ease-qinglu);
}

.btn-xai::before,
.btn-xai-green::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  transform: translate3d(-108%, 0, 0) skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  transition: transform 600ms var(--ease-qinglu), opacity 220ms ease;
}

.btn-xai:hover::before,
.btn-xai-green:hover::before {
  opacity: 1;
  transform: translate3d(108%, 0, 0) skewX(-18deg);
}

.btn-xai-green:hover {
  color: #041108;
  background: var(--xai-green);
  box-shadow: 0 0 0 1px rgba(101, 245, 152, 0.18), 0 14px 34px rgba(101, 245, 152, 0.15);
  transform: translate3d(0, -2px, 0);
}

.btn-xai:hover {
  color: var(--xai-cyan);
  border-color: rgba(115, 217, 255, 0.62);
  background: rgba(115, 217, 255, 0.055);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
  transform: translate3d(0, -2px, 0);
}

.fade-in {
  transform: translate3d(0, 20px, 0);
  transition:
    opacity 680ms var(--ease-qinglu),
    transform 680ms var(--ease-qinglu);
  will-change: opacity, transform;
}

.fade-in.visible {
  transform: translate3d(0, 0, 0);
  will-change: auto;
}

.home-hero-section ~ section {
  border-top: 1px solid rgba(232, 250, 243, 0.055);
  content-visibility: auto;
  contain-intrinsic-size: 900px;
}

.home-hero-section ~ section::before {
  content: "";
  position: absolute;
  top: 0;
  right: 7%;
  left: 7%;
  height: 1px;
  pointer-events: none;
  opacity: 0.52;
  background: linear-gradient(90deg, transparent, rgba(115, 217, 255, 0.24), rgba(101, 245, 152, 0.18), transparent);
}

.card-sheen,
.domain-card,
.latest-research-row,
.tech-layer-row {
  transition:
    transform 320ms var(--ease-qinglu),
    background-color 320ms var(--ease-qinglu),
    border-color 320ms var(--ease-qinglu),
    box-shadow 320ms var(--ease-qinglu);
}

.card-sheen:hover,
.domain-card:hover {
  background-color: #101617 !important;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.2), inset 0 1px rgba(255, 255, 255, 0.03);
  transform: translate3d(0, -4px, 0);
}

.card-sheen::before {
  width: 42%;
  background: linear-gradient(90deg, transparent, rgba(115, 217, 255, 0.06), rgba(101, 245, 152, 0.08), transparent);
}

.interactive-edge::after {
  border-color: rgba(101, 245, 152, 0.34);
  box-shadow: inset 0 0 0 1px rgba(115, 217, 255, 0.055), 0 0 34px rgba(101, 245, 152, 0.075);
}

.product-card-index,
.home-hero-rail__arrow {
  color: rgba(115, 217, 255, 0.48);
}

.latest-research-row:hover,
.tech-layer-row:hover {
  background: linear-gradient(90deg, rgba(115, 217, 255, 0.045), rgba(101, 245, 152, 0.025), transparent);
  transform: translate3d(4px, 0, 0);
}

.footer-container {
  border-top: 1px solid rgba(115, 217, 255, 0.12);
  background: #060809 !important;
}

@keyframes qinglu-horizon-breathe {
  0%, 100% { opacity: 0.55; transform: scaleX(0.78); }
  50% { opacity: 1; transform: scaleX(1); }
}

@keyframes qinglu-boundary-scan {
  0% { opacity: 0; transform: translate3d(-20%, 0, 0) scaleX(0.45); }
  18% { opacity: 0.9; }
  72% { opacity: 0.55; }
  100% { opacity: 0; transform: translate3d(430%, 0, 0) scaleX(0.7); }
}

@media (max-width: 1024px) {
  .home-hero-section {
    min-height: max(94svh, 680px) !important;
  }

  .home-hero-section > .relative.z-10 {
    padding-top: 5.5rem;
  }

  .home-hero-section .display-title {
    font-size: 4.7rem !important;
  }

  .home-orbital-horizon {
    bottom: -2vh;
  }
}

@media (max-width: 640px) {
  body::before {
    display: none;
  }

  .navbar-container {
    -webkit-backdrop-filter: blur(12px) saturate(120%);
    backdrop-filter: blur(12px) saturate(120%);
  }

  .home-hero-section {
    min-height: max(94svh, 720px) !important;
    justify-content: flex-start;
  }

  .home-hero-section::before {
    opacity: 0.19;
    background-size: 52px 52px;
  }

  .home-hero-section > .relative.z-10 {
    padding: 7rem 1.25rem 4rem;
  }

  .home-hero-section .mono-tag {
    margin-bottom: 1.5rem;
  }

  .home-hero-section .display-title {
    margin-bottom: 1.4rem;
    font-size: 3.35rem !important;
    line-height: 1.02;
  }

  .home-hero-section p {
    line-height: 1.68 !important;
  }

  .home-hero-section p.mb-16 {
    margin-bottom: 2.2rem;
  }

  .home-hero-section .btn-xai,
  .home-hero-section .btn-xai-green {
    min-width: min(100%, 168px);
    justify-content: center;
  }

  .home-hero-rail {
    display: none;
  }

  .home-orbital-horizon {
    bottom: 0;
    width: 154vw;
    height: 58vw;
    opacity: 0.58;
  }

  .qinglu-boundary-band {
    bottom: 8%;
    opacity: 0.48;
  }

  .home-hero-section ~ section {
    contain-intrinsic-size: 720px;
  }

  .card-sheen:hover,
  .domain-card:hover {
    transform: none;
  }
}

@media (max-width: 380px) {
  .home-hero-section .display-title {
    font-size: 2.9rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .qinglu-airfield {
    opacity: 0.72;
  }
}

/* Global route system: each page keeps its own signal while sharing one motion budget. */
html.qinglu-global-v3 {
  --route-a: var(--xai-green);
  --route-b: var(--xai-cyan);
  --route-a-rgb: 101, 245, 152;
  --route-b-rgb: 115, 217, 255;
}

html[data-qinglu-page="home"] .home-hero-section {
  min-height: 80svh !important;
}

html[data-qinglu-page="home"] .home-hero-section + section,
html:is(
  [data-qinglu-page="cleanpetguard"],
  [data-qinglu-page="cairgcloud"],
  [data-qinglu-page="cleanairguard"],
  [data-qinglu-page="air-systems"],
  [data-qinglu-page="coulomb"],
  [data-qinglu-page="company"],
  [data-qinglu-page="future"],
  [data-qinglu-page="pet-ai"],
  [data-qinglu-page="karman"]
) .qinglu-page-frame + section {
  padding-top: 5rem !important;
}

html[data-qinglu-page="cairgcloud"],
html[data-qinglu-page="cleanairguard"],
html[data-qinglu-page="company"],
html[data-qinglu-page="research"],
html[data-qinglu-page="research-article"] {
  --route-a: var(--xai-cyan);
  --route-b: var(--xai-green);
  --route-a-rgb: 115, 217, 255;
  --route-b-rgb: 101, 245, 152;
}

html[data-qinglu-page="coulomb"],
html[data-qinglu-page="future"],
html[data-qinglu-page="karman"] {
  --route-a: var(--xai-amber);
  --route-b: var(--xai-cyan);
  --route-a-rgb: 255, 201, 120;
  --route-b-rgb: 115, 217, 255;
}

.qinglu-page-frame {
  position: relative;
  isolation: isolate;
}

.qinglu-route-field {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  opacity: 0.84;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 2%, #000 19%, #000 82%, transparent 98%);
  mask-image: linear-gradient(to bottom, transparent 2%, #000 19%, #000 82%, transparent 98%);
}

html:is(
  [data-qinglu-page="cleanpetguard"],
  [data-qinglu-page="cairgcloud"],
  [data-qinglu-page="cleanairguard"],
  [data-qinglu-page="air-systems"],
  [data-qinglu-page="coulomb"],
  [data-qinglu-page="company"],
  [data-qinglu-page="future"],
  [data-qinglu-page="pet-ai"]
) .qinglu-page-frame {
  min-height: 80svh !important;
  overflow: hidden;
  border-bottom: 1px solid rgba(var(--route-a-rgb), 0.2);
  background:
    linear-gradient(112deg, rgba(var(--route-a-rgb), 0.045), transparent 34%),
    linear-gradient(180deg, #07090a 0%, #090c0d 72%, #0b0f10 100%) !important;
}

html:is(
  [data-qinglu-page="cleanpetguard"],
  [data-qinglu-page="cairgcloud"],
  [data-qinglu-page="cleanairguard"],
  [data-qinglu-page="air-systems"],
  [data-qinglu-page="coulomb"],
  [data-qinglu-page="company"],
  [data-qinglu-page="future"]
) .qinglu-page-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(var(--route-a-rgb), 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--route-b-rgb), 0.065) 1px, transparent 1px);
  background-size: 84px 84px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 7%, #000 44%, transparent 96%);
  mask-image: linear-gradient(to bottom, transparent 7%, #000 44%, transparent 96%);
  transform: perspective(800px) rotateX(59deg) scale(1.35) translateY(28%);
  transform-origin: 50% 78%;
}

html:is(
  [data-qinglu-page="cleanpetguard"],
  [data-qinglu-page="cairgcloud"],
  [data-qinglu-page="cleanairguard"],
  [data-qinglu-page="air-systems"],
  [data-qinglu-page="coulomb"],
  [data-qinglu-page="company"],
  [data-qinglu-page="future"],
  [data-qinglu-page="pet-ai"]
) .qinglu-page-frame > .relative.z-10,
html:is(
  [data-qinglu-page="cleanpetguard"],
  [data-qinglu-page="cairgcloud"],
  [data-qinglu-page="cleanairguard"],
  [data-qinglu-page="air-systems"],
  [data-qinglu-page="coulomb"],
  [data-qinglu-page="company"],
  [data-qinglu-page="future"],
  [data-qinglu-page="pet-ai"]
) .qinglu-page-frame > .container.relative.z-10 {
  z-index: 10;
  width: min(100%, 1080px);
  padding-top: 6.5rem;
  padding-bottom: 4.5rem;
  text-shadow: 0 2px 26px rgba(0, 0, 0, 0.55);
}

html.qinglu-page-ready:is(
  [data-qinglu-page="cleanpetguard"],
  [data-qinglu-page="cairgcloud"],
  [data-qinglu-page="cleanairguard"],
  [data-qinglu-page="air-systems"],
  [data-qinglu-page="coulomb"],
  [data-qinglu-page="company"],
  [data-qinglu-page="future"],
  [data-qinglu-page="pet-ai"]
) .qinglu-page-frame > .relative.z-10,
html.qinglu-page-ready:is(
  [data-qinglu-page="cleanpetguard"],
  [data-qinglu-page="cairgcloud"],
  [data-qinglu-page="cleanairguard"],
  [data-qinglu-page="air-systems"],
  [data-qinglu-page="coulomb"],
  [data-qinglu-page="company"],
  [data-qinglu-page="future"],
  [data-qinglu-page="pet-ai"]
) .qinglu-page-frame > .container.relative.z-10,
html.qinglu-page-ready:is(
  [data-qinglu-page="cleanpetguard"],
  [data-qinglu-page="cairgcloud"],
  [data-qinglu-page="cleanairguard"],
  [data-qinglu-page="air-systems"],
  [data-qinglu-page="coulomb"],
  [data-qinglu-page="company"],
  [data-qinglu-page="future"],
  [data-qinglu-page="pet-ai"]
) .qinglu-page-frame > .relative.z-10 [style*="opacity"] {
  opacity: 1 !important;
  transform: translate3d(0, 0, 0) !important;
  transition: opacity 480ms var(--ease-qinglu), transform 560ms var(--ease-qinglu) !important;
  transition-delay: 0ms !important;
}

html:is(
  [data-qinglu-page="cleanpetguard"],
  [data-qinglu-page="cairgcloud"],
  [data-qinglu-page="cleanairguard"],
  [data-qinglu-page="air-systems"],
  [data-qinglu-page="coulomb"],
  [data-qinglu-page="company"],
  [data-qinglu-page="future"],
  [data-qinglu-page="pet-ai"]
) .qinglu-page-frame h1.display-title {
  max-width: 950px;
  margin-right: auto;
  margin-left: auto;
  font-size: 4.9rem !important;
  line-height: 1.04 !important;
  font-weight: 630;
  text-wrap: balance;
}

html:is(
  [data-qinglu-page="cleanpetguard"],
  [data-qinglu-page="cairgcloud"],
  [data-qinglu-page="cleanairguard"],
  [data-qinglu-page="air-systems"],
  [data-qinglu-page="coulomb"],
  [data-qinglu-page="company"],
  [data-qinglu-page="future"],
  [data-qinglu-page="pet-ai"]
) .qinglu-page-frame h1.display-title span {
  color: transparent !important;
  background: linear-gradient(90deg, #f4f8f6 0%, #dbe9e4 48%, var(--route-a) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

html:is(
  [data-qinglu-page="cleanpetguard"],
  [data-qinglu-page="cairgcloud"],
  [data-qinglu-page="cleanairguard"],
  [data-qinglu-page="air-systems"],
  [data-qinglu-page="coulomb"],
  [data-qinglu-page="company"],
  [data-qinglu-page="future"],
  [data-qinglu-page="pet-ai"]
) .qinglu-page-frame p {
  color: var(--text-secondary) !important;
  line-height: 1.72 !important;
}

html[data-qinglu-page="cairgcloud"] .qinglu-page-frame > .container {
  min-height: 80svh !important;
}

html[data-qinglu-page="cairgcloud"] .qinglu-page-frame {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

html[data-qinglu-page="company"] .qinglu-page-frame {
  min-height: 76svh !important;
}

html[data-qinglu-page="karman"] .karman-hero {
  min-height: 80svh !important;
  padding: 6.5rem 0 0 !important;
}

html[data-qinglu-page="karman"] .karman-hero__content {
  min-height: calc(80svh - 6.5rem) !important;
}

html[data-qinglu-page="karman"] .karman-hero__title {
  font-size: 4.25rem !important;
  line-height: 1.08;
  text-wrap: balance;
}

html[data-qinglu-page="cleanpetguard"] .qinglu-page-frame h1 {
  max-width: 900px;
}

html:is(
  [data-qinglu-page="cleanpetguard"],
  [data-qinglu-page="cairgcloud"],
  [data-qinglu-page="cleanairguard"],
  [data-qinglu-page="air-systems"],
  [data-qinglu-page="coulomb"],
  [data-qinglu-page="company"],
  [data-qinglu-page="future"],
  [data-qinglu-page="pet-ai"]
) main > section + section,
html:is(
  [data-qinglu-page="cleanpetguard"],
  [data-qinglu-page="cairgcloud"],
  [data-qinglu-page="cleanairguard"],
  [data-qinglu-page="air-systems"],
  [data-qinglu-page="coulomb"],
  [data-qinglu-page="company"],
  [data-qinglu-page="future"],
  [data-qinglu-page="pet-ai"]
) .min-h-screen > section + section {
  position: relative;
  border-top: 1px solid rgba(var(--route-a-rgb), 0.09);
  content-visibility: auto;
  contain-intrinsic-size: 780px;
}

html.qinglu-global-v3 .interactive-edge,
html.qinglu-global-v3 .card-sheen {
  border-radius: 4px;
  background-color: rgba(13, 18, 19, 0.78);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
  transition:
    background-color 280ms var(--ease-qinglu),
    border-color 280ms var(--ease-qinglu),
    box-shadow 280ms var(--ease-qinglu),
    transform 280ms var(--ease-qinglu);
}

html.qinglu-global-v3 .interactive-edge:hover,
html.qinglu-global-v3 .card-sheen:hover {
  background-color: #111819;
  border-color: rgba(var(--route-a-rgb), 0.24);
  box-shadow: inset 2px 0 var(--route-a), 0 18px 42px rgba(0, 0, 0, 0.16);
  transform: translate3d(0, -3px, 0);
}

html.qinglu-global-v3 .kinetic-row {
  transition: color 260ms ease, background-color 260ms ease, transform 260ms var(--ease-qinglu);
}

html.qinglu-global-v3 .kinetic-row:hover {
  transform: translate3d(5px, 0, 0);
}

/* Research index and long-form reading. */
html:is([data-qinglu-page="research"], [data-qinglu-page="research-article"]) .qinglu-page-frame {
  border-bottom: 1px solid rgba(115, 217, 255, 0.16);
  background:
    linear-gradient(105deg, rgba(115, 217, 255, 0.055), transparent 35%),
    #080b0c;
}

html[data-qinglu-page="research"] .qinglu-page-frame {
  min-height: 430px;
  padding-top: 3.5rem;
}

html[data-qinglu-page="research"] .qinglu-page-frame h1,
html[data-qinglu-page="research-article"] .qinglu-page-frame h1 {
  max-width: 900px;
  font-size: 4rem !important;
  line-height: 1.08 !important;
  text-wrap: balance;
}

.article-list-wrapper {
  border-top: 1px solid rgba(115, 217, 255, 0.16);
}

.research-article-card {
  position: relative;
  padding: 2rem 0 !important;
  border-bottom: 1px solid var(--border-subtle);
  background: transparent;
  transition: padding 300ms var(--ease-qinglu), background-color 300ms ease;
}

.research-article-card::before {
  content: "";
  position: absolute;
  top: 18%;
  bottom: 18%;
  left: -1px;
  width: 1px;
  opacity: 0;
  background: var(--xai-cyan);
  transition: opacity 240ms ease;
}

.research-article-card:hover {
  padding-right: 1.25rem !important;
  padding-left: 1.25rem !important;
  background-color: rgba(115, 217, 255, 0.035);
}

.research-article-card:hover::before {
  opacity: 1;
}

.category-filter-container {
  scrollbar-width: none;
}

.category-tag-btn,
.share-action-btn,
.article-share-trigger,
.article-actions__btn,
.toc-mobile__toggle {
  border-radius: 6px !important;
}

.article-with-toc {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
}

.article-body,
.research-article-html {
  color: var(--text-secondary);
  font-size: 1.03rem;
  line-height: 1.88;
}

.article-body :is(h2, h3),
.research-article-html :is(h2, h3) {
  color: var(--text-primary);
  scroll-margin-top: 7rem;
  text-wrap: balance;
}

.article-body h2,
.research-article-html h2 {
  margin-top: 4.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(115, 217, 255, 0.13);
}

.article-body a,
.research-article-html a {
  color: var(--xai-cyan);
  text-decoration-color: rgba(115, 217, 255, 0.32);
  text-underline-offset: 4px;
}

.toc-desktop {
  border-left: 1px solid rgba(115, 217, 255, 0.16);
}

.toc-link {
  border-radius: 0 !important;
}

.related-article-card {
  border-radius: 6px !important;
  background: #0d1213;
}

/* Legal and contact pages use a calmer editorial rhythm. */
html:is([data-qinglu-page="privacy"], [data-qinglu-page="contact"]) .legal-page {
  background: #080a0b;
}

html:is([data-qinglu-page="privacy"], [data-qinglu-page="contact"]) .legal-page__main {
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
  padding-top: 8.5rem;
  padding-bottom: 7rem;
}

.legal-hero {
  position: relative;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(115, 217, 255, 0.17);
}

.legal-hero::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 88px;
  height: 1px;
  background: var(--xai-cyan);
}

.legal-hero h1 {
  max-width: 760px;
  font-size: 3.5rem !important;
  line-height: 1.08;
  text-wrap: balance;
}

.legal-sections {
  max-width: 820px;
  margin-top: 3.5rem;
}

.legal-section {
  position: relative;
  padding: 2.2rem 0 2.2rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-section::before {
  content: "";
  position: absolute;
  top: 2.55rem;
  bottom: 2.55rem;
  left: 0;
  width: 1px;
  background: rgba(115, 217, 255, 0.28);
}

.legal-section p,
.legal-channel p {
  color: var(--text-secondary) !important;
  line-height: 1.82;
}

.legal-channels {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px !important;
  margin-top: 3.5rem;
  padding: 0 !important;
  background: var(--border-subtle);
}

.legal-sections {
  padding: 0 !important;
}

html[data-qinglu-page="privacy"] .legal-page .legal-sections,
html[data-qinglu-page="contact"] .legal-page .legal-channels {
  padding: 0 !important;
}

.legal-channel {
  min-width: 0;
  padding: 2rem !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #0d1112;
}

.legal-section {
  min-height: 0;
}

.legal-channel__link {
  color: var(--xai-cyan) !important;
  overflow-wrap: anywhere;
}

/* Admin stays deliberately quiet and operational. */
html[data-qinglu-page^="admin-"] body {
  background: #0a0d0e;
}

html[data-qinglu-page^="admin-"] body::before {
  display: none;
}

html[data-qinglu-page^="admin-"] main {
  background: #0a0d0e !important;
}

html[data-qinglu-page^="admin-"] form {
  border-color: rgba(232, 250, 243, 0.14) !important;
  border-radius: 6px;
  background: #0e1213 !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.24), inset 0 1px rgba(255, 255, 255, 0.025);
}

html[data-qinglu-page^="admin-"] input,
html[data-qinglu-page^="admin-"] textarea,
html[data-qinglu-page^="admin-"] select {
  min-height: 44px;
  border-color: rgba(232, 250, 243, 0.16) !important;
  border-radius: 4px !important;
  background: #090c0d !important;
  color: var(--text-primary) !important;
  outline: none;
}

html[data-qinglu-page^="admin-"] input:focus,
html[data-qinglu-page^="admin-"] textarea:focus,
html[data-qinglu-page^="admin-"] select:focus {
  border-color: rgba(115, 217, 255, 0.58) !important;
  box-shadow: 0 0 0 3px rgba(115, 217, 255, 0.08);
}

html[data-qinglu-page^="admin-"] .display-title {
  font-size: 1.5rem !important;
}

html[data-qinglu-page^="admin-"] .btn-xai-green {
  min-height: 44px;
  border-radius: 4px;
}

html[data-qinglu-page^="admin-"] form > p.mt-5 {
  display: none;
}

/* The missing-page state should read as intentional, not faded out. */
html[data-qinglu-page="not-found"] .flex-1 > .text-center {
  width: min(680px, calc(100% - 40px));
  padding: 4rem 2rem;
  border-top: 1px solid rgba(115, 217, 255, 0.18);
  border-bottom: 1px solid rgba(101, 245, 152, 0.12);
}

html[data-qinglu-page="not-found"] .flex-1 > .text-center h1 {
  color: rgba(248, 252, 250, 0.96) !important;
  font-size: 7rem !important;
  line-height: 0.9;
  text-shadow: 0 0 48px rgba(115, 217, 255, 0.14);
}

html[data-qinglu-page="not-found"] .flex-1 > .text-center h2 {
  color: var(--xai-cyan) !important;
}

@media (max-width: 1024px) {
  html:is(
    [data-qinglu-page="cleanpetguard"],
    [data-qinglu-page="cairgcloud"],
    [data-qinglu-page="cleanairguard"],
    [data-qinglu-page="air-systems"],
    [data-qinglu-page="coulomb"],
    [data-qinglu-page="company"],
    [data-qinglu-page="future"],
    [data-qinglu-page="pet-ai"]
  ) .qinglu-page-frame h1.display-title {
    font-size: 4.1rem !important;
  }

  html[data-qinglu-page="research"] .qinglu-page-frame h1,
  html[data-qinglu-page="research-article"] .qinglu-page-frame h1 {
    font-size: 3.4rem !important;
  }

  html[data-qinglu-page="karman"] .karman-hero__title {
    font-size: 3.55rem !important;
  }
}

@media (max-width: 640px) {
  html[data-qinglu-page="home"] .home-hero-section {
    min-height: 84svh !important;
  }

  html[data-qinglu-page="home"] .home-hero-section + section,
  html:is(
    [data-qinglu-page="cleanpetguard"],
    [data-qinglu-page="cairgcloud"],
    [data-qinglu-page="cleanairguard"],
    [data-qinglu-page="air-systems"],
    [data-qinglu-page="coulomb"],
    [data-qinglu-page="company"],
    [data-qinglu-page="future"],
    [data-qinglu-page="pet-ai"],
    [data-qinglu-page="karman"]
  ) .qinglu-page-frame + section {
    padding-top: 3.5rem !important;
  }

  .qinglu-route-field {
    opacity: 0.72;
  }

  html:is(
    [data-qinglu-page="cleanpetguard"],
    [data-qinglu-page="cairgcloud"],
    [data-qinglu-page="cleanairguard"],
    [data-qinglu-page="air-systems"],
    [data-qinglu-page="coulomb"],
    [data-qinglu-page="company"],
    [data-qinglu-page="future"],
    [data-qinglu-page="pet-ai"]
  ) .qinglu-page-frame {
    min-height: 84svh !important;
  }

  html:is(
    [data-qinglu-page="cleanpetguard"],
    [data-qinglu-page="cairgcloud"],
    [data-qinglu-page="cleanairguard"],
    [data-qinglu-page="air-systems"],
    [data-qinglu-page="coulomb"],
    [data-qinglu-page="company"],
    [data-qinglu-page="future"],
    [data-qinglu-page="pet-ai"]
  ) .qinglu-page-frame > .relative.z-10,
  html:is(
    [data-qinglu-page="cleanpetguard"],
    [data-qinglu-page="cairgcloud"],
    [data-qinglu-page="cleanairguard"],
    [data-qinglu-page="air-systems"],
    [data-qinglu-page="coulomb"],
    [data-qinglu-page="company"],
    [data-qinglu-page="future"],
    [data-qinglu-page="pet-ai"]
  ) .qinglu-page-frame > .container.relative.z-10 {
    width: 100%;
    max-width: 100%;
    padding: 6.8rem 1.5rem 3.8rem;
  }

  html:is(
    [data-qinglu-page="cleanpetguard"],
    [data-qinglu-page="cairgcloud"],
    [data-qinglu-page="cleanairguard"],
    [data-qinglu-page="air-systems"],
    [data-qinglu-page="coulomb"],
    [data-qinglu-page="company"],
    [data-qinglu-page="future"],
    [data-qinglu-page="pet-ai"]
  ) .qinglu-page-frame h1.display-title {
    max-width: 100%;
    font-size: 2.85rem !important;
    line-height: 1.08 !important;
  }

  html[data-qinglu-page="cleanpetguard"] .qinglu-page-frame h1.display-title {
    font-size: 2.7rem !important;
  }

  html[data-qinglu-page="karman"] .karman-hero {
    min-height: 0 !important;
    padding: 6.5rem 0 0 !important;
  }

  html[data-qinglu-page="karman"] .karman-hero__content {
    display: block;
    min-height: 0 !important;
  }

  html[data-qinglu-page="karman"] .karman-hero__copy {
    padding-bottom: 3.5rem;
  }

  html[data-qinglu-page="karman"] .karman-hero__title {
    font-size: 2.65rem !important;
    line-height: 1.12;
  }

  html[data-qinglu-page="karman"] .karman-line-marker {
    display: none;
  }

  html[data-qinglu-page="karman"] .karman-hero__rail {
    grid-template-columns: none;
    grid-auto-columns: minmax(190px, 72vw);
    grid-auto-flow: column;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  html[data-qinglu-page="karman"] .karman-signal {
    min-height: 78px;
    border-right: 1px solid var(--border-subtle);
    border-bottom: 0;
    scroll-snap-align: start;
  }

  html[data-qinglu-page="karman"] .karman-signal:nth-child(2n) {
    border-right: 1px solid var(--border-subtle);
  }

  html[data-qinglu-page="research"] .qinglu-page-frame {
    min-height: 360px;
    padding-top: 2.5rem;
  }

  html[data-qinglu-page="research"] .qinglu-page-frame h1,
  html[data-qinglu-page="research-article"] .qinglu-page-frame h1 {
    font-size: 2.65rem !important;
  }

  .research-article-card,
  .research-article-card:hover {
    padding: 1.6rem 0 !important;
    transform: none;
  }

  .article-with-toc {
    width: 100%;
  }

  .article-body,
  .research-article-html {
    font-size: 1rem;
    line-height: 1.78;
  }

  html:is([data-qinglu-page="privacy"], [data-qinglu-page="contact"]) .legal-page__main {
    width: min(100% - 36px, 1080px);
    padding-top: 7rem;
    padding-bottom: 5rem;
  }

  .legal-hero h1 {
    font-size: 2.65rem !important;
  }

  .legal-channels {
    grid-template-columns: 1fr;
  }

  .legal-channel {
    padding: 1.5rem !important;
  }

  html[data-qinglu-page^="admin-"] form {
    padding: 1.5rem !important;
  }

  html[data-qinglu-page="not-found"] .flex-1 > .text-center h1 {
    font-size: 5rem !important;
  }

  html.qinglu-global-v3 .interactive-edge:hover,
  html.qinglu-global-v3 .card-sheen:hover,
  html.qinglu-global-v3 .kinetic-row:hover {
    transform: none;
  }
}

@media (max-width: 380px) {
  html:is(
    [data-qinglu-page="cleanpetguard"],
    [data-qinglu-page="cairgcloud"],
    [data-qinglu-page="cleanairguard"],
    [data-qinglu-page="air-systems"],
    [data-qinglu-page="coulomb"],
    [data-qinglu-page="company"],
    [data-qinglu-page="future"],
    [data-qinglu-page="pet-ai"]
  ) .qinglu-page-frame h1.display-title,
  html[data-qinglu-page="cleanpetguard"] .qinglu-page-frame h1.display-title {
    font-size: 2.48rem !important;
  }

  html[data-qinglu-page="karman"] .karman-hero__title {
    font-size: 2.38rem !important;
  }
}

@media (min-width: 641px) and (max-height: 780px) {
  html[data-qinglu-page="home"] .home-hero-section + section,
  html:is(
    [data-qinglu-page="cleanpetguard"],
    [data-qinglu-page="cairgcloud"],
    [data-qinglu-page="cleanairguard"],
    [data-qinglu-page="air-systems"],
    [data-qinglu-page="coulomb"],
    [data-qinglu-page="company"],
    [data-qinglu-page="future"],
    [data-qinglu-page="pet-ai"],
    [data-qinglu-page="karman"]
  ) .qinglu-page-frame + section {
    padding-top: 0.75rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .qinglu-route-field {
    opacity: 0.58;
  }
}
