:root {
  --otr-navy: #0d3e61;
  --otr-green: #72a73f;
  --otr-green-accessible: #537f2a;
  --otr-blue: #1775b1;
  --otr-sky: #a2d8ec;
  --otr-bg: #f7fafc;
  --otr-card: #ffffff;
  --otr-muted: #eef4f7;
  --otr-border: #d8e6ee;
  --otr-text: #102a3a;
  --otr-text-secondary: #607483;
  --otr-warning: #f2b84b;
  --otr-danger: #d64545;
  --otr-shadow-card: 0 18px 46px rgba(13, 62, 97, 0.12);
  --otr-shadow-deep: 0 30px 90px rgba(13, 62, 97, 0.28);
  --otr-max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--otr-bg);
  color: var(--otr-text);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  overflow-x: hidden;
}

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

section[id] {
  scroll-margin-top: 112px;
}

.otr-skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 8px;
  color: #fff;
  background: var(--otr-navy);
  box-shadow: var(--otr-shadow-card);
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.otr-skip-link:focus-visible {
  transform: translateY(0);
}

img {
  max-width: 100%;
}

h1,
h2,
h3,
p,
span,
strong,
a,
button {
  overflow-wrap: normal;
  word-break: normal;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 20;
  width: min(calc(100% - 32px), var(--otr-max));
  min-height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 12px 14px 12px 18px;
  border: 1px solid rgba(216, 230, 238, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 48px rgba(13, 62, 97, 0.12);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
}

.brand-link img {
  display: block;
  width: 158px;
  max-height: 48px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.site-nav a {
  padding: 10px 12px;
  color: var(--otr-text-secondary);
  font-size: 14px;
  font-weight: 750;
  border-radius: 8px;
}

.site-nav a:hover {
  color: var(--otr-navy);
  background: var(--otr-muted);
}

.site-header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-cta,
.nav-login,
.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
}

.nav-cta,
.button-primary {
  color: #fff;
  background: var(--otr-green-accessible);
  box-shadow: 0 14px 32px rgba(95, 143, 50, 0.28);
}

.nav-login {
  color: var(--otr-navy);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(216, 230, 238, 0.9);
  box-shadow: 0 10px 28px rgba(13, 62, 97, 0.08);
}

.nav-login:hover {
  color: var(--otr-navy);
  background: rgba(162, 216, 236, 0.28);
}

.button-ghost {
  color: var(--otr-navy);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(216, 230, 238, 0.84);
}

.button-subtle {
  color: var(--otr-text-secondary);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(216, 230, 238, 0.68);
}

.hero-section {
  position: relative;
  min-height: 96vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 128px max(24px, calc((100vw - var(--otr-max)) / 2)) 78px;
  background: #f7fafc;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(247, 250, 252, 0.98) 0%, rgba(247, 250, 252, 0.86) 36%, rgba(247, 250, 252, 0.08) 58%, rgba(247, 250, 252, 0) 100%),
    linear-gradient(180deg, rgba(247, 250, 252, 0.08) 0%, rgba(247, 250, 252, 0) 78%, rgba(247, 250, 252, 0.82) 100%);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  transform: scale(1.02);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
  padding-top: 22px;
  min-width: 0;
}

.hero-content h1 {
  margin: 0;
  color: var(--otr-navy);
  font-size: 104px;
  line-height: 0.88;
  font-weight: 900;
  letter-spacing: 0;
}

.hero-service .hero-content {
  max-width: 680px;
}

.hero-service .hero-content h1 {
  max-width: 660px;
  font-size: 70px;
  line-height: 0.96;
}

.hero-service .hero-lead {
  max-width: 610px;
}

.hero-lead {
  width: min(100%, 610px);
  margin: 26px 0 0;
  color: #334b59;
  font-size: 23px;
  line-height: 1.44;
  font-weight: 650;
}

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

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(110px, 1fr));
  gap: 14px;
  width: min(100%, 560px);
  margin-top: 42px;
}

.hero-proof div {
  border-left: 3px solid var(--otr-green-accessible);
  padding-left: 14px;
}

.hero-proof strong {
  display: block;
  color: var(--otr-navy);
  font-size: 26px;
  line-height: 1;
  font-weight: 900;
}

.hero-proof span {
  display: block;
  margin-top: 6px;
  color: var(--otr-text-secondary);
  font-size: 13px;
  font-weight: 750;
}

