/* ============================================================
   EMP360 LANDING PAGE – STYLES
   Brand: Inter font, #1154ED primary, #1154ED text
   ============================================================ */

:root {
  --emp-primary: #1154ED;
  --emp-primary-hover: #0E87ED;
  --emp-text-primary: #171717;
  --emp-text-secondary: #404040;
  --emp-text-white: #FFFFFF;
  --emp-bg-white: #FFFFFF;
  --emp-bg-light: #F0F8FF;
  --emp-bg-pale: #E6EAEB;
  --emp-accent-glow: #A3CDFF;
  --emp-font: 'Inter', system-ui, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-card: 0 4px 24px rgba(17, 84, 237, 0.08);
  --shadow-lg: 0 8px 48px rgba(17, 84, 237, 0.14);
  --transition: 0.2s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--emp-font);
  color: var(--emp-text-primary);
  background: var(--emp-bg-white);
  line-height: 1.4;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── TYPOGRAPHY ─────────────────────────────────── */
h1 {
  font-size: 48px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: nowrap;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.125rem;
  font-weight: 600;
}

h4 {
  font-size: 1rem;
  font-weight: 600;
}

h5 {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

p {
  color: var(--emp-text-secondary);
}

.text-primary {
  color: var(--emp-primary);
}

.text-center {
  text-align: center !important;
}

.section-header {
  margin-bottom: 48px;
}

.section-sub {
  max-width: 560px;
  margin: 12px auto 0;
  text-align: center;
  font-size: 1rem;
}

/* ── BUTTONS ────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: var(--emp-font);
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--emp-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--emp-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(17, 84, 237, 0.3);
}

.btn-outline {
  background: #F1F3F5;
  color: #404040;
  border-color: transparent;
}

.btn-outline:hover {
  background: #E5E7EA;
}

.btn-ghost {
  background: transparent;
  color: var(--emp-text-primary);
  border-color: var(--emp-bg-pale);
}

.btn-ghost:hover {
  background: var(--emp-bg-light);
}

.btn-white {
  background: #fff;
  color: var(--emp-primary);
}

.btn-white:hover {
  background: var(--emp-bg-light);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1rem;
}

/* ── BADGE ──────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--emp-bg-light);
  color: var(--emp-text-secondary);
  border: 1px solid rgba(17, 84, 237, 0.15);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 20px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emp-primary);
  flex-shrink: 0;
}

/* ── NAVBAR ─────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(230, 234, 235, 0.6);
  transition: box-shadow var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo svg {
  display: block;
}

.nav-links {
  display: flex;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--emp-text-secondary);
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
  transition: all var(--transition);
}

.nav-links a:hover {
  color: var(--emp-primary);
  background: var(--emp-bg-light);
}

/* Navbar CTA button – Inter Medium */
.btn-nav-demo {
  font-weight: 500 !important;
  flex-shrink: 0;
}

/* Logo image */
.logo-img {
  display: block;
  height: 36px;
  width: auto;
  object-fit: contain;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--emp-text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ── HERO ───────────────────────────────────────── */
.hero {
  padding: 48px 0 60px;
  background: linear-gradient(180deg, #fff 0%, var(--emp-bg-light) 100%);
  overflow: hidden;
}

.hero-content {
  text-align: center;
}

.hero h1 {
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1.0625rem;
  color: var(--emp-text-secondary);
  max-width: 900px;
  margin: 0 auto 32px;
  text-align: center;
  line-height: 1.4;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: nowrap;
  margin-bottom: 64px;
}

.hero-diagram {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
}

.hero-dashboard-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 24px;
  box-shadow: 0 -4px 60px rgba(17, 84, 237, 0.12), 0 0 0 1px rgba(17, 84, 237, 0.08);
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  -webkit-filter: none;
  filter: none;
}

.diagram-cards {
  display: contents;
}

.diagram-card {
  background: #fff;
  border: 1px solid var(--emp-bg-pale);
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--shadow-card);
  min-width: 180px;
}

.diagram-card.top-left {
  grid-column: 1;
  grid-row: 1;
}

.diagram-card.top-right {
  grid-column: 3;
  grid-row: 1;
}

.diagram-card.bottom-left {
  grid-column: 1;
  grid-row: 2;
}

.diagram-card.bottom-right {
  grid-column: 3;
  grid-row: 2;
}

.diagram-center {
  grid-column: 2;
  grid-row: 1/3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.diagram-hub {
  width: 120px;
  height: 120px;
  background: var(--emp-primary);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  gap: 4px;
  box-shadow: 0 8px 32px rgba(17, 84, 237, 0.4);
  position: relative;
}

.diagram-hub::before {
  content: '';
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  background: rgba(17, 84, 237, 0.1);
}

.hub-icon {
  font-size: 1.5rem;
}

.dcard-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--emp-text-secondary);
  margin-bottom: 4px;
  font-weight: 600;
}

.dcard-title {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.dcard-metric {
  font-size: 0.7rem;
  color: var(--emp-text-secondary);
  margin-top: 8px;
}

.dcard-progress {
  height: 4px;
  background: var(--emp-bg-pale);
  border-radius: 2px;
  margin-top: 4px;
}

.progress-bar {
  height: 100%;
  background: var(--emp-primary);
  border-radius: 2px;
}

.dcard-bars {
  display: flex;
  gap: 6px;
  align-items: flex-end;
  height: 56px;
}

.bar {
  width: 14px;
  background: var(--emp-primary);
  border-radius: 3px 3px 0 0;
  opacity: 0.8;
}

.workflow-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 0;
}

.wf-line {
  height: 8px;
  background: var(--emp-bg-pale);
  border-radius: 4px;
  width: 100%;
}

.wf-line.short {
  width: 60%;
}

.hr-item {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 6px 0;
  border-bottom: 1px solid var(--emp-bg-pale);
}

.hr-item:last-child {
  border-bottom: none;
}

.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
}

