:root {
  color-scheme: light;
  --ink: #161719;
  --muted: #62676f;
  --line: #dfe3e8;
  --paper: #f4f7f6;
  --white: #ffffff;
  --accent: #0f8b8d;
  --accent-dark: #0a6468;
  --gold: #c99a45;
  --graphite: #22262b;
  --steel: #73808c;
  --green: #16765c;
  --shadow: 0 24px 80px rgba(22, 23, 25, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: var(--white);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0));
}

.brand,
.nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: block;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border-radius: 50%;
  background: #050607;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav {
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(12, 13, 15, 0.36);
  backdrop-filter: blur(16px);
}

.nav a {
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.88);
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.13);
  color: var(--white);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
}

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

.hero-media {
  background-image: url("assets/engine-import-hero.png");
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(4, 5, 7, 0.92), rgba(4, 5, 7, 0.58) 48%, rgba(4, 5, 7, 0.16)),
    linear-gradient(0deg, rgba(4, 5, 7, 0.88), rgba(4, 5, 7, 0.05) 46%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 148px 0 44px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 850px;
  margin-bottom: 20px;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.95;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

.hero-copy {
  max-width: 680px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 20px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 52px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.btn.primary {
  color: var(--white);
  background: var(--accent);
  box-shadow: 0 16px 36px rgba(15, 139, 141, 0.3);
}

.btn.primary:hover {
  background: var(--accent-dark);
}

.btn.secondary {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.1);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 850px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
}

.hero-stats div {
  padding: 22px;
  background: rgba(6, 7, 9, 0.35);
}

.hero-stats dt {
  font-size: 28px;
  font-weight: 900;
}

.hero-stats dd {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--ink);
  color: var(--white);
}

.strip div {
  padding: 22px clamp(18px, 3vw, 44px);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 800;
}

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 88px 0;
}

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

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

.section-heading p:not(.eyebrow),
.trust p,
.request-copy p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
  overflow-wrap: break-word;
}

.calc-warning {
  margin-top: 22px;
  padding: 16px 18px;
  border: 1px solid rgba(201, 154, 69, 0.42);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  color: #4d4435;
  background: rgba(201, 154, 69, 0.1);
  font-size: 15px;
  font-weight: 750;
  line-height: 1.55;
}

.selection {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 30px;
  align-items: start;
}

.selection .section-heading {
  grid-column: 1 / -1;
}

.selector,
.lead-form {
  display: grid;
  gap: 14px;
}

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

.selector .wide {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 8px;
  color: var(--graphite);
  font-size: 13px;
  font-weight: 850;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-weight: 650;
  outline: none;
}

input,
select {
  height: 54px;
  padding: 0 14px;
}

textarea {
  padding: 14px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(15, 139, 141, 0.12);
}

.quote-panel {
  padding: 28px;
  border-radius: 8px;
  background: var(--graphite);
  color: var(--white);
  box-shadow: var(--shadow);
}

.quote-label {
  color: #aeb6bf;
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.quote-panel strong {
  display: block;
  margin: 10px 0;
  font-size: 38px;
  line-height: 1;
}

.quote-panel p {
  color: #c8ced6;
  line-height: 1.55;
}

.quote-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 22px;
}

.quote-tags span {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #dfe7e7;
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 900;
}

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

.match-card {
  display: grid;
  gap: 16px;
  min-height: 250px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 16px 40px rgba(34, 38, 43, 0.08);
}

.match-card span {
  display: inline-flex;
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--accent-dark);
  background: rgba(15, 139, 141, 0.1);
  font-size: 12px;
  font-weight: 950;
}

.match-card h3 {
  margin: 20px 0 10px;
  font-size: 28px;
}

.match-card p {
  color: var(--muted);
  line-height: 1.55;
}

.match-card strong {
  align-self: end;
  color: var(--accent);
  font-size: 24px;
}

.match-card small {
  color: var(--steel);
  font-weight: 850;
  text-transform: uppercase;
}

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

