:root {
  color-scheme: dark;
  --navy-1000: #06192b;
  --navy-950: #071d31;
  --navy-900: #0a2942;
  --navy-850: #0d304d;
  --navy-800: #123a59;
  --white: #f8fbff;
  --muted: #a9bfd3;
  --pink: #ff2465;
  --pink-hover: #ff3d79;
  --line: rgba(163, 195, 220, 0.28);
  --line-strong: rgba(163, 195, 220, 0.42);
  --page-pad: clamp(22px, 2.35vw, 36px);
  --content: 1490px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--navy-1000);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--white);
  background: var(--navy-900);
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

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

.sr-only,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  z-index: 20;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  margin: 0;
  overflow: visible;
  clip: auto;
  color: var(--navy-1000);
  background: var(--white);
  border-radius: 8px;
}

.news-bar__inner,
.site-header,
main,
footer {
  width: min(calc(100% - (var(--page-pad) * 2)), var(--content));
  margin-inline: auto;
}

.news-bar {
  min-height: 49px;
  background: #061a2c;
  border-bottom: 1px solid rgba(163, 195, 220, 0.2);
}

.news-bar__inner {
  min-height: 49px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  font-size: 0.88rem;
}

.news-link {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  text-decoration: none;
}

.news-link strong {
  flex: 0 0 auto;
  color: var(--white);
  font-weight: 800;
}

.news-link > span:not(.news-rocket) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-rocket {
  flex: 0 0 auto;
  color: var(--pink);
  font-size: 1rem;
  font-weight: 900;
}

.utility-actions,
.vehicle-set,
.platform-login,
.language-control {
  display: flex;
  align-items: center;
}

.utility-actions {
  flex: 0 0 auto;
  gap: 16px;
}

.vehicle-set {
  gap: 3px;
}

.vehicle-set img {
  width: 21px;
  height: 21px;
}

.platform-login {
  min-height: 28px;
  padding-right: 23px;
  font-weight: 800;
  text-decoration: none;
  border-right: 1px solid rgba(163, 195, 220, 0.28);
}

.language-control {
  position: relative;
  min-width: 154px;
}

.language-control select {
  width: 100%;
  min-height: 42px;
  padding: 0 29px 0 9px;
  color: var(--white);
  background: transparent;
  border: 0;
  appearance: none;
  font: inherit;
  cursor: pointer;
}

.language-control img {
  position: absolute;
  right: 5px;
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.site-header {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-bottom: 1px solid rgba(163, 195, 220, 0.25);
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  text-decoration: none;
}

.brand img {
  width: clamp(180px, 14vw, 210px);
  height: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 31px;
}

.main-site-link,
.consultation-link,
.learn-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--pink);
  font-weight: 800;
  text-decoration: none;
}

.main-site-link,
.consultation-link {
  min-height: 48px;
}

.main-site-link img,
.consultation-link img,
.learn-more img,
.product-link img,
.featured-cta img {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.consultation-link {
  min-width: 280px;
  padding-inline: 28px;
  color: var(--white);
  background: var(--pink);
  border-radius: 999px;
  box-shadow: 0 12px 34px rgba(255, 36, 101, 0.18);
}

.hero {
  min-height: 360px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background-color: var(--navy-900);
  background-image: url("assets/portal/hero-fleet-depot.png");
  background-position: center center;
  background-size: cover;
}

.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, #092940 0%, rgba(9, 41, 64, 0.98) 24%, rgba(9, 41, 64, 0.72) 46%, rgba(7, 29, 49, 0.2) 73%, rgba(7, 29, 49, 0.34) 100%);
}

.hero__content {
  width: min(570px, 48%);
  padding: 43px 0 38px 4px;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--pink);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(3.25rem, 4.55vw, 4.35rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.hero-copy {
  max-width: 545px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.55vw, 1.3rem);
  line-height: 1.58;
}

.products {
  padding-top: 0;
}

.product-grid {
  min-height: 414px;
  display: grid;
  grid-template-columns: 1.65fr repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(190px, 1fr));
  gap: 13px;
}

.product-card {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 22px;
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: rgba(10, 41, 66, 0.96);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  box-shadow: 0 16px 44px rgba(0, 11, 24, 0.12);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.product-card:hover {
  z-index: 2;
  transform: translateY(-3px);
  background: rgba(12, 49, 78, 0.99);
  border-color: rgba(255, 36, 101, 0.8);
}

.product-card--featured {
  grid-row: 1 / span 2;
  min-height: 414px;
  padding: 0;
  background-color: var(--navy-900);
  background-image: url("assets/portal/fleet-highway.png");
  background-position: center 56%;
  background-size: cover;
}

.featured-card__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 29, 49, 0.07) 15%, rgba(7, 29, 49, 0.38) 43%, rgba(7, 29, 49, 0.95) 100%);
}

.featured-card__content {
  z-index: 1;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
}

.product-icon {
  width: 57px;
  height: 57px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  background: rgba(18, 58, 89, 0.94);
  border: 1px solid rgba(163, 195, 220, 0.24);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(0, 13, 27, 0.18);
}

.product-icon img {
  width: 33px;
  height: 33px;
}

.card-heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.product-card h2 {
  margin: 7px 0 0;
  font-size: clamp(1.04rem, 1.22vw, 1.25rem);
  line-height: 1.38;
  letter-spacing: -0.025em;
}

