:root {
  --ink: #17211d;
  --muted: #5b675f;
  --paper: #f6f8f4;
  --white: #ffffff;
  --leaf: #2f6f4e;
  --leaf-dark: #1e4c3a;
  --moss: #8ca45e;
  --clay: #a94e37;
  --soil: #7b3c2f;
  --water: #2f6d7e;
  --steel: #4d5d5b;
  --sun: #d0a13d;
  --line: rgba(23, 33, 29, 0.14);
  --shadow: 0 18px 45px rgba(14, 28, 21, 0.15);
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", "Noto Sans", "Roboto", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 5vw;
  color: var(--white);
  background: rgba(12, 23, 18, 0.66);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px);
  transition: background 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(12, 23, 18, 0.91);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 700;
}

.brand-mark {
  display: block;
  width: 42px;
  height: 42px;
  padding: 4px;
  object-fit: contain;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 8px;
  background: rgba(246, 248, 244, 0.95);
}

.brand-text {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.brand-company {
  color: #f6f8f4;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.05;
}

.brand-name {
  overflow: hidden;
  max-width: 260px;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  font-weight: 700;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--sun);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px auto;
  background: currentColor;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.language-button {
  display: inline-grid;
  min-width: 38px;
  min-height: 32px;
  place-items: center;
  border: 0;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.82);
  background: transparent;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.language-button.is-active {
  color: #122017;
  background: var(--sun);
}

.hero {
  position: relative;
  display: grid;
  min-height: 86svh;
  overflow: hidden;
  color: var(--white);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("assets/hero-ground-cover.jpg");
  background-position: center;
  background-size: cover;
  transform: scale(1.01);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(9, 18, 15, 0.78), rgba(9, 18, 15, 0.4) 48%, rgba(9, 18, 15, 0.14)),
    linear-gradient(0deg, rgba(9, 18, 15, 0.7), rgba(9, 18, 15, 0.06) 36%);
}

.hero-content {
  position: relative;
  z-index: 1;
  align-self: end;
  width: min(1120px, 90vw);
  margin: 0 auto;
  padding: 148px 0 52px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--sun);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 790px;
  margin: 0;
  font-size: 64px;
  line-height: 1.08;
  font-weight: 800;
}

.hero-lede {
  max-width: 680px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button.primary {
  color: #112017;
  background: var(--sun);
  box-shadow: 0 12px 25px rgba(208, 161, 61, 0.24);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.09);
}

.button.ghost {
  color: var(--leaf-dark);
  border-color: var(--line);
  background: var(--white);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 760px;
  margin: 42px 0 0;
}

.hero-stats div {
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.hero-stats dt {
  margin: 0;
  color: #f6f2d7;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 800;
}

.hero-stats dd {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.proof-strip p {
  margin: 0;
  padding: 22px 5vw;
  background: var(--white);
  color: var(--leaf-dark);
  font-weight: 800;
  text-align: center;
}

.section {
  padding: 90px 0;
}

.section-inner {
  width: min(1120px, 90vw);
  margin: 0 auto;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: 70px;
  align-items: start;
}

h2 {
  margin: 0;
  font-size: 42px;
  line-height: 1.18;
}

h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
}

p {
  margin: 0;
}

.copy-stack {
  display: grid;
  gap: 24px;
  color: var(--muted);
  font-size: 18px;
}

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

.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--ink);
}

.check-list li::before {
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 15px;
  height: 2px;
  content: "";
  background: var(--clay);
}

.solution-section,
.roadmap-section {
  background: var(--white);
}

.section-heading {
  display: grid;
  gap: 10px;
  max-width: 790px;
  margin-bottom: 36px;
}

.section-heading.narrow {
  max-width: 720px;
}

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

.solution-card,
.roadmap article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.solution-card {
  min-height: 280px;
  padding: 26px;
}

.card-index {
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--clay);
  font-size: 14px;
  font-weight: 800;
}

.solution-card h3,
.roadmap h3 {
  margin-bottom: 12px;
}

.solution-card p,
.roadmap p {
  color: var(--muted);
}

.machine-section {
  color: var(--white);
  background: var(--leaf-dark);
}

.machine-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
  gap: 56px;
  align-items: center;
}

.machine-copy {
  display: grid;
  gap: 22px;
}

.machine-copy p:not(.section-kicker) {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.text-link {
  justify-self: start;
  color: #f2d484;
  font-weight: 800;
  border-bottom: 2px solid currentColor;
}

.priority-panel {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

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

.priority-list li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 46px;
  padding: 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.priority-list span {
  color: var(--sun);
  font-weight: 800;
}

.scope-section {
  background: #eef3ec;
}

.scope-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.tab-button {
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--steel);
  background: var(--white);
  font-weight: 800;
  cursor: pointer;
}

.tab-button.is-active {
  color: var(--white);
  border-color: var(--leaf);
  background: var(--leaf);
}

.tab-panels {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.tab-panel {
  min-height: 210px;
  padding: 34px;
}

.tab-panel p {
  max-width: 760px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 18px;
}

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

.roadmap article {
  min-height: 230px;
  padding: 24px;
}

.roadmap span {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--water);
  font-size: 14px;
  font-weight: 800;
}

.planner-section {
  background: #20342e;
  color: var(--white);
}

.planner-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(300px, 0.7fr) minmax(300px, 0.88fr);
  gap: 24px;
  align-items: start;
}

.planner-copy {
  display: grid;
  gap: 18px;
}

.planner-copy p:not(.section-kicker) {
  color: rgba(255, 255, 255, 0.78);
}

.planner-form,
.planner-result {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.planner-form {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.planner-form label {
  display: grid;
  gap: 7px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 800;
}

.planner-form select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
}

.form-button {
  width: 100%;
  margin-top: 6px;
}

.planner-result {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.result-label {
  margin-bottom: 8px;
  color: #f2d484;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

#brief-output {
  min-height: 260px;
  margin: 0;
  overflow: auto;
  white-space: pre-wrap;
  color: rgba(255, 255, 255, 0.88);
  font-family: inherit;
  line-height: 1.55;
}

.copy-status {
  min-height: 22px;
  color: #f2d484;
  font-size: 14px;
}

.site-footer {
  padding: 26px 0;
  color: var(--white);
  background: #111a17;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.footer-inner a {
  color: #f2d484;
  font-weight: 800;
}

@media (max-width: 980px) {
  .site-header {
    padding: 14px 5vw;
  }

  .nav-toggle {
    display: grid;
    order: 3;
  }

  .language-switcher {
    order: 2;
    margin-left: auto;
  }

  .site-nav {
    position: absolute;
    order: 4;
    top: calc(100% + 1px);
    right: 5vw;
    left: 5vw;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(12, 23, 18, 0.96);
  }

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

  .site-nav a {
    padding: 12px;
  }

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

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

  .two-column,
  .machine-layout,
  .planner-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 700px) {
  .hero {
    min-height: 88svh;
  }

  .hero-content {
    padding-top: 128px;
    padding-bottom: 36px;
  }

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

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

  .hero-stats,
  .proof-strip,
  .solution-grid,
  .roadmap {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    gap: 10px;
    margin-top: 30px;
  }

  .hero-stats dt {
    font-size: 20px;
  }

  .section {
    padding: 64px 0;
  }

  h2 {
    font-size: 32px;
  }

  .solution-card,
  .roadmap article {
    min-height: auto;
  }

  .tab-panel {
    padding: 24px;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .brand-name {
    max-width: 112px;
  }

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

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

  .button {
    width: 100%;
  }
}
