:root {
  /* Bright SaaS automation palette */
  --bg: #FCFCFC;
  --bg-elev: #FFFFFF;
  --bg-soft: #F4F4F5;
  --bg-deep: #09090B;

  --line: #E4E4E7;
  --line-soft: #F2F2F3;

  --ink: #09090B;
  --ink-dim: #52525B;
  --ink-mute: #A1A1AA;

  --accent: #06B6D4;
  --accent-hover: #0891B2;
  --accent-2: #3B82F6;
  --accent-soft: #ECFEFF;
  --accent-ink: #FFFFFF;
  --accent-glow: rgba(6, 182, 212, 0.18);

  --grad-primary: linear-gradient(135deg, #06B6D4 0%, #3B82F6 100%);
  --grad-soft:    linear-gradient(135deg, rgba(6,182,212,0.08) 0%, rgba(6,182,212,0.06) 100%);

  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --pad-x: clamp(20px, 4vw, 64px);

  --font-display: "Newsreader", ui-serif, Georgia, serif;
  --font-sans: "Geist", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", monospace;

  --shadow-sm: 0 1px 2px rgba(9, 9, 11, 0.04), 0 1px 3px rgba(9, 9, 11, 0.06);
  --shadow-md: 0 4px 6px rgba(9, 9, 11, 0.04), 0 10px 15px rgba(9, 9, 11, 0.08);
  --shadow-lg: 0 12px 20px rgba(9, 9, 11, 0.06), 0 24px 50px rgba(9, 9, 11, 0.10);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--ink); }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
::selection { background: var(--accent); color: var(--accent-ink); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* Floating nav pill */
.nav-wrap {
  position: fixed; top: 16px; left: 0; right: 0; z-index: 9999;
  display: flex; justify-content: center;
  padding: 0 16px; pointer-events: none;
}
.nav-pill {
  pointer-events: auto;
  display: flex; align-items: center; gap: 28px;
  padding: 8px 8px 8px 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--line);
  box-shadow: 0 10px 32px rgba(9, 9, 11, 0.08);
  max-width: calc(100vw - 32px);
}
.nav-pill .brand { font-size: 16px; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; color: var(--ink); }
.nav-pill .brand span {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-pill .links { display: flex; align-items: center; gap: 24px; }
.nav-pill .links a { font-size: 14px; font-weight: 600; color: var(--ink); transition: color .15s; white-space: nowrap; }
.nav-pill .links a:hover { color: var(--accent); }
.nav-pill .cta {
  background: var(--grad-primary); color: var(--accent-ink);
  padding: 11px 20px; border-radius: 999px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.01em;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 8px 20px var(--accent-glow);
  transition: transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.nav-pill .cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px var(--accent-glow);
}
@media (max-width: 920px) { .nav-pill .links { display: none; } }
@media (max-width: 480px) { .nav-pill .cta { padding: 10px 14px; font-size: 12px; } }

main {
  flex: 1;
  padding: clamp(120px, 14vh, 180px) var(--pad-x) clamp(60px, 8vw, 100px);
  position: relative;
}

/* Subtle ambient bg for inner pages */
main::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(circle 480px at 18% 0%, rgba(6,182,212,0.10), transparent 60%),
    radial-gradient(circle 420px at 82% 8%, rgba(6,182,212,0.10), transparent 60%);
  pointer-events: none;
}

.article { max-width: 760px; margin: 0 auto; }
.back-link {
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-dim);
  letter-spacing: 0.08em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px;
  transition: color .15s; margin-bottom: 32px;
}
.back-link:hover { color: var(--accent); }
.meta {
  display: flex; gap: 16px; align-items: center;
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-dim);
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 24px; flex-wrap: wrap;
}
.meta .tag {
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px; border-radius: 999px;
  font-weight: 600;
}
.meta .dot { color: var(--line); }

