/* ================================================================
   LUDEX ANALYTICS — Public Site CSS
   ================================================================ */

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

:root {
  --primary: #4f46e5;
  --primary-h: #4338ca;
  --primary-light: #eef2ff;
  --secondary: #0ea5e9;
  --dark: #0f172a;
  --text: #1e293b;
  --muted: #64748b;
  --border: #e2e8f0;
  --bg: #f8fafc;
  --white: #ffffff;
  --success: #059669;
  --warning: #d97706;
  --danger: #dc2626;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.12);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --nav-h: 68px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-h); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--dark);
}

/* ── Typography ─────────────────────────────── */
.text-xs   { font-size: .75rem; }
.text-sm   { font-size: .875rem; }
.text-lg   { font-size: 1.125rem; }
.text-xl   { font-size: 1.25rem; }
.text-2xl  { font-size: 1.5rem; }
.text-3xl  { font-size: 1.875rem; }
.text-4xl  { font-size: 2.25rem; }
.text-5xl  { font-size: 3rem; }
.text-muted   { color: var(--muted); }
.text-primary { color: var(--primary); }
.text-center  { text-align: center; }
.text-white   { color: var(--white); }
.font-medium  { font-weight: 500; }
.font-semibold{ font-weight: 600; }
.font-bold    { font-weight: 700; }
.leading-tight{ line-height: 1.25; }
.leading-loose{ line-height: 1.8; }

/* ── Layout ─────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-sm { max-width: 768px; margin: 0 auto; padding: 0 24px; }
.container-lg { max-width: 1400px; margin: 0 auto; padding: 0 24px; }

.section       { padding: 96px 0; }
.section-sm    { padding: 64px 0; }
.section-lg    { padding: 120px 0; }
.section-bg    { background: var(--bg); }

.flex         { display: flex; }
.flex-col     { flex-direction: column; }
.flex-wrap    { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start  { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.gap-4  { gap: 16px; }
.gap-6  { gap: 24px; }
.gap-8  { gap: 32px; }
.gap-12 { gap: 48px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }

.mt-4  { margin-top: 16px; }
.mt-6  { margin-top: 24px; }
.mt-8  { margin-top: 32px; }
.mt-12 { margin-top: 48px; }
.mb-4  { margin-bottom: 16px; }
.mb-6  { margin-bottom: 24px; }
.mb-8  { margin-bottom: 32px; }
.mb-12 { margin-bottom: 48px; }
.mb-16 { margin-bottom: 64px; }

/* ── Buttons ─────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: .9375rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .2s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-h);
  border-color: var(--primary-h);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(79,70,229,.35);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--border);
}
.btn-outline:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: transparent;
}
.btn-ghost:hover { background: var(--bg); color: var(--dark); }
.btn-white {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}
.btn-white:hover {
  background: var(--primary-light);
  color: var(--primary-h);
}
.btn-lg { padding: 14px 32px; font-size: 1.0625rem; }
.btn-sm { padding: 7px 16px; font-size: .8125rem; }

/* ── Badge / Tag ─────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: .8125rem;
  font-weight: 600;
}
.badge-primary  { background: var(--primary-light); color: var(--primary); }
.badge-success  { background: #d1fae5; color: #065f46; }
.badge-warning  { background: #fef3c7; color: #92400e; }
.badge-danger   { background: #fee2e2; color: #991b1b; }
.badge-gray     { background: #f1f5f9; color: #475569; }
.badge-new      { background: linear-gradient(135deg,#4f46e5,#0ea5e9); color: #fff; }

/* ── Card ────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card-sm { padding: 20px 24px; }

/* ── Nav ─────────────────────────────────────── */
#site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--dark);
  text-decoration: none;
}
.nav-logo-icon {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, #4f46e5, #0ea5e9);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 1rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  color: var(--muted);
  font-size: .9375rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 7px;
  transition: color .15s, background .15s;
  text-decoration: none;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--dark);
  background: var(--bg);
}
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-sign-in {
  color: var(--muted);
  font-size: .9375rem;
  font-weight: 500;
  padding: 8px 14px;
  text-decoration: none;
  transition: color .15s;
}
.nav-sign-in:hover { color: var(--dark); }

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.nav-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all .2s;
}