.hero-console {
  position: absolute;
  right: max(24px, calc((100vw - var(--otr-max)) / 2));
  bottom: 38px;
  z-index: 3;
  width: min(420px, calc(100vw - 48px));
  padding: 16px;
  border: 1px solid rgba(216, 230, 238, 0.74);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--otr-shadow-deep);
  backdrop-filter: blur(16px);
}

.console-top,
.console-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--otr-text-secondary);
  font-size: 13px;
  font-weight: 750;
}

.console-top strong,
.console-row strong {
  color: var(--otr-green-accessible);
}

.route-map-mini {
  position: relative;
  height: 150px;
  margin: 16px 0;
  overflow: hidden;
  border: 1px solid var(--otr-border);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(162, 216, 236, 0.45), rgba(247, 250, 252, 0.9)),
    repeating-linear-gradient(35deg, rgba(13, 62, 97, 0.07) 0 2px, transparent 2px 34px),
    repeating-linear-gradient(-35deg, rgba(23, 117, 177, 0.07) 0 2px, transparent 2px 42px);
}

.map-road,
.city-line {
  position: absolute;
  border-radius: 999px;
  background: rgba(13, 62, 97, 0.14);
}

.map-road-a {
  inset: 38px -30px auto 38px;
  height: 8px;
  transform: rotate(-12deg);
}

.map-road-b {
  inset: 88px 28px auto -24px;
  height: 7px;
  transform: rotate(18deg);
}

.route-line,
.active-route {
  position: absolute;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--otr-green-accessible), var(--otr-blue));
  box-shadow: 0 0 0 5px rgba(95, 143, 50, 0.12);
}

.route-line {
  left: 64px;
  right: 58px;
  top: 74px;
  transform: rotate(-9deg);
}

.pin,
.fleet-dot {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--otr-green-accessible);
  box-shadow: var(--otr-shadow-card);
}

.pin-a { left: 54px; top: 74px; }
.pin-b { left: 188px; top: 52px; }
.pin-c { right: 54px; top: 76px; background: var(--otr-blue); }

.section {
  width: min(calc(100% - 48px), var(--otr-max));
  margin: 0 auto;
  padding: 92px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 0.55fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 34px;
}

.section h2,
.contact-section h2 {
  margin: 0;
  color: var(--otr-navy);
  font-size: 58px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}

.section p,
.contact-section p {
  margin: 0;
  color: var(--otr-text-secondary);
  font-size: 17px;
  line-height: 1.64;
  font-weight: 600;
}

.section-heading > *,
.driver-copy,
.split-section > *,
.visibility-row > * {
  min-width: 0;
}

.ops-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  gap: 22px;
  align-items: stretch;
}

.ops-map,
.ops-panel,
.phone-frame,
.visibility-panel {
  border: 1px solid var(--otr-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--otr-shadow-card);
}

.ops-map {
  padding: 18px;
}

.map-toolbar {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  color: var(--otr-text-secondary);
  font-size: 13px;
  font-weight: 800;
}

.map-toolbar strong {
  color: var(--otr-navy);
}

.map-canvas {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(162, 216, 236, 0.5), rgba(247, 250, 252, 0.82)),
    radial-gradient(circle at 80% 24%, rgba(114, 167, 63, 0.22), transparent 32%),
    repeating-linear-gradient(45deg, rgba(13, 62, 97, 0.07) 0 2px, transparent 2px 52px),
    repeating-linear-gradient(-45deg, rgba(23, 117, 177, 0.07) 0 2px, transparent 2px 46px);
}

.city-line {
  height: 10px;
}

.line-1 {
  left: -40px;
  right: 18%;
  top: 34%;
  transform: rotate(12deg);
}

.line-2 {
  left: 20%;
  right: -60px;
  top: 58%;
  transform: rotate(-18deg);
}

.line-3 {
  left: 8%;
  right: 8%;
  top: 76%;
  transform: rotate(4deg);
}

.active-route {
  left: 14%;
  right: 16%;
  top: 52%;
  transform: rotate(-13deg);
}

.fleet-dot {
  animation: pulse 2.2s infinite;
}

.dot-1 { left: 18%; top: 48%; }
.dot-2 { left: 54%; top: 38%; background: var(--otr-blue); animation-delay: .35s; }
.dot-3 { right: 17%; top: 57%; animation-delay: .7s; }

.ops-panel {
  padding: 16px;
  display: grid;
  align-content: start;
  gap: 10px;
}

.module-tab {
  min-height: 50px;
  border: 1px solid var(--otr-border);
  border-radius: 8px;
  background: #fff;
  color: var(--otr-text-secondary);
  font-weight: 850;
  text-align: left;
  padding: 0 14px;
  cursor: pointer;
}

