/* One glass material for the header, hero links and product cards. */
:root {
  --glass-tint: rgba(12, 14, 19, 0.18);
  --glass-border: rgba(225, 233, 247, 0.10);
  --glass-blur: 16px;
  --brand-action-fill:
    linear-gradient(180deg, rgba(255, 255, 255, 0.20), transparent 55%),
    linear-gradient(135deg, rgba(121, 19, 252, 0.82), rgba(188, 92, 240, 0.72));
}
/* The header and content inherit the same material state while scrolling. */
.header.scrolled, .header.scrolled ~ main {
  --glass-tint: rgba(12, 14, 19, 0.24);
  --glass-border: rgba(225, 233, 247, 0.12);
}
/* A subtle local tint protects product copy from the star field while the
   short blur and optical rim retain the established glass material. */
.editorial.product {
  --glass-tint: rgba(3, 5, 9, .36);
  --glass-blur: 8px;
}

/* Header and footer retain their original layout and scoped reset. */
.header, .footer-section {
  --page-width: 1180px;
  --page-gutter: 24px;
  --font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
}
:where(.header, .footer-section) *,
:where(.header, .footer-section) *::before,
:where(.header, .footer-section) *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
.header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translate(-50%, 0);
  z-index: 1000;
  width: 100%;

  max-width: calc(var(--page-width) + var(--page-gutter) * 2);
  padding: 24px var(--page-gutter);
  display: flex;
  justify-content: center;
  pointer-events: none;
  transition: padding-top 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              padding-bottom 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 1;

  font-family: var(--font-family);
}

.nav-container {
  position: relative;
  pointer-events: auto;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 100px;
  padding: 12px 28px;
}

/* A transparent body, an optical rim, and two soft contact shadows.
   Keep the broad faces quiet: the light belongs to the rounded edges. */
.glass-surface {
  position: relative;
  background:
    linear-gradient(145deg, rgba(235, 242, 255, .045), rgba(255, 255, 255, .008) 44%, rgba(225, 234, 250, .025)),
    var(--glass-tint);
  backdrop-filter: blur(var(--glass-blur)) saturate(135%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(135%);
  border: 1px solid var(--glass-border);
  box-shadow:
    0 2px 6px rgba(0, 0, 0, .24),
    0 18px 44px -12px rgba(0, 0, 0, .32),
    inset 0 1px 0 rgba(255, 255, 255, .16),
    inset 0 -1px 0 rgba(210, 225, 255, .045);
  transition: background-color .28s ease, border-color .28s ease,
              box-shadow .28s ease;
}

.glass-surface::before,
.glass-surface::after {
  content: '';
  box-sizing: border-box;
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
}

/* The shallow reflection follows the curve without washing out the center. */
.glass-surface::before {
  inset: 0;
  background:
    radial-gradient(ellipse 85% 32% at 18% 0%, rgba(245, 249, 255, .055), transparent 80%),
    radial-gradient(ellipse 55% 24% at 100% 100%, rgba(218, 231, 255, .035), transparent 75%);
}

/* Plain borders remain the fallback when composite masking is unavailable. */
.glass-surface::after {display: none}
@supports ((mask-composite: exclude) or (-webkit-mask-composite: xor)) {
  .glass-surface::after {
    display: block;
    padding: 1px;
    background: linear-gradient(135deg,
      rgba(255, 255, 255, .42) 0%,
      rgba(237, 245, 255, .16) 18%,
      rgba(255, 255, 255, .025) 42%,
      rgba(255, 255, 255, .035) 60%,
      rgba(226, 238, 255, .22) 83%,
      rgba(255, 255, 255, .055) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    transition: opacity .28s ease;
  }
}

.glass-surface > * {position: relative; z-index: 1}

/* A small lift makes the hero controls feel tactile; large reading cards stay still. */
.product-directory__item.glass-surface {
  transition: background-color .28s ease, border-color .28s ease,
              box-shadow .28s ease, transform .28s cubic-bezier(.2, .8, .2, 1);
}
@media (hover: hover) and (pointer: fine) {
  .product-directory__item.glass-surface:hover {
    background-color: rgba(70, 78, 94, .25);
    border-color: rgba(236, 243, 255, .20);
    box-shadow: 0 4px 10px rgba(0, 0, 0, .24),
                0 16px 32px -12px rgba(0, 0, 0, .35),
                inset 0 1px 0 rgba(255, 255, 255, .23),
                inset 0 -1px 0 rgba(210, 225, 255, .07);
    transform: translateY(-1px);
  }
}
.product-directory__item.glass-surface:active {transform: scale(.985)}

/* Safe and Blueprint read as the two ways in; Custom stays reachable but quieter. */
.product-directory__item--primary {
  color: #fff;
  background: var(--brand-action-fill);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.12), 0 3px 10px rgba(32, 4, 62, 0.12);
  transition: transform 0.3s ease, background 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.product-directory__item--primary svg {color: rgba(255, 255, 255, .78)}
@media (hover: hover) and (pointer: fine) {
  .product-directory__item--primary:hover {
    transform: translateY(-1px);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent 65%),
      linear-gradient(135deg, rgba(121, 19, 252, 0.9), rgba(188, 92, 240, 0.8));
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.16), 0 4px 16px rgba(121, 19, 252, 0.12);
  }
}
.product-directory__item--primary:active {transform: scale(.985)}
.product-directory__item--secondary {
  color: #9195a3;
  background: transparent;
  border: 1px solid rgba(239, 241, 245, .14);
}
.product-directory__item--secondary svg {color: #72747f}
@media (hover: hover) and (pointer: fine) {
  .product-directory__item--secondary:hover {color: #d7d8de; border-color: rgba(239, 241, 245, .28)}
}
@media (prefers-reduced-motion: reduce) {
  .product-directory__item--primary, .product-directory__item--secondary {transition: none !important}
  .product-directory__item--primary:hover, .product-directory__item--primary:active {transform: none}
}
@media (forced-colors: active) {
  .product-directory__item--primary, .product-directory__item--secondary {
    background: Canvas; border-color: ButtonText; color: ButtonText; box-shadow: none;
  }
}

.header.scrolled {
  padding: 12px var(--page-gutter);
}

.header.light-mode .nav-container,
.header.light-mode.scrolled .nav-container {
  background: rgba(255, 255, 255, 0.22) !important;
  backdrop-filter: blur(14px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(14px) saturate(160%) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.05),
              inset 0 1px 1px rgba(255, 255, 255, 0.9),
              inset 0 -1px 1px rgba(0, 0, 0, 0.03) !important;
}

.logo-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  height: 34px;
  min-width: 110px;
}

.nav-logo {
  height: 34px;
  width: auto;
  display: block;
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1) !important;
  will-change: opacity;
}