/* ── Hero ────────────────────────────────────── */
.hero {
  padding: 96px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(79,70,229,.12), transparent);
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(79,70,229,.2);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: .8125rem;
  font-weight: 600;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: 24px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.hero h1 .gradient-text {
  background: linear-gradient(135deg, #4f46e5, #0ea5e9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 1.1875rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.hero-note { font-size: .8125rem; color: var(--muted); margin-top: 14px; }

/* Stats bar */
.stats-bar {
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}
.stats-bar .grid-4 { align-items: center; }
.stat-item { text-align: center; }
.stat-item strong { display: block; font-size: 1.625rem; font-weight: 800; color: var(--dark); }
.stat-item span { font-size: .875rem; color: var(--muted); font-weight: 500; }

/* ── Section heading ─────────────────────────── */
.section-heading { text-align: center; max-width: 640px; margin: 0 auto 64px; }
.section-heading .eyebrow {
  display: inline-block;
  color: var(--primary);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-heading h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  letter-spacing: -.02em;
  margin-bottom: 16px;
}
.section-heading p { color: var(--muted); font-size: 1.0625rem; line-height: 1.7; }

/* ── Feature card ────────────────────────────── */
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow .2s, transform .2s;
}
.feature-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.feature-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.375rem;
  margin-bottom: 16px;
}
.feature-card h3 { font-size: 1.0625rem; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: .9375rem; line-height: 1.6; }

/* ── Pricing ─────────────────────────────────── */
.pricing-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 36px;
  position: relative;
  transition: box-shadow .2s, transform .2s;
}
.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,.12), var(--shadow-lg);
  transform: scale(1.02);
}
.pricing-card:hover { box-shadow: var(--shadow-lg); }
.pricing-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 999px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.pricing-name { font-size: 1rem; font-weight: 600; color: var(--muted); margin-bottom: 12px; }
.pricing-price { font-size: 3rem; font-weight: 800; color: var(--dark); line-height: 1; }
.pricing-price sup { font-size: 1.25rem; vertical-align: super; }
.pricing-price small { font-size: 1rem; font-weight: 500; color: var(--muted); }
.pricing-desc { color: var(--muted); font-size: .9375rem; margin: 12px 0 28px; }
.pricing-features { margin-bottom: 32px; }
.pricing-features li {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 0;
  font-size: .9375rem;
  border-bottom: 1px solid var(--border);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-check { color: var(--success); font-size: 1rem; flex-shrink: 0; }
.pricing-x { color: #cbd5e1; font-size: 1rem; flex-shrink: 0; }

/* ── Testimonials ────────────────────────────── */
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.testimonial-text {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5, #0ea5e9);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: .9375rem;
  flex-shrink: 0;
}
.author-name { font-weight: 600; font-size: .9375rem; }
.author-role { font-size: .8125rem; color: var(--muted); }
.stars { color: #f59e0b; letter-spacing: 2px; font-size: .875rem; margin-bottom: 12px; }

/* ── CTA section ─────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, #4f46e5 0%, #0ea5e9 100%);
  padding: 96px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.cta-section h2 { font-size: 2.5rem; color: #fff; margin-bottom: 16px; }
.cta-section p { font-size: 1.125rem; color: rgba(255,255,255,.8); max-width: 520px; margin: 0 auto 40px; }

/* ── Blog ────────────────────────────────────── */
.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
}
.blog-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.blog-card-img {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.blog-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.blog-card-body h3 { font-size: 1.0625rem; margin: 10px 0 8px; line-height: 1.4; }
.blog-card-body h3 a { color: var(--dark); }
.blog-card-body h3 a:hover { color: var(--primary); }
.blog-card-body p { color: var(--muted); font-size: .9375rem; line-height: 1.6; flex: 1; }
.blog-meta { display: flex; align-items: center; gap: 12px; font-size: .8125rem; color: var(--muted); margin-top: 16px; }
.blog-meta .dot { color: var(--border); }

.post-header { padding: 64px 0 48px; background: var(--bg); }
.post-header h1 { font-size: clamp(1.75rem, 3vw, 2.625rem); margin-bottom: 16px; max-width: 800px; }
.post-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: .9375rem; color: var(--muted); }
.post-body { padding: 64px 0; }
.post-body h2 { font-size: 1.5rem; margin: 40px 0 16px; }
.post-body h3 { font-size: 1.25rem; margin: 32px 0 12px; }
.post-body p { color: var(--text); font-size: 1.0625rem; line-height: 1.8; margin-bottom: 20px; }
.post-body ul { padding-left: 20px; list-style: disc; margin-bottom: 20px; }
.post-body ul li { color: var(--text); font-size: 1.0625rem; line-height: 1.8; padding: 4px 0; }
.post-body blockquote {
  border-left: 4px solid var(--primary);
  padding: 16px 24px;
  background: var(--primary-light);
  border-radius: 0 8px 8px 0;
  margin: 24px 0;
  font-style: italic;
  font-size: 1.0625rem;
  color: var(--text);
}

/* ── FAQ ─────────────────────────────────────── */
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--dark);
  text-align: left;
  gap: 16px;
}
.faq-question:hover { color: var(--primary); }
.faq-icon { flex-shrink: 0; font-size: 1.25rem; color: var(--muted); transition: transform .25s; }
.faq-answer { padding: 0 0 20px; color: var(--muted); font-size: 1rem; line-height: 1.7; display: none; }
.faq-item.open .faq-answer { display: block; }
.faq-item.open .faq-icon { transform: rotate(45deg); color: var(--primary); }

