:root {
  --primary: #5f7d69;
  --primary-dark: #405d4b;
  --primary-soft: #dfe9df;
  --secondary: #c98264;
  --secondary-dark: #a7654c;
  --info: #758e9b;
  --warning: #b88748;
  --bg: #f6f1e8;
  --paper: #fffdf8;
  --surface: #faf6ee;
  --mist: #eaf0e8;
  --ink: #2c3730;
  --text: #667b6e;
  --muted: #7b8276;
  --border: #e7ded1;
  --border-strong: #d8ccbd;
  --shadow-sm: 0 10px 30px rgb(65 79 63 / 0.07);
  --shadow-md: 0 18px 46px rgb(65 79 63 / 0.12);
  --shadow-lg: 0 28px 90px rgb(65 79 63 / 0.18);
  --radius: 8px;
  --max: 1180px;
  --header-height: 72px;
  color-scheme: light;
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
  -webkit-tap-highlight-color: rgb(95 125 105 / 0.14);
}

body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(180deg, rgb(255 253 248 / 0.82), rgb(246 241 232 / 0.98) 42%),
    var(--bg);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
  touch-action: manipulation;
}

button,
input,
textarea,
select {
  font: inherit;
  letter-spacing: 0;
}

button {
  border: 0;
  touch-action: manipulation;
}

section[id] {
  scroll-margin-top: calc(var(--header-height) + 18px);
}

::selection {
  color: var(--paper);
  background: var(--primary-dark);
}

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

.skip-link {
  position: fixed;
  inset: 12px auto auto 12px;
  z-index: 30;
  padding: 10px 14px;
  color: var(--paper);
  background: var(--primary-dark);
  border-radius: var(--radius);
  transform: translateY(-140%);
  transition: transform 180ms ease;
}

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

.site-header {
  position: fixed;
  top: 16px;
  left: clamp(16px, 4vw, 48px);
  right: clamp(16px, 4vw, 48px);
  z-index: 20;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 16px;
  color: var(--primary-dark);
  background: rgb(255 253 248 / 0.78);
  border: 1px solid rgb(255 253 248 / 0.42);
  border-radius: var(--radius);
  box-shadow: 0 16px 46px rgb(31 43 36 / 0.12);
  backdrop-filter: blur(20px) saturate(1.05);
  transition: box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
  background: rgb(255 253 248 / 0.94);
  border-color: rgb(231 222 209 / 0.72);
  box-shadow: var(--shadow-sm);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 148px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  object-fit: contain;
}

.brand-wordmark {
  width: 118px;
  height: auto;
  flex: 0 0 auto;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.site-nav a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  border-radius: var(--radius);
  padding: 0 14px;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--primary-dark);
  background: rgb(95 125 105 / 0.09);
  outline: 0;
}

.site-nav a:focus-visible,
.button:focus-visible,
.nav-toggle:focus-visible {
  outline: 3px solid rgb(201 130 100 / 0.38);
  outline-offset: 3px;
}

.site-nav .nav-cta {
  color: var(--paper);
  background: var(--primary);
  box-shadow: 0 10px 24px rgb(95 125 105 / 0.18);
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta:focus-visible {
  color: var(--paper);
  background: var(--primary-dark);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  color: var(--primary-dark);
  background: rgb(95 125 105 / 0.1);
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.hero {
  position: relative;
  min-height: 78svh;
  overflow: hidden;
  display: grid;
  align-items: center;
  isolation: isolate;
  color: var(--paper);
  background:
    linear-gradient(135deg, #24362d 0%, #405d4b 100%),
    var(--primary-dark);
}

.hero-media {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: -4;
  width: min(72vw, 1180px);
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.92) contrast(0.96);
  opacity: 0.58;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgb(31 43 36 / 0.98) 0%, rgb(31 43 36 / 0.95) 27%, rgb(31 43 36 / 0.68) 47%, rgb(31 43 36 / 0.28) 68%, rgb(31 43 36 / 0.08) 100%),
    linear-gradient(180deg, rgb(31 43 36 / 0.22) 0%, rgb(31 43 36 / 0.08) 18%, rgb(31 43 36 / 0.22) 100%);
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 160px;
  content: "";
  background: linear-gradient(180deg, rgb(246 241 232 / 0), var(--bg));
  pointer-events: none;
}

.hero-content {
  position: relative;
  isolation: isolate;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: calc(var(--header-height) + 28px) 0 42px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--secondary);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f0c7ad;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.04;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero h1 {
  max-width: 680px;
  margin-bottom: 12px;
  color: var(--paper);
  font-size: clamp(2.65rem, 5.5vw, 4.55rem);
  font-weight: 700;
}

.hero-kicker {
  max-width: 820px;
  margin-bottom: 12px;
  color: #fffaf0;
  font-size: clamp(1.35rem, 2.6vw, 2.2rem);
  font-weight: 600;
  line-height: 1.06;
}

.hero-copy {
  max-width: 660px;
  margin-bottom: 24px;
  color: rgb(255 253 248 / 0.88);
  font-size: clamp(1rem, 1.65vw, 1.16rem);
}

.hero-actions,
.final-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, color 180ms ease;
}

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

