/* =========================================================
   ENTERPRISE APPLICATION MODERNIZATION (LIGHT THEME ONLY)
   Unique layout: split-panel overview, tag-grid capabilities,
   horizontal process timeline — distinct from prior pages.
   ========================================================= */

:root {
  --eam-primary:        #1a2e44;         /* FrugalNova deep navy */
  --eam-primary-light:  #2c4a6e;
  --eam-text-body:      #4a4a58;
  --eam-text-muted:     #666676;
  --eam-accent:         #B5246A;         /* FrugalNova magenta-rose */
  --eam-accent-hover:   #C94985;
  --eam-accent-subtle:  #FAE8F1;         /* FrugalNova accent pale */
  --eam-accent-mid:     #f0b8d4;
  --eam-bg:             #f8f7f4;         /* FrugalNova surface-2 */
  --eam-bg-alt:         #f3f0ea;
  --eam-surface:        #FFFFFF;
  --eam-border:         #e8e4dc;         /* FrugalNova border */
  --eam-border-strong:  #d5cfc4;

  --eam-shadow-xs:  0 1px 2px rgba(26, 46, 68, 0.04);
  --eam-shadow-sm:  0 1px 4px rgba(26, 46, 68, 0.06), 0 1px 2px rgba(26, 46, 68, 0.04);
  --eam-shadow-md:  0 4px 12px rgba(26, 46, 68, 0.09), 0 2px 4px rgba(26, 46, 68, 0.04);
  --eam-shadow-lg:  0 16px 32px rgba(26, 46, 68, 0.07), 0 4px 8px rgba(26, 46, 68, 0.04);

  --eam-radius-sm:  8px;
  --eam-radius:     14px;
  --eam-radius-lg:  22px;
  --eam-section-pad: 64px 20px;
}

/* ---- Layout Utilities ---- */
.eam-container {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.eam-section {
  padding: var(--eam-section-pad);
  position: relative;
  z-index: 1;
}

.eam-section-header {
  text-align: center;
  max-width: 580px;
  margin: 0 auto 44px auto;
}

.eam-section-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.875rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--eam-primary);
  letter-spacing: -0.025em;
  margin-bottom: 12px;
  line-height: 1.15;
}

.eam-section-desc {
  font-family: 'Inter', sans-serif;
  font-size: 1.0625rem;
  color: var(--eam-text-body);
  line-height: 1.65;
}

/* ---- HERO ---- */
.eam-hero {
  padding: 144px 20px 80px 20px;
  background: linear-gradient(160deg, #FFFFFF 0%, var(--eam-bg) 55%, var(--eam-accent-mid) 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 48vh;
  border-bottom: 1px solid var(--eam-border);
}

.eam-hero-inner {
  max-width: 680px;
}

.eam-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--eam-accent-subtle);
  color: var(--eam-accent);
  border: 1px solid var(--eam-accent-mid);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  margin-bottom: 22px;
  letter-spacing: 0.01em;
}

.eam-hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.375rem, 5vw, 3.75rem);
  font-weight: 800;
  color: var(--eam-primary);
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin-bottom: 22px;
}

.eam-hero-desc {
  font-size: 1.125rem;
  color: var(--eam-text-body);
  line-height: 1.65;
  margin-bottom: 32px;
  font-family: 'Inter', sans-serif;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.eam-hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.eam-btn-primary {
  display: inline-block;
  background: var(--eam-primary);
  color: #fff;
  padding: 13px 26px;
  border-radius: var(--eam-radius-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: var(--eam-shadow-sm);
}

.eam-btn-primary:hover {
  background: var(--eam-accent);
  transform: translateY(-2px);
  box-shadow: var(--eam-shadow-md);
}

/* ---- OVERVIEW: SPLIT LAYOUT ---- */
.eam-overview {
  background: var(--eam-surface);
  border-bottom: 1px solid var(--eam-border);
}

.eam-overview-split {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
  align-items: start;
}

/* Left accent panel */
.eam-overview-accent {
  background: var(--eam-primary);
  border-radius: var(--eam-radius-lg);
  padding: 36px 32px;
  color: #fff;
  position: sticky;
  top: 80px;
}

.eam-accent-icon {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--eam-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  color: #fff;
}

.eam-accent-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 14px;
  color: #fff;
  letter-spacing: -0.01em;
}

.eam-accent-body {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.65;
  margin-bottom: 24px;
}

.eam-accent-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.eam-accent-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 500;
}

.eam-accent-list li svg {
  flex-shrink: 0;
  color: #f0b8d4;
}

/* Right cards column */
.eam-overview-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.eam-ov-card {
  background: var(--eam-bg);
  border: 1px solid var(--eam-border);
  border-radius: var(--eam-radius);
  padding: 22px 24px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.eam-ov-card:hover {
  border-color: var(--eam-accent);
  box-shadow: var(--eam-shadow-md);
  transform: translateY(-3px);
  background: var(--eam-surface);
}

.eam-ov-card-icon {
  width: 40px;
  height: 40px;
  background: var(--eam-accent-subtle);
  color: var(--eam-accent);
  border-radius: var(--eam-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  transition: background 0.25s ease;
}

.eam-ov-card:hover .eam-ov-card-icon {
  background: var(--eam-accent-mid);
}

.eam-ov-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--eam-primary);
  margin-bottom: 8px;
  line-height: 1.3;
}

