/* =========================================================
   AINEXO ERP Landing — page-only styles (keeps site tokens)
   ========================================================= */

.erp-page .erp-hero {
  position: relative;
  padding: calc(var(--nav-h) + 48px) 0 64px;
  overflow: hidden;
}

.erp-page .erp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(50% 45% at 12% 20%, rgba(200, 155, 60, 0.12), transparent 60%),
    radial-gradient(45% 40% at 88% 15%, rgba(214, 177, 90, 0.14), transparent 55%),
    radial-gradient(40% 40% at 70% 80%, rgba(159, 45, 45, 0.08), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.erp-page .erp-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.erp-module h3 a {
  color: inherit;
  text-decoration: none;
}

.erp-module h3 a:hover {
  color: var(--primary);
}

  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}

.erp-page .erp-hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.15rem);
  line-height: 1.12;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.erp-page .erp-hero-lead {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 36rem;
  margin: 0 0 28px;
}

.erp-page .erp-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.erp-page .erp-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  color: var(--faint);
  font-size: 0.86rem;
}

.erp-page .erp-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

/* Device stage mockup */
.erp-stage {
  position: relative;
  min-height: 420px;
  perspective: 1400px;
}

.erp-device {
  position: absolute;
  border-radius: 16px;
  border: 1px solid var(--border-strong);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: hidden;
}

.erp-device-laptop {
  width: min(100%, 460px);
  height: 280px;
  left: 8%;
  top: 36px;
  transform: rotateY(-8deg) rotateX(4deg);
  z-index: 2;
}

.erp-device-tablet {
  width: 170px;
  height: 230px;
  right: 4%;
  top: 70px;
  transform: rotateY(12deg);
  z-index: 3;
}

.erp-device-phone {
  width: 88px;
  height: 170px;
  right: 18%;
  bottom: 24px;
  z-index: 4;
  border-radius: 14px;
}

.erp-device-bar {
  height: 28px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.18);
}

.erp-device-bar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  background: var(--faint);
}

.erp-device-bar i:nth-child(1) { background: #ff5f57; }
.erp-device-bar i:nth-child(2) { background: #febc2e; }
.erp-device-bar i:nth-child(3) { background: #28c840; }

.erp-device-body {
  padding: 12px;
  height: calc(100% - 28px);
  display: grid;
  gap: 8px;
}

.erp-mini-card {
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  padding: 10px;
}

.erp-mini-card strong {
  display: block;
  font-size: 0.72rem;
  color: var(--faint);
  margin-bottom: 6px;
  font-weight: 600;
}

.erp-chart {
  height: 54px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
}

.erp-chart span {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  opacity: 0.85;
  transform-origin: bottom;
  animation: erpBarPulse 2.8s var(--ease) infinite;
}

.erp-chart span:nth-child(1) { height: 40%; animation-delay: 0s; }
.erp-chart span:nth-child(2) { height: 68%; animation-delay: 0.15s; }
.erp-chart span:nth-child(3) { height: 52%; animation-delay: 0.3s; }
.erp-chart span:nth-child(4) { height: 88%; animation-delay: 0.45s; }
.erp-chart span:nth-child(5) { height: 60%; animation-delay: 0.6s; }
.erp-chart span:nth-child(6) { height: 75%; animation-delay: 0.75s; }

@keyframes erpBarPulse {
  0%, 100% { transform: scaleY(1); opacity: 0.8; }
  50% { transform: scaleY(1.08); opacity: 1; }
}

.erp-line {
  height: 36px;
  position: relative;
  overflow: hidden;
}

.erp-line svg {
  width: 100%;
  height: 100%;
}

.erp-float-chip {
  position: absolute;
  z-index: 5;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(31, 31, 31, 0.72);
  backdrop-filter: blur(12px);
  font-size: 0.75rem;
  color: var(--text);
  box-shadow: var(--glow-accent);
  animation: erpFloat 4s ease-in-out infinite;
}

.erp-float-chip.a { left: 0; bottom: 48px; animation-delay: 0s; }
.erp-float-chip.b { left: 36%; top: 8px; animation-delay: 0.8s; }
.erp-float-chip.c { right: 0; bottom: 90px; animation-delay: 1.4s; }

@keyframes erpFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

[data-theme="light"] .erp-float-chip {
  background: rgba(255, 255, 255, 0.88);
}

/* Trust */
.erp-trust {
  padding: 12px 0 48px;
}

.erp-trust-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.erp-trust-item {
  text-align: center;
  padding: 18px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--card);
}

.erp-trust-item i {
  color: var(--primary);
  font-size: 1.15rem;
  margin-bottom: 8px;
  display: block;
}

.erp-trust-item span {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
}

/* Sections */
.erp-section {
  padding: 64px 0;
}

.erp-section.alt {
  background: linear-gradient(180deg, transparent, rgba(214, 177, 90, 0.04), transparent);
}

.erp-section-head {
  max-width: 720px;
  margin: 0 auto 36px;
  text-align: center;
}

.erp-section-head h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.erp-section-head p {
  color: var(--muted);
  margin: 0;
  line-height: 1.7;
}

.erp-about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.erp-about-card {
  padding: 24px;
  height: 100%;
}

.erp-about-card .card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(200, 155, 60, 0.1);
  color: var(--primary);
  margin-bottom: 14px;
}

.erp-about-card h3 {
  font-size: 1.08rem;
  margin: 0 0 10px;
}

.erp-about-card p {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.65;
  margin: 0;
}

/* Modules */
.erp-modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.erp-module {
  padding: 22px;
  height: 100%;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}

.erp-module:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

.erp-module .card-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  background: rgba(214, 177, 90, 0.12);
  color: var(--accent);
}

