/* BKV Demo — Airtable-inspired Design System */
:root {
  --navy: #181d26;
  --blue: #1b61c9;
  --blue-mid: #254fad;
  --blue-soft: #eaf1fb;
  --white: #ffffff;
  --surface: #f8fafc;
  --border: #e0e2e6;
  --text-weak: rgba(4, 14, 32, 0.69);
  --success: #006400;
  --warn: #b8860b;
  --danger: #b23a3a;
  --shadow-card: rgba(0,0,0,0.32) 0px 0px 1px, rgba(0,0,0,0.08) 0px 0px 2px, rgba(45,127,249,0.28) 0px 1px 3px, rgba(0,0,0,0.06) 0px 0px 0px 0.5px inset;
  --shadow-soft: rgba(15,48,106,0.05) 0px 0px 20px;
}

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

html, body {
  font-family: 'Inter', -apple-system, system-ui, 'Segoe UI', Roboto, sans-serif;
  color: var(--navy);
  background: var(--white);
  line-height: 1.35;
  letter-spacing: 0.08px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-mid); }

img { max-width: 100%; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.12px;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-mark {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--blue-mid));
  display: grid; place-items: center;
  color: white; font-size: 14px; font-weight: 900;
}
.nav ul { list-style: none; display: flex; gap: 28px; }
.nav a.nav-link { color: var(--navy); font-weight: 500; font-size: 15px; letter-spacing: 0.08px; }
.nav a.nav-link:hover { color: var(--blue); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.08px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}
.btn-primary {
  background: var(--blue);
  color: white;
  box-shadow: var(--shadow-card);
}
.btn-primary:hover { background: var(--blue-mid); color: white; }
.btn-ghost {
  background: var(--white);
  color: var(--navy);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--navy); }
.btn-sm { padding: 8px 14px; font-size: 14px; border-radius: 10px; }

/* Hero */
.hero {
  padding: 96px 0 64px;
  background: radial-gradient(ellipse at top, var(--blue-soft) 0%, var(--white) 55%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: white;
  border: 1px solid var(--border);
  color: var(--blue);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.07px;
  box-shadow: var(--shadow-soft);
}
.eyebrow .dot { width: 6px; height: 6px; background: var(--blue); border-radius: 50%; }
h1.display {
  font-size: 56px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 20px 0 20px;
}
.hero p.lead {
  font-size: 19px;
  line-height: 1.5;
  color: var(--text-weak);
  max-width: 540px;
}
.hero-cta { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero-trust { margin-top: 40px; color: var(--text-weak); font-size: 13px; }
.hero-logos { display: flex; gap: 24px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.hero-logos span { color: var(--navy); font-weight: 600; font-size: 14px; opacity: 0.55; }

/* Hero visual — Airtable-like card preview */
.hero-visual {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
  padding: 24px;
  overflow: hidden;
}
.hv-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.hv-title { font-weight: 600; font-size: 15px; }
.hv-tabs { display: flex; gap: 6px; }
.hv-tab { font-size: 12px; padding: 4px 10px; border-radius: 6px; background: var(--surface); color: var(--text-weak); }
.hv-tab.active { background: var(--blue-soft); color: var(--blue); font-weight: 500; }

.hv-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.9fr 0.7fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  align-items: center;
}
.hv-row.head { color: var(--text-weak); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.hv-row:last-child { border: none; }
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
}
.badge.new { background: #e8f0fe; color: var(--blue); }
.badge.hot { background: #fdecec; color: var(--danger); }
.badge.won { background: #e6f4ea; color: var(--success); }
.badge.plan { background: #fff6df; color: var(--warn); }

/* Sections */
section { padding: 88px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head h2 { font-size: 40px; font-weight: 800; letter-spacing: -0.3px; line-height: 1.15; }
.section-head p { margin-top: 16px; font-size: 18px; color: var(--text-weak); line-height: 1.5; }

/* Feature grid */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  transition: all 0.2s ease;
}
.feature:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
.feature .icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue);
  display: grid; place-items: center;
  font-size: 22px;
  margin-bottom: 18px;
}
.feature h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; letter-spacing: 0.1px; }
.feature p { color: var(--text-weak); font-size: 15px; line-height: 1.55; }

/* Benefits split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split .visual {
  background: linear-gradient(135deg, #f0f6ff 0%, #eaf1fb 100%);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  min-height: 380px;
}
.split h2 { font-size: 36px; line-height: 1.15; letter-spacing: -0.2px; font-weight: 800; }
.split .lead { margin: 18px 0 24px; color: var(--text-weak); font-size: 17px; line-height: 1.55; }
.check-list { list-style: none; }
.check-list li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  font-size: 16px;
}
.check-list li::before {
  content: "✓";
  color: var(--blue);
  font-weight: 700;
  flex-shrink: 0;
}

/* Pricing calculator */
.calc {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 36px;
  box-shadow: var(--shadow-card);
  max-width: 780px;
  margin: 0 auto;
}
.calc-row {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 28px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.calc-row:last-child { border: none; padding-top: 24px; }
.calc label { font-weight: 500; font-size: 15px; }
.calc-sub { color: var(--text-weak); font-size: 13px; margin-top: 2px; }
.calc input[type="range"] { width: 100%; accent-color: var(--blue); }
.calc .count {
  display: flex; align-items: baseline; gap: 6px;
  font-size: 18px; font-weight: 600;
}
.calc .count span.n { font-size: 28px; color: var(--blue); letter-spacing: -0.5px; }
.calc select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
}
.calc-result {
  background: var(--blue-soft);
  border-radius: 14px;
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.calc-result .label { color: var(--text-weak); font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; }
.calc-result .value { font-size: 32px; font-weight: 800; color: var(--blue); letter-spacing: -0.5px; }

/* Testimonials */
.t-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.t-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  background: var(--white);
}
.t-quote { font-size: 15px; line-height: 1.55; color: var(--navy); }
.t-meta {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  align-items: center;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--blue-mid)); color: white; display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.t-name { font-weight: 600; font-size: 14px; }
.t-role { color: var(--text-weak); font-size: 12px; }

/* Contact form */
.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
  box-shadow: var(--shadow-card);
  max-width: 720px;
  margin: 0 auto;
}
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 500; font-size: 14px; margin-bottom: 6px; letter-spacing: 0.08px; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  background: var(--white);
  color: var(--navy);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(27, 97, 201, 0.15);
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size: 12px; color: var(--text-weak); margin-top: 10px; }
.form-success {
  margin-top: 16px;
  background: #e6f4ea;
  color: var(--success);
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  display: none;
}
.form-success.show { display: block; }

/* Footer */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
  margin-top: 48px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
.foot-grid h5 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.7px; color: var(--text-weak); margin-bottom: 14px; }
.foot-grid ul { list-style: none; }
.foot-grid li { padding: 4px 0; font-size: 14px; }
.foot-grid a { color: var(--navy); }
.foot-grid a:hover { color: var(--blue); }
.foot-bottom {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-weak);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .split, .foot-grid, .features, .t-grid, .grid-2 { grid-template-columns: 1fr; }
  h1.display { font-size: 40px; }
  .section-head h2 { font-size: 30px; }
  .calc-row { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .hero { padding: 56px 0 32px; }
}
