/* Homepage visual refinement shared with the approved Cook example. */
.preview-bar {
  color: #dfd6f3;
  background: #171323;
  border-bottom: 1px solid #bc9ae01f;
}
.header {
  background: linear-gradient(180deg, #0a0b12f7, #0a0b12ed);
  box-shadow: 0 8px 28px #03040b55;
}
.hero {
  position: relative;
  isolation: isolate;
}
.hero::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 5% 20% 6% 30%;
  pointer-events: none;
  background: radial-gradient(ellipse at 60% 47%, #6c42a71c, transparent 65%);
}
.hero-intro h1 {
  text-wrap: balance;
  text-shadow: 0 5px 26px #07081385;
}
.hero-copy {
  color: #c8c8d8;
  line-height: 1.66;
}
.hero-art.hero-depth {
  border-color: #b99bd280;
  box-shadow: 0 1px 0 #f1d5ff32 inset, 0 3px 0 #171022, 0 18px 34px #04050d99, 0 34px 80px #59328534;
}
.hero-art.hero-depth > picture {
  box-shadow: inset 0 1px 0 #fff3, 0 0 0 1px #111321;
}
.hero-depth .hero-cutout img {
  filter: drop-shadow(0 16px 18px #000a) drop-shadow(0 3px 5px #140b2180);
}
.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero-meta { color: #b8b6c9; }
.capability-strip {
  border-block: 1px solid #a78bc42b;
  box-shadow: inset 0 1px 0 #ffffff08, 0 15px 42px #0003;
}
#workspace .view-switch { perspective: 900px; gap: 12px; }
#workspace .view-switch button {
  position: relative;
  isolation: isolate;
  border-color: #65577788;
  background: linear-gradient(155deg, #1c1929, #10131e 72%);
  box-shadow: inset 0 1px 0 #ffffff0c, 0 2px 0 #080911, 0 10px 23px #02030b55;
}
#workspace .view-switch button[aria-selected='true'] {
  border-color: #b79be7b5;
  background: linear-gradient(145deg, #3b2d51, #1b172b 75%);
  box-shadow: inset 0 1px 0 #e7d5ff32, 0 2px 0 #100d1d, 0 12px 28px #0008, 0 0 26px #ad83ee1c;
}
#workspace .view-switch button[aria-selected='true']::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 2px;
  border-radius: 4px;
  background: linear-gradient(90deg, #bca1ff, #eaa8d8 55%, #d2f18e);
}
#workspace .workspace-panel {
  border-color: #76628599;
  box-shadow: 0 2px 0 #171220, 0 18px 50px #03040c8c;
}
#workspace .workspace-copy { background: linear-gradient(120deg, #161321, #10131d 75%); }
#workspace .assembly-controls :is(button,a):focus-visible,
#workspace .view-switch button:focus-visible {
  outline: 2px solid #d2f18e;
  outline-offset: 3px;
}
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
  #workspace .view-switch button {
    transition: border-color .3s ease, box-shadow .3s ease, transform .3s cubic-bezier(.22,.7,.25,1);
  }
  #workspace .view-switch button:hover { transform: translateY(-3px); border-color: #bca5db; }
}
@media(max-width:760px) {
  .hero::before { inset: 20% 0 0; }
  #workspace .view-switch { gap: 7px; }
  #workspace .view-switch button[aria-selected='true']::after { left: 8px; right: 8px; }
}
