:root {
  --ink: #1a1a1a;
  --ink-soft: #333333;
  --muted: #666666;
  --surface: #ffffff;
  --surface-soft: #f5f5f5;
  --surface-alt: #fafafa;
  --line: #e0e0e0;
  --brand: #7a5e41;
  --brand-dark: #5c4530;
  --brand-deep: #4a3826;
  --brand-light: #e8e0d8;
  --success: #4a7c59;
  --warning: #c9a227;
  --error: #b54242;
  --info: #4a6fa5;
  --shadow: 0 20px 45px rgba(26, 26, 26, 0.14);
  --shadow-soft: 0 12px 24px rgba(26, 26, 26, 0.08);
  --radius: 8px;
  --radius-sm: 4px;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-logo: "Playfair Display", Georgia, serif;
  --container: 1280px;
  --pad: 24px;
  --header: 76px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  transform: translateY(-140%);
  padding: 10px 16px;
  color: #ffffff;
  background: var(--ink);
  border-radius: var(--radius);
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.shell {
  width: min(100% - 48px, var(--container));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  min-height: var(--header);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  transition: background 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  box-shadow: 0 8px 18px rgba(26, 26, 26, 0.08);
}

.header-shell {
  min-height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
}

.brand-name {
  color: var(--ink);
  font-family: var(--font-logo);
  font-size: 27px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
}

.brand-name span {
  color: var(--brand);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: var(--radius);
  color: currentColor;
  font-size: 14px;
  font-weight: 650;
}

.site-nav a:hover {
  color: var(--brand);
  background: transparent;
}

.site-header.is-scrolled .site-nav a:hover {
  background: transparent;
}

.site-nav .nav-cta {
  margin-left: 8px;
  color: #ffffff;
  background: var(--brand);
}

.site-nav .nav-cta:hover {
  color: #ffffff;
  background: var(--brand-dark);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  color: currentColor;
  background: transparent;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 88svh;
  display: flex;
  align-items: center;
  color: var(--ink);
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(250, 250, 250, 0.96) 0%, rgba(250, 250, 250, 0.9) 45%, rgba(250, 250, 250, 0.48) 100%),
    linear-gradient(0deg, rgba(122, 94, 65, 0.14), rgba(26, 26, 26, 0.03));
}

.hero-content {
  padding: 140px 0 58px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero h1,
.section-heading h2,
.two-column h2,
.demo-grid h2 {
  max-width: 860px;
  margin: 0;
  font-family: var(--font-body);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.hero h1 {
  max-width: 920px;
  font-size: 60px;
  font-weight: 300;
  line-height: 1.08;
}

.hero-lede {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: 20px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: #ffffff;
  background: var(--brand);
}

.button.primary:hover {
  background: var(--brand-dark);
}

.button.secondary {
  color: var(--brand);
  border-color: var(--brand);
  background: transparent;
}

.button.secondary:hover {
  background: rgba(122, 94, 65, 0.08);
}

.button.full {
  width: 100%;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 800px;
  margin: 46px 0 0;
}

.hero-proof div {
  padding: 18px 0 0;
  border-top: 1px solid rgba(122, 94, 65, 0.35);
}

.hero-proof dt {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
}

.hero-proof dd {
  margin: 4px 0 0;
  color: var(--muted);
}

.section,
.pain-section,
.product-section,
.implementation,
.faq-section,
.demo-section {
  padding: 92px 0;
}

.pain-section,
.implementation,
.demo-section {
  background: var(--surface-soft);
}

.two-column,
.product-grid,
.demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 64px;
  align-items: start;
}

.two-column h2,
.section-heading h2,
.demo-grid h2 {
  color: var(--ink);
  font-size: 44px;
}

.two-column p,
.section-heading p,
.demo-grid p {
  color: var(--ink-soft);
}

.pain-list {
  display: grid;
  gap: 12px;
}

.pain-list p {
  margin: 0;
  padding: 16px 18px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--brand);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 42px;
}

.section-heading p {
  max-width: 700px;
  margin: 18px 0 0;
  font-size: 18px;
}

.section-heading.compact {
  max-width: 860px;
}

.workflow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.workflow article {
  min-height: 250px;
  padding: 30px;
  border-right: 1px solid var(--line);
}

.workflow article:last-child {
  border-right: 0;
}

.workflow span {
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
}

.workflow h3,
.module-grid h3,
.confidence-grid h3 {
  margin: 12px 0 10px;
  font-size: 22px;
  line-height: 1.2;
}

.workflow p,
.module-grid p,
.confidence-grid p {
  margin: 0;
  color: var(--muted);
}

.product-section {
  color: #ffffff;
  background: var(--ink);
}

.product-section h2,
.product-section p {
  color: #ffffff;
}

.product-section .check-list {
  margin-top: 28px;
}

.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: rgba(255, 255, 255, 0.86);
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 14px;
  height: 7px;
  border-left: 3px solid var(--brand);
  border-bottom: 3px solid var(--brand-light);
  transform: rotate(-45deg);
}

