/* ===== CRM Data Intel — Design System ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Legacy aliases for sub-pages */
  --bg: #f9fafb;
  --border: #e5e7eb;
  --slate: #6b7280;
  --slate-light: #9ca3af;
  --gray: #6b7280;
  --accent: #3b82f6;

  --navy: #0a0f1e;
  --navy-light: #111827;
  --navy-mid: #1e293b;
  --blue: #3b82f6;
  --blue-bright: #60a5fa;
  --blue-dark: #2563eb;
  --green: #10b981;
  --green-light: #d1fae5;
  --red: #ef4444;
  --red-light: #fef2f2;
  --orange: #f59e0b;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.06);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ===== NAVIGATION ===== */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-200);
  transition: all 0.3s;
}
nav .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav-brand {
  font-size: 22px; font-weight: 900; color: var(--navy);
  letter-spacing: -0.5px;
}
.nav-brand span { color: var(--blue); }
.nav-links {
  display: flex; align-items: center; gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--gray-600);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--navy); }
.nav-cta {
  background: var(--blue) !important; color: var(--white) !important;
  padding: 10px 22px !important; border-radius: var(--radius-sm) !important;
  font-weight: 600 !important; font-size: 13px !important;
  transition: all 0.2s !important;
}
.nav-cta:hover { background: var(--blue-dark) !important; transform: translateY(-1px); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 600; font-family: inherit;
  cursor: pointer; transition: all 0.2s; border: none;
  text-decoration: none; gap: 8px;
}
.btn-primary {
  background: var(--blue); color: var(--white);
  box-shadow: 0 1px 3px rgba(59,130,246,0.3);
}
.btn-primary:hover {
  background: var(--blue-dark);
  box-shadow: 0 4px 12px rgba(59,130,246,0.35);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent; color: var(--navy);
  border: 2px solid var(--gray-300);
}
.btn-outline:hover { border-color: var(--navy); }
.btn-white {
  background: var(--white); color: var(--navy);
  box-shadow: var(--shadow-md);
}
.btn-white:hover { box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.btn-ghost { background: rgba(255,255,255,0.1); color: var(--white); border: 1px solid rgba(255,255,255,0.2); }
.btn-ghost:hover { background: rgba(255,255,255,0.18); }

/* ===== HERO ===== */
.hero {
  padding: 160px 0 100px;
  background: linear-gradient(160deg, var(--navy) 0%, #0d1b3e 40%, #162544 100%);
  color: var(--white);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 20%, rgba(59,130,246,0.12), transparent);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero h1 {
  font-size: 56px; font-weight: 900; line-height: 1.08;
  letter-spacing: -2px; max-width: 720px; margin-bottom: 20px;
}
.hero .accent { color: var(--blue-bright); }
.hero .subtitle {
  font-size: 18px; color: rgba(255,255,255,0.6); line-height: 1.7;
  max-width: 560px; margin-bottom: 36px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-cta .btn-outline {
  color: rgba(255,255,255,0.8); border-color: rgba(255,255,255,0.25);
}
.hero-cta .btn-outline:hover { color: var(--white); border-color: var(--white); }

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 48px 0;
  position: relative; z-index: 3;
  margin-top: -40px; border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.stat { text-align: center; }
.stat-num {
  font-size: 42px; font-weight: 900; color: var(--navy);
  letter-spacing: -1px; line-height: 1;
}
.stat-label { font-size: 13px; color: var(--gray-500); margin-top: 6px; line-height: 1.4; }
.stat-source { font-size: 11px; color: var(--gray-400); margin-top: 4px; }

/* ===== SECTIONS ===== */
section { padding: 96px 0; }
.section-label {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--blue); margin-bottom: 12px;
}
.section-title {
  font-size: 36px; font-weight: 800; color: var(--navy);
  letter-spacing: -0.8px; line-height: 1.15; margin-bottom: 12px;
}
.section-subtitle {
  font-size: 16px; color: var(--gray-500); max-width: 560px; line-height: 1.7;
}
.text-center { text-align: center; }
.center { margin-left: auto; margin-right: auto; }

/* ===== SERVICES GRID ===== */
.services-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
  margin-top: 48px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.3s;
}
.service-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.service-card .icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), #818cf8);
  color: var(--white); display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800; margin-bottom: 16px;
}
.service-card h3 {
  font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 8px;
}
.service-card p { font-size: 14px; color: var(--gray-500); line-height: 1.7; }

/* ===== PROCESS STEPS ===== */
.process-grid {
  display: flex; gap: 0; margin-top: 48px;
  position: relative;
}
.process-grid::before {
  content: ''; position: absolute;
  top: 28px; left: 56px; right: 56px;
  height: 2px; background: var(--gray-200);
}
.process-step {
  flex: 1; text-align: center; position: relative; z-index: 2;
}
.step-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--navy); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800;
  margin: 0 auto 16px; position: relative; z-index: 2;
  box-shadow: 0 0 0 6px var(--white);
}
.process-step h4 {
  font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 4px;
}
.process-step p { font-size: 13px; color: var(--gray-500); padding: 0 8px; line-height: 1.5; }

