footer :has(> img[src*="qrcode"]), footer a[href*="beian."] {
  display: none !important;
}

[data-haimi-link="hidden"],
footer li:has(> a[data-haimi-link="hidden"]),
footer [class~="lg:flex-1"]:has(> h3):not(:has(a[href])),
body > header [class~="grid-cols-3"]:has(a[data-haimi-link="hidden"]):not(:has(a[href])),
#docs:has(a[data-haimi-link]):not(:has(a[href])) {
  display: none !important;
}

a[data-haimi-link="content"] {
  cursor: default !important;
  pointer-events: none;
}

body > header [class~="min-h-[430px]"]:has(a[data-haimi-link]),
body > header [class~="min-h-[360px]"]:has(a[data-haimi-link]) {
  min-height: 0;
}

body > header [class~="min-h-[360px]"]:has(> [class~="grid-cols-3"]:not(:has(a[href]))) > [class~="border-b"] {
  border-bottom: 0;
  padding-bottom: 0;
}

main :is(#about-timeline, #about-contact, #contact-partnerships),
#about-ecosystem a[data-haimi-link="content"] svg {
  display: none !important;
}

#industrial-inspection-embodied [class~="rounded-[20px]"] {
  aspect-ratio: 16 / 9;
  background: #e1e7ec url("/haimi/visuals/robot-handling.jpg") center / cover no-repeat;
}

#industrial-inspection-embodied [class~="rounded-[20px]"] > * {
  display: none !important;
}

main :is(#about-culture, #about-ecosystem):not([data-haimi-ready]) {
  visibility: hidden;
}

.haimi-footer-name {
  color: #fff;
  font-size: 14px;
  line-height: 1.6;
}

.haimi-footer-name img {
  display: block;
  margin-bottom: 14px;
}

.haimi-reference-note {
  max-width: 1540px;
  margin: 0 auto;
  padding: 16px 70px;
  color: #5e6172;
  font-size: 13px;
  line-height: 1.6;
}

.haimi-about-link {
  display: inline-block;
  margin-top: 20px;
  color: #075b82;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.haimi-contact-note {
  margin-top: 12px;
  color: #5e6172;
  font-size: 14px;
  line-height: 1.6;
}

:root {
  --color-ink: #112332 !important;
  --color-body: #4b6174 !important;
  --color-bg-soft: #f0f5f8 !important;
  --color-line: #d9e5eb !important;
  --color-surface-dark: #081b2b !important;
  --color-brand-purple: #075b82 !important;
  --color-brand-purple-bright: #074768 !important;
  --color-purple-glow: #086d96 !important;
  --color-brand-orange: #925230 !important;
  --color-orange-glow: #733b20 !important;
  --color-brand-blue: #146969 !important;
}

#hero {
  --haimi-opening-poster: url("/haimi/visuals/opening-poster.jpg?v=2");
  --haimi-opening-lead: url("/haimi/visuals/opening-lead.webp");
  background: #fafafa var(--haimi-opening-poster) center / cover no-repeat;
}

@media (prefers-reduced-motion: no-preference) {
  #hero:not(:has(> .haimi-opening-playing))::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: var(--haimi-opening-lead) center / cover no-repeat;
    pointer-events: none;
  }
}

#hero > video:not(.haimi-opening),
.haimi-wordmark-frame > :not(.haimi-wordmark) {
  display: none !important;
}

#hero > div:not(.haimi-opening) { text-shadow: 0 0 5px #f8fcfdda; }

