/* Hero slider */
.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background: var(--color-bg);
  font-family: var(--font-body);
}

.hero__pattern {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  pointer-events: none;
  background-image: repeating-linear-gradient(-45deg, transparent, transparent 10px, #ffffff 10px, #ffffff 11px);
}

.hero__image-panel {
  position: absolute;
  top: 0; bottom: 0;
  right: -10%;
  width: 85%;
  transform: skewX(calc(-1 * var(--skew-angle)));
  overflow: hidden;
  z-index: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: -20px 0 50px rgba(0, 0, 0, 0.8);
}
@media (min-width: 768px) { .hero__image-panel { width: 65%; } }

.hero__image-inner {
  position: absolute;
  top: 0; bottom: 0;
  left: -20%; right: -20%;
  transform: skewX(var(--skew-angle));
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  pointer-events: none;
}
.hero__slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hero__slide-img { width: 100%; height: 100%; object-fit: cover; }
.hero__slide-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--color-bg), rgba(10, 10, 12, 0.5), transparent);
}
.hero__slide-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.2); }

.hero__tech {
  display: none;
  position: absolute;
  z-index: 20;
  opacity: 0.4;
}
@media (min-width: 768px) { .hero__tech { display: flex; } }
.hero__tech--top { top: 3rem; right: 3rem; flex-direction: column; align-items: flex-end; gap: 0.5rem; display: none;}
.hero__tech-lines { display: flex; gap: 0.5rem; }
.hero__tech-lines span { width: 2rem; height: 2px; background: var(--color-white); }
.hero__tech-label { font-size: 0.625rem; color: var(--color-white); letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700; }
.hero__tech--bottom { bottom: 3rem; right: 3rem; align-items: center; gap: 1rem; }
.hero__tech-gps { font-size: 0.625rem; color: var(--color-white); letter-spacing: 0.2em; text-transform: uppercase; }
.hero__tech-dot-wrap {
  width: 3rem; height: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.hero__tech-dot {
  width: 6px; height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

.hero__nav-panel {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 4rem;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 3rem 0;
  background: rgba(10, 10, 12, 0.8);
  backdrop-filter: blur(12px);
}
@media (min-width: 768px) { .hero__nav-panel { width: 6rem; } }

.hero__nav-brand {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-heading);
  color: rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  white-space: nowrap;
}
@media (min-width: 768px) { .hero__nav-brand { font-size: 0.875rem; } }

.hero__nav-buttons { display: flex; flex-direction: column; gap: 1.5rem; align-items: center; }
.hero__nav-btn {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 1rem 0;
}
.hero__nav-btn span:first-child {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  transform: rotate(-90deg);
  transition: all 0.3s;
  color: var(--color-gray-700);
}
@media (min-width: 768px) { .hero__nav-btn span:first-child { font-size: 0.875rem; } }
.hero__nav-btn:hover span:first-child { color: var(--color-gray-400); }
.hero__nav-btn.is-active span:first-child { color: var(--color-white); }

.hero__nav-indicator {
  position: absolute;
  right: 0;
  width: 2px;
  height: 100%;
  background: var(--color-accent);
  opacity: 0;
  transition: opacity 0.3s;
}
.hero__nav-btn.is-active .hero__nav-indicator { opacity: 1; }

.hero__nav-line {
  width: 1px;
  height: 6rem;
  background: linear-gradient(to top, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.hero__content {
  position: relative;
  z-index: 10;
  padding-left: 5rem;
  padding-right: 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
}
@media (min-width: 768px) { .hero__content { padding-left: 10rem; padding-right: 3rem; } }

.hero__content-inner {
  position: relative;
  min-height: 420px;
}
@media (min-width: 768px) { .hero__content-inner { min-height: 480px; } }

.hero__text {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  pointer-events: none;
}
.hero__text.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.hero__text.is-exiting {
  opacity: 0;
  transform: translateX(30px);
}

.hero__pretitle { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.hero__pretitle-line { width: 3rem; height: 2px; background: var(--color-accent); }
.hero__pretitle-text {
  color: var(--color-accent);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  font-weight: 700;
  text-transform: uppercase;
}
@media (min-width: 768px) { .hero__pretitle-text { font-size: 0.875rem; } }

.hero__title {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--color-white);
  line-height: 0.85;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
  filter: drop-shadow(0 25px 25px rgba(0, 0, 0, 0.5));
}
@media (min-width: 768px) { .hero__title { font-size: 3.5rem; } }
@media (min-width: 1024px) { .hero__title { font-size: 4rem; } }

.hero__subtitle {
  color: var(--color-gray-400);
  max-width: 28rem;
  font-size: 0.875rem;
  line-height: 1.625;
  margin-bottom: 3rem;
}
@media (min-width: 768px) { .hero__subtitle { font-size: 0.9rem; } }

.hero__specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 3.5rem;
  max-width: 32rem;
}
@media (min-width: 768px) { .hero__specs { gap: 2rem; } }

.hero__spec {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
}
.hero__spec-value {
  font-family: var(--font-heading);
  color: var(--color-white);
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}
@media (min-width: 768px) { .hero__spec-value { font-size: 1.2rem; } }
.hero__spec-label {
  color: var(--color-gray-500);
  font-size: 0.5625rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 500;
}
@media (min-width: 768px) { .hero__spec-label { font-size: 0.625rem; } }

.hero__cta { width: fit-content; }
.hero__cta.btn--outline.btn--skew { padding: 0.25rem; }
.hero__cta .btn__fill { z-index: 0; }
.hero__cta .btn__inner {
  position: relative;
  z-index: 1;
  gap: 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
}

@media (max-width: 767px) {
  .hero {
    touch-action: pan-y pinch-zoom;
  }

  .hero__image-panel {
    inset: 0;
    left: 0;
    right: 0;
    width: 100%;
    transform: none;
    border-left: none;
    box-shadow: none;
  }

  .hero__image-inner {
    left: 0;
    right: 0;
    transform: none;
  }

  .hero__slide-gradient {
    background: linear-gradient(to top, var(--color-bg) 0%, rgba(10, 10, 12, 0.7) 40%, rgba(10, 10, 12, 0.3) 100%);
  }

  .hero__content {
    padding: calc(var(--header-height) + 0.75rem) 1rem 4.5rem;
    justify-content: center;
    align-items: stretch;
  }

  .hero__content-inner {
    position: relative;
    width: 100%;
    min-height: clamp(18rem, 52vh, 24rem);
  }

  .hero__text {
    top: auto;
    bottom: 0;
    transform: translateY(16px);
  }

  .hero__text.is-active {
    transform: translateY(0);
    z-index: 1;
  }

  .hero__text.is-exiting {
    transform: translateY(-16px);
  }

  .hero__pretitle {
    margin-bottom: 1rem;
  }

  .hero__title {
    font-size: 2rem;
    margin-bottom: 1rem;
    line-height: 1;
  }

  .hero__subtitle {
    margin-bottom: 1.25rem;
    font-size: 0.8125rem;
    max-width: none;
  }

  .hero__specs {
    margin-bottom: 1.25rem;
    gap: 0.5rem;
  }

  .hero__spec-value {
    font-size: 1rem;
  }

  .hero__spec-label {
    font-size: 0.5rem;
  }

  .hero__nav-panel {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    flex-direction: row;
    justify-content: center;
    padding: 1rem 0 1.5rem;
    border-right: none;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(10, 10, 12, 0.6);
    backdrop-filter: blur(12px);
  }

  .hero__nav-brand,
  .hero__nav-line {
    display: none;
  }

  .hero__nav-buttons {
    flex-direction: row;
    gap: 0.75rem;
    align-items: center;
  }

  .hero__nav-btn {
    position: relative;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border-radius: 50%;
    background: transparent;
    transition: none;
  }

  .hero__nav-btn::before {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-gray-700);
    transition: background var(--transition), transform var(--transition);
  }

  .hero__nav-btn span:first-child,
  .hero__nav-indicator {
    display: none;
  }

  .hero__nav-btn.is-active::before {
    background: var(--color-accent);
    transform: scale(1.15);
  }
}
