/* BizFlowAI — Light professional SaaS (contractor / Procore-lane) */
:root {
  --bg: #ffffff;
  --bg-soft: #f5f1ed;
  --bg-muted: #f4f6f8;
  --bg-elev: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #fffdfb;
  --line: #e7e5e4;
  --line-strong: #d6d3d1;
  --text: #0f172a;
  --muted: #475569;
  --dim: #64748b;
  --amber: #ea580c;
  --amber-hover: #c2410c;
  --amber-soft: rgba(234, 88, 12, 0.10);
  --amber-border: rgba(234, 88, 12, 0.28);
  --steel: #0369a1;
  --steel-soft: rgba(3, 105, 161, 0.08);
  --ok: #047857;
  --ok-soft: rgba(4, 120, 87, 0.10);
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
  --shadow-sm: 0 4px 16px rgba(15, 23, 42, 0.06);
  --max: 1120px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

.bg-grid {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 70% 45% at 50% -10%, rgba(234, 88, 12, 0.08), transparent 55%),
    radial-gradient(ellipse 40% 30% at 100% 0%, rgba(3, 105, 161, 0.05), transparent 50%),
    linear-gradient(rgba(15, 23, 42, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
  background-size: auto, auto, 72px 72px, 72px 72px;
  mask-image: linear-gradient(to bottom, black 0%, black 35%, transparent 90%);
}

.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; position: relative; z-index: 1; }
.site { position: relative; z-index: 1; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 12px 0; min-height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -0.03em; color: var(--text); }
.brand img, .brand svg { height: 44px; width: auto; display: block; }
.brand-text { font-size: 1.15rem; color: var(--text); }
.brand-text span { color: var(--amber); }
.nav-links { display: flex; align-items: center; gap: 6px 18px; flex-wrap: wrap; }
.nav-links a {
  color: var(--muted); font-size: 14px; font-weight: 600;
  padding: 8px 2px; transition: color .15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.hamburger {
  display: none; background: #fff; border: 1px solid var(--line);
  color: var(--text); border-radius: 8px; padding: 8px 10px; cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; padding: 12px 20px; font-weight: 700; font-size: 14px;
  border: 1px solid transparent; cursor: pointer; transition: .15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--amber);
  color: #fff;
  box-shadow: 0 8px 24px rgba(234, 88, 12, 0.28);
}
.btn-primary:hover { background: var(--amber-hover); transform: translateY(-1px); }
.btn-secondary {
  background: #fff; color: var(--text); border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { border-color: #a8a29e; background: var(--bg-soft); }
.btn-ghost { background: transparent; color: var(--muted); padding-inline: 12px; }
.btn-ghost:hover { color: var(--text); }

/* Hero */
.hero { padding: 64px 0 48px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--amber); background: var(--amber-soft); border: 1px solid var(--amber-border);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2.15rem, 4.8vw, 3.4rem);
  line-height: 1.08; letter-spacing: -0.035em; font-weight: 800;
  max-width: 16ch; margin-bottom: 16px; color: var(--text);
}
.hero h1 em { font-style: normal; color: var(--amber); }
.lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--muted); max-width: 52ch; margin-bottom: 26px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center;
}
.trust-row {
  display: flex; flex-wrap: wrap; gap: 10px 18px; color: var(--dim); font-size: 13px;
}
.trust-row strong { color: var(--muted); font-weight: 700; }

