/* CRMLynk — Styles (matching SeedlyCRM design system) */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* SeedlyCRM color system */
  --bg: #151f2b;
  --bg-deeper: #101920;
  --bg-deepest: #0c1419;
  --bg-card: #101920;
  --bg-card-hover: #182430;
  --border: rgba(255, 255, 255, 0.1);
  --border-light: #e3e8ed;
  --text: #ffffff;
  --text-secondary: #cad5e2;
  --text-muted: #90a1b9;
  --text-dim: #62748e;
  --text-faint: #45556c;
  --primary: #0a56c7;
  --highlight: #1a75e8;
  --highlight-dim: rgba(26, 117, 232, 0.12);
  --highlight-border: rgba(26, 117, 232, 0.2);
  --highlight-glow: rgba(26, 117, 232, 0.15);
  --emerald: #00d294;

  /* Typography */
  --font-heading: 'Outfit', Arial, sans-serif;
  --font-body: 'Geist', Arial, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Geist Mono', 'SF Mono', monospace;

  /* Layout */
  --max-w: 1152px;
  --max-w-narrow: 760px;
  --radius: 0.5rem;
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--highlight); text-decoration: none; transition: color 0.15s; }
a:hover { color: #4d9af5; }

h1, h2, h3, h4 { font-family: var(--font-heading); }

/* Layout */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: var(--max-w-narrow); }

/* ============================================= */
/* Nav */
/* ============================================= */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(21, 31, 43, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: 64px;
  display: flex; align-items: center;
}
nav .container {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
}
nav .logo {
  font-family: var(--font-heading);
  font-size: 1.25rem; font-weight: 700; color: var(--text);
  letter-spacing: -0.02em;
}
nav .logo span { color: var(--highlight); }
nav ul { list-style: none; display: flex; gap: 32px; align-items: center; }
nav ul a {
  color: var(--text-secondary); font-size: 0.875rem; font-weight: 500;
  transition: color 0.15s;
}
nav ul a:hover { color: var(--text); }
nav .nav-cta {
  background: var(--primary); color: #fff !important;
  padding: 8px 16px; border-radius: var(--radius);
  font-size: 0.875rem; font-weight: 500;
  transition: opacity 0.15s;
}
nav .nav-cta:hover { opacity: 0.9; }

/* ============================================= */
/* Hero */
/* ============================================= */
.hero {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 96px 0 104px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 40%, var(--highlight-dim), transparent);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 {
  font-size: 4.5rem; font-weight: 800;
  letter-spacing: -0.03em; line-height: 1.1;
  margin-bottom: 24px;
}
.hero h1 .accent { color: var(--highlight); }
.hero .subtitle {
  font-size: 1.25rem; color: var(--text-muted);
  max-width: 600px; margin: 0 auto 40px;
  line-height: 1.65;
}
.hero .cta {
  display: inline-block;
  background: var(--primary); color: #fff;
  padding: 12px 32px; border-radius: var(--radius);
  font-weight: 600; font-size: 1rem;
  transition: opacity 0.15s;
}
.hero .cta:hover { opacity: 0.9; color: #fff; }

/* ============================================= */
/* Section headings */
/* ============================================= */
.section-heading {
  text-align: center;
  margin-bottom: 48px;
}
.section-heading h2 {
  font-size: 2.25rem; font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.2;
  margin-bottom: 12px;
}
.section-heading p {
  color: var(--text-muted); font-size: 1.0625rem;
  max-width: 540px; margin: 0 auto;
}

/* ============================================= */
/* Features */
/* ============================================= */
.features {
  padding: 96px 0;
}
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  border-color: var(--highlight-border);
  box-shadow: 0 0 60px -20px var(--highlight-glow);
}
.feature-card .icon {
  width: 44px; height: 44px;
  background: var(--highlight-dim);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  color: var(--highlight);
  font-size: 1.25rem;
}
.feature-card h3 {
  font-size: 1.0625rem; font-weight: 700;
  margin-bottom: 8px; letter-spacing: -0.01em;
}
.feature-card p {
  font-size: 0.875rem; color: var(--text-muted); line-height: 1.65;
}

/* ============================================= */
/* Providers */
/* ============================================= */
.providers {
  padding: 96px 0;
}
.provider-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  max-width: 720px; margin: 0 auto;
}
.provider-card {
  display: flex; flex-direction: column; align-items: center;
  gap: 12px; padding: 28px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: border-color 0.2s;
}
.provider-card:hover { border-color: var(--highlight-border); }
.provider-card .p-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
}
.provider-card .p-icon svg { width: 32px; height: 32px; }
.provider-card .p-name {
  font-family: var(--font-heading);
  font-size: 0.875rem; font-weight: 600; color: var(--text-secondary);
}
.provider-card .p-services {
  font-size: 0.75rem; color: var(--text-dim);
  text-align: center; line-height: 1.5;
}