.button-primary {
  color: var(--paper);
  background: var(--primary);
  box-shadow: 0 18px 38px rgb(40 67 49 / 0.26);
}

.button-primary:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow-lg);
}

.button-secondary {
  color: var(--paper);
  background: rgb(255 253 248 / 0.13);
  border: 1px solid rgb(255 253 248 / 0.32);
}

.button-secondary:hover {
  background: rgb(255 253 248 / 0.2);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(720px, 100%);
  margin: 26px 0 0;
  overflow: hidden;
  border: 1px solid rgb(255 253 248 / 0.18);
  border-radius: var(--radius);
  background: rgb(255 253 248 / 0.16);
  backdrop-filter: blur(14px);
}

.hero-metrics div {
  padding: 16px;
  background: rgb(31 43 36 / 0.26);
}

.hero-metrics dt {
  margin-bottom: 4px;
  color: var(--paper);
  font-weight: 700;
}

.hero-metrics dd {
  margin: 0;
  color: rgb(255 253 248 / 0.78);
  font-size: 0.86rem;
}

.trust-strip {
  display: flex;
  justify-content: center;
  padding: 18px 20px;
  color: var(--primary-dark);
  background: var(--paper);
  border-block: 1px solid var(--border);
}

.trust-strip p {
  width: min(var(--max), 100%);
  margin: 0;
  font-size: 0.98rem;
  font-weight: 600;
  text-align: center;
}

.section {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(68px, 9vw, 112px) 0;
}

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

.section-heading-row {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.75fr);
  gap: 44px;
  align-items: end;
}

.section-heading h2,
.proof-panel h2,
.final-cta h2 {
  margin-bottom: 18px;
  font-size: clamp(1.75rem, 3.2vw, 2.8rem);
  font-weight: 700;
}

.section-heading p,
.proof-panel p,
.final-cta p {
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.problem-card,
.role-grid article {
  min-height: 260px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgb(255 253 248 / 0.68);
  box-shadow: var(--shadow-sm);
}

.problem-card {
  display: flex;
  flex-direction: column;
}

.problem-card-strong {
  color: var(--paper);
  background: linear-gradient(145deg, #385743, #527260);
  border-color: rgb(64 93 75 / 0.2);
}

.problem-card-strong h3,
.problem-card-strong .card-index {
  color: var(--paper);
}

.card-index {
  margin-bottom: auto;
  color: var(--secondary);
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
}

.problem-card h3,
.role-grid h3 {
  margin-bottom: 12px;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.16;
}

.problem-card p,
.role-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.problem-card.problem-card-strong p {
  color: rgb(255 253 248 / 0.9);
}

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

.command-card {
  min-height: 284px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgb(255 253 248 / 0.78);
  box-shadow: var(--shadow-sm);
}

.command-card-feature {
  grid-column: span 2;
  min-height: 284px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.58fr);
  align-items: center;
  color: var(--paper);
  background:
    linear-gradient(145deg, rgb(56 87 67 / 0.98), rgb(82 114 96 / 0.96)),
    var(--primary-dark);
  border-color: rgb(64 93 75 / 0.2);
  box-shadow: var(--shadow-lg);
}

.command-card h3 {
  margin-bottom: 10px;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  font-weight: 700;
  line-height: 1.12;
}

.command-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.command-card-feature h3,
.command-card-feature p,
.command-card-feature .eyebrow {
  color: var(--paper);
}

.command-card-feature p {
  max-width: 620px;
  color: rgb(255 253 248 / 0.84);
}

.workflow-badge {
  width: max-content;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  color: var(--primary-dark);
  background: var(--mist);
  border: 1px solid rgb(95 125 105 / 0.14);
  border-radius: var(--radius);
  font-size: 0.76rem;
  font-weight: 700;
}

.workflow-chain,
.mini-list {
  display: grid;
  gap: 8px;
}

.workflow-chain {
  width: min(320px, 100%);
  justify-self: end;
  grid-template-columns: 1fr;
  align-items: stretch;
}

.workflow-chain span {
  position: relative;
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 9px 12px 9px 34px;
  color: rgb(255 253 248 / 0.88);
  background: rgb(255 253 248 / 0.16);
  border: 1px solid rgb(255 253 248 / 0.16);
  border-radius: var(--radius);
  font-size: 0.78rem;
  font-weight: 700;
}

.workflow-chain span::before {
  position: absolute;
  left: 14px;
  width: 8px;
  height: 8px;
  content: "";
  background: var(--secondary);
  border-radius: 999px;
}

.mini-list span {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 9px 10px;
  color: var(--text);
  background: rgb(250 246 238 / 0.76);
  border: 1px solid rgb(231 222 209 / 0.62);
  border-radius: var(--radius);
  font-size: 0.88rem;
}

.mini-list span::before {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  content: "";
  background: var(--primary);
  border-radius: 999px;
}

.role-section {
  padding-top: 0;
}

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

.role-grid article {
  min-height: 0;
  background: rgb(255 253 248 / 0.78);
}

.role-icon {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 30px;
  place-items: center;
  color: var(--primary-dark);
  background: var(--mist);
  border: 1px solid rgb(95 125 105 / 0.12);
  border-radius: var(--radius);
}

.role-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.proof-section {
  width: 100%;
  max-width: none;
  padding-inline: 20px;
  background:
    linear-gradient(180deg, rgb(234 240 232 / 0.62), rgb(246 241 232 / 0.92)),
    var(--mist);
  border-block: 1px solid var(--border);
}

.proof-panel {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.82fr);
  gap: 54px;
  align-items: center;
}

