:root {
  color-scheme: light;
  --bg: #f6f5f2;
  --paper: #ffffff;
  --ink: #151515;
  --muted: #6f6f69;
  --line: #deddd7;
  --dark: #0d1014;
  --dark-2: #151922;
  --accent: #1a73ff;
  --yellow: #f4c84b;
  --green: #62d85a;
  --red: #ff4646;
  --cyan: #50cfe0;
  --shadow: 0 18px 50px rgba(20, 20, 20, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100dvh;
  margin: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow-x: hidden;
  background: #07080b;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 56px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(7, 8, 11, 0.86);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #f4f0e6;
}

.brand-mark {
  width: 18px;
  height: 18px;
  margin-right: 13px;
  border-radius: 50%;
  background: #f4f0e6;
  box-shadow: 13px 0 0 var(--yellow);
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  color: rgba(244, 240, 230, 0.66);
  font-size: 13px;
  font-weight: 600;
}

nav a:hover {
  color: #f4f0e6;
}

nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

nav a[aria-current="page"] {
  color: #f4f0e6;
}

main {
  min-height: calc(100dvh - 112px);
}

.view {
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - 112px);
  padding: clamp(16px, 3vw, 48px) clamp(18px, 4vw, 56px);
  overflow-x: hidden;
}

.active-view {
  display: flex;
  flex-direction: column;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(44px, 8vw, 112px);
  line-height: 0.92;
  letter-spacing: 0;
}

.product-hero p {
  max-width: 640px;
  color: rgba(244, 240, 230, 0.62);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.45;
}

.product-hero h1 {
  color: #f4f0e6;
}

.product-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(24px, 3vw, 42px);
  align-items: stretch;
}

.product-panel {
  position: relative;
  overflow: hidden;
  min-height: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.product-panel.lead {
  grid-column: span 6;
  display: grid;
  grid-template-rows: minmax(132px, auto) auto;
  align-content: start;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding-top: clamp(68px, 12vh, 132px);
}

.sampleman-panel {
  grid-column: span 7;
}

.dots-panel {
  grid-column: span 5;
}

.product-panel.compact {
  grid-column: span 6;
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(220px, 1fr);
  gap: 18px;
  min-height: 250px;
  padding: 28px;
  box-shadow: none;
}

.panel-link {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
}

.panel-copy {
  position: relative;
  z-index: 2;
  align-self: end;
  justify-self: center;
  width: min(calc(100% - clamp(32px, 4vw, 56px)), clamp(280px, 32vw, 380px));
  padding: 0 0 clamp(6px, 1vw, 12px);
  text-align: center;
  color: #f4f0e6;
}

.compact .panel-copy {
  padding: 0;
}

.panel-copy h2,
.product-hero h1 {
  font-size: clamp(25px, 3vw, 42px);
  line-height: 1;
}

.compact .panel-copy h2 {
  font-size: clamp(30px, 4vw, 48px);
}

.panel-copy p {
  max-width: 520px;
  margin-top: 6px;
  color: rgba(244, 240, 230, 0.62);
  font-size: 14px;
  line-height: 1.5;
}

.panel-actions,
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}