.av1 {
  background: linear-gradient(135deg, #A3CDFF, #1154ED);
}

.av2 {
  background: linear-gradient(135deg, #FFD6A3, #ED8011);
}

.hr-name {
  font-size: 0.75rem;
  font-weight: 600;
}

.role {
  font-weight: 400;
  color: var(--emp-text-secondary);
}

.hr-score {
  font-size: 0.7rem;
  margin-top: 2px;
}

.hr-score.green {
  color: #16A34A;
}

.hr-score.red {
  color: #DC2626;
}

.diagram-connectors {
  display: none;
}

/* ── SOLUTIONS ──────────────────────────────────── */
.solutions {
  padding: 80px 0;
  text-align: center;
  background: #F5F5F5;
}

.solutions .container {
  max-width: 1440px;
  padding: 0 100px;
  margin: 0 auto;
}

.solutions h2 {
  font-size: 36px;
  font-weight: 600;
  line-height: 40px;
  letter-spacing: -0.02em;
  color: #111827;
  margin-bottom: 16px;
}

.gradient-text,
.text-primary-gradient {
  background: linear-gradient(90deg, #1154ED 0%, #4379EE 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline;
}

.solutions .section-sub {
  font-size: 1.125rem !important;
  font-weight: 400 !important;
  color: #666 !important;
  max-width: 800px;
  line-height: 1.4 !important;
  letter-spacing: normal !important;
  margin: 0 auto 40px;
}

.tab-buttons {
  display: flex;
  gap: 12px;
  background: #FFFFFF;
  border-radius: 12px;
  padding: 12px;
  height: 76px;
  width: 100%;
  max-width: 1176px;
  margin: 0 auto 36px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  border: none;
}

.tab-btn {
  flex: 1;
  padding: 12px 32px;
  border: none;
  border-radius: 8px;
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #171717;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.tab-icon {
  font-size: 24px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.tab-btn.active {
  background: #1154ED;
  color: #fff;
  box-shadow: none;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.solutions-grid {
  display: flex;
  gap: 36px;
  text-align: left;
  margin: 0 auto;
  background: #FFFFFF;
  border-radius: 12px;
  padding: 60px;
  width: 100%;
  max-width: 1176px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.solution-col {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.solution-card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  transition: none;
  display: flex;
  flex-direction: column;
  position: relative;
}

.solution-card:hover {
  transform: none;
}

.sol-icon {
  margin-bottom: 24px;
  width: 72px;
  height: 72px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.sol-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.solution-card:hover .sol-icon {
  transform: scale(1.05) translateY(-2px);
  filter: drop-shadow(0 4px 8px rgba(17, 84, 237, 0.1));
}

.solution-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: #171717;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
}

.solution-card p {
  font-size: 16px;
  font-weight: 400;
  color: #404040;
  line-height: 1.4;
  letter-spacing: -0.02em;
  margin: 0;
}

.card-separator {
  height: 1px;
  width: 100%;
  margin: 36px 0;
  background: linear-gradient(to right, transparent 9%, rgba(23, 23, 23, 0.35) 52%, transparent 92%);
}

.solutions-cta {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

/* ── UTILITIES ──────────────────────────────────── */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── ECOSYSTEM BANNER ───────────────────────────── */
.ecosystem-banner {
  background: var(--emp-primary) url('images/background_section.png') no-repeat center center;
  background-size: cover;
  padding: 100px 0;
  text-align: center;
}

.ecosystem-banner h2 {
  color: #fff;
  margin-bottom: 16px;
  font-size: 48px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.ecosystem-banner p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 540px;
  margin: 0 auto 32px;
  font-size: 1rem;
}

/* ── MODULE SECTIONS ────────────────────────────── */
/* ── MODULE SECTIONS (Card-style update) ──────────────── */
.module-section {
  padding: 60px 0;
  background: #ffffff;
  position: relative;
  z-index: 10;
  margin-bottom: 24px;
  border-radius: 24px;
  overflow: hidden;
}

#module-kpi {
  background-color: #FFFFFF !important;
  padding: 80px 0;
}

#module-kpi .module-inner,
#module-hrm .module-inner,
#module-project .module-inner,
#module-bpmn .module-inner {
  padding: 0 120px;
  max-width: 1440px;
  gap: 64px;
}

#module-kpi .module-tag,
#module-hrm .module-tag,
#module-project .module-tag,
#module-bpmn .module-tag {
  padding: 8px 12px;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  background: #FFFFFF;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: -0.12px;
  color: #171717;
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tag-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1154ED;
  flex-shrink: 0;
}

#module-kpi .module-content h2,
#module-hrm .module-content h2,
#module-project .module-content h2,
#module-bpmn .module-content h2 {
  font-size: 36px;
  font-weight: 600;
  line-height: 44px;
  letter-spacing: -1.08px;
  color: #171717;
  margin-bottom: 40px;
}

#module-kpi .module-content p,
#module-hrm .module-content p,
#module-project .module-content p,
#module-bpmn .module-content p {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.4px;
  color: #4B5563;
  margin-bottom: 40px;
}

#module-kpi .feature-list,
#module-hrm .feature-list,
#module-project .feature-list,
#module-bpmn .feature-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
  /* Adjusted to match Figma's flow better */
}

#module-kpi .feature-list li,
#module-hrm .feature-list li,
#module-project .feature-list li,
#module-bpmn .feature-list li {
  display: flex;
  gap: 16px;
  margin-bottom: 0;
  align-items: flex-start;
}

#module-kpi .feature-list .check,
#module-hrm .feature-list .check,
#module-project .feature-list .check,
#module-bpmn .feature-list .check {
  width: 16px;
  height: 16px;
  font-size: 16px;
  color: #1154ED;
  margin-top: 2px;
}

#module-kpi .feature-list div,
#module-hrm .feature-list div,
#module-project .feature-list div,
#module-bpmn .feature-list div {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0;
  color: #4B5563;
}

#module-kpi .feature-list div strong,
#module-hrm .feature-list div strong,
#module-project .feature-list div strong,
#module-bpmn .feature-list div strong {
  color: #1154ED;
  font-weight: 500;
  display: inline;
  margin-bottom: 0;
  letter-spacing: 0;
}

#module-kpi .module-ctas,
#module-hrm .module-ctas,
#module-project .module-ctas,
#module-bpmn .module-ctas {
  display: flex;
  gap: 16px;
}

#module-hrm {
  background-color: #F8FBFF !important;
  padding: 80px 0;
}

/* Very Light Blue */
#module-project {
  background-color: #FFFFFF !important;
  padding: 80px 0;
}

/* White */
#module-bpmn {
  background-color: #F8FBFF !important;
  padding: 80px 0;
}

/* Very Light Blue */

.module-inner {
  display: flex;
  align-items: center;
  gap: 64px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 80px;
}

.module-inner.reverse {
  flex-direction: row-reverse;
}

.module-visual,
.module-content {
  flex: 1;
  min-width: 0;
}

.module-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 24px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.tag-icon {
  font-size: 18px;
}

.module-content h2 {
  font-size: 40px;
  line-height: 1.2;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.module-content p {
  font-size: 18px;
  color: #475569;
  margin-bottom: 40px;
  line-height: 1.4;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin-bottom: 48px;
}

.feature-list li {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
  align-items: flex-start;
}

.feature-list .check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: #2255D9;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: -2px;
}

.feature-list div {
  font-size: 16px;
  line-height: 1.4;
  color: #334155;
}

.feature-list div strong {
  display: block;
  margin-bottom: 4px;
  color: #0F172A;
  font-weight: 700;
}

.feature-list strong {
  display: block;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 4px;
}


.module-image {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(17, 84, 237, 0.12);
  /* Light blue drop shadow for accent */
  display: block;
}

/* KPI Mockup */
.mock-table {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mock-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: var(--emp-bg-light);
  border-radius: 8px;
  font-size: 0.8rem;
}

.mock-row.header-row {
  background: transparent;
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--emp-text-secondary);
}

.mock-badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.mock-badge.green {
  background: #DCFCE7;
  color: #16A34A;
}

.mock-badge.teal {
  background: #CCFBF1;
  color: #0D9488;
}

.mock-badge.orange {
  background: #FEF3C7;
  color: #D97706;
}

.mock-badge.purple {
  background: #EDE9FE;
  color: #7C3AED;
}

.mock-badge.blue-sm {
  background: #EFF6FF;
  color: #171717;
}

/* Org Chart Mockup */
.orgchart {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 16px;
}

.org-node {
  background: #fff;
  border: 1.5px solid var(--emp-bg-pale);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.org-node.root {
  background: var(--emp-primary);
  color: #fff;
  border-color: var(--emp-primary);
}

.org-children {
  display: flex;
  gap: 24px;
  position: relative;
}

.org-children::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  width: 1px;
  height: 8px;
  background: var(--emp-bg-pale);
}

.org-branch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.org-children.small .org-node.sm {
  font-size: 0.7rem;
  padding: 6px 10px;
}

/* Project Mockup */
.project-stats {
  display: flex;
  gap: 24px;
  margin-bottom: 20px;
  align-items: center;
}

.pstat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.donut-chart {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: conic-gradient(var(--emp-primary) calc(var(--pct, 0%) * 360deg / 100%), var(--emp-bg-pale) 0);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.donut-chart::after {
  content: '';
  position: absolute;
  inset: 14px;
  background: #fff;
  border-radius: 50%;
}

.donut-chart span {
  position: relative;
  z-index: 1;
  font-size: 1rem;
  font-weight: 700;
}

.donut-chart.red {
  background: conic-gradient(#DC2626 calc(var(--pct, 0%) * 360deg / 100%), var(--emp-bg-pale) 0);
}

.donut-chart.small {
  width: 56px;
  height: 56px;
}

.donut-chart.small::after {
  inset: 10px;
}

.pstat p {
  font-size: 0.75rem;
  color: var(--emp-text-secondary);
}

.project-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pbar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--emp-text-secondary);
}