.product-card--featured h2 {
  max-width: 310px;
  margin: auto 0 12px;
  font-size: clamp(2rem, 2.4vw, 2.5rem);
  line-height: 1.16;
}

.product-description {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.48;
}

.product-card--featured .product-description {
  max-width: 330px;
  margin-bottom: 20px;
  color: #c1d0dd;
  font-size: 1.04rem;
}

.product-link {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  color: var(--pink);
  font-size: 0.94rem;
  font-weight: 750;
}

.product-link span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.featured-cta {
  width: min(100%, 300px);
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 22px;
  color: var(--white);
  background: var(--pink);
  border-radius: 10px;
  font-weight: 800;
}

.mobile-apps {
  min-height: 110px;
  display: grid;
  grid-template-columns: minmax(380px, 1.2fr) auto minmax(150px, 0.36fr);
  align-items: center;
  gap: 34px;
  margin-top: 19px;
  margin-bottom: 20px;
  padding: 14px 22px;
  background: rgba(18, 58, 89, 0.88);
  border: 1px solid var(--line);
  border-radius: 9px;
}

.mobile-intro {
  display: flex;
  align-items: center;
  gap: 25px;
}

.app-mark {
  width: 82px;
  height: 82px;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: #123550;
  border: 1px solid rgba(163, 195, 220, 0.24);
  border-radius: 15px;
  box-shadow: 0 12px 26px rgba(0, 10, 20, 0.16);
}

.app-mark img {
  width: 37px;
  height: 37px;
}

.app-mark strong {
  font-size: 0.68rem;
  letter-spacing: 0.02em;
}

.mobile-apps h2 {
  margin-bottom: 8px;
  font-size: 1.18rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.mobile-apps p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.45;
}

.store-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.store-links a {
  display: block;
  transition: transform 180ms ease, opacity 180ms ease;
}

.store-links img {
  width: 170px;
  height: 52px;
  object-fit: contain;
}

.store-links a:nth-child(2) img {
  width: 176px;
  height: 60px;
}

.learn-more {
  justify-self: end;
  white-space: nowrap;
}

footer {
  padding: 8px 0 28px;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

.news-link:hover,
.platform-login:hover,
.main-site-link:hover,
.learn-more:hover {
  color: var(--pink-hover);
}

.consultation-link:hover,
.featured-cta:hover {
  background: var(--pink-hover);
}

.store-links a:hover {
  opacity: 0.92;
  transform: translateY(-2px);
}

a:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(255, 76, 130, 0.9);
  outline-offset: 4px;
}

@media (max-width: 1120px) {
  .news-link > span:not(.news-rocket) {
    max-width: 360px;
  }

  .main-site-link {
    display: none;
  }

  .product-grid {
    grid-template-columns: 1.4fr repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(190px, 1fr));
  }

  .product-card--featured {
    grid-row: 1 / span 3;
  }

  .mobile-apps {
    grid-template-columns: 1fr auto;
  }

  .learn-more {
    display: none;
  }
}

@media (max-width: 820px) {
  .news-bar__inner {
    gap: 14px;
  }

  .news-link > span:not(.news-rocket),
  .vehicle-set {
    display: none;
  }

  .site-header {
    min-height: 76px;
  }

  .consultation-link {
    min-width: 0;
    padding-inline: 19px;
  }

  .hero {
    min-height: 430px;
    background-position: 60% center;
  }

  .hero::before {
    background: linear-gradient(180deg, rgba(7, 29, 49, 0.78) 0%, rgba(7, 29, 49, 0.88) 62%, #092940 100%);
  }

  .hero__content {
    width: min(620px, 92%);
    padding-top: 58px;
  }

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

  .product-card--featured {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 420px;
  }

  .mobile-apps {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .store-links {
    padding-left: 107px;
  }
}

@media (max-width: 600px) {
  :root {
    --page-pad: 16px;
  }

  .news-bar__inner {
    font-size: 0.78rem;
  }

  .platform-login {
    padding-right: 12px;
  }

  .language-control {
    min-width: 62px;
  }

  .language-control select {
    width: 62px;
    color: transparent;
  }

  .language-control select option {
    color: #111;
  }

  .site-header {
    gap: 14px;
  }

  .brand img {
    width: 154px;
  }

  .consultation-link {
    min-height: 43px;
    padding-inline: 15px;
    font-size: 0.78rem;
  }

  .consultation-link img {
    display: none;
  }

  .hero {
    min-height: 500px;
    background-position: 69% center;
  }

  .hero__content {
    width: 100%;
    padding: 54px 3px 38px;
  }

  h1 {
    font-size: clamp(2.8rem, 13vw, 3.65rem);
  }

  .hero-copy {
    font-size: 1.05rem;
  }

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

  .product-card--featured {
    grid-column: auto;
    min-height: 480px;
  }

  .product-card {
    min-height: 205px;
  }

  .mobile-apps {
    padding: 19px;
  }

  .mobile-intro {
    align-items: flex-start;
    gap: 16px;
  }

  .app-mark {
    width: 69px;
    height: 69px;
  }

  .store-links {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding-left: 0;
  }

  .store-links img,
  .store-links a:nth-child(2) img {
    width: 100%;
    height: 48px;
  }
}

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

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