:root {
  color-scheme: dark;
  --bg: #050505;
  --panel: #0c0c0d;
  --panel-2: #141211;
  --text: #f7f3ed;
  --muted: #b7aea4;
  --line: rgba(255, 255, 255, 0.14);
  --orange: #ff8a00;
  --orange-2: #ffb24b;
  --max: 1180px;
  --graphic-width: 864px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 85% 10%, rgba(255, 138, 0, 0.18), transparent 34rem),
    linear-gradient(135deg, #050505 0%, #0b0907 55%, #140b03 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.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;
}

.site-header,
.main,
.site-footer {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  width: 250px;
  height: 75px;
  text-decoration: none;
}

.nav-logo {
  display: block;
  width: 250px;
  height: 75px;
  border-radius: 4px;
  object-fit: contain;
}

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

.nav-drawer-brand {
  display: none;
}

.nav a {
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  padding: 8px 10px;
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  border-color: rgba(255, 138, 0, 0.55);
  color: var(--text);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 44px;
  border: 1px solid rgba(255, 138, 0, 0.55);
  border-radius: 8px;
  background: rgba(5, 5, 5, 0.76);
  color: var(--text);
  cursor: pointer;
}

.menu-toggle-line {
  position: absolute;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: var(--orange);
  transition: transform 160ms ease, opacity 160ms ease;
}

.menu-toggle-line:nth-child(1) {
  transform: translateY(-7px);
}

.menu-toggle-line:nth-child(3) {
  transform: translateY(7px);
}

.hero {
  padding: 18px 0 56px;
}

.hero-graphic {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(255, 138, 0, 0.3);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
  margin-top: 34px;
}

h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(36px, 6vw, 76px);
  line-height: 0.96;
  letter-spacing: 0;
}

.lead {
  max-width: 700px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 19px;
}

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

.engine-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(20, 18, 17, 0.92), rgba(8, 8, 8, 0.94));
  padding: 22px;
  text-decoration: none;
}

.engine-card:hover {
  border-color: rgba(255, 138, 0, 0.72);
  transform: translateY(-2px);
}

.engine-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  min-height: 82px;
}

.engine-number {
  color: var(--orange);
  font-size: 18px;
  font-weight: 900;
  padding-top: 8px;
}

.engine-card-icon {
  display: block;
  width: 76px;
  height: 76px;
  object-fit: contain;
}

.engine-card h2 {
  margin: 18px 0 10px;
  font-size: 28px;
  line-height: 1;
}

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

.card-action {
  margin-top: 24px;
  color: var(--orange);
  font-weight: 800;
}

.page-title {
  border-top: 1px solid var(--line);
  position: relative;
  width: min(var(--graphic-width), 100%);
  margin: 0 auto;
  padding: 48px 0 32px;
}

.page-title-copy {
  width: 100%;
}

.page-heading-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 104px;
  gap: 20px;
  align-items: center;
}

.page-heading-row-single {
  grid-template-columns: minmax(0, 1fr);
}

.engine-page-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  min-height: 38px;
  margin: 0;
  border: 1px solid rgba(255, 138, 0, 0.72);
  border-radius: 8px;
  color: var(--orange);
  font-size: 18px;
  font-weight: 900;
}

.page-subhead-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  max-width: 100%;
  margin-top: 16px;
}

.page-title-icon {
  width: 104px;
  height: 104px;
  justify-self: end;
  object-fit: contain;
}

.page-title h1 {
  max-width: none;
  font-size: clamp(42px, 4.35vw, 56px);
  white-space: nowrap;
}

.page-title p {
  max-width: none;
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.infographic-wrap {
  display: grid;
  place-items: center;
  padding: 18px 0 42px;
}

.infographic {
  width: min(100%, var(--graphic-width));
  height: auto;
  border: 1px solid rgba(255, 138, 0, 0.3);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
}

.engine-bottom-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: min(860px, 100%);
  margin: 0 auto 72px;
}

.engine-bottom-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  padding: 10px 12px;
  text-align: center;
  text-decoration: none;
}

.engine-bottom-nav a:hover,
.engine-bottom-nav a[aria-current="page"] {
  border-color: rgba(255, 138, 0, 0.72);
  color: var(--text);
}

.cta-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: 28px;
  align-items: center;
  width: min(var(--graphic-width), 100%);
  margin: 0 auto 72px;
  border: 1px solid rgba(255, 138, 0, 0.42);
  border-radius: 8px;
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 138, 0, 0.16), transparent 24rem),
    rgba(8, 8, 8, 0.72);
  padding: 28px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

.cta-kicker {
  margin: 0 0 10px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cta-copy h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 0.98;
}

