/* Company-only host styles for Antigravity's original MainParticlesComponent. */
body[data-page="company"] .company-hero {
  isolation: isolate;
  background: #000 !important;
}

body[data-page="company"] .company-hero .company-particle-field,
body[data-page="company"] .company-hero .company-particle-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body[data-page="company"] .company-hero .company-particle-field {
  z-index: 0;
  background: #000;
  pointer-events: none;
}

/* A quiet static field is visible before WebGL paints and remains available if
   the renderer cannot start. The mask keeps the copy's central reading area clear. */
body[data-page="company"] .company-hero .company-particle-field::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background:
    radial-gradient(circle, rgba(44, 100, 237, .72) 0 1px, transparent 1.6px) 7px 11px / 47px 43px,
    radial-gradient(circle, rgba(248, 66, 66, .64) 0 1px, transparent 1.7px) 23px 5px / 71px 67px,
    radial-gradient(circle, rgba(255, 207, 3, .58) 0 1px, transparent 1.6px) 41px 29px / 89px 83px;
  -webkit-mask-image: radial-gradient(ellipse 35% 27% at 50% 52%, transparent 0 46%, rgba(0, 0, 0, .18) 62%, #000 100%);
  mask-image: radial-gradient(ellipse 35% 27% at 50% 52%, transparent 0 46%, rgba(0, 0, 0, .18) 62%, #000 100%);
  opacity: .68;
  transition: opacity 420ms ease;
}

body[data-page="company"] .company-hero .company-particle-container {
  z-index: 1;
  background: transparent;
  opacity: 0;
  transition: opacity 420ms ease;
}

body[data-page="company"] .company-hero .company-particle-field[data-particle-state="ready"]::before,
body[data-page="company"] .company-hero .company-particle-field[data-particle-state="paused"]::before {
  opacity: .22;
}

body[data-page="company"] .company-hero .company-particle-field[data-particle-state="ready"] .company-particle-container,
body[data-page="company"] .company-hero .company-particle-field[data-particle-state="paused"] .company-particle-container {
  opacity: 1;
}

body[data-page="company"] .company-hero .company-particle-field[data-particle-state="failed"]::before,
body[data-page="company"] .company-hero .company-particle-field[data-particle-state="static"]::before {
  opacity: .72;
}

body[data-page="company"] .company-hero .company-particle-container > canvas {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}

body[data-page="company"] .company-hero .hero-inner {
  z-index: 1 !important;
  border-left: 0 !important;
  border-right: 0 !important;
}

/* Source-aligned StarButton treatment for the company hero's secondary CTA. */
body[data-page="company"] .company-hero .hero-copy::before {
  display: none !important;
  content: none !important;
}

body[data-page="company"] .company-hero .company-hero-star-button {
  --company-hero-star-path: path("M 0 0 H 112 V 40 H 0 V 0");
  height: 40px !important;
  min-height: 40px !important;
  padding: 8px 16px !important;
  gap: 2px !important;
  isolation: isolate;
  border: 0 !important;
  border-radius: 22px !important;
  background: transparent !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 20px !important;
}

body[data-page="company"] .company-hero .company-hero-star-button::before,
body[data-page="company"] .company-hero .company-hero-star-button::after {
  display: none !important;
  content: none !important;
  animation: none !important;
}

body[data-page="company"] .company-hero .company-hero-star-light {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 110px;
  height: 110px;
  aspect-ratio: 1;
  background: radial-gradient(ellipse at center, #fafafa, transparent, transparent);
  offset-path: var(--company-hero-star-path);
  offset-distance: 0%;
  animation: companyHeroStarButton 3s linear infinite;
  pointer-events: none;
}

body[data-page="company"] .company-hero .company-hero-star-mask-layer {
  position: absolute;
  z-index: 4;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  box-sizing: border-box;
  border: 2px solid rgba(255, 255, 255, .15);
  border-radius: inherit;
  color: #000;
  pointer-events: none;
}

body[data-page="company"] .company-hero .company-hero-star-mask {
  position: static;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
}

body[data-page="company"] .company-hero .company-hero-star-label {
  position: relative;
  z-index: 10;
  display: inline-flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(to top, #737373 0%, #fafafa 100%);
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  pointer-events: none;
}

body[data-page="company"] .company-hero .company-hero-star-arrow {
  display: block;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  object-fit: contain;
  pointer-events: none;
}

body[data-page="company"] .company-hero .company-hero-star-button:hover {
  border-color: transparent !important;
  background: transparent !important;
  transform: none !important;
}

body[data-page="company"] .company-hero .company-hero-star-button:focus-visible {
  outline: 2px solid #fff !important;
  outline-offset: 3px !important;
}

@keyframes companyHeroStarButton {
  from { offset-distance: 0%; }
  to { offset-distance: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="company"] .company-hero .company-hero-star-light {
    offset-distance: 11%;
    animation: none !important;
  }

  body[data-page="company"] .company-hero .company-hero-star-button {
    transition: none !important;
  }

  body[data-page="company"] .company-hero .company-particle-field {
    opacity: .82;
  }

  body[data-page="company"] .company-hero .company-particle-field::before,
  body[data-page="company"] .company-hero .company-particle-container {
    transition: none;
  }
}