.pbar {
  height: 8px;
  background: var(--emp-primary);
  border-radius: 4px;
  opacity: 0.7;
}

/* BPMN Mockup */
.bpmn-mockup {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bpmn-flow {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.bpmn-node {
  border: 2px solid var(--emp-bg-pale);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 500;
  background: #fff;
}

.bpmn-node.start {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #16A34A;
  border-color: #16A34A;
  padding: 0;
}

.bpmn-node.end {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--emp-text-primary);
  border-color: var(--emp-text-primary);
  padding: 0;
}

.bpmn-node.gateway {
  background: #FEF3C7;
  border-color: #F59E0B;
  font-size: 1rem;
  padding: 4px 10px;
}

.bpmn-node.sm {
  font-size: 0.65rem;
  padding: 4px 8px;
}

.bpmn-arrow {
  color: var(--emp-text-secondary);
  font-size: 1rem;
}

.module-content h2 {
  margin-bottom: 16px;
}

.module-content>p {
  margin-bottom: 24px;
  font-size: 1rem;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.feature-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--emp-text-secondary);
}

.feature-list li strong {
  color: var(--emp-text-primary);
}

.check {
  color: var(--emp-primary);
  font-size: 1rem;
  margin-top: 2px;
  flex-shrink: 0;
  font-weight: 700;
}

.module-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── AI SECTION ─────────────────────────────────── */
/* ── NEW AI SECTION ──────────────────────────────── */
.ai-section {
  padding: 120px 0;
  background: #FFFFFF;
}

.ai-header {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 80px;
}

.ai-header h2 {
  font-size: 36px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  color: #111827;
}

.ai-header p {
  font-size: 1.125rem;
  color: #666;
  line-height: 1.4;
}

.ai-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
  /* Ensure both columns match height */
  max-width: 1200px;
  margin: 0 auto;
}

.ai-accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 520px;
  /* Reduced to match mockup height and tighten spacing */
  position: relative;
}

.ai-illustration-block {
  width: 100%;
}

.ai-mockup {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
  padding: 40px;
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.accordion-item {
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  background: #F9FAFB;
}

.accordion-item.active {
  border-color: #1154ED;
  background: #FFFFFF;
  box-shadow: 0 4px 12px rgba(17, 84, 237, 0.08);
  flex-grow: 0;
  /* Prevent individual items from pushing beyond fixed container */
}

.accordion-header {
  padding: 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.accordion-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #111;
  margin: 0;
  transition: color 0.3s ease;
}

.accordion-item.active .accordion-header h3 {
  color: #1154ED;
}

.chevron {
  width: 32px;
  height: 32px;
  position: relative;
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chevron::before,
.chevron::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 10px;
  height: 2px;
  background: #666;
  border-radius: 2px;
  transition: background 0.3s ease;
}

.chevron::before {
  right: 50%;
  transform-origin: right center;
  transform: translateY(-50%) rotate(45deg);
}

.chevron::after {
  left: 50%;
  transform-origin: left center;
  transform: translateY(-50%) rotate(-45deg);
}

.accordion-item.active .chevron {
  transform: rotate(180deg);
}

.accordion-item.active .chevron::before,
.accordion-item.active .chevron::after {
  background: #1154ED;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 24px;
}

.accordion-item.active .accordion-content {
  max-height: 250px;
  /* Capped to ensure it stays within 620px total height */
  padding-bottom: 24px;
}

.accordion-content p {
  margin: 0;
  color: #4B5563;
  line-height: 1.4;
  font-size: 0.95rem;
}

/* ── AI ILLUSTRATION DYNAMICS ───────────────────── */
.illustration-container {
  display: none;
  width: 100%;
  height: 100%;
  position: relative;
  animation: fadeIn 0.4s ease;
}

.illustration-container.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 1. AI Thinking Styles (Refined) */
.chat-window-illu {
  background: #FFFFFF;
  border-radius: 20px;
  width: 100%;
  max-width: 440px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid #F1F5F9;
}

.chat-header-illu {
  padding: 12px 20px;
  background: #F8FAFC;
  border-bottom: 1px solid #F1F5F9;
}

.dots-group {
  display: flex;
  gap: 6px;
}

.dots-group span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #CBD5E1;
}

.chat-body-illu {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 300px;
  overflow: hidden;
  position: relative;
}

.chat-scroll-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.illustration-container.active .chat-scroll-inner {
  animation: chatScroll 8s ease-in-out forwards;
}

@keyframes chatScroll {

  0%,
  40% {
    transform: translateY(0);
  }

  45%,
  65% {
    transform: translateY(-80px);
  }

  70%,
  100% {
    transform: translateY(-160px);
  }
}

.chat-msg {
  max-width: 85%;
  opacity: 0;
  transform: translateY(10px);
}

.ai-msg {
  align-self: flex-start;
}

.user-msg {
  align-self: flex-end;
}

.ai-msg .msg-bubble {
  background: #F1F5F9;
  color: #1E293B;
  padding: 12px 16px;
  border-radius: 12px 12px 12px 4px;
  font-size: 0.9rem;
  line-height: 1.4;
}

.user-msg .msg-bubble {
  background: #1154ED;
  color: #FFFFFF;
  padding: 12px 16px;
  border-radius: 12px 12px 4px 12px;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Sequential Animation */
.illustration-container.active .msg-1 {
  animation: chatIn 0.5s ease forwards 0.3s;
}

.illustration-container.active .msg-2 {
  animation: chatIn 0.5s ease forwards 1.8s;
}

.illustration-container.active .msg-3 {
  animation: chatIn 0.5s ease forwards 3.3s;
}

.illustration-container.active .thinking-dashboard-card {
  animation: chatIn 0.6s ease forwards 4.8s;
}

/* Dashboard Card (Compact) */
.thinking-dashboard-card {
  background: white;
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 10px 30px rgba(17, 84, 237, 0.08);
  border: 1px solid #E5E7EB;
  margin-top: 5px;
  opacity: 0;
  transform: translateY(10px);
  width: 95%;
  align-self: center;
}

.chart-header {
  font-size: 0.65rem;
  font-weight: 800;
  color: #64748B;
  margin-bottom: 10px;
  text-align: center;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mini-chart {
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  height: 70px;
  gap: 8px;
  padding: 0 5px;
}

.chart-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.bar-grow {
  width: 24px;
  border-radius: 4px 4px 0 0;
  height: 0;
  animation: growBars 1.2s cubic-bezier(0.17, 0.67, 0.83, 0.67) forwards 5.5s;
}

@keyframes growBars {
  to {
    height: var(--h);
  }
}

.bar-grow.green {
  background: #10B981;
}

.bar-grow.blue {
  background: #1154ED;
}

.bar-grow.yellow {
  background: #FBBF24;
}

.bar-label {
  font-size: 0.6rem;
  font-weight: 700;
  color: #94A3B8;
  margin-top: 6px;
  white-space: nowrap;
}

@keyframes chatIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.node {
  position: absolute;
  background: #FFFFFF;
  border: 2px solid #1154ED;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(17, 84, 237, 0.1);
  font-size: 0.75rem;
  font-weight: 700;
  color: #1154ED;
  transform: translate(-50%, -50%);
  text-align: center;
}

.node span {
  padding: 4px;
}

.chat-input-illu {
  margin: 16px;
  padding: 12px 20px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 12px rgba(17, 84, 237, 0.05);
}

.input-placeholder {
  color: #1154ED;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sparkle-icon {
  font-size: 1.1rem;
  animation: sparklePulse 1.5s infinite alternate;
}

@keyframes sparklePulse {
  from {
    opacity: 0.5;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1.1);
  }
}

.search-icon-illu {
  width: 20px;
  height: 20px;
  border: 2px solid #1154ED;
  border-radius: 50%;
  position: relative;
}

.search-icon-illu::after {
  content: '';
  position: absolute;
  width: 2px;
  height: 8px;
  background: #1154ED;
  bottom: -4px;
  right: -4px;
  transform: rotate(-45deg);
}

/* 2. AI Warning Styles (Late Projects Simulation) */
.late-projects-container {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0.3;
  /* Dimmed for contrast */
  filter: blur(1.5px);
  /* Blurred for focus */
  transform: scale(0.95);
  transition: all 0.5s ease;
}

.illustration-container.active .late-projects-container {
  opacity: 0.3;
  filter: blur(1.5px);
  transform: scale(1);
}

.project-card-late {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  transform: translateY(20px);
}

/* Staggered entry for cards */
.illustration-container.active .p-card-1 {
  animation: cardSlideIn 0.5s ease forwards 0.2s;
}

.illustration-container.active .p-card-2 {
  animation: cardSlideIn 0.5s ease forwards 0.4s;
}

.illustration-container.active .p-card-3 {
  animation: cardSlideIn 0.5s ease forwards 0.6s;
}

@keyframes cardSlideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.p-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.p-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1E293B;
}

