/* ============================================================
   VALYX — New Header + Hero Styles (v1.0)
   ============================================================
   Self-contained vx-* prefix to avoid clashing with legacy cp-*
   styles. Loaded via $cpExtraCss on every page (header) and
   on homepage (hero).
   ============================================================ */

:root {
  --vx-navy:        #0a1628;
  --vx-navy-deep:   #050e1c;
  --vx-navy-mid:    #122440;
  --vx-blue:        #2e7dff;
  --vx-blue-bright: #3b8bff;
  --vx-text:        #ffffff;
  --vx-text-muted:  rgba(255, 255, 255, 0.65);
  --vx-text-soft:   rgba(255, 255, 255, 0.85);
  --vx-border:      rgba(255, 255, 255, 0.08);
}

/* ============================================================
   HEADER
   ============================================================ */

.vx-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--vx-navy);
  border-bottom: 1px solid var(--vx-border);
  color: var(--vx-text);
}

.vx-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
}

/* Logo --------------------------------------------------- */
.vx-header__logo {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
  text-decoration: none;
  color: var(--vx-text);
  letter-spacing: 0.04em;
}

.vx-header__logo-mark {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.vx-header__logo-sub {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  color: var(--vx-text-soft);
  margin-top: 0.18rem;
}

/* Nav links ---------------------------------------------- */
.vx-header__nav {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  flex: 1;
  justify-content: center;
}

.vx-header__nav a {
  position: relative;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--vx-text-soft);
  text-decoration: none;
  letter-spacing: 0.01em;
  padding: 0.5rem 0;
  transition: color 0.18s ease;
}

.vx-header__nav a:hover {
  color: var(--vx-text);
}

.vx-header__nav a.is-active {
  color: var(--vx-text);
}

.vx-header__nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--vx-blue);
  border-radius: 1px;
}

/* Tools (icons + mobile toggle) -------------------------- */
.vx-header__tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.vx-header__icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--vx-text-soft);
  background: transparent;
  border: 0;
  border-radius: 50%;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.vx-header__icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--vx-text);
}

.vx-header__menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--vx-text-soft);
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.vx-header__menu-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--vx-text);
}

/* Mobile nav drawer -------------------------------------- */
.vx-header__mobile-nav {
  display: none;
  background: var(--vx-navy-deep);
  border-top: 1px solid var(--vx-border);
}

.vx-header__mobile-nav.is-open {
  display: block;
}

.vx-header__mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
}

.vx-header__mobile-nav li a {
  display: block;
  padding: 0.9rem 1.5rem;
  font-size: 0.95rem;
  color: var(--vx-text-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--vx-border);
}

.vx-header__mobile-nav li:last-child a {
  border-bottom: 0;
}

.vx-header__mobile-nav li a:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--vx-text);
}

/* Responsive --------------------------------------------- */
@media (max-width: 900px) {
  .vx-header__nav { display: none; }
  .vx-header__menu-toggle { display: inline-flex; }
}

@media (max-width: 640px) {
  .vx-header__inner { padding: 0.85rem 1rem; }
  .vx-header__logo-mark { font-size: 1.25rem; }
  .vx-header__logo-sub { font-size: 0.58rem; letter-spacing: 0.28em; }
}


/* ============================================================
   HERO
   ============================================================ */

.vx-hero {
  position: relative;
  background:
    radial-gradient(ellipse at 70% 50%, rgba(46, 125, 255, 0.18), transparent 55%),
    linear-gradient(180deg, var(--vx-navy) 0%, var(--vx-navy-deep) 100%);
  color: var(--vx-text);
  overflow: hidden;
}

.vx-hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 5rem 1.5rem 5.5rem;
}

/* Compact variant — used on shop page (less vertical padding,
   smaller title, no CTA so products show sooner) */
.vx-hero--compact .vx-hero__inner {
  padding: 3.5rem 1.5rem 3.75rem;
  gap: 2.5rem;
}

.vx-hero--compact .vx-hero__title {
  font-size: clamp(2rem, 4.2vw, 3rem);
}

.vx-hero--compact .vx-hero__lead {
  margin: 1.25rem 0 2rem;
}

.vx-hero--compact .vx-hero__trust {
  margin-top: 2rem;
}

.vx-hero--compact .vx-hero__img-wrap {
  max-width: 520px;
}

.vx-hero__text {
  position: relative;
  z-index: 2;
}

.vx-hero__eyebrow {
  display: inline-block;
  margin: 0 0 1.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--vx-blue-bright);
  text-transform: uppercase;
}

.vx-hero__title {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--vx-text);
}

.vx-hero__title-em {
  color: var(--vx-blue-bright);
}

.vx-hero__title-underline {
  display: block;
  width: 3rem;
  height: 3px;
  margin-top: 1.5rem;
  background: var(--vx-blue);
  border-radius: 2px;
}

.vx-hero__lead {
  margin: 1.75rem 0 2.25rem;
  max-width: 28rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--vx-text-muted);
}

.vx-hero__lead-em {
  color: var(--vx-blue-bright);
  font-weight: 500;
}

.vx-hero__cta {
  display: inline-block;
  padding: 1rem 2.25rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #ffffff;
  background: var(--vx-blue);
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(46, 125, 255, 0.35);
  transition: background 0.18s ease, transform 0.1s ease, box-shadow 0.18s ease;
}

.vx-hero__cta:hover {
  background: var(--vx-blue-bright);
  box-shadow: 0 12px 32px rgba(46, 125, 255, 0.45);
  transform: translateY(-1px);
}

.vx-hero__cta:active {
  transform: translateY(0);
}

/* Trust badges ------------------------------------------- */
.vx-hero__trust {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 0;
}

.vx-hero__trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.3;
  color: var(--vx-text-soft);
}

.vx-hero__trust-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--vx-blue-bright);
}

.vx-hero__trust-text strong {
  display: block;
  font-weight: 600;
  color: var(--vx-text);
}

.vx-hero__trust-divider {
  width: 1px;
  height: 2.5rem;
  background: var(--vx-border);
}

/* Visual side -------------------------------------------- */
.vx-hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vx-hero__img-wrap {
  position: relative;
  width: 100%;
  max-width: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vx-hero__img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.5));
}

/* Responsive --------------------------------------------- */
@media (max-width: 960px) {
  .vx-hero__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 3.5rem 1.5rem 4rem;
  }

  .vx-hero__visual {
    order: -1;
  }

  .vx-hero__img-wrap {
    max-width: 460px;
  }

  .vx-hero__trust {
    gap: 1.25rem;
    flex-wrap: wrap;
  }

  .vx-hero__trust-divider {
    display: none;
  }
}

@media (max-width: 540px) {
  .vx-hero__inner {
    padding: 2.5rem 1rem 3.25rem;
  }

  .vx-hero__title {
    font-size: clamp(2rem, 8vw, 2.4rem);
  }

  .vx-hero__lead {
    font-size: 0.98rem;
  }

  .vx-hero__cta {
    width: 100%;
    text-align: center;
    padding: 1rem 1.5rem;
  }

  .vx-hero__trust {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}