.operations-board {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: #fafafa;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.board-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.board-header strong {
  display: block;
  font-size: 20px;
}

.board-header span:not(.status-pill) {
  color: var(--muted);
  font-size: 14px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  color: #ffffff;
  background: var(--brand);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.board-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.board-metrics div {
  padding: 22px;
  color: var(--ink);
  border-right: 1px solid var(--line);
}

.board-metrics div:last-child {
  border-right: 0;
}

.board-metrics strong {
  display: block;
  font-size: 32px;
  line-height: 1;
}

.board-metrics span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.board-table {
  color: var(--ink);
}

.board-row {
  display: grid;
  grid-template-columns: 0.7fr 1.4fr 0.8fr;
  gap: 12px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.board-row:last-child {
  border-bottom: 0;
}

.header-row {
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.image-band {
  background: #ffffff;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.image-grid figure {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.image-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.image-grid figcaption {
  min-height: 110px;
  padding: 18px;
  color: var(--ink-soft);
  font-weight: 650;
}

.module-grid,
.confidence-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.module-grid article,
.confidence-grid article {
  padding: 26px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-top: 5px solid var(--brand);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.module-grid article:nth-child(2n),
.confidence-grid article:nth-child(2n) {
  border-top-color: var(--brand-dark);
}

.module-grid article:nth-child(3n),
.confidence-grid article:nth-child(3n) {
  border-top-color: var(--brand-light);
}

.timeline {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  padding: 22px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.timeline span {
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.timeline strong {
  display: block;
  margin-top: 6px;
  font-size: 20px;
}

.timeline p {
  margin: 8px 0 0;
}

.security-section {
  background: var(--surface-alt);
}

.confidence-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.faq-section {
  background: #ffffff;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #ffffff;
}

.faq-item button {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  color: var(--ink);
  background: transparent;
  border: 0;
  text-align: left;
  font-weight: 800;
}

.faq-item button span {
  width: 14px;
  height: 14px;
  border-right: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(45deg);
  transition: transform 180ms ease;
  flex: 0 0 auto;
}

.faq-item.is-open button span {
  transform: rotate(225deg);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 180ms ease;
}

.faq-item.is-open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer p {
  overflow: hidden;
  margin: 0;
  padding: 0 20px;
}

.faq-item.is-open .faq-answer p {
  padding-bottom: 20px;
}

.demo-grid {
  align-items: center;
}

.demo-points {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.demo-points p {
  margin: 0;
  padding: 14px 16px;
  background: #ffffff;
  border-left: 5px solid var(--brand);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.demo-form {
  padding: 30px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-row {
  margin-bottom: 18px;
}

.form-row label {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid #cccccc;
  border-radius: var(--radius);
}

.form-row textarea {
  min-height: 118px;
  resize: vertical;
}

.form-row input[aria-invalid="true"],
.form-row select[aria-invalid="true"] {
  border-color: var(--error);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field-error {
  min-height: 20px;
  margin: 5px 0 0;
  color: var(--error);
  font-size: 13px;
}

.form-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.form-note.success {
  color: var(--success);
  font-weight: 800;
}

.form-note.error {
  color: var(--error);
  font-weight: 800;
}

.site-footer {
  color: #ffffff;
  background: var(--ink);
  padding: 60px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
}

.footer-brand {
  margin-bottom: 14px;
}

.site-footer p {
  max-width: 460px;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
}

.site-footer strong {
  display: block;
  margin-bottom: 12px;
}

.site-footer a:not(.brand) {
  display: block;
  min-height: 32px;
  color: rgba(255, 255, 255, 0.78);
}

.site-footer a:not(.brand):hover {
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 46px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

@media (max-width: 1040px) {
  .hero h1 {
    font-size: 48px;
  }

  .two-column,
  .product-grid,
  .demo-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .workflow,
  .module-grid,
  .image-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .confidence-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  :root {
    --header: 68px;
  }

  .shell {
    width: min(100% - 32px, var(--container));
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: var(--header);
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    color: var(--ink);
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    min-height: 48px;
  }

  .site-nav .nav-cta {
    margin-left: 0;
  }

  .hero {
    min-height: 86svh;
  }

  .hero-content {
    padding: 118px 0 42px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero-lede {
    font-size: 18px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-proof {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .section,
  .pain-section,
  .product-section,
  .implementation,
  .faq-section,
  .demo-section {
    padding: 66px 0;
  }

  .two-column h2,
  .section-heading h2,
  .demo-grid h2 {
    font-size: 34px;
  }

  .workflow,
  .module-grid,
  .image-grid,
  .confidence-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .workflow article {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .workflow article:last-child {
    border-bottom: 0;
  }

  .board-header,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .board-metrics,
  .board-row {
    grid-template-columns: 1fr;
  }

  .board-metrics div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .board-metrics div:last-child {
    border-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
