:root {
  color-scheme: light;
  --ink: #172427;
  --muted: #607074;
  --paper: #f4f7f6;
  --white: #ffffff;
  --deep: #071416;
  --navy: #12313b;
  --line: #d9e2e2;
  --green: #47a36f;
  --gold: #c8963e;
  --blue: #2878b8;
  --red: #c4514a;
  --shadow: 0 22px 70px rgba(7, 20, 22, 0.16);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

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

button,
input,
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;
  min-height: 82px;
  padding: 14px clamp(18px, 4vw, 54px);
  color: var(--white);
  background: rgba(7, 20, 22, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: clamp(260px, 28vw, 430px);
  font-weight: 800;
}

.brand img {
  width: clamp(250px, 27vw, 420px);
  height: auto;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.2vw, 26px);
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 700;
}

.main-nav a:hover {
  color: var(--white);
}

.nav-cta,
.button,
.payment-card button,
.demo-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 850;
  cursor: pointer;
}

.nav-cta,
.button.primary,
.payment-card button,
.demo-form button {
  color: #06120f;
  background: var(--green);
}

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

.hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  color: var(--white);
  background: var(--deep);
}

.hero-image,
.hero-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: 64% center;
  opacity: 0.72;
}

.hero-scrim {
  background:
    linear-gradient(90deg, rgba(7, 20, 22, 0.95) 0%, rgba(7, 20, 22, 0.82) 42%, rgba(7, 20, 22, 0.36) 100%),
    linear-gradient(0deg, rgba(7, 20, 22, 0.88), transparent 48%);
}

.hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(420px, 0.76fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  width: min(1440px, calc(100% - 40px));
  min-height: 760px;
  margin: 0 auto;
  padding: 116px 0 54px;
}

.hero-copy {
  max-width: 820px;
}

.eyebrow {
  margin: 0 0 13px;
  color: #81d9a2;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

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

h1 {
  margin: 0;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-copy p:not(.eyebrow) {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(17px, 1.55vw, 20px);
  line-height: 1.52;
}

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

.brand-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.brand-row span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 13px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 850;
}

.command-panel,
.app-shell,
.vin-console,
.demo-form {
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.command-panel {
  padding: 18px;
}

.panel-topline,
.app-toolbar,
.console-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.panel-topline span,
.micro,
.console-header span,
.status-pill {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 17px 0;
}

.metric-strip div {
  min-height: 74px;
  padding: 12px;
  background: #eef5f3;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.metric-strip strong {
  display: block;
  font-size: 25px;
  color: var(--navy);
}

.metric-strip span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.mini-board {
  display: grid;
  gap: 8px;
}

.bay-row {
  display: grid;
  grid-template-columns: 58px 1fr 0.82fr;
  gap: 8px;
  align-items: center;
}

.bay-row > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.job {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 7px 9px;
  border-radius: 7px;
  color: var(--white);
  font-size: 12px;
}

.blue { background: var(--blue); }
.green { background: var(--green); }
.amber { background: var(--gold); color: #201400; }
.red { background: var(--red); }

.payment-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  align-items: center;
  margin-top: 16px;
  padding: 15px;
  color: var(--white);
  background: var(--navy);
  border-radius: 8px;
}

.payment-card span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.payment-card strong {
  font-size: 24px;
}

.payment-card button {
  grid-row: 1 / span 2;
  grid-column: 2;
}

.trust-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-band div {
  min-height: 118px;
  padding: 28px clamp(18px, 4vw, 46px);
  background: var(--white);
}

.trust-band strong {
  display: block;
  color: var(--navy);
  font-size: 19px;
}

.trust-band span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.45;
}

section {
  padding: clamp(64px, 8vw, 104px) clamp(20px, 5vw, 72px);
}

.workspace-section,
.platform-stack-section,
.enterprise-section {
  background: var(--paper);
}

.features-section {
  color: var(--white);
  background: var(--deep);
  border-top: 8px solid var(--green);
  border-bottom: 8px solid var(--green);
}

.features-section h2 {
  color: var(--white);
}

.features-section .eyebrow {
  color: #81d9a2;
}

.data-section,
.crm-section,
.pos-section,
.demo-section {
  background: var(--white);
}

.section-heading {
  width: min(1000px, 100%);
  margin-bottom: 28px;
}

h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(31px, 3.4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow),
.payments-copy p,
.demo-section p {
  max-width: 940px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.62;
}

.app-shell {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 360px;
  min-height: 650px;
  overflow: hidden;
}

.app-sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 12px;
  color: var(--white);
  background: var(--deep);
}