.module-tab.is-active {
  color: #fff;
  background: var(--otr-navy);
  border-color: var(--otr-navy);
}

.module-content {
  display: none;
  padding: 18px 2px 4px;
}

.module-content.is-active {
  display: block;
}

.module-content h3 {
  margin: 0 0 10px;
  color: var(--otr-navy);
  font-size: 24px;
  font-weight: 900;
}

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

.service-grid article {
  min-height: 260px;
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--otr-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--otr-shadow-card);
}

.service-grid span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--otr-navy);
  font-weight: 900;
}

.service-grid h3 {
  margin: 0;
  color: var(--otr-navy);
  font-size: 22px;
  font-weight: 900;
}

.service-grid p {
  margin: 0;
}

.trust-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.7fr);
  gap: 60px;
  align-items: center;
}

.trust-copy h2 {
  margin: 0;
  color: var(--otr-navy);
  font-size: 58px;
  line-height: 1;
  font-weight: 900;
}

.trust-copy p {
  margin-top: 20px;
}

.trust-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--otr-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--otr-shadow-card);
}

.trust-panel div {
  min-height: 86px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 16px;
  border-left: 4px solid var(--otr-green-accessible);
  border-radius: 8px;
  background: var(--otr-bg);
}

.trust-panel strong {
  color: var(--otr-navy);
  font-size: 17px;
  font-weight: 900;
}

.trust-panel span {
  color: var(--otr-text-secondary);
  font-weight: 650;
}

.driver-section {
  display: block;
}

.driver-copy {
  width: min(100%, 940px);
  margin: 0 auto;
}

.phone-frame {
  width: min(100%, 390px);
  min-height: 720px;
  justify-self: center;
  padding: 18px;
  border: 8px solid #0a2f49;
  border-radius: 36px;
  background: var(--otr-bg);
  box-shadow: var(--otr-shadow-deep);
}

.phone-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 82px;
  padding: 12px 12px 18px;
  color: var(--otr-navy);
  font-weight: 900;
}

.phone-header img {
  width: 112px;
}

.phone-map {
  position: relative;
  height: 260px;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(162, 216, 236, 0.7), rgba(255, 255, 255, 0.9)),
    repeating-linear-gradient(45deg, rgba(13, 62, 97, 0.08) 0 2px, transparent 2px 34px),
    repeating-linear-gradient(-45deg, rgba(23, 117, 177, 0.08) 0 2px, transparent 2px 38px);
}

.phone-map span {
  position: absolute;
  left: 44px;
  right: 38px;
  top: 132px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--otr-green-accessible), var(--otr-blue));
  transform: rotate(-17deg);
}

.phone-frame > strong {
  display: block;
  margin-top: 18px;
  color: var(--otr-navy);
  font-size: 22px;
  font-weight: 900;
}

.phone-frame > p {
  margin: 6px 0 18px;
  color: var(--otr-text-secondary);
  font-size: 14px;
}

.driver-copy ul {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.driver-copy li {
  padding: 16px 18px;
  border-left: 4px solid var(--otr-green-accessible);
  border-radius: 8px;
  background: #fff;
  color: var(--otr-text);
  font-weight: 800;
  box-shadow: 0 10px 28px rgba(13, 62, 97, 0.08);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.65fr);
  gap: 60px;
  align-items: center;
}

.visibility-panel {
  padding: 12px;
}

.visibility-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  min-height: 70px;
  align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid var(--otr-border);
  color: var(--otr-text-secondary);
  font-weight: 800;
}

.visibility-row:last-child {
  border-bottom: 0;
}

.visibility-row strong {
  color: var(--otr-navy);
}

.billing-section {
  padding-bottom: 112px;
}

.billing-flow,
.process-flow {
  display: grid;
  grid-template-columns: 1fr 44px 1fr 44px 1fr 44px 1fr;
  gap: 12px;
  align-items: center;
}

.billing-flow div,
.process-flow div {
  min-height: 112px;
  display: grid;
  place-items: center;
  border: 1px solid var(--otr-border);
  border-radius: 8px;
  background: #fff;
  color: var(--otr-navy);
  box-shadow: var(--otr-shadow-card);
  text-align: center;
  font-size: 17px;
  font-weight: 900;
}

.billing-flow span,
.process-flow span {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--otr-green-accessible), var(--otr-blue));
}

