/* ==========================================================================
   BIDFLOW DESIGN SYSTEM
   Top 1% Enterprise SaaS. Clean, airy, sophisticated.
   Extracted from demo/index.html + demo/article.html
   ========================================================================== */

:root {
  --bg-base: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-inset: #f1f5f9;
  --bg-dark: #05080f;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #94a3b8;
  --border-light: #e2e8f0;
  --border-dark: #1e293b;
  --accent-primary: #e05d36;
  --accent-hover: #c24a26;
  --accent-subtle: #fff1ec;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Plus Jakarta Sans', var(--font-sans);
  --container-max: 1480px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --shadow-subtle: 0 4px 12px -2px rgba(15, 23, 42, 0.05);
  --shadow-hover: 0 12px 32px -8px rgba(15, 23, 42, 0.1);
  --transition-base: 0.25s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  overflow-x: clip;
}

/* Base Typography */
body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

/* Fixed header offset - JS sets --bar-height to the announcement bar's actual rendered height */
body {
  padding-top: calc(var(--bar-height, 0px) + 56px);
}
@media (max-width: 768px) {
  body {
    padding-top: calc(var(--bar-height, 0px) + 52px);
  }
}

a {
  color: inherit;
  text-decoration: none;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
}
p {
  color: var(--text-muted);
  line-height: 1.7;
}

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

/* Section Patterns */
.section-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 16px;
  margin-bottom: 24px;
  background: var(--bg-base);
  color: var(--text-muted);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.02);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-header h2 {
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.section-header p {
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-muted);
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--accent-primary);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 2px 4px rgba(224, 93, 54, 0.2);
  transition: all var(--transition-base);
  cursor: pointer;
  text-decoration: none;
}
.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 4px 12px rgba(224, 93, 54, 0.3);
  transform: translateY(-1px);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition-base);
  text-decoration: none;
}
.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border: 1px solid var(--border-light);
  background: var(--bg-base);
  color: var(--text-main);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-subtle);
}
.btn-outline:hover {
  border-color: var(--text-main);
  background: var(--bg-subtle);
}

.btn-block {
  width: 100%;
  justify-content: center;
  padding: 16px;
  margin-top: 8px;
  font-size: 1rem;
}

/* Utility */
.section-cta {
  text-align: center;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
