/* ─── Nav ─── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition:
    background var(--transition),
    box-shadow var(--transition);
}

.nav--solid {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 16px;
}

.nav__logo img {
  height: 38px;
  width: auto;
}

.nav__links {
  display: flex;
  gap: 32px;
}

.nav__link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}

.nav__link:hover {
  color: var(--primary);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__cta {
  padding: 14px 24px;
  font-size: 0.9375rem;
}

.nav__cta-mobile {
  display: none;
  padding: 12px 20px;
  font-size: 0.875rem;
}

@media (max-width: 860px) {
  .nav__links,
  .nav__actions {
    display: none;
  }

  .nav__cta-mobile {
    display: inline-flex;
  }

  .nav__logo img {
    height: 32px;
  }
}

/* ─── Hero ─── */
.hero {
  position: relative;
  min-height: min(100vh, 900px);
  padding-top: calc(var(--nav-h) + 16px);
  padding-bottom: 64px;
  overflow: hidden;
  background-image: url("../images/map-background.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  @media (max-width: 480px) {
    background-image: url("../images/map-background-mobile.webp");
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
  }
}

.hero__map-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero__map-panel {
  position: absolute;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1280px, calc(100% - 48px));
  height: min(800px, 70vh);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.hero__map-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__map-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  filter: saturate(0.92) contrast(0.96);
}

.hero__gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(247, 247, 247, 0.08) 42%,
      rgba(247, 247, 247, 0.55) 76%,
      var(--bg-soft) 100%
    ),
    linear-gradient(
      90deg,
      var(--bg-soft) 0%,
      rgba(247, 247, 247, 0.98) 22%,
      rgba(247, 247, 247, 0.72) 42%,
      rgba(247, 247, 247, 0.16) 62%,
      rgba(247, 247, 247, 0) 82%
    );

  @media (max-width: 480px) {
    display: none;
  }
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: clamp(24px, 4vw, 48px);

  @media (max-width: 480px) {
    margin-top: 100% !important;
  }
}

.hero__title {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--secondary);
  margin-bottom: 16px;
}

.hero__title-accent {
  color: var(--primary);
}

.hero__desc {
  font-size: clamp(1.2rem, 2.5vw, 1.4rem);
  font-weight: 500;
  color: var(--secondary);
  line-height: 1.35;
  max-width: 620px;
  margin-bottom: 24px;
}

.hero__disclaimer {
  margin-top: 12px;
  font-size: 0.8125rem;
  color: var(--text-light);
}

.hero__prices {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.hero__user-pin {
  position: absolute;
  z-index: 3;
  top: 52%;
  left: 58%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero__user-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 6px 33px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
}

.hero__user-dot svg {
  width: 32px;
  height: 32px;
}

.hero__user-pulse {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: rgba(0, 85, 255, 0.2);
  animation: pinPulse 2.2s ease-out infinite;
}

/* Price bubbles */
.price-bubble {
  position: absolute;
  animation: priceBubble 14s ease-in-out infinite;
  opacity: 0;
  transform: translate(-50%, 8px) scale(0.92);
}

.price-bubble--blur {
  filter: blur(2.5px);
}

.price-bubble--blur.price-bubble--3 {
  filter: blur(5px);
}

.price-bubble__value {
  display: block;
  background: #fff;
  color: var(--secondary);
  font-size: clamp(0.75rem, 2vw, 1.25rem);
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-bubble);
  border: 1px solid var(--border);
  white-space: nowrap;
}

@keyframes priceBubble {
  0%,
  100% {
    opacity: 0;
    transform: translate(-50%, 10px) scale(0.9);
  }
  5%,
  20% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
  28% {
    opacity: 0;
    transform: translate(-50%, -6px) scale(0.96);
  }
}

