.ai-erpx-page main {
  background: #f7f9fb;
}

.ai-erpx-page main > div > section:first-child {
  min-height: 720px;
}

.ai-erpx-hero-panel {
  position: absolute;
  right: clamp(24px, 6vw, 96px);
  top: 128px;
  z-index: 12;
  width: min(420px, 36vw);
  pointer-events: none;
}

.ai-erpx-hero-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 28px;
  padding: 24px;
  color: #0f172a;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(241, 245, 249, 0.72));
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(18px);
}

.ai-erpx-hero-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 180deg, transparent, rgba(14, 165, 233, 0.18), transparent, rgba(34, 197, 94, 0.16), transparent);
  animation: ai-erpx-spin 12s linear infinite;
}

.ai-erpx-hero-card > * {
  position: relative;
}

.ai-erpx-hero-status,
.ai-erpx-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #0369a1;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ai-erpx-hero-status span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 7px rgba(34, 197, 94, 0.14);
  animation: ai-erpx-pulse 1.8s ease-in-out infinite;
}

.ai-erpx-hero-title {
  margin-top: 18px;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: 0;
}

.ai-erpx-command-line {
  margin-top: 18px;
  padding: 14px;
  border-radius: 18px;
  background: #0f172a;
  color: #e2e8f0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.ai-erpx-command-line span {
  display: block;
  margin-bottom: 8px;
  color: #38bdf8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.ai-erpx-command-line strong {
  display: block;
  font-size: 14px;
  line-height: 1.65;
  font-weight: 700;
}

.ai-erpx-hero-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
}

.ai-erpx-hero-flow i {
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(14, 165, 233, 0), rgba(14, 165, 233, 0.9));
  animation: ai-erpx-flow 1.8s ease-in-out infinite;
}

.ai-erpx-hero-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.ai-erpx-hero-grid div {
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.ai-erpx-hero-grid strong,
.ai-erpx-live-top strong {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 24px;
  color: #0f172a;
}

.ai-erpx-hero-grid span,
.ai-erpx-live-top small {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

.ai-erpx-shell {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 112px 24px;
  color: #0f172a;
  background:
    radial-gradient(circle at var(--mx, 76%) var(--my, 10%), rgba(14, 165, 233, 0.16), transparent 24rem),
    linear-gradient(180deg, #f8fafc 0%, #eef3f7 100%);
}

.ai-erpx-bg-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.48;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, transparent, black 15%, black 80%, transparent);
}

.ai-erpx-kicker,
.ai-erpx-heading,
.ai-erpx-console,
.ai-erpx-capability,
.ai-erpx-lanes {
  width: min(1240px, calc(100vw - 48px));
  margin-left: auto;
  margin-right: auto;
}

.ai-erpx-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
  margin-top: 18px;
}

.ai-erpx-heading h2 {
  max-width: 900px;
  margin: 0;
  color: #0f172a;
  font-size: clamp(38px, 5.4vw, 76px);
  line-height: 0.96;
  font-weight: 950;
  letter-spacing: 0;
}

.ai-erpx-heading p {
  max-width: 760px;
  margin: 22px 0 0;
  color: #475569;
  font-size: 17px;
  line-height: 1.9;
}

.ai-erpx-portal-link,
.ai-erpx-input button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  color: #ffffff;
  background: #0f172a;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.24);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), background 0.22s;
}

.ai-erpx-portal-link:hover,
.ai-erpx-input button:hover {
  background: #075985;
  transform: translateY(-2px);
}

.ai-erpx-portal-link:active,
.ai-erpx-input button:active {
  transform: translateY(1px) scale(0.98);
}

.ai-erpx-console {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  gap: 24px;
  margin-top: 44px;
}

.ai-erpx-chat,
.ai-erpx-live,
.ai-erpx-detail,
.ai-erpx-lanes > div {
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
}

.ai-erpx-chat {
  padding: 26px;
}

.ai-erpx-chat-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ai-erpx-chat-head > span {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, #0f172a 0 50%, #0ea5e9 50%),
    #0f172a;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.ai-erpx-chat-head strong {
  display: block;
  font-size: 18px;
}

.ai-erpx-chat-head small {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-weight: 700;
}

.ai-erpx-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.ai-erpx-chip-row button,
.ai-erpx-tabs button {
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 999px;
  padding: 10px 14px;
  color: #334155;
  background: #ffffff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s, color 0.2s, background 0.2s;
}

