﻿/*
  UI: USA-focused product showcase inspired by clean enterprise gateway catalogs.
  Notes: Mobile-first, utility-friendly classes, low-JS carousel.
*/

:root {
  --bg: #0a0f17;
  --surface: #101826;
  --surface-2: #141f31;
  --text: #f6f8fc;
  --muted: #b5bfd0;
  --line: #27344a;
  --accent: #2f7cf7;
  --accent-2: #4c95ff;
  --success: #2dd4bf;
  --radius: 16px;
  --maxw: 1220px;
  --space: 1rem;
  --shadow: 0 16px 35px rgba(1, 8, 20, 0.4);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  padding-bottom: 84px;
}

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
  background: #fff;
  color: #000;
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 200;
}

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

.container {
  width: min(100% - 2rem, var(--maxw));
  margin-inline: auto;
}

.row {
  display: flex;
}

.between {
  justify-content: space-between;
}

.center {
  align-items: center;
}

.gap-sm {
  gap: 0.75rem;
}

.wrap {
  flex-wrap: wrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 15, 23, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.site-header .container {
  min-height: 72px;
}

.brand {
  display: inline-flex;
  gap: 0.6rem;
  align-items: center;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.brand-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--accent), var(--success));
}

.nav-list {
  list-style: none;
  display: none;
  margin: 0;
  padding: 0;
  gap: 1.1rem;
}

.nav-list a {
  color: var(--muted);
  font-weight: 500;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: #fff;
}

.nav-list a.is-active {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: #67a6ff;
  text-underline-offset: 0.32rem;
  text-decoration-thickness: 2px;
}

.hero {
  position: relative;
  min-height: 88svh;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(10, 15, 23, 0.9) 0%, rgba(10, 15, 23, 0.78) 42%, rgba(10, 15, 23, 0.55) 100%),
    image-set(
      url("../images/optimized/rut241-hero-640.avif") type("image/avif"),
      url("../images/optimized/rut241-hero-640.webp") type("image/webp"),
      url("../images/rut241-hero.jpg") type("image/jpeg")
    ) center/cover no-repeat;
  transform: scale(1.04);
}

@media (min-width: 900px) {
  .hero-media {
    background:
      linear-gradient(100deg, rgba(10, 15, 23, 0.9) 0%, rgba(10, 15, 23, 0.78) 42%, rgba(10, 15, 23, 0.55) 100%),
      image-set(
        url("../images/optimized/rut241-hero-1024.avif") type("image/avif"),
        url("../images/optimized/rut241-hero-1024.webp") type("image/webp"),
        url("../images/rut241-hero.jpg") type("image/jpeg")
      ) center/cover no-repeat;
  }
}

@media (min-width: 1280px) {
  .hero-media {
    background:
      linear-gradient(100deg, rgba(10, 15, 23, 0.9) 0%, rgba(10, 15, 23, 0.78) 42%, rgba(10, 15, 23, 0.55) 100%),
      image-set(
        url("../images/optimized/rut241-hero-1440.avif") type("image/avif"),
        url("../images/optimized/rut241-hero-1440.webp") type("image/webp"),
        url("../images/rut241-hero.jpg") type("image/jpeg")
      ) center/cover no-repeat;
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-block: 6rem 4rem;
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #87b7ff;
  font-size: 0.76rem;
  font-weight: 700;
}

h1, h2, h3 {
  margin-top: 0;
  line-height: 1.18;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.9rem);
  margin-bottom: 0.95rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.6rem);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.08rem;
  margin-bottom: 0.5rem;
}

