/* EnergyOS integration layer
 * Extends the production homepage without replacing its established visual system.
 */

.hero-badge .badge-icon {
  display: inline-flex;
  flex: 0 0 24px;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(0, 245, 212, .35);
  border-radius: 7px;
  color: #00f5d4;
  background: rgba(0, 245, 212, .08);
  font-family: "Orbitron", sans-serif;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
}

.hero-badge .badge-text {
  min-width: 0;
  line-height: 1.35;
}

.hero-product-name {
  display: inline-flex;
  max-width: fit-content;
  margin: -.45rem 0 -.25rem;
  align-items: center;
  gap: .75rem;
  color: rgba(231, 244, 255, .88);
  font-family: "Orbitron", "Noto Sans SC", sans-serif;
  font-size: clamp(.86rem, 1.25vw, 1.05rem);
  font-weight: 600;
  letter-spacing: .14em;
  line-height: 1.5;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(0, 217, 255, .18);
  animation: fadeInUp .7s ease-out .1s both;
}

.hero-product-name-line {
  flex: 0 0 auto;
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, #00f5d4, #00d9ff);
  box-shadow: 0 0 10px rgba(0, 245, 212, .55);
}

.hero-image-wrapper {
  flex-direction: column;
}

.hero-image-wrapper .hero-image {
  max-height: calc(100% - 58px);
}

.hero-image-wrapper .hero-product-name {
  position: relative;
  z-index: 3;
  flex: 0 0 auto;
  margin: .7rem 0 0;
  align-self: center;
}