.eam-ov-card p {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: var(--eam-text-muted);
  line-height: 1.55;
}

/* ---- CAPABILITIES ---- */
.eam-capabilities {
  background: var(--eam-bg);
  border-bottom: 1px solid var(--eam-border);
}

/* Tag row */
.eam-cap-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
  justify-content: center;
}

.eam-cap-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--eam-surface);
  border: 1px solid var(--eam-border);
  border-radius: 100px;
  padding: 9px 18px;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--eam-primary);
  box-shadow: var(--eam-shadow-xs);
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  cursor: default;
}

.eam-cap-tag:hover {
  border-color: var(--eam-accent);
  background: var(--eam-accent-subtle);
  color: var(--eam-accent);
  box-shadow: var(--eam-shadow-sm);
}

.eam-cap-tag-icon {
  color: var(--eam-accent);
  display: flex;
  align-items: center;
}

/* Detail rows */
.eam-cap-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
}

.eam-cap-detail-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--eam-surface);
  border: 1px solid var(--eam-border);
  border-radius: var(--eam-radius);
  padding: 22px 24px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.eam-cap-detail-row:hover {
  border-color: var(--eam-border-strong);
  box-shadow: var(--eam-shadow-sm);
}

.eam-cap-detail-marker {
  flex-shrink: 0;
  width: 4px;
  height: 40px;
  background: linear-gradient(180deg, var(--eam-accent) 0%, var(--eam-accent-mid) 100%);
  border-radius: 4px;
  margin-top: 2px;
}

.eam-cap-detail-body h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--eam-primary);
  margin-bottom: 8px;
  line-height: 1.3;
}

.eam-cap-detail-body p {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: var(--eam-text-muted);
  line-height: 1.6;
}

/* ---- PROCESS: HORIZONTAL TIMELINE ---- */
.eam-process {
  background: var(--eam-surface);
  border-bottom: 1px solid var(--eam-border);
}

.eam-process-track {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 0;
  max-width: 1000px;
  margin: 0 auto;
}

.eam-process-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.eam-pnode-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--eam-primary);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--eam-shadow-md);
  flex-shrink: 0;
}

.eam-pnode-card {
  background: var(--eam-bg);
  border: 1px solid var(--eam-border);
  border-radius: var(--eam-radius);
  padding: 20px 18px;
  text-align: left;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.eam-pnode-card:hover {
  border-color: var(--eam-border-strong);
  box-shadow: var(--eam-shadow-sm);
}

.eam-pnode-icon {
  width: 36px;
  height: 36px;
  background: var(--eam-accent-subtle);
  color: var(--eam-accent);
  border-radius: var(--eam-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.eam-pnode-card h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--eam-primary);
  margin-bottom: 8px;
  line-height: 1.3;
}

.eam-pnode-card p {
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  color: var(--eam-text-muted);
  line-height: 1.6;
}

/* Horizontal connector line between process nodes */
.eam-process-connector {
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, var(--eam-border-strong), var(--eam-accent));
  border-radius: 2px;
  margin-top: 23px; /* align with center of number circles */
  flex-shrink: 0;
}

/* ---- CTA SECTION ---- */
.eam-cta {
  background: linear-gradient(155deg, #f8f7f4 0%, var(--eam-accent-subtle) 60%, var(--eam-accent-mid) 100%);
  padding: 80px 20px;
  text-align: center;
  border-top: 1px solid var(--eam-border);
}

.eam-cta-inner {
  max-width: 580px;
  margin: 0 auto;
  background: var(--eam-surface);
  padding: 48px 36px;
  border-radius: var(--eam-radius-lg);
  box-shadow: var(--eam-shadow-lg);
  border: 1px solid var(--eam-border);
}

.eam-cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--eam-accent-subtle);
  color: var(--eam-accent);
  border: 1px solid var(--eam-accent-mid);
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  margin-bottom: 18px;
}

.eam-cta-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--eam-primary);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.eam-cta-desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  color: var(--eam-text-body);
  line-height: 1.65;
  margin-bottom: 28px;
}

/* ---- SCROLL REVEAL ---- */
.sw-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.sw-reveal.sw-in {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .eam-overview-split {
    grid-template-columns: 1fr;
  }

  .eam-overview-accent {
    position: static;
  }

  .eam-process-track {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .eam-process-connector {
    display: none;
  }
}

@media (max-width: 768px) {
  .eam-hero {
    padding-top: 120px;
    padding-bottom: 60px;
  }

  .eam-hero-title {
    font-size: 2.25rem;
  }

  .eam-hero-desc {
    font-size: 1rem;
  }

  .eam-overview-cards {
    grid-template-columns: 1fr;
  }

  .eam-cap-details {
    grid-template-columns: 1fr;
  }

  .eam-process-track {
    grid-template-columns: 1fr;
  }

  .eam-cta-inner {
    padding: 32px 20px;
  }

  .eam-cap-grid {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .eam-section {
    padding: 48px 16px;
  }

  .eam-overview-accent {
    padding: 24px 20px;
  }

  .eam-ov-card {
    padding: 18px 16px;
  }

  .eam-cap-detail-row {
    flex-direction: row;
    gap: 12px;
  }
}
