.home-hero {
  position: relative;
  background: var(--hero);
  color: var(--paper);
}
.home-atmosphere {
  position: absolute;
  inset: -116px 0 0;
  overflow: hidden;
  pointer-events: none;
}
.home-atmosphere img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home-message {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 80px;
  padding-bottom: 32px;
  gap: 24px;
}
.home-message h1 {
  font-size: 72px;
  line-height: 78px;
  letter-spacing: -2px;
  font-weight: 400;
}
.home-message p {
  max-width: 680px;
  color: var(--hero-muted);
  font-size: 18px;
  line-height: 28px;
}
.home-actions {
  display: flex;
  gap: 16px;
}
.home-actions a {
  width: 222px;
  box-shadow: 0 4px 20px #f4b54438;
}
.home-actions .home-secondary {
  background: var(--glass);
  color: var(--paper);
  border: 1px solid var(--hero-line);
  box-shadow:
    inset 0 1px #ffffff12,
    0 10px 24px #0000003d;
}
.home-actions .home-secondary:hover {
  background: #173140;
}
.home-system {
  height: 372px;
  position: relative;
  display: flex;
  justify-content: center;
  padding-bottom: 32px;
}
.home-system-inner {
  position: relative;
  width: 1040px;
  height: 340px;
}
.home-connections {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.home-connections img {
  width: 1040px;
  height: 340px;
  max-width: none;
}
.home-system-link {
  position: absolute;
  width: 228px;
  height: 80px;
  border: 1px solid var(--hero-line);
  border-radius: 16px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--glass);
  box-shadow:
    inset 0 1px #ffffff12,
    0 10px 24px #0000003d;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.home-system-link:hover {
  border-color: var(--amber);
  background: #132936;
}
.home-system-link span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  line-height: 18px;
  letter-spacing: 1.4px;
  font-weight: 600;
  color: var(--hero-muted);
}
.home-system-link strong {
  font-size: 16px;
  line-height: 20px;
  font-weight: 600;
}
.system-ups {
  left: 40px;
  top: 12px;
}
.system-batteries {
  left: 40px;
  top: 174px;
}
.system-stabilizers {
  right: 40px;
  top: 12px;
}
.system-lv-panels {
  right: 40px;
  top: 174px;
}
.system-inverters {
  left: 406px;
  top: 244px;
}
.home-core {
  position: absolute;
  left: 420px;
  top: 38px;
  width: 200px;
  height: 200px;
}
.home-core-glass {
  position: absolute;
  inset: 0;
}
.home-core-glass img {
  width: 200px;
  height: 200px;
  max-width: none;
}
.home-core-symbol {
  position: absolute;
  left: 76px;
  top: 76px;
}
.home-core-symbol img {
  width: 48px;
  height: 47.733px;
  max-width: none;
}
.home-clients {
  background: white;
  padding: 40px 0;
}
.home-client-logos {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-top: 24px;
}
.home-client-logos img {
  width: 142px;
  height: 56px;
  object-fit: contain;
}
.home-section {
  padding: 88px 0;
}
.home-stack {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.home-lead {
  font-size: 20px;
  line-height: 30px;
  max-width: 720px;
  color: var(--muted);
}
.home-product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}
.home-product {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}
.home-product:hover {
  box-shadow: 0 8px 24px #102a3812;
  transform: translateY(-3px);
}
.home-product-stage {
  height: 182px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
}
.home-product-stage img {
  object-fit: contain;
  width: 100%;
  height: 100%;
}
.home-product-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
}
.home-product-info h3 {
  font-size: 24px;
  line-height: 30px;
}
.home-product-info p {
  font-size: 16px;
  line-height: 25px;
  color: var(--muted);
}
.home-product-info .text-link {
  font-size: 16px;
  width: 100%;
  margin-top: auto;
}
.home-support {
  background: var(--navy);
  color: var(--paper);
}
.home-support-intro {
  display: grid;
  grid-template-columns: 590fr 610fr;
  gap: 80px;
  align-items: start;
}
.home-copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.home-support .eyebrow {
  color: var(--amber);
}
.home-support .home-lead {
  color: var(--paper);
}
.home-support .button {
  width: 220px;
  align-self: start;
}
.home-maintenance img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 8px;
}
.home-capabilities {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
  margin-top: 56px;
}
.home-capabilities article {
  border-top: 1px solid var(--navysoft);
  padding-top: 16px;
}
.home-capabilities p {
  margin-top: 12px;
  font-size: 18px;
  line-height: 28px;
}
.home-industries {
  background: white;
}
.home-industry-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px;
}
.home-industry-grid article {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.home-industry-grid h3 {
  white-space: normal;
}
.home-industry-grid p {
  font-size: 16px;
  line-height: 25px;
  color: var(--muted);
}
.home-about-grid {
  display: grid;
  grid-template-columns: 640fr 544fr;
  gap: 96px;
}
.home-about-points {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.home-about-points article {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.home-about-points p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 18px;
  line-height: 28px;
}
.home-cta {
  padding: 64px 0;
  background: var(--amber);
}
.home-cta > .container {
  display: flex;
  gap: 64px;
  align-items: center;
  justify-content: space-between;
}
.home-cta h2 {
  max-width: 850px;
}
.home-cta p {
  font-size: 16px;
  line-height: 25px;
  margin-top: 16px;
}
.home-cta .button-dark {
  flex: 0 0 230px;
}
@media (min-width: 761px) and (max-width: 1200px) {
  .home-system-inner {
    transform: scale(0.85);
    transform-origin: top center;
  }
  .home-system {
    height: 325px;
  }
  .home-message h1 {
    font-size: 64px;
  }
  .home-client-logos img {
    width: 12%;
  }
  .home-product-grid {
    gap: 12px;
  }
  .home-product-info {
    padding: 16px;
  }
  .home-product-info h3 {
    font-size: 21px;
    line-height: 28px;
  }
  .home-product-info .text-link {
    font-size: 14px;
  }
  .home-support-intro {
    gap: 40px;
  }
  .home-industry-grid {
    gap: 24px;
  }
  .home-industry-grid h3 {
    white-space: normal;
  }
  .home-about-grid {
    gap: 48px;
  }
  .home-cta > .container {
    gap: 32px;
  }
}
@media (max-width: 760px) {
  .home-atmosphere {
    top: -96px;
  }
  .home-message {
    padding-top: 40px;
    padding-bottom: 16px;
    gap: 20px;
  }
  .home-message h1 {
    font-size: 44px;
    line-height: 48px;
    letter-spacing: -1px;
  }
  .home-message h1 span {
    display: block;
  }
  .home-message p {
    font-size: 16px;
    line-height: 25px;
    max-width: 400px;
  }
  .home-actions {
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 420px;
  }
  .home-actions a {
    width: 100%;
  }
  .home-system {
    height: 212px;
    padding-bottom: 24px;
    overflow: hidden;
  }
  .home-system-inner {
    width: 390px;
    height: 188px;
    flex: none;
  }
  .home-connections img {
    width: 390px;
    height: 188px;
  }
  .home-system-link {
    display: none;
  }
  .home-core {
    left: 107px;
    top: 0;
    width: 176px;
    height: 176px;
  }
  .home-core-glass img {
    width: 176px;
    height: 176px;
  }
  .home-core-symbol {
    left: 66.88px;
    top: 66.88px;
  }
  .home-core-symbol img {
    width: 42.24px;
    height: 42.005px;
  }
  .home-clients {
    padding: 32px 0;
  }
  .home-client-logos {
    display: grid;
    grid-template-columns: repeat(2, 144px);
    gap: 24px;
    justify-content: space-between;
  }
  .home-client-logos img {
    width: 144px;
    height: 56px;
  }
  .home-section {
    padding: 56px 0;
  }
  .home-lead {
    font-size: 16px;
    line-height: 25px;
  }
  .home-product-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .home-product {
    display: flex;
    padding: 12px;
    gap: 16px;
  }
  .home-product-stage {
    width: 108px;
    height: 116px;
    flex: 0 0 108px;
    padding: 0;
  }
  .home-product-info {
    padding: 0;
    gap: 12px;
    flex: 1;
    min-width: 0;
  }
  .home-product-info h3 {
    font-size: 24px;
    line-height: 30px;
  }
  .home-product-info p {
    font-size: 14px;
    line-height: 21px;
  }
  .home-product-info .text-link {
    display: none;
  }
  .home-support-intro {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }
  .home-support .button {
    width: 100%;
  }
  .home-maintenance {
    width: 100%;
  }
  .home-maintenance img {
    height: 240px;
    width: 100%;
  }
  .home-capabilities {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 40px;
  }
  .home-capabilities p {
    font-size: 16px;
    line-height: 25px;
  }
  .home-industry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 24px;
  }
  .home-industry-grid h3 {
    white-space: normal;
    font-size: 24px;
    line-height: 30px;
  }
  .home-industry-grid p {
    font-size: 14px;
    line-height: 21px;
  }
  .home-about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .home-about-points p {
    font-size: 16px;
    line-height: 25px;
  }
  .home-cta {
    padding: 48px 0;
  }
  .home-cta > .container {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }
  .home-cta .button-dark {
    flex: auto;
    width: 100%;
  }
}
@media (min-width: 761px) {
  .home-system-inner {
    flex: none;
  }
  /* Stretch each card's copy so its existing auto margin aligns the CTA. */
  .home-product {
    display: flex;
    flex-direction: column;
  }
  .home-product-stage {
    flex-shrink: 0;
  }
  .home-product-info {
    flex: 1;
  }
}
@media (min-width: 761px) and (max-width: 1000px) {
  .home-system-inner {
    transform: scale(0.65);
  }
  .home-system {
    height: 250px;
    overflow: hidden;
  }
  .home-message h1 {
    font-size: 56px;
    line-height: 64px;
  }
  .home-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-support-intro {
    grid-template-columns: 1fr;
  }
  .home-industry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-about-grid {
    grid-template-columns: 1fr;
  }
  .home-cta > .container {
    gap: 32px;
  }
  .home-cta h2 {
    font-size: 36px;
    line-height: 42px;
  }
}
@media (max-width: 360px) {
  .home-client-logos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
  .home-client-logos img {
    width: 100%;
  }
  .home-product {
    gap: 12px;
  }
  .home-product-stage {
    width: 90px;
    flex-basis: 90px;
  }
  .home-industry-grid {
    gap: 28px 16px;
  }
  .home-industry-grid h3 {
    font-size: 21px;
  }
}

/* Keep the connected system anchored while its energy rings rotate. */
.home-core {
  --core-hover: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  appearance: none;
  border-radius: 50%;
  isolation: isolate;
  outline-offset: 3px;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.home-core:hover,
.home-core:focus-visible {
  --core-hover: 1;
}
.home-core::before {
  content: '';
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  background: radial-gradient(circle, #f4b54488 0%, #f4b54433 36%, transparent 70%);
  opacity: calc(0.25 + var(--core-hover) * 0.3 + var(--core-energy, 0) * 0.65);
  transform: scale(calc(1 + var(--core-hover) * 0.4 + var(--core-energy, 0) * 0.9));
  transition:
    opacity 0.15s ease,
    transform 0.15s ease;
  pointer-events: none;
  z-index: -1;
}
.home-core-glass {
  transform-origin: center;
  animation: home-orbit 28s linear infinite;
  filter: brightness(calc(1 + var(--core-hover) * 0.18 + var(--core-energy, 0) * 0.75))
    drop-shadow(0 0 calc(var(--core-hover) * 10px + var(--core-energy, 0) * 26px) #f4b54488);
  transition: filter 0.15s ease;
  pointer-events: none;
}
.home-core-symbol {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: center;
  animation: home-orbit 12s linear infinite reverse;
  animation-play-state: paused;
  filter: brightness(calc(1 + var(--core-hover) * 0.16 + var(--core-energy, 0) * 0.65))
    drop-shadow(0 0 calc(var(--core-hover) * 7px + var(--core-energy, 0) * 16px) #ffd36cbb);
  transition: filter 0.15s ease;
  pointer-events: none;
}
.home-core-symbol img {
  width: 48px;
  height: 48px;
}
.home-core:hover .home-core-symbol,
.home-core:focus-visible .home-core-symbol {
  animation-play-state: running;
}
.home-core.is-interactive .home-core-glass,
.home-core.is-interactive .home-core-symbol {
  animation: none;
}
.home-connections {
  --connection-hover: 0;
  filter: brightness(calc(1 + var(--connection-hover) * 0.55 + var(--core-energy, 0) * 0.75))
    drop-shadow(0 0 calc(var(--connection-hover) * 4px + var(--core-energy, 0) * 7px) #f4b54466);
  transition: filter 0.15s ease;
}
.home-system-inner:has(a:hover, button:hover, a:focus-visible, button:focus-visible)
  .home-connections {
  --connection-hover: 1;
}
.home-system-link:focus-visible {
  border-color: var(--amber);
  background: #132936;
}
@keyframes home-orbit {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 760px) {
  .home-core-symbol {
    left: 66.5px;
    top: 67px;
    width: 43px;
    height: 42px;
  }
  .home-core-symbol img {
    width: 43px;
    height: 42px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .home-core-glass,
  .home-core-symbol {
    animation: none;
  }
  .home-core::before {
    transform: none;
  }
}

/* Long English industry names need a full column on narrow phones. */
@media (max-width: 480px) {
  html[lang='en'] .home-industry-grid {
    grid-template-columns: 1fr;
  }
}
