:root {
  --bg: #f7f7f3;
  --surface: #ffffff;
  --surface-muted: #f0f1ec;
  --text: #171915;
  --muted: #676b62;
  --line: #d9dbd3;
  --accent: #214b3d;
  --accent-hover: #18382e;
  --max: 1180px;
  --radius: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--text);
  color: #fff;
  padding: 10px 14px;
  z-index: 100;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }
.section { padding: 88px 0; }
.section-compact { padding: 64px 0; }
.border-top { border-top: 1px solid var(--line); }
.section-muted { background: var(--surface-muted); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247,247,243,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.nav-wrap { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { text-decoration: none; display: inline-flex; align-items: baseline; gap: 10px; white-space: nowrap; }
.brand-company { font-weight: 750; letter-spacing: -0.02em; }
.brand-product { color: var(--muted); font-size: .91rem; }
.site-nav { display: flex; align-items: center; gap: 28px; font-size: .94rem; }
.site-nav a { text-decoration: none; color: #363a34; }
.site-nav a:hover { color: var(--text); }
.nav-login { padding: 9px 14px; border: 1px solid #bfc3ba; border-radius: 7px; }
.nav-toggle { display: none; background: none; border: 0; width: 42px; height: 42px; padding: 8px; }
.nav-toggle span { display: block; height: 1.5px; background: var(--text); margin: 6px 0; }

.eyebrow {
  margin: 0 0 14px;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .11em;
  font-weight: 760;
  color: var(--accent);
}
.hero { padding-top: 96px; }
.hero-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 72px; align-items: center; }
.hero-copy { max-width: 590px; }
h1, h2, h3, p { margin-top: 0; }
h1 {
  font-size: clamp(3rem, 5.5vw, 5.6rem);
  line-height: .98;
  letter-spacing: -.055em;
  margin-bottom: 26px;
  font-weight: 770;
}
h2 {
  font-size: clamp(2rem, 3.5vw, 3.45rem);
  line-height: 1.07;
  letter-spacing: -.04em;
  margin-bottom: 22px;
  font-weight: 730;
}
h3 { font-size: 1.06rem; margin-bottom: 8px; letter-spacing: -.015em; }
.hero-lede { font-size: clamp(1.12rem, 1.7vw, 1.35rem); color: var(--muted); max-width: 620px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 7px;
  text-decoration: none;
  border: 1px solid transparent;
  font-weight: 680;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.button-primary { background: var(--accent); color: #fff; }
.button-primary:hover { background: var(--accent-hover); }
.button-secondary { border-color: #bfc3ba; background: transparent; color: var(--text); }
.button-secondary:hover { background: #fff; }

.product-shot {
  position: relative;
  overflow: hidden;
  border: 1px solid #cfd2ca;
  border-radius: var(--radius);
  background: #eceee8;
  min-height: 360px;
  box-shadow: 0 16px 44px rgba(25, 30, 24, .07);
}
.product-shot img { width: 100%; height: 100%; object-fit: cover; }
.product-shot img[src="/assets/dashboard-screenshot.png"] { position: relative; z-index: 2; }
.product-shot .shot-fallback { display: none; }
.product-shot.missing-shot .shot-fallback { display: flex; }
.product-shot.missing-shot img { display: none; }
.shot-fallback {
  position: absolute;
  inset: 0;
  align-items: flex-start;
  justify-content: flex-end;
  flex-direction: column;
  padding: 32px;
  background:
    linear-gradient(#d8dbd3 1px, transparent 1px),
    linear-gradient(90deg, #d8dbd3 1px, transparent 1px),
    #eceee8;
  background-size: 44px 44px;
}
.shot-fallback::before { content: ""; position: absolute; inset: 18px; border: 1px solid #c5c9bf; background: rgba(255,255,255,.58); }
.shot-fallback > * { position: relative; z-index: 1; }
.shot-fallback strong { font-size: 1.2rem; margin-bottom: 5px; }
.shot-fallback span:last-child { color: var(--muted); max-width: 460px; }
.shot-kicker { text-transform: uppercase; font-size: .72rem; letter-spacing: .1em; font-weight: 720; color: var(--accent); margin-bottom: 8px; }
.product-shot-large { min-height: 610px; margin-top: 42px; }

.value-intro { display: grid; grid-template-columns: 1.05fr .95fr; gap: 72px; align-items: start; }
.value-intro h2 { max-width: 650px; }
.value-list { border-top: 1px solid var(--line); }
.value-item { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 21px 0; border-bottom: 1px solid var(--line); }
.value-item span { color: var(--muted); font-size: .82rem; }
.value-item p { margin: 0; font-weight: 640; }

.section-heading { max-width: 820px; }
.section-heading.narrow { max-width: 780px; }
.section-heading > p:last-child { color: var(--muted); font-size: 1.08rem; max-width: 720px; }
.product-section { display: block; }
.capability-grid { margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.capability-grid > div { min-height: 170px; padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.36); }
.capability-grid p { color: var(--muted); margin: 0; }

.how-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: center; }
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; gap: 14px; }
.flow-step { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 22px; min-width: 0; }
.flow-step span { display: block; color: var(--muted); font-size: .78rem; margin-bottom: 38px; }
.flow-step strong { display: block; line-height: 1.25; margin-bottom: 6px; }
.flow-step small { color: var(--muted); line-height: 1.35; display: block; }
.flow-arrow { align-self: center; color: #858a80; }

.audience { max-width: 900px; }
.audience h2 { margin-bottom: 28px; }
.text-link { color: var(--accent); text-decoration: none; font-weight: 680; }
.text-link span { margin-left: 4px; }

.demo-section { background: var(--text); color: #fff; }
.demo-section .eyebrow { color: #b8d2c6; }
.demo-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: 78px; align-items: start; }
.demo-copy p:last-child { color: #b9beb7; max-width: 500px; }
.demo-form { background: #fff; color: var(--text); border-radius: 10px; padding: 30px; }
.form-row { margin-bottom: 18px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.demo-form label { display: block; font-weight: 640; font-size: .91rem; }
.optional { color: var(--muted); font-weight: 450; margin-left: 4px; }
.demo-form input, .demo-form select, .demo-form textarea {
  width: 100%;
  margin-top: 7px;
  border: 1px solid #c8ccc2;
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  padding: 11px 12px;
  outline: none;
}
.demo-form input, .demo-form select { min-height: 46px; }
.demo-form textarea { resize: vertical; min-height: 110px; }
.demo-form input:focus, .demo-form select:focus, .demo-form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(33,75,61,.1); }
.demo-form [aria-invalid="true"] { border-color: #a33d32; }
.submit-button { margin-top: 20px; min-width: 170px; }
.form-status { margin: 14px 0 0; min-height: 24px; font-size: .92rem; }
.form-status.success { color: #226642; }
.form-status.error { color: #9a332b; }
.form-note { color: var(--muted); font-size: .78rem; margin: 8px 0 0; }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.site-footer { padding: 30px 0 44px; background: var(--bg); }
.footer-grid { display: flex; justify-content: space-between; gap: 30px; align-items: flex-start; }
.footer-grid > div { display: flex; flex-direction: column; gap: 4px; }
.footer-grid > div span { color: var(--muted); font-size: .9rem; }
.footer-grid nav { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-grid nav a { text-decoration: none; color: var(--muted); font-size: .9rem; }
.footer-grid nav a:hover { color: var(--text); }

.legal-page { min-height: 70vh; padding: 76px 0; }
.legal-page .container { max-width: 780px; }
.legal-page p, .legal-page li { color: var(--muted); }

@media (max-width: 900px) {
  .section { padding: 72px 0; }
  .hero { padding-top: 72px; }
  .hero-grid, .value-intro, .how-grid, .demo-grid { grid-template-columns: 1fr; gap: 46px; }
  .hero-copy { max-width: 760px; }
  .product-shot { min-height: 480px; }
  .product-shot-large { min-height: 520px; }
  .capability-grid { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: 1fr; }
  .flow-arrow { transform: rotate(90deg); justify-self: center; }
  .flow-step span { margin-bottom: 24px; }
}

@media (max-width: 720px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .nav-wrap { min-height: 64px; }
  .brand-product { display: none; }
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    padding: 14px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 13px 8px; border-bottom: 1px solid var(--line); }
  .site-nav a:last-child { border-bottom: 0; }
  .nav-login { margin-top: 8px; border: 1px solid #bfc3ba !important; text-align: center; border-radius: 7px; }
  h1 { font-size: clamp(2.8rem, 14vw, 4.25rem); }
  h2 { font-size: clamp(2rem, 9vw, 3rem); }
  .hero-grid { gap: 38px; }
  .hero-actions { width: 100%; }
  .hero-actions .button { flex: 1 1 150px; }
  .product-shot, .product-shot-large { min-height: 300px; }
  .shot-fallback { padding: 22px; }
  .capability-grid { grid-template-columns: 1fr; }
  .capability-grid > div { min-height: 0; }
  .two-col { grid-template-columns: 1fr; gap: 18px; }
  .demo-form { padding: 22px; }
  .footer-grid { flex-direction: column; }
  .footer-grid nav { gap: 18px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
