/* Depthview marketing site.
 * Type: DM Sans (headlines, italic second line in the hero), Instrument Sans (body), JetBrains Mono (labels).
 * Motifs: a soft blurred-gradient hero, folder tabs on cards, a dot grid.
 * Colour: white paper, soft neutral tint, the extension's coral #ff7a66, night for the agent section. */
:root {
  --bg: #ffffff;
  --tint: #f5f6f5;
  --line: #e4e7e5;
  --ink: #141614;
  --muted: #5d625f;
  --faint: #8a908d;
  --coral: #ff7a66;
  --coral-hover: #ff6a55;
  --coral-deep: #c9483a;
  --coral-soft: #ffece8;
  --on-coral: #1f0a0a;
  --night: #121413;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --display: 'DM Sans', 'Instrument Sans', system-ui, sans-serif;
  --body: 'Instrument Sans', 'Segoe UI Variable', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --dots: radial-gradient(#d9dedb 1px, transparent 1.3px) 0 0 / 20px 20px;
  --radius: 22px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-font-smoothing: antialiased;
}
html,
body {
  overflow-x: clip;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--body);
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
h1,
h2,
h3 {
  text-wrap: balance;
}
p {
  text-wrap: pretty;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
::selection {
  background: var(--coral-soft);
}
:focus-visible {
  outline: 2px solid var(--coral-deep);
  outline-offset: 3px;
  border-radius: 6px;
}
code {
  font: 500 0.86em var(--mono);
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--tint);
  border: 1px solid var(--line);
}
kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  font: 600 11px var(--mono);
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
}
.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
}
.skip:focus {
  top: 16px;
}
.wrap {
  /* 110px each side; the hero keeps its wider frame */
  width: min(1920px, 100% - 220px);
  margin-inline: auto;
}
.wrap.wrap--hero {
  width: min(1920px, 100% - 64px);
}
@media (max-width: 1080px) {
  .wrap {
    width: calc(100% - 96px);
  }
}
.mono {
  font-family: var(--mono);
  font-size: 0.8em;
}

/* ---------- Type ---------- */
.h2 {
  font: 500 clamp(2rem, 3.8vw, 3.2rem) / 1.06 var(--display);
  letter-spacing: -0.03em;
}
.h2--xl {
  font-size: clamp(2.2rem, 4.6vw, 3.9rem);
}
.dim {
  color: var(--faint);
}
.eyebrow {
  font: 600 11px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral-deep);
}
.eyebrow--coral {
  color: var(--coral);
}
.lede {
  max-width: 560px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 17px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  height: 50px;
  padding: 0 8px 0 22px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 15px;
  transition:
    transform 0.2s var(--ease),
    background-color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0) scale(0.98);
}
.btn--sm {
  height: 40px;
  gap: 12px;
  padding: 0 6px 0 16px;
  border-radius: 11px;
  font-size: 14px;
}
.btn--dark {
  background: var(--ink);
  color: #fff;
}
.btn--dark:hover {
  background: #2a2d2a;
}
.btn--coral {
  background: var(--coral);
  color: var(--on-coral);
}
.btn--coral:hover {
  background: var(--coral-hover);
}
.btn--ghost {
  padding: 0 20px;
  border: 1px solid rgba(20, 22, 20, 0.14);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  border-color: rgba(20, 22, 20, 0.3);
}
.btn--glass {
  padding: 0 20px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}
.btn--glass:hover {
  background: rgba(255, 255, 255, 0.16);
}
.btn__chip {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--coral);
  color: var(--on-coral);
  font-size: 16px;
}
.btn--sm .btn__chip {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}
.btn__chip--dark {
  background: var(--on-coral);
  color: var(--coral);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 12px 0;
  transition:
    background-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}
.nav.is-stuck {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font: 700 19px/1 var(--display);
  letter-spacing: -0.02em;
}
.brand img {
  border-radius: 8px;
}
.nav__links {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-size: 14px;
  color: var(--muted);
}
.nav__links a:hover {
  color: var(--ink);
}

/* ---------- Hero ---------- */
/* A blurred mesh of the extension's colours (coral, violet, teal, slate) stands in for a photo. */
.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(760px, 92vh);
  margin-top: 4px;
  padding: 110px 24px 90px;
  border-radius: 28px;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  text-align: center;
  background: #a7adc0;
}
.hero__mesh {
  position: absolute;
  inset: -20%;
  z-index: -2;
  filter: blur(80px) saturate(0.9);
  background: linear-gradient(170deg, #9aa3b8 0%, #b7aed0 45%, #f1c6ba 100%);
}
.hero__mesh i {
  position: absolute;
  border-radius: 50%;
  animation: drift 22s ease-in-out infinite alternate;
}
.hero__mesh i:nth-child(1) {
  left: 6%;
  top: 2%;
  width: 50%;
  height: 52%;
  background: #8e98ae;
  opacity: 0.8;
}
.hero__mesh i:nth-child(2) {
  right: 4%;
  top: 8%;
  width: 44%;
  height: 48%;
  background: #c3b6e3;
  opacity: 0.7;
  animation-duration: 26s;
}
.hero__mesh i:nth-child(3) {
  left: 24%;
  bottom: 0;
  width: 56%;
  height: 46%;
  background: #f4b3a5;
  opacity: 0.7;
  animation-duration: 18s;
}
.hero__mesh i:nth-child(4) {
  right: 8%;
  bottom: 6%;
  width: 32%;
  height: 34%;
  background: #f8ddd5;
  opacity: 0.9;
  animation-duration: 30s;
}
.hero__mesh i:nth-child(5) {
  left: 0;
  bottom: 12%;
  width: 26%;
  height: 30%;
  background: #a9c9cf;
  opacity: 0.45;
  animation-duration: 24s;
}
/* The closing banner: the same soft mesh, mirrored so it doesn't read as a copy. */
.hero__mesh--soft {
  transform: scaleX(-1);
}
@keyframes drift {
  to {
    transform: translate(6%, -5%) scale(1.12);
  }
}
.hero__grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.18;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(60% 55% at 50% 48%, rgb(25 28 45 / 0.16), transparent 75%);
}
.hero__copy {
  display: grid;
  justify-items: center;
  gap: 22px;
  max-width: 920px;
}
.pill-dark {
  padding: 7px 15px;
  border-radius: 999px;
  background: rgb(20 22 20 / 0.82);
  color: #fff;
  font-size: 0.85rem;
}
.hero__title {
  font: 500 clamp(2.9rem, 7vw, 5.8rem) / 1 var(--display);
  letter-spacing: -0.04em;
}
.hero__title em {
  display: block;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.03em;
}
.hero__lede {
  max-width: 34rem;
  color: rgb(255 255 255 / 0.94);
  font-size: 1.1rem;
  line-height: 1.5;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
}
.pill-glass {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.18);
  backdrop-filter: blur(12px);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 500;
}
.pill-glass--link {
  height: 50px;
  padding: 0 22px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.35);
  transition: background 0.25s;
}
.pill-glass--link:hover {
  background: rgb(255 255 255 / 0.3);
}
.live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  animation: live 2.2s infinite;
}
.hero__fine {
  color: rgb(255 255 255 / 0.95);
  text-shadow: 0 1px 8px rgb(40 30 50 / 0.35);
  font-size: 0.84rem;
  line-height: 1.9;
}
.hero__fine kbd {
  height: 20px;
  min-width: 20px;
  font-size: 10px;
  color: #fff;
  border: 0;
  background: rgb(255 255 255 / 0.18);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.3);
}

@keyframes live {
  50% {
    opacity: 0.35;
  }
}

/* ---------- Strip ---------- */
.strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
}
.strip__item {
  display: flex;
  gap: 12px;
  padding: 20px 22px;
}
.strip__item + .strip__item {
  border-left: 1px solid var(--line);
}
.strip__item svg {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.strip h3 {
  font: 600 15px/1.3 var(--body);
}
.strip p {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

/* ---------- Sections ---------- */
.section {
  padding-block: clamp(80px, 10vw, 140px);
}
.section--tint {
  background: var(--tint);
}
.head {
  margin-bottom: 40px;
}
.head .h2 {
  margin-top: 16px;
}
.head--center {
  text-align: center;
}
.feat-head {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
}
.feat-head .h2 {
  margin-top: 16px;
}
.feat-head .lede {
  margin-inline: auto;
}

/* Folder-tab cards */
.tabs3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.tabcard {
  position: relative;
  padding: 10px 10px 26px;
  border-radius: var(--radius);
  border-top-left-radius: 0;
  background: var(--tint);
}
.tabcard__tab {
  position: absolute;
  top: -30px;
  left: 0;
  padding: 6px 16px 8px;
  border-radius: 12px 12px 0 0;
  background: var(--tint);
  font-size: 13px;
  font-weight: 600;
}
.tabcard__tab b {
  margin-right: 6px;
  font: 600 11px var(--mono);
  color: var(--coral-deep);
}
.tabcard__media,
.card__media {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  background: #1a1c21;
}
.tabcard__media img,
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.tabcard:hover .tabcard__media img,
.card:hover .card__media img {
  transform: scale(1.03);
}
.tabcard h3,
.card h3 {
  margin: 22px 14px 0;
  font: 600 19px/1.25 var(--display);
  letter-spacing: -0.01em;
}
.tabcard p,
.card p {
  margin: 8px 14px 0;
  font-size: 15px;
  color: var(--muted);
}

/* Stage: one large product shot in a frame */
.stage {
  margin: 0 0 20px;
  padding: 10px;
  border-radius: 28px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px rgba(20, 22, 20, 0.08);
}
.stage img {
  width: 100%;
  border-radius: 20px;
}

/* Bento */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.bento--3 {
  margin-top: 20px;
}
.card {
  padding: 10px 10px 26px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
}
.section:not(.section--tint) .card {
  background: var(--tint);
  border-color: transparent;
}
.card--wide {
  grid-column: span 2;
}
.card--wide .card__media {
  aspect-ratio: 21 / 9;
}
.card__media--crop img {
  object-position: var(--pos, center);
  transform-origin: var(--pos, center);
}
.card--wide .card__media--crop img {
  transform: scale(1.6);
}
.card--wide:hover .card__media--crop img {
  transform: scale(1.66);
}
.card:not(.card--wide) .card__media--crop img {
  transform: scale(1.9);
}
.card:not(.card--wide):hover .card__media--crop img {
  transform: scale(1.96);
}
.card__media--plain {
  display: grid;
  place-items: center;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  background-image: var(--dots);
}
.card--keys {
  grid-column: span 2;
}
.card--keys .card__media {
  aspect-ratio: auto;
  min-height: 180px;
}
.keys {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  width: 100%;
}
.keys li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.keys li span {
  display: flex;
  gap: 5px;
}
.keys kbd {
  height: 28px;
  min-width: 28px;
  font-size: 12px;
}
.presets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
  max-width: 300px;
}
.presets li {
  padding: 9px 12px;
  border-radius: 10px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
}
.presets li.on {
  border-color: var(--coral);
  background: var(--coral-soft);
  color: var(--coral-deep);
}

/* Before / after */
.compare {
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: 28px;
  aspect-ratio: 1440 / 900;
  background: #0b1020;
  box-shadow: 0 30px 70px rgba(20, 22, 20, 0.12);
  --split: 50%;
}
.compare img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.compare__before {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--split)) 0 0);
}
.compare__range {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}
.compare__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split);
  z-index: 2;
  width: 2px;
  transform: translateX(-1px);
  background: #fff;
  pointer-events: none;
}
.compare__handle i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.compare__handle i::before {
  content: '‹ ›';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: 600 16px var(--body);
  letter-spacing: 2px;
  color: var(--ink);
}
.compare__tag {
  position: absolute;
  top: 20px;
  z-index: 2;
  padding: 6px 12px;
  border-radius: 999px;
  font: 600 11px var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(10, 12, 16, 0.6);
  backdrop-filter: blur(8px);
  pointer-events: none;
}
.compare__tag--l {
  left: 20px;
}
.compare__tag--r {
  right: 20px;
  color: var(--on-coral);
  background: var(--coral);
}

