:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-alt: #eef4ff;
  --text: #0f172a;
  --muted: #5b6475;
  --line: #dbe2ea;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --success: #dcfce7;
  --success-text: #166534;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
  --radius: 22px;
  --container: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f8fbff 0%, #f6f8fb 100%);
}

a { color: inherit; text-decoration: none; }
.link-reset { text-decoration: none; }

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(248, 251, 255, 0.85);
  border-bottom: 1px solid rgba(219, 226, 234, 0.7);
}

.slim-header { position: relative; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
}

.brand-logo {
  width: 2.3rem;
  height: 2.3rem;
  object-fit: contain;
  display: block;
}

.brand-name { letter-spacing: -0.02em; }
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero {
  padding: 5rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

h1, h2, h3 {
  margin: 0 0 1rem;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.6rem, 5vw, 4.7rem);
  max-width: 11ch;
}

h2 { font-size: clamp(2rem, 3vw, 3rem); }
h3 { font-size: 1.1rem; }

.hero-text, .section p, .legal-card p {
  color: var(--muted);
  line-height: 1.72;
  font-size: 1.03rem;
}

.hero-actions, .cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.7rem 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  transition: 0.2s ease;
  border: 1px solid transparent;
}

.button-primary {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow);
}
.button-primary:hover { background: var(--primary-dark); }

.button-secondary {
  background: white;
  border-color: var(--line);
  color: var(--text);
}
.button-secondary:hover { background: #f8fafc; }

.hero-points {
  display: grid;
  gap: 0.75rem;
  padding: 0;
  margin: 0;
  list-style: none;
  color: var(--muted);
}
.hero-points li::before {
  content: "•";
  color: var(--primary);
  margin-right: 0.55rem;
}

.hero-card, .card, .legal-card, .cta-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card { padding: 1rem; }
.app-preview {
  overflow: hidden;
  border-radius: 18px;
  background: #f8fbff;
  border: 1px solid #d8e2f4;
}
.preview-header {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.85rem 1rem;
  background: #eef5ff;
  border-bottom: 1px solid #d8e2f4;
}
.preview-title { margin-left: 0.55rem; font-size: 0.9rem; color: var(--muted); }
.dot {
  width: 10px; height: 10px; border-radius: 999px; display: inline-block;
}
.dot-red { background: #f87171; }
.dot-yellow { background: #fbbf24; }
.dot-green { background: #34d399; }
.preview-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 360px;
}
.preview-sidebar {
  padding: 1rem;
  border-right: 1px solid #d8e2f4;
  background: white;
}
.preview-filter, .preview-thread {
  padding: 0.8rem 0.9rem;
  border-radius: 16px;
  margin-bottom: 0.75rem;
  background: #f8fafc;
  color: var(--muted);
}
.preview-filter {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}
.preview-filter.active, .preview-thread.active {
  background: #e9f2ff;
  color: var(--text);
  border: 1px solid #bfd5ff;
}
.preview-thread p {
  margin: 0.4rem 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
}
.preview-conversation {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.bubble {
  max-width: 75%;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  font-size: 0.92rem;
  line-height: 1.5;
}
.bubble-system {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
}
.bubble-inbound {
  background: #f1f5f9;
}
.bubble-outbound {
  background: #2563eb;
  color: white;
  align-self: flex-end;
}

.section { padding: 4rem 0; }
.section-alt { background: linear-gradient(180deg, rgba(37, 99, 235, 0.04), rgba(37, 99, 235, 0.01)); }
.section-heading { max-width: 720px; margin-bottom: 2rem; }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.step-card {
  padding: 1.4rem;
}
.step-number {
  display: inline-flex;
  margin-bottom: 1rem;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
}
.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items: start;
}
.checklist-card {
  padding: 1.5rem;
}
.checklist {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  line-height: 1.8;
}
.cta-panel {
  padding: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.site-footer {
  padding: 2rem 0 3rem;
  border-top: 1px solid rgba(219, 226, 234, 0.7);
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.footer-copy { color: var(--muted); }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--muted);
}

.legal-page { padding: 3rem 0 4rem; }
.legal-card {
  padding: 2rem;
  max-width: 900px;
}
.legal-meta {
  margin-bottom: 1.5rem;
  color: var(--muted);
}
.legal-card ul {
  color: var(--muted);
  line-height: 1.75;
}

code {
  background: #eff6ff;
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
}

@media (max-width: 980px) {
  .hero-grid,
  .two-col,
  .steps-grid,
  .preview-body {
    grid-template-columns: 1fr;
  }

  .preview-sidebar {
    border-right: none;
    border-bottom: 1px solid #d8e2f4;
  }
}

@media (max-width: 720px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    padding-top: 3.2rem;
  }

  h1 {
    max-width: none;
  }

  .legal-card,
  .cta-panel,
  .step-card {
    padding: 1.25rem;
  }
}
