/* WIMS Studio — midnight hardware rack
   Brand seed: cobalt ~oklch(0.48 0.14 252). Product colors wash the stage. */

:root {
  --bg: oklch(0.1 0 0);
  --surface: oklch(0.145 0 0);
  --surface-2: oklch(0.18 0 0);
  --ink: oklch(0.96 0.01 252);
  --muted: oklch(0.72 0.02 252);
  --primary: oklch(0.58 0.14 252);
  --accent: oklch(0.78 0.12 75);
  --line: oklch(1 0 0 / 0.1);
  --product: var(--primary);
  --radius: 0;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 4.25rem;
  --font-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(
      55% 45% at 70% 18%,
      color-mix(in oklch, var(--product) 28%, transparent),
      transparent 70%
    ),
    radial-gradient(
      40% 35% at 12% 80%,
      oklch(0.35 0.08 252 / 0.25),
      transparent 70%
    ),
    linear-gradient(180deg, oklch(0.12 0 0), var(--bg) 40%);
  transition: background 0.55s var(--ease);
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  background: transparent;
  position: sticky;
  top: 0;
  z-index: 20;
  transition: background 0.25s var(--ease);
}

.site-header.is-scrolled {
  background: rgb(0 0 0 / 0.8);
}

.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: calc(0.55rem + 3px);
  text-decoration: none;
  color: inherit;
}

.showcase .brand::before {
  content: "";
  position: absolute;
  left: -0.55rem;
  top: 50%;
  z-index: 0;
  width: 2.75rem;
  height: 2.75rem;
  transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(
    circle at 50% 45%,
    color-mix(in oklch, var(--product) 70%, white 8%) 0%,
    color-mix(in oklch, var(--product) 35%, transparent) 42%,
    transparent 72%
  );
  filter: blur(11px);
  opacity: 0.8;
  pointer-events: none;
  transition:
    background 0.45s var(--ease),
    opacity 0.45s var(--ease);
}

.brand-icon {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  height: clamp(1.65rem, 3.4vw, 2.05rem);
  aspect-ratio: 279.875 / 317.501;
  background-color: #fff;
  -webkit-mask-image: url("../images/WS_logo_white-full_icon-only.svg");
  mask-image: url("../images/WS_logo_white-full_icon-only.svg");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  transition: background-color 0.35s var(--ease);
}

.showcase .brand-icon {
  background-color: var(--product);
}

.brand-lockup {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
}

.brand-text {
  display: block;
  height: clamp(1.15rem, 2.4vw, 1.45rem);
  width: auto;
  transform: translateY(calc(0.12em + 1px));
}

.brand-tagline {
  font-family: var(--font-sans);
  font-weight: 100;
  font-size: clamp(0.67rem, 1.35vw, 0.8rem);
  letter-spacing: 0.08em;
  line-height: 1;
  color: var(--muted);
  white-space: nowrap;
  transform: translateY(-1px);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  text-decoration: none;
  letter-spacing: 0.02em;
  border-bottom: 1px solid transparent;
  padding-bottom: 0.1rem;
  transition:
    border-color 0.25s var(--ease),
    color 0.25s var(--ease);
}

.nav-link .lucide {
  width: 1rem;
  height: 1rem;
  stroke-width: 1.75;
  flex-shrink: 0;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--accent);
  outline: none;
}

.stage {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  min-height: calc(100svh - var(--header-h) - 11rem);
  padding: clamp(1.5rem, 4vw, 3.5rem);
  padding-bottom: 1.5rem;
}

.stage-visual {
  position: relative;
  min-height: clamp(18rem, 48vh, 32rem);
  display: grid;
  place-items: center;
}

.stage-glow {
  position: absolute;
  inset: 12% 8%;
  border-radius: 50%;
  background: color-mix(in oklch, var(--product) 45%, transparent);
  filter: blur(70px);
  opacity: 0.55;
  transition: background 0.5s var(--ease);
}

.stage-figure {
  position: relative;
  margin: 0;
  width: min(100%, 38rem);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.stage-figure img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 28px 40px oklch(0 0 0 / 0.55));
}

.stage-placeholder {
  width: min(100%, 28rem);
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  gap: 0.75rem;
  text-align: center;
  padding: 2rem;
  border: 1px solid color-mix(in oklch, var(--product) 55%, white 10%);
  background: linear-gradient(
    145deg,
    color-mix(in oklch, var(--product) 55%, black),
    color-mix(in oklch, var(--product) 25%, black)
  );
}

.stage-placeholder strong {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 100;
  letter-spacing: -0.02em;
  line-height: 1;
  text-wrap: balance;
}

.stage-placeholder span {
  color: oklch(1 0 0 / 0.75);
  font-size: 0.95rem;
}

.stage-copy {
  max-width: 36rem;
}

.eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in oklch, var(--product) 70%, white);
}

#product-name {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 100;
  letter-spacing: -0.02em;
  line-height: 0.95;
  text-wrap: balance;
}

.tagline {
  margin: 0.85rem 0 0;
  font-family: var(--font-sans);
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  font-weight: 100;
  color: var(--muted);
}

.marketing {
  margin: 1rem 0 0;
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: color-mix(in oklch, var(--product) 55%, white);
}

.description {
  margin: 1rem 0 0;
  max-width: 62ch;
  color: var(--muted);
  text-wrap: pretty;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0.65rem 1.1rem;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  border-radius: 0.55rem;
  transition:
    transform 0.2s var(--ease),
    background 0.2s var(--ease),
    border-color 0.2s var(--ease),
    color 0.2s var(--ease);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.btn-primary {
  background: var(--product);
  color: oklch(0.12 0 0);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  filter: brightness(1.08);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: color-mix(in oklch, var(--product) 70%, white);
  background: oklch(1 0 0 / 0.04);
}

.btn .lucide {
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
  stroke-width: 2;
}

.download-group {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.format-tags {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.format-tag {
  display: inline-flex;
  align-items: center;
  min-height: 1.55rem;
  padding: 0.15rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: oklch(1 0 0 / 0.03);
}

.picker {
  padding: 0 clamp(1rem, 3vw, 2.5rem) 2.5rem;
}

.carousel-shell {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem;
}

.carousel-nav {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  background: oklch(1 0 0 / 0.03);
  color: var(--ink);
  transition:
    border-color 0.2s var(--ease),
    background 0.2s var(--ease),
    color 0.2s var(--ease);
}

.carousel-nav:hover,
.carousel-nav:focus-visible {
  border-color: color-mix(in oklch, var(--product) 70%, white);
  background: color-mix(in oklch, var(--product) 18%, transparent);
  outline: none;
}

.carousel-nav .lucide {
  width: 1.35rem;
  height: 1.35rem;
  stroke-width: 1.75;
}

.carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(8.5rem, 11rem);
  gap: 0.65rem;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: 0.35rem 0.15rem 0.5rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.carousel::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.product-card {
  scroll-snap-align: start;
  display: grid;
  gap: 0.55rem;
  padding: 0.65rem;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  background: oklch(1 0 0 / 0.02);
  transition:
    border-color 0.2s var(--ease),
    background 0.2s var(--ease);
}

.product-card:hover {
  border-color: color-mix(in oklch, var(--swatch, var(--primary)) 65%, white);
  background: color-mix(
    in oklch,
    var(--swatch, var(--primary)) 10%,
    transparent
  );
}

.product-card:focus {
  outline: none;
}

.product-card:focus-visible:not(.is-active) {
  border-color: color-mix(in oklch, var(--swatch, var(--primary)) 45%, white);
  box-shadow: 0 0 0 1px
    color-mix(in oklch, var(--swatch, var(--primary)) 35%, transparent);
}

.product-card.is-active {
  border-color: var(--swatch, var(--primary));
  background: color-mix(
    in oklch,
    var(--swatch, var(--primary)) 18%,
    transparent
  );
}

.product-card .thumb {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: transparent;
  overflow: hidden;
}

.product-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-card .thumb-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-family: var(--font-sans);
  font-weight: 100;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  background: linear-gradient(
    145deg,
    color-mix(in oklch, var(--swatch, var(--primary)) 70%, black),
    color-mix(in oklch, var(--swatch, var(--primary)) 30%, black)
  );
}

.product-card .meta {
  display: grid;
  gap: 0.15rem;
}

.product-card .name {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 100;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.product-card .role {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 100;
  color: var(--muted);
  line-height: 1.25;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1.25rem clamp(1.25rem, 4vw, 3rem) 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-start {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.75rem;
  min-width: 0;
}

.footer-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  margin: 0;
}

.footer-woodman {
  display: block;
  height: 1em;
  aspect-ratio: 1;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask-image: url("../images/woodman.svg");
  mask-image: url("../images/woodman.svg");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.75rem;
}

.site-footer a,
.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: oklch(0.52 0.01 252);
  font-weight: 400;
  text-decoration: none;
  border: 0;
  transition: color 0.2s var(--ease);
}

.site-footer a:hover,
.site-footer a:focus-visible,
.footer-link:hover,
.footer-link:focus-visible {
  color: var(--muted);
  outline: none;
}

.footer-link .lucide {
  width: 0.95rem;
  height: 0.95rem;
  stroke-width: 1.75;
  flex-shrink: 0;
}

.footer-end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem 1.75rem;
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.75rem;
}

.footer-sos {
  display: block;
  height: 0.95rem;
  width: auto;
  flex-shrink: 0;
  opacity: 0.95;
}

.footer-link:hover .footer-sos,
.footer-link:focus-visible .footer-sos {
  opacity: 1;
}

/* Static info pages (About / Privacy / Terms) */
body.doc {
  overflow: auto;
}

.doc-main {
  width: min(42rem, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 1.5rem 0 3.5rem;
}

.doc-main h1 {
  margin: 0 0 1rem;
  font-weight: 100;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.doc-main .lede {
  margin: 0 0 1.75rem;
  color: var(--muted);
}

.doc-main h2 {
  margin: 1.75rem 0 0.55rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.doc-main p,
.doc-main li {
  color: var(--muted);
  max-width: 65ch;
  text-wrap: pretty;
}

.doc-main p {
  margin: 0 0 0.85rem;
}

.doc-main ul {
  margin: 0 0 0.85rem;
  padding-left: 1.2rem;
}

.doc-main a {
  color: var(--ink);
}

.doc-main code {
  font-size: 0.92em;
  color: var(--ink);
}

@keyframes rise-in {
  from {
    opacity: 0.35;
    transform: translateY(12px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade-up {
  from {
    opacity: 0.2;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 901px) {
  html:has(body.showcase),
  body.showcase {
    height: 100%;
    overflow: hidden;
  }

  body.showcase {
    display: flex;
    flex-direction: column;
    height: 100svh;
  }

  .showcase .site-header {
    flex-shrink: 0;
    height: 3.5rem;
  }

  .showcase main {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  .showcase .stage {
    flex: 1;
    min-height: 0;
    padding: 0.35rem clamp(1.5rem, 3vw, 3rem) 0.5rem;
    gap: clamp(1rem, 2.5vw, 2.25rem);
    align-items: center;
  }

  .showcase .stage-visual {
    min-height: 0;
    height: 100%;
    max-height: 100%;
  }

  .showcase .stage-figure {
    width: auto;
    height: min(100%, 58svh);
    max-width: min(100%, 38rem);
    aspect-ratio: 1;
  }

  .showcase .stage-copy {
    max-height: 100%;
    overflow: auto;
    scrollbar-width: thin;
  }

  .showcase #product-name {
    font-size: clamp(2rem, 5.2svh, 3.75rem);
  }

  .showcase .tagline {
    margin-top: 0.5rem;
    font-size: clamp(1rem, 2svh, 1.25rem);
  }

  .showcase .marketing {
    margin-top: 0.65rem;
  }

  .showcase .description {
    margin-top: 0.65rem;
    font-size: 0.95rem;
    line-height: 1.45;
  }

  .showcase .actions {
    margin-top: 1rem;
    gap: 0.5rem;
  }

  .showcase .btn {
    min-height: 2.45rem;
    padding: 0.5rem 0.95rem;
    font-size: 0.9rem;
  }

  .showcase .picker {
    flex-shrink: 0;
    padding: 0 clamp(1rem, 3vw, 2.5rem) 0.65rem;
  }

  .showcase .carousel {
    grid-auto-columns: minmax(6.25rem, 8.25rem);
    gap: 0.5rem;
    padding: 0.2rem 0.1rem 0.35rem;
  }

  .showcase .product-card {
    gap: 0.35rem;
    padding: 0.45rem;
  }

  .showcase .product-card .name {
    font-size: 0.85rem;
  }

  .showcase .product-card .role {
    font-size: 0.72rem;
  }

  .showcase .carousel-nav {
    width: 2.4rem;
    height: 2.4rem;
  }

  .showcase .site-footer {
    flex-shrink: 0;
    padding: 0.45rem clamp(1.25rem, 4vw, 3rem) 0.7rem;
    border-top: 0;
    font-size: 0.82rem;
  }
}

@media (max-width: 900px) {
  .stage {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 1.25rem;
  }

  .stage-visual {
    min-height: clamp(14rem, 42vw, 22rem);
    order: -1;
  }

  .stage-copy {
    max-width: none;
  }

  .site-footer {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0.7rem 1.25rem;
    padding: 1.25rem clamp(1.15rem, 4vw, 2rem) 1.75rem;
  }

  .footer-start,
  .footer-end,
  .footer-nav,
  .footer-socials {
    display: contents;
  }

  .footer-copy {
    flex: 0 0 100%;
    margin: 0 0 0.15rem;
  }

  .footer-support {
    margin-top: 0;
  }
}

@media (max-width: 560px) {
  .carousel-shell {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .carousel-nav {
    width: 100%;
    height: 2.5rem;
  }

  .carousel-shell {
    display: flex;
    flex-wrap: wrap;
  }

  .carousel {
    order: -1;
    width: 100%;
    grid-auto-columns: minmax(7.5rem, 42vw);
  }

  .carousel-nav {
    flex: 1;
  }

  .actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