.subhead,
.section-head p,
.card p,
.faq-list p,
figcaption {
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: 180ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(125deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 26px rgba(47, 124, 247, 0.38);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: #3a4d6f;
  color: #fff;
}

.btn-subtle {
  color: #c5d4ea;
  background: rgba(255, 255, 255, 0.02);
  border-color: #2d3f5b;
}

.btn-subtle:hover,
.btn-subtle:focus-visible {
  color: #f0f6ff;
  border-color: #4a6589;
  background: rgba(255, 255, 255, 0.06);
}

.btn-block {
  width: 100%;
}

.trust-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.trust-list li {
  border: 1px solid #364763;
  background: rgba(16, 24, 38, 0.7);
  color: #cfdbeb;
  padding: 0.38rem 0.62rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.trust-list-inline {
  margin-bottom: 1rem;
}

.section {
  padding-block: 4.5rem;
}

.section-fit {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #0c1522 0%, #0a1220 100%);
}

.fit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.fit-btn {
  min-width: 170px;
}

.fit-btn.is-active {
  border-color: #5f96ff;
  background: rgba(76, 149, 255, 0.2);
  color: #fff;
}

.mobile-progress {
  position: sticky;
  top: 72px;
  z-index: 95;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.4rem;
  padding: 0.45rem 0.7rem;
  border-bottom: 1px solid #26364c;
  background: rgba(9, 14, 22, 0.94);
  backdrop-filter: blur(8px);
}

.mobile-progress a {
  text-align: center;
  border: 1px solid #2d3d55;
  border-radius: 999px;
  padding: 0.35rem 0.4rem;
  color: #b4c4da;
  font-size: 0.8rem;
  font-weight: 700;
}

.mobile-progress a.is-active {
  color: #fff;
  border-color: #5f96ff;
  background: rgba(76, 149, 255, 0.2);
  box-shadow: 0 0 0 1px rgba(95, 150, 255, 0.35) inset;
}

#use-fleet,
#use-industrial,
#use-enterprise {
  display: block;
  position: relative;
  top: -130px;
  visibility: hidden;
}

.section-dark {
  background: linear-gradient(180deg, #0d1522 0%, #0b121d 100%);
}

.section-carriers {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #0b1320 0%, #0b1524 100%);
}

.section-carriers::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(26, 62, 123, 0.32) 0 24%, transparent 24% 100%),
    repeating-linear-gradient(
      to bottom,
      rgba(193, 33, 52, 0.15) 0 14px,
      rgba(255, 255, 255, 0.02) 14px 28px
    );
  opacity: 0.35;
}