/* ── Integration grid ────────────────────────── */
.integration-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  transition: box-shadow .2s, transform .2s, border-color .2s;
  background: var(--white);
}
.integration-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: var(--primary); }
.integration-icon { font-size: 2rem; margin-bottom: 8px; }
.integration-name { font-size: .875rem; font-weight: 600; color: var(--dark); }
.integration-cat  { font-size: .75rem; color: var(--muted); margin-top: 2px; }

/* ── Careers ─────────────────────────────────── */
.job-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  transition: box-shadow .2s;
}
.job-card:hover { box-shadow: var(--shadow-lg); }
.job-title { font-size: 1.0625rem; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.job-details { display: flex; gap: 16px; flex-wrap: wrap; }
.job-detail { font-size: .8125rem; color: var(--muted); display: flex; align-items: center; gap: 5px; }

/* ── Status page ─────────────────────────────── */
.status-header-ok { background: linear-gradient(135deg, #059669, #34d399); }
.status-service {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.status-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.status-dot.ok       { background: var(--success); box-shadow: 0 0 0 3px #d1fae5; }
.status-dot.degraded { background: var(--warning); box-shadow: 0 0 0 3px #fef3c7; }
.status-dot.down     { background: var(--danger);  box-shadow: 0 0 0 3px #fee2e2; }
.status-uptime { font-size: .8125rem; color: var(--muted); }
.uptime-bar {
  height: 32px;
  display: flex;
  gap: 3px;
  margin-top: 8px;
}
.uptime-bar span {
  flex: 1;
  border-radius: 3px;
  background: #d1fae5;
}
.uptime-bar span.down { background: #fee2e2; }

/* ── Changelog ───────────────────────────────── */
.changelog-entry {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 32px;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}
.changelog-version { font-size: .875rem; font-weight: 700; color: var(--muted); padding-top: 4px; }
.changelog-body h3 { font-size: 1.125rem; margin-bottom: 12px; }
.changelog-body ul { padding-left: 18px; list-style: disc; }
.changelog-body ul li { padding: 4px 0; font-size: .9375rem; color: var(--text); }
.changelog-tag { font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 4px; margin-left: 6px; vertical-align: middle; }
.tag-new       { background: #dbeafe; color: #1d4ed8; }
.tag-improved  { background: #d1fae5; color: #065f46; }
.tag-fixed     { background: #fef3c7; color: #92400e; }
.tag-security  { background: #fee2e2; color: #991b1b; }

/* ── Team ────────────────────────────────────── */
.team-card {
  text-align: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  transition: box-shadow .2s;
}
.team-card:hover { box-shadow: var(--shadow-lg); }
.team-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.875rem;
  font-weight: 700;
  color: #fff;
}
.team-name { font-size: 1.0625rem; font-weight: 700; margin-bottom: 4px; }
.team-role { font-size: .875rem; color: var(--muted); margin-bottom: 12px; }

/* ── Contact form ────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: .9375rem; font-weight: 600; margin-bottom: 6px; color: var(--dark); }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: .9375rem;
  color: var(--text);
  font-family: var(--font);
  background: var(--white);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,.15);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* ── Page hero (inner pages) ─────────────────── */
.page-hero {
  background: var(--bg);
  padding: 72px 0 64px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.page-hero h1 { font-size: 2.5rem; margin-bottom: 14px; }
.page-hero p { font-size: 1.125rem; color: var(--muted); max-width: 560px; margin: 0 auto; }

/* ── Table ────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
thead th { background: var(--bg); padding: 14px 16px; text-align: left; font-weight: 600; color: var(--dark); border-bottom: 2px solid var(--border); }
tbody td { padding: 14px 16px; border-bottom: 1px solid var(--border); color: var(--text); }
tbody tr:hover td { background: var(--bg); }

/* ── Breadcrumb ───────────────────────────────── */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: .875rem; color: var(--muted); margin-bottom: 8px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb-sep { color: var(--border); }

/* ── Legal pages ──────────────────────────────── */
.legal-body h2 { font-size: 1.375rem; margin: 40px 0 12px; padding-top: 8px; border-top: 1px solid var(--border); }
.legal-body h3 { font-size: 1.125rem; margin: 24px 0 8px; }
.legal-body p  { color: var(--text); font-size: 1rem; line-height: 1.8; margin-bottom: 16px; }
.legal-body ul { padding-left: 20px; list-style: disc; margin-bottom: 16px; }
.legal-body ul li { color: var(--text); font-size: 1rem; line-height: 1.8; }
.legal-date { font-size: .875rem; color: var(--muted); margin-bottom: 40px; }

/* ── Footer ───────────────────────────────────── */
#site-footer {
  background: var(--dark);
  color: rgba(255,255,255,.7);
  padding: 72px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-brand .nav-logo { color: #fff; }
.footer-brand p { font-size: .9375rem; line-height: 1.7; margin-top: 14px; max-width: 280px; }
.footer-col h4 { color: #fff; font-size: .875rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: rgba(255,255,255,.65); font-size: .9375rem; text-decoration: none; transition: color .15s; }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .875rem;
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: rgba(255,255,255,.5); text-decoration: none; }
.footer-bottom-links a:hover { color: #fff; }

/* ── Utilities ────────────────────────────────── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.divider { border: none; border-top: 1px solid var(--border); margin: 40px 0; }
.rounded { border-radius: var(--radius); }
.overflow-hidden { overflow: hidden; }
.relative { position: relative; }
.sticky { position: sticky; top: 96px; }

/* Checklist */
.checklist { list-style: none; padding: 0; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 0;
  font-size: .9375rem;
  color: var(--text);
}
.checklist li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Number list */
.num-list { counter-reset: num; padding: 0; }
.num-list li {
  counter-increment: num;
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: .9375rem;
}
.num-list li::before {
  content: counter(num);
  min-width: 28px; height: 28px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .8125rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* Two-column content layout */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.content-grid.reverse .content-img { order: -1; }
.content-img {
  background: linear-gradient(135deg, var(--primary-light), #e0f2fe);
  border-radius: 16px;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
}
.content-text h2 { font-size: 2rem; margin-bottom: 16px; }
.content-text p { color: var(--muted); font-size: 1.0625rem; line-height: 1.75; margin-bottom: 20px; }

/* Highlight box */
.highlight-box {
  background: var(--primary-light);
  border: 1px solid rgba(79,70,229,.2);
  border-radius: var(--radius);
  padding: 24px 28px;
}
.highlight-box h4 { color: var(--primary); margin-bottom: 8px; }
.highlight-box p { color: var(--text); font-size: .9375rem; margin: 0; }

/* Case study card */
.case-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.case-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.case-card-header {
  padding: 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--border);
}
.case-logo {
  width: 56px; height: 56px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.625rem;
}
.case-body { padding: 28px; }
.case-stat { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }
.case-stat-item strong { display: block; font-size: 1.625rem; font-weight: 800; color: var(--primary); }
.case-stat-item span { font-size: .8125rem; color: var(--muted); }

/* ── Responsive ───────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .content-grid { grid-template-columns: 1fr; gap: 40px; }
  .content-grid.reverse .content-img { order: 0; }
}

@media (max-width: 768px) {
  :root { --nav-h: 60px; }
  .section { padding: 64px 0; }
  .section-lg { padding: 80px 0; }
  .hero { padding: 64px 0 56px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4, .grid-6 { grid-template-columns: repeat(2, 1fr); }
  .pricing-card.featured { transform: none; }
  .changelog-entry { grid-template-columns: 1fr; gap: 8px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .nav-links, .nav-actions { display: none; }
  .nav-hamburger { display: flex; }
  .nav-mobile-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
  }
  .nav-mobile-open .nav-actions {
    display: flex;
    padding: 0 24px 20px;
    position: absolute;
    top: calc(var(--nav-h) + 220px);
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
  }
  .job-card { flex-direction: column; align-items: flex-start; }
  .page-hero h1 { font-size: 2rem; }
  .case-stat { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .grid-4, .grid-6 { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .stats-bar .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