.ai-erpx-chip-row button:hover,
.ai-erpx-tabs button:hover {
  transform: translateY(-2px);
  border-color: rgba(14, 165, 233, 0.45);
}

.ai-erpx-chip-row button.is-active,
.ai-erpx-tabs button.is-active {
  color: #ffffff;
  border-color: #0f172a;
  background: #0f172a;
}

.ai-erpx-dialogue {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.ai-erpx-bubble {
  max-width: 86%;
  padding: 16px 18px;
  border-radius: 22px;
  line-height: 1.78;
  animation: ai-erpx-rise 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}

.ai-erpx-bubble-user {
  justify-self: end;
  color: #ffffff;
  background: #0f172a;
}

.ai-erpx-bubble-ai {
  justify-self: start;
  color: #1e293b;
  background: #eef6fb;
}

.ai-erpx-bubble-ai p {
  margin: 10px 0 0;
}

.ai-erpx-thinking {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #0369a1;
  font-size: 12px;
  font-weight: 900;
}

.ai-erpx-thinking span {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #0ea5e9;
  animation: ai-erpx-dot 1s ease-in-out infinite;
}

.ai-erpx-thinking span:nth-child(2) {
  animation-delay: 0.12s;
}

.ai-erpx-thinking span:nth-child(3) {
  animation-delay: 0.24s;
}

.ai-erpx-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 22px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 20px;
  padding: 10px;
  background: #ffffff;
}

.ai-erpx-input span {
  padding-left: 10px;
  color: #64748b;
  font-weight: 800;
}

.ai-erpx-input button {
  min-height: 42px;
  cursor: pointer;
}

.ai-erpx-live {
  position: relative;
  overflow: hidden;
  padding: 24px;
}

.ai-erpx-live::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0 35%, rgba(14, 165, 233, 0.08), transparent 65% 100%);
  transform: translateX(-100%);
  animation: ai-erpx-scan 4s ease-in-out infinite;
}

.ai-erpx-live > * {
  position: relative;
}

.ai-erpx-live-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 18px;
}

.ai-erpx-live-top strong {
  margin-top: 8px;
  font-size: 54px;
  line-height: 0.95;
}

.ai-erpx-live-top > span {
  border-radius: 999px;
  padding: 8px 12px;
  color: #0369a1;
  background: rgba(14, 165, 233, 0.12);
  font-size: 12px;
  font-weight: 900;
}

.ai-erpx-flow {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.ai-erpx-step {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 12px;
  transform: translateY(8px);
  opacity: 0;
  animation: ai-erpx-rise 0.48s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(var(--d) * 0.08s);
}

.ai-erpx-step span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #0f172a;
  background: #e0f2fe;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-weight: 900;
}

.ai-erpx-step b {
  display: block;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  padding-bottom: 13px;
  color: #1e293b;
}

.ai-erpx-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.ai-erpx-mini {
  padding: 15px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  transform: translateY(8px);
  opacity: 0;
  animation: ai-erpx-rise 0.48s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(var(--d) * 0.08s + 0.16s);
}

.ai-erpx-mini span {
  display: block;
  width: 34px;
  height: 5px;
  margin-bottom: 12px;
  border-radius: 99px;
  background: #0ea5e9;
}

.ai-erpx-mini strong {
  display: block;
  font-size: 14px;
}

.ai-erpx-mini small {
  display: block;
  margin-top: 5px;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

.ai-erpx-capability {
  margin-top: 26px;
}

.ai-erpx-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ai-erpx-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: center;
  margin-top: 16px;
  padding: 28px;
}

.ai-erpx-detail-copy span {
  color: #0369a1;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.ai-erpx-detail-copy h3 {
  margin: 12px 0 12px;
  color: #0f172a;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.05;
  font-weight: 950;
}

.ai-erpx-detail-copy p {
  max-width: 720px;
  margin: 0;
  color: #475569;
  line-height: 1.9;
}

.ai-erpx-orbit {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 260px;
}

.ai-erpx-orbit::before,
.ai-erpx-orbit::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(14, 165, 233, 0.22);
  border-radius: 999px;
}

.ai-erpx-orbit::before {
  width: 220px;
  height: 220px;
}

.ai-erpx-orbit::after {
  width: 150px;
  height: 150px;
}