.proof-list {
  display: grid;
  gap: 10px;
}

.proof-list div {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgb(255 253 248 / 0.76);
}

.proof-list strong,
.proof-list span {
  display: block;
}

.proof-list strong {
  margin-bottom: 5px;
  color: var(--primary-dark);
  font-size: 1.02rem;
}

.proof-list span {
  color: var(--muted);
}

.demo-section {
  padding-bottom: 72px;
}

.video-frame {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--ink);
  box-shadow: var(--shadow-lg);
}

.video-frame video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.final-cta {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto 24px;
  justify-content: space-between;
  padding: clamp(28px, 5vw, 48px);
  color: var(--paper);
  background:
    linear-gradient(135deg, rgb(64 93 75 / 0.98), rgb(95 125 105 / 0.96) 52%, rgb(117 142 155 / 0.9)),
    var(--primary-dark);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.final-cta div {
  max-width: 760px;
}

.final-cta .eyebrow,
.final-cta h2,
.final-cta p {
  color: var(--paper);
}

.final-cta p {
  margin-bottom: 0;
  color: rgb(255 253 248 / 0.82);
}

.final-cta .button-primary {
  flex: 0 0 auto;
  color: var(--primary-dark);
  background: var(--paper);
  box-shadow: 0 18px 34px rgb(33 47 39 / 0.24);
}

.final-cta .button-primary:hover {
  color: var(--paper);
  background: var(--secondary);
}

.site-footer {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 44px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex: 0 0 auto;
}

.site-footer p {
  margin: 0 auto 0 0;
}

.site-footer a {
  color: var(--primary-dark);
  font-weight: 700;
}

@media (max-width: 980px) {
  .site-header {
    top: 10px;
    left: 12px;
    right: 12px;
    height: 58px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 18px;
    right: 18px;
    display: grid;
    gap: 4px;
    padding: 10px;
    background: rgb(255 253 248 / 0.96);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .site-nav a {
    justify-content: center;
  }

  .hero-content {
    width: min(100% - 32px, var(--max));
  }

  .hero-media {
    width: 100%;
    opacity: 0.38;
    object-position: 58% center;
  }

  .hero-scrim {
    background:
      linear-gradient(90deg, rgb(31 43 36 / 0.98), rgb(31 43 36 / 0.88) 58%, rgb(31 43 36 / 0.52)),
      linear-gradient(180deg, rgb(31 43 36 / 0.16), rgb(31 43 36 / 0.26));
  }

  .section-heading-row,
  .proof-panel {
    grid-template-columns: 1fr;
  }

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

  .command-card-feature {
    grid-column: span 2;
    grid-template-columns: 1fr;
  }

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

@media (max-width: 700px) {
  :root {
    --header-height: 66px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .brand-wordmark {
    width: 108px;
  }

  .hero {
    min-height: 78svh;
  }

  .hero-content {
    padding-top: calc(var(--header-height) + 26px);
    padding-bottom: 34px;
  }

  .hero h1 {
    font-size: clamp(2.3rem, 10.5vw, 3rem);
  }

  .hero-kicker {
    font-size: clamp(1.24rem, 6.4vw, 1.65rem);
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-actions,
  .final-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 18px;
  }

  .hero-metrics div {
    padding: 10px;
  }

  .hero-metrics dt {
    font-size: 0.84rem;
  }

  .hero-metrics dd {
    font-size: 0.74rem;
  }

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

  .problem-grid,
  .role-grid {
    grid-template-columns: 1fr;
  }

  .problem-card,
  .role-grid article {
    min-height: 0;
  }

  .command-grid {
    grid-template-columns: 1fr;
  }

  .command-card,
  .command-card-feature {
    min-height: 0;
  }

  .command-card-feature {
    grid-column: auto;
  }

  .workflow-chain {
    width: 100%;
    justify-self: stretch;
  }

  .workflow-chain span {
    min-height: 42px;
  }

  .section-heading h2,
  .proof-panel h2,
  .final-cta h2 {
    font-size: 1.6rem;
  }

  .proof-section {
    padding-inline: 16px;
  }

  .final-cta {
    width: min(100% - 32px, var(--max));
  }

  .site-footer {
    width: min(100% - 32px, var(--max));
    align-items: flex-start;
    flex-direction: column;
  }
}

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

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

  .hero-media {
    display: none;
  }

  .hero {
    background-image:
      linear-gradient(90deg, rgb(35 47 39 / 0.9), rgb(47 67 55 / 0.72)),
      url("./public/media/hero-poster.jpg");
    background-size: cover;
    background-position: center;
  }
}