.nav-logo.dark-logo {
  opacity: 1;
}

.nav-logo.light-logo {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  pointer-events: none;
}

.header.light-mode .nav-logo.dark-logo {
  opacity: 0 !important;
  pointer-events: none !important;
}

.header.light-mode .nav-logo.light-logo {
  opacity: 1 !important;
  pointer-events: auto !important;
}

.nav-menu {
  display: flex;
  gap: 36px;
  align-items: center;
}

.nav-link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.7s cubic-bezier(0.16, 1, 0.3, 1), text-shadow 0.7s cubic-bezier(0.16, 1, 0.3, 1) !important;
  will-change: color;
}

.nav-link:hover {
  color: #FFFFFF;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
}

.header.light-mode .nav-link,
.header.light-mode .nav-menu a,
.header.light-mode a.nav-link {
  color: #000000 !important;
  text-shadow: none !important;
}

.header.light-mode .nav-link:hover,
.header.light-mode .nav-menu a:hover {
  color: #7913fc !important;
  text-shadow: none !important;
}

.nav-actions {
  display: flex;
  align-items: center;
}

.btn-primary-glass {
  text-decoration: none;
  color: #FFFFFF !important;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 100px;
  background: var(--brand-action-fill);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.12), 0 3px 10px rgba(32, 4, 62, 0.12);
  transition: transform 0.3s ease,
              background 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              color 0.7s cubic-bezier(0.16, 1, 0.3, 1) !important;
  will-change: transform, background, box-shadow;
}

.btn-primary-glass:hover {
  transform: translateY(-1px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent 65%),
    linear-gradient(135deg, rgba(121, 19, 252, 0.9), rgba(188, 92, 240, 0.8));
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.16), 0 4px 16px rgba(121, 19, 252, 0.12);
}

.nav-burger,
.mobile-menu {
  display: none;
}