.button,
button {
  position: relative;
  z-index: 3;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid rgba(244, 240, 230, 0.22);
  border-radius: 6px;
  background: transparent;
  color: #f4f0e6;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

.button.primary,
button:hover {
  border-color: var(--yellow);
  background: var(--yellow);
  color: #0b0b0e;
}

.button.muted,
.button.disabled {
  color: #8e8d87;
  cursor: default;
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--yellow) !important;
  font-size: 12px !important;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.status-note {
  max-width: 620px;
  margin-top: 16px;
  color: rgba(244, 240, 230, 0.58);
  font-size: 13px;
  line-height: 1.55;
}

.media-frame {
  grid-row: 2;
  grid-column: 1;
  align-self: start;
  justify-self: center;
  width: min(calc(100% - clamp(32px, 4vw, 56px)), clamp(280px, 32vw, 380px));
  height: auto;
  aspect-ratio: 1 / 1;
  min-height: 0;
  margin: clamp(6px, 1vw, 12px) clamp(14px, 2vw, 24px);
  padding: clamp(10px, 1.4vw, 18px);
  overflow: hidden;
  border-radius: 6px;
  background: var(--dark);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 50px rgba(20, 20, 20, 0.14);
}

.media-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame picture,
.hero-media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.sampleman-media img,
.sampleman-hero-media img {
  object-fit: contain;
  object-position: center;
  background: #08070b;
}

.sampleman-media img {
  transform: none;
}

.sampleman-hero-media img {
  transform: none;
}

.sampleman-media,
.sampleman-hero-media {
  background:
    radial-gradient(circle at 50% 50%, rgba(244, 200, 75, 0.16), transparent 46%),
    #08070b;
}

.sampleman-media {
  width: min(calc(100% - clamp(20px, 3vw, 44px)), 920px);
  aspect-ratio: 1782 / 1183;
  padding: 0;
  border-color: rgba(244, 200, 75, 0.18);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.42),
    0 0 80px rgba(244, 200, 75, 0.12);
}

.sampleman-hero-media {
  width: 100%;
  height: auto;
  aspect-ratio: 1782 / 1183;
  padding: 0;
  border-color: rgba(244, 200, 75, 0.2);
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.48),
    0 0 92px rgba(244, 200, 75, 0.15);
}

.dots-media {
  background: #000;
}

.dots-media img,
.dots-hero-media img {
  object-fit: contain;
  background: #000;
}

.placeholder-visual {
  min-height: 180px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f2f1ec;
}

.pivot-visual {
  display: flex;
  align-items: end;
  gap: 10px;
  padding: 24px;
  background: #0c1014;
}

.pivot-visual span {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: #d8d8d8;
}

