:root {
  --ink: #111820;
  --ink-soft: #30404c;
  --paper: #f7f3ec;
  --surface: #fffaf2;
  --line: #dccfbd;
  --terra: #a9472a;
  --terra-dark: #7d2f1c;
  --sage: #587064;
  --focus: #1f5d8f;
  --shadow: 0 18px 50px rgba(17, 24, 32, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background: linear-gradient(180deg, rgba(255, 250, 242, 0.94), rgba(247, 243, 236, 0.98));
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 4rem);
  background: rgba(247, 243, 236, 0.9);
  border-bottom: 1px solid rgba(220, 207, 189, 0.85);
  backdrop-filter: blur(14px);
}

.brand,
.nav a,
.button {
  text-decoration: none;
}

.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 1rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.nav a:hover {
  color: var(--terra-dark);
}

.section {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2.75rem, 5.5vw, 4.75rem) 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(14rem, 0.6fr);
  align-items: center;
  gap: clamp(1.75rem, 5vw, 4rem);
  min-height: min(76vh, 640px);
  padding-top: clamp(2.25rem, 4.5vw, 4rem);
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--terra-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.08;
}

h1 {
  max-width: 19ch;
  font-size: clamp(2.05rem, 4.8vw, 4.2rem);
  letter-spacing: -0.015em;
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: auto;
}

h2 {
  max-width: 20ch;
  font-size: clamp(1.7rem, 3.4vw, 2.9rem);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h3 {
  font-size: 1.28rem;
}

p {
  margin: 0;
}

.hero__lead {
  max-width: 45rem;
  margin-top: 1.35rem;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 6px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

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

.button--primary {
  color: #fffdf8;
  background: var(--terra);
  border-color: var(--terra);
}

.button--primary:hover {
  background: var(--terra-dark);
  border-color: var(--terra-dark);
}

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

.button--secondary:hover {
  color: #fffdf8;
  background: var(--ink);
}

.hero__panel {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  color: #fffdf8;
  background: var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero__panel span {
  display: block;
  padding: 1rem;
  border: 1px solid rgba(255, 250, 242, 0.22);
  border-radius: 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(2rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
}

.problem-grid,
.cards,
.metrics {
  display: grid;
  gap: 1rem;
}

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

.problem-grid article,
.card,
.metrics article {
  padding: 1.25rem;
  background: rgba(255, 250, 242, 0.78);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.problem-grid p,
.card p,
.steps p,
.metrics p,
.lead-copy p {
  margin-top: 0.7rem;
  color: var(--ink-soft);
}

.solution-card {
  color: #fffdf8;
  background: var(--sage) !important;
  border-color: var(--sage) !important;
}

.solution-card p {
  color: rgba(255, 253, 248, 0.9);
}

.section-heading {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.section-heading .note {
  max-width: 42rem;
  color: var(--ink-soft);
}

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

.card {
  min-height: 10.5rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.steps li {
  position: relative;
  min-height: 11.5rem;
  padding: 1.25rem;
  background: var(--ink);
  border-radius: 8px;
  color: #fffdf8;
}

.steps span {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: #e2b9a5;
  font-weight: 900;
}

.steps p {
  color: rgba(255, 253, 248, 0.8);
}

.metrics-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.metrics strong {
  display: block;
  color: var(--terra-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height: 1;
}

.metrics span {
  display: block;
  margin-top: 0.7rem;
  font-weight: 900;
}

.team-card span {
  display: inline-flex;
  margin-bottom: 1.35rem;
  color: var(--terra-dark);
  font-weight: 900;
}

.lead-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(18rem, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.lead-copy p {
  max-width: 34rem;
  font-size: 1.08rem;
}

.lead-form {
  display: grid;
  gap: 1rem;
  padding: clamp(1rem, 3vw, 1.5rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.field {
  display: grid;
  gap: 0.4rem;
}

label {
  font-weight: 850;
}

input,
textarea {
  width: 100%;
  padding: 0.85rem 0.9rem;
  color: var(--ink);
  background: #fffdf8;
  border: 1px solid #b8a995;
  border-radius: 6px;
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--focus);
}

.form-status {
  min-height: 1.7rem;
  color: var(--ink-soft);
  font-weight: 800;
}

.form-status[data-state="success"] {
  color: #216447;
}

.form-status[data-state="error"] {
  color: #9b2c1b;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.7rem 1rem;
  padding: 1.5rem clamp(1rem, 4vw, 4rem);
  color: rgba(255, 253, 248, 0.8);
  background: var(--ink);
}

@media (max-width: 900px) {
  .hero,
  .split-section,
  .lead-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .section {
    width: min(100% - 1rem, 1120px);
    padding: 2.5rem 0;
  }

  h1 {
    font-size: clamp(1.85rem, 8.5vw, 2.7rem);
  }

  .hero__actions,
  .button {
    width: 100%;
  }

  .problem-grid,
  .cards--four,
  .steps,
  .metrics {
    grid-template-columns: 1fr;
  }

  .steps li {
    min-height: 12rem;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