.p-status-late {
  font-size: 0.7rem;
  font-weight: 800;
  color: #EF4444;
  background: #FEE2E2;
  padding: 2px 8px;
  border-radius: 4px;
  animation: pulseLateText 1.5s infinite alternate;
}

@keyframes pulseLateText {
  from {
    opacity: 0.7;
  }

  to {
    opacity: 1;
    transform: scale(1.05);
  }
}

.p-progress-bar {
  width: 100%;
  height: 6px;
  background: #F1F5F9;
  border-radius: 3px;
  overflow: hidden;
}

.p-progress.red {
  height: 100%;
  background: #EF4444;
  border-radius: 3px;
  transform-origin: left;
  transform: scaleX(0);
  animation: growWidth 1.2s cubic-bezier(0.1, 0.5, 0.5, 1) forwards 0.8s;
}

@keyframes growWidth {
  to {
    transform: scaleX(1);
  }
}

.p-card-footer {
  font-size: 0.75rem;
  color: #94A3B8;
  font-weight: 500;
}

/* ── MAJOR ALERT CARD (Center-aligned) ───────────────── */
.major-alert-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  background: white;
  padding: 40px 30px;
  border-radius: 24px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.12);
  text-align: center;
  z-index: 50;
  overflow: visible;
  /* Crucial for overflowing rings */
  border: 1px solid rgba(226, 232, 240, 0.5);
}

.major-alert-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.major-warning-tri {
  width: 64px;
  height: 64px;
  background: #EF4444;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 900;
  font-size: 28px;
  padding-top: 10px;
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3);
}

.major-warning-text {
  color: #1154ED;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  white-space: normal;
  line-height: 1.4;
  max-width: 240px;
}

/* Overflowing Pulsing Rings */
.overflow-rings-container {
  position: absolute;
  top: 72px;
  /* Centered with the triangle */
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.ring-overflow {
  position: absolute;
  border: 2px solid rgba(239, 68, 68, 0.2);
  border-radius: 50%;
  animation: overflowPulse 3s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

.ring-1 {
  width: 80px;
  height: 80px;
  animation-delay: 0s;
}

.ring-2 {
  width: 80px;
  height: 80px;
  animation-delay: 1s;
}

.ring-3 {
  width: 80px;
  height: 80px;
  animation-delay: 2s;
}

@keyframes overflowPulse {
  0% {
    transform: scale(0.8);
    opacity: 0.8;
  }

  100% {
    transform: scale(5);
    opacity: 0;
  }

  /* Spills way out */
}

@keyframes floatCard {

  0%,
  100% {
    transform: translate(-50%, -50%);
  }

  50% {
    transform: translate(-50%, -55%);
  }
}

.major-alert-card {
  animation: floatCard 4s infinite ease-in-out;
}

.ring {
  position: absolute;
  width: 40px;
  height: 40px;
  border: 1px solid #EF4444;
  border-radius: 50%;
  opacity: 0;
  animation: ringRipple 2s infinite ease-out;
}

.ring:nth-child(2) {
  animation-delay: 0.5s;
}

.ring:nth-child(3) {
  animation-delay: 1s;
}

@keyframes ringRipple {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }

  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}





/* 3. AI Scanning Styles (Realistic) */
#illu-scanning {
  margin-bottom: 80px;
}

.bg-ui-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.6) 0%, rgba(17, 84, 237, 0.03) 100%);
  border: 1px solid rgba(17, 84, 237, 0.1);
  overflow: hidden;
  pointer-events: none;
  box-shadow: inset 0 0 50px rgba(17, 84, 237, 0.02);
}

.frame-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background: rgba(17, 84, 237, 0.04);
  border-bottom: 1px solid rgba(17, 84, 237, 0.06);
}

.frame-side {
  position: absolute;
  top: 40px;
  left: 0;
  width: 70px;
  height: 100%;
  background: rgba(17, 84, 237, 0.02);
  border-right: 1px solid rgba(17, 84, 237, 0.06);
}

.query-bubble {
  position: relative;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(15px);
  padding: 12px 24px;
  border-radius: 100px;
  border: 1px solid rgba(17, 84, 237, 0.2);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 20px 50px rgba(17, 84, 237, 0.15);
  opacity: 0;
  z-index: 50;
  pointer-events: none;
  margin: 0 auto;
}

.illustration-container.active .query-bubble {
  animation: queryAppear 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards 0.2s;
}

