* { box-sizing: border-box; }

:root {
  --bg: #f2f0ea;
  --ink: #171713;
  --muted: #68675f;
  --line: #d8d5cc;
  --card: #fffdf8;
  --accent: #a64b1e;
  --dark: #25251f;
  --sand: #d8c4a7;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: "DM Sans", system-ui, sans-serif;
  line-height: 1.5;
}

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

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

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.nav-cta {
  font-size: .92rem;
  font-weight: 700;
}

.hero {
  min-height: 720px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 84px;
}

.hero > * { min-width: 0; }

.eyebrow {
  margin: 0 0 18px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .75rem;
  font-weight: 700;
  color: var(--accent);
}

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

h1, h2 {
  font-family: "Manrope", "DM Sans", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.045em;
}

h1 {
  font-size: clamp(3rem, 4.8vw, 5.3rem);
  line-height: .98;
  margin-bottom: 28px;
}

h1 span { color: var(--accent); }

h2 {
  font-size: clamp(2.7rem, 5vw, 5.2rem);
  line-height: 1.02;
  margin-bottom: 24px;
}

h3 { font-size: 1.12rem; margin-bottom: 10px; }

.lede,
.supporting {
  max-width: 650px;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.65;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .93rem;
  border: 1px solid transparent;
}

.primary { background: var(--accent); color: white; }
.secondary { border-color: var(--line); background: rgba(255,255,255,.34); }
.large { min-height: 56px; padding-inline: 28px; }
.microcopy { color: var(--muted); font-size: .78rem; }

.viewer-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(38, 34, 27, .12);
}

.viewer-topbar {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 17px;
  border-bottom: 1px solid #e6e2d8;
}

.viewer-topbar div { display: flex; flex-direction: column; }
.viewer-topbar strong { font-size: .86rem; }
.viewer-topbar span { font-size: .71rem; color: var(--muted); }

.live-pill {
  background: #eee5d7;
  color: var(--accent) !important;
  padding: 6px 9px;
  border-radius: 999px;
  font-weight: 700;
}