@media (max-width: 1024px) {
  .nav-actions {
    gap: 10px;
  }

  .nav-burger {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 38px;
    height: 38px;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .nav-burger span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: #FFFFFF;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.25s ease,
                background 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .header.light-mode .nav-burger span {
    background: #000000;
  }

  .header.menu-open .nav-burger span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .header.menu-open .nav-burger span:nth-child(2) {
    opacity: 0;
  }

  .header.menu-open .nav-burger span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .mobile-menu {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(100% - 4px);
    left: 32px;
    right: 32px;
    padding: 10px;
    border-radius: 22px;
    background:
      radial-gradient(ellipse at 8% 10%, rgba(255, 255, 255, 0.10), transparent 68%),
      linear-gradient(120deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025)), rgba(20, 20, 22, 0.26);
    backdrop-filter: blur(22px) saturate(120%);
    -webkit-backdrop-filter: blur(22px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.24), inset 0 1px 1px rgba(255, 255, 255, 0.09);
    opacity: 0;
    transform: translateY(-8px);
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0s linear 0.35s;
  }

  .header.menu-open .mobile-menu {
    opacity: 1;
    transform: none;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
  }

  .mobile-menu a {
    display: block;
    padding: 14px 18px;
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: background 0.25s ease, color 0.25s ease;
  }

  .mobile-menu a + a {
    margin-top: 2px;
  }

  .mobile-menu a:hover,
  .mobile-menu a:active {
    background: rgba(255, 255, 255, 0.07);
    color: #FFFFFF;
  }

  .header.light-mode .mobile-menu {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12);
  }

  .header.light-mode .mobile-menu a {
    color: #0C111B;
  }

  .header.light-mode .mobile-menu a:hover,
  .header.light-mode .mobile-menu a:active {
    background: rgba(12, 17, 27, 0.06);
    color: #000000;
  }

  .mobile-menu a.mobile-menu-cta {
    display: none;
    margin-top: 10px;
    padding: 14px 18px;
    border-radius: 100px;
    text-align: center;
    background: linear-gradient(135deg, #7913fc 0%, #bc5cf0 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
  }

  .mobile-menu a.mobile-menu-cta:hover,
  .mobile-menu a.mobile-menu-cta:active {
    background: linear-gradient(135deg, #6c0ee6 0%, #b24ce8 100%);
    color: #FFFFFF;
  }

  .header.light-mode .mobile-menu a.mobile-menu-cta {
    color: #FFFFFF;
  }

  .header.light-mode .mobile-menu a.mobile-menu-cta:hover,
  .header.light-mode .mobile-menu a.mobile-menu-cta:active {
    background: linear-gradient(135deg, #6c0ee6 0%, #b24ce8 100%);
    color: #FFFFFF;
  }
}
.footer-section {
  background-color: transparent;
  color: #a1a1aa;
  font-family: var(--font-family);
  position: relative;
  width: 100%;
}

.footer-constellation { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
@media (forced-colors: active) { .footer-section { border-top: 1px solid CanvasText; } .footer-constellation { display: none; } }

.footer-container {
  max-width: calc(var(--page-width) + var(--page-gutter) * 2);
  margin: 0 auto;
  padding: 64px var(--page-gutter) 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.footer-col {

}

.footer-col:nth-child(2) {
  padding-left: 40px;
}

.footer-brand {
  max-width: 380px;
}

.footer-logo {
  height: 34px;
  width: auto;
  margin-bottom: 24px;
}

.footer-description {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 32px;
  color: #CBD5E1;
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: transparent;
  color: #ffffff;
  transition: all 0.3s ease;
}

.footer-socials a svg {
  width: 20px;
  height: 20px;
}

.footer-socials a:hover {
  background-color: rgba(121, 19, 252, 0.1);
  transform: translateY(-2px);
  color: #bc5cf0;
}

.footer-title {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 16px;
}

.footer-links a {
  color: #CBD5E1;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  color: #CBD5E1;
  font-size: 0.95rem;
  line-height: 1.5;
}

.footer-contact-list a {
  color: #CBD5E1;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact-list a:hover {
  color: #ffffff;
}

.contact-icon {
  width: 18px;
  height: 18px;
  color: #ffffff;
  flex-shrink: 0;
  margin-top: 2px;
}

.address-item span {
  display: block;
}

.footer-bottom {
  max-width: var(--page-width);
  width: calc(100% - var(--page-gutter) * 2);
  margin: 0 auto;
  padding: 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.footer-bottom p {
  color: #94a3b8;
  font-size: 0.85rem;
}

@media (max-width: 992px) {
  .footer-container {
    display: flex;
    flex-wrap: wrap;
  }
  .footer-brand {
    max-width: 100%;
    width: 100%;
    margin-bottom: 24px;
  }
  .footer-col {
    flex: 1 1 calc(50% - 24px);
  }
  .footer-col:nth-child(2) {
    padding-left: 0;
  }
}

@media (max-width: 768px) {
  .footer-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 48px var(--page-gutter) 32px;
  }
  .footer-col {
    flex: 1 1 100%;
  }
  .footer-socials {
    margin-bottom: 16px;
  }
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  margin-right: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025));
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.14), 0 1px 3px rgba(0, 0, 0, 0.1);
}
.lang-switch-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  padding: 5px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.25s ease, background 0.25s ease;
}
.lang-switch-item:hover { color: #fff; }
.lang-switch-item.is-active {
  background: rgba(255, 255, 255, 0.92);
  color: #18181b;
}
.header.light-mode .lang-switch {
  border-color: rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.35);
}
.header.light-mode .lang-switch-item { color: rgba(0, 0, 0, 0.6); }
.header.light-mode .lang-switch-item:hover { color: #7913fc; }
.header.light-mode .lang-switch-item.is-active { background: #18181b; color: #fff; }

@media (max-width: 900px) {
  .lang-switch {
    gap: 1px;
    padding: 2px;
    margin-right: 6px;
  }

  .lang-switch-item {
    min-width: 26px;
    padding: 4px 5px;
    font-size: 10px;
    letter-spacing: 0.02em;
  }
}
/* Header media rules from the reference, without its hero styles. */
@media (max-width: 1024px) {
  .header .nav-menu { display: none; }
}
@media (max-width: 768px) {
  .header, .footer-section { --page-gutter: 20px; }
  .header { padding: 14px var(--page-gutter); }
  .header.scrolled { padding: 8px var(--page-gutter); }
  .header .nav-container {
    padding: 10px 14px;
  }
  .header .logo-link { min-width: 0; height: 30px; }
  .header .nav-logo { height: 30px; }
  .header .nav-actions .btn-primary-glass { display: none; }
  .header .mobile-menu a.mobile-menu-cta { display: block; }
  .header .mobile-menu { left: 16px; right: 16px; }
}
@media (max-width: 480px) {
  .header, .footer-section { --page-gutter: 16px; }
}
/* The home uses a full-screen canvas. Anchor its mobile chrome to both
   viewport edges so that the bar and its menu share the same safe gutters. */
@media (max-width: 768px) {
  .home-page .header {
    --home-nav-left: max(var(--page-gutter), env(safe-area-inset-left, 0px));
    --home-nav-right: max(var(--page-gutter), env(safe-area-inset-right, 0px));
    box-sizing: border-box;
    left: 0;
    right: 0;
    width: auto;
    max-width: none;
    transform: none;
    padding: calc(14px + env(safe-area-inset-top, 0px)) var(--home-nav-right) 14px var(--home-nav-left);
  }
  .home-page .header.scrolled {
    padding: calc(8px + env(safe-area-inset-top, 0px)) var(--home-nav-right) 8px var(--home-nav-left);
  }
  .home-page .header .nav-container {
    min-width: 0;
    gap: 12px;
  }
  .home-page .header .logo-link,
  .home-page .header .nav-burger {
    flex-shrink: 0;
  }
  .home-page .header .nav-actions {
    flex-shrink: 0;
    gap: 6px;
    margin-left: auto;
  }
  .home-page .header .lang-switch { margin-right: 0; }
  .home-page .header .mobile-menu {
    left: var(--home-nav-left);
    right: var(--home-nav-right);
    max-height: calc(100svh - 110px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  }
}
.header a:focus-visible, .header button:focus-visible, .footer-section a:focus-visible {
  outline: 2px solid #c4a5ff;
  outline-offset: 5px;
}
.header .mobile-menu { max-height: calc(100svh - 110px); overflow-y: auto; }
.footer-col { min-width: 0; }
.footer-contact-list a { overflow-wrap: anywhere; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass-surface, .product-directory__item.glass-surface:hover, .header .mobile-menu { background-color: rgba(15, 18, 24, .96); }
}
@media (prefers-reduced-transparency: reduce) {
  .glass-surface, .product-directory__item.glass-surface:hover, .header .mobile-menu {
    background: rgb(15, 18, 24);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .glass-surface, .glass-surface::after, .header, .header *, .footer-section * { transition: none !important; }
  .product-directory__item.glass-surface:hover, .product-directory__item.glass-surface:active {transform: none}
}
@media (prefers-contrast: more) {
  .glass-surface, .product-directory__item.glass-surface:hover {background: #101318; border-color: #88909d}
  .glass-surface::before, .glass-surface::after {display: none}
  .editorial .description {color: #d5d7df}
}
@media (forced-colors: active) {
  .glass-surface, .product-directory__item.glass-surface:hover {
    background: Canvas;
    border-color: CanvasText;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .glass-surface::before, .glass-surface::after {display: none}
}