@keyframes queryAppear {
  0% {
    transform: translateY(20px);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.query-icon {
  font-size: 1.1rem;
}

.query-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1154ED;
  white-space: nowrap;
  overflow: hidden;
  width: 0;
  border-right: 2px solid #1154ED;
  animation: typing 2.5s steps(30, end) forwards 1s, blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from {
    width: 0;
  }

  to {
    width: 300px;
  }

  /* Set a fixed width to ensure typewriter works correctly */
}

@keyframes blink-caret {

  from,
  to {
    border-color: transparent;
  }

  50% {
    border-color: #1154ED;
  }
}

.scanning-files {
  display: flex;
  gap: 20px;
  margin: 150px auto 120px auto;
  justify-content: center;
  position: relative;
  z-index: 10;
}

.file-icon {
  width: 70px;
  height: 90px;
  background: #fff;
  border: 2px solid #E5E7EB;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 12px;
  font-size: 0.65rem;
  font-weight: 700;
  color: #1154ED;
  position: relative;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.file-icon.pdf {
  border-color: #EF4444;
  color: #EF4444;
}

.file-icon.doc {
  border-color: #1154ED;
  color: #1154ED;
}

.file-icon.xls {
  border-color: #10B981;
  color: #10B981;
}

.file-icon.db {
  border-color: #8B5CF6;
  color: #8B5CF6;
}

.file-icon.mail {
  border-color: #F59E0B;
  color: #F59E0B;
}

.file-icon span {
  padding: 0 4px;
  line-height: 1.2;
}

.file-icon::after {
  content: '';
  position: absolute;
  top: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  background: #F3F4F6;
  border-left: 2px solid #E5E7EB;
  border-bottom: 2px solid #E5E7EB;
  border-radius: 0 0 0 4px;
}

/* Sucking animation for scanning files */
.illustration-container.active .scanning-files .file-icon {
  animation: fileSuck 3s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

.illustration-container.active .file-icon.pdf {
  --tx: 100px;
  --ty: 140px;
  animation-delay: 0s;
}

.illustration-container.active .file-icon.doc {
  --tx: 30px;
  --ty: 160px;
  animation-delay: 0.6s;
}

.illustration-container.active .file-icon.xls {
  --tx: -40px;
  --ty: 180px;
  animation-delay: 1.2s;
}

.illustration-container.active .file-icon.db {
  --tx: -110px;
  --ty: 160px;
  animation-delay: 1.8s;
}

.illustration-container.active .file-icon.mail {
  --tx: -180px;
  --ty: 140px;
  animation-delay: 2.4s;
}

@keyframes fileSuck {
  0% {
    transform: scale(1) translate(0, 0);
    opacity: 0;
    filter: blur(4px);
  }

  10% {
    opacity: 1;
    filter: blur(0);
  }

  80% {
    transform: scale(0.4) translate(calc(var(--tx) * 0.9), calc(var(--ty) * 0.9));
    opacity: 0.8;
    filter: blur(1px);
  }

  100% {
    transform: scale(0) translate(var(--tx), var(--ty));
    opacity: 0;
    filter: blur(4px);
  }
}

.search-tooltip {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -30%);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(17, 84, 237, 0.15);
  color: #1E293B;
  padding: 18px;
  border-radius: 20px;
  width: 280px;
  box-shadow: 0 25px 60px rgba(17, 84, 237, 0.12);
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  z-index: 60;
  pointer-events: none;
}

.illustration-container.active .search-tooltip {
  animation: tooltipAppear 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards 3.5s, floatCard 4s infinite ease-in-out 4.3s;
}

@keyframes tooltipAppear {
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.tooltip-badge {
  background: #DCFCE7;
  color: #166534;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  align-self: flex-start;
  animation: pulseBadge 2s infinite alternate;
}

@keyframes pulseBadge {
  from {
    opacity: 0.8;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.tooltip-title {
  font-size: 0.7rem;
  font-weight: 800;
  color: #64748B;
  letter-spacing: 0.05em;
}

.tooltip-desc {
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.4;
  color: #1E293B;
}

.tooltip-desc strong {
  color: #1154ED;
  font-weight: 700;
}

.scan-line {
  position: absolute;
  top: 10%;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #1154ED, transparent);
  box-shadow: 0 0 10px #1154ED;
  z-index: 10;
  animation: scanMove 3s infinite ease-in-out;
}

@keyframes scanMove {

  0%,
  100% {
    top: 15%;
    opacity: 0;
  }

  20%,
  80% {
    opacity: 1;
  }

  50% {
    top: 60%;
  }
}

.ai-status {
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  padding: 8px 0;
  border-radius: 0;
  border: none;
  backdrop-filter: none;
  z-index: 10;
  color: #1154ED;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: none;
}

.global-status {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  min-width: 240px;
  justify-content: center;
  pointer-events: none;
}

.global-status.hidden {
  display: none !important;
}

.sparkle-icon {
  display: inline-block;
  font-size: 1.1rem;
  animation: sparklePulse 1.5s infinite alternate ease-in-out;
}

@keyframes sparklePulse {
  0% {
    opacity: 0.5;
    transform: scale(0.9);
  }

  100% {
    opacity: 1;
    transform: scale(1.1);
  }
}

.scan-target {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  z-index: 20;
}

/* 4. AI Executing Styles (Static BPMN) */
/* 4. AI Executing Styles (Classic BPMN Animated) */
/* 4. AI Executing Styles (Classic BPMN Animated) */
.bpmn-container {
  display: flex;
  justify-content: center;
  align-items: center;
  /* Resetting since child is now absolute */
  width: 100%;
}

.bpmn-card.classic {
  width: 100%;
  max-width: 850px;
  height: auto;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
  border: 1px solid #1E293B;
  position: relative;
  margin: 20px auto;
  font-family: 'Inter', sans-serif;
}

.bpmn-card.classic.vertical {
  position: relative;
  margin: 0 auto;
  transform: translateY(-25px);
  /* Kéo sơ đồ lên trên một chút */
  width: 100%;
  max-width: 380px;
  /* Ép chặt tỷ lệ xuống thấp hơn nữa */
  aspect-ratio: 650 / 590;
  container-type: inline-size;

  /* Remove borders and backgrounds for floating look */
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
}

/* Pool & Lanes SVG / Canvas */
.bpmn-card.classic.vertical .bpmn-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 650px;
  height: 590px;
  transform: scale(0.5846);
  /* Exactly 380 / 650 to fit the container */
  transform-origin: top left;
}

.bpmn-card:not(.vertical) .bpmn-canvas {
  position: relative;
  width: 100%;
  aspect-ratio: 850 / 450;
}

.bpmn-grid-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* SVG Lines */
.bpmn-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

/* Nodes */
.bpmn-nodes-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
}

.b-node {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  font-size: 0.7rem;
  text-align: center;
  color: #334155;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

.b-activity {
  width: 90px;
  height: 50px;
  border-radius: 4px;
}

.b-activity.yellow {
  background: #FEF0B3;
  border: 1px solid #B49B57;
}

.b-gateway {
  width: 40px;
  height: 40px;
  transform: translate(-50%, -50%) rotate(45deg);
  border-radius: 4px;
}

.b-gateway.green {
  background: #D4F2A9;
  border: 1px solid #82B34B;
}

.plus-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
  font-size: 1.5rem;
  font-weight: 600;
  color: #475569;
}

.b-event {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.b-event.start {
  background: #FDCACA;
  border: 1px solid #B95353;
}

.b-event.end {
  background: #FDCACA;
  border: 3px solid #7F3333;
}

.b-event .inner-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #B95353;
}

.node-label {
  position: absolute;
  font-size: 0.65rem;
  color: #475569;
  text-align: left;
  width: max-content;
}

.node-label.side {
  top: 50%;
  left: calc(100% + 20px);
  transform: translateY(-50%);
}

.node-label.abv-side {
  top: 0;
  left: calc(100% + 15px);
  transform: translateY(-50%);
}

.b-gateway .node-label {
  transform: translateY(-50%) rotate(-45deg) !important;
}

/* Animations */
.anim-node {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.5);
}

.b-gateway.anim-node {
  transform: translate(-50%, -50%) rotate(45deg) scale(0.5);
}

.illustration-container.active .anim-node {
  animation: popNodeBP 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.illustration-container.active .b-gateway.anim-node {
  animation: popGatewayBP 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes popNodeBP {
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes popGatewayBP {
  to {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(45deg) scale(1);
  }
}

.anim-line {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
}

.illustration-container.active .anim-line {
  animation: drawSvgLineBP 0.5s ease-out forwards;
}

@keyframes drawSvgLineBP {
  to {
    stroke-dashoffset: 0;
  }
}

.anim-text {
  opacity: 0;
}

.illustration-container.active .anim-text {
  animation: fadeInBP 0.3s ease forwards;
}

@keyframes fadeInBP {
  to {
    opacity: 1;
  }
}

/* Sequencing Delays */
.d-0 {
  animation-delay: 0.0s !important;
}

.d-1 {
  animation-delay: 0.4s !important;
}

.d-2 {
  animation-delay: 0.8s !important;
}

.d-3 {
  animation-delay: 1.2s !important;
}

.d-4 {
  animation-delay: 1.6s !important;
}

.d-5 {
  animation-delay: 2.0s !important;
}

.d-6 {
  animation-delay: 2.4s !important;
}

.d-7 {
  animation-delay: 2.8s !important;
}

.d-8 {
  animation-delay: 3.2s !important;
}

.d-9 {
  animation-delay: 3.6s !important;
}

.d-10 {
  animation-delay: 4.0s !important;
}

.d-11 {
  animation-delay: 4.4s !important;
}

.d-12 {
  animation-delay: 4.8s !important;
}

.ai-footer-cta {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

@media (max-width: 1024px) {
  .ai-grid {
    flex-direction: column;
    gap: 40px;
  }

  .ai-header {
    margin-bottom: 40px;
  }
}

/* ── AUTOMATION ─────────────────────────────────── */
.automation-section {
  padding: 80px 0;
  background: #fff;
  overflow: hidden;
}

.automation-section .section-header {
  text-align: center;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.automation-section h2 {
  font-size: 36px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: #111827;
}

.text-primary-gradient {
  background: linear-gradient(90deg, #1154ED 0%, #4379EE 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.section-sub {
  font-size: 1.125rem;
  color: #666;
  line-height: 1.4;
  margin: 0 auto;
}

.marquee-wrapper {
  overflow: hidden;
  padding: 12px 0;
  position: relative;
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: marquee 40s linear infinite;
}

.marquee-track.reverse {
  animation-direction: reverse;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.pill {
  height: 52px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  background: #F1F5F9;
  color: #475569;
  border: none;
  display: flex;
  align-items: center;
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.05);
}

.pill .bullet {
  width: 8px;
  height: 8px;
  background: #2337DB;
  border-radius: 50%;
  margin-right: 8px;
  flex-shrink: 0;
}

/* ── ARCHITECTURE ORBIT ─────────────────────────── */
.architecture-orbit {
  padding: 48px 0;
  background: var(--emp-primary) url('../Section\ HST.png') no-repeat center center;
  background-size: cover;
  overflow: hidden;
  position: relative;
}

.architecture-header {
  margin-bottom: 24px;
  /* Reduced from 80px */
}

.architecture-header .orbit-title {
  font-size: 40px;
  color: #1154ED;
  font-weight: 800;
  text-transform: uppercase;
  font-style: italic;
  margin-bottom: 12px;
}

.architecture-header .orbit-subtitle {
  font-size: 18px;
  color: #1154ED;
  font-weight: 600;
  text-transform: uppercase;
  font-style: italic;
  letter-spacing: 1px;
}

.orbit-wrapper {
  position: relative;
  width: 100%;
  height: 580px;
  /* Reduced from 640px to fit rings perfectly */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* AI Center Nucleus */
.orbit-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140px;
  height: 140px;
  background: #FFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.ai-core {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-core img {
  height: 40px;
  width: auto;
}

/* Concentric Rings */
.orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-style: solid;
  border-width: 2px;
  border-radius: 50%;
  /* Center the ring normally, spin anim handles rotation */
  transform: translate(-50%, -50%);
  animation: spin var(--duration) linear infinite;
  z-index: 1;
}

.ring-1 {
  width: 240px;
  height: 240px;
  --duration: 50s;
  border-color: rgba(255, 255, 255, 0.4);
}

.ring-2 {
  width: 400px;
  height: 400px;
  --duration: 70s;
  animation-direction: reverse;
  border-color: rgba(255, 255, 255, 0.25);
}

.ring-3 {
  width: 560px;
  height: 560px;
  --duration: 90s;
  border-color: rgba(255, 255, 255, 0.15);
}

/* Item Placement on Ring */
.orbit-item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  cursor: pointer;
  /* Rotate to target angle, then move outwards by radius (50% of ring width) */
  transform: rotate(var(--angle)) translateX(var(--radius));
}

.orbit-item-inner {
  text-decoration: none;
  display: block;
}

.ring-1 .orbit-item {
  --radius: 120px;
}

.ring-2 .orbit-item {
  --radius: 200px;
}

.ring-3 .orbit-item {
  --radius: 280px;
}

/* Inner wrapper to cancel out the initial angle, so it starts upright relative to the rotating ring */
.orbit-item-inner {
  position: absolute;
  transform: rotate(calc(-1 * var(--angle)));
}

/* The actual expanding pill that counter-rotates */
.orbit-content {
  position: absolute;
  /* Center the pill perfectly on its origin point */
  transform: translate(-50%, -50%);
  animation: counter-spin var(--duration) linear infinite;

  /* Icon Circle to Expanding Pill Styles */
  height: 48px;
  max-width: 48px;
  background: #FFF;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 12px;
  box-shadow: 0 10px 25px rgba(17, 84, 237, 0.1);
  box-sizing: border-box;
  overflow: hidden;
  transition: max-width 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.orbit-content svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--icon-color, #1154ED);
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.orbit-label {
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
  color: #1154ED;
  opacity: 0;
  margin-left: 8px;
  transition: opacity 0.3s ease;
}

.orbit-content:hover {
  max-width: 240px;
  /* Expand pill on hover */
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 15px 35px rgba(17, 84, 237, 0.2);
}

.orbit-content:hover .orbit-label {
  opacity: 1;
}

/* If the ring spins backwards, the pill must counter-spin forwards */
.ring-2 .orbit-content {
  animation-direction: reverse;
}

/* Animations */
@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes counter-spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(-360deg);
  }
}

/* ── SECURITY ───────────────────────────────────── */
.security-section {
  padding: 100px 0;
  background: #FFFFFF;
  color: #171717;
  overflow: hidden;
}

.security-header {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 80px;
}

.security-header h2 {
  font-size: 36px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  color: #111827;
}

.security-header .section-sub {
  font-size: 1.125rem;
  color: #666;
  line-height: 1.4;
  margin: 0 auto;
}

.security-grid-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  position: relative;
  z-index: 2;
}

.sec-feature-card {
  text-align: center;
  padding: 60px 40px;
  background: white;
  border-radius: 24px;
  border: 1px solid #F1F5F9;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.02);
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.sec-feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
  border-color: #E2E8F0;
}

.sec-feature-icon {
  width: 100px;
  height: 100px;
  background: transparent !important;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
}

.sec-feature-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sec-feature-card h3 {
  font-size: 20px;
  font-weight: 500;
  color: #171717;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.sec-feature-card p {
  font-size: 16px;
  color: #404040;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 768px) {
  .security-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ── CTA SECTION ────────────────────────────────── */
.cta-section {
  position: relative;
  min-height: 507px;
  /* Matching Figma height */
  background-color: #1154ED;
  background-image: url('images/backgroundsectionkientao.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 60px 0;
}

/* Removing the overlay pseudo-element since it's baked into the image */
.cta-section::before {
  display: none;
}

.cta-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  /* Ensure left alignment on desktop */
}

.cta-content {
  max-width: 680px;
  color: #FFFFFF;
  text-align: left !important;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* Ensures button and other children are left-aligned */
}

.cta-content h1 {
  font-size: 40px;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 24px;
  color: #FFFFFF;
  text-align: left;
  /* Explicitly align h1 to the left */
}

.cta-content p {
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 580px;
  text-align: left;
  /* Explicitly align paragraph to the left */
}

.btn-cta {
  background: #FFFFFF;
  color: #1E5EF3;
  padding: 16px 36px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-cta:hover {
  background: #F0F7FF;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.cta-image {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.cta-image img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  /* Adjusting to Figma look */
  transform: scale(1.1);
}

@media (max-width: 992px) {
  .cta-inner {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .cta-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .cta-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .cta-image {
    justify-content: center;
  }
}

/* ── FOOTER ─────────────────────────────────────── */
.footer {
  background: #FFFFFF;
  padding: 80px 0 32px;
  font-family: var(--emp-font);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 64px;
}

.footer-brand {
  max-width: 400px;
}

.footer-logo-text {
  font-size: 32px;
  font-weight: 700;
  color: #171717;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.company-name {
  font-size: 16px;
  font-weight: 500;
  color: #404040;
  margin-bottom: 8px;
}

.company-phone {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 32px;
}

.company-phone .phone-label {
  font-size: 14px;
  font-weight: 400;
  color: #6B7280;
}

.company-phone .phone-number {
  font-size: 15px;
  font-weight: 500;
  color: #374151;
}

.social-links-new {
  display: flex;
  gap: 12px;
}

.btn-social {
  width: 32px;
  height: 32px;
  background-color: #171717;
  color: #FFFFFF;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.btn-social svg {
  width: 16px;
  height: 16px;
}

.btn-social:hover {
  opacity: 0.8;
}

.footer-links {
  display: flex;
  gap: 120px;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-col h5 {
  font-size: 14px;
  font-weight: 600;
  color: #6B7280;
  margin-bottom: 28px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.footer-col a {
  color: #374151;
  font-size: 14px;
  text-decoration: none;
  margin-bottom: 20px;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #1154ED;
}

.footer-bottom {
  border-top: 1px solid #EBEBEB;
  padding-top: 32px;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  color: #404040;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: #171717;
}

.footer-bottom-inner span {
  color: #404040;
  font-size: 14px;
}

/* ── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 1024px) {
  .module-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .module-inner.reverse {
    direction: ltr;
  }

  .ai-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .security-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .nav-inner .btn-sm {
    display: none;
  }

  .hero {
    padding: 60px 0 0;
  }

  .hero-diagram {
    display: block;
    margin-top: 32px;
    width: 100%;
  }


  .tab-buttons {
    max-width: 100%;
    flex-direction: column;
    height: auto;
  }

  .cta-form {
    flex-direction: column;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }

  .footer-legal {
    flex-direction: column;
    align-items: center;
  }
}

/* ── Module Sections Responsive ───────────────── */
@media (max-width: 1024px) {
  .module-inner {
    flex-direction: column !important;
    gap: 48px;
    padding: 60px 40px;
  }

  .module-inner.reverse {
    flex-direction: column !important;
  }

  .module-content h2 {
    font-size: 32px;
  }

  .module-content p {
    font-size: 16px;
    line-height: 1.4;
  }

  .module-tag {
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .module-section {
    padding: 60px 0;
    margin-bottom: 20px;
    border-radius: 0;
    /* Full width on mobile */
  }

  .module-inner {
    padding: 0 16px;
  }
}

/* ==========================================================================
   NEW CTA SECTION (ECOSYSTEM AI)
   ========================================================================== */
.new-cta-section {
  height: 508px;
  display: flex;
  align-items: center;
  background-color: #1154ED;
  background-image: url('images/backgroundsectionkientao.png');
  background-size: cover;
  background-position: center;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}

.cta-container {
  width: 100%;
}

.cta-content-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.cta-text-content {
  flex: 1;
  max-width: 700px;
  z-index: 2;
}

.cta-heading {
  font-size: 48px;
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 24px;
  color: #FFFFFF !important;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.cta-subheading {
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.95) !important;
  font-weight: 400;
  text-wrap: balance;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 40px;
  font-size: 18px;
  font-weight: 700;
  border-radius: 12px;
  background: #FFFFFF;
  color: #1154ED;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.cta-btn:hover {
  background: #F8F9FA;
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  color: #1154ED;
}

.cta-btn .arrow {
  font-size: 22px;
  transition: transform 0.3s ease;
}

.cta-btn:hover .arrow {
  transform: translateX(5px);
}

.cta-image-content {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: relative;
  z-index: 1;
}

.cta-illustration {
  max-width: 140%;
  height: auto;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.2));
  animation: floatAI 6s ease-in-out infinite;
}

@keyframes floatAI {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }

  100% {
    transform: translateY(0px);
  }
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .cta-heading {
    font-size: 48px;
  }
}

@media (max-width: 992px) {
  .new-cta-section {
    padding: 80px 0;
  }

  .cta-content-wrapper {
    flex-direction: column;
    text-align: center;
    gap: 50px;
  }

  .cta-text-content {
    max-width: 100%;
  }

  .cta-image-content {
    order: -1;
    width: 100%;
    justify-content: flex-start;
    margin-left: -10%;
  }

  .cta-illustration {
    max-width: 80%;
    opacity: 0.6;
  }
}

@media (max-width: 576px) {
  .cta-heading {
    font-size: 32px;
    text-align: center;
  }

  .cta-subheading {
    font-size: 16px;
    text-align: center;
  }

  .cta-btn {
    width: fit-content;
    margin: 0 auto;
    justify-content: center;
    display: flex;
  }
}

/* ── DEMO MODAL ─────────────────────────────────────── */
.contact-section {
  padding: 100px 0;
  background: #F9FAFB;
  scroll-margin-top: 80px;
}

.contact-inner {
  max-width: 800px;
  margin: 0 auto;
  background: #FFFFFF;
  border-radius: 24px;
  padding: 60px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Modal content converted to section content */

/* Modal close button removed */

.modal-header {
  text-align: center;
  margin-bottom: 32px;
}

.modal-header h3 {
  color: #1154ED;
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.modal-header p {
  color: #6B7280;
  font-size: 15px;
  line-height: 1.5;
}

.demo-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.demo-form .form-group {
  display: flex;
  flex-direction: column;
}

.demo-form .form-group label {
  color: #6B7280;
  font-size: 12px;
  font-weight: 400;
  margin-bottom: 8px;
}

.demo-form .form-group label .required {
  color: #EF4444;
}

.demo-form input,
.demo-form select {
  background: #FFFFFF;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  padding: 12px 16px;
  font-family: var(--emp-font);
  font-size: 14px;
  color: #374151;
  outline: none;
  transition: all 0.2s;
  width: 100%;
}

.demo-form select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236B7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  padding-right: 40px;
}

.demo-form input::placeholder {
  color: #9CA3AF;
}

.demo-form input:focus,
.demo-form select:focus {
  border-color: #1154ED;
  box-shadow: 0 0 0 3px rgba(17, 84, 237, 0.1);
}

.demo-form select option {
  background: #FFFFFF;
  color: #171717;
}

.demo-form .form-row:last-of-type {
  margin-bottom: 0;
}

.form-submit {
  text-align: center;
  margin-top: 12px;
}

.demo-form .btn-block {
  display: inline-flex;
  width: fit-content;
  margin: 0 auto;
}

.form-terms-checkbox {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;
  margin-bottom: 24px;
  text-align: left;
  cursor: pointer;
  width: 100%;
}

.form-terms-checkbox input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: #1154ED;
  cursor: pointer;
}

.form-terms-checkbox span {
  color: #374151;
  font-size: 13px;
  line-height: 1.5;
}

.form-terms-checkbox a {
  color: #1154ED;
  text-decoration: none;
}

.form-terms-checkbox a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .demo-form .form-row {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 16px;
  }
  .modal-content {
    padding: 32px 20px;
  }
}

/* ═══════════════════════════════════════════════════
   COMPREHENSIVE MOBILE RESPONSIVE – ≤ 768px
   ═══════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* ── Global ── */
  .container {
    padding: 0 16px;
  }

  h1 {
    font-size: 32px;
    text-wrap: wrap;
    line-height: 1.2;
  }

  h2 {
    font-size: 26px !important;
    line-height: 1.25;
  }

  .section-sub {
    font-size: 1rem !important;
  }

  /* ── Navbar ── */
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 16px 24px;
    gap: 4px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    z-index: 200;
    border-top: 1px solid rgba(230,234,235,0.6);
  }

  .nav-links.mobile-open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    padding: 12px 0;
    font-size: 1rem;
  }

  /* Show demo button inside mobile nav area */
  .nav-inner .btn-nav-demo {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* Hamburger → X animation */
  .hamburger.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .hamburger.is-active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  .hamburger.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  .hamburger span {
    transition: transform 0.25s ease, opacity 0.2s ease;
  }

  /* Mobile nav CTA */
  .mobile-nav-cta {
    display: block;
    width: 100%;
    margin-top: 12px;
  }

  /* ── Hero ── */
  .hero {
    padding: 40px 0 32px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .hero-sub {
    font-size: 1rem;
    max-width: 100%;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
  }

  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-diagram {
    display: block;
    margin-top: 32px;
    width: 100%;
  }

  .badge {
    font-size: 0.75rem;
  }

  /* ── Solutions / Tabs ── */
  .solutions {
    padding: 60px 0;
  }

  .solutions .container {
    padding: 0 16px;
  }

  .tab-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    overflow-x: unset;
    max-width: 100%;
    height: auto;
  }

  .tab-btn {
    justify-content: center;
    padding: 12px 16px;
    font-size: 0.9rem;
  }

  .solutions-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 16px;
  }

  .solution-col {
    display: contents;
  }

  .solution-card {
    display: grid;
    grid-template-columns: 48px 1fr;
    column-gap: 16px;
    row-gap: 4px;
    align-items: start;
    height: auto;
    padding: 0;
    margin: 0;
  }

  .card-separator {
    display: none;
  }

  .sol-icon {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    width: 48px;
    height: 48px;
    margin-bottom: 0;
  }

  .solution-card h3 {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 0;
    line-height: 1.3;
  }

  .solution-card p {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    font-size: 13px;
    line-height: 1.45;
  }

  /* ── Modules ── */
  .module-section {
    padding: 60px 0;
  }

  .module-inner {
    flex-direction: column !important;
    gap: 40px;
    padding: 0 16px !important;
  }

  .module-inner.reverse {
    flex-direction: column !important;
  }

  .module-content {
    max-width: 100%;
  }

  .module-content h2 {
    font-size: 26px !important;
  }

  .module-visual {
    width: 100%;
  }

  .feature-list {
    gap: 12px;
  }

  /* ── AI Section ── */
  .ai-section {
    padding: 60px 0;
  }

  .ai-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .ai-accordion {
    height: auto !important;
    min-height: auto;
  }

  .ai-illustration-block {
    order: -1;
    width: 100%;
    max-width: 100%;
  }

  /* Fix for illustrations overflow */
  .chat-window-illu,
  .late-projects-container,
  .major-alert-card {
    max-width: 100% !important;
    box-sizing: border-box;
  }

  .scanning-files {
    gap: 10px !important;
    margin: 100px auto 80px auto !important;
    transform: scale(0.85);
    transform-origin: center;
    width: 100%;
    justify-content: center;
    display: flex;
  }

  .file-icon {
    width: 60px !important;
    height: 80px !important;
    flex-shrink: 0;
  }

  .bpmn-card.classic.vertical {
    max-width: 100% !important;
    transform: translateY(-10px) scale(0.9) !important;
    transform-origin: center top !important;
  }

  .accordion-item {
    width: 100%;
    box-sizing: border-box;
  }

  .accordion-header {
    padding: 16px;
    width: 100%;
    box-sizing: border-box;
  }

  .accordion-header h3 {
    font-size: 1rem;
    line-height: 1.3;
  }

  .accordion-item.active .accordion-content {
    padding-bottom: 20px;
    padding-left: 16px;
    padding-right: 16px;
  }

  /* Fix for typing animation overflow */
  @keyframes mobileQueryTyping {
    from { width: 0; }
    to { width: 180px; }
  }

  .query-text {
    animation: mobileQueryTyping 2.5s steps(30, end) forwards 1s, blink-caret 0.75s step-end infinite !important;
  }

  .query-bubble {
    max-width: 90%;
    padding: 8px 16px;
  }

  .ai-mockup {
    min-height: 380px;
    padding: 20px 16px;
    overflow: hidden; /* Prevent any internal overflow from showing */
  }

  .accordion-item.active .accordion-content {
    padding-bottom: 16px;
    padding-left: 16px;
    padding-right: 16px;
  }

  /* ── Automation / Marquee ── */
  .automation-section {
    padding: 60px 0;
  }

  .marquee-pill {
    font-size: 0.8125rem;
    padding: 8px 16px;
  }

  /* ── Security ── */
  .security-section {
    padding: 60px 0;
  }

  .security-header {
    margin-bottom: 48px;
  }

  .security-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .sec-feature-card {
    padding: 20px;
  }

  /* ── KPI / Ecosystem ── */
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  /* ── New CTA Section ── */
  .new-cta-section {
    height: auto;
    min-height: 400px;
    padding: 60px 0;
  }

  .new-cta-section .container {
    padding: 0 16px;
  }

  .new-cta-section .cta-heading {
    font-size: 32px !important;
    text-wrap: wrap;
    white-space: normal;
    text-align: center;
  }

  .new-cta-section .cta-subheading {
    font-size: 1rem;
    text-align: center;
  }

  .cta-btn {
    width: fit-content;
    margin: 0 auto;
    justify-content: center;
    display: flex;
  }

  /* ── Footer ── */
  .footer {
    padding: 48px 0 24px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 48px;
    margin-bottom: 40px;
    text-align: center;
  }

  .footer-brand {
    order: -1;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-top: none;
    padding-top: 0;
    margin-bottom: 20px;
  }

  .footer-logo {
    justify-content: center;
    margin-bottom: 16px;
  }

  .company-name {
    font-size: 15px;
    margin-bottom: 12px;
    color: #171717;
    font-weight: 500;
  }

  .footer-links {
    order: 1;
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
  }

  .footer-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-col h5 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
    color: #64748B;
  }

  .footer-col a {
    display: block;
    font-size: 14px;
    color: #1E293B;
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.3s ease;
  }

  .social-links-new {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
  }

  .company-phone {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 20px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 20px;
    padding: 32px 0;
  }

  .footer-legal {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  .footer-legal a {
    font-size: 13px;
    color: #64748B;
  }

  .company-phone {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    margin-bottom: 20px;
  }

  .social-links-new {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
    width: 100%;
  }

  .orbit-wrapper {
    transform: scale(0.8);
    margin: -18px 0 !important;
  }
}

/* ═══════════════════════════════════════════════════
   SMALL MOBILE – ≤ 480px
   ═══════════════════════════════════════════════════ */
@media (max-width: 480px) {

  .container {
    padding: 0 16px;
  }

  h1 {
    font-size: 26px;
  }

  h2 {
    font-size: 22px !important;
  }

  .hero h1 {
    font-size: 26px;
  }

  .badge {
    font-size: 0.6875rem;
  }

  .kpi-grid {
    grid-template-columns: 1fr;
  }

  .orbit-wrapper {
    transform: scale(0.61);
    margin: -73px 0 !important;
  }

  .modal-content {
    padding: 16px;
    border-radius: 12px;
    margin: 0 12px;
  }

  .modal-header h3 {
    font-size: 20px;
  }

  .new-cta-section .cta-heading {
    font-size: 32px !important;
  }

  .tab-btn {
    font-size: 0.875rem;
  }

  .footer-inner {
    text-align: center;
    align-items: center;
  }

  .footer-brand {
    align-items: center;
    text-align: center;
  }

  .company-phone {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .social-links-new {
    justify-content: center;
  }

  .footer-links {
    align-items: center;
  }

  .footer-col {
    align-items: center;
    text-align: center;
  }

  .accordion-item {
    width: 100%;
    box-sizing: border-box;
  }

  .accordion-header {
    width: 100%;
    box-sizing: border-box;
  }

  .accordion-item.active .accordion-content {
    max-height: 500px;
  }

  .ai-accordion {
    height: auto !important;
    min-height: auto;
  }

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

  .footer-logo-text {
    font-size: 24px;
  }
}