/* Shared image treatment. The home hero and page navigation keep their layout. */
:root {
  --editorial-line: rgba(187, 199, 224, .15);
  --editorial-muted: #a4aec2;
  --editorial-ease: cubic-bezier(.2, .65, .3, 1);
}

/* Discovery: two existing offers, with locally generated campaign artwork. */
.home-blacksite :is(.creation-hub, .plugin-hub, .home-community) {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.page-home .home-blacksite :is(.hub-heading h2, .plugin-intro h2, .home-community-head h2) {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif !important;
  letter-spacing: -.035em;
  font-weight: 650;
}
.home-blacksite .hub-eyebrow { color: #9da7c4; letter-spacing: .16em; }
.home-blacksite .hub-heading h2 { font-size: clamp(25px, 2.5vw, 34px); }
.home-blacksite .hub-heading p { color: var(--editorial-muted); }
.home-blacksite .creation-offer {
  background: #101827;
  border: 1px solid var(--editorial-line);
  border-radius: 18px;
  box-shadow: 0 8px 24px #0000001a;
  transition: border-color .25s, box-shadow .25s, transform .35s var(--editorial-ease);
}
.home-blacksite .offer-free { background: #0d211e; }
.home-blacksite .creation-offer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(90deg, #0b1425f5 0%, #0c1526e8 30%, #0c152685 59%, #0c152608 100%), linear-gradient(0deg, #0b12267a, transparent 60%);
}
.home-blacksite .offer-free::before {
  background: linear-gradient(90deg, #09211ef5 0%, #09211ee6 30%, #09211e75 59%, #09211e08 100%), linear-gradient(0deg, #071c1a80, transparent 60%);
}
.home-blacksite .creation-offer::after { display: none; }
.home-blacksite .offer-cover {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
  pointer-events: none;
  transition: transform .7s var(--editorial-ease);
}
.home-blacksite .creation-offer:hover { transform: translateY(-3px); border-color: #b9b4ed70; box-shadow: 0 18px 44px #00000040; }
.home-blacksite .offer-free:hover { border-color: #9ae6c870; }
.home-blacksite .creation-offer:hover .offer-cover { transform: scale(1.035); }
.home-blacksite .offer-label { font-size: 10px; color: #d1d6f2; letter-spacing: .14em; }
.home-blacksite .offer-tag {
  padding: 5px 10px;
  border-radius: 6px;
  border-color: #dedfff2e;
  background: #111a2c70;
  color: #e0e3f5;
  backdrop-filter: blur(12px);
}
.home-blacksite .offer-free .offer-label { color: #b8ead8; }
.home-blacksite .offer-free .offer-tag { background: #0c292370; color: #c8f0e1; border-color: #b6f6da33; }
.home-blacksite .offer-content h3 { color: #f6f6ff; font-size: clamp(30px, 3vw, 40px); letter-spacing: -.035em; font-weight: 650; }
.home-blacksite .offer-kicker { color: #c0c8e2; font-size: 12px; letter-spacing: .04em; }
.home-blacksite .offer-content p { color: #bdc5d7; font-size: 13px; line-height: 1.9; max-width: 295px; }
.home-blacksite .offer-free .offer-content p { color: #b8d2c9; }
.home-blacksite .offer-benefits { color: #b7c1d6; font-size: 11px; }
.home-blacksite .offer-cta { background: #e7e5ff; color: #25213d; font-weight: 650; border: 1px solid #ffffff3d; box-shadow: 0 4px 14px #00000024; }
.home-blacksite .offer-free .offer-cta { background: #b5e6d1; color: #153a2d; }
.home-blacksite .creation-offer:hover .offer-cta { filter: brightness(1.06); }

/* Keep the existing tool grid and give each destination its own visual cue. */
.home-blacksite .hub-tools > :is(a, button) {
  position: relative;
  overflow: hidden;
  padding: 0 20px 20px;
  gap: 12px 10px;
  border: 1px solid var(--editorial-line);
  border-radius: 13px;
  background: #101722;
  transition: border-color .25s, background .25s, transform .3s var(--editorial-ease);
}
.home-blacksite .hub-tool-cover {
  display: block;
  grid-column: 1 / -1;
  grid-row: 1;
  width: calc(100% + 40px);
  max-width: none;
  height: 132px;
  margin: 0 -20px 5px;
  object-fit: cover;
  border-bottom: 1px solid #ffffff0d;
  pointer-events: none;
  transition: filter .3s;
}
.home-blacksite .hub-tools > :is(a, button) > :is(svg, b) { grid-row: 2; }
.home-blacksite .hub-tools > :is(a, button) > svg:first-of-type { color: #c4bbef; width: 19px; height: 19px; }
.home-blacksite .hub-tools > :is(a, button) > b { color: #e4e7f1; font-size: 14px; font-weight: 600; }
.home-blacksite .hub-tools > :is(a, button) > span { grid-row: 3; color: #9ca8bd; font-size: 12px; line-height: 1.7; }
.home-blacksite .hub-tools > :is(a, button) > svg:last-child { color: #a0abc1; }
.home-blacksite .hub-tools > :is(a, button):hover { transform: translateY(-3px); background: #151d2b; border-color: #b9b4ed66; }
.home-blacksite .hub-tools > :is(a, button):hover .hub-tool-cover { filter: brightness(1.1); }
.home-blacksite .hub-membership { border-color: #cfb68c29; background: linear-gradient(105deg, #231f1c, #131720 75%); }
.home-blacksite .hub-member-icon { background: #d6b5790b; border-color: #cfb68c38; border-radius: 12px; }
.home-blacksite .hub-membership h3 { font-size: 18px; font-weight: 550; color: #e6dac5; }
.home-blacksite .member-discover { border-radius: 8px; }

/* Atmospheric imagery stays behind the existing two-column introduction. */
.home-blacksite .plugin-band { position: relative; isolation: isolate; overflow: hidden; background: #101623; border: 1px solid var(--editorial-line); }
.home-blacksite .plugin-band > :not(.band-cover) { position: relative; z-index: 1; }
.home-blacksite .band-cover {
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  width: 66%;
  height: 100%;
  object-fit: cover;
  opacity: .21;
  mask-image: linear-gradient(90deg, transparent, #000 60%);
  pointer-events: none;
}
.home-blacksite .skills-hub .plugin-band { background: #191814; border-color: #d6b57926; }
.home-blacksite .skills-hub .band-cover { opacity: .2; }
.home-blacksite .plugin-intro h2 { font-size: clamp(23px, 2.2vw, 30px); line-height: 1.5; }
.home-blacksite .plugin-intro p { color: #a7b0c3; font-size: 13px; }
.home-blacksite .plugin-points li > div > span { color: #a4aec2; }
.home-blacksite .plugin-point-icon { border-radius: 10px; border-color: #bba8ef2e; background: #bba8ef0c; color: #c4b8eb; }
.home-blacksite :is(.plugin-enter, .plugin-guide) { border-radius: 8px; }
.home-blacksite .plugin-enter { background: #cfbfef; color: #281e40; box-shadow: none; }
.home-blacksite .skills-hub .plugin-enter { background: #e0ca9f; color: #352919; border-color: #e0ca9f66; }
.home-blacksite .skills-hub :is(.hub-eyebrow, .plugin-point-icon) { color: #d4bc91; }
.home-blacksite .skills-hub .plugin-guide { color: #d4bc91; border-color: #d4bc9140; background: #d4bc9108; }

/* Image / video mode controls retain their size and click targets. */
.create-layout .mode-card { position: relative; isolation: isolate; overflow: hidden; border-radius: 12px; background: #101823; border-color: #bec8e02b; }
.create-layout .mode-cover { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: .55; pointer-events: none; }
.create-layout .mode-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, #0a101ee8, #0a101e28); pointer-events: none; }
.create-layout .mode-card .mode-label { position: relative; color: #f0f2fa; }
.create-layout .mode-card .mode-art { color: #ece8ff; }
.create-layout .mode-card.active { border-color: #bcb0ed; box-shadow: 0 0 0 1px #bcb0ed26; }
.create-layout .mode-card.active .mode-cover { opacity: .85; }
.create-layout .mode-card.px-host { color: #f0f2fa !important; overflow: hidden; }
.create-layout .mode-card.px-host > canvas.px-face { display: none; }
.create-layout .mode-card.px-host svg { opacity: 1; }

/* Skill cards use category artwork instead of repeating empty panels. */
.skills-page .sk-card { gap: 13px; padding: 18px 18px 16px; background: #121925; border-color: var(--editorial-line); border-radius: 15px; box-shadow: none; }
.skills-page .sk-cover { position: relative; flex: none; height: 142px; margin: -18px -18px 3px; overflow: hidden; background: #202735; border-bottom: 1px solid #ffffff12; }
.skills-page .sk-cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .65s var(--editorial-ease); }
.skills-page .sk-card:hover .sk-cover img { transform: scale(1.04); }
.skills-page .sk-card::before { z-index: 1; opacity: .45; }
.skills-page .sk-card .sk-icon { width: 37px; height: 37px; font-size: 21px; border-radius: 10px; background: #bba8ef0b; box-shadow: none; border-color: #bba8ef25; }
.skills-page .sk-summary { color: #aab4c7; line-height: 1.8; }
.skills-page .sk-tags span { background: #a69ce70c; border-color: #a69ce71f; color: #b0aacb; }
.skills-page .sk-card:hover { border-color: #b9b4ed60; box-shadow: 0 12px 28px #00000026; }
.skills-page .sk-act.primary { background: #d8d1f2; color: #302841; border-color: #d8d1f2; }

/* Reuse the modular glass artwork in the plugin hall's existing art slot. */
.plz-feature .editorial-feature-art { right: 18px; top: 0; bottom: 0; width: 40%; padding: 0; transform: none; filter: none; pointer-events: none; }
.plz-feature .editorial-feature-art img { width: 100%; height: 100%; object-fit: cover; mask-image: linear-gradient(90deg, transparent, #000 40%); }
.plz-feature:has(.editorial-feature-art) { background: #111629; border-color: var(--editorial-line); box-shadow: none; }
.plz-feature:has(.editorial-feature-art) > div:first-child { position: relative; z-index: 1; max-width: 65%; }
.plz-feature:has(.editorial-feature-art)::before { display: none; }
.plz-wrap .btn-grad.px-host { color: #29223d !important; background: #d5caf1; border: 1px solid #d5caf166; border-radius: 8px; box-shadow: none; font-family: inherit; font-weight: 600; letter-spacing: 0; }
.plz-wrap .btn-grad.px-host > canvas.px-face { display: none; }
.plz-wrap .btn-grad.px-host svg { opacity: 1; }

/* Silver shop: refine existing surfaces and add thumbnails to prompt chips. */
.studio .hero-subtitle { color: #aab6ca; line-height: 1.85; }
.studio .result-card { border-color: var(--editorial-line); background: #0e151fe8; box-shadow: 0 8px 30px #0000001a; }
.studio .img-cell { border-radius: 12px; border-color: #bec8e02b; }
.studio .composer { border-color: #b7b5d447; box-shadow: 0 6px 24px #0000001f; }
.studio .composer:focus-within { border-color: #c3b4ed80; box-shadow: 0 0 0 3px #c3b4ed0d; }
.studio .prompt-suggestion > img { display: block; flex: none; width: 24px; height: 24px; object-fit: cover; border-radius: 5px; }
.studio .prompt-suggestion:has(> img)::before { display: none; }

:is(.creation-hub, .plugin-hub, .skills-page) :focus-visible { outline: 2px solid #c9bef6; outline-offset: 4px; }

@media (min-width: 1600px) {
  .home-blacksite .hub-tool-cover { height: 155px; }
}
@media (min-width: 1280px) {
  .home-blacksite .hub-tools { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 1150px) {
  .home-blacksite .creation-offer { padding: 30px; }
  .home-blacksite .offer-content p { max-width: 250px; }
  .home-blacksite .offer-cover { object-position: 68% center; }
}
@media (max-width: 760px) {
  .home-blacksite .creation-offer { border-radius: 15px; }
  .home-blacksite .offer-content p { max-width: 265px; }
  .home-blacksite .hub-tools > :is(a, button) { padding: 0 16px 18px; gap: 10px; }
  .home-blacksite .hub-tool-cover { width: calc(100% + 32px); margin-inline: -16px; height: 132px; }
  .home-blacksite .hub-tools > :is(a, button) > b { font-size: 13px; }
  .home-blacksite .hub-tools > :is(a, button) > span { font-size: 11px; }
  .home-blacksite .band-cover { width: 100%; opacity: .13; }
  .skills-page .sk-cover { height: 132px; }
  .plz-feature:has(.editorial-feature-art) > div:first-child { max-width: none; }
}
@media (max-width: 520px) {
  .home-blacksite .creation-offer { min-height: 370px; padding: 26px; }
  .home-blacksite .offer-top { gap: 8px; }
  .home-blacksite .offer-label { font-size: 9px; letter-spacing: .1em; }
  .home-blacksite .offer-cover { object-position: 64% center; }
  .home-blacksite .creation-offer::before { background: linear-gradient(90deg, #0b1425ef, #0c1526b3 48%, #0c152633); }
  .home-blacksite .offer-free::before { background: linear-gradient(90deg, #09211eef, #09211eb3 48%, #09211e33); }
  .home-blacksite .offer-content h3 { font-size: 32px; }
  .home-blacksite .offer-content p { max-width: 238px; }
  .home-blacksite .hub-tools > :is(a, button) { grid-template-columns: 24px 1fr 14px; }
  .home-blacksite .hub-tool-cover { height: 150px; }
  .home-blacksite .hub-tools svg:last-child { display: block; }
  .home-blacksite .plugin-band { border-radius: 15px; }
  .home-blacksite .hub-membership h3 { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-blacksite :is(.creation-offer, .offer-cover, .hub-tool-cover),
  .home-blacksite .hub-tools > :is(a, button), .skills-page .sk-cover img { transition: none; }
  .home-blacksite .creation-offer:hover, .home-blacksite .creation-offer:hover .offer-cover,
  .home-blacksite .hub-tools > :is(a, button):hover, .skills-page .sk-card:hover .sk-cover img { transform: none; }
}