@keyframes pinPulse {
  0% {
    transform: scale(1);
    opacity: 0.55;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

/* Desktop bubble positions */
.price-bubble--1 {
  top: 28%;
  left: 72%;
}
.price-bubble--2 {
  top: 58%;
  left: 38%;
}
.price-bubble--3 {
  top: 46%;
  left: 22%;
}
.price-bubble--4 {
  top: 50%;
  left: 88%;
}
.price-bubble--5 {
  top: 72%;
  left: 78%;
}
.price-bubble--6 {
  top: 70%;
  left: 52%;
}
.price-bubble--7 {
  top: 32%;
  left: 85%;
}

@media (max-width: 1024px) {
  .hero__map-panel {
    top: 28px;
    height: min(760px, 70vh);
  }

  .hero__content {
    width: min(48vw, 520px);
  }

  .hero__title {
    font-size: clamp(3.5rem, 7.5vw, 4.75rem);
  }

  .hero__desc {
    font-size: clamp(1.125rem, 2.2vw, 1.5rem);
  }
}

@media (max-width: 767px) {
  .hero {
    min-height: 760px;
    padding-bottom: 48px;
  }

  .hero__map-panel {
    top: 60px;
    width: calc(100% - 32px);
    height: 640px;
    border-radius: var(--radius-lg);
  }

  .hero__map-photo img {
    object-position: center 42%;
  }

  .hero__gradient {
    background: linear-gradient(
      180deg,
      rgba(247, 247, 247, 0.98) 0%,
      rgba(247, 247, 247, 0.92) 30%,
      rgba(247, 247, 247, 0.5) 48%,
      rgba(247, 247, 247, 0.08) 68%,
      rgba(247, 247, 247, 0.72) 88%,
      var(--bg-soft) 100%
    );
  }

  .hero__content {
    width: 100%;
    max-width: 560px;
    text-align: center;
    padding-top: 16px;
    margin: 0 auto;
  }

  .hero__title {
    font-size: clamp(2.25rem, 10vw, 3rem);
  }

  .hero__desc {
    font-size: 1.125rem;
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    display: flex;
    justify-content: center;
  }

  .hero__user-pin {
    top: 62%;
    left: 50%;
  }

  .price-bubble--1 {
    top: 48%;
    left: 78%;
  }
  .price-bubble--2 {
    top: 60%;
    left: 17%;
  }
  .price-bubble--3 {
    top: 54%;
    left: 40%;
  }
  .price-bubble--4 {
    top: 69%;
    left: 73%;
  }
  .price-bubble--5 {
    top: 76%;
    left: 27%;
  }
  .price-bubble--6 {
    top: 63%;
    left: 88%;
  }
  .price-bubble--7 {
    top: 44%;
    left: 54%;
  }

  .price-bubble__value {
    font-size: 0.8125rem;
    padding: 8px 14px;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 720px;
  }

  .hero__map-panel {
    height: 600px;
  }

  .hero__disclaimer {
    font-size: 0.72rem;
  }

  .hero__user-pin {
    top: 42%;
    left: 50%;
  }

  .price-bubble--1 {
    top: 20%;
    left: 72%;
  }
  .price-bubble--2 {
    top: 65%;
    left: 85%;
  }
  .price-bubble--3 {
    top: 65%;
    left: 10%;
  }
  .price-bubble--4 {
    top: 32%;
    left: 88%;
  }
  .price-bubble--5 {
    top: 50%;
    left: 78%;
  }
  .price-bubble--6 {
    top: 50%;
    left: 12%;
  }
  .price-bubble--7 {
    top: 32%;
    left: 85%;
  }
}

/* ─── How it works ─── */
.how {
  padding: clamp(64px, 8vw, 84px) 0;
  background: var(--bg-soft);
}

.how__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.how__step {
  display: flex;
  flex-direction: column;
}

.how__card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 2px solid var(--border-muted);
  background: linear-gradient(to top, #fff 25%, rgba(255, 255, 255, 0) 50%);
}

.how__card--highlight {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.how__card-map {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.how__card-map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.how__card-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.how__card-body {
  position: relative;
  z-index: 2;
  padding: 24px;
  margin-top: auto;
}

.how__number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 12px;
}

.how__step-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 8px;
}

.how__step-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.how__step-cta {
  margin-top: 12px;
  padding-top: 12px;
}

.how__connector {
  display: none;
}

@media (min-width: 1025px) {
  .how__steps {
    position: relative;
  }
}

@media (max-width: 1024px) {
  .how__steps {
    grid-template-columns: 1fr;
    max-width: 410px;
    margin: 0 auto;
  }

  .how__card {
    min-height: 460px;
  }
}

/* ─── Features ─── */
.features {
  padding: clamp(64px, 8vw, 84px) 0;
  background: var(--bg-soft);
}

.features__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: end;
}

.features__photo {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  max-height: 640px;
  box-shadow: var(--shadow-lg);
}

.features__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.features__photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 85, 255, 0.9) 0%,
    rgba(0, 85, 255, 0) 40%
  );
  pointer-events: none;
}