/* ---------- Dark: agent + privacy ---------- */
.dark {
  color: #e8eae9;
  background:
    radial-gradient(60% 50% at 80% 30%, rgba(255, 122, 102, 0.1), transparent 70%), var(--night);
}
.dark .dim {
  color: #7d8380;
}
.dark__grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.dark .h2 {
  margin-top: 16px;
  color: #fff;
}
.lede--dark {
  color: #a7aca9;
}
.ticks {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}
.dark__links {
  margin-top: 28px;
}
.dark__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.dark__link:hover {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
}
.dark__link span {
  transition: transform 0.2s ease;
}
.dark__link:hover span {
  transform: translateX(3px);
}
.ticks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: #d2d5d3;
}
.ticks li::before {
  content: '';
  width: 18px;
  height: 18px;
  flex: none;
  border-radius: 6px;
  background: var(--coral)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%231f0a0a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 6.2l2.4 2.4 4.6-5'/%3E%3C/svg%3E")
    center / 11px no-repeat;
}
.term {
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0b0c0c;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5);
}
.term__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.term__bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #2b2e2d;
}
.term__bar span {
  margin-left: 10px;
  font: 500 12px var(--mono);
  color: #6f7572;
}
.term pre {
  margin: 0;
  padding: 22px 24px 26px;
  overflow-x: auto;
  font: 500 13px/1.75 var(--mono);
  color: #c9cdcb;
}
.term .c {
  color: #fff;
}
.term .m {
  color: #7d8380;
}
.term .y {
  color: #fcd34d;
}
.term .t {
  color: var(--coral);
}
.term .g {
  color: #4ade80;
}
.private {
  margin-top: clamp(72px, 9vw, 120px);
  padding-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.private__title {
  font: 500 26px/1.2 var(--display);
  letter-spacing: -0.02em;
  color: #fff;
}
.private__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 24px;
}
.ptile {
  padding: 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.ptile h4 {
  font: 600 15px/1.3 var(--body);
  color: #fff;
}
.ptile p {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.55;
  color: #9a9f9c;
}

/* ---------- Built by your agent ---------- */
.head--center .lede {
  margin-inline: auto;
}
.ba__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.ba {
  margin: 0;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--line);
  overflow: hidden;
}
.ba__pair {
  display: grid;
  gap: 2px;
  background: var(--line);
}
.ba__img {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--night);
}
.ba__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ba__img span {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  font: 600 11px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(18, 20, 19, 0.78);
}
.ba__img span.is-after {
  color: var(--on-coral);
  background: var(--coral);
}
.ba figcaption {
  padding: 20px 22px 24px;
}
.ba h3 {
  font: 600 18px/1.25 var(--display);
  color: var(--ink);
}
.ba p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}
.tools {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.tools li {
  padding: 18px;
  border-radius: 16px;
  background: var(--bg);
  border: 1px solid var(--line);
}
.tools code {
  display: inline-block;
  font: 600 13px/1.2 var(--mono);
  color: var(--coral-deep);
}
.tools span {
  display: block;
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
}
.demos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
  margin-top: 36px;
  font-size: 15px;
  color: var(--muted);
}
.demos a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--coral);
  text-underline-offset: 4px;
}
@media (max-width: 960px) {
  .ba__grid {
    grid-template-columns: 1fr;
  }
  .tools {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .tools {
    grid-template-columns: 1fr;
  }
}

/* ---------- Also ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 980px;
  margin-inline: auto;
}
.chips li {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.2s var(--ease);
}
.chips li:hover {
  border-color: var(--coral);
}

/* ---------- FAQ ---------- */
.faq {
  padding-top: 0;
}
.faq__list {
  max-width: 820px;
  margin-inline: auto;
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 4px;
  cursor: pointer;
  list-style: none;
  font: 500 18px/1.3 var(--display);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  background: var(--tint);
  font: 400 20px/1 var(--body);
  transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after {
  transform: rotate(45deg);
  background: var(--coral-soft);
  color: var(--coral-deep);
}
.faq details p {
  padding: 0 4px 24px;
  max-width: 680px;
  color: var(--muted);
}

/* ---------- CTA ---------- */
.cta {
  position: relative;
  overflow: hidden;
  display: grid;
  min-height: 520px;
  place-items: center;
  padding: 80px 24px;
  border-radius: 32px;
  text-align: center;
  color: #fff;
  background: #a7adc0;
  isolation: isolate;
}
.cta::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(60% 55% at 50% 48%, rgb(25 28 45 / 0.16), transparent 75%);
}
.cta__copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
}
.cta__note {
  margin-top: 18px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.86);
}
.cta .hero__ctas {
  margin-top: 32px;
}