.haimi-opening {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.haimi-wordmark {
  position: absolute;
  inset: 0;
  mask: url("/haimi/brand-word.svg") center / 100% 100% no-repeat;
  background: linear-gradient(125deg, #143a50, #1b6680 52%, #184459);
}

.haimi-wordmark::before,
.haimi-wordmark::after {
  content: "";
  position: absolute;
  inset: 0;
  animation: haimi-wordmark-flow 10.8s linear infinite paused;
}

.haimi-wordmark::before {
  background: repeating-linear-gradient(115deg, transparent 0 11%, #6ac6de75 23%, #318da980 32%, transparent 50%) 0 0 / 200% 100%;
}

.haimi-wordmark::after {
  background: repeating-linear-gradient(115deg, transparent 0 16%, #bdedf069 27%, transparent 38% 50%) 0 0 / 200% 100%;
  animation-delay: -3.6s;
}

.haimi-wordmark[data-playing]::before,
.haimi-wordmark[data-playing]::after { animation-play-state: running; }

#cta-banner {
  background: linear-gradient(115deg,#071c2ee0,#126183c9), url("/haimi/visuals/circuit.jpg") center 56% / cover !important;
}

@keyframes haimi-wordmark-flow {
  to { background-position-x: 100%; }
}

main :is(#boards-hero, #software-hero, #contact-hero, #robotics-hero, #industrial-inspection-hero, #smart-devices-hero, #support-hero, [class*="/software-platform/"][class*="/hero]"]) {
  --haimi-environment: url("/haimi/visuals/circuit.jpg");
  --haimi-photo-size: cover;
  --haimi-photo-position: center;
  background-color: #071724 !important;
  background-image:
    linear-gradient(90deg, #071522 3%, #071522f0 32%, #07152289 58%, #07152219 100%),
    var(--haimi-environment) !important;
  background-size: cover, var(--haimi-photo-size);
  background-position: center, var(--haimi-photo-position);
  background-repeat: no-repeat;
  color: #f7fbff;
}

main #support-hero {
  --haimi-environment: url("/haimi/visuals/workbench.jpg");
  --haimi-photo-position: center 58%;
}

main #about-hero {
  min-height: clamp(300px, 29.6vw, 560px);
  padding-bottom: 0;
  background: #e9edf0 url("/haimi/visuals/about-brand-satin-desktop.webp") right 82% / cover no-repeat !important;
}

main #about-hero > div {
  position: absolute;
  inset: 33% 52% auto clamp(48px, 12.8vw, 248px);
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
}

main #about-hero h1 {
  color: var(--color-ink);
  font-size: clamp(30px, 3.15vw, 60px);
  line-height: 1.2;
}

#about-intro > div {
  display: grid;
  grid-template-columns: minmax(14rem, 2fr) minmax(0, 3fr);
  gap: 24px clamp(36px, 6vw, 105px);
}

#about-intro > div > div { min-width: 0; }
#about-intro h2 { text-wrap: balance; }
#about-intro > div > div:last-child { line-height: 1.85; }

:is(#about-culture, #about-ecosystem) .grid {
  gap: clamp(12px, 2.1vw, 30px);
  margin-top: clamp(24px, 3.5vw, 50px);
}

#about-culture article {
  min-height: 0;
  padding: clamp(20px, 2.8vw, 39px);
}

#about-ecosystem h2 + div { max-width: 64ch; }

#about-ecosystem .grid > a > div:last-child {
  min-height: 70px;
  padding: 14px clamp(10px, 2vw, 20px);
}

#about-ecosystem .grid > a > div:last-child > span {
  font-size: clamp(15px, 1.65vw, 23px);
  line-height: 1.3;
  text-wrap: balance;
}

#about-ecosystem .grid > a[href]:focus-visible {
  outline: 2px solid var(--color-brand-purple);
  outline-offset: 3px;
}

@media (max-width: 1023px) {
  #about-intro > div { grid-template-columns: minmax(0, 1fr); }
  #about-intro > div > div { max-width: 64ch; }
  #about-intro > div > div:last-child { margin-top: 0; }
  #about-ecosystem .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 420px) {
  #about-ecosystem .grid > a > div:first-child { aspect-ratio: 3 / 2; }
  #about-ecosystem .grid > a > div:last-child { min-height: 62px; }
}

main #contact-hero {
  --haimi-environment: url("/haimi/visuals/contact-integration.jpg");
}

#contact-hero .haimi-contact-email {
  margin-top: 1rem;
  color: #d9ecf5;
  font-size: 1rem;
  line-height: 1.5;
}

#contact-hero .haimi-contact-email a {
  color: #f7fbff;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