.engine-card {
  min-height: 275px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.engine-card span {
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  background: #edf0f3;
  color: var(--steel);
  font-size: 12px;
  font-weight: 900;
}

.engine-card h3 {
  margin: 28px 0 10px;
  font-size: 24px;
}

.engine-card p {
  color: var(--muted);
  line-height: 1.55;
}

.engine-card strong {
  margin-top: auto;
  color: var(--accent);
  font-size: 20px;
}

.process {
  width: 100%;
  padding-left: max(18px, calc((100% - 1180px) / 2));
  padding-right: max(18px, calc((100% - 1180px) / 2));
  background: var(--white);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  padding: 0;
  margin: 0;
  list-style: none;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.timeline li {
  min-height: 260px;
  padding: 26px;
  background: var(--white);
}

.timeline span {
  color: var(--gold);
  font-weight: 950;
}

.timeline h3 {
  margin: 54px 0 12px;
  font-size: 22px;
}

.timeline p {
  color: var(--muted);
  line-height: 1.55;
}

.trust,
.request {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 54px;
  align-items: center;
}

.trust-list {
  display: grid;
  gap: 12px;
}

.trust-list div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: var(--white);
}

.trust-list strong {
  font-size: 20px;
}

.trust-list span {
  color: var(--muted);
  text-align: right;
}

.request {
  width: 100%;
  margin-bottom: 0;
  padding-left: max(18px, calc((100% - 1180px) / 2));
  padding-right: max(18px, calc((100% - 1180px) / 2));
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(22, 23, 25, 0.96), rgba(22, 23, 25, 0.82)),
    url("assets/engine-import-hero.png") center / cover;
}

.request-copy p {
  color: rgba(255, 255, 255, 0.76);
}

.lead-form {
  padding: 28px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.lead-form .btn {
  width: 100%;
}

.lead-form .btn:disabled {
  cursor: wait;
  opacity: 0.7;
}

.form-status {
  min-height: 22px;
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

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

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

.footer {
  overflow: hidden;
  padding: 24px clamp(8px, 3vw, 28px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #090a0c;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
}

.footer-legal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-width: 0;
  white-space: nowrap;
}

.footer-legal strong {
  flex: 0 0 auto;
  color: var(--white);
  font-weight: 900;
}

.legal-registry {
  display: flex;
  gap: 22px;
}

.footer-legal > * {
  min-width: 0;
  overflow-wrap: break-word;
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
  }

  .selection,
  .trust,
  .request {
    grid-template-columns: 1fr;
  }

  .quote-panel {
    order: 3;
  }

  .strip,
  .engine-grid,
  .timeline,
  .matches {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    grid-template-columns: auto;
    justify-content: start;
    padding: 14px 18px;
  }

  .brand span:last-child {
    display: none;
  }

  .hero {
    min-height: auto;
    align-items: end;
  }

  .hero-media {
    background-position: 58% center;
  }

  .hero-content {
    width: calc(100vw - 36px);
    max-width: calc(100vw - 36px);
    margin-left: 18px;
    margin-right: 18px;
    padding-top: 86px;
    padding-bottom: 24px;
  }

  h1 {
    max-width: 360px;
    margin-bottom: 16px;
    font-size: 31px;
    line-height: 1.04;
  }

  .hero-copy {
    max-width: 360px;
    margin-bottom: 22px;
    font-size: 16px;
    line-height: 1.48;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 360px;
    margin-bottom: 18px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-stats {
    max-width: 360px;
  }

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

  .strip,
  .selector,
  .engine-grid,
  .timeline,
  .matches {
    grid-template-columns: 1fr;
  }

  .hero-stats div {
    padding: 12px 10px;
  }

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

  .hero-stats dd {
    font-size: 11px;
    line-height: 1.25;
  }

  .section {
    width: auto;
    margin-left: 18px;
    margin-right: 18px;
    padding: 64px 0;
  }

  .section-heading,
  .request-copy {
    width: 100%;
    max-width: 100%;
  }

  .process,
  .request {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 18px;
    padding-right: 18px;
  }

  .selection,
  .trust,
  .request {
    display: block;
  }

  .quote-panel,
  .lead-form,
  .trust-list {
    margin-top: 24px;
  }

  .section-heading p:not(.eyebrow),
  .trust p,
  .request-copy p {
    width: calc(100vw - 36px);
    max-width: calc(100vw - 36px);
    font-size: 16px;
    line-height: 1.6;
  }

  h2 {
    font-size: 29px;
    line-height: 1.06;
  }

  .trust-list div,
  .footer {
    display: grid;
    text-align: left;
  }

  .footer {
    display: block;
    padding: 22px 18px 24px;
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
  }

  .footer-legal {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    white-space: normal;
  }

  .legal-address {
    display: grid;
    gap: 1px;
    max-width: 330px;
  }

  .legal-registry {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 14px;
    max-width: 330px;
  }

  .footer-legal strong {
    font-size: 15px;
  }

  .trust-list span {
    text-align: left;
  }
}
