/* ERP Insider design system — adapted for Dicentur */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue-primary: #1e3a5f;
  --blue-accent: #2563eb;
  --blue-hover: #1d4ed8;
  --blue-light: #eff6ff;
  --blue-badge: #dbeafe;
  --blue-dark-bg: #1e3a5f;
  --blue-dark-border: #2d5a8e;
  --blue-dark-input: #243f6b;
  --blue-pale: #93c5fd;
  --blue-muted: #bfdbfe;
  --surface: #f8fafc;
  --border: #e2e8f0;
  --text: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --white: #ffffff;
  --max-w: 64rem; /* 1024px = max-w-5xl */
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--white);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }

/* ===== Header ===== */
.ei-header {
  border-bottom: 1px solid var(--border);
  background: var(--white);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}

body { padding-top: 4rem; }

.ei-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.ei-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--blue-primary);
  letter-spacing: -0.01em;
}

.ei-logo span { color: var(--blue-accent); }

.ei-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-muted);
}

.ei-nav a:hover { color: var(--blue-primary); transition: color .15s; }

.ei-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  background: var(--blue-accent);
  color: var(--white) !important;
  font-size: .875rem;
  font-weight: 600;
  padding: .5rem 1rem;
  border-radius: .5rem;
  transition: background .15s;
}

.ei-nav-cta:hover { background: var(--blue-hover); }

/* Mobile nav toggle */
.ei-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.ei-mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: .3s;
}

/* ===== Hero ===== */
.ei-hero {
  background: linear-gradient(to bottom, var(--blue-light), var(--white));
  border-bottom: 1px solid var(--border);
  padding: 5rem 0 7rem;
}

.ei-hero .container { max-width: 48rem; }

.ei-badge {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--blue-accent);
  background: var(--blue-badge);
  padding: .25rem .75rem;
  border-radius: 9999px;
  margin-bottom: 1.5rem;
}

.ei-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--blue-primary);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.ei-hero h1 span { color: var(--blue-accent); }

.ei-hero-desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 42rem;
}

.ei-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.ei-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: var(--blue-accent);
  color: var(--white);
  font-weight: 600;
  padding: .875rem 1.5rem;
  border-radius: .75rem;
  font-size: 1rem;
  transition: background .15s;
  border: none;
  cursor: pointer;
}

.ei-btn-primary:hover { background: var(--blue-hover); }

.ei-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border: 1px solid var(--border);
  color: var(--blue-primary);
  font-weight: 600;
  padding: .875rem 1.5rem;
  border-radius: .75rem;
  font-size: 1rem;
  transition: background .15s;
  background: transparent;
}

.ei-btn-outline:hover { background: var(--surface); }

/* ===== Stats bar ===== */
.ei-stats {
  background: var(--blue-dark-bg);
  color: var(--white);
  padding: 2rem 0;
}

.ei-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
}

.ei-stats-grid > div {
  padding: 0 1.5rem;
}

.ei-stats-grid > div + div {
  border-left: 1px solid var(--blue-dark-border);
}

.ei-stat-value {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--blue-pale);
}

.ei-stat-label {
  font-size: .875rem;
  color: var(--blue-muted);
  margin-top: .25rem;
}

/* ===== Section generics ===== */
.ei-section { padding: 5rem 0; }

.ei-section-label {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--blue-accent);
  margin-bottom: .5rem;
}

.ei-section-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--blue-primary);
}

/* ===== Article cards ===== */
.ei-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.ei-article-card {
  display: block;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  background: var(--white);
  transition: border-color .15s, box-shadow .15s;
  text-decoration: none;
}

.ei-article-card:hover {
  border-color: var(--blue-accent);
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}

.ei-article-card time {
  font-size: .75rem;
  color: var(--text-light);
  font-weight: 500;
}

.ei-article-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--blue-primary);
  margin: .5rem 0 .75rem;
  line-height: 1.35;
  transition: color .15s;
}

.ei-article-card:hover h3 { color: var(--blue-accent); }

.ei-article-card p {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ei-article-card .ei-read-more {
  display: block;
  margin-top: 1rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--blue-accent);
}

.ei-article-card:hover .ei-read-more { text-decoration: underline; }

/* ===== Lead magnet ===== */
.ei-lead-magnet {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 5rem 0;
}

