:root {
  color-scheme: dark;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #111416;
}

a,
button,
input {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid #f5b800;
  outline-offset: 3px;
}

.brand-home {
  color: inherit;
  text-decoration: none;
}

.hero-proof-image {
  background-position: center;
  background-size: cover;
  filter: saturate(.78) contrast(1.06);
}

.product-proof-image {
  width: 100%;
  height: 180px;
  object-fit: contain;
  padding: 1.25rem;
  background:
    radial-gradient(circle at 50% 30%, rgba(197, 198, 203, .13), transparent 58%),
    #0c0f10;
  transition: transform .35s ease, filter .35s ease;
}

.product-proof-card:hover .product-proof-image,
.catalog-card:hover .catalog-image {
  transform: scale(1.035);
  filter: brightness(1.08);
}

.catalog-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  padding: 0;
  background: #080b0d;
  transition: transform .45s ease, filter .35s ease;
}

.catalog-card {
  min-height: 100%;
}

.catalog-card button {
  text-align: left;
}

.catalog-empty {
  grid-column: 1 / -1;
  padding: 4rem 1.5rem;
  border: 1px solid #45474b;
  text-align: center;
  color: #c5c6cb;
  background: #191c1e;
}

.family-tab[aria-selected="true"] {
  color: #f5b800;
  border-bottom-color: #f5b800;
}

.family-tab[aria-selected="false"] {
  color: #8f9195;
  border-bottom-color: transparent;
}

.demo-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 1rem;
  background: rgba(5, 7, 9, .84);
  backdrop-filter: blur(10px);
}

.demo-modal[data-open="true"] {
  display: grid;
}

.demo-modal-panel {
  width: min(920px, 100%);
  max-height: min(760px, calc(100vh - 2rem));
  overflow: auto;
  border: 1px solid #45474b;
  border-top-color: rgba(224, 226, 234, .45);
  background: #191c1e;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .55);
}

.mobile-demo-nav {
  display: none;
}

.demo-notice {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 70;
  max-width: 25rem;
  padding: .65rem .85rem;
  border: 1px solid #45474b;
  border-left: 2px solid #f5b800;
  background: rgba(12, 15, 16, .92);
  color: #c5c6cb;
  font: 500 11px/1.45 "JetBrains Mono", monospace;
  letter-spacing: .02em;
}

@media (max-width: 767px) {
  body {
    padding-bottom: 64px;
  }

  .mobile-demo-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 64px;
    border-top: 1px solid #45474b;
    background: rgba(12, 15, 16, .96);
    backdrop-filter: blur(12px);
  }

  .mobile-demo-nav a {
    display: grid;
    place-items: center;
    color: #c5c6cb;
    font: 600 11px/1 "IBM Plex Sans", sans-serif;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .mobile-demo-nav a[aria-current="page"] {
    color: #f5b800;
    box-shadow: inset 0 2px 0 #f5b800;
  }

  .demo-notice {
    display: none;
  }

  .product-proof-image {
    height: 150px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
