@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-latin.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/jetbrains-mono-latin.woff2") format("woff2");
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
  background: #191d20;
  overflow-x: clip;
}
::selection {
  background: rgba(109, 130, 243, 0.28);
}
@keyframes blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}
html {
  scroll-behavior: smooth;
}
a {
  text-decoration: none;
}
.site-nav-mobile {
  display: none;
  position: relative;
  font-family: "JetBrains Mono", monospace;
}
.site-nav-mobile summary {
  min-width: 44px;
  min-height: 44px;
  padding: 0 10px;
  display: grid;
  place-items: center;
  color: #c9cdd2;
  cursor: pointer;
  list-style: none;
  border-radius: 7px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16);
}
.site-nav-mobile summary::-webkit-details-marker {
  display: none;
}
.site-nav-mobile[open] summary {
  color: #6d82f3;
}
.site-nav-mobile nav {
  position: absolute;
  top: 52px;
  right: 0;
  width: min(280px, calc(100vw - 32px));
  padding: 8px;
  display: grid;
  background: #22272b;
  border-radius: 10px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 16px 40px rgba(0, 0, 0, 0.35);
}
.site-nav-mobile nav a,
.site-nav-mobile nav button {
  min-height: 44px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  width: 100%;
  color: #b7bdc5;
  cursor: pointer;
  font: inherit;
  text-align: left;
  background: none;
  border: 0;
  border-radius: 6px;
}
.site-nav-mobile nav a:hover,
.site-nav-mobile nav a:focus-visible,
.site-nav-mobile nav button:hover,
.site-nav-mobile nav button:focus-visible {
  color: #e6e1d7;
  background: rgba(255, 255, 255, 0.06);
}
.doc-drawer-toggle,
.doc-drawer-overlay {
  display: none;
}
@media (max-width: 720px) {
  .site-nav-bar {
    padding: 0 16px !important;
  }
  .site-nav-desktop {
    display: none !important;
  }
  .site-nav-mobile {
    display: block;
  }
  .doc-layout {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0 !important;
    padding: 0 18px !important;
  }
  .doc-layout > .doc-scroll {
    position: fixed !important;
    top: 64px !important;
    bottom: auto;
    left: 0;
    z-index: 49;
    width: min(320px, calc(100vw - 48px));
    height: calc(100vh - 64px) !important;
    height: calc(100dvh - 64px) !important;
    padding: 20px 12px 40px !important;
    background: #191d20;
    box-shadow: 18px 0 48px rgba(0, 0, 0, 0.38);
    transform: translateX(-110%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 160ms cubic-bezier(0.2, 0, 0, 1);
  }
  .doc-drawer-toggle:checked ~ .doc-layout > .doc-scroll {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }
  .doc-drawer-toggle:checked + .doc-drawer-overlay {
    position: fixed;
    inset: 64px 0 0;
    z-index: 48;
    display: block;
    padding: 0;
    background: rgba(0, 0, 0, 0.48);
    cursor: pointer;
    border: 0;
  }
  .doc-content {
    max-width: none !important;
    padding: 32px 0 96px !important;
  }
  .doc-content p > span[style*="white-space"][style*="nowrap"] {
    white-space: normal !important;
    overflow-wrap: anywhere;
  }
  .doc-content div[style*="flex-wrap: wrap"] > span[style*="white-space"][style*="nowrap"] {
    max-width: 100%;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }
}
.cap-grid {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 860px) {
  .cap-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .cap-grid {
    grid-template-columns: 1fr;
  }
}
.doc-scroll::-webkit-scrollbar {
  width: 8px;
}
.doc-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.hv1:hover {
  color: #e6e1d7 !important;
  background: rgba(255, 255, 255, 0.05) !important;
}
.hv2:hover {
  color: var(--accent, #6d82f3) !important;
  border-color: rgba(109, 130, 243, 0.6) !important;
  background: rgba(109, 130, 243, 0.08) !important;
}
.hv3:hover {
  color: #e6e1d7 !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
}
.hv4:hover {
  color: var(--accent, #6d82f3) !important;
}
.hv5:hover {
  background: #82cfc2 !important;
}
.hv6:hover {
  border-color: var(--accent, #6d82f3) !important;
  color: var(--accent, #6d82f3) !important;
}
.hv7:hover {
  color: #e6e1d7 !important;
}
.hv8:hover {
  color: #6d82f3 !important;
  border-color: rgba(109, 130, 243, 0.6) !important;
  background: rgba(109, 130, 243, 0.08) !important;
}
.hv9:hover {
  color: #6d82f3 !important;
  background: rgba(255, 255, 255, 0.04) !important;
}
.hv10:hover {
  border-color: #6d82f3 !important;
  color: #6d82f3 !important;
}
.hv11:hover {
  color: #6d82f3 !important;
}

/* === hero screenshot crossfade === */
.hero-gallery {
  position: relative;
  aspect-ratio: 1187 / 696;
  overflow: hidden;
}
.hero-gallery img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: heroGallery 40s infinite;
}
.hero-gallery img:first-child {
  opacity: 1;
  animation-name: heroGalleryFirst;
}
.hero-gallery img:nth-child(1) {
  animation-delay: 0s;
}
.hero-gallery img:nth-child(2) {
  animation-delay: 5s;
}
.hero-gallery img:nth-child(3) {
  animation-delay: 10s;
}
.hero-gallery img:nth-child(4) {
  animation-delay: 15s;
}
.hero-gallery img:nth-child(5) {
  animation-delay: 20s;
}
.hero-gallery img:nth-child(6) {
  animation-delay: 25s;
}
.hero-gallery img:nth-child(7) {
  animation-delay: 30s;
}
.hero-gallery img:nth-child(8) {
  animation-delay: 35s;
}
@keyframes heroGalleryFirst {
  0% {
    opacity: 1;
  }
  12.5% {
    opacity: 1;
  }
  15.5% {
    opacity: 0;
  }
  97% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes heroGallery {
  0% {
    opacity: 0;
  }
  3% {
    opacity: 1;
  }
  12.5% {
    opacity: 1;
  }
  15.5% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-gallery img {
    animation: none;
  }
  .hero-gallery img:first-child {
    opacity: 1;
  }
  .hero-gallery img:not(:first-child) {
    opacity: 0;
  }
}

/* === surfaces grid: four cards on row 1, Dashboard + Windows callout aligned on row 2 === */
.surfaces-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.surfaces-grid .surfaces-wide {
  grid-column: span 3;
}
@media (max-width: 980px) {
  .surfaces-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .surfaces-grid .surfaces-wide {
    grid-column: span 2;
  }
}
@media (max-width: 620px) {
  .surfaces-grid {
    grid-template-columns: 1fr;
  }
  .surfaces-grid .surfaces-wide {
    grid-column: span 1;
  }
}