/* Product mock — app chrome can stay darker inside light page */
.product-frame {
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border: 1px solid var(--line); border-radius: 22px; padding: 12px;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.product-frame::before {
  content: ""; position: absolute; inset: -30% auto auto 40%; width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(234,88,12,.16), transparent 70%);
  pointer-events: none;
}
.product-chrome {
  display: flex; gap: 6px; margin-bottom: 10px; padding: 4px 6px;
}
.product-chrome i { width: 9px; height: 9px; border-radius: 50%; background: #d6d3d1; display: block; }
.product-screen {
  background: #0f172a; border: 1px solid #1e293b; border-radius: 14px;
  padding: 18px; min-height: 340px; position: relative; z-index: 1; color: #e2e8f0;
}
.field-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px; color: #94a3b8; font-size: 12px; font-family: var(--mono);
}
.field-title { font-size: 18px; font-weight: 700; margin-bottom: 6px; color: #f8fafc; }
.field-sub { color: #94a3b8; font-size: 13px; margin-bottom: 18px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field-btn {
  background: #1e293b; border: 1px solid #334155; border-radius: 14px;
  padding: 16px 14px; font-weight: 700; font-size: 14px; text-align: left; color: #f1f5f9;
}
.field-btn span { display: block; color: #94a3b8; font-weight: 500; font-size: 12px; margin-top: 4px; }
.field-btn.primary {
  grid-column: 1 / -1;
  background: linear-gradient(180deg, rgba(234,88,12,.35), rgba(234,88,12,.15));
  border-color: rgba(251,146,60,.45); color: #ffedd5;
}
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pill {
  font-size: 11px; font-family: var(--mono); color: #6ee7b7;
  background: rgba(16,185,129,.12); border: 1px solid rgba(16,185,129,.28);
  padding: 4px 8px; border-radius: 999px;
}

/* Sections */
section { padding: 72px 0; position: relative; z-index: 1; }
section.alt { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-label {
  font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 12px;
}
h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.35rem);
  letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 12px; font-weight: 800; color: var(--text);
}
.section-lead { color: var(--muted); max-width: 60ch; margin-bottom: 32px; font-size: 1.05rem; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; transition: .18s ease; height: 100%; box-shadow: var(--shadow-sm);
}
.card:hover { border-color: #c4bfb9; transform: translateY(-2px); box-shadow: var(--shadow); }
.card-icon {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--amber-soft); color: var(--amber); font-weight: 800; margin-bottom: 14px; font-size: 13px;
}
.card h3 { font-size: 1.08rem; margin-bottom: 8px; letter-spacing: -0.02em; color: var(--text); }
.card p { color: var(--muted); font-size: 14.5px; }
.card .meta { margin-top: 16px; font-size: 13px; color: var(--amber); font-weight: 700; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.panel {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
}
.panel h3 { margin-bottom: 10px; font-size: 1.15rem; color: var(--text); }
.panel p, .panel li { color: var(--muted); }
.panel ul { padding-left: 18px; display: grid; gap: 8px; margin-top: 12px; }
.check-list { list-style: none; padding: 0; display: grid; gap: 10px; margin-top: 16px; }
.check-list li {
  display: grid; grid-template-columns: 20px 1fr; gap: 10px; color: var(--muted); font-size: 15px;
}
.check-list li::before { content: "✓"; color: var(--ok); font-weight: 800; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 8px; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 18px; text-align: left; box-shadow: var(--shadow-sm);
}
.stat b { display: block; font-size: 1.35rem; letter-spacing: -0.03em; margin-bottom: 4px; color: var(--text); }
.stat span { color: var(--dim); font-size: 13px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  background: #fff; box-shadow: var(--shadow-sm);
}
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font-family: var(--mono); color: var(--amber); font-weight: 700;
  margin-bottom: 12px; font-size: 13px;
}
.step h3 { margin-bottom: 8px; color: var(--text); }
.step p { color: var(--muted); font-size: 14.5px; }

.cta-band {
  margin: 20px 0 80px;
  border-radius: 24px; padding: 40px;
  background:
    radial-gradient(circle at 15% 0%, rgba(234,88,12,.14), transparent 42%),
    linear-gradient(180deg, #fff7ed, #ffffff);
  border: 1px solid #fed7aa;
  display: flex; justify-content: space-between; gap: 24px; align-items: center; flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
}
.cta-band h2 { margin-bottom: 8px; }
.cta-band p { color: var(--muted); max-width: 46ch; }

/* Page hero */
.page-hero { padding: 52px 0 24px; }
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.9rem); letter-spacing: -0.035em; line-height: 1.1;
  max-width: 16ch; margin-bottom: 14px; font-weight: 800; color: var(--text);
}
.breadcrumbs { color: var(--dim); font-size: 13px; margin-bottom: 14px; }
.breadcrumbs a:hover { color: var(--text); }

.prose { max-width: 72ch; }
.prose p { color: var(--muted); margin-bottom: 14px; }
.prose h2 { margin-top: 28px; margin-bottom: 10px; font-size: 1.45rem; }
.prose h3 { margin-top: 20px; margin-bottom: 8px; font-size: 1.08rem; }
.prose ul { color: var(--muted); padding-left: 18px; margin-bottom: 14px; display: grid; gap: 6px; }
.prose strong { color: var(--text); }

.table-wrap {
  overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); margin: 20px 0;
  background: #fff; box-shadow: var(--shadow-sm);
}
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); }
th { color: var(--dim); font-weight: 700; background: var(--bg-muted); }
td { color: var(--muted); }
td strong { color: var(--text); }
tr:last-child td { border-bottom: 0; }

.form { display: grid; gap: 14px; max-width: 520px; }
.form label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.form input, .form textarea, .form select {
  background: #fff; border: 1px solid var(--line-strong); border-radius: 12px;
  color: var(--text); padding: 12px 14px; outline: none;
}
.form input:focus, .form textarea:focus, .form select:focus {
  border-color: rgba(234, 88, 12, 0.55); box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.12);
}
.form textarea { min-height: 120px; resize: vertical; }
.note { font-size: 13px; color: var(--dim); }
.note a { color: var(--amber); font-weight: 600; }

/* Footer */
.footer {
  border-top: 1px solid var(--line); padding: 48px 0 28px; margin-top: 24px;
  color: var(--dim); font-size: 14px; background: var(--bg-muted);
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; margin-bottom: 36px;
}
.footer h4 {
  color: var(--text); margin-bottom: 12px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; font-weight: 800;
}
.footer a { display: block; color: var(--muted); padding: 4px 0; font-weight: 500; }
.footer a:hover { color: var(--text); }
.footer-brand { font-weight: 800; color: var(--text); font-size: 18px; margin-bottom: 10px; }
.footer-brand span { color: var(--amber); }
.footer p { color: var(--muted); max-width: 36ch; }
.footer-bottom {
  border-top: 1px solid var(--line); padding-top: 18px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  background: var(--steel-soft); color: var(--steel); border: 1px solid rgba(3,105,161,.18);
}
.badge-soon { background: #f1f5f9; color: var(--muted); border-color: var(--line); }
.badge-live { background: var(--ok-soft); color: var(--ok); border-color: rgba(4,120,87,.22); }

@media (max-width: 900px) {
  .hero-grid, .split, .cards, .steps, .stats, .footer-grid { grid-template-columns: 1fr; }
  .cards.two, .stats { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(255,255,255,.98); border-bottom: 1px solid var(--line);
    padding: 12px 20px 18px; box-shadow: var(--shadow-sm);
  }
  .nav-links.open a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .hamburger { display: inline-flex; }
  .hero { padding-top: 36px; }
  .nav-cta .btn-secondary { display: none; }
}
@media (max-width: 560px) {
  .stats, .cards.two, .field-grid { grid-template-columns: 1fr; }
  .wrap, .nav-inner { width: min(var(--max), calc(100% - 28px)); }
}