main #software-hero,
main [class*="/software-platform/aidlux-os/"][class*="/hero]"] {
  --haimi-environment: url("/haimi/visuals/software-os.jpg");
}

main [class*="/software-platform/modelfarm/"][class*="/hero]"] {
  --haimi-environment: url("/haimi/visuals/software-models.jpg");
}

main [class*="/software-platform/ai-toolchain/"][class*="/hero]"] {
  --haimi-environment: url("/haimi/visuals/software-tools.jpg");
}

main :is(#smart-devices-hero, #industrial-inspection-hero, #robotics-hero) {
  --haimi-photo-position: center 55%;
}

main #smart-devices-hero { --haimi-environment: url("/haimi/visuals/terminal-wide.jpg"); }
main #industrial-inspection-hero { --haimi-environment: url("/haimi/visuals/vision-wide.jpg"); }
main #robotics-hero { --haimi-environment: url("/haimi/visuals/robotics-wide.jpg"); }
main #robotics-hero video { display: none; }

main :is(#boards-hero, #software-hero, #contact-hero, #robotics-hero, #industrial-inspection-hero, #smart-devices-hero, #support-hero, [class*="/software-platform/"][class*="/hero]"]) h1 {
  color: #f7fbff;
  font-weight: 700;
  letter-spacing: -.04em;
}

main :is(#boards-hero, #software-hero, #robotics-hero, #industrial-inspection-hero, #smart-devices-hero, #support-hero, [class*="/software-platform/"][class*="/hero]"]) p {
  color: #d9ecf5;
}

main [class*="/consult-cta]"] {
  background: linear-gradient(120deg,#081c2d,#124057) !important;
}

main .haimi-demo-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

main :has(> .haimi-demo-photo) > :not(.haimi-demo-photo) {
  display: none !important;
}

@media (max-width: 767px) {
  #hero {
    --haimi-opening-poster: url("/haimi/visuals/opening-mobile-poster.jpg?v=2");
    --haimi-opening-lead: url("/haimi/visuals/opening-mobile-lead.webp");
  }
  #architecture button[aria-controls] > svg {
    display: block;
    width: 13px;
    height: 13px;
  }
  #architecture button[aria-controls] > span:last-child { display: none; }
  #scenes [role="tablist"] { min-height: 44px; padding: 0 4px; }
  #scenes [role="tab"] {
    height: 100%;
    min-height: 44px;
    white-space: normal;
    text-align: center;
    line-height: 1.2;
    padding-inline: 4px;
  }
  #scenes [aria-selected="true"] { font-weight: 600; }
  .haimi-reference-note { padding-inline: 20px; }
  main #about-hero {
    min-height: clamp(360px, 100vw, 530px);
    background: #e9edf0 url("/haimi/visuals/about-brand-satin-mobile.webp") center 80% / cover no-repeat !important;
  }
  main #about-hero > div {
    inset: 11% 15% auto clamp(20px, 6vw, 42px);
    align-items: flex-start;
    text-align: left;
  }
  main #about-hero h1 { font-size: clamp(28px, 5vw, 38px); }
  main :is(#boards-hero, #software-hero, #contact-hero, #robotics-hero, #industrial-inspection-hero, #smart-devices-hero, #support-hero, [class*="/software-platform/"][class*="/hero]"]) {
    background-image: linear-gradient(90deg,#071522ec,#0715228f),var(--haimi-environment) !important;
    background-size: cover;
    background-position: center, 68% center;
  }
}

@media (prefers-reduced-motion: reduce) {
  #hero > .haimi-opening { visibility: hidden; }
  .haimi-wordmark::before, .haimi-wordmark::after { animation: none; }
}


#product-list a[class~="group/card"] {
  pointer-events: none;
}

#product-list a[class~="group/card"] > span:last-child:not(.haimi-contact-prompt) {
  display: none;
}

#product-list .haimi-contact-prompt {
  max-inline-size: min(16rem, 100%);
  font-size: 0.875rem;
  line-height: 1.5;
  white-space: normal;
}