/* ===== INDUSTRY CARDS ===== */
.industries { background: var(--gray-50); }
.industries-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px;
}
.industry-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 24px;
  transition: all 0.3s;
}
.industry-card:hover { border-color: var(--blue); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.ind-icon { font-size: 28px; margin-bottom: 12px; }
.industry-card h4 { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.industry-card p { font-size: 13px; color: var(--gray-500); line-height: 1.6; }

/* ===== RESULTS / BEFORE-AFTER ===== */
.results-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 48px;
}
.result-card {
  border-radius: var(--radius); padding: 28px; border: 1px solid var(--gray-200);
  background: var(--white);
}
.result-card.before { border-top: 4px solid var(--red); }
.result-card.after { border-top: 4px solid var(--green); }
.result-card h4 {
  font-size: 14px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; margin-bottom: 16px;
}
.result-card.before h4 { color: var(--red); }
.result-card.after h4 { color: var(--green); }
.metric-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--gray-100);
}
.metric-row:last-child { border-bottom: none; }
.metric-row .label { font-size: 13px; color: var(--gray-500); }
.metric-row .value { font-size: 13px; font-weight: 700; }
.metric-row .value.bad { color: var(--red); }
.metric-row .value.good { color: var(--green); }

.big-result {
  background: var(--gray-50); border-radius: var(--radius);
  padding: 24px; text-align: center;
}
.big-num { font-size: 48px; font-weight: 900; color: var(--navy); letter-spacing: -1px; }
.big-label { font-size: 13px; color: var(--gray-500); margin-top: 4px; }

/* ===== PRICING ===== */
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px;
}
.price-card {
  background: var(--white); border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 36px 28px; text-align: center;
  position: relative; transition: all 0.3s;
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.price-card.featured {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue), var(--shadow-lg);
}
.price-card.featured::before {
  content: 'MOST POPULAR'; position: absolute; top: -14px; left: 50%;
  transform: translateX(-50%); background: var(--blue); color: var(--white);
  padding: 4px 18px; border-radius: 20px; font-size: 11px;
  font-weight: 700; letter-spacing: 0.5px;
}
.tier-name {
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; color: var(--gray-400); margin-bottom: 8px;
}
.price {
  font-size: 44px; font-weight: 900; color: var(--navy); letter-spacing: -1px;
}
.price-note { font-size: 13px; color: var(--gray-400); margin-bottom: 24px; }
.price-card ul { list-style: none; text-align: left; margin-bottom: 28px; }
.price-card li {
  padding: 8px 0 8px 24px; font-size: 14px; color: var(--gray-600);
  position: relative; border-bottom: 1px solid var(--gray-100);
}
.price-card li::before {
  content: '✓'; position: absolute; left: 0;
  color: var(--green); font-weight: 700; font-size: 14px;
}
.price-card li:last-child { border-bottom: none; }
.price-card .btn { width: 100%; }

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(160deg, var(--navy) 0%, #162544 100%);
  color: var(--white); text-align: center;
}
.cta-section h2 {
  font-size: 36px; font-weight: 900; margin-bottom: 12px;
  letter-spacing: -0.5px;
}
.cta-section p {
  font-size: 16px; color: rgba(255,255,255,0.55);
  margin-bottom: 36px; max-width: 500px; margin-left: auto; margin-right: auto;
}

/* ===== FOOTER ===== */
footer {
  background: var(--navy); color: var(--gray-400);
  padding: 32px 0; font-size: 13px;
}
.footer-content {
  display: flex; justify-content: space-between; align-items: center;
}
.footer-content a { color: var(--gray-400); transition: color 0.2s; }
.footer-content a:hover { color: var(--white); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  nav .container { position: relative; }
  .nav-links {
    display: none; flex-direction: column; gap: 16px;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--white); padding: 24px; border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open { display: flex; }

  .hero { padding: 120px 0 64px; }
  .hero h1 { font-size: 34px; letter-spacing: -1px; }
  .hero .subtitle { font-size: 16px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .stat-num { font-size: 32px; }

  section { padding: 64px 0; }
  .section-title { font-size: 28px; }

  .services-grid { grid-template-columns: 1fr; }
  .process-grid { flex-direction: column; gap: 24px; }
  .process-grid::before { display: none; }
  .industries-grid { grid-template-columns: 1fr; }
  .results-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }

  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }

  .footer-content { flex-direction: column; gap: 8px; text-align: center; }

  div[style*="grid-template-columns: repeat(4"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