h1.title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.05; letter-spacing: -0.025em;
  text-wrap: balance; margin-bottom: 24px;
  color: var(--ink);
}
h1.title em {
  font-style: italic;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.lede {
  font-size: clamp(18px, 1.4vw, 22px);
  color: var(--ink-dim);
  line-height: 1.55; margin-bottom: 56px;
  max-width: 640px;
}

.article p { color: var(--ink); font-size: 17px; line-height: 1.75; margin-bottom: 22px; }
.article p.dim { color: var(--ink-dim); }
.article h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.2; letter-spacing: -0.02em;
  margin: 56px 0 18px; text-wrap: balance; color: var(--ink);
}
.article h3 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.3; letter-spacing: -0.015em;
  margin: 36px 0 12px; color: var(--ink);
}
.article ul, .article ol { margin: 0 0 22px 22px; color: var(--ink-dim); }
.article li { margin-bottom: 8px; line-height: 1.7; }
.article li strong { color: var(--ink); font-weight: 600; }
.article strong { color: var(--ink); font-weight: 600; }
.article code {
  font-family: var(--font-mono);
  background: var(--accent-soft);
  color: var(--accent);
  padding: 2px 8px; border-radius: 6px;
  font-size: 0.9em;
}
.article blockquote {
  border-left: 3px solid var(--accent);
  padding: 6px 0 6px 24px; margin: 28px 0;
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(20px, 2vw, 26px); line-height: 1.4;
  color: var(--ink);
}
.callout {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px 32px;
  background: var(--bg-elev);
  box-shadow: var(--shadow-sm);
  margin: 36px 0;
}
.callout .label {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--accent); letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 8px; font-weight: 600;
}
.callout .body { font-size: 16px; color: var(--ink); line-height: 1.65; }

.cta-card {
  margin-top: 64px;
  border: 1px solid var(--line); border-radius: var(--radius-xl);
  padding: 40px 36px;
  background: var(--bg-elev);
  text-align: center;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: var(--grad-soft);
  pointer-events: none;
}
.cta-card > * { position: relative; z-index: 1; }
.cta-card h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 500; line-height: 1.2;
  margin-bottom: 10px; color: var(--ink);
}
.cta-card p { color: var(--ink-dim); margin-bottom: 22px; font-size: 15px; line-height: 1.6; }
.cta-button {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  background: var(--grad-primary);
  color: var(--accent-ink);
  border-radius: 999px;
  font-weight: 600; font-size: 14px;
  letter-spacing: 0.01em;
  box-shadow: 0 12px 26px var(--accent-glow);
  transition: transform .2s, box-shadow .2s;
}
.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px var(--accent-glow);
}

footer {
  padding: 40px var(--pad-x) 36px;
  border-top: 1px solid var(--line);
  display: grid; gap: 28px;
  background: var(--bg-elev);
}
.footer-row {
  display: grid; grid-template-columns: 1fr auto;
  gap: 32px; align-items: center;
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-dim);
  text-transform: uppercase; letter-spacing: 0.06em;
  max-width: 1180px; margin: 0 auto; width: 100%;
}
.footer-social { display: flex; gap: 28px; flex-wrap: wrap; justify-content: flex-end; }
.footer-row.bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 11px; color: var(--ink-mute);
  flex-wrap: wrap; gap: 16px;
}
.footer-row.bottom .legal { display: flex; gap: 24px; flex-wrap: wrap; }
@media (max-width: 640px) {
  .footer-row { grid-template-columns: 1fr !important; }
  .footer-social { justify-content: flex-start !important; }
}

/* Blog hero image */
.hero-image {
  margin-bottom: 56px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: var(--grad-soft);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.hero-image svg { width: 100%; height: 100%; display: block; }
.hero-image .badge {
  position: absolute; top: 20px; left: 20px;
  font-family: var(--font-mono); font-size: 11px;
  color: white;
  background: var(--grad-primary);
  padding: 6px 12px; border-radius: 999px;
  letter-spacing: 0.08em; text-transform: uppercase;
  font-weight: 600;
}

.inline-figure {
  margin: 36px -8px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--bg-elev);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.inline-figure svg { width: 100%; height: auto; display: block; }
.inline-figure figcaption {
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-mute);
  letter-spacing: 0.06em; text-transform: uppercase;
  text-align: center; padding: 14px 16px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}

/* Legal pages */
.legal-doc { max-width: 760px; margin: 0 auto; }
.legal-doc h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.25; letter-spacing: -0.015em;
  margin: 40px 0 14px; color: var(--ink);
}
.legal-doc p { color: var(--ink-dim); font-size: 16px; line-height: 1.75; margin-bottom: 16px; }
.legal-doc strong { color: var(--ink); font-weight: 600; }
.legal-doc ul { margin: 0 0 16px 22px; color: var(--ink-dim); }
.legal-doc li { margin-bottom: 8px; line-height: 1.7; }
.legal-doc .updated {
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-mute);
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 32px;
}
