/* =========================================================
   HT ERP Internal Page Hero V2.6
   Isolated from landing page and legacy internal hero rules.
   ========================================================= */

body.inner-page {
  overflow-x: clip;
}

body.inner-page .main-header,
body.inner-page main,
body.inner-page .inner-footer {
  max-width: 100%;
}

.internal-page-hero-v2 {
  position: relative;
  z-index: 2;
  padding: 150px 0 64px;
}

.internal-page-hero-v2 > .container {
  width: min(calc(100% - 40px), 1320px);
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: 0 !important;
}

.iph-shell {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(290px, .72fr) minmax(0, 1.28fr);
  gap: clamp(34px, 5vw, 76px);
  align-items: center;
  width: 100%;
  max-width: 100%;
  min-height: 480px;
  padding: clamp(38px, 5vw, 68px);
  overflow: hidden;
  box-sizing: border-box;
  direction: ltr;
  border: 1px solid rgba(85, 177, 255, .28);
  border-radius: 34px;
  background:
    radial-gradient(circle at 14% 30%, rgba(0, 217, 255, .12), transparent 31%),
    radial-gradient(circle at 86% 24%, rgba(124, 58, 237, .16), transparent 34%),
    linear-gradient(145deg, rgba(5, 21, 48, .94), rgba(3, 10, 28, .92));
  box-shadow: 0 34px 86px rgba(0, 0, 0, .34);
}

.iph-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: .58;
  background-image:
    linear-gradient(rgba(255,255,255,.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.026) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(90deg, rgba(0,0,0,.25), #000 48%, rgba(0,0,0,.5));
}

.iph-shell::after {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  inset: auto -170px -250px auto;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, .17), transparent 68%);
  pointer-events: none;
}

.iph-content {
  grid-column: 2;
  min-width: 0;
  width: 100%;
  max-width: 760px;
  direction: rtl;
  text-align: right;
  justify-self: stretch;
}

.iph-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 20px;
  color: #7187a9;
  font-size: 11px;
}

.iph-breadcrumb a {
  color: #9bb1d0;
  text-decoration: none;
}

.iph-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 9px 14px;
  border: 1px solid rgba(52, 220, 255, .24);
  border-radius: 999px;
  background: rgba(12, 43, 82, .58);
  color: #4be7ff;
  font-size: 11px;
  font-weight: 800;
}

.iph-title {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 20px 0 16px;
  padding: 0;
  color: #f8fbff;
  font-size: clamp(40px, 4.5vw, 68px);
  font-weight: 900;
  line-height: 1.24;
  letter-spacing: -.8px;
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
  word-break: normal;
  text-wrap: balance;
}

.iph-description {
  width: 100%;
  max-width: 700px;
  margin: 0;
  color: #9cafcb;
  font-size: clamp(13px, 1.05vw, 16px);
  line-height: 2;
  white-space: normal;
  overflow-wrap: break-word;
}

.iph-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.iph-brand-definition {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  color: #8196b5;
  font-size: 11px;
}

.iph-brand-definition b {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: linear-gradient(145deg, #087cff, #7a35ff);
  color: #fff;
  box-shadow: 0 8px 24px rgba(57, 73, 255, .26);
}

.iph-visual {
  grid-column: 1;
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 360px);
  aspect-ratio: 1;
  margin-inline: auto;
  direction: ltr;
  border: 1px solid rgba(90, 188, 255, .22);
  border-radius: 32px;
  background:
    radial-gradient(circle at 50% 45%, rgba(27, 118, 255, .18), transparent 43%),
    linear-gradient(145deg, rgba(4, 24, 55, .82), rgba(4, 12, 31, .72));
  box-shadow: inset 0 0 42px rgba(31, 114, 255, .06), 0 22px 52px rgba(0,0,0,.24);
  overflow: hidden;
}

.iph-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .55;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle, #000 38%, transparent 78%);
}

.iph-core {
  position: relative;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  border: 1px solid rgba(77, 222, 255, .44);
  border-radius: 34%;
  background:
    radial-gradient(circle at 35% 25%, rgba(75, 236, 255, .38), rgba(42, 59, 170, .4) 44%, rgba(6, 18, 48, .94));
  box-shadow: 0 0 42px rgba(0, 198, 255, .24), inset 0 0 32px rgba(91, 64, 255, .18);
  animation: iphCoreFloat 5s ease-in-out infinite, iphCoreGlow 3.8s ease-in-out infinite;
  will-change: transform, box-shadow;
}

@keyframes iphCoreGlow {
  0%, 100% {
    box-shadow: 0 0 36px rgba(0, 198, 255, .2), inset 0 0 30px rgba(91, 64, 255, .16);
  }
  50% {
    box-shadow: 0 0 54px rgba(0, 213, 255, .32), inset 0 0 38px rgba(111, 77, 255, .24);
  }
}

