:root {
  --blue-950: #101c2a;
  --blue-900: #162537;
  --blue-800: #20344b;
  --green-700: #23734d;
  --green-600: #2f8a5f;
  --orange-600: #d96f1f;
  --orange-500: #ec8330;
  --sand-100: #f4f0e6;
  --stone-100: #f7f8f6;
  --stone-200: #e8ebe4;
  --stone-500: #657066;
  --ink: #18212b;
  --muted: #69717a;
  --white: #ffffff;
  --line: rgba(24, 33, 43, 0.12);
  --shadow: 0 18px 45px rgba(14, 28, 43, 0.16);
  --radius: 8px;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--stone-100);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
}

body.modal-open {
  overflow: hidden;
}

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

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

button {
  cursor: pointer;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 72px;
  padding: 12px 34px;
  color: var(--white);
  background: rgba(16, 28, 42, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--white);
  background: linear-gradient(135deg, var(--green-600), var(--orange-600));
  border-radius: var(--radius);
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 18px;
}

.brand small {
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
}

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

.nav a {
  min-height: 40px;
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.78);
  border-radius: var(--radius);
}

.nav-button {
  min-height: 40px;
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
  border: 0;
  border-radius: var(--radius);
  font-weight: 700;
}

.nav a:hover,
.nav a:focus-visible,
.nav-button:hover,
.nav-button:focus-visible {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.phone-link {
  min-height: 42px;
  padding: 10px 14px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  font-weight: 700;
  white-space: nowrap;
}

.hero {
  min-height: 74vh;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(9, 18, 28, 0.88) 0%, rgba(9, 18, 28, 0.58) 43%, rgba(9, 18, 28, 0.08) 100%),
    url("assets/hero-harvest.png") center / cover no-repeat;
}

.hero-inner,
.section-shell {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 74vh;
  padding: 74px 0 64px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #f3bd75;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--green-700);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 720px;
  font-size: 68px;
  font-weight: 850;
}

h2 {
  font-size: 36px;
  font-weight: 820;
}

h3 {
  font-size: 19px;
  font-weight: 780;
}

.hero-copy {
  max-width: 690px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  text-align: center;
}

.button-primary {
  color: var(--white);
  background: var(--orange-600);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--orange-500);
  outline: none;
}

.button-secondary {
  color: var(--white);
  background: var(--green-700);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: var(--green-600);
  outline: none;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 190px));
  gap: 12px;
  margin: 38px 0 0;
}

.hero-stats div {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
}

.hero-stats dt {
  color: var(--white);
  font-size: 28px;
  font-weight: 850;
}

.hero-stats dd {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.intent-band {
  padding: 28px 0;
  background: var(--blue-900);
}

.intent-layout {
  display: grid;
  grid-template-columns: minmax(250px, 0.72fr) minmax(520px, 1.28fr);
  gap: 30px;
  align-items: center;
  color: var(--white);
}

.intent-layout h2 {
  max-width: 520px;
  font-size: 30px;
}

.quick-form {
  display: grid;
  grid-template-columns: 160px 1.3fr 1fr 1fr auto;
  gap: 10px;
  align-items: end;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  min-height: 48px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
}

.segment {
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
  border: 0;
  border-radius: 6px;
  font-weight: 800;
}

.segment.active {
  color: var(--blue-950);
  background: var(--white);
}

label {
  display: grid;
  gap: 7px;
}

label span {
  color: currentColor;
  font-size: 12px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--orange-600);
  box-shadow: 0 0 0 3px rgba(217, 111, 31, 0.16);
  outline: none;
}

.form-submit {
  width: 100%;
}

.categories {
  padding: 18px 0;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.category-row {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.category-chip {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 9px 13px;
  color: var(--blue-900);
  background: var(--stone-100);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 800;
}

.category-chip.active,
.category-chip:hover,
.category-chip:focus-visible {
  color: var(--white);
  background: var(--blue-900);
  outline: none;
}

.catalog-section,
.workflow,
.manager-section,
.final-cta {
  padding: 72px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 24px;
}

.section-heading p {
  max-width: 450px;
  margin: 0;
  color: var(--muted);
}

.catalog-tools {
  display: grid;
  grid-template-columns: 1.35fr 220px 260px;
  gap: 12px;
  margin-bottom: 22px;
}

.catalog-tools label span {
  color: var(--muted);
}

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

.equipment-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 26px rgba(17, 31, 45, 0.08);
}

.equipment-image {
  position: relative;
  height: 230px;
  overflow: hidden;
  background: var(--stone-200);
}

.equipment-image img {
  height: 100%;
  object-fit: cover;
}

.status-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 9px;
  color: var(--blue-950);
  background: rgba(255, 255, 255, 0.88);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 850;
}

.card-body {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.card-body h3 {
  min-height: 42px;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.price {
  color: var(--blue-950);
  font-size: 22px;
  font-weight: 850;
}

.score-pill {
  padding: 5px 8px;
  color: var(--green-700);
  background: rgba(47, 138, 95, 0.1);
  border: 1px solid rgba(47, 138, 95, 0.2);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 850;
}

.spec-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.button-ghost {
  color: var(--blue-900);
  background: var(--stone-100);
  border-color: var(--line);
}

.button-ghost:hover,
.button-ghost:focus-visible {
  background: var(--stone-200);
  outline: none;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 44px;
  text-align: center;
  color: var(--muted);
  background: var(--white);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.workflow {
  color: var(--white);
  background: var(--blue-950);
}

.workflow .section-heading p,
.workflow .eyebrow {
  color: rgba(255, 255, 255, 0.74);
}

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

.step-card {
  padding: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
}

.step-card span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  color: var(--blue-950);
  background: #f3bd75;
  border-radius: var(--radius);
  font-weight: 850;
}

.step-card p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.74);
}

