/* ==========================================================================
   7. HERO SECTION (FE/cms/src/sections/home/home-hero.jsx)
   ========================================================================== */
.hero {
  position: relative;
  padding-top: calc(var(--header-height) + 64px);
  padding-bottom: 80px;
  overflow: hidden;
}

.hero__bg-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.75;
}

.hero__glow-1 {
  position: absolute;
  top: -120px;
  left: -120px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.16) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

.hero__glow-2 {
  position: absolute;
  top: 10%;
  right: -140px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--warning-rgb), 0.12) 0%, rgba(var(--secondary-rgb), 0.08) 50%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
}

.hero__content {
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  z-index: 4;
}

.hero__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background-color: rgba(var(--primary-rgb), 0.1);
  border: 1px solid rgba(var(--primary-rgb), 0.24);
  color: var(--primary-dark);
  font-size: 0.8125rem;
  font-weight: 700;
  margin-bottom: 24px;
  max-width: 100%;
  line-height: 1.4;
}
html[data-theme="dark"] .hero__pill {
  color: var(--primary-light);
}

.hero__title {
  font-family: var(--font-secondary);
  font-weight: 800;
  font-size: clamp(2.5rem, 5.2vw, 4.5rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
}

.hero__title-muted {
  display: block;
  opacity: 0.28;
}

.hero__subtitle {
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 32px;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 36px;
  font-size: 0.875rem;
  font-weight: 600;
}

.avatar-group {
  display: inline-flex;
  align-items: center;
}

.avatar-group__item {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--bg-default);
  margin-left: -10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: #fff;
}
.avatar-group__item:first-child {
  margin-left: 0;
}

.hero__cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 44px;
}

.hero__tech-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.hero__tech-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-disabled);
}

.hero__tech-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.tech-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 8px;
  background-color: var(--bg-paper);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-z1);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* ==========================================================================
   8. INTERACTIVE CMS DASHBOARD PREVIEW (OverviewAppView + Inventory WMS)
   ========================================================================== */
.cms-preview-wrapper {
  margin-top: 56px;
  border-radius: 20px;
  background-color: var(--bg-paper);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-dialog);
  overflow: hidden;
}

.cms-browser-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background-color: var(--bg-neutral);
  border-bottom: 1px solid var(--border-subtle);
  gap: 16px;
  flex-wrap: wrap;
}

.cms-browser-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cms-browser-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.cms-browser-url {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 16px;
  border-radius: 8px;
  background-color: var(--bg-paper);
  border: 1px solid var(--border-subtle);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* CustomTabs from FE/cms/src/components/custom-tabs/custom-tabs.jsx */
.cms-tabs {
  display: inline-flex;
  background-color: var(--bg-paper);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  gap: 4px;
  flex-wrap: wrap;
}

.cms-tab-btn {
  padding: 6px 14px;
  border-radius: 7px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-primary);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cms-tab-btn.active {
  background-color: rgba(var(--primary-rgb), 0.14);
  color: var(--primary-dark);
  font-weight: 700;
}
html[data-theme="dark"] .cms-tab-btn.active {
  color: var(--primary-light);
}

.cms-dashboard-shell {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  min-height: 510px;
  width: 100%;
}

.cms-dashboard-shell > * {
  min-width: 0;
  max-width: 100%;
}

.cms-sidebar {
  border-right: 1px solid var(--border-subtle);
  padding: 20px 14px;
  background-color: var(--bg-paper);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

@media (max-width: 900px) {
  .cms-dashboard-shell {
    grid-template-columns: minmax(0, 1fr);
  }
  .cms-sidebar {
    display: none;
  }
}

.cms-sidebar__subheader {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-disabled);
  padding: 8px 12px 4px;
}

.cms-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.18s ease;
}

.cms-nav-item:hover {
  background-color: var(--action-hover);
  color: var(--text-primary);
}

.cms-nav-item.active {
  background-color: rgba(var(--primary-rgb), 0.12);
  color: var(--primary-main);
  font-weight: 700;
}

