/* Logistics App hero — from Corewave Logistics App Page (01 Hero) */

@keyframes cw-la-ping {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.35);
    opacity: 0.55;
  }
}

@keyframes cw-la-fade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.cw-logistic-app-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(700px 520px at 78% 45%, rgba(183, 166, 245, 0.18), transparent 70%),
    radial-gradient(520px 420px at 58% 95%, rgba(255, 85, 39, 0.16), transparent 70%),
    #141210;
  color: #f3efe7;
  font-family: 'Inter', system-ui, sans-serif;
  width: 100%;
  box-sizing: border-box;
}

.cw-logistic-app-hero__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(48px, 6vw, 80px) clamp(20px, 4vw, 40px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: 48px;
  align-items: center;
}

.cw-logistic-app-hero__copy {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}

.cw-logistic-app-hero__eyebrow {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: #ff7a50;
}

.cw-logistic-app-hero__eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff5527;
  animation: cw-la-ping 1.8s infinite;
  flex: none;
}

.cw-logistic-app-hero__title {
  margin: 0;
  font-family: 'Inter Tight', system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 0.96;
  letter-spacing: -0.04em;
  color: #f3efe7;
}

.cw-logistic-app-hero__title-em {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #b7a6f5;
}

.cw-logistic-app-hero__lead {
  margin: 0;
  max-width: 570px;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(234, 231, 225, 0.78);
  text-wrap: pretty;
}

.cw-logistic-app-hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cw-logistic-app-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cw-logistic-app-hero__btn--primary {
  background: #e0431c;
  color: #fff;
  box-shadow: 0 14px 34px -14px rgba(224, 67, 28, 0.8);
}

.cw-logistic-app-hero__btn--primary:hover,
.cw-logistic-app-hero__btn--primary:focus-visible {
  background: #c93a16;
  color: #fff;
}

.cw-logistic-app-hero__btn--secondary {
  padding: 0 22px;
  border: 1px solid rgba(234, 231, 225, 0.25);
  color: #eae7e1;
  font-weight: 500;
  background: transparent;
}

.cw-logistic-app-hero__btn--secondary:hover,
.cw-logistic-app-hero__btn--secondary:focus-visible {
  border-color: #b7a6f5;
  color: #fff;
}

.cw-logistic-app-hero__visual {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cw-logistic-app-hero__preview-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: rgba(234, 231, 225, 0.55);
}

.cw-logistic-app-hero__preview-live {
  color: #d4f53c;
}

.cw-logistic-app-hero__panel {
  border-radius: 30px;
  background: linear-gradient(180deg, #221f1b, #1a1815);
  border: 1px solid rgba(234, 231, 225, 0.1);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.8);
}

.cw-logistic-app-hero__map-wrap {
  border-radius: 20px;
  overflow: hidden;
  background: #1c1a17;
  border: 1px solid rgba(234, 231, 225, 0.06);
}

.cw-logistic-app-hero__map {
  display: block;
}

.cw-logistic-app-hero__xway,
.cw-logistic-app-hero__rain {
  transition: opacity 0.5s ease;
}

.cw-logistic-app-hero__route {
  transition: opacity 0.3s ease;
}

.cw-logistic-app-hero__truck {
  cursor: pointer;
  outline: none;
}

.cw-logistic-app-hero__truck:focus-visible circle[data-cw-logistic-ring] {
  stroke: #fff;
}

.cw-logistic-app-hero__chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.cw-logistic-app-hero__chip {
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 0;
  font: 600 12px 'JetBrains Mono', ui-monospace, monospace;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: background 0.2s ease, color 0.2s ease;
}

.cw-logistic-app-hero__chip-dot {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  flex: none;
}

.cw-logistic-app-hero__detail {
  border-radius: 18px;
  background: #f3efe7;
  color: #141210;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 14px;
  align-items: center;
}

.cw-logistic-app-hero__detail-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 800 16px 'Inter Tight', system-ui, sans-serif;
}

.cw-logistic-app-hero__detail-swatch {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex: none;
}

.cw-logistic-app-hero__detail-eta {
  font: 800 22px 'Inter Tight', system-ui, sans-serif;
  letter-spacing: -0.02em;
  text-align: right;
}

.cw-logistic-app-hero__detail-meta {
  font-size: 12.5px;
  color: #4a433c;
}

.cw-logistic-app-hero__detail-eta-label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9.5px;
  color: #6b6158;
  text-align: right;
}

.cw-logistic-app-hero__detail-bar {
  grid-column: 1 / -1;
  height: 5px;
  border-radius: 3px;
  background: rgba(20, 18, 16, 0.1);
  overflow: hidden;
}

.cw-logistic-app-hero__detail-bar > span {
  display: block;
  height: 100%;
  width: 0;
  background: #141210;
  transition: width 0.4s linear;
}

.cw-logistic-app-hero__toggles {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cw-logistic-app-hero__toggle {
  flex: 1 1 180px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 16px;
  border: 1px solid rgba(234, 231, 225, 0.1);
  background: rgba(234, 231, 225, 0.04);
  color: #f3efe7;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.cw-logistic-app-hero__toggle:hover,
.cw-logistic-app-hero__toggle:focus-visible {
  border-color: rgba(234, 231, 225, 0.22);
}

.cw-logistic-app-hero__toggle-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cw-logistic-app-hero__toggle-title {
  font-weight: 700;
  font-size: 13.5px;
}

.cw-logistic-app-hero__toggle-desc {
  font-size: 11.5px;
  color: rgba(234, 231, 225, 0.55);
}

.cw-logistic-app-hero__switch {
  width: 42px;
  height: 24px;
  border-radius: 12px;
  background: rgba(234, 231, 225, 0.2);
  position: relative;
  flex: none;
  transition: background 0.25s ease;
}

.cw-logistic-app-hero__switch--on {
  background: #3f9a1a;
}

.cw-logistic-app-hero__switch--rain.cw-logistic-app-hero__switch--on {
  background: #6e8bff;
}

.cw-logistic-app-hero__switch > span {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: left 0.25s ease;
}

.cw-logistic-app-hero__switch--on > span {
  left: 21px;
}

.cw-logistic-app-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.cw-logistic-app-hero__stat {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(234, 231, 225, 0.04);
  border: 1px solid rgba(234, 231, 225, 0.08);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cw-logistic-app-hero__stat-label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9.5px;
  color: rgba(234, 231, 225, 0.5);
  letter-spacing: 0.08em;
}

.cw-logistic-app-hero__stat-val {
  font: 800 20px 'Inter Tight', system-ui, sans-serif;
  color: #f3efe7;
}

.cw-logistic-app-hero__note {
  align-self: flex-start;
  max-width: 100%;
  margin: 4px 0 0;
  padding: 10px 14px;
  border-radius: 14px;
  background: #b7a6f5;
  color: #141210;
  font: 600 12.5px/1.4 'Inter', system-ui, sans-serif;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: cw-la-fade 0.4s ease-out both;
}

.cw-logistic-app-hero__note-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #141210;
  flex: none;
}

.cw-logistic-app-hero__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 640px) {
  .cw-logistic-app-hero__stats {
    grid-template-columns: 1fr;
  }
}