.hero-title .title-line:first-child .gradient-text-alt {
  display: inline-block;
  padding-bottom: .12em;
  font-size: .6em;
  line-height: 1.15;
  white-space: nowrap;
  background: linear-gradient(110deg, #ffb84d 0%, #ff6aa8 28%, #8b78ff 62%, #00d9ff 100%);
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-title .title-line:nth-child(2) .gradient-text {
  display: inline-block;
  padding-bottom: .12em;
  font-size: .6em;
  line-height: 1.18;
  white-space: nowrap;
  background: linear-gradient(110deg, #00f5d4 0%, #00d9ff 52%, #7b76ff 100%);
  background-clip: text;
  -webkit-background-clip: text;
}

.energyos-native-section {
  position: relative;
  z-index: 1;
  padding: 120px 0;
  overflow: hidden;
  background: rgba(5, 7, 20, .28);
}

.energyos-native-section::before {
  position: absolute;
  top: -260px;
  right: -180px;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  content: "";
  background: radial-gradient(circle, rgba(0, 229, 210, .1), transparent 68%);
  pointer-events: none;
}

.energyos-native-header {
  position: relative;
  z-index: 1;
}

.energyos-native-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.energyos-native-card {
  position: relative;
  min-height: 390px;
  padding: 30px;
  overflow: hidden;
  border: 1px solid rgba(0, 212, 255, .12);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(16, 27, 48, .92), rgba(8, 15, 29, .94));
  box-shadow: 0 18px 50px rgba(0, 0, 0, .24);
  transition: border-color .35s ease, box-shadow .35s ease, transform .35s ease;
}

.energyos-native-card::after {
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  content: "";
  background: rgba(0, 245, 194, .08);
  filter: blur(40px);
}

.energyos-native-card:hover {
  border-color: rgba(0, 245, 212, .34);
  box-shadow: 0 22px 58px rgba(0, 0, 0, .35), inset 0 0 40px rgba(0, 221, 207, .025);
  transform: translateY(-7px);
}

.energyos-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #00e8d0;
  font-family: "Orbitron", sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
}

.energyos-card-top b {
  color: #263753;
  font-size: 25px;
  font-weight: 500;
}

.energyos-card-icon {
  position: relative;
  width: 64px;
  height: 64px;
  margin-top: 38px;
  border: 1px solid rgba(0, 231, 214, .26);
  border-radius: 18px;
  background: rgba(0, 229, 207, .055);
}

.energyos-card-icon i,
.energyos-card-icon strong {
  position: absolute;
  display: block;
}

.energyos-card-icon i {
  width: 8px;
  height: 8px;
  border: 1px solid #00f0d1;
  border-radius: 50%;
}

.energyos-card-icon i:nth-child(1) { top: 13px; left: 15px; }
.energyos-card-icon i:nth-child(2) { top: 14px; right: 14px; }
.energyos-card-icon i:nth-child(3) { right: 16px; bottom: 13px; }
.energyos-card-icon strong {
  top: 28px;
  left: 15px;
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, #00f0d1, #00bde9);
  transform: rotate(28deg);
}

.energyos-card-icon.energyos-wave i {
  top: auto;
  right: 13px;
  bottom: 13px;
  left: 13px;
  width: auto;
  height: 15px;
  border-width: 1px 0 0;
  border-radius: 50%;
}
.energyos-card-icon.energyos-wave i:nth-child(1) { bottom: 13px; }
.energyos-card-icon.energyos-wave i:nth-child(2) { bottom: 22px; }
.energyos-card-icon.energyos-wave i:nth-child(3) { bottom: 31px; }
.energyos-card-icon.energyos-wave strong { display: none; }

.energyos-card-icon.energyos-chip strong,
.energyos-card-icon.energyos-loop strong {
  inset: 14px;
  display: grid;
  width: auto;
  height: auto;
  place-items: center;
  border: 1px solid rgba(0, 240, 209, .5);
  border-radius: 9px;
  color: #00f0d1;
  background: rgba(0, 226, 205, .08);
  font-family: "Orbitron", sans-serif;
  font-size: 10px;
  transform: none;
}
.energyos-card-icon.energyos-chip i,
.energyos-card-icon.energyos-loop i { display: none; }
.energyos-card-icon.energyos-loop strong { border-radius: 50%; font-size: 24px; }

.energyos-native-card h3 {
  position: relative;
  z-index: 1;
  margin: 27px 0 0;
  color: #f5fbff;
  font-size: 22px;
}

.energyos-native-card p {
  position: relative;
  z-index: 1;
  margin: 12px 0 0;
  color: rgba(219, 231, 244, .68);
  font-size: 13px;
  line-height: 1.8;
}

.energyos-native-card ul {
  position: relative;
  z-index: 1;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.energyos-native-card li {
  padding: 7px 0;
  border-top: 1px solid rgba(0, 212, 255, .09);
  color: rgba(190, 208, 225, .65);
  font-size: 11px;
}

.energyos-native-flow {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 18px;
  padding: 14px 24px;
  border: 1px solid rgba(0, 219, 224, .12);
  border-radius: 16px;
  color: rgba(205, 221, 235, .68);
  background: rgba(9, 24, 37, .78);
  font-size: 12px;
}

.energyos-native-flow i { color: #00e9d0; font-style: normal; }
.energyos-native-flow strong { color: #00f0ce; }

.energyos-capability-label {
  display: inline-block;
  margin-bottom: 12px;
  color: #00e8d0;
  font-family: "Orbitron", sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .16em;
}

.ruyi-model-text .ruyi-model-subtitle {
  max-width: 620px;
  line-height: 1.7;
}

.about-image .energyos-feature-image {
  width: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  cursor: zoom-in;
  text-align: left;
}

.energyos-image-caption {
  position: absolute;
  z-index: 3;
  bottom: 22px;
  left: 24px;
  display: flex;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  flex-direction: column;
  text-shadow: 0 3px 14px rgba(0, 0, 0, .7);
}

.energyos-image-caption small {
  margin-bottom: 4px;
  color: #00f0d1;
  font-family: "Orbitron", sans-serif;
  font-size: 8px;
  letter-spacing: .14em;
}

@media (max-width: 1100px) {
  .energyos-native-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .energyos-native-card { min-height: 350px; }
}

@media (max-width: 768px) {
  .energyos-native-section { padding: 80px 0; }
  .energyos-native-grid { grid-template-columns: 1fr; }
  .energyos-native-card { min-height: 0; padding: 26px; }
  .energyos-card-icon { margin-top: 24px; }
  .energyos-native-flow { align-items: flex-start; gap: 8px; flex-direction: column; }
  .energyos-native-flow i { display: none; }
  .hero-title .title-line:first-child .gradient-text-alt { font-size: .68em; }
  .hero-badge { align-self: center; justify-content: center; }
}

@media (max-width: 480px) {
  .energyos-native-section { padding: 64px 0; }
  .energyos-native-card { border-radius: 14px; }
  .energyos-image-caption { bottom: 15px; left: 17px; font-size: 16px; }
}

@media (max-width: 360px) {
  .hero-badge { gap: .55rem; padding: .5rem .75rem; }
  .hero-badge .badge-text { font-size: .72rem; letter-spacing: .2px; }
  .hero-product-name { gap: .55rem; font-size: .78rem; letter-spacing: .09em; }
  .hero-product-name-line { width: 20px; }

  /* Allow the retained company/image grid to shrink below its legacy 280px minimum. */
  .about-content,
  .about-text,
  .about-image,
  .about-image .image-wrapper {
    width: 100%;
    min-width: 0;
  }
}