/* ============================================= */
/* How it works */
/* ============================================= */
.how-it-works {
  padding: 96px 0;
}
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  position: relative;
}
.step { text-align: center; padding: 0 12px; }
.step-number {
  width: 64px; height: 64px;
  border: 2px solid var(--primary);
  background: var(--bg);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700; font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 20px;
}
.step h3 {
  font-size: 1.125rem; font-weight: 700;
  margin-bottom: 8px;
}
.step p {
  font-size: 0.875rem; color: var(--text-muted); line-height: 1.65;
}

/* ============================================= */
/* CTA */
/* ============================================= */
.cta-section {
  padding: 96px 0;
}
.cta-box {
  background: var(--bg-deeper);
  border: 1px solid var(--highlight-border);
  border-radius: 24px;
  padding: 64px 48px;
  text-align: center;
  box-shadow: 0 0 80px -20px var(--highlight-glow);
}
.cta-box h2 {
  font-size: 2rem; font-weight: 700;
  margin-bottom: 12px; letter-spacing: -0.02em;
}
.cta-box p {
  color: var(--text-muted); font-size: 1.0625rem;
  margin-bottom: 32px;
  max-width: 480px; margin-left: auto; margin-right: auto;
}
.cta-box .cta {
  display: inline-block;
  background: var(--primary); color: #fff;
  padding: 12px 32px; border-radius: var(--radius);
  font-weight: 600; font-size: 1rem;
  transition: opacity 0.15s;
}
.cta-box .cta:hover { opacity: 0.9; color: #fff; }

/* ============================================= */
/* Footer */
/* ============================================= */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}
footer .container {
  display: flex; align-items: center; justify-content: space-between;
}
footer .copyright {
  font-size: 0.8125rem; color: var(--text-dim);
}
footer ul { list-style: none; display: flex; gap: 24px; }
footer ul a { color: var(--text-dim); font-size: 0.8125rem; }
footer ul a:hover { color: var(--text-secondary); }

/* ============================================= */
/* Legal pages */
/* ============================================= */
.legal {
  padding: 80px 0 96px;
}
.legal h1 {
  font-size: 2.5rem; font-weight: 800;
  letter-spacing: -0.02em; margin-bottom: 8px;
}
.legal .updated {
  color: var(--text-dim); font-size: 0.8125rem;
  margin-bottom: 48px;
}
.legal h2 {
  font-size: 1.375rem; font-weight: 700;
  margin-top: 48px; margin-bottom: 14px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.legal h3 {
  font-size: 1.0625rem; font-weight: 600;
  margin-top: 32px; margin-bottom: 10px;
  color: var(--text-secondary);
}
.legal p, .legal li {
  font-size: 0.9375rem; color: var(--text-muted);
  margin-bottom: 12px; line-height: 1.75;
}
.legal ul, .legal ol {
  padding-left: 24px; margin-bottom: 16px;
}
.legal li { margin-bottom: 6px; }
.legal strong { color: var(--text-secondary); }
.legal table {
  width: 100%; border-collapse: collapse;
  margin: 20px 0 28px;
}
.legal th, .legal td {
  text-align: left; padding: 12px 16px;
  border: 1px solid var(--border);
  font-size: 0.8125rem;
}
.legal th {
  background: var(--bg-card); color: var(--text-secondary);
  font-weight: 600;
}
.legal td { color: var(--text-muted); }
.legal blockquote {
  border-left: 3px solid var(--highlight);
  padding: 14px 24px;
  margin: 20px 0;
  background: var(--highlight-dim);
  border-radius: 0 12px 12px 0;
}
.legal blockquote p { color: var(--text-secondary); margin-bottom: 0; }
.legal .highlight {
  background: var(--highlight-dim);
  border: 1px solid var(--highlight-border);
  padding: 20px 24px;
  border-radius: 12px;
  margin: 20px 0;
}
.legal .highlight p { margin-bottom: 0; color: var(--text-secondary); }

/* ============================================= */
/* Responsive */
/* ============================================= */
@media (max-width: 768px) {
  .hero { padding: 48px 0 56px; }
  .hero h1 { font-size: 2.5rem; }
  .hero .subtitle { font-size: 1.0625rem; }
  .features-grid, .steps { grid-template-columns: 1fr; }
  .provider-grid { grid-template-columns: repeat(2, 1fr); }
  nav ul { gap: 16px; }
  footer .container { flex-direction: column; gap: 16px; text-align: center; }
  .section-heading h2 { font-size: 1.75rem; }
  .cta-box { padding: 40px 24px; }
  .legal h1 { font-size: 2rem; }
}