.iph-core i {
  font-size: 54px;
  background: linear-gradient(135deg, #6af8ff, #8a5cff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 12px rgba(41, 217, 255, .42));
}

.iph-core small {
  position: absolute;
  bottom: 13px;
  color: rgba(221, 242, 255, .72);
  font-size: 8px;
  letter-spacing: .8px;
}

.iph-orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  border: 1px solid rgba(54, 225, 255, .28);
  border-radius: 50%;
  pointer-events: none;
}

.iph-orbit.one {
  width: 250px;
  height: 92px;
  transform: translate(-50%, -50%) rotate(-18deg);
  animation: iphOrbitOne 15s linear infinite;
}

.iph-orbit.two {
  width: 228px;
  height: 82px;
  border-color: rgba(139, 92, 246, .30);
  transform: translate(-50%, -50%) rotate(40deg);
  animation: iphOrbitTwo 12s linear infinite reverse;
}


.iph-chip {
  position: absolute;
  z-index: 6;
  min-width: 86px;
  padding: 11px 13px;
  border: 1px solid rgba(85, 192, 255, .28);
  border-radius: 13px;
  background: rgba(5, 20, 50, .82);
  box-shadow: 0 16px 35px rgba(0,0,0,.25), inset 0 0 20px rgba(63, 165, 255, .035);
  backdrop-filter: blur(12px);
  text-align: center;
  transform-origin: center;
  will-change: transform, box-shadow, border-color;
  transition: border-color .35s ease, box-shadow .35s ease, background .35s ease;
}

.iph-chip b {
  display: block;
  color: #5ff6ff;
  font-size: 13px;
}

.iph-chip span {
  display: block;
  margin-top: 3px;
  color: #7f94b3;
  font-size: 8px;
}

.iph-chip.left {
  left: 18px;
  top: 26%;
  animation: iphChipLeftFloat 5.8s ease-in-out infinite;
}

.iph-chip.right {
  right: 18px;
  bottom: 24%;
  animation: iphChipRightFloat 6.4s ease-in-out infinite;
}

.iph-visual:hover .iph-chip {
  border-color: rgba(91, 233, 255, .5);
  background: rgba(7, 26, 63, .9);
  box-shadow: 0 20px 42px rgba(0,0,0,.3), 0 0 22px rgba(37, 211, 255, .09);
}

@keyframes iphCoreFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  45% { transform: translateY(-9px) scale(1.018); }
  55% { transform: translateY(-9px) scale(1.018); }
}

@keyframes iphChipLeftFloat {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(7px, -8px, 0) rotate(.6deg); }
}

@keyframes iphChipRightFloat {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(-7px, 8px, 0) rotate(-.6deg); }
}

@keyframes iphOrbitOne {
  to { transform: translate(-50%, -50%) rotate(342deg); }
}

@keyframes iphOrbitTwo {
  to { transform: translate(-50%, -50%) rotate(400deg); }
}

@media (max-width: 1100px) {
  .internal-page-hero-v2 > .container {
    width: min(calc(100% - 30px), 1320px);
  }

  .iph-shell {
    grid-template-columns: minmax(250px, .68fr) minmax(0, 1.32fr);
    gap: 32px;
    padding: 42px;
  }

  .iph-visual {
    width: min(100%, 310px);
  }

  .iph-core {
    width: 118px;
    height: 118px;
  }

  .iph-core i { font-size: 48px; }
  .iph-orbit.one { width: 224px; height: 82px; }
  .iph-orbit.two { width: 204px; height: 74px; }
}

@media (max-width: 900px) {
  .internal-page-hero-v2 {
    padding: 126px 0 54px;
  }

  .iph-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
    min-height: 0;
    padding: 38px 30px;
  }

  .iph-content {
    grid-column: 1;
    grid-row: 1;
    max-width: 100%;
  }

  .iph-visual {
    grid-column: 1;
    grid-row: 2;
    width: min(100%, 330px);
  }

  .iph-title,
  .iph-description {
    max-width: 100%;
  }
}

@media (max-width: 650px) {
  .internal-page-hero-v2 {
    padding: 112px 0 44px;
  }

  .internal-page-hero-v2 > .container {
    width: calc(100% - 20px);
  }

  .iph-shell {
    gap: 26px;
    padding: 28px 18px;
    border-radius: 22px;
  }

  .iph-title {
    font-size: clamp(31px, 9vw, 43px);
    line-height: 1.3;
  }

  .iph-description {
    font-size: 13px;
    line-height: 1.9;
  }

  .iph-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .iph-actions .page-btn {
    width: 100%;
  }

  .iph-visual {
    width: min(100%, 280px);
  }

  .iph-chip {
    min-width: 74px;
    padding: 9px 10px;
  }
}


@media (prefers-reduced-motion: reduce) {
  .iph-core,
  .iph-chip.left,
  .iph-chip.right,
  .iph-orbit.one,
  .iph-orbit.two {
    animation: none !important;
  }
}