.features__content {
  padding: clamp(24px, 4vw, 64px) 0;
}

.features__header {
  text-align: center;
  margin-bottom: 54px;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.features__card {
  background: #fff;
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 1px 4px rgba(12, 12, 13, 0.05);
  transition:
    box-shadow var(--transition),
    transform var(--transition);
}

.features__card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.features__icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  color: var(--primary);
}

.features__icon svg {
  width: 32px;
  height: 32px;
}

.features__title {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.features__desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.5;
}

@media (max-width: 960px) {
  .features__layout {
    grid-template-columns: 1fr;
  }

  .features__photo {
    max-height: 320px;
    aspect-ratio: 16 / 10;
    order: -1;
  }

  .features__content {
    padding: 0;
  }
}

@media (max-width: 520px) {
  .features__grid {
    grid-template-columns: 1fr;
  }
}

/* ─── Drivers ─── */
.drivers {
  position: relative;
  padding: clamp(64px, 8vw, 84px) 0;
  height: 740px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-image: url("../images/tow-desktop.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  @media (max-width: 768px) {
    background-image: url("../images/tow-mobile.webp");
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    height: 850px;
    padding: 32px 16px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
  }
}

.drivers__content {
  position: relative;
  z-index: 1;
  max-width: 560px;
  color: #fff;
}

.drivers__desc {
  margin-top: 10px;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

.drivers__benefits {
  list-style: none;
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.drivers__benefit {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  font-weight: 500;
}

.drivers__check {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 85, 255, 0.2);
  border-radius: 50%;
  flex-shrink: 0;
  color: #fff;
}

.drivers__check svg {
  width: 20px;
  height: 20px;
}

.drivers__play {
  display: inline-block;
  margin-top: 8px;
  transition: transform var(--transition);
}

.drivers__play:hover {
  transform: scale(1.03);
}

.drivers__play img {
  height: 40px;
  width: auto;
}

@media (max-width: 640px) {
  .drivers {
    min-height: auto;
    padding: 64px 0;
  }

  .drivers__bg-overlay {
    background: linear-gradient(
      180deg,
      rgba(34, 61, 98, 0.92) 0%,
      rgba(34, 61, 98, 0.85) 100%
    );
  }
}

.drivers__play-image-wrap {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-top: 24px;
}

.drivers__play-image {
  width: 200px;
  height: 64px;
  object-fit: cover;
  object-position: center;
}

/* ─── FAQ ─── */
.faq {
  padding: clamp(64px, 8vw, 84px) 0;
  background: var(--bg-soft);
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq__item {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.faq__item[open] {
  box-shadow: var(--shadow-sm);
}

.faq__item[open] .faq__icon {
  transform: rotate(45deg);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  color: var(--text);
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__icon {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--primary);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.faq__answer {
  padding: 0 24px 20px;
}

.faq__answer p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ─── CTA Final ─── */
.cta-final {
  padding: clamp(64px, 8vw, 84px) 0;
  background: linear-gradient(
    136deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  text-align: center;
}

.cta-final__title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.cta-final__desc {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.cta-final .btn--white {
  font-size: 1rem;
  padding: 16px 32px;
}

/* ─── Footer ─── */
.footer {
  padding: 64px 0 32px;
  background: #fff;
  border-top: 1px solid var(--border);
}

.footer__top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 48px;
}

.footer__logo {
  height: 28px;
  width: auto;
  margin-bottom: 12px;
}

.footer__tagline {
  font-size: 0.9375rem;
  color: var(--text-muted);
  max-width: 280px;
  line-height: 1.5;
}

.footer__links {
  display: flex;
  gap: 64px;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__col-title {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
  margin-bottom: 4px;
}

.footer__link {
  font-size: 0.9375rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer__link:hover {
  color: var(--primary);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  gap: 16px;
  flex-wrap: wrap;
}

.footer__copy {
  font-size: 0.8125rem;
  color: var(--text-light);
}

.footer__legal {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

@media (max-width: 720px) {
  .footer__top {
    flex-direction: column;
    gap: 32px;
  }

  .footer__links {
    gap: 32px;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