.pivot-visual span:nth-child(1) { height: 42%; background: #2ee0c5; }
.pivot-visual span:nth-child(2) { height: 72%; background: #8f3dff; }
.pivot-visual span:nth-child(3) { height: 56%; background: #ff8a24; }
.pivot-visual span:nth-child(4) { height: 88%; background: #f6cf35; }
.pivot-visual span:nth-child(5) { height: 35%; background: #13e7c2; }
.pivot-visual span:nth-child(6) { height: 65%; background: #eef7f7; }

.silk-visual {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  align-items: center;
  padding: 26px;
  background: #12100d;
}

.knob {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  border: 2px solid #80674c;
  background: radial-gradient(circle at 42% 38%, #e3d4bd 0 7%, #80674c 8% 28%, #221b15 29% 100%);
}

.meter {
  height: 14px;
  border-radius: 99px;
  background: linear-gradient(90deg, #6a8cb7, #d4bb78 55%, #c26a52);
}

.meter.small {
  grid-column: 2;
  width: 68%;
  background: #d4bb78;
}

.asset-note {
  grid-column: 2;
  justify-self: end;
  align-self: end;
  margin-top: -8px;
  color: #9b9a93;
  font-size: 12px;
  font-weight: 700;
}

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-bottom: 16px;
  color: rgba(244, 240, 230, 0.66);
  font-size: 13px;
  font-weight: 700;
}

.site-footer {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px clamp(18px, 4vw, 56px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(244, 240, 230, 0.58);
  font-size: 12px;
}

.site-footer div {
  display: flex;
  gap: 18px;
}

.site-footer a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}

.site-footer a:hover,
.inline-link {
  color: #f4f0e6;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-page {
  width: min(100%, 820px);
  gap: 28px;
  color: #f4f0e6;
}

.text-page h1 {
  font-size: clamp(42px, 8vw, 80px);
}

.text-page section {
  display: grid;
  gap: 8px;
}

.text-page h2 {
  margin: 0;
  font-size: 20px;
}

.text-page p {
  color: rgba(244, 240, 230, 0.72);
  line-height: 1.65;
}

.product-hero {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(250px, 0.55fr) minmax(440px, 1.45fr);
  gap: clamp(18px, 4vw, 56px);
  align-items: center;
  margin-bottom: 18px;
}

.hero-media {
  justify-self: end;
  width: auto;
  height: min(100%, 46vh, 420px);
  max-width: 100%;
  aspect-ratio: 1 / 1;
  padding: clamp(12px, 1.6vw, 20px);
  overflow: hidden;
  border-radius: 8px;
  background: var(--dark);
  border: 1px solid rgba(20, 20, 20, 0.16);
}

.hero-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.hero-media.sampleman-hero-media {
  justify-self: end;
  width: auto;
  height: min(50vh, 500px);
  aspect-ratio: 1782 / 1183;
  padding: 0;
  border-color: rgba(244, 200, 75, 0.2);
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.48),
    0 0 92px rgba(244, 200, 75, 0.15);
}

.sampleman-hero-media img,
.dots-hero-media img {
  object-fit: contain;
}

.dots-hero-media img {
  object-position: center;
}

.demo-shell,
.simple-section {
  margin-top: 0;
  padding: 16px;
  border: 1px solid rgba(244, 240, 230, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #f4f0e6;
}

.demo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
}

.demo-header h2,
.simple-section h2 {
  font-size: 22px;
}

.simple-section p {
  margin-top: 4px;
  color: rgba(244, 240, 230, 0.62);
  font-size: 14px;
  line-height: 1.45;
}

.demo-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

canvas {
  display: block;
  width: 100%;
  height: auto;
  max-height: 68vh;
  border-radius: 6px;
  background: #07090c;
}

.video-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.state-row {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 12px;
  margin-top: 12px;
}

.state-row figure {
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(244, 240, 230, 0.12);
  border-radius: 8px;
  background: #08070b;
}

.state-row img {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
  object-position: center;
}

.state-row figcaption {
  padding: 10px 12px;
  color: rgba(244, 240, 230, 0.72);
  font-size: 12px;
  font-weight: 750;
}

.video-row div {
  min-height: 72px;
  display: grid;
  place-items: center;
  border: 1px dashed #c4c2ba;
  border-radius: 6px;
  color: #89877f;
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 900px) {
  .site-header {
    align-items: center;
    flex-direction: row;
  }

  nav {
    width: auto;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .product-hero,
  .product-panel.compact {
    grid-template-columns: 1fr;
  }

  .asset-note {
    grid-column: 1;
    justify-self: start;
    margin-top: 0;
  }

  .product-panel.lead,
  .product-panel.compact {
    grid-column: 1 / -1;
  }

  .product-grid {
    grid-template-rows: none;
    align-content: start;
  }

  .product-panel.lead {
    grid-template-rows: auto auto;
    min-height: auto;
    margin-bottom: 34px;
    padding-top: 0;
  }

  .product-hero {
    flex: none;
    margin-bottom: 16px;
  }

  .panel-link,
  .media-frame {
    width: min(calc(100% - 24px), 380px);
    height: auto;
    aspect-ratio: 1 / 1;
    max-width: calc(100% - 24px);
    margin: 8px 12px;
    padding: 10px;
  }

  .panel-link {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .panel-copy {
    width: min(100%, 360px);
  }

  .sampleman-media {
    width: min(calc(100% - 24px), 680px);
    aspect-ratio: 1782 / 1183;
    padding: 0;
  }

  .video-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .view {
    padding-top: 12px;
    padding-bottom: 12px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .product-panel.compact,
  .demo-shell,
  .simple-section {
    padding: 18px;
  }

  .panel-copy {
    width: min(100%, 300px);
    padding: 0 0 12px;
  }

  .panel-link,
  .media-frame {
    width: min(calc(100% - 20px), 176px);
    height: auto;
    max-width: calc(100% - 20px);
    margin: 8px 10px;
    padding: 8px;
  }

  .panel-link {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .sampleman-media {
    width: min(calc(100% - 20px), 240px);
    aspect-ratio: 1 / 1;
  }

  .sampleman-hero-media {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .state-row {
    grid-template-columns: 1fr;
  }

  .product-panel.lead {
    grid-template-columns: none;
  }

  .button,
  button {
    min-height: 44px;
    padding: 0 12px;
    font-size: 12px;
  }

  .demo-header {
    align-items: flex-start;
    flex-direction: column;
  }

}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