.trust {
  padding: 70px 0;
  background: var(--sand-100);
}

.trust-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: 40px;
}

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

.trust-list article {
  padding: 18px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(24, 33, 43, 0.1);
  border-radius: var(--radius);
}

.trust-list p {
  margin: 10px 0 0;
  color: var(--muted);
}

.manager-section {
  background: var(--stone-100);
}

.login-section {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 72px);
  padding: 56px 0;
  background:
    linear-gradient(135deg, rgba(16, 28, 42, 0.9), rgba(31, 73, 61, 0.88)),
    url("assets/hero-harvest.png") center / cover no-repeat;
}

.login-card {
  display: grid;
  gap: 18px;
  width: min(480px, calc(100% - 28px));
  padding: 30px;
  background: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.login-card h1 {
  color: var(--blue-950);
  font-size: 38px;
}

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

.login-error {
  min-height: 22px;
  color: #a33200;
  font-weight: 800;
}

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

.metric {
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.metric strong {
  display: block;
  color: var(--blue-950);
  font-size: 32px;
  line-height: 1;
}

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

.manager-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(300px, 0.72fr);
  gap: 18px;
  margin-bottom: 18px;
}

.admin-form,
.pipeline-panel,
.data-panel {
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.admin-form h3,
.pipeline-panel h3,
.data-panel h3 {
  margin-bottom: 16px;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.admin-form label span,
.data-panel {
  color: var(--muted);
}

.admin-form textarea {
  margin-bottom: 14px;
}

.pipeline-panel p {
  margin: 0 0 18px;
  color: var(--muted);
}

.liquidation-box {
  display: grid;
  gap: 9px;
  padding: 16px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-900), #2a5549);
  border-radius: var(--radius);
}

.liquidation-box strong {
  font-size: 18px;
}

.liquidation-box span {
  color: rgba(255, 255, 255, 0.78);
}

.data-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.panel-head h3 {
  margin: 0;
  color: var(--ink);
}

.panel-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  color: var(--ink);
  font-size: 14px;
}

th,
td {
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 8px;
  color: var(--blue-900);
  background: var(--stone-100);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.status.hot {
  color: #8c3b00;
  background: #fff0dd;
}

.table-action {
  min-height: 34px;
  padding: 7px 10px;
  color: var(--white);
  background: var(--green-700);
  border: 0;
  border-radius: var(--radius);
  font-weight: 800;
}

.final-cta {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-900), #1f493d);
}

.final-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}

.final-layout p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.78);
}

.equipment-modal {
  width: min(980px, calc(100% - 28px));
  max-height: min(86vh, 860px);
  padding: 0;
  color: var(--ink);
  background: var(--white);
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.equipment-modal::backdrop {
  background: rgba(6, 16, 25, 0.74);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 28px;
  line-height: 1;
}

.modal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.72fr);
}

.modal-gallery {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 520px;
  background: var(--stone-200);
}

.modal-image {
  min-height: 520px;
  background: var(--stone-200);
}

.modal-image img {
  height: 100%;
  object-fit: cover;
}

.modal-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  background: rgba(16, 28, 42, 0.9);
}

.thumb-button {
  height: 70px;
  padding: 0;
  overflow: hidden;
  background: var(--stone-200);
  border: 2px solid transparent;
  border-radius: 6px;
}

.thumb-button.active,
.thumb-button:hover,
.thumb-button:focus-visible {
  border-color: var(--orange-500);
  outline: none;
}

.thumb-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-info {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 34px;
}

.modal-info p {
  margin: 0;
  color: var(--muted);
}

.modal-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.modal-specs div {
  padding: 12px;
  background: var(--stone-100);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.modal-specs span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.modal-specs strong {
  display: block;
  margin-top: 3px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  max-width: min(420px, calc(100% - 36px));
  padding: 14px 16px;
  color: var(--white);
  background: var(--blue-950);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .topbar {
    padding: 12px 22px;
  }

  .nav {
    display: none;
  }

  .quick-form,
  .intent-layout,
  .manager-layout,
  .trust-layout,
  .final-layout {
    grid-template-columns: 1fr;
  }

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

  .form-submit,
  .segmented {
    grid-column: 1 / -1;
  }

  .catalog-grid,
  .steps-grid,
  .trust-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .data-panels {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .topbar {
    min-height: 66px;
    gap: 10px;
    padding: 10px 14px;
  }

  .brand {
    min-width: 0;
  }

  .brand small,
  .nav {
    display: none;
  }

  .phone-link {
    display: inline-flex;
    min-height: 38px;
    padding: 8px 10px;
    font-size: 13px;
  }

  .hero {
    min-height: 70vh;
    background-position: 57% center;
  }

  .hero-inner,
  .section-shell {
    width: min(100% - 28px, 1180px);
  }

  .hero-inner {
    min-height: 70vh;
    padding: 58px 0 42px;
  }

  h1 {
    font-size: 46px;
  }

  h2 {
    font-size: 28px;
  }

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

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .intent-band,
  .catalog-section,
  .workflow,
  .manager-section,
  .final-cta,
  .trust {
    padding-top: 46px;
    padding-bottom: 46px;
  }

  .quick-form,
  .catalog-tools,
  .catalog-grid,
  .steps-grid,
  .trust-list,
  .dashboard-grid,
  .admin-form-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: grid;
  }

  .equipment-image {
    height: 210px;
  }

  .card-actions {
    grid-template-columns: 1fr;
  }

  .modal-grid,
  .modal-specs {
    grid-template-columns: 1fr;
  }

  .modal-gallery,
  .modal-image {
    min-height: 300px;
  }

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

  .modal-info {
    padding: 24px 18px;
  }
}