.section-carriers::after {
  content: "";
  position: absolute;
  left: 2%;
  top: 10%;
  width: 180px;
  height: 110px;
  pointer-events: none;
  opacity: 0.33;
  background-image:
    radial-gradient(circle, #d7e5ff 1.3px, transparent 1.3px),
    radial-gradient(circle, #d7e5ff 1.3px, transparent 1.3px);
  background-size: 20px 20px, 20px 20px;
  background-position: 0 0, 10px 10px;
}

.section-carriers .container {
  position: relative;
  z-index: 1;
}

.carrier-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.carrier-card {
  border: 1px solid #2f415b;
  border-radius: 14px;
  background: rgba(12, 18, 28, 0.75);
  padding: 0.85rem;
}

.carrier-card img {
  width: 100%;
  height: 52px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  padding: 0.45rem;
}

.carrier-card p {
  margin: 0.55rem 0 0;
  font-size: 0.9rem;
  color: #d4e2f3;
}

.carrier-note {
  margin-top: 0.8rem;
  color: #96aac2;
  font-size: 0.84rem;
}

.section-head {
  max-width: 760px;
  margin-bottom: 1.4rem;
}

.grid {
  display: grid;
  gap: 1rem;
}

.card {
  background: linear-gradient(155deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.card-product {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  height: 100%;
}

.card-product img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #30415c;
  background: #0a1018;
}

.card-product h3 {
  min-height: 2.4em;
}

.card-product > p:first-of-type {
  min-height: 4.8em;
}

.card-product .product-use {
  min-height: 2.8em;
}

.product-use {
  font-size: 0.9rem;
  color: #c8d8ea;
}

.card-product .btn {
  margin-top: auto;
}

.card-feature .icon {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(76, 149, 255, 0.15);
  margin-bottom: 0.6rem;
}

.list-clean {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
}

.list-clean li {
  margin-bottom: 0.4rem;
  color: var(--muted);
}

.text-link,
.card-feature a {
  color: #9dc1ff;
  font-weight: 700;
}

.text-link:hover,
.card-feature a:hover {
  color: #d3e3ff;
}

.carousel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #0f1724;
}

.carousel-track {
  position: relative;
  min-height: 220px;
  touch-action: pan-y;
  outline: none;
}

.carousel-track:focus-visible {
  box-shadow: inset 0 0 0 2px #7ab2ff;
}

.slide {
  display: none;
  margin: 0;
}

.slide.is-active {
  display: block;
}

.slide img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

figcaption {
  padding: 0.75rem 1rem 1rem;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid #3d4e68;
  background: rgba(9, 14, 22, 0.78);
  color: #fff;
  cursor: pointer;
  z-index: 2;
}

.carousel-btn:hover,
.carousel-btn:focus-visible {
  background: rgba(14, 22, 35, 0.95);
}

.carousel-btn.prev {
  left: 0.8rem;
}

.carousel-btn.next {
  right: 0.8rem;
}

.carousel-toggle {
  position: absolute;
  bottom: 0.8rem;
  right: 0.8rem;
  border: 1px solid #3d4e68;
  background: rgba(9, 14, 22, 0.78);
  color: #fff;
  border-radius: 999px;
  min-height: 2rem;
  padding: 0.15rem 0.75rem;
  font-weight: 700;
  cursor: pointer;
  z-index: 2;
}

.carousel-thumbs {
  margin-top: 0.7rem;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.45rem;
}

.thumb {
  padding: 0;
  border: 2px solid #2d3b53;
  border-radius: 10px;
  overflow: hidden;
  background: #0e1521;
  cursor: pointer;
}

.thumb img {
  width: 100%;
  height: 58px;
  object-fit: cover;
}

.thumb.is-active {
  border-color: #5ea4ff;
  box-shadow: 0 0 0 2px rgba(94, 164, 255, 0.28);
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 0.9rem 1rem;
}

.faq-list details[open] {
  border-color: #5e8bc5;
  background: linear-gradient(170deg, #122033, #111a28);
  box-shadow: 0 0 0 1px rgba(94, 139, 197, 0.2) inset;
}

.faq-list details + details {
  margin-top: 0.7rem;
}

summary {
  font-weight: 700;
  cursor: pointer;
}

.faq-list details[open] summary {
  color: #ecf4ff;
}

.faq-cta {
  margin-top: 1.2rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #090e15;
}

.footer-grid {
  display: grid;
  gap: 0.8rem;
  padding-block: 1.4rem 1rem;
}

.footer-grid a {
  color: #9fb3cd;
}

.footer-grid a:hover,
.footer-grid a:focus-visible {
  color: #fff;
}

.footer-note {
  border-top: 1px solid #1b2638;
  padding-block: 0.8rem 1.2rem;
}

.footer-note p {
  margin: 0;
  color: #8ca0bb;
  font-size: 0.95rem;
}

.source-note {
  margin-top: 0.45rem !important;
  color: #7388a5 !important;
  font-size: 0.86rem !important;
}

.section-buy-summary {
  padding-top: 3rem;
}

.buy-summary-card {
  border: 1px solid #334865;
  border-radius: 16px;
  padding: 1.2rem;
  background: linear-gradient(160deg, #0f1a2a, #111f32);
  box-shadow: var(--shadow);
}

.buy-summary-list {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
}

.buy-summary-list li {
  margin-bottom: 0.45rem;
  color: #c6d4e7;
}

@keyframes skeleton-shimmer {
  0% { background-position: -220px 0; }
  100% { background-position: calc(220px + 100%) 0; }
}

img.skeleton-media {
  background: linear-gradient(
    110deg,
    rgba(26, 42, 62, 0.6) 8%,
    rgba(78, 103, 134, 0.35) 18%,
    rgba(26, 42, 62, 0.6) 33%
  );
  background-size: 220px 100%;
  animation: skeleton-shimmer 1.2s linear infinite;
}

img.skeleton-media.is-loaded {
  animation: none;
  background: transparent;
}

.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 150;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 0.55rem 0.7rem calc(0.55rem + env(safe-area-inset-bottom, 0));
  border-top: 1px solid #2c3b53;
  background: rgba(10, 15, 23, 0.98);
  backdrop-filter: blur(6px);
}

.mobile-cta .btn {
  min-height: 42px;
  font-size: 0.9rem;
}

/* Responsive utilities */
@media (min-width: 760px) {
  .carrier-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

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

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

  .thumb img {
    height: 74px;
  }
}

@media (min-width: 1040px) {
  .mobile-progress {
    display: none;
  }

  .nav-list {
    display: flex;
  }

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

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

  body {
    padding-bottom: 0;
  }

  .mobile-cta {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