/* ---------- Footer ---------- */
.footer {
  margin-top: clamp(80px, 10vw, 120px);
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer__tag {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
}
.footer nav {
  display: grid;
  gap: 10px;
  align-content: start;
  font-size: 14px;
}
.footer nav .eyebrow {
  margin-bottom: 6px;
  color: var(--faint);
}
.footer nav a:hover {
  color: var(--coral-deep);
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 48px;
  padding: 20px 0 32px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--faint);
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .live,
  .hero__mesh i {
    animation: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .strip {
    grid-template-columns: 1fr 1fr;
  }
  .strip__item:nth-child(3) {
    border-left: 0;
  }
  .strip__item:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
  .tabs3 {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .bento {
    grid-template-columns: 1fr 1fr;
  }
  .card--keys {
    grid-column: span 2;
  }
  .keys {
    grid-template-columns: 1fr 1fr;
  }
  .dark__grid {
    grid-template-columns: 1fr;
  }
  .private__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 720px) {
  .wrap,
  .wrap.wrap--hero {
    width: calc(100% - 32px);
  }
  .nav__links {
    display: none;
  }
  .nav .btn {
    margin-left: auto;
  }
  .strip {
    grid-template-columns: 1fr;
  }
  .strip__item + .strip__item {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .bento,
  .bento--3 {
    grid-template-columns: 1fr;
  }
  .card--wide,
  .card--keys {
    grid-column: auto;
  }
  .card--wide .card__media {
    aspect-ratio: 16 / 10;
  }
  .private__grid {
    grid-template-columns: 1fr;
  }
  .footer__top {
    grid-template-columns: 1fr 1fr;
  }
  .footer__bottom {
    flex-direction: column;
    gap: 6px;
  }
  .hero {
    padding-top: 80px;
  }
  .pill {
    font-size: 12px;
    padding: 6px 12px;
  }
  .pill__extra {
    display: none;
  }
  .compare {
    aspect-ratio: 4 / 3;
  }
  .mlay {
    width: 70%;
  }
  .term pre {
    font-size: 11px;
    white-space: pre-wrap;
    word-break: break-word;
  }
  .hero__lede,
  .pill-glass {
    text-shadow: 0 1px 8px rgb(40 30 50 / 0.25);
  }
}

/* =====================================================================================
 * Illustrations: drawn in HTML/SVG in the extension's own look, in place of screenshots.
 * ===================================================================================== */
.ill {
  position: relative;
  display: grid;
  place-items: center;
  background:
    radial-gradient(80% 70% at 50% 40%, rgb(255 122 102 / 0.08), transparent 70%),
    radial-gradient(#2a2e36 1px, transparent 1.3px) 0 0 / 18px 18px,
    #1a1c21;
  color: #e4e4e6;
  font-size: 12px;
}
.ill svg {
  width: 100%;
  height: 100%;
}

/* Studio: the whole inspector, drawn */
.studio {
  overflow: hidden;
  margin-bottom: 20px;
  padding: 10px;
  border-radius: 28px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px) 0 0 / 40px 40px,
    radial-gradient(ellipse at 50% 45%, #3a4252, #1c1f26 85%);
  box-shadow: 0 30px 70px rgba(20, 22, 20, 0.16);
  color: #e4e4e6;
  font-size: 12px;
}
.studio__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.studio__brand,
.studio__seg,
.studio__play {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 12px;
  border-radius: 14px;
  border: 1px solid rgb(255 255 255 / 0.06);
  background: rgb(24 26 31 / 0.94);
  font-weight: 600;
}
.studio__brand img {
  border-radius: 5px;
}
.studio__seg {
  gap: 2px;
  padding: 4px;
}
.studio__seg b {
  padding: 6px 14px;
  border-radius: 10px;
  font-weight: 500;
  color: #8b8f99;
}
.studio__seg b.on {
  color: #fff;
  background: rgb(255 255 255 / 0.1);
}
.studio__play {
  width: 40px;
  padding: 0;
  justify-content: center;
  background: #ff7a66;
}
.studio__play::before {
  content: '';
  border-left: 10px solid #0a0a0b;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  margin-left: 3px;
}
.studio__body {
  display: grid;
  grid-template-columns: 48px 1fr 300px;
  gap: 10px;
  margin-top: 10px;
}
.studio__rail {
  align-self: start;
  display: grid;
  gap: 6px;
  padding: 6px;
  border-radius: 14px;
  border: 1px solid rgb(255 255 255 / 0.06);
  background: rgb(24 26 31 / 0.94);
}
.studio__rail li {
  aspect-ratio: 1;
  border-radius: 10px;
  background: rgb(255 255 255 / 0.05);
}
.studio__rail li.on {
  background: #ff7a66;
}
.studio__view {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: radial-gradient(ellipse at 50% 30%, #1d2436, #0f1320);
  min-height: 420px;
}
.studio__view svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.studio__view .floor path {
  fill: rgb(255 255 255 / 0.03);
  stroke: rgb(255 255 255 / 0.08);
}
.studio__view .f1 {
  fill: url(#g-top);
  stroke: #5b6475;
}
.studio__view .f2,
.studio__view .f3 {
  fill: none;
  stroke: #5b6475;
}
.studio__view .sel {
  fill: none;
  stroke: #ff7a66;
  stroke-dasharray: 4 4;
}
.gy,
.gx,
.gz {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
}
.gy {
  stroke: #4ade80;
}
.gx {
  stroke: #f87171;
}
.gz {
  stroke: #60a5fa;
}
.giz path:nth-child(2n),
.ill--gizmo .f {
  stroke-width: 0;
}
.giz .gy:nth-child(2),
.ill--gizmo .gy.f {
  fill: #4ade80;
}
.giz .gx:nth-child(4),
.ill--gizmo .gx.f {
  fill: #f87171;
}
.giz .gz:nth-child(6),
.ill--gizmo .gz.f {
  fill: #60a5fa;
}
.giz circle {
  fill: #fff;
}
.tagc rect {
  fill: #ff7a66;
}
.tagc text {
  font: 600 10px var(--body);
  fill: #1f0a0a;
  text-anchor: middle;
}
.studio__hud {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 6px 9px;
  border-radius: 8px;
  border: 1px solid rgb(255 255 255 / 0.08);
  background: rgb(10 10 11 / 0.7);
  font: 10px/15px var(--mono);
  color: #c9cbd1;
}
.studio__side {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgb(255 255 255 / 0.06);
  background: rgb(24 26 31 / 0.94);
}
.studio__h {
  margin-bottom: 10px;
  font-weight: 600;
  color: #d4d4d8;
}
.studio__h em {
  margin-left: 6px;
  font-style: normal;
  font-weight: 400;
  color: #71717a;
}
.studio__h--gap {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgb(255 255 255 / 0.06);
}
.field {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 30px;
}
.field label {
  width: 70px;
  flex: none;
  color: #71717a;
}
.field > span {
  display: flex;
  align-items: center;
  flex: 1;
  height: 24px;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid rgb(255 255 255 / 0.07);
  background: rgb(255 255 255 / 0.04);
  font-variant-numeric: tabular-nums;
}
.field > span i {
  display: grid;
  place-items: center;
  width: 18px;
  height: 100%;
  margin-right: 6px;
  border-right: 1px solid rgb(255 255 255 / 0.06);
  font-style: normal;
  font-size: 10px;
  color: #71717a;
}
.field > span.scrub {
  border-color: rgb(255 122 102 / 0.7);
}
.field > span.scrub i {
  color: #ff7a66;
  background: rgb(255 122 102 / 0.15);
}
.field .sw {
  gap: 6px;
  padding-left: 4px;
  font-family: var(--mono);
  font-size: 11px;
}
.field .sw b {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: #c9ccd1;
}
.field .bar {
  position: relative;
  height: 4px;
  border: 0;
  background: rgb(255 255 255 / 0.14);
}
.field .bar b {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 4px;
  background: #ff7a66;
}
.studio__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.studio__btns span {
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid rgb(255 255 255 / 0.09);
  background: rgb(255 255 255 / 0.06);
}
.studio__btns span.on {
  border-color: #ff7a66;
  background: #ff7a66;
  color: #0a0a0b;
  font-weight: 600;
}

/* Camera path */
.ill--path .trail {
  fill: none;
  stroke: #ff7a66;
  stroke-width: 2.5;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  transition: stroke-dashoffset 2.2s var(--ease);
}
.ill--path .trail--ghost {
  stroke: rgb(255 122 102 / 0.18);
  stroke-width: 10;
  stroke-dasharray: none;
  stroke-dashoffset: 0;
  transition: none;
}
.is-in .ill--path .trail,
.ill--path.is-in .trail {
  stroke-dashoffset: 0;
}
.ill--path .mk circle {
  fill: #1a1c21;
  stroke: #ff7a66;
  stroke-width: 2.5;
}
.ill--path .hd circle:first-child {
  fill: #ff7a66;
}
.ill--path .hd path {
  stroke: #22d3ee;
  stroke-width: 2;
  stroke-dasharray: 4 4;
}
.ill--path .look {
  fill: #22d3ee;
}
.mtag {
  position: absolute;
  padding: 1px 7px;
  border-radius: 4px;
  font: 600 10px/16px var(--mono);
  color: #ff7a66;
  background: rgb(28 28 30 / 0.85);
}
.scrubber {
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: 8%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgb(255 255 255 / 0.06);
  background: rgb(24 26 31 / 0.94);
}
.scrubber b {
  position: relative;
  flex: 1;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, #ff7a66 42%, rgb(255 255 255 / 0.14) 42%);
}
.scrubber b::after {
  content: '';
  position: absolute;
  left: 42%;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
}
.scrubber i {
  font-style: normal;
  font-size: 11px;
  color: #a1a1aa;
}

/* Gizmo */
.ill--gizmo svg {
  max-width: 280px;
}
.ill--gizmo .sh {
  fill: rgb(0 0 0 / 0.35);
}
.ill--gizmo .coin {
  fill: #9aa0a8;
  stroke: #dfe3e8;
  stroke-width: 1.5;
}
.ill--gizmo .coin--in {
  fill: none;
  stroke: #e9ecf0;
  stroke-opacity: 0.6;
}
.key-hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #a1a1aa;
}
.key-hint kbd {
  color: #0a0a0b;
}

/* Code card */
.codecard {
  width: 84%;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgb(255 255 255 / 0.08);
  background: #111214;
  box-shadow: 0 20px 40px rgb(0 0 0 / 0.4);
}
.codecard__tabs {
  display: flex;
  gap: 4px;
  padding: 8px;
  border-bottom: 1px solid rgb(255 255 255 / 0.06);
}
.codecard__tabs b {
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 500;
  color: #a1a1aa;
  background: rgb(255 255 255 / 0.06);
}
.codecard__tabs b.on {
  color: #0a0a0b;
  background: #ff7a66;
}
.codecard pre {
  margin: 0;
  padding: 12px 14px;
  font: 500 11px/1.65 var(--mono);
  color: #d4d4d8;
  white-space: pre;
}
.codecard .cm {
  color: #6b7280;
}
.codecard .tg {
  color: #ff7a66;
}
.codecard .at {
  color: #c4b5fd;
}
.codecard .nu {
  color: #fcd34d;
}
.codecard .st {
  color: #5eead4;
}

/* Realism check cards */
.check {
  width: 86%;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgb(255 255 255 / 0.06);
  background: rgb(24 26 31 / 0.94);
  text-align: left;
}
.check__top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.check__top p {
  flex: 1;
  font-size: 11px;
  line-height: 1.4;
  color: #8b8f99;
}
.check__top strong {
  display: block;
  font-size: 13px;
  color: #fff;
}
.ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 50%;
  background: conic-gradient(#ff7a66 calc(var(--v) * 1%), rgb(255 255 255 / 0.1) 0);
}
.ring::before {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #18191d;
}
.ring b {
  position: relative;
  font-size: 13px;
}
.ring--ok {
  background: conic-gradient(#4ade80 calc(var(--v) * 1%), rgb(255 255 255 / 0.1) 0);
}
.fixall {
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  color: #0a0a0b;
  background: #ff7a66;
}
.check ul {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}
.check li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 8px;
  font-size: 11px;
  background: rgb(255 255 255 / 0.03);
}
.check li i {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
}
.check li i.r {
  background: #f87171;
}
.check li i.y {
  background: #fbbf24;
}
.check li span {
  margin-left: auto;
  padding: 2px 7px;
  border-radius: 5px;
  border: 1px solid rgb(255 122 102 / 0.6);
  color: #ff7a66;
  white-space: nowrap;
  font-size: 10.5px;
}
.fps {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.fps div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  font-size: 11px;
  color: #a1a1aa;
}
.fps b {
  color: #fff;
}
.fps i {
  grid-column: span 2;
  height: 5px;
  border-radius: 4px;
  background: linear-gradient(90deg, #ff7a66 var(--w), rgb(255 255 255 / 0.1) var(--w));
}
.fps i.g {
  background: linear-gradient(90deg, #4ade80 var(--w), rgb(255 255 255 / 0.1) var(--w));
}
.check__btns {
  display: flex;
  gap: 6px;
  margin-top: 14px;
}
.check__btns span {
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 11px;
  border: 1px solid rgb(255 255 255 / 0.09);
  background: rgb(255 255 255 / 0.06);
}

@media (max-width: 1080px) {
  .studio__body {
    grid-template-columns: 1fr;
  }
  .studio__rail {
    display: none;
  }
  .studio__view {
    min-height: 300px;
  }
}
@media (max-width: 720px) {
  .studio__seg {
    display: none;
  }
}

/* =====================================================================================
 * Mode cards: animated illustrations on a light stage, like the Livoo cards.
 * ===================================================================================== */
.tabcard__media.mstage,
.card__media.mstage {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(70% 60% at 50% 45%, rgb(255 122 102 / 0.1), transparent 70%),
    radial-gradient(#d6dad8 1px, transparent 1.3px) 0 0 / 18px 18px,
    #eceeed;
}

/* --- 01 Layers: a page that tilts and splits into its four layers, then folds back --- */
.mlay {
  width: 56%;
  aspect-ratio: 16 / 10;
  perspective: 1100px;
  margin-top: -6%;
}
.mlay__rig {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: mlay-tilt 9s var(--ease) infinite;
}
.mlay__p {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  animation: mlay-z 9s var(--ease) infinite;
}
.mlay__p--bg {
  --z: 0px;
  overflow: visible;
  background:
    radial-gradient(60% 50% at 70% 30%, rgb(167 139 250 / 0.45), transparent 70%),
    radial-gradient(70% 60% at 30% 90%, rgb(255 122 102 / 0.35), transparent 70%),
    linear-gradient(180deg, #151a2c, #262a44);
  box-shadow: 0 30px 50px rgb(20 22 40 / 0.35);
}
.star {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.7;
}
.s1 { left: 12%; top: 18%; }
.s2 { left: 34%; top: 10%; opacity: 0.4; }
.s3 { left: 82%; top: 16%; }
.s4 { left: 62%; top: 62%; opacity: 0.35; }
.s5 { left: 90%; top: 70%; opacity: 0.5; }
.mlay__p--gl {
  --z: 38px;
}
.orb {
  position: absolute;
  right: 14%;
  top: 22%;
  width: 34%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, #fff 0 4%, transparent 14%),
    radial-gradient(circle at 38% 34%, #ffd0c6, #ff7a66 42%, #a63a2c 78%, #3a1410);
  box-shadow: 0 0 40px rgb(255 122 102 / 0.45);
  animation: orb-float 4.5s ease-in-out infinite alternate;
}
.orb-sh {
  position: absolute;
  right: 16%;
  top: 72%;
  width: 30%;
  height: 8%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(0 0 0 / 0.45), transparent);
}
.mlay__p--html {
  --z: 76px;
}
.mlay__p--html i,
.mlay__p--html em {
  position: absolute;
  left: 8%;
  border-radius: 4px;
  background: #fff;
}
.mlay__p--html .h1 { top: 32%; width: 40%; height: 9%; }
.mlay__p--html .h2 { top: 44%; width: 30%; height: 9%; background: #c4b5fd; }
.mlay__p--html .tx { top: 59%; width: 34%; height: 3.5%; opacity: 0.55; }
.mlay__p--html .tx2 { top: 65%; width: 26%; }
.mlay__p--html .mbtn {
  top: 75%;
  width: 16%;
  height: 9%;
  border-radius: 999px;
  background: #ff7a66;
}
.mlay__p--fix {
  --z: 114px;
}
.navb {
  position: absolute;
  left: 4%;
  right: 4%;
  top: 5%;
  display: flex;
  align-items: center;
  gap: 6%;
  height: 11%;
  padding: 0 3%;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.14);
  backdrop-filter: blur(6px);
  border: 1px solid rgb(255 255 255 / 0.25);
}
.navb b {
  width: 6%;
  aspect-ratio: 1;
  border-radius: 3px;
  background: #ff7a66;
}
.navb s {
  width: 9%;
  height: 22%;
  border-radius: 3px;
  background: rgb(255 255 255 / 0.7);
}
.navb s.pill {
  width: 14%;
  height: 50%;
  margin-left: auto;
  border-radius: 999px;
  background: #fff;
}
/* Layer outlines and name tags appear once the layers come apart. */
.mlay__p::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 10px;
  border: 1.5px solid var(--lc, transparent);
  opacity: 0;
  animation: mlay-show 9s var(--ease) infinite;
}
.mlay__p--bg { --lc: #9ca3af; }
.mlay__p--gl { --lc: #ff7a66; }
.mlay__p--html { --lc: #a78bfa; }
.mlay__p--fix { --lc: #2dd4bf; }
.ltag {
  position: absolute;
  left: calc(100% + 10px);
  bottom: 6px;
  padding: 2px 8px;
  border-radius: 6px;
  font: 600 10px/16px var(--body);
  white-space: nowrap;
  color: #fff;
  opacity: 0;
  animation: mlay-show 9s var(--ease) infinite;
}
.ltag--grey { background: #6b7280; }
.ltag--coral { background: #ff7a66; color: #1f0a0a; }
.ltag--violet { background: #8b5cf6; }
.ltag--teal { background: #14b8a6; }
@keyframes mlay-tilt {
  0%, 12% { transform: rotateX(0) rotateZ(0) scale(1); }
  34%, 74% { transform: rotateX(56deg) rotateZ(-34deg) scale(0.72) translateY(24%); }
  92%, 100% { transform: rotateX(0) rotateZ(0) scale(1); }
}
@keyframes mlay-z {
  0%, 18% { transform: translateZ(0); }
  40%, 70% { transform: translateZ(var(--z)); }
  88%, 100% { transform: translateZ(0); }
}
@keyframes mlay-show {
  0%, 30% { opacity: 0; }
  42%, 68% { opacity: 1; }
  80%, 100% { opacity: 0; }
}
@keyframes orb-float {
  to { transform: translateY(-8%); }
}
.mcap {
  position: absolute;
  left: 50%;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  transform: translateX(-50%);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  color: #e4e4e6;
  background: #1a1c21;
  box-shadow: 0 8px 20px rgb(0 0 0 / 0.18);
  white-space: nowrap;
}
.mcap__bar {
  position: relative;
  width: 80px;
  height: 4px;
  border-radius: 4px;
  background: rgb(255 255 255 / 0.15);
}
.mcap__bar i {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 4px;
  background: #ff7a66;
  animation: mcap-fill 9s var(--ease) infinite;
}
.mcap__bar i::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: #fff;
}
@keyframes mcap-fill {
  0%, 18% { width: 0; }
  40%, 70% { width: 100%; }
  88%, 100% { width: 0; }
}

/* --- Mini inspector window (02 Scene, 03 Director) --- */
.mwin {
  position: relative;
  width: 86%;
  height: 80%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 14px;
  background: #16181d;
  border: 1px solid rgb(0 0 0 / 0.06);
  box-shadow: 0 24px 50px rgb(20 22 40 / 0.22);
  color: #e4e4e6;
  font-size: 11px;
}
.mwin__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  flex: none;
  border-bottom: 1px solid rgb(255 255 255 / 0.06);
}
.mwin__bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2f3239;
}
.mwin__bar span {
  margin-left: 8px;
  font-weight: 500;
  color: #a1a1aa;
}
.mwin__live {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  font-style: normal;
  color: #a1a1aa;
}
.mwin__live::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  animation: live 1.6s ease-in-out infinite;
}
.mwin__body {
  flex: 1;
  display: grid;
  grid-template-columns: 42% 1fr;
  min-height: 0;
}
.mtree {
  padding: 8px 8px;
  overflow: hidden;
  border-right: 1px solid rgb(255 255 255 / 0.06);
}
.mtree li {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 3px 8px;
  line-height: 1.4;
  border-radius: 6px;
  white-space: nowrap;
  color: #c9cbd1;
}
.mtree .h {
  margin-bottom: 2px;
  color: #71717a;
  font-weight: 500;
}
.mtree .d1 { padding-left: 18px; }
.mtree .d2 { padding-left: 30px; }
.mtree s {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 2px;
  background: #52525b;
}
.mtree s.y { background: #fcd34d; }
.mtree s.l { background: #fde68a; border-radius: 50%; }
.mtree .pick {
  animation: pick 7s var(--ease) infinite;
}
.mtree .pick s {
  animation: pick-dot 7s var(--ease) infinite;
}
@keyframes pick {
  0%, 30% { background: transparent; box-shadow: none; }
  36%, 90% { background: rgb(255 122 102 / 0.16); box-shadow: inset 2px 0 0 #ff7a66; }
  100% { background: transparent; box-shadow: none; }
}
@keyframes pick-dot {
  0%, 30% { background: #52525b; }
  36%, 90% { background: #ff7a66; }
  100% { background: #52525b; }
}
.mview {
  position: relative;
  min-height: 0;
  background: radial-gradient(ellipse at 50% 30%, #1f2638, #0f1320);
}
.mview canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.mview--full {
  flex: 1;
}
.mview__tag {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 2px 8px;
  border-radius: 5px;
  font-weight: 600;
  font-size: 10px;
  color: #1f0a0a;
  background: #ff7a66;
  opacity: 0;
  animation: tag-in 7s var(--ease) infinite;
}
@keyframes tag-in {
  0%, 34% { opacity: 0; transform: translateY(4px); }
  40%, 90% { opacity: 1; transform: none; }
  100% { opacity: 0; }
}
/* A cursor glides to the Crystal row and clicks it. */
.mcursor {
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  fill: #fff;
  stroke: #0a0a0b;
  stroke-width: 1.4;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 3px rgb(0 0 0 / 0.4));
  animation: cursor 7s var(--ease) infinite;
}
@keyframes cursor {
  0% { transform: translate(78%, 330%) ; opacity: 0; }
  8% { opacity: 1; }
  28% { transform: translate(560%, 760%); }
  32% { transform: translate(560%, 760%) scale(0.85); }
  36% { transform: translate(560%, 760%) scale(1); }
  70% { transform: translate(1500%, 560%); opacity: 1; }
  84%, 100% { transform: translate(1500%, 560%); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .mlay__rig,
  .mlay__p,
  .mlay__p::after,
  .ltag,
  .mcap__bar i,
  .mtree .pick,
  .mtree .pick s,
  .mview__tag,
  .mcursor {
    animation: none;
  }
  .mlay__rig { transform: rotateX(56deg) rotateZ(-34deg) scale(0.72) translateY(24%); }
  .mlay__p { transform: translateZ(var(--z)); }
  .mlay__p::after, .ltag, .mview__tag { opacity: 1; }
  .mcursor { display: none; }
}

/* Real screenshots in cards: cropped towards the 3D view, gently zoomed. */
.card__media--shot {
  position: relative;
}
.card__media--shot img {
  object-position: var(--pos, center);
}
.card:hover .card__media--shot img {
  transform: scale(1.03);
}
/* Cards in one bento row share one picture height, so neither leaves empty space below. */
.bento .card .card__media {
  aspect-ratio: auto;
  height: clamp(300px, 23vw, 420px);
}
.bento .card--keys .card__media {
  min-height: 0;
}
.shot-tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 3px 9px;
  border-radius: 999px;
  font: 600 10px/16px var(--mono);
  color: #fff;
  background: rgb(10 12 16 / 0.6);
  backdrop-filter: blur(8px);
}
.stage figcaption {
  padding: 12px 8px 4px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

/* =====================================================================================
 * Realism cards: animated panels on the light stage.
 * ===================================================================================== */
.rpanel {
  width: 82%;
  max-width: 420px;
  padding: 16px;
  border-radius: 16px;
  background: #16181d;
  color: #e4e4e6;
  font-size: 12px;
  box-shadow:
    0 1px 0 rgb(255 255 255 / 0.04) inset,
    0 24px 50px rgb(20 22 40 / 0.22);
}
.rpanel__top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.rpanel__top p {
  flex: 1;
  min-width: 0;
  font-size: 11px;
  line-height: 1.4;
  color: #8b8f99;
}
.rpanel__top strong {
  display: block;
  font-size: 13px;
  color: #fff;
}
.rring {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: none;
  --c: #ff7a66;
}
.rring svg {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
}
.rring circle {
  fill: none;
  stroke: rgb(255 255 255 / 0.1);
  stroke-width: 3.5;
}
.rring circle.v {
  stroke: var(--c);
  stroke-linecap: round;
  stroke-dasharray: 100.5;
  stroke-dashoffset: calc(100.5 - var(--v, 0) * 1.005);
  transition:
    stroke-dashoffset 0.5s var(--ease),
    stroke 0.4s;
}
.rring b {
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.rring.ok {
  --c: #4ade80;
}
.rfix {
  padding: 6px 11px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 600;
  color: #0a0a0b;
  background: #ff7a66;
  transition:
    transform 0.15s,
    opacity 0.3s;
}
.rfix.press {
  transform: scale(0.92);
}
.rfix.gone {
  opacity: 0;
}
.rlist {
  display: grid;
  gap: 6px;
  margin-top: 14px;
}
.rlist li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 9px;
  font-size: 11.5px;
  background: rgb(255 255 255 / 0.04);
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.4s var(--ease),
    transform 0.4s var(--ease),
    background 0.3s;
}
.rlist li.in {
  opacity: 1;
  transform: none;
}
.rlist li i {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
}
.rlist i.r { background: #f87171; }
.rlist i.y { background: #fbbf24; }
.rlist i.g { background: #71717a; }
.rlist li span {
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgb(255 122 102 / 0.55);
  font-size: 10.5px;
  white-space: nowrap;
  color: #ff7a66;
  transition: all 0.3s;
}
/* Fix card: rows slide in as open issues, then turn into ticks. */
.rlist--fix li::before {
  content: '';
  width: 14px;
  height: 14px;
  flex: none;
  border-radius: 50%;
  border: 1.5px solid #f87171;
  transition: all 0.3s;
}
.rlist--fix li.done {
  color: #a1a1aa;
}
.rlist--fix li.done::before {
  border-color: #4ade80;
  background: #4ade80
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%230a0a0b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 6.2l2.4 2.4 4.6-5'/%3E%3C/svg%3E")
    center / 9px no-repeat;
}
.rlist--fix li.done span {
  border-color: rgb(74 222 128 / 0.5);
  color: #4ade80;
}
.rfps {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgb(255 255 255 / 0.06);
}
.rfps div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 10px;
  font-size: 11px;
  color: #a1a1aa;
}
.rfps b {
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.rfps i {
  grid-column: span 2;
  height: 5px;
  border-radius: 4px;
  background: linear-gradient(90deg, #4ade80 var(--w), rgb(255 255 255 / 0.1) var(--w));
  transition: --w 0.6s;
}
.mcursor--fix {
  left: auto;
  right: 0;
  animation: none;
  transition: transform 0.9s var(--ease), opacity 0.3s;
  transform: translate(-40px, 160px);
  opacity: 0;
}

/* Material sphere: one ball, its surface swapped through the presets. */
.mat {
  position: relative;
  display: grid;
  place-items: center;
  width: 46%;
  max-width: 250px;
  aspect-ratio: 1;
  margin-top: -10%;
}
.mat__ball {
  position: relative;
  z-index: 1;
  width: 74%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  transition:
    background 0.6s var(--ease),
    box-shadow 0.6s var(--ease);
  animation: mat-float 4s ease-in-out infinite alternate;
}
.mat__hl {
  position: absolute;
  left: 18%;
  top: 12%;
  width: 34%;
  height: 22%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(255 255 255 / 0.95), transparent);
  transform: rotate(-24deg);
  transition: opacity 0.6s;
}
.mat__floor {
  position: absolute;
  bottom: 6%;
  width: 62%;
  height: 12%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(20 22 40 / 0.35), transparent);
  animation: mat-shadow 4s ease-in-out infinite alternate;
}
@keyframes mat-float {
  to { transform: translateY(-6%); }
}
@keyframes mat-shadow {
  to { transform: scale(0.86); opacity: 0.7; }
}
.mat__ball[data-mat='polished'] {
  background:
    radial-gradient(120% 60% at 50% 105%, #f4f6f9 0 30%, transparent 31%),
    linear-gradient(180deg, #ffffff 0%, #d9dde3 26%, #9097a2 44%, #5d636d 52%, #8e959f 60%, #d4d8de 78%, #f2f4f6 96%);
  box-shadow: inset -10px -14px 30px rgb(0 0 0 / 0.35), inset 8px 8px 24px rgb(255 255 255 / 0.6);
}
.mat__ball[data-mat='gold'] {
  background:
    radial-gradient(120% 60% at 50% 105%, #fff1c7 0 30%, transparent 31%),
    linear-gradient(180deg, #fff6dc 0%, #f6d37f 26%, #c58f2c 44%, #8a5a17 52%, #c08a2e 60%, #f3cd78 78%, #fff0c8 96%);
  box-shadow: inset -10px -14px 30px rgb(60 30 0 / 0.45), inset 8px 8px 24px rgb(255 240 200 / 0.6);
}
.mat__ball[data-mat='paint'] {
  background: radial-gradient(circle at 36% 32%, #ffd0c6 0%, #ff7a66 26%, #c2342a 58%, #4a0f0c 100%);
  box-shadow: inset -12px -16px 30px rgb(0 0 0 / 0.4);
}
.mat__ball[data-mat='glass'] {
  background:
    radial-gradient(circle at 50% 120%, rgb(167 139 250 / 0.45), transparent 60%),
    radial-gradient(circle at 50% 50%, rgb(255 255 255 / 0.05) 55%, rgb(255 255 255 / 0.55) 72%, rgb(140 160 200 / 0.5) 100%);
  box-shadow:
    inset 0 0 0 1.5px rgb(255 255 255 / 0.7),
    inset -10px -12px 24px rgb(60 70 110 / 0.25),
    0 10px 30px rgb(167 139 250 / 0.2);
  backdrop-filter: blur(2px) saturate(1.4);
}
.mat__ball[data-mat='ceramic'] {
  background: radial-gradient(circle at 36% 30%, #ffffff 0%, #f1efec 35%, #cfcac4 75%, #a29c95 100%);
  box-shadow: inset -12px -16px 30px rgb(80 70 60 / 0.25);
}
.mat__ball[data-mat='ceramic'] .mat__hl,
.mat__ball[data-mat='paint'] .mat__hl {
  opacity: 0.75;
}
.mat__chips {
  position: absolute;
  left: 50%;
  bottom: 14px;
  display: flex;
  gap: 4px;
  padding: 4px;
  transform: translateX(-50%);
  border-radius: 12px;
  background: #16181d;
  box-shadow: 0 10px 24px rgb(20 22 40 / 0.2);
}
.mat__chips li {
  padding: 5px 9px;
  border-radius: 8px;
  font-size: 10.5px;
  white-space: nowrap;
  color: #a1a1aa;
  transition: all 0.3s;
}
.mat__chips li.on {
  color: #0a0a0b;
  font-weight: 600;
  background: #ff7a66;
}
@media (max-width: 1280px) {
  .mat__chips li:nth-child(n + 4) {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mat__ball,
  .mat__floor {
    animation: none;
  }
}

/* Lighting pad: a top-down pad on the left, the lit ball on the right. */
.lpad {
  display: flex;
  align-items: center;
  gap: 9%;
  width: 84%;
  margin-top: -6%;
}
.lpad__pad {
  position: relative;
  width: 46%;
  aspect-ratio: 1;
  flex: none;
  border-radius: 16px;
  background: #16181d;
  box-shadow: 0 20px 40px rgb(20 22 40 / 0.22);
}
.lpad__ring {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  border: 1px solid rgb(255 255 255 / 0.08);
  transform: translate(-50%, -50%);
}
.lpad__ring.r1 { width: 84%; height: 84%; border-color: rgb(255 255 255 / 0.14); }
.lpad__ring.r2 { width: 56%; height: 56%; }
.lpad__ring.r3 { width: 28%; height: 28%; }
.lpad__lbl,
.lpad__c {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  letter-spacing: 0.04em;
  color: #71717a;
  white-space: nowrap;
}
.lpad__lbl--t { top: 2%; }
.lpad__c { top: 50%; transform: translate(-50%, -50%); }
.lpad__dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  background: #ff7a66;
  box-shadow: 0 0 0 5px rgb(255 122 102 / 0.22);
}
.mcursor--pad {
  animation: none;
  width: 16px;
  height: 16px;
  margin: 2px 0 0 2px;
}
.lpad__ball {
  position: relative;
  width: 44%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, #8b929c 0%, #4c525b 70%, #2a2e35 100%);
  box-shadow:
    inset -10px -14px 26px rgb(0 0 0 / 0.35),
    0 26px 30px -18px rgb(20 22 40 / 0.45);
}
/* The highlight sits where the light is: --lx / --ly from the pad, 0..1. */
.lpad__ball i {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at calc(var(--lx, 0.35) * 100%) calc(var(--ly, 0.3) * 100%), #fff 0 5%, rgb(255 255 255 / 0.55) 14%, transparent 34%),
    radial-gradient(circle at calc(var(--lx, 0.35) * 100%) calc(var(--ly, 0.3) * 100%), rgb(255 200 190 / 0.35), transparent 70%);
}
.mcap--light {
  font-weight: 500;
}

/* Copy as code: properties on the left drive the code on the right. */
.cpy {
  position: relative;
  display: grid;
  grid-template-columns: 38% 1fr;
  gap: 10px;
  width: 88%;
  color: #e4e4e6;
  font-size: 11px;
}
.cpy__props,
.cpy__code {
  border-radius: 14px;
  background: #16181d;
  box-shadow: 0 20px 40px rgb(20 22 40 / 0.2);
}
.cpy__props {
  align-self: center;
  padding: 12px;
}
.cpy__props p {
  margin-bottom: 8px;
  font-weight: 600;
}
.cpy__props em {
  margin-left: 4px;
  font-style: normal;
  font-weight: 400;
  color: #71717a;
}
.cpy__f {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
}
.cpy__f label {
  width: 36px;
  color: #71717a;
}
.cpy__f > span:last-child {
  margin-left: auto;
  padding: 2px 6px;
  border-radius: 5px;
  border: 1px solid rgb(255 122 102 / 0.6);
  font-variant-numeric: tabular-nums;
}
.cpy__bar {
  position: relative;
  flex: 1;
  height: 4px;
  border-radius: 4px;
  background: rgb(255 255 255 / 0.12);
}
.cpy__bar b {
  position: absolute;
  inset: 0 auto 0 0;
  width: 50%;
  border-radius: 4px;
  background: #ff7a66;
}
.cpy__code {
  overflow: hidden;
}
.cpy__tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 7px;
  border-bottom: 1px solid rgb(255 255 255 / 0.06);
}
.cpy__tabs b {
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 500;
  color: #a1a1aa;
  transition: all 0.3s;
}
.cpy__tabs b.on {
  color: #0a0a0b;
  background: #ff7a66;
}
.cpy__btn {
  margin-left: auto;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 10px;
  border: 1px solid rgb(255 255 255 / 0.12);
  transition: transform 0.15s, background 0.2s;
}
.cpy__btn.press {
  transform: scale(0.9);
  background: rgb(255 255 255 / 0.12);
}
.cpy pre,
.wb__code {
  margin: 0;
  padding: 10px 12px;
  min-height: 118px;
  font: 500 10.5px/1.7 var(--mono);
  color: #d4d4d8;
  white-space: pre;
  overflow: hidden;
}
.cpy .tg, .wb .tg { color: #ff7a66; }
.cpy .at, .wb .at { color: #c4b5fd; }
.cpy .nu, .wb .nu { color: #fcd34d; }
.cpy .st, .wb .st { color: #5eead4; }
.cpy .cm, .wb .cm { color: #6b7280; }
.cpy .hot {
  border-radius: 3px;
  background: rgb(252 211 77 / 0.18);
}
.cpy__toast {
  position: absolute;
  left: 50%;
  bottom: -38px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  color: #fff;
  background: #16181d;
  box-shadow: 0 10px 24px rgb(20 22 40 / 0.2);
  transform: translate(-50%, 6px);
  opacity: 0;
  transition: all 0.3s var(--ease);
}
.cpy__toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Write back: an editor with a live diff, and the Changes panel that applies it. */
.wb {
  display: grid;
  grid-template-columns: 1fr 34%;
  gap: 12px;
  width: 88%;
  color: #e4e4e6;
  font-size: 11px;
}
.wb__ed,
.wb__side {
  border-radius: 14px;
  background: #16181d;
  box-shadow: 0 20px 40px rgb(20 22 40 / 0.2);
}
.wb__ed {
  overflow: hidden;
}
.wb__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border-bottom: 1px solid rgb(255 255 255 / 0.06);
}
.wb__bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2f3239;
}
.wb__bar span {
  margin-left: 8px;
  font: 500 11px var(--mono);
  color: #a1a1aa;
}
.wb__pair {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  font-style: normal;
  font-size: 10px;
  color: #a1a1aa;
}
.wb__pair::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
}
.wb__code {
  min-height: 0;
  padding: 10px 0;
}
.wb__row {
  display: flex;
  gap: 12px;
  padding: 0 12px;
  white-space: pre;
  transition: background 0.3s;
}
.wb__row .ln {
  width: 18px;
  flex: none;
  color: #52525b;
  text-align: right;
}
.wb__new {
  display: none;
}
.wb.diff .wb__old {
  background: rgb(248 113 113 / 0.14);
  text-decoration: line-through rgb(248 113 113 / 0.6);
}
.wb.diff .wb__new {
  display: flex;
  background: rgb(74 222 128 / 0.14);
}
.wb.done .wb__old {
  display: none;
}
.wb.done .wb__new {
  background: transparent;
}
.wb__side {
  padding: 12px;
  align-self: center;
}
.wb__h {
  margin-bottom: 8px;
  font-weight: 600;
}
.wb__chg {
  display: grid;
  gap: 2px;
  padding: 7px 8px;
  margin-bottom: 6px;
  border-radius: 8px;
  background: rgb(255 255 255 / 0.04);
}
.wb__chg span {
  color: #a1a1aa;
}
.wb__chg b {
  font: 500 10px var(--mono);
  color: #fcd34d;
}
.wb__btn {
  display: block;
  margin-top: 10px;
  padding: 7px 10px;
  border-radius: 9px;
  text-align: center;
  font-weight: 600;
  color: #0a0a0b;
  background: #ff7a66;
  transition: transform 0.15s;
}
.wb__btn.press {
  transform: scale(0.94);
}
.wb__ok {
  margin-top: 10px;
  font-size: 11px;
  color: #4ade80;
  opacity: 0;
  transition: opacity 0.4s;
}
.wb__ok em {
  font-style: normal;
  color: #71717a;
}
.wb.done .wb__ok {
  opacity: 1;
}
@media (max-width: 720px) {
  .wb {
    grid-template-columns: 1fr;
  }
  .wb__side {
    display: none;
  }
  .cpy {
    grid-template-columns: 1fr;
  }
  .cpy__props {
    display: none;
  }
}

/* These panels sit inside .card, whose paragraph style must not apply here. */
.card .cpy p,
.card .wb p {
  margin: 0;
  font-size: 12px;
  color: inherit;
}
.card .wb .wb__h,
.card .cpy__props p {
  margin-bottom: 8px;
  font-weight: 600;
}
.card .wb .wb__ok {
  margin-top: 10px;
  font-size: 11px;
  color: #4ade80;
}
.card .rpanel p {
  margin: 0;
}

/* Kept after the base rules so they win. */
@media (max-width: 1080px) {
  /* Half-width card: the code alone reads better than two cramped panels. */
  .cpy {
    grid-template-columns: 1fr;
    width: 86%;
  }
  .cpy__props {
    display: none;
  }
  .rpanel {
    width: 88%;
    padding: 12px;
  }
  .rlist {
    margin-top: 10px;
  }
  .rlist li {
    padding: 6px 8px;
  }
  .rlist li span {
    display: none;
  }
  .rfps {
    margin-top: 10px;
    padding-top: 8px;
  }
}
@media (min-width: 721px) and (max-width: 1080px) {
  /* Three cards in a two-column grid: the last one takes the full row. */
  .bento--3 > :last-child:nth-child(odd) {
    grid-column: span 2;
  }
}

/* =====================================================================================
 * 04 Performance
 * ===================================================================================== */
.pstage {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 16px;
  padding: clamp(20px, 3vw, 40px);
  border-radius: 28px;
  background:
    radial-gradient(70% 60% at 50% 40%, rgb(255 122 102 / 0.1), transparent 70%),
    radial-gradient(#d6dad8 1px, transparent 1.3px) 0 0 / 18px 18px,
    #eceeed;
}
.pboard,
.pframe {
  padding: 16px;
  border-radius: 18px;
  background: #16181d;
  color: #e4e4e6;
  font-size: 12px;
  box-shadow: 0 24px 50px rgb(20 22 40 / 0.2);
}
.pboard__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-weight: 600;
}
.pboard__live {
  display: flex;
  align-items: center;
  gap: 6px;
  font-style: normal;
  font-weight: 400;
  font-size: 11px;
  color: #a1a1aa;
}
.pboard__live::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  animation: live 1.6s ease-in-out infinite;
}
.pgraph {
  position: relative;
  padding: 12px;
  border-radius: 12px;
  background: rgb(255 255 255 / 0.03);
}
.pgraph__top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  color: #a1a1aa;
}
.pgraph__top b {
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.pgraph canvas {
  display: block;
  width: 100%;
  height: 150px;
}
.pgraph__line {
  position: absolute;
  right: 14px;
  top: 52px;
  font: 500 10px var(--mono);
  color: #fbbf24;
}
.ptiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}
.ptiles div {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgb(255 255 255 / 0.04);
}
.ptiles span {
  font-size: 11px;
  color: #8b8f99;
}
.ptiles b {
  font: 600 18px/1.1 var(--display);
  font-variant-numeric: tabular-nums;
  color: #fff;
}
.pframe__btn {
  padding: 4px 10px;
  border-radius: 7px;
  font-style: normal;
  font-weight: 500;
  font-size: 11px;
  border: 1px solid rgb(255 255 255 / 0.12);
}
.pcalls {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: call;
}
.pcalls li {
  position: relative;
  display: grid;
  grid-template-columns: 22px 54px 1fr;
  align-items: center;
  gap: 6px;
  padding: 9px 10px 13px;
  border-radius: 10px;
  background: rgb(255 255 255 / 0.03);
  transition: background 0.3s, box-shadow 0.3s;
  counter-increment: call;
}
.pcalls li::before {
  content: counter(call);
  font: 500 10px var(--mono);
  color: #52525b;
}
.pcalls b {
  font-weight: 600;
  font-size: 11px;
  color: #c4b5fd;
}
.pcalls li:nth-child(1) b { color: #9ca3af; }
.pcalls li:nth-child(n + 5) b { color: #5eead4; }
.pcalls span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #d4d4d8;
}
.pcalls i {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 6px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, rgb(255 122 102 / 0.8) var(--w), rgb(255 255 255 / 0.06) var(--w));
}
.pcalls li.on {
  background: rgb(255 122 102 / 0.12);
  box-shadow: inset 2px 0 0 #ff7a66;
}
.pnotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
}
.pnotes div {
  padding: 4px 4px 0;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.pnotes h3 {
  font: 600 17px/1.3 var(--display);
}
.pnotes p {
  margin-top: 6px;
  font-size: 15px;
  color: var(--muted);
}

/* =====================================================================================
 * 05 Agent: typed terminal + the live scene it drives
 * ===================================================================================== */
.agent {
  position: relative;
  padding-bottom: 70px;
}
.agent .term pre {
  min-height: 430px;
}
.term .cur {
  display: inline-block;
  width: 7px;
  height: 14px;
  margin-left: 2px;
  vertical-align: -2px;
  background: #ff7a66;
  animation: live 1s steps(1) infinite;
}
.agscene {
  position: absolute;
  right: 20px;
  bottom: 0;
  width: 42%;
  max-width: 340px;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgb(255 255 255 / 0.1);
  background: #1a1c21;
  box-shadow: 0 30px 60px rgb(0 0 0 / 0.55);
}
.agscene__bar,
.agscene__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  font-size: 11px;
  color: #a1a1aa;
}
.agscene__bar b {
  display: grid;
  place-items: center;
  min-width: 30px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 11px;
  color: #0a0a0b;
  background: #ff7a66;
  transition: background 0.4s;
}
.agscene__bar b.ok {
  background: #4ade80;
}
.agscene__foot em {
  font-style: normal;
  font-variant-numeric: tabular-nums;
}
.agscene__view {
  position: relative;
  height: 170px;
  overflow: hidden;
  background: linear-gradient(180deg, #0b1020 0%, #1a2550 70%, #2c4aa0 100%);
}
.agcoin {
  position: absolute;
  left: 50%;
  top: 14%;
  width: 92px;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: repeating-radial-gradient(circle, #2b2d31 0 6px, #3a3d42 6px 8px);
  box-shadow: inset -6px -8px 14px rgb(0 0 0 / 0.5);
  transition: all 1s var(--ease);
}
.agcoin i {
  position: absolute;
  left: 34%;
  top: 34%;
  width: 32%;
  height: 32%;
  border-radius: 4px;
  background: #222428;
  transform: rotate(18deg);
  transition: all 1s var(--ease);
}
.agcoin.studio {
  background:
    radial-gradient(circle at 34% 28%, rgb(255 255 255 / 0.9), transparent 22%),
    repeating-radial-gradient(circle, #c9ccd1 0 6px, #eef0f3 6px 8px);
  box-shadow:
    inset -6px -8px 14px rgb(0 0 0 / 0.25),
    0 0 30px rgb(200 210 255 / 0.25);
}
.agcoin.studio i {
  background: linear-gradient(135deg, #f4f6f8, #9aa0a8);
}
.agblocks {
  position: absolute;
  left: -6%;
  right: -6%;
  bottom: -10px;
  display: flex;
  gap: 4px;
  transform: rotate(-8deg);
}
.agblocks i {
  flex: 1;
  height: 54px;
  border-radius: 3px;
  background: #222428;
  transition: all 1s var(--ease);
}
.agent.lit .agblocks i {
  border-radius: 7px;
  background: linear-gradient(180deg, #e9ecf0, #9aa0a8);
}

@media (max-width: 1080px) {
  .pstage {
    grid-template-columns: 1fr;
  }
  .agent {
    padding-bottom: 0;
  }
  .agscene {
    position: relative;
    right: auto;
    bottom: auto;
    width: 70%;
    margin: -40px 16px 0 auto;
  }
}
@media (max-width: 720px) {
  .ptiles {
    grid-template-columns: repeat(2, 1fr);
  }
  .pnotes {
    grid-template-columns: 1fr;
  }
  .agent .term pre {
    min-height: 380px;
  }
  .agscene {
    width: 88%;
  }
}


/* =====================================================================================
 * Studio: the node panel, animated. Drawn at 1200 × 560 design pixels and scaled with the
 * stage's width (--u is one design pixel), so it is the same picture at every size.
 * ===================================================================================== */
.nstage {
  container-type: inline-size;
  overflow: hidden;
  border-radius: 28px;
  aspect-ratio: 1200 / 560;
  background: #0c0c0e;
  box-shadow: 0 30px 70px rgba(20, 22, 20, 0.14);
}
.nstage__in {
  --u: calc(100cqw / 1200);
  position: relative;
  width: 100%;
  height: 100%;
  font-family: var(--body);
  color: #e6e6e8;
  background: radial-gradient(rgba(255, 255, 255, 0.07) calc(1 * var(--u)), transparent calc(1.3 * var(--u))) 0 0 /
    calc(20 * var(--u)) calc(20 * var(--u));
}
.nwires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.nwires path {
  fill: none;
  stroke-width: 1.6;
  stroke-opacity: 0.32;
  vector-effect: non-scaling-stroke;
  transition: stroke-opacity 0.4s;
}
.nwires .w-a { stroke: #ffb86b; }
.nwires .w-b { stroke: #5fd4c4; }
.nwires .w-c { stroke: #a78bfa; }
.nwires path.on {
  stroke-opacity: 1;
  stroke-dasharray: 6 7;
  animation: nwire 0.7s linear infinite;
}
@keyframes nwire {
  to { stroke-dashoffset: -13; }
}
.nnode {
  position: absolute;
  left: calc(var(--x) * var(--u));
  top: calc(var(--y) * var(--u));
  width: calc(var(--w) * var(--u));
  padding: 0 calc(10 * var(--u)) calc(10 * var(--u));
  border: calc(1 * var(--u)) solid rgba(255, 255, 255, 0.08);
  border-radius: calc(12 * var(--u));
  background: #121214;
  box-shadow: 0 calc(10 * var(--u)) calc(28 * var(--u)) rgba(0, 0, 0, 0.45);
  transition: border-color 0.35s, box-shadow 0.35s;
}
.nnode.on {
  border-color: rgba(255, 122, 102, 0.6);
  box-shadow: 0 0 0 calc(3 * var(--u)) rgba(255, 122, 102, 0.12), 0 calc(10 * var(--u)) calc(28 * var(--u)) rgba(0, 0, 0, 0.45);
}
.nnode h4 {
  display: flex;
  align-items: center;
  gap: calc(7 * var(--u));
  height: calc(32 * var(--u));
  margin: 0 calc(-10 * var(--u)) calc(9 * var(--u));
  padding: 0 calc(11 * var(--u));
  border-bottom: calc(1 * var(--u)) solid rgba(255, 255, 255, 0.07);
  font: 500 calc(9.5 * var(--u)) / 1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}
.nnode h4 i {
  width: calc(6 * var(--u));
  height: calc(6 * var(--u));
  border-radius: 50%;
  background: var(--c);
}
.nchips,
.nrows,
.nchecks {
  margin: 0;
  padding: 0;
  list-style: none;
}
.nchips {
  display: flex;
  flex-wrap: wrap;
  gap: calc(4 * var(--u));
}
.nchips li {
  padding: calc(5 * var(--u)) calc(8 * var(--u));
  border: calc(1 * var(--u)) solid rgba(255, 255, 255, 0.09);
  border-radius: calc(6 * var(--u));
  font-size: calc(10 * var(--u));
  line-height: 1;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.3s var(--ease);
}
.nchips li.on {
  border-color: rgba(255, 122, 102, 0.65);
  color: #fff;
  background: rgba(255, 122, 102, 0.16);
}
.nrows {
  margin-top: calc(8 * var(--u));
}
.nrows li {
  display: flex;
  justify-content: space-between;
  padding: calc(5 * var(--u)) calc(6 * var(--u));
  border-radius: calc(6 * var(--u));
  font-size: calc(11 * var(--u));
  line-height: 1;
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.3s;
}
.nrows li span {
  font-size: calc(9 * var(--u));
  color: rgba(255, 255, 255, 0.3);
}
.nrows li.on {
  color: #fff;
  background: rgba(255, 122, 102, 0.16);
}
.nref {
  position: relative;
  display: grid;
  place-items: center;
  height: calc(86 * var(--u));
  overflow: hidden;
  border: calc(1 * var(--u)) dashed rgba(255, 255, 255, 0.16);
  border-radius: calc(8 * var(--u));
  text-align: center;
}
.nref span {
  padding: 0 calc(16 * var(--u));
  font-size: calc(10 * var(--u));
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.45);
}
/* The reference picture: a warm studio shot of a gold object. */
.nref b {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.12);
  transition: opacity 0.5s, transform 0.7s var(--ease);
  background:
    radial-gradient(circle at 50% 46%, #fff3cf 0 7%, #f1c66a 13%, #a8731f 21%, transparent 22%),
    radial-gradient(60% 22% at 50% 78%, rgba(0, 0, 0, 0.55), transparent),
    radial-gradient(90% 70% at 30% 20%, #6a3d16, transparent 70%),
    linear-gradient(180deg, #2a180b, #100905);
}
.nref.on {
  border-style: solid;
  border-color: rgba(95, 212, 196, 0.5);
}
.nref.on b {
  opacity: 1;
  transform: none;
}
.nmatch {
  margin: calc(7 * var(--u)) 0 0;
  font-size: calc(10 * var(--u));
  color: rgba(255, 255, 255, 0.5);
}
.nmatch b {
  font: 500 calc(11 * var(--u)) var(--mono);
  color: #fff;
}
.nidea {
  min-height: calc(62 * var(--u));
  margin: 0;
  padding: calc(8 * var(--u));
  border: calc(1 * var(--u)) solid rgba(255, 255, 255, 0.08);
  border-radius: calc(8 * var(--u));
  font: calc(10.5 * var(--u)) / 1.5 var(--mono);
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.03);
}
.nidea i {
  display: inline-block;
  width: calc(6 * var(--u));
  height: calc(12 * var(--u));
  margin-left: calc(2 * var(--u));
  vertical-align: -15%;
  background: #a78bfa;
  animation: nblink 1s steps(2) infinite;
}
@keyframes nblink {
  50% { opacity: 0; }
}
.nslide {
  display: flex;
  align-items: center;
  gap: calc(10 * var(--u));
  margin-top: calc(10 * var(--u));
  font-size: calc(10 * var(--u));
  color: rgba(255, 255, 255, 0.5);
}
.nslide span {
  width: calc(58 * var(--u));
}
.nslide i {
  position: relative;
  flex: 1;
  height: calc(3 * var(--u));
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.14);
}
.nslide i::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--v);
  border-radius: 99px;
  background: #ff7a66;
  transition: width 0.8s var(--ease);
}
.nslide i::after {
  content: '';
  position: absolute;
  left: var(--v);
  top: 50%;
  width: calc(11 * var(--u));
  height: calc(11 * var(--u));
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  transition: left 0.8s var(--ease);
}
.nscore {
  display: flex;
  align-items: center;
  gap: calc(8 * var(--u));
  font-size: calc(10 * var(--u));
  color: rgba(255, 255, 255, 0.5);
}
.nscore b {
  flex: 1;
  font: 500 calc(17 * var(--u)) var(--mono);
  color: #fff;
}
.nscore em,
.nbtn {
  padding: calc(6 * var(--u)) calc(10 * var(--u));
  border: calc(1 * var(--u)) solid rgba(255, 255, 255, 0.1);
  border-radius: calc(7 * var(--u));
  font-style: normal;
  font-size: calc(10 * var(--u));
  line-height: 1;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.2s;
}
.nscore em.on,
.nbtn.on {
  transform: scale(0.95);
  border-color: #ff7a66;
  background: rgba(255, 122, 102, 0.3);
}
.nbtn {
  display: block;
  margin-top: calc(6 * var(--u));
  text-align: center;
}
.nbtn--main {
  margin-top: 0;
  border-color: rgba(255, 122, 102, 0.5);
  color: #fff;
  background: rgba(255, 122, 102, 0.15);
}
.nchecks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(6 * var(--u)) calc(8 * var(--u));
  margin-top: calc(10 * var(--u));
}
.nchecks li {
  display: flex;
  align-items: center;
  gap: calc(6 * var(--u));
  font-size: calc(10 * var(--u));
  line-height: 1;
  color: rgba(255, 255, 255, 0.6);
}
.nchecks li::before {
  content: '';
  width: calc(11 * var(--u));
  height: calc(11 * var(--u));
  border: calc(1 * var(--u)) solid rgba(255, 255, 255, 0.25);
  border-radius: calc(3 * var(--u));
  transition: all 0.25s;
}
.nchecks li.on {
  color: #fff;
}
.nchecks li.on::before {
  border-color: #ff7a66;
  background: #ff7a66 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.4 2.3 4.6-5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

/* The live view beside the canvas: one object, lit and resurfaced as the nodes change. */
.nview {
  position: absolute;
  left: calc(772 * var(--u));
  top: calc(28 * var(--u));
  width: calc(400 * var(--u));
  height: calc(504 * var(--u));
  overflow: hidden;
  border: calc(1 * var(--u)) solid rgba(255, 255, 255, 0.08);
  border-radius: calc(16 * var(--u));
  background: #101012;
}
/* The lit studio is a layer that fades in: a gradient cannot be transitioned. */
.nview::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(180deg, #33200f 0%, #170e08 60%, #26180d 60%, #0d0806 100%);
  transition: opacity 0.9s;
}
.nview.lit::before {
  opacity: 1;
}
.nview__hud {
  position: absolute;
  left: calc(12 * var(--u));
  top: calc(12 * var(--u));
  z-index: 3;
  padding: calc(6 * var(--u)) calc(10 * var(--u));
  border-radius: calc(7 * var(--u));
  font: calc(10 * var(--u)) var(--mono);
  color: rgba(255, 255, 255, 0.75);
  background: rgba(0, 0, 0, 0.55);
}
.nview__hud b {
  color: #fff;
}
.nview__glow {
  position: absolute;
  left: 50%;
  top: 40%;
  width: 120%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  opacity: 0;
  background: radial-gradient(closest-side, rgba(255, 190, 120, 0.42), rgba(255, 150, 90, 0.12) 55%, transparent);
  transition: opacity 0.9s;
}
/* Two studio light boxes: what the surface will mirror. */
.nview__box {
  position: absolute;
  top: calc(-30 * var(--u));
  width: calc(96 * var(--u));
  height: calc(150 * var(--u));
  border-radius: calc(8 * var(--u));
  opacity: 0;
  background: linear-gradient(180deg, #fff, #ffe7c7);
  filter: blur(calc(14 * var(--u)));
  transition: opacity 0.9s, transform 0.9s var(--ease);
}
.nview__box.l { left: calc(8 * var(--u)); transform: rotate(18deg) translateY(calc(-40 * var(--u))); }
.nview__box.r { right: calc(8 * var(--u)); transform: rotate(-18deg) translateY(calc(-40 * var(--u))); }
.nview.lit .nview__glow { opacity: 1; }
.nview.lit .nview__box { opacity: 0.5; }
.nview.lit .nview__box.l { transform: rotate(18deg); }
.nview.lit .nview__box.r { transform: rotate(-18deg); }
.nball {
  position: absolute;
  left: 50%;
  top: 47%;
  z-index: 2;
  width: calc(190 * var(--u));
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: #4c4f55;
  animation: nfloat 4s ease-in-out infinite alternate;
}
@keyframes nfloat {
  to { transform: translate(-50%, -54%); }
}
/* One layer per surface, cross-faded. */
.nball::before,
.nball::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.9s var(--ease);
}
.nball::before {
  background: radial-gradient(circle at 36% 30%, #e9e3da 0%, #a79f95 40%, #5b554e 78%, #2c2824 100%);
  box-shadow: inset calc(-12 * var(--u)) calc(-16 * var(--u)) calc(30 * var(--u)) rgba(0, 0, 0, 0.45);
}
.nball::after {
  background:
    radial-gradient(120% 60% at 50% 105%, #fff1c7 0 30%, transparent 31%),
    linear-gradient(180deg, #fff6dc 0%, #f6d37f 26%, #c58f2c 44%, #8a5a17 52%, #c08a2e 60%, #f3cd78 78%, #fff0c8 96%);
  box-shadow: inset calc(-10 * var(--u)) calc(-14 * var(--u)) calc(30 * var(--u)) rgba(60, 30, 0, 0.45),
    inset calc(8 * var(--u)) calc(8 * var(--u)) calc(24 * var(--u)) rgba(255, 240, 200, 0.6);
}
.nball[data-nball='lit']::before { opacity: 1; }
.nball[data-nball='gold']::after,
.nball[data-nball='fixed']::after { opacity: 1; }
.nball i {
  position: absolute;
  left: 18%;
  top: 12%;
  z-index: 1;
  width: 34%;
  height: 22%;
  border-radius: 50%;
  opacity: 0;
  transform: rotate(-24deg);
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.95), transparent);
  transition: opacity 0.8s;
}
.nball[data-nball='lit'] i { opacity: 0.6; }
.nball[data-nball='gold'] i,
.nball[data-nball='fixed'] i { opacity: 1; }
.nview__floor {
  position: absolute;
  left: 50%;
  top: 70%;
  width: calc(170 * var(--u));
  height: calc(26 * var(--u));
  border-radius: 50%;
  opacity: 0.25;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.9), transparent);
  transition: opacity 0.8s, width 0.8s;
}
.nview.shadow .nview__floor {
  width: calc(230 * var(--u));
  opacity: 0.95;
}
.nview__toast {
  position: absolute;
  left: 50%;
  bottom: calc(18 * var(--u));
  z-index: 3;
  padding: calc(8 * var(--u)) calc(14 * var(--u));
  border: calc(1 * var(--u)) solid rgba(255, 255, 255, 0.12);
  border-radius: 99px;
  font-size: calc(11 * var(--u));
  white-space: nowrap;
  color: #fff;
  opacity: 0;
  transform: translate(-50%, calc(10 * var(--u)));
  background: rgba(20, 20, 24, 0.92);
  transition: opacity 0.35s, transform 0.35s var(--ease);
}
.nview__toast.on {
  opacity: 1;
  transform: translate(-50%, 0);
}
.ncursor {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 5;
  width: calc(18 * var(--u));
  height: calc(18 * var(--u));
  fill: #fff;
  stroke: #0a0a0b;
  stroke-width: 1.4;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5));
  opacity: 0;
  transition: transform 0.75s var(--ease), opacity 0.3s;
}
.ncap {
  position: absolute;
  left: calc(548 * var(--u));
  top: calc(40 * var(--u));
  width: calc(196 * var(--u));
  font: 600 calc(15 * var(--u)) / 1.3 var(--display);
  color: #fff;
  opacity: 0;
  transition: opacity 0.35s;
}
.ncap.on {
  opacity: 1;
}
.ncap::before {
  content: attr(data-step);
  display: block;
  margin-bottom: calc(6 * var(--u));
  font: 500 calc(9.5 * var(--u)) var(--mono);
  letter-spacing: 0.12em;
  color: #ff7a66;
}
@media (max-width: 720px) {
  .nstage {
    border-radius: 14px;
  }
}