.cms-main-canvas {
  padding: 24px;
  background-color: var(--bg-neutral);
  min-width: 0;
  width: 100%;
  overflow: hidden;
}

/* AppWidgetSummary Cards (from FE/cms/src/sections/overview/app/app-widget-summary.jsx) */
.widget-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
  width: 100%;
}

.widget-grid > * {
  min-width: 0;
}

@media (max-width: 768px) {
  .widget-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.cms-card {
  background-color: var(--bg-paper);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 24px;
  position: relative;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  min-width: 0;
}

.widget-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px;
  width: 100%;
}

.widget-card svg {
  flex-shrink: 0;
}

.widget-card__title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.widget-card__value {
  font-family: var(--font-secondary);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 8px;
}

.widget-card__trend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 700;
}

/* CMS Table (FE/cms/src/theme/core/components/table.jsx) */
.cms-table-card {
  background-color: var(--bg-paper);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  width: 100%;
  min-width: 0;
}

.cms-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 12px;
}

.cms-table-title {
  font-size: 1rem;
  font-weight: 700;
}

.cms-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.cms-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.8125rem;
}

.cms-table th {
  background-color: var(--bg-neutral);
  color: var(--text-secondary);
  font-weight: 600;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.cms-table td {
  padding: 13px 16px;
  border-bottom: 1px dashed var(--border-subtle);
  color: var(--text-primary);
  vertical-align: middle;
}

.cms-table tr:last-child td {
  border-bottom: none;
}

.cms-table tr:hover td {
  background-color: var(--action-hover);
}

.sku-code {
  font-family: monospace;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 3px 7px;
  border-radius: 5px;
  background-color: var(--bg-neutral);
  color: var(--text-primary);
}

/* ==========================================================================
   9. CORE WMS MODULES BENTO GRID (CMS Cards + Soft Icons)
   ========================================================================== */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

@media (max-width: 992px) {
  .modules-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .modules-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.module-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  border: 1px solid var(--border-subtle);
}

.module-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-z16);
  border-color: rgba(var(--primary-rgb), 0.36);
}

.module-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.module-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.module-card__desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 20px;
}

.module-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px dashed var(--border-subtle);
}

/* ==========================================================================
   10. WORKFLOW / PROCESS STEPS
   ========================================================================== */
.workflow-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  position: relative;
}

@media (max-width: 960px) {
  .workflow-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .workflow-steps {
    grid-template-columns: minmax(0, 1fr);
  }
}

.step-card {
  background-color: var(--bg-paper);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 28px 24px;
  border: 1px solid var(--border-subtle);
  position: relative;
}

.step-number {
  font-family: var(--font-secondary);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 16px;
  opacity: 0.85;
}

.step-title {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   11. ARCHITECTURE & 1M CCU BENCHMARK SECTION
   ========================================================================== */
.arch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: center;
}

@media (max-width: 960px) {
  .arch-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

.arch-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.arch-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background-color: var(--bg-paper);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-subtle);
}

.arch-item__icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.arch-item__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.arch-item__desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Dark Widget Stack (inspired by CMS AppWidget in overview-app-view.jsx) */
.telemetry-panel {
  background-color: var(--grey-900);
  color: #FFFFFF;
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-z24);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--grey-800);
}

.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

@media (max-width: 480px) {
  .telemetry-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.app-widget-dark {
  padding: 20px;
  border-radius: 16px;
  background-color: var(--primary-darker);
  position: relative;
  overflow: hidden;
}

.app-widget-dark--info {
  background-color: var(--info-darker);
}

.app-widget-dark--secondary {
  background-color: var(--secondary-darker);
}

.app-widget-dark--warning {
  background-color: var(--grey-800);
  border: 1px solid rgba(255, 171, 0, 0.28);
}

.app-widget-dark__value {
  font-family: var(--font-secondary);
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.app-widget-dark__label {
  font-size: 0.8125rem;
  opacity: 0.76;
  font-weight: 600;
}

.telemetry-note {
  margin-top: 14px;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--grey-400);
}

/* ==========================================================================
   11B. INTEGRATIONS, SECURITY & FAQ SECTIONS
   ========================================================================== */
.integrations-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 992px) {
  .integrations-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .integrations-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.integration-card {
  background-color: var(--bg-paper);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.integration-card__badge {
  display: inline-flex;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
}

.integration-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.integration-card__desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background-color: var(--bg-paper);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-z1);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  user-select: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-main);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item__body {
  padding: 0 22px 18px;
  font-size: 0.9125rem;
  color: var(--text-secondary);
  line-height: 1.65;
  border-top: 1px dashed var(--border-subtle);
  padding-top: 14px;
}

