/* ============================================================
   Firecrawl Landingpage — Vercel Design System
   Geist font, shadow-as-border, white canvas, premium minimal
   ============================================================ */

:root {
  --color-bg: #ffffff;
  --color-text: #171717;
  --color-text-secondary: #4d4d4d;
  --color-text-muted: #808080;
  --color-gray-100: #ebebeb;
  --color-gray-50: #fafafa;
  --color-accent: #ff5b4f;
  --color-accent-blue: #0070f3;
  --color-accent-pink: #de1d8d;
  --color-link: #0072f5;
  --color-focus: hsla(212, 100%, 48%, 1);
  --shadow-border: 0px 0px 0px 1px rgba(0, 0, 0, 0.08);
  --shadow-card: rgba(0,0,0,0.08) 0px 0px 0px 1px, rgba(0,0,0,0.04) 0px 2px 2px, rgba(0,0,0,0.04) 0px 8px 8px -8px, #fafafa 0px 0px 0px 1px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 9999px;
  --font-primary: 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --max-width: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-primary);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "liga";
}

a { color: var(--color-link); text-decoration: none; }
a:hover { text-decoration: underline; }

/* === Navigation === */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.08);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 64px;
}
.nav-logo {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.7px;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-logo span { font-size: 22px; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  color: var(--color-text);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.nav-links a:hover { text-decoration: underline; color: var(--color-text-secondary); }
.nav-cta {
  background: var(--color-text);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.85; text-decoration: none; }

/* === Hero === */
.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 120px 24px 80px;
  text-align: center;
}
.hero-badge {
  display: inline-block;
  background: #ebf5ff;
  color: #0068d6;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -2.4px;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.hero p {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--color-text-secondary);
  max-width: 640px;
  margin: 0 auto 36px;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  background: var(--color-text);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.2s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { opacity: 0.85; text-decoration: none; }
.btn-secondary {
  background: #fff;
  color: var(--color-text);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  box-shadow: var(--shadow-border);
  transition: box-shadow 0.2s;
}
.btn-secondary:hover { box-shadow: rgba(0,0,0,0.12) 0px 0px 0px 1px; text-decoration: none; }

/* === Trust Bar === */
.trust {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 60px;
  text-align: center;
}
.trust-text {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.trust-logos {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  opacity: 0.5;
}
.trust-logos span {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
}

/* === Sections === */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 24px;
}
.section-label {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}
.section h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -2px;
  line-height: 1.2;
  margin-bottom: 16px;
}
.section > p {
  font-size: 18px;
  color: var(--color-text-secondary);
  line-height: 1.7;
  max-width: 640px;
  margin-bottom: 48px;
}

/* === Feature Cards === */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-card);
}
.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--color-gray-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 20px;
}
.feature-card h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.8px;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}
.feature-card .pill {
  display: inline-block;
  background: #fff5f5;
  color: var(--color-accent);
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 500;
  margin-left: 8px;
}

/* === Code Block === */
.code-block {
  background: #0a0a0a;
  border-radius: var(--radius-md);
  padding: 28px;
  margin: 40px 0;
  overflow-x: auto;
}
.code-block pre {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.7;
  color: #e0e0e0;
}
.code-block .comment { color: #6a9955; }
.code-block .keyword { color: #569cd6; }
.code-block .string { color: #ce9178; }
.code-block .fn { color: #dcdcaa; }

/* === Table === */
.table-wrap {
  overflow-x: auto;
  margin: 32px 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
th {
  text-align: left;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-gray-100);
  color: var(--color-text);
}
td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-gray-100);
  color: var(--color-text-secondary);
}
td:first-child { font-weight: 500; color: var(--color-text); }

/* === Content Section === */
.content-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 24px;
}
.content-section h2 {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -1.28px;
  margin-bottom: 20px;
  margin-top: 48px;
}
.content-section h2:first-child { margin-top: 0; }
.content-section h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.9px;
  margin-bottom: 12px;
  margin-top: 36px;
}
.content-section p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--color-text-secondary);
  margin-bottom: 16px;
}
.content-section ul, .content-section ol {
  margin: 0 0 20px 24px;
}
.content-section li {
  font-size: 17px;
  line-height: 1.8;
  color: var(--color-text-secondary);
  margin-bottom: 6px;
}
.content-section code {
  font-family: var(--font-mono);
  font-size: 14px;
  background: var(--color-gray-50);
  padding: 2px 6px;
  border-radius: 4px;
}
.content-section pre {
  font-family: var(--font-mono);
  font-size: 14px;
  background: #0a0a0a;
  color: #e0e0e0;
  padding: 20px;
  border-radius: var(--radius-md);
  overflow-x: auto;
  line-height: 1.7;
  margin: 20px 0;
}
.content-section pre code { background: none; padding: 0; }

/* === Praxisbox === */
.praxisbox {
  background: var(--color-gray-50);
  border-left: 3px solid var(--color-text);
  padding: 20px 24px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 24px 0;
}
.praxisbox strong {
  font-size: 15px;
  font-weight: 600;
}
.praxisbox p {
  font-size: 15px;
  margin: 8px 0 0;
  line-height: 1.7;
}

/* === Stats === */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 40px 0;
}
.stat {
  text-align: center;
  padding: 24px;
  box-shadow: var(--shadow-border);
  border-radius: var(--radius-md);
}
.stat-number {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -1.4px;
  color: var(--color-text);
}
.stat-label {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-top: 4px;
}

/* === Footer === */
.footer {
  border-top: 1px solid var(--color-gray-100);
  padding: 48px 24px;
  margin-top: 80px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-brand {
  font-size: 14px;
  color: var(--color-text-muted);
}
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  font-size: 14px;
  color: var(--color-text-muted);
  text-decoration: none;
}
.footer-links a:hover { color: var(--color-text); text-decoration: underline; }

/* === Responsive === */
@media (max-width: 768px) {
  .features-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .hero { padding: 60px 20px 40px; }
  .section { padding: 48px 20px; }
}