.erp-module h3 {
  font-size: 1rem;
  margin: 0 0 8px;
}

.erp-module p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 0 0 10px;
}

.erp-module .benefit {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 600;
}

/* Why / Benefits */
.erp-why-grid,
.erp-benefits-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.erp-why-item,
.erp-benefit-item {
  padding: 18px 14px;
  text-align: center;
}

.erp-why-item i,
.erp-benefit-item i {
  color: var(--primary);
  margin-bottom: 10px;
  display: block;
  font-size: 1.1rem;
}

.erp-why-item h3,
.erp-benefit-item h3 {
  font-size: 0.92rem;
  margin: 0 0 6px;
}

.erp-why-item p,
.erp-benefit-item p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}

.erp-benefits-grid {
  grid-template-columns: repeat(4, 1fr);
}

/* Workflow */
.erp-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 4px;
}

.erp-flow-step {
  min-width: 108px;
  padding: 14px 12px;
  text-align: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--card);
  position: relative;
}

.erp-flow-step .n {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 8px;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--grad-main);
  color: #041018;
}

.erp-flow-step span {
  font-size: 0.84rem;
  font-weight: 600;
}

.erp-flow-arrow {
  color: var(--faint);
  font-size: 0.9rem;
  padding: 0 2px;
}

/* Dashboards showcase */
.erp-dash-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 24px;
}

.erp-dash-tab {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s var(--ease);
}

.erp-dash-tab.active,
.erp-dash-tab:hover {
  color: var(--text);
  border-color: rgba(200, 155, 60, 0.35);
  background: rgba(200, 155, 60, 0.08);
}

.erp-dash-panel {
  display: none;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--card);
  overflow: hidden;
  min-height: 320px;
}

.erp-dash-panel.active {
  display: block;
  animation: erpFadeIn 0.45s var(--ease);
}

@keyframes erpFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.erp-dash-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.erp-dash-top h3 {
  margin: 0;
  font-size: 1rem;
}

.erp-dash-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 14px;
  padding: 18px;
}

.erp-stat {
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.erp-stat .label {
  font-size: 0.75rem;
  color: var(--faint);
  margin-bottom: 6px;
}

.erp-stat .value {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.erp-stat .hint {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 4px;
}

.erp-panel-chart {
  grid-column: 1 / -1;
  min-height: 140px;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
}

.erp-panel-chart .erp-chart {
  height: 100px;
}

/* CTA */
.erp-cta-band {
  margin: 24px 0 72px;
  padding: 48px 28px;
  text-align: center;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(200, 155, 60, 0.12), transparent 60%),
    var(--card);
}

.erp-cta-band h2 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.erp-cta-band p {
  color: var(--muted);
  margin: 0 0 24px;
}

.erp-cta-band .erp-cta-row {
  justify-content: center;
}

.erp-founder-note {
  margin-top: 28px;
  font-size: 0.88rem;
  color: var(--faint);
  line-height: 1.7;
}

.erp-founder-note a {
  color: var(--primary);
}

@media (max-width: 1024px) {
  .erp-page .erp-hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .erp-stage {
    min-height: 360px;
    max-width: 520px;
    margin: 0 auto;
  }

  .erp-trust-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .erp-about-grid,
  .erp-modules-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .erp-why-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .erp-benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .erp-page .erp-hero {
    padding-top: calc(var(--nav-h) + 28px);
  }

  .erp-device-laptop {
    width: 92%;
    left: 4%;
    height: 240px;
    transform: none;
  }

  .erp-device-tablet,
  .erp-device-phone {
    display: none;
  }

  .erp-trust-grid,
  .erp-about-grid,
  .erp-modules-grid,
  .erp-why-grid,
  .erp-benefits-grid {
    grid-template-columns: 1fr;
  }

  .erp-flow-arrow {
    display: none;
  }

  .erp-flow-step {
    flex: 1 1 calc(50% - 8px);
  }

  .erp-dash-grid {
    grid-template-columns: 1fr;
  }
}