.ai-erpx-orbit-core {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border-radius: 34px;
  color: #ffffff;
  background: #0f172a;
  font-weight: 950;
  box-shadow: 0 20px 54px rgba(15, 23, 42, 0.28);
}

.ai-erpx-orbit i {
  position: absolute;
  width: 15px;
  height: 15px;
  border-radius: 999px;
  background: #0ea5e9;
  transform: rotate(calc(var(--i) * 90deg)) translateX(112px);
  transform-origin: center;
  animation: ai-erpx-orbit 8s linear infinite;
  animation-delay: calc(var(--i) * -1.4s);
}

.ai-erpx-lanes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.ai-erpx-lanes > div {
  padding: 24px;
}

.ai-erpx-lanes span {
  color: #0ea5e9;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 900;
}

.ai-erpx-lanes strong {
  display: block;
  margin-top: 16px;
  color: #0f172a;
  font-size: 20px;
}

.ai-erpx-lanes p {
  margin: 12px 0 0;
  color: #64748b;
  line-height: 1.8;
}

.ai-erpx-shell[data-tone="amber"] .ai-erpx-mini span,
.ai-erpx-shell[data-tone="amber"] .ai-erpx-orbit i {
  background: #f59e0b;
}

.ai-erpx-shell[data-tone="green"] .ai-erpx-mini span,
.ai-erpx-shell[data-tone="green"] .ai-erpx-orbit i {
  background: #22c55e;
}

.ai-erpx-shell[data-tone="red"] .ai-erpx-mini span,
.ai-erpx-shell[data-tone="red"] .ai-erpx-orbit i {
  background: #ef4444;
}

.ai-erpx-shell[data-tone="blue"] .ai-erpx-mini span,
.ai-erpx-shell[data-tone="blue"] .ai-erpx-orbit i {
  background: #2563eb;
}

@keyframes ai-erpx-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes ai-erpx-pulse {
  50% {
    transform: scale(0.74);
    box-shadow: 0 0 0 11px rgba(34, 197, 94, 0);
  }
}

@keyframes ai-erpx-flow {
  50% {
    opacity: 0.35;
    transform: scaleX(0.72);
  }
}

@keyframes ai-erpx-rise {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes ai-erpx-dot {
  50% {
    transform: translateY(-3px);
    opacity: 0.5;
  }
}

@keyframes ai-erpx-scan {
  50% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@keyframes ai-erpx-orbit {
  to {
    rotate: 360deg;
  }
}

@media (max-width: 1120px) {
  .ai-erpx-hero-panel {
    position: relative;
    top: auto;
    right: auto;
    width: min(680px, calc(100% - 48px));
    margin: -68px auto 48px;
  }

  .ai-erpx-console,
  .ai-erpx-detail {
    grid-template-columns: 1fr;
  }

  .ai-erpx-orbit {
    min-height: 220px;
  }
}

@media (max-width: 760px) {
  .ai-erpx-page main > div > section:first-child {
    min-height: auto;
  }

  .ai-erpx-shell {
    padding: 72px 16px;
  }

  .ai-erpx-kicker,
  .ai-erpx-heading,
  .ai-erpx-console,
  .ai-erpx-capability,
  .ai-erpx-lanes {
    width: 100%;
  }

  .ai-erpx-heading {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .ai-erpx-heading h2 {
    font-size: 38px;
  }

  .ai-erpx-console {
    grid-template-columns: 1fr;
  }

  .ai-erpx-live {
    padding: 18px;
  }

  .ai-erpx-card-grid,
  .ai-erpx-lanes {
    grid-template-columns: 1fr;
  }

  .ai-erpx-bubble {
    max-width: 100%;
  }

  .ai-erpx-input {
    align-items: stretch;
    flex-direction: column;
  }

  .ai-erpx-input span {
    padding: 6px 8px 0;
  }

  .ai-erpx-hero-panel {
    width: calc(100% - 32px);
    margin-top: -36px;
  }

  .ai-erpx-hero-card {
    border-radius: 22px;
    padding: 18px;
  }

  .ai-erpx-hero-title {
    font-size: 23px;
  }

  .ai-erpx-hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ai-erpx-hero-card::before,
  .ai-erpx-hero-status span,
  .ai-erpx-hero-flow i,
  .ai-erpx-thinking span,
  .ai-erpx-live::before,
  .ai-erpx-orbit i {
    animation: none;
  }
}
