:root {
  --color-bg: #0d0d0d;
  --color-surface: #1a1a1a;
  --color-accent: #ff6a00;
  --color-accent-strong: #ff7b1f;
  --color-text: #ffffff;
  --color-muted: rgba(255, 255, 255, 0.82);
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.28);
  --header-height: 92px;
  --transition: 0.4s ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', 'Manrope', 'Poppins', sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition), color var(--transition), border-color var(--transition);
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.site-header.is-scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.header-inner {
  width: min(1440px, calc(100% - 56px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  font-family: 'Montserrat', 'Poppins', sans-serif;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-size: 1.05rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--color-accent);
  font-family: 'Montserrat', 'Poppins', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(255, 106, 0, 0.16);
}

.site-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 52px;
  margin: 0;
  padding: 0;
}

.nav-link {
  position: relative;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--color-accent);
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  width: 100%;
}

.has-dropdown {
  position: relative;
}

.mega-menu {
  position: absolute;
  top: calc(100% + 16px);
  left: 0;
  min-width: 280px;
  padding: 16px;
  display: grid;
  gap: 10px;
  background: rgba(0, 0, 0, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.has-dropdown:hover .mega-menu,
.has-dropdown:focus-within .mega-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Show dropdown when parent has explicit "is-open" (used on /brands page) */
.has-dropdown.is-open .mega-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mega-menu a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--color-text);
}

.mega-menu a:hover,
.mega-menu a:focus-visible {
  background: rgba(255, 106, 0, 0.16);
  color: var(--color-accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-button {
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-text);
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.icon-button:hover,
.icon-button:focus-visible {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(255, 106, 0, 0.16);
}

.icon-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
}

.hero-slider {
  position: relative;
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
  background: var(--color-bg);
  z-index: 1;
  margin-top: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1), transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.01);
  transition: transform 8s ease;
}

.hero-slide.is-active img {
  transform: scale(1.08);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.55) 38%, rgba(0, 0, 0, 0.18) 100%);
}

.hero-content {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 16%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  text-align: left;
  padding: 0 16px 0 0;
  max-width: min(860px, calc(100% - 96px));
  width: auto;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.5em;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-accent);
  opacity: 0;
  transform: translateY(30px);
}

.hero-content h1 {
  margin: 0;
  font-family: 'Montserrat', 'Poppins', sans-serif;
  font-size: clamp(2.6rem, 4.5vw, 4.2rem);
  line-height: 1;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: normal;
  overflow-wrap: break-word;
  max-width: 100%;
  opacity: 0;
  transform: translateY(30px);
}

.hero-title-split {
  display: block;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  min-width: 220px;
  padding: 0 32px;
  height: 52px;
  border-radius: 8px;
  background: var(--color-accent);
  color: white;
  font-weight: 700;
  font-size: 0.98rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  box-shadow: 0 18px 40px rgba(255, 106, 0, 0.25);
  opacity: 0;
  transform: translateY(30px);
}

.hero-slide[data-index="2"] .hero-button {
  min-width: 260px;
}

.hero-button:hover,
.hero-button:focus-visible {
  transform: translateY(-4px);
  background: var(--color-accent-strong);
  box-shadow: 0 24px 46px rgba(255, 106, 0, 0.32);
}

.hero-slide.is-active .hero-content .eyebrow {
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.2s;
}

.hero-slide.is-active .hero-content h1 {
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.35s;
}

.hero-slide.is-active .hero-content .hero-button {
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.6s;
}

.slider-controls {
  position: absolute;
  inset: auto 0 26px 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  pointer-events: none;
}

.slider-controls > * {
  pointer-events: auto;
}

.slider-arrow {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-text);
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.slider-arrow:hover,
.slider-arrow:focus-visible {
  background: rgba(255, 106, 0, 0.16);
  transform: translateY(-2px);
}

.slider-dots {
  display: flex;
  gap: 10px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  padding: 0;
}

.slider-dot.is-active {
  width: 28px;
  background: var(--color-accent);
}

.gear-banner {
  position: relative;
  min-height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  background: var(--color-bg);
}

.gear-banner img {
  width: 100%;
  height: 100%;
  max-width: 100vw;
  max-height: 100vh;
  object-fit: cover;
  display: block;
  transform: scale(1.01);
  transition: transform 8s ease;
}

.gear-banner:hover img {
  transform: scale(1.08);
}

.gear-banner .hero-overlay {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.56) 40%, rgba(0, 0, 0, 0.18) 100%);
}

.gear-banner-content {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 16%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  text-align: left;
  padding: 0 16px 0 0;
  max-width: min(860px, calc(100% - 96px));
  width: auto;
  z-index: 2;
}

.gear-banner-content .eyebrow {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.5em;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-accent);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.2s;
}

.gear-banner-content h2 {
  margin: 0;
  font-family: 'Montserrat', 'Poppins', sans-serif;
  font-size: clamp(2.6rem, 4.5vw, 4.2rem);
  line-height: 1;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: normal;
  overflow-wrap: break-word;
  max-width: 100%;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.35s;
}

.gear-banner-content .banner-description {
  margin: 28px 0 0;
  max-width: 560px;
  font-family: 'Montserrat', 'Poppins', sans-serif;
  font-size: clamp(1.25rem, 1.6vw, 1.25rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
  letter-spacing: 0.3px;
  text-align: left;
  opacity: 0;
  transform: translateY(20px);
  animation: bannerDescriptionFade 0.7s ease forwards;
  animation-delay: 0.3s;
}

.gear-banner-content .hero-button {
  margin-top: 42px;
  opacity: 0;
  transform: translateY(20px);
  animation: bannerDescriptionFade 0.7s ease forwards;
  animation-delay: 0.45s;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bannerDescriptionFade {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .gear-banner-content .banner-description {
    max-width: 460px;
    font-size: 1.125rem;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-height) 20px auto 20px;
    justify-content: flex-start;
    background: rgba(0, 0, 0, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 20px;
    display: none;
    overflow: auto;
  }

  .site-nav.is-open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .has-dropdown:hover .mega-menu,
  .has-dropdown:focus-within .mega-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .mega-menu {
    position: static;
    margin-top: 8px;
    width: 100%;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .hero-content {
    align-items: center;
    text-align: center;
    padding-inline: 24px;
  }

  .hero-content h1,
  .hero-subtitle {
    max-width: 100%;
  }

  .feature-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .gear-banner-content .banner-description {
    max-width: 90%;
    font-size: 1rem;
    line-height: 1.6;
  }

  .header-inner {
    width: min(100% - 24px, 1280px);
  }

  .brand-name {
    display: none;
  }

  .header-actions .icon-button:nth-child(2),
  .header-actions .icon-button:nth-child(3) {
    display: none;
  }

  .hero-content h1 {
    font-size: clamp(2.2rem, 8vw, 2.8rem);
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-button {
    width: 100%;
    max-width: 280px;
  }

  .slider-controls {
    gap: 10px;
    bottom: 20px;
  }

  .slider-arrow {
    width: 42px;
    height: 42px;
  }
}
