/* Brand mark + mobile performance overrides (after dist/site.min.css) */

.logo-img {
  display: block;
  height: 46px;
  width: auto;
  transform-origin: center center;
}

.logo-img--dark {
  display: none;
  height: 46px;
  width: auto;
  object-fit: contain;
}

/* Desktop only: light pulse (cheap opacity/scale) */
@media (hover: hover) and (pointer: fine) and (min-width: 769px) {
  .logo-img,
  .content-top__brand .logo-img {
    animation: logo-pulse 3s ease-in-out infinite;
  }
}

html:not([data-theme="light"]) .logo-img--light,
html:not([data-theme="light"]) .content-top__brand .logo-img--light {
  display: none !important;
}

html:not([data-theme="light"]) .logo-img--dark,
html:not([data-theme="light"]) .content-top__brand .logo-img--dark {
  display: block !important;
  filter: none !important;
}

[data-theme="light"] .logo-img--dark,
[data-theme="light"] .content-top__brand .logo-img--dark {
  display: none !important;
}

[data-theme="light"] .logo-img--light,
[data-theme="light"] .content-top__brand .logo-img--light {
  display: block !important;
}

.content-top__brand .logo-img {
  height: 2.5rem;
  width: auto;
  max-width: none;
  object-fit: contain;
}

.content-top__brand .logo-img--dark {
  height: 2.5rem;
  max-width: none;
}

/* —— Mobile / touch: kill compositor-heavy loops —— */
@media (max-width: 768px), (hover: none) and (pointer: coarse) {
  .logo-img,
  .logo-icon,
  .content-top__brand .logo-img {
    animation: none !important;
  }

  .header {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    background: rgba(0, 0, 0, 0.92) !important;
  }

  [data-theme="light"] .header {
    background: rgba(238, 242, 247, 0.96) !important;
  }

  .hero-title {
    filter: none !important;
  }

  .hero-title__text {
    animation: none !important;
    background: none !important;
    background-clip: border-box !important;
    -webkit-background-clip: border-box !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
  }

  [data-theme="light"] .hero-title__text {
    color: #1e1b4b !important;
    -webkit-text-fill-color: #1e1b4b !important;
  }

  .hero-title::after {
    content: none !important;
    animation: none !important;
    display: none !important;
  }

  .hero-tag,
  .hero-spec-pill {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  .scroll-hint,
  .scroll-hint__dot {
    animation: none !important;
  }

  /* Dark neon loops are expensive while scrolling */
  html:not([data-theme="light"]) .tech-sim__intro,
  html:not([data-theme="light"]) .tech-sim__intro::before,
  html:not([data-theme="light"]) .tech-card,
  html:not([data-theme="light"]) .glass-card {
    animation: none !important;
  }

  .schematic-scan,
  .schematic-hotspot__pulse,
  .demo-cta,
  .demo-cta-glow,
  .btn-demo-cta {
    animation: none !important;
  }

  .schematic-card__media,
  .about-text,
  .tech-highlight,
  .app-card--peek {
    will-change: auto !important;
    transform: none !important;
  }

  .glass-card,
  .tech-card,
  .nav-links,
  .lang-switch,
  .theme-toggle,
  .btn,
  .contact-form,
  .footer {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  .logo-img,
  .logo-img--dark {
    height: 40px;
  }

  .content-top__brand .logo-img,
  .content-top__brand .logo-img--dark {
    height: 2.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-img,
  .logo-icon,
  .content-top__brand .logo-img {
    animation: none !important;
  }

  .hero-title__text,
  .hero-title::after {
    animation: none !important;
  }
}

.app-card__more {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
}

.app-card__more a {
  color: var(--color-accent, #38bdf8);
  text-decoration: none;
  font-weight: 600;
}

.app-card__more a:hover {
  text-decoration: underline;
}

/* Tech cards: quiet monoline icons (override colorful PPT-style badges) */
.tech-card__icon,
.tech-card__icon--sense,
.tech-card__icon--zero,
.tech-card__icon--mod,
[data-theme="light"] .tech-card__icon,
[data-theme="light"] .tech-card__icon--sense,
[data-theme="light"] .tech-card__icon--zero,
[data-theme="light"] .tech-card__icon--mod,
html:not([data-theme="light"]) .tech-card__icon,
html:not([data-theme="light"]) .tech-card__icon--sense,
html:not([data-theme="light"]) .tech-card__icon--zero,
html:not([data-theme="light"]) .tech-card__icon--mod {
  width: 40px !important;
  height: 40px !important;
  margin-bottom: 16px !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  color: rgba(148, 163, 184, 0.95) !important;
}

[data-theme="light"] .tech-card__icon,
[data-theme="light"] .tech-card__icon--sense,
[data-theme="light"] .tech-card__icon--zero,
[data-theme="light"] .tech-card__icon--mod {
  color: rgba(71, 85, 105, 0.92) !important;
}

html:not([data-theme="light"]) .tech-card__icon,
html:not([data-theme="light"]) .tech-card__icon--sense,
html:not([data-theme="light"]) .tech-card__icon--zero,
html:not([data-theme="light"]) .tech-card__icon--mod {
  color: rgba(186, 198, 212, 0.92) !important;
}

.tech-card__icon svg {
  width: 28px !important;
  height: 28px !important;
  display: block;
}