.machine-scene {
  position: relative;
  height: 430px;
  overflow: hidden;
  background: linear-gradient(#d9d5cc 0 58%, #c3bfb6 58%);
}

.grid-floor {
  position: absolute;
  inset: 58% 0 0;
  background-image:
    linear-gradient(rgba(60,60,50,.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(60,60,50,.11) 1px, transparent 1px);
  background-size: 34px 34px;
  transform: perspective(300px) rotateX(58deg) scale(1.6);
  transform-origin: top;
}

.excavator {
  position: absolute;
  width: 320px;
  height: 220px;
  left: 50%;
  top: 55%;
  transform: translate(-50%, -50%) perspective(800px) rotateY(-8deg);
}

.track {
  position: absolute;
  width: 205px;
  height: 42px;
  bottom: 12px;
  background: #363832;
  border-radius: 34px;
  box-shadow: inset 0 0 0 7px #55574f;
}

.track-a { left: 22px; }
.track-b { left: 78px; bottom: 20px; opacity: .8; }

.body {
  position: absolute;
  width: 142px;
  height: 67px;
  background: #cb8d24;
  left: 64px;
  bottom: 52px;
  border-radius: 8px 18px 5px 5px;
}

.cab {
  position: absolute;
  width: 82px;
  height: 91px;
  left: 75px;
  bottom: 105px;
  background: #d39b34;
  border-radius: 12px 20px 3px 3px;
}

.cab::after {
  content: "";
  position: absolute;
  width: 55px;
  height: 52px;
  left: 13px;
  top: 12px;
  background: #505954;
  border-radius: 7px;
}

.boom {
  position: absolute;
  width: 155px;
  height: 24px;
  background: #d09a32;
  left: 165px;
  bottom: 148px;
  transform: rotate(-24deg);
  transform-origin: left center;
  border-radius: 12px;
}

.stick {
  position: absolute;
  width: 113px;
  height: 19px;
  background: #c68b28;
  right: -37px;
  top: 68px;
  transform: rotate(55deg);
  border-radius: 10px;
}

.bucket {
  position: absolute;
  width: 62px;
  height: 50px;
  right: -43px;
  bottom: 31px;
  background: #6d6659;
  clip-path: polygon(0 0, 100% 20%, 82% 100%, 16% 82%);
}

.pin {
  position: absolute;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 3px solid white;
  background: var(--accent);
  color: white;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(0,0,0,.16);
}

.p1 { left: 37%; top: 68%; }
.p2 { left: 45%; top: 34%; }
.p3 { right: 20%; top: 67%; }

.inspect-note {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  color: white;
  background: rgba(30,30,26,.73);
  padding: 8px 13px;
  border-radius: 999px;
  font-size: .72rem;
}

.viewer-footer {
  min-height: 52px;
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 0 16px;
  color: var(--muted);
  font-size: .72rem;
  border-top: 1px solid #e6e2d8;
}

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

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.proof-grid div {
  padding: 28px 30px;
  border-right: 1px solid var(--line);
}

.proof-grid div:last-child { border-right: 0; }

.proof-grid strong,
.proof-grid span { display: block; }
.proof-grid strong { margin-bottom: 4px; }
.proof-grid span { color: var(--muted); font-size: .86rem; }

.section { padding-top: 128px; padding-bottom: 128px; }
.section-heading { max-width: 820px; margin-bottom: 64px; }

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

.step {
  background: var(--card);
  padding: 30px;
  border-radius: 18px;
  border: 1px solid var(--line);
  min-height: 230px;
}

.step-no {
  display: block;
  color: var(--accent);
  margin-bottom: 64px;
  font-size: .82rem;
  font-weight: 700;
}

.step p { color: var(--muted); }

.use-case {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: start;
  border-top: 1px solid var(--line);
}

.inspection-card {
  background: var(--dark);
  color: white;
  padding: 30px;
  border-radius: 22px;
}

.card-label {
  color: #c8c6bc;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 30px;
}

.inspection-row {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255,255,255,.11);
}

.inspection-row:last-child { border-bottom: 0; }
.inspection-row span { color: #d98a61; font-size: .75rem; font-weight: 700; }
.inspection-row strong, .inspection-row small { display: block; }
.inspection-row small { color: #aaa99f; margin-top: 5px; line-height: 1.45; }

.expansion { padding-top: 32px; }

.expansion-card {
  background: var(--accent);
  color: white;
  border-radius: 28px;
  padding: clamp(36px, 7vw, 80px);
}

.expansion-card .eyebrow { color: #f0c5ae; }
.expansion-card > p {
  max-width: 760px;
  color: rgba(255,255,255,.76);
  font-size: 1.03rem;
}

.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.chips span {
  border: 1px solid rgba(255,255,255,.28);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: .78rem;
}

.cta {
  text-align: center;
  padding-top: 150px;
  padding-bottom: 150px;
}

.cta > p:not(.eyebrow):not(.microcopy) {
  color: var(--muted);
  max-width: 590px;
  margin: 0 auto 28px;
}

.cta .microcopy { margin-top: 14px; }

.signup-form { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; max-width: 650px; margin: 0 auto; }
.signup-form input { width: min(330px, 100%); min-height: 56px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); padding: 0 20px; font: inherit; outline: none; }
.signup-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(166,75,30,.12); }
.signup-form button { cursor: pointer; }
.signup-form button:disabled { cursor: default; opacity: .72; }
.form-message { flex-basis: 100%; min-height: 20px; margin: 4px 0 0; color: #a22d27; font-size: .82rem; }
.form-message.success { color: #28734c; }
.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; }

.footer {
  min-height: 90px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: .8rem;
}

@media (max-width: 900px) {
  .hero, .use-case { grid-template-columns: 1fr; }
  .hero { gap: 48px; min-height: auto; }
  .steps, .proof-grid { grid-template-columns: 1fr; }
  .proof-grid div { border-right: 0; border-bottom: 1px solid var(--line); }
  .proof-grid div:last-child { border-bottom: 0; }
}

@media (max-width: 620px) {
  .shell { width: min(100% - 24px, 1180px); }
  .nav { min-height: 64px; }
  .hero { padding-top: 52px; padding-bottom: 56px; }
  h1 { font-size: clamp(2.6rem, 11vw, 3.25rem); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .signup-form { flex-direction: column; align-items: stretch; }
  .signup-form input { width: 100%; }
  .machine-scene { height: 340px; }
  .viewer-footer { font-size: .65rem; gap: 9px; }
  .section { padding-top: 86px; padding-bottom: 86px; }
  .use-case { gap: 42px; }
  .footer { flex-direction: column; justify-content: center; gap: 4px; }
}