.contact-section {
  width: min(calc(100% - 48px), var(--otr-max));
  margin: 0 auto 48px;
  padding: 76px;
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(13, 62, 97, 0.98), rgba(13, 62, 97, 0.86)),
    url("../img/otr-hero-road-operations.png") center / cover;
  box-shadow: var(--otr-shadow-deep);
}

.contact-section h2,
.contact-section p {
  color: #fff;
}

.contact-section p {
  width: min(100%, 680px);
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.82);
}

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

.contact-section .button {
  margin-top: 30px;
}

.contact-actions .button {
  margin-top: 0;
}

.site-footer {
  width: min(calc(100% - 48px), var(--otr-max));
  min-height: 118px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--otr-text-secondary);
  font-size: 14px;
  font-weight: 700;
}

.site-footer img {
  width: 150px;
}

.site-footer p {
  margin: 6px 0 0;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(95, 143, 50, 0.32), var(--otr-shadow-card);
  }
  50% {
    box-shadow: 0 0 0 13px rgba(95, 143, 50, 0), var(--otr-shadow-card);
  }
}

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

  .site-nav {
    display: none;
  }

  .site-header-actions {
    gap: 8px;
  }

  .hero-section {
    min-height: auto;
    padding-top: 118px;
  }

  .hero-media::before {
    background:
      linear-gradient(180deg, rgba(247, 250, 252, 0.98) 0%, rgba(247, 250, 252, 0.88) 52%, #f7fafc 100%),
      linear-gradient(90deg, rgba(247, 250, 252, 0.94), rgba(247, 250, 252, 0.44));
  }

  .hero-content {
    max-width: none;
  }

  .hero-content h1 {
    font-size: 76px;
  }

  .hero-service .hero-content h1 {
    font-size: 54px;
  }

  .hero-lead {
    font-size: 21px;
  }

  .section h2,
  .contact-section h2 {
    font-size: 46px;
  }

  .hero-console {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 34px;
  }

  .section-heading,
  .ops-grid,
  .split-section,
  .trust-section {
    grid-template-columns: 1fr;
  }

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

  .billing-flow,
  .process-flow {
    grid-template-columns: 1fr;
  }

  .billing-flow span,
  .process-flow span {
    width: 4px;
    height: 34px;
    justify-self: center;
  }

  .contact-section {
    padding: 48px 24px;
  }
}

@media (max-width: 620px) {
  .site-header {
    top: 10px;
    left: 10px;
    width: min(calc(100% - 20px), 370px);
    min-height: 66px;
    padding: 10px;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) auto;
    transform: none;
  }

  .brand-link img {
    width: 122px;
  }

  .nav-cta,
  .nav-login {
    min-height: 44px;
    padding: 0 10px;
    font-size: 12px;
    white-space: nowrap;
  }

  .hero-section {
    width: min(100%, 390px);
    margin: 0;
    padding-inline: 18px;
    padding-bottom: 44px;
  }

  .hero-content,
  .hero-actions,
  .hero-proof,
  .hero-console,
  .route-map-mini,
  .ops-map,
  .ops-panel,
  .visibility-panel {
    width: 100%;
    max-width: 100%;
  }

  .hero-content h1 {
    font-size: 48px;
    line-height: 0.96;
  }

  .hero-service .hero-content h1 {
    font-size: 40px;
  }

  .hero-lead {
    font-size: 18px;
  }

  .section h2,
  .contact-section h2 {
    font-size: 36px;
    line-height: 1.04;
  }

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

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

  .console-top,
  .console-row,
  .visibility-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .section,
  .contact-section,
  .site-footer {
    width: min(calc(100% - 36px), 354px);
    margin-left: 18px;
    margin-right: 0;
  }

  .section {
    padding: 64px 0;
  }

  .map-canvas {
    min-height: 340px;
  }

  .phone-frame {
    min-height: 650px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 28px;
  }
}

@media (max-width: 380px) {
  .brand-link img {
    width: 112px;
  }

  .site-header-actions {
    gap: 6px;
  }

  .nav-cta,
  .nav-login {
    min-height: 44px;
    padding: 0 9px;
    font-size: 11px;
  }

  .hero-section {
    padding-inline: 16px;
  }

  .hero-content h1 {
    font-size: 44px;
  }

  .hero-service .hero-content h1 {
    font-size: 36px;
  }

  .hero-lead {
    font-size: 17px;
    max-width: 300px;
  }

  .button {
    min-height: 44px;
    padding: 0 14px;
    font-size: 13px;
  }

  .section,
  .contact-section,
  .site-footer {
    width: calc(100% - 32px);
    margin-left: 16px;
  }
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--otr-blue);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.92);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