.app-logo {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  border-radius: 8px;
  color: #06120f;
  background: var(--green);
  font-weight: 950;
}

.app-sidebar button {
  min-height: 42px;
  color: rgba(255, 255, 255, 0.7);
  background: transparent;
  border: 0;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.app-sidebar button.active,
.app-sidebar button:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.app-main {
  min-width: 0;
  padding: 22px;
  background: #fbfcfc;
}

.app-toolbar {
  padding-bottom: 18px;
}

.app-toolbar h3,
.ro-detail h3 {
  margin: 3px 0 0;
  color: var(--navy);
  font-size: 24px;
}

.toolbar-actions {
  display: flex;
  gap: 8px;
}

.view-toggle,
.manual-tabs button {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
  color: var(--muted);
  font-weight: 850;
  cursor: pointer;
}

.view-toggle.active,
.manual-tabs button.active {
  color: var(--white);
  border-color: var(--navy);
  background: var(--navy);
}

.calendar-grid {
  display: grid;
  grid-template-columns: 78px repeat(5, minmax(128px, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
}

.time-cell,
.day-head,
.cal-cell {
  min-height: 74px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.time-cell,
.day-head {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  color: var(--muted);
  background: #eef5f3;
  font-size: 12px;
  font-weight: 900;
}

.day-head {
  color: var(--navy);
}

.cal-cell {
  padding: 7px;
  background: #fff;
}

.cal-card {
  min-height: 58px;
  padding: 9px;
  border-left: 4px solid var(--blue);
  border-radius: 7px;
  background: #f4f8fb;
  font-size: 12px;
}

.cal-card strong,
.cal-card span {
  display: block;
}

.cal-card strong {
  color: var(--navy);
  line-height: 1.2;
}

.cal-card span {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 750;
}

.cal-card.green { color: inherit; background: #eff8f2; border-left-color: var(--green); }
.cal-card.amber { color: inherit; background: #fff8ea; border-left-color: var(--gold); }
.cal-card.red { color: inherit; background: #fff1ef; border-left-color: var(--red); }

.ro-detail {
  padding: 24px;
  border-left: 1px solid var(--line);
  background: #f7faf9;
}

.status-pill {
  display: inline-flex;
  padding: 7px 9px;
  color: #11331f;
  background: #dff3e7;
  border-radius: 999px;
}

.muted {
  color: var(--muted);
  line-height: 1.5;
}

.vehicle-card,
.approval-box {
  display: grid;
  gap: 5px;
  margin-top: 16px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.vehicle-card span,
.approval-box span {
  color: var(--muted);
  line-height: 1.45;
}

.estimate-lines {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.estimate-lines div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.data-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.62fr);
  gap: 22px;
}

.vin-console {
  padding: 22px;
  box-shadow: 0 12px 38px rgba(7, 20, 22, 0.1);
}

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

.decode-grid div,
.data-cards article,
.feature-grid article,
.pos-feature-grid article,
.message-board article,
.enterprise-grid article {
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.decode-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.decode-grid strong {
  display: block;
  margin-top: 4px;
  color: var(--navy);
}

.manual-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.labor-list {
  display: grid;
  gap: 8px;
}

.labor-list div {
  display: grid;
  grid-template-columns: 1fr 80px 100px;
  gap: 12px;
  align-items: center;
  padding: 13px;
  background: #f7faf9;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.labor-list b {
  color: var(--blue);
}

.data-cards,
.feature-grid,
.message-board,
.pos-feature-grid,
.stack-grid,
.enterprise-grid {
  display: grid;
  gap: 14px;
}

.data-cards article p,
.feature-grid p,
.message-board p,
.stack-grid p,
.enterprise-grid p {
  color: var(--muted);
  line-height: 1.55;
}

.pos-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.58fr) minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
}

.pos-terminal {
  padding: 22px;
  color: var(--white);
  background: var(--deep);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.receipt-head,
.receipt-total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.receipt-head span,
.receipt-total span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.receipt-head strong {
  color: #81d9a2;
}

.receipt-lines {
  display: grid;
  gap: 0;
  margin: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.receipt-lines div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.84);
}

.receipt-total {
  padding: 16px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.receipt-total strong {
  font-size: 28px;
}

.pos-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.pos-actions button {
  min-height: 42px;
  border: 0;
  border-radius: 7px;
  color: #06120f;
  background: var(--green);
  font-weight: 900;
}

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

.pos-feature-grid article {
  display: grid;
  align-content: start;
  gap: 8px;
  background: #fbfcfc;
}

.pos-feature-grid strong {
  color: var(--navy);
  font-size: 20px;
}

.pos-feature-grid span {
  color: var(--muted);
  line-height: 1.55;
}

.ai-phone-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: 18px;
  margin-top: 18px;
  padding: 24px;
  color: var(--white);
  background: var(--navy);
  border-radius: 8px;
  box-shadow: 0 12px 38px rgba(7, 20, 22, 0.12);
}

.ai-phone-panel h3 {
  margin: 0 0 10px;
  color: var(--white);
  font-size: 28px;
}

.ai-phone-panel p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
}

.phone-flow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.phone-flow span {
  min-height: 56px;
  display: flex;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-left: 3px solid var(--green);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  font-weight: 850;
}

.feature-grid,
.message-board,
.enterprise-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.stack-grid article {
  min-height: 300px;
  padding: 24px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--green);
  border-radius: 8px;
  background: var(--white);
}

.stack-grid span {
  color: var(--green);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stack-grid h3 {
  margin: 12px 0 10px;
  color: var(--navy);
  font-size: 24px;
  line-height: 1.12;
}

.feature-grid article span {
  color: var(--green);
  font-size: 13px;
  font-weight: 950;
}

.features-section .feature-grid article {
  border-color: rgba(255, 255, 255, 0.16);
  background: #f9fbfb;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

.feature-grid h3,
.enterprise-grid h3 {
  margin: 9px 0 8px;
  color: var(--navy);
  font-size: 20px;
}

.message-board article {
  background: #fbfcfc;
}

.message-board span {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.payments-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1fr);
  gap: 28px;
  align-items: center;
  color: var(--white);
  background: var(--navy);
}

.payments-section h2,
.payments-section .eyebrow {
  color: var(--white);
}

.payments-copy p {
  color: rgba(255, 255, 255, 0.78);
}

.payment-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.payment-flow div {
  min-height: 150px;
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.payment-flow span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: #06120f;
  background: var(--green);
  border-radius: 50%;
  font-weight: 950;
}

.payment-flow strong {
  display: block;
  margin-top: 42px;
  font-size: 17px;
  line-height: 1.25;
}

.demo-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.52fr);
  gap: 30px;
  align-items: start;
}

.demo-form {
  display: grid;
  gap: 14px;
  padding: 22px;
  box-shadow: 0 12px 38px rgba(7, 20, 22, 0.1);
}

.demo-form label {
  display: grid;
  gap: 7px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 850;
}

.demo-form input,
.demo-form select {
  width: 100%;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: #fbfcfc;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.76);
  background: var(--deep);
  font-size: 13px;
}

@media (max-width: 1180px) {
  .main-nav {
    display: none;
  }

  .hero-layout,
  .data-layout,
  .payments-section,
  .pos-layout,
  .ai-phone-panel,
  .demo-section {
    grid-template-columns: 1fr;
  }

  .app-shell {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .ro-detail {
    grid-column: 1 / -1;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .feature-grid,
  .message-board,
  .pos-feature-grid,
  .stack-grid,
  .enterprise-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header {
    position: sticky;
  }

  .brand {
    min-width: 0;
  }

  .brand img {
    width: min(248px, 70vw);
  }

  .brand span,
  .nav-cta {
    display: none;
  }

  .hero,
  .hero-layout {
    min-height: auto;
  }

  .hero-layout {
    padding-top: 58px;
  }

  .command-panel {
    padding: 14px;
  }

  .metric-strip,
  .trust-band,
  .decode-grid,
  .feature-grid,
  .message-board,
  .pos-feature-grid,
  .stack-grid,
  .enterprise-grid,
  .payment-flow {
    grid-template-columns: 1fr;
  }

  .app-shell {
    display: block;
  }

  .app-sidebar {
    flex-direction: row;
    overflow-x: auto;
  }

  .app-logo {
    flex: 0 0 48px;
    margin: 0;
  }

  .app-sidebar button {
    padding: 0 12px;
  }

  .app-toolbar,
  .panel-topline,
  .payment-card {
    align-items: stretch;
    flex-direction: column;
  }

  .calendar-grid {
    grid-template-columns: 64px repeat(5, minmax(118px, 1fr));
    overflow-x: auto;
  }

  .labor-list div {
    grid-template-columns: 1fr;
  }

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

  .phone-flow {
    grid-template-columns: 1fr;
  }

  .site-footer {
    display: grid;
  }
}
