:root {
  --newdkpurp: #435185;
  --midred: #4c61a7;
  --extralight: #bbcbff;
  --darkgrad: #495377;
  --lightgrad: #9ca9d5;
  --vividdark: #111e51;
  --button-blue: #3898ec;
  --link-blue: #0082f3;
  --alert-red: #ea384c;
  --warm-brown: #a75f4c;
  --shadow-navy: rgba(17, 30, 81, 0.31);
  --gradient-hero: radial-gradient(circle at 100% 100%, rgba(255, 166, 0, 0.6), rgba(255, 166, 0, 0) 50%),
    linear-gradient(72deg, #050a1a, #111f52 75%);
  --gradient-accent: linear-gradient(135deg, var(--newdkpurp) 0%, var(--midred) 100%);
  --gradient-soft: linear-gradient(135deg, rgba(73, 83, 119, 0.16) 0%, rgba(156, 169, 213, 0.24) 100%);
  --gradient-hot: linear-gradient(135deg, #ea384c 0%, #ffa600 100%);
  --page-bg: #f5f7ff;
  --ink: #1c2448;
  --text: #4f5b68;
  --muted: #6c7793;
  --white: #ffffff;
}

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

body {
  font-family: "Inter", sans-serif;
  background: var(--page-bg);
  color: var(--text);
  line-height: 1.6;
}

section {
  scroll-margin-top: 110px;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--link-blue);
}

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  background: #050a1a;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
  max-width: 1250px;
  margin: 0 auto;
  padding: 24px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  color: #ffffff;
}

.logo-stack {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.ecmx-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  background: #ffffff;
  padding: 4px;
  object-fit: contain;
}

.ecmx-logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.logo-accent {
  color: #b1c3ff;
}

.nav-product {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  gap: 6px;
  flex-direction: column;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: #ffffff;
  border-radius: 999px;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 18px;
  align-items: center;
}

.nav-menu a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 500;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--link-blue);
  transition: width 0.3s ease;
}

.nav-menu a:hover::after {
  width: 100%;
}

.nav-menu a:hover {
  color: var(--link-blue);
}

.nav-menu .nav-cta {
  padding: 0;
  border-radius: 0;
  background: none;
  color: inherit;
  border: none;
}

main {
  padding-top: 0;
}

.hero {
  background: var(--gradient-hero);
  color: var(--extralight);
  padding: 150px 0 90px;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 36px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.1;
  margin-bottom: 18px;
  color: var(--white);
}

.hero-copy {
  color: rgba(187, 203, 255, 0.92);
  margin-bottom: 24px;
}

.hero-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.badge {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(187, 203, 255, 0.12);
  border: 1px solid rgba(187, 203, 255, 0.3);
}

.badge.outline {
  background: transparent;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 12px;
  color: rgba(187, 203, 255, 0.9);
  margin-bottom: 10px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.btn {
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  font-size: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: var(--gradient-hot);
  color: var(--white);
  box-shadow: 0 16px 30px rgba(234, 56, 76, 0.25);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(187, 203, 255, 0.4);
}

.btn:hover {
  transform: translateY(-2px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.hero-stats div {
  padding: 14px;
  background: rgba(17, 30, 81, 0.35);
  border-radius: 14px;
  border: 1px solid rgba(187, 203, 255, 0.2);
}

.stat-value {
  display: block;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--white);
}

.stat-label {
  font-size: 13px;
  color: rgba(187, 203, 255, 0.9);
}

.hero-panel {
  position: relative;
  display: grid;
  gap: 18px;
  padding: 24px;
  background: rgba(17, 30, 81, 0.5);
  border-radius: 24px;
  border: 1px solid rgba(187, 203, 255, 0.2);
}

.hero-ring {
  align-self: flex-start;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 10px solid rgba(187, 203, 255, 0.15);
  border-top-color: #ffa600;
  border-right-color: #ea384c;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--white);
}

.ring-value {
  font-size: 26px;
  font-weight: 700;
}

.ring-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
}

.panel-card {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 18px;
  border: 1px solid rgba(187, 203, 255, 0.2);
}

.panel-card ul {
  list-style: none;
  margin-top: 12px;
}

.panel-card li {
  margin-bottom: 10px;
  padding-left: 16px;
  position: relative;
}

.panel-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient-hot);
}

.panel-card.accent {
  background: rgba(67, 81, 133, 0.35);
}

.section {
  padding: 70px 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 32px;
}

.section-heading h2 {
  font-size: clamp(24px, 3vw, 36px);
  margin-bottom: 10px;
  color: var(--ink);
}

.features {
  background: var(--gradient-soft);
}

.workflow {
  background: linear-gradient(135deg, rgba(187, 203, 255, 0.35), rgba(255, 255, 255, 0.9));
}

.modules {
  background: #ffffff;
}

.outcomes {
  background: linear-gradient(135deg, rgba(187, 203, 255, 0.45), rgba(156, 169, 213, 0.18));
}

.dimensions {
  background: var(--gradient-soft);
}

.infra {
  background: linear-gradient(135deg, rgba(187, 203, 255, 0.35), rgba(255, 255, 255, 0.95));
}

.cta {
  background: var(--gradient-hero);
  color: var(--white);
}

.feature-grid,
.outcome-grid,
.security-grid,
.faq-grid,
.architecture-grid,
.engagement-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.feature-card,
.module-card,
.outcome-card,
.dimension-card {
  background: var(--white);
  padding: 20px;
  border-radius: 18px;
  border: 1px solid rgba(67, 81, 133, 0.15);
  box-shadow: 0 16px 36px rgba(17, 30, 81, 0.08);
}

.feature-card h3,
.module-card h3,
.outcome-card h3,
.dimension-card h3 {
  color: var(--ink);
  margin-bottom: 10px;
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.pipeline-simple {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin: 24px 0;
}

.pipeline-stage {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 18px;
  padding: 18px;
  border: 1px solid rgba(67, 81, 133, 0.18);
  box-shadow: 0 14px 28px rgba(17, 30, 81, 0.08);
}

.stage-index {
  display: inline-block;
  background: var(--gradient-hot);
  color: var(--white);
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  margin-bottom: 10px;
  font-size: 12px;
}

.pipeline-step {
  background: var(--white);
  border-radius: 14px;
  padding: 14px;
  text-align: center;
  font-weight: 600;
  color: var(--ink);
  border: 1px solid rgba(67, 81, 133, 0.2);
}

.step-index {
  display: inline-block;
  background: var(--gradient-hot);
  color: var(--white);
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  margin-bottom: 12px;
  font-size: 12px;
}

.cta-card {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  background: rgba(17, 30, 81, 0.55);
  border-radius: 24px;
  padding: 32px;
  border: 1px solid rgba(187, 203, 255, 0.2);
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

.cta-card h2 {
  margin: 0;
  color: var(--white);
}

.cta-card p {
  margin: 0;
  max-width: 560px;
}

.cta-card .btn {
  margin-top: 4px;
}

.site-footer {
  background: #050a1a;
  color: rgba(187, 203, 255, 0.9);
  padding: 40px 6vw;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (max-width: 980px) {
  .nav-menu {
    position: absolute;
    top: 70px;
    right: 16px;
    background: #050a1a;
    border-radius: 12px;
    padding: 16px;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 6px 18px rgba(17, 30, 81, 0.12);
    display: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 900px) {
  .hero {
    padding: 140px 0 70px;
  }

  .hero-panel {
    padding: 20px;
  }
}

@media (max-width: 600px) {
  .hero-stats {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}