.cta-copy p:last-child {
  max-width: 440px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.cta-form {
  display: grid;
  gap: 12px;
}

.cta-form label {
  display: grid;
  gap: 6px;
}

.cta-form label span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.cta-form input {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.44);
  color: var(--text);
  font: inherit;
  padding: 10px 12px;
}

.cta-form input:focus {
  border-color: rgba(255, 138, 0, 0.72);
  outline: 2px solid rgba(255, 138, 0, 0.18);
  outline-offset: 2px;
}

.cta-form button {
  min-height: 48px;
  border: 1px solid rgba(255, 138, 0, 0.72);
  border-radius: 8px;
  background: var(--orange);
  color: #111;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  padding: 10px 16px;
}

.cta-form button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.form-status {
  min-height: 20px;
  margin: 0;
  color: #9fb1c7;
  font-size: 14px;
  font-weight: 700;
}

.form-status.is-error {
  color: #ffb24b;
}

.hp-field {
  position: absolute;
  left: -9999px;
}

.site-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  border-radius: 8px 8px 0 0;
  background: rgba(8, 24, 42, 0.58);
  color: #9fb1c7;
  font-size: 14px;
  font-weight: 700;
  padding: 28px 28px 40px;
}

.footer-logo-link {
  display: inline-flex;
  align-items: center;
}

.footer-logo {
  display: block;
  width: 148px;
  height: 44px;
  object-fit: contain;
}

.footer-powered {
  color: #9fb1c7;
  font-weight: 500;
}

.footer-credit {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  white-space: nowrap;
}

.site-footer a {
  color: #78a8dc;
  font-weight: 800;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text);
}

@media (max-width: 860px) {
  .intro {
    display: block;
  }

  .page-title {
    padding: 42px 0 30px;
  }

  .page-heading-row {
    grid-template-columns: minmax(0, 1fr) 108px;
    gap: 18px;
  }

  .page-title h1 {
    font-size: clamp(42px, 7vw, 56px);
    white-space: normal;
  }

  .page-title-icon {
    width: 108px;
    height: 108px;
  }

  .site-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 0;
  }

  .menu-toggle {
    position: relative;
    display: inline-flex;
    margin-left: auto;
    z-index: 30;
  }

  .menu-open .menu-toggle-line:nth-child(1) {
    transform: rotate(45deg);
  }

  .menu-open .menu-toggle-line:nth-child(2) {
    opacity: 0;
  }

  .menu-open .menu-toggle-line:nth-child(3) {
    transform: rotate(-45deg);
  }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    width: min(78vw, 300px);
    height: 100vh;
    padding: 28px 20px 24px;
    border-left: 1px solid rgba(255, 138, 0, 0.32);
    background: rgba(8, 6, 4, 0.96);
    box-shadow: -22px 0 60px rgba(0, 0, 0, 0.45);
    transform: translateX(104%);
    transition: transform 180ms ease;
  }

  .nav .nav-drawer-brand {
    display: inline-flex;
    align-items: center;
    border: 0;
    margin: 0 60px 22px 0;
    padding: 0;
    min-height: 0;
  }

  .nav-drawer-logo {
    display: block;
    width: 190px;
    height: 57px;
    border-radius: 4px;
    object-fit: contain;
  }

  .nav a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 52px;
    padding: 13px 14px;
    font-size: 16px;
    text-align: left;
  }

  .menu-open .nav {
    transform: translateX(0);
  }

  .engine-grid {
    grid-template-columns: 1fr;
  }

  .cta-panel {
    grid-template-columns: 1fr;
  }

  .engine-bottom-nav {
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .engine-bottom-nav a {
    min-height: 44px;
    padding: 8px 6px;
    font-size: 13px;
    line-height: 1.15;
  }

}

@media (max-width: 520px) {
  .main,
  .site-footer {
    width: min(var(--max), calc(100% - 24px));
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 24px 18px 34px;
  }

  .cta-panel {
    padding: 22px;
  }

  .site-header {
    width: min(var(--max), calc(100% - 24px));
  }

  .hero {
    padding-top: 8px;
  }

  .brand-link,
  .nav-logo {
    width: 210px;
    height: 63px;
  }

  .page-title {
    padding-top: 38px;
  }

  .page-heading-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 72px;
    gap: 12px;
    align-items: start;
    padding-left: 58px;
    padding-right: 0;
  }

  .page-title h1 {
    font-size: clamp(38px, 10.5vw, 48px);
    line-height: 0.96;
    white-space: normal;
  }

  .engine-page-badge {
    min-width: 46px;
    min-height: 34px;
    font-size: 17px;
  }

  .page-subhead-row {
    gap: 12px;
    margin-top: 14px;
    max-width: none;
  }

  .page-title-icon {
    position: static;
    width: 72px;
    height: 72px;
  }

  .nav a {
    font-size: 16px;
    line-height: 1.15;
  }

  .engine-card {
    min-height: 190px;
  }
}