/* ==========================================================================
   12. HOME ADVERTISEMENT CTA BANNER & DEMO BOOKING FORM
   ========================================================================== */
.cms-ad-banner {
  background-color: var(--grey-900);
  border: 1px solid var(--grey-800);
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 40px;
  color: #FFFFFF;
}

@media (max-width: 920px) {
  .cms-ad-banner {
    grid-template-columns: minmax(0, 1fr);
    padding: 40px 24px;
  }
}

.demo-contact-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed rgba(145, 158, 171, 0.24);
  font-size: 0.875rem;
  color: var(--grey-300);
}

.demo-contact-bar a {
  color: var(--primary-light);
  font-weight: 700;
}

.demo-form-card {
  position: relative;
  z-index: 2;
  background: rgba(28, 37, 46, 0.92);
  border: 1px solid rgba(145, 158, 171, 0.24);
  border-radius: var(--radius-card);
  padding: 28px;
  box-shadow: var(--shadow-z16);
  text-align: left;
}

.demo-form-card__title {
  font-family: var(--font-secondary);
  font-size: 1.25rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 6px;
}

.demo-form-card__sub {
  font-size: 0.8125rem;
  color: var(--grey-400);
  margin-bottom: 18px;
}

.demo-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.demo-field--full {
  grid-column: 1 / -1;
}

@media (max-width: 560px) {
  .demo-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.demo-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--grey-300);
  margin-bottom: 5px;
}

.demo-input,
.demo-select {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid rgba(145, 158, 171, 0.32);
  background-color: rgba(20, 26, 33, 0.9);
  color: #FFFFFF;
  font-family: var(--font-primary);
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.demo-input::placeholder {
  color: var(--grey-500);
}

.demo-input:focus,
.demo-select:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(0, 167, 111, 0.24);
}

.demo-status {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(34, 197, 94, 0.16);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #D3FCD2;
  font-size: 0.8125rem;
  line-height: 1.5;
  display: none;
}

.cms-ad-banner__blur {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 280px;
  height: 280px;
  background-color: var(--primary-main);
  opacity: 0.28;
  filter: blur(120px);
  pointer-events: none;
}

.cms-ad-banner__illustration {
  width: 220px;
  height: 220px;
  flex-shrink: 0;
  animation: floatBox 4s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

@keyframes floatBox {
  0%, 100% { transform: translateY(-10px); }
  50% { transform: translateY(10px); }
}

.cms-ad-banner__title {
  font-family: var(--font-secondary);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

@media (max-width: 640px) {
  .hero {
    padding-top: calc(var(--header-height) + 32px);
    padding-bottom: 48px;
  }
  .hero__pill {
    font-size: 0.72rem;
    padding: 8px 12px;
    border-radius: 14px;
  }
  .hero__title {
    font-size: clamp(2rem, 8.2vw, 2.75rem);
  }
  .hero__cta-group {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  .hero__cta-group .btn {
    width: 100%;
  }
  .cms-browser-url {
    display: none;
  }
  .cms-browser-bar {
    padding: 10px 12px;
    gap: 10px;
  }
  .cms-tabs {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: 4px;
  }
  .cms-tab-btn {
    font-size: 0.75rem;
    padding: 6px 10px;
    flex: 1 1 auto;
    justify-content: center;
    white-space: nowrap;
  }
  .cms-main-canvas {
    padding: 14px;
  }
  .telemetry-panel {
    padding: 24px 18px;
  }
  .cms-ad-banner .btn {
    width: 100%;
  }
}