.ei-lead-magnet .container {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.ei-lm-content { flex: 1; }

.ei-lm-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.ei-lm-checklist li {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  color: var(--text);
  margin-bottom: .5rem;
}

.ei-lm-check {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--blue-badge);
  color: var(--blue-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.ei-lm-form {
  width: 24rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}

.ei-lm-form h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--blue-primary);
  margin-bottom: .25rem;
}

.ei-lm-form > p {
  font-size: .875rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.ei-lm-form label {
  display: block;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: .25rem;
}

.ei-lm-form input[type="email"] {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: .5rem;
  padding: .625rem 1rem;
  font-size: .875rem;
  font-family: inherit;
  margin-bottom: .75rem;
}

.ei-lm-form input:focus {
  outline: none;
  border-color: var(--blue-accent);
  box-shadow: 0 0 0 2px rgba(37,99,235,.15);
}

.ei-lm-form button {
  width: 100%;
  background: var(--blue-accent);
  color: var(--white);
  font-weight: 600;
  padding: .75rem 1.5rem;
  border-radius: .5rem;
  border: none;
  font-size: .875rem;
  cursor: pointer;
  transition: background .15s;
}

.ei-lm-form button:hover { background: var(--blue-hover); }

.ei-lm-form .ei-form-note {
  font-size: .75rem;
  color: var(--text-light);
  text-align: center;
  margin-top: .75rem;
}

/* ===== Why section ===== */
.ei-why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.ei-why-card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface);
}

.ei-why-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--blue-primary);
  margin-bottom: .75rem;
}

.ei-why-card p {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== Footer ===== */
.ei-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  margin-top: 5rem;
  padding: 4rem 0;
}

.ei-footer-newsletter {
  background: var(--blue-dark-bg);
  border-radius: 1rem;
  padding: 2rem 2.5rem;
  margin-bottom: 3.5rem;
  color: var(--white);
}

.ei-footer-newsletter .ei-section-label { color: var(--blue-pale); }

.ei-footer-newsletter h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: .5rem;
}

.ei-footer-newsletter p {
  font-size: .875rem;
  color: var(--blue-muted);
  margin-bottom: 1.5rem;
}

.ei-footer-form {
  display: flex;
  gap: .5rem;
  max-width: 28rem;
}

.ei-footer-form input {
  flex: 1;
  border: 1px solid var(--blue-dark-border);
  background: var(--blue-dark-input);
  color: var(--white);
  border-radius: .5rem;
  padding: .625rem 1rem;
  font-size: .875rem;
  font-family: inherit;
}

.ei-footer-form input::placeholder { color: var(--blue-pale); }

.ei-footer-form input:focus {
  outline: none;
  border-color: #60a5fa;
}

.ei-footer-form button {
  background: var(--blue-accent);
  color: var(--white);
  font-weight: 600;
  padding: .625rem 1.25rem;
  border-radius: .5rem;
  border: none;
  font-size: .875rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
}

.ei-footer-form button:hover { background: var(--blue-hover); }

.ei-footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.ei-footer-heading {
  font-weight: 700;
  color: var(--blue-primary);
  margin-bottom: 1rem;
  font-size: .875rem;
}

.ei-footer-links {
  list-style: none;
  padding: 0;
}

.ei-footer-links li { margin-bottom: .5rem; }

.ei-footer-links a {
  font-size: .875rem;
  color: var(--text-muted);
  transition: color .15s;
}

.ei-footer-links a:hover { color: var(--blue-accent); }

.ei-footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ei-footer-bottom p {
  font-size: .875rem;
  color: var(--text-muted);
}

.ei-footer-socials {
  display: flex;
  gap: 1rem;
}

.ei-footer-socials a {
  color: var(--text-light);
  transition: color .15s;
}

.ei-footer-socials a:hover { color: var(--blue-accent); }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .ei-nav { display: none; }
  .ei-nav-cta { display: none; }
  .ei-mobile-toggle { display: block; }

  .ei-hero { padding: 3rem 0 4rem; }
  .ei-hero h1 { font-size: 1.75rem; }

  .ei-stats-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .ei-stats-grid > div + div { border-left: none; border-top: 1px solid var(--blue-dark-border); padding-top: 1.5rem; }

  .ei-articles-grid { grid-template-columns: 1fr; }

  .ei-lead-magnet .container { flex-direction: column; }
  .ei-lm-form { width: 100%; }

  .ei-why-grid { grid-template-columns: 1fr; }

  .ei-footer-grid { grid-template-columns: repeat(2, 1fr); }
  .ei-footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}
