/* Power Playground: a lightweight, accessible window into the real four-station lab. */
.home-page .labs-home.power-spotlight {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  grid-template-areas: "copy visual" "stations stations";
  align-items: center;
  gap: clamp(22px, 2.6vw, 36px) clamp(24px, 4vw, 54px);
  position: relative;
  isolation: isolate;
  max-width: none;
  min-width: 0;
  margin: 0 0 24px;
  padding: clamp(24px, 3.5vw, 46px);
  border: 1px solid #38657b;
  border-radius: 28px;
  background:
    radial-gradient(ellipse 65% 100% at 92% 8%, #20567670 0%, transparent 75%),
    radial-gradient(ellipse 58% 85% at 1% 98%, #1d62513a 0%, transparent 76%),
    linear-gradient(135deg, #102b42 0%, #091d32 70%, #0b2638 100%);
  box-shadow: inset 0 1px 0 #ffffff10, 0 22px 55px #020d1d45;
  color: #f2fafa;
}
.power-spotlight :is(a, button):focus-visible {
  outline: 3px solid #ffe39b;
  outline-offset: 4px;
}
.power-spotlight-copy { grid-area: copy; min-width: 0; position: relative; z-index: 1; }
.power-spotlight-eyebrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 20px;
  color: #91eadb;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.4;
  letter-spacing: .12em;
}
.power-spotlight-spark {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid #6ce4d05e;
  border-radius: 10px;
  background: #5de6cd1c;
  color: #81f3df;
  font-size: 19px;
}
.power-spotlight-eyebrow-line { display: inline-block; width: 22px; height: 1px; background: #65b4ac8a; }
.home-page .labs-home.power-spotlight h2 {
  max-width: 560px;
  margin: 0;
  color: #f5fbff;
  font-size: clamp(37px, 4.25vw, 66px);
  line-height: 1.02;
  letter-spacing: -.055em;
  font-weight: 870;
  text-wrap: balance;
}
.power-spotlight h2 em { color: #ffdf92; font-style: normal; }
.home-page .labs-home.power-spotlight .power-spotlight-intro {
  max-width: 520px;
  margin: 18px 0 0;
  color: #c6dce8;
  font-size: clamp(15px, 1.3vw, 17px);
  font-weight: 520;
  line-height: 1.65;
}
.power-spotlight-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
}
.power-spotlight-badges span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 33px;
  padding: 6px 11px;
  border: 1px solid #4e7887;
  border-radius: 999px;
  background: #19415784;
  color: #d9f7f0;
  font-size: 12px;
  font-weight: 700;
}
.power-spotlight-badges span span { min-height: 0; padding: 0; border: 0; color: #93efdc; background: transparent; font-size: 16px; }
.power-spotlight-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 13px; margin-top: 28px; }
.power-spotlight-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  transition: background 160ms ease, transform 160ms ease, color 160ms ease;
}
.power-spotlight-actions a:hover { transform: translateY(-2px); }
.power-spotlight-actions .power-spotlight-primary {
  padding: 13px 21px;
  border: 1px solid #a0fbe8;
  border-radius: 14px;
  background: #78e8d3;
  color: #072b37;
  box-shadow: 0 8px 24px #32d4ba2a;
}
.power-spotlight-actions .power-spotlight-primary:hover { background: #a0f9e8; }
.power-spotlight-actions .power-spotlight-secondary { color: #c1e7e3; padding: 9px 3px; }
.power-spotlight-actions .power-spotlight-secondary:hover { color: #fff; }
.home-page .labs-home.power-spotlight .power-spotlight-reassurance {
  margin: 15px 0 0;
  color: #9ebac6;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .01em;
}
.power-spotlight-visual {
  grid-area: visual;
  min-width: 0;
  position: relative;
  overflow: hidden;
  border: 1px solid #518c96;
  border-radius: 23px;
  background: #0d2d42;
  box-shadow: 0 22px 44px #000c1f79, inset 0 1px 0 #fff3;
}
.power-spotlight-preview-link {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 760 / 400;
  background: #15374a;
  color: #eefbfa;
  text-decoration: none;
}
.power-spotlight-preview-link::after {
  content: "";
  position: absolute;
  inset: 46% 0 0;
  pointer-events: none;
  background: linear-gradient(transparent 60%, #031e30a6 100%);
}
.power-spotlight-preview-link .power-spotlight-scene {
  display: block;
  width: 100%;
  height: 100%;
  transition: transform 450ms ease;
}
.power-spotlight-preview-link:hover .power-spotlight-scene,
.power-spotlight-preview-link:focus-visible .power-spotlight-scene { transform: scale(1.035); }
.power-spotlight-scene-bar {
  position: absolute;
  z-index: 2;
  top: 15px;
  left: 15px;
  right: 15px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  color: #ddfffa;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .08em;
}
.power-spotlight-scene-bar > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid #96dfda66;
  border-radius: 100px;
  background: #062b40e6;
  backdrop-filter: blur(8px);
}
.power-spotlight-scene-bar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #73edcc;
  box-shadow: 0 0 0 5px #73edcc28;
}
.power-spotlight-scene-bar .power-spotlight-scene-open { background: #ffdf92; border-color: #ffe6ad; color: #123644; }
.power-spotlight-scene-hint {
  position: absolute;
  z-index: 2;
  bottom: 14px;
  left: 16px;
  max-width: calc(100% - 32px);
  padding: 8px 12px;
  border: 1px solid #a5e4df44;
  border-radius: 99px;
  background: #052438d9;
  color: #e4faf6;
  font-size: 12px;
  font-weight: 700;
}
.power-spotlight-demo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border-top: 1px solid #51788969;
  background: linear-gradient(100deg, #0d2b40, #123a4b);
}
.power-spotlight-rotor { display: grid; place-items: center; flex: 0 0 48px; width: 48px; height: 48px; border-radius: 14px; background: #22536985; }
.power-spotlight-rotor svg { width: 43px; height: 43px; display: block; }
.power-spotlight-rotor-blades { transform-origin: 32px 32px; animation: power-home-spin .85s linear infinite; animation-play-state: paused; }
.power-spotlight.is-running .power-spotlight-rotor-blades { animation-play-state: running; }
.power-spotlight.is-running .power-spotlight-rotor { background: #2f786c; box-shadow: 0 0 18px #74e8c63b; }
@keyframes power-home-spin { to { transform: rotate(360deg); } }
.power-spotlight-demo-copy { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 3px; }
.power-spotlight-demo-copy strong { font-size: 14px; line-height: 1.2; font-weight: 800; color: #f5fffd; }
.power-spotlight-demo-copy small { font-size: 12px; line-height: 1.35; color: #a9cbd4; }
.power-spotlight-demo-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  flex-shrink: 0;
  padding: 8px 13px;
  border: 1px solid #5aaea7;
  border-radius: 11px;
  background: #204e5a;
  color: #9cf4dd;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: background 160ms ease;
}
.power-spotlight-demo-toggle:hover, .power-spotlight.is-running .power-spotlight-demo-toggle { background: #2e6e6b; color: #fff; }
.power-spotlight-demo-toggle span:last-child { font-size: 18px; }
.power-spotlight-stations {
  grid-area: stations;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 11px;
  min-width: 0;
  padding-top: 22px;
  border-top: 1px solid #7fc7c830;
}
.power-spotlight-station {
  --station-accent: #87e8d6;
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  min-height: 79px;
  padding: 12px;
  border: 1px solid #386379;
  border-radius: 15px;
  background: #17364b99;
  color: #e9fbf8;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.power-spotlight-station:nth-child(2) { --station-accent: #ffd794; }
.power-spotlight-station:nth-child(3) { --station-accent: #daaaff; }
.power-spotlight-station:nth-child(4) { --station-accent: #8fceff; }
.power-spotlight-station:hover, .power-spotlight-station:focus-visible {
  transform: translateY(-3px);
  background: #23506a;
  border-color: var(--station-accent);
}
.power-spotlight-station-icon {
  display: grid;
  flex: 0 0 44px;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid color-mix(in srgb, var(--station-accent) 40%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--station-accent) 12%, transparent);
  color: var(--station-accent);
}
.power-spotlight-station-icon svg { width: 29px; height: 29px; display: block; }
.power-spotlight-station-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.power-spotlight-station-text strong { font-size: 14px; line-height: 1.3; font-weight: 850; }
.power-spotlight-station-text small { font-size: 11px; line-height: 1.35; color: #bad2da; }
.power-spotlight-station-arrow { align-self: flex-start; margin-left: auto; color: var(--station-accent); font-size: 15px; }

@media (max-width: 1040px) {
  .home-page .labs-home.power-spotlight { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "visual" "stations"; gap: 19px; padding: 27px; }
  .home-page .labs-home.power-spotlight h2 { max-width: none; font-size: clamp(36px, 5vw, 52px); }
  .home-page .labs-home.power-spotlight .power-spotlight-intro { max-width: 690px; }
  .power-spotlight-preview-link { max-height: 390px; }
  .power-spotlight-preview-link .power-spotlight-scene { object-fit: cover; }
  .power-spotlight-stations { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .home-page .labs-home.power-spotlight {
    gap: 15px;
    margin: 0 0 18px;
    padding: 17px;
    border-radius: 21px;
  }
  .power-spotlight-eyebrow { gap: 7px; margin-bottom: 12px; font-size: 10px; }
  .power-spotlight-spark { width: 26px; height: 26px; font-size: 16px; }
  .power-spotlight-eyebrow-line { width: 14px; }
  .home-page .labs-home.power-spotlight h2 { font-size: clamp(30px, 7.5vw, 42px); letter-spacing: -.045em; line-height: 1.06; }
  .home-page .labs-home.power-spotlight .power-spotlight-intro { margin-top: 11px; font-size: 13px; line-height: 1.5; }
  .power-spotlight-badges { margin-top: 12px; gap: 6px; }
  .power-spotlight-badges span { padding: 5px 9px; min-height: 29px; font-size: 10px; }
  .power-spotlight-actions { display: flex; gap: 8px 13px; margin-top: 17px; }
  .power-spotlight-actions a { min-height: 44px; font-size: 12px; }
  .power-spotlight-actions .power-spotlight-primary { padding: 10px 15px; }
  .power-spotlight-actions .power-spotlight-secondary { padding: 5px 1px; }
  .home-page .labs-home.power-spotlight .power-spotlight-reassurance { margin-top: 7px; font-size: 11px; }
  .power-spotlight-visual { border-radius: 15px; }
  .power-spotlight-scene-bar { top: 8px; right: 8px; left: 8px; font-size: 9px; letter-spacing: .035em; gap: 4px; }
  .power-spotlight-scene-bar > span { padding: 7px 8px; gap: 5px; }
  .power-spotlight-scene-hint { bottom: 6px; left: 7px; padding: 5px 8px; font-size: 10px; }
  .power-spotlight-demo { padding: 9px; gap: 9px; }
  .power-spotlight-rotor { flex-basis: 39px; width: 39px; height: 39px; border-radius: 10px; }
  .power-spotlight-rotor svg { width: 36px; height: 36px; }
  .power-spotlight-demo-copy strong { font-size: 12px; }
  .power-spotlight-demo-copy small { font-size: 11px; }
  .power-spotlight-demo-toggle { min-height: 42px; padding: 7px 10px; font-size: 11px; }
  .power-spotlight-stations {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(165px, 58%);
    gap: 9px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    padding: 12px 1px 6px;
  }
  .power-spotlight-station { min-height: 69px; scroll-snap-align: start; gap: 8px; padding: 9px; border-radius: 13px; }
  .power-spotlight-station-icon { width: 38px; height: 38px; flex-basis: 38px; }
  .power-spotlight-station-icon svg { width: 25px; height: 25px; }
  .power-spotlight-station-text strong { font-size: 12px; }
  .power-spotlight-station-text small { font-size: 10px; }
}
@media (max-width: 375px) {
  .home-page .labs-home.power-spotlight { padding: 13px; }
  .power-spotlight-badges span { font-size: 9px; }
  .power-spotlight-scene-bar .power-spotlight-scene-open { display: none; }
  .power-spotlight-demo-copy small { display: none; }
  .power-spotlight-actions .power-spotlight-primary { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .power-spotlight .power-spotlight-rotor-blades { animation: none !important; }
  .power-spotlight * { transition: none !important; }
}
