/* ---------------------------------------------------------------------------
   Viral Presets, MCP & CLI and Canvas pages.
   --------------------------------------------------------------------------- */

.pg {
  --pg-page: #0f1113;
  --pg-surface: #17181b;
  --pg-card: #1c1e21;
  --pg-line: #ffffff14;
  --pg-lime: #d1fe17;
  --pg-secondary: #898a8b;
  --pg-grotesk: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --pg-inter: "Inter", ui-sans-serif, system-ui, sans-serif;
  display: block;
  background: var(--pg-page);
  color: #fff;
  font-family: var(--pg-inter);
  min-height: calc(100vh - 52px);
  padding-bottom: 4rem;
}
.pg *, .pg *::before, .pg *::after { box-sizing: border-box; }
.pg h1, .pg h2, .pg h3, .pg p, .pg figure { margin: 0; }
.pg a { color: inherit; text-decoration: none; }
.pg button { font: inherit; color: inherit; cursor: pointer; }
.pg-i { width: 1rem; height: 1rem; flex: none; }
.pg-container { width: 100%; max-width: 82rem; margin: 0 auto; padding-inline: 1rem; }
.pg-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; height: 2.75rem;
  padding-inline: 1.125rem; border: 0; border-radius: 0.625rem; font-size: 0.875rem; font-weight: 600;
  white-space: nowrap; transition: filter 0.15s;
}
.pg .pg-btn-white { background: #fff; color: #131517; }
.pg .pg-btn-white:hover { filter: brightness(0.92); }

/* ---- Viral Presets -------------------------------------------------------- */

.pg-viral { padding-top: 2.5rem; }
.pg-viral-title {
  text-align: center; font-family: var(--pg-grotesk); font-weight: 700; text-transform: uppercase;
  font-size: clamp(3rem, 9vw, 7rem); line-height: 1; letter-spacing: -0.04em; color: var(--pg-lime);
}
.pg-chips {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem;
  max-width: 86rem; margin: 3rem auto 0; padding-inline: 1rem;
}
.pg-chip {
  position: relative; display: inline-flex; align-items: center; height: 2.375rem; padding-inline: 1rem;
  border: 1px solid var(--pg-line); border-radius: 0.625rem; background: var(--pg-surface);
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.02em; white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.pg-chip:hover { background: #24272b; }
.pg-chip[data-active] { background: var(--pg-lime); border-color: var(--pg-lime); color: #131517; }
.pg-chip sup { margin-left: 0.25rem; font-size: 0.5625rem; font-weight: 700; text-transform: lowercase; color: var(--pg-lime); }
.pg-chip[data-active] sup { color: #131517; }

.pg-masonry { columns: 5; column-gap: 0.75rem; max-width: 92rem; margin: 3rem auto 0; padding-inline: 1rem; }
@media (max-width: 1279px) { .pg-masonry { columns: 3; } }
@media (max-width: 767px) { .pg-masonry { columns: 2; } }
.pg-tile { break-inside: avoid; margin-bottom: 0.75rem; border-radius: 0.5rem; overflow: hidden; background: var(--pg-card); }
.pg-tile img, .pg-tile video { width: 100%; height: auto; display: block; }

/* ---- MCP & CLI ------------------------------------------------------------ */

.pg-mcp { padding-top: 3.5rem; text-align: center; }
.pg-stack { display: flex; justify-content: center; align-items: center; margin-bottom: 2.5rem; }
.pg-stack-icon {
  display: grid; place-items: center; width: 3rem; height: 3rem; flex: none; margin-inline: -0.5rem;
  border-radius: 0.75rem; background: var(--pg-card); border: 1px solid var(--pg-line); overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}
.pg-stack-icon img { width: 100%; height: 100%; object-fit: cover; }
.pg-stack-icon[data-mid] { width: 4.5rem; height: 4.5rem; border-radius: 1.125rem; z-index: 2; background: var(--pg-lime); }
.pg-mcp-title {
  font-family: var(--pg-grotesk); font-weight: 700; text-transform: uppercase; color: var(--pg-lime);
  font-size: clamp(1.75rem, 4vw, 2.75rem); line-height: 1.1; letter-spacing: -0.03em;
}
.pg-mcp-sub { margin-top: 0.75rem; font-size: 0.9375rem; color: var(--pg-secondary); }
.pg-trial {
  display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 2rem; height: 2.75rem; padding-inline: 1rem;
  border: 1px solid rgba(209, 254, 23, 0.28); border-radius: 0.75rem; background: rgba(209, 254, 23, 0.06);
  color: var(--pg-lime); font-size: 0.875rem; font-weight: 500;
}
.pg-trial-badge {
  display: inline-flex; align-items: center; height: 1.25rem; padding-inline: 0.5rem; border-radius: 0.375rem;
  background: var(--pg-lime); color: #131517; font-family: var(--pg-grotesk); font-size: 0.625rem;
  font-weight: 700; text-transform: uppercase; transform: skewX(-12deg);
}
@media (max-width: 767px) { .pg-trial { height: auto; padding: 0.75rem 1rem; flex-wrap: wrap; justify-content: center; } }

.pg-connect { margin-top: 2.5rem; border: 1px solid var(--pg-line); border-radius: 1.25rem; background: var(--pg-surface); overflow: hidden; text-align: left; }
.pg-connect-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 0.75rem 1rem; border-bottom: 1px solid var(--pg-line); }
.pg-tools { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.pg-tools button {
  display: inline-flex; align-items: center; gap: 0.5rem; height: 2.25rem; padding-inline: 0.75rem;
  border: 0; border-radius: 9999px; background: transparent; color: var(--pg-secondary);
  font-size: 0.875rem; font-weight: 500; transition: background-color 0.15s, color 0.15s;
}
.pg-tools button:hover { color: #fff; }
.pg-tools button[data-active] { background: #fff; color: #131517; }
.pg-tools img { width: 1rem; height: 1rem; border-radius: 0.25rem; object-fit: cover; }
.pg-tool-dot { width: 0.625rem; height: 0.625rem; border-radius: 9999px; background: currentColor; }
.pg-modes { display: inline-flex; gap: 0.25rem; padding: 0.25rem; border-radius: 0.625rem; background: var(--pg-card); }
.pg-modes button {
  display: inline-flex; align-items: center; gap: 0.375rem; height: 2rem; padding-inline: 0.75rem;
  border: 0; border-radius: 0.5rem; background: transparent; color: var(--pg-secondary); font-size: 0.8125rem; font-weight: 500;
}
.pg-modes button[data-active] { background: #2c3034; color: #fff; }

.pg-steps { display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 767px) { .pg-steps { grid-template-columns: 1fr; } }
.pg-step { padding: 1.5rem; display: flex; flex-direction: column; align-items: flex-start; gap: 0.625rem; }
.pg-step + .pg-step { border-left: 1px solid var(--pg-line); }
@media (max-width: 767px) { .pg-step + .pg-step { border-left: 0; border-top: 1px solid var(--pg-line); } }
.pg-step-n { display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 9999px; background: #2c3034; font-size: 0.8125rem; font-weight: 600; }
.pg-step h2 { margin-top: 0.5rem; font-size: 1.125rem; font-weight: 600; }
.pg-step p { font-size: 0.875rem; line-height: 1.35rem; color: var(--pg-secondary); }
.pg-step .pg-btn { margin-top: 1.5rem; }

.pg-note { display: flex; align-items: center; justify-content: center; gap: 1.25rem; margin-top: 1.5rem; font-size: 0.8125rem; color: var(--pg-secondary); }
.pg-note-gh { display: inline-flex; align-items: center; gap: 0.375rem; color: #fff; }

.pg-how { margin-top: 6rem; }
.pg-how h2 { font-family: var(--pg-grotesk); font-weight: 700; text-transform: uppercase; font-size: 2.25rem; letter-spacing: -0.03em; }
.pg-how-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-top: 2rem; text-align: left; }
@media (max-width: 1023px) { .pg-how-grid { grid-template-columns: 1fr; } }
.pg-how-grid article { padding: 1.5rem; border: 1px solid var(--pg-line); border-radius: 1rem; background: var(--pg-surface); }
.pg-how-n { display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 9999px; background: var(--pg-lime); color: #131517; font-size: 0.8125rem; font-weight: 700; }
.pg-how-grid h3 { margin-top: 0.875rem; font-size: 1.0625rem; font-weight: 600; }
.pg-how-grid p { margin-top: 0.375rem; font-size: 0.875rem; line-height: 1.35rem; color: var(--pg-secondary); }

/* ---- shared extras -------------------------------------------------------- */
.pg .pg-btn-grey { background: #2c3034; color: #fff; }
.pg .pg-btn-grey:hover { filter: brightness(1.15); }
.pg .pg-btn-ghost { background: transparent; color: #fff; }
.pg .pg-btn-ghost:hover { background: #ffffff0d; }
.pg .pg-btn-lime {
  background-color: var(--pg-lime); color: #1a1a1a;
  background-image: linear-gradient(180deg, rgba(255, 255, 20, 0) 0%, #ffff14 100%), linear-gradient(90deg, var(--pg-lime), var(--pg-lime));
  box-shadow: inset 0 -3px 0 0 #829b19;
}
.pg .pg-btn-lime:hover { filter: brightness(1.05); }

/* ---- 3D Jutsu ------------------------------------------------------------- */
.pg-jutsu {
  text-align: center; padding-top: 2.5rem;
  background-position: top center; background-repeat: no-repeat; background-size: 100% 34rem;
}
.pg-jutsu-stage { position: relative; height: 15rem; max-width: 80rem; margin: 0 auto; }
.pg-jutsu-card {
  position: absolute; left: 50%; top: 50%; width: 26.5rem; aspect-ratio: 16 / 9; margin: 0;
  overflow: hidden; border-radius: 0.5rem; background: #1c1e21; cursor: pointer;
  transform: translate(calc(-50% + var(--o) * 14rem), -50%) scale(0.72);
  opacity: 0.4; z-index: 1; transition: transform 0.35s ease, opacity 0.35s ease;
}
.pg-jutsu-card[data-active] { transform: translate(-50%, -50%) scale(1); opacity: 1; z-index: 3; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55); }
.pg-jutsu-card video { width: 100%; height: 100%; object-fit: cover; }
.pg-jutsu-pill {
  display: inline-flex; align-items: center; gap: 0.375rem; margin-top: 3.5rem; height: 1.875rem; padding-inline: 0.75rem;
  border-radius: 9999px; border: 1px solid var(--pg-line); background: var(--pg-surface);
  font-family: var(--pg-grotesk); font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
}
.pg-jutsu-title {
  margin-top: 1.25rem; font-family: var(--pg-grotesk); font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.75rem, 4vw, 2.5rem); letter-spacing: -0.03em;
  background: linear-gradient(180deg, #ffffff, #b9bbbd); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pg-jutsu-sub { margin-top: 0.625rem; font-size: 0.9375rem; color: var(--pg-secondary); }
.pg-jutsu-bar {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "text go" "controls go";
  gap: 0.75rem 1rem; align-items: end; width: 100%; max-width: 56rem; margin: 2rem auto 0; padding: 1rem;
  border: 1px solid var(--pg-line); border-radius: 1rem; background: var(--pg-surface); text-align: left;
}
.pg-jutsu-bar textarea {
  grid-area: text; resize: none; border: 0; background: transparent; color: #fff; font: inherit;
  font-size: 0.9375rem; line-height: 1.5rem; outline: none; min-height: 2.25rem;
}
.pg-jutsu-bar textarea::placeholder { color: var(--pg-secondary); }
.pg-jutsu-controls { grid-area: controls; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.pg-jutsu-add {
  display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 0.5rem;
  border: 1px solid var(--pg-line); background: transparent; color: #fff;
}
.pg-jutsu-chip {
  display: inline-flex; align-items: center; gap: 0.375rem; height: 2rem; padding-inline: 0.625rem;
  border: 0; border-radius: 0.5rem; background: #24272b; font-size: 0.8125rem; font-weight: 500;
}
.pg-jutsu-free { padding: 0.0625rem 0.3125rem; border-radius: 0.25rem; background: var(--pg-lime); color: #131517; font-size: 0.625rem; font-weight: 700; }
.pg-jutsu-go {
  grid-area: go; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  height: 4.5rem; padding-inline: 1.5rem; border: 0; border-radius: 0.75rem; color: #1a1a1a;
  font-family: var(--pg-grotesk); font-size: 0.9375rem; font-weight: 700; text-transform: uppercase;
  background-color: var(--pg-lime);
  background-image: linear-gradient(180deg, rgba(255, 255, 20, 0) 0%, #ffff14 100%), linear-gradient(90deg, var(--pg-lime), var(--pg-lime));
  box-shadow: inset 0 -3px 0 0 #829b19;
}
.pg-jutsu-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; max-width: 82rem; margin: 3.5rem auto 0; padding-inline: 1rem; text-align: left; }
@media (max-width: 1023px) { .pg-jutsu-steps { grid-template-columns: 1fr; } .pg-jutsu-card { width: 18rem; } }
.pg-jutsu-steps article { padding: 1.5rem; border: 1px solid var(--pg-line); border-radius: 1rem; background: var(--pg-surface); }
.pg-jutsu-steps h2 { margin-top: 0.875rem; font-size: 1.0625rem; font-weight: 600; }
.pg-jutsu-steps p { margin-top: 0.375rem; font-size: 0.875rem; line-height: 1.35rem; color: var(--pg-secondary); }

/* ---- Academy -------------------------------------------------------------- */
.pg-academy { padding-top: 3rem; }
.pg-academy-title { font-size: 2.25rem; font-weight: 600; letter-spacing: -0.03em; }
.pg-courses { display: flex; flex-direction: column; margin-top: 2rem; }
.pg-course { display: grid; grid-template-columns: 27rem 1fr; gap: 2.5rem; padding: 2rem 0; }
.pg-course + .pg-course { border-top: 1px solid var(--pg-line); }
@media (max-width: 1023px) { .pg-course { grid-template-columns: 1fr; gap: 1.25rem; } }
.pg-course-art { aspect-ratio: 16 / 9; border-radius: 0.75rem; overflow: hidden; background: var(--pg-card); }
.pg-course-art img { width: 100%; height: 100%; object-fit: cover; }
.pg-course-body { display: flex; flex-direction: column; align-items: flex-start; gap: 0.875rem; }
.pg-course-body h2 { font-size: 1.75rem; font-weight: 600; letter-spacing: -0.02em; }
.pg-course-body p { font-size: 0.9375rem; line-height: 1.5rem; color: var(--pg-secondary); }
.pg-course-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pg-course-chip {
  display: inline-flex; align-items: center; gap: 0.375rem; height: 1.75rem; padding-inline: 0.625rem;
  border-radius: 0.5rem; background: var(--pg-card); font-size: 0.75rem; color: #cfd1d3;
}
.pg-course-chip .pg-i { width: 0.875rem; height: 0.875rem; color: var(--pg-secondary); }
.pg-course-actions { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.25rem; }
.pg-showall { display: flex; justify-content: center; margin-top: 2rem; }
.pg-bank { margin-top: 5rem; }
.pg-bank h2 { font-size: 2.25rem; font-weight: 600; letter-spacing: -0.03em; }
.pg-bank h3 { margin-top: 1.5rem; font-size: 1.125rem; font-weight: 600; color: var(--pg-secondary); }
.pg-bank-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.pg-bank-chip {
  display: inline-flex; align-items: center; gap: 0.5rem; height: 2.25rem; padding-inline: 0.875rem;
  border: 1px solid var(--pg-line); border-radius: 0.625rem; background: var(--pg-surface); font-size: 0.875rem;
}
.pg-bank-chip:hover { background: #24272b; }
.pg-bank-chip .pg-i { color: var(--pg-secondary); }

/* ---- Originals ------------------------------------------------------------ */
.pg-originals { padding-bottom: 5rem; }
.pg-og-hero { position: relative; height: 38rem; overflow: hidden; isolation: isolate; }
@media (max-width: 767px) { .pg-og-hero { height: 26rem; } }
.pg-og-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.pg-og-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.35) 55%, transparent 100%); }
.pg-og-hero-body { position: absolute; left: 3rem; bottom: 4rem; display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
@media (max-width: 767px) { .pg-og-hero-body { left: 1rem; right: 1rem; bottom: 2rem; } }
.pg-og-kicker { font-family: var(--pg-grotesk); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--pg-lime); }
.pg-og-hero-body h1 { font-family: var(--pg-grotesk); font-weight: 700; text-transform: uppercase; font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1; letter-spacing: -0.03em; }
.pg-og-mute {
  position: absolute; right: 2rem; bottom: 4rem; display: grid; place-items: center; width: 2.75rem; height: 2.75rem;
  border-radius: 9999px; border: 1px solid var(--pg-line); background: rgba(20, 22, 24, 0.6); color: #fff; backdrop-filter: blur(8px);
}
.pg-og-promo {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 1rem;
  margin-top: 2rem; padding: 1.75rem; border-radius: 1.25rem; overflow: hidden;
  background: radial-gradient(120% 160% at 0% 0%, rgba(255, 0, 91, 0.35), transparent 62%), #1a0d15;
  border: 1px solid rgba(255, 0, 91, 0.25);
}
.pg-og-promo-badge {
  display: inline-flex; align-items: center; gap: 0.25rem; height: 1.25rem; padding-inline: 0.5rem;
  border-radius: 0.375rem; background: var(--pg-lime); color: #131517;
  font-family: var(--pg-grotesk); font-size: 0.625rem; font-weight: 700; text-transform: uppercase;
}
.pg-og-promo h2 { font-family: var(--pg-grotesk); font-weight: 700; text-transform: uppercase; font-size: 2rem; line-height: 2.25rem; letter-spacing: -0.04em; }
.pg-og-promo h2 span { color: #ff2d9b; }
.pg-og-row { margin-top: 3rem; }
.pg-og-row header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.pg-og-row h2 { font-size: 1.375rem; font-weight: 600; letter-spacing: -0.02em; }
.pg-og-seeall { display: inline-flex; align-items: center; gap: 0.375rem; font-size: 0.8125rem; color: var(--pg-secondary); }
.pg-og-seeall:hover { color: #fff; }
.pg-og-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 1rem; overflow-x: auto; scrollbar-width: none; }
.pg-og-strip::-webkit-scrollbar { display: none; }
@media (max-width: 1023px) { .pg-og-strip { grid-auto-columns: 60%; } }
.pg-og-poster { display: block; aspect-ratio: 16 / 9; border-radius: 0.75rem; overflow: hidden; background: var(--pg-card); }
.pg-og-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s; }
.pg-og-poster:hover img { transform: scale(1.04); }

/* ---- Plugins -------------------------------------------------------------- */
.pg-plugins { padding-top: 3.5rem; text-align: center; }
.pg-pl-kicker { font-family: var(--pg-grotesk); font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.2em; color: var(--pg-secondary); }
.pg-pl-title {
  margin-top: 1.25rem; font-family: var(--pg-grotesk); font-weight: 700; text-transform: uppercase;
  font-size: clamp(2rem, 5.5vw, 3.75rem); line-height: 1.08; letter-spacing: -0.04em;
}
.pg-pl-title span { color: var(--pg-lime); }
.pg-pl-download { margin-top: 2rem; height: 3rem; padding-inline: 1.5rem; }
.pg-pl-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem; margin-top: 3rem; }
.pg-pl-tabs button {
  display: inline-flex; align-items: center; gap: 0.5rem; height: 2.5rem; padding-inline: 0.875rem;
  border: 0; border-radius: 0.625rem; background: transparent; color: var(--pg-secondary);
  font-size: 0.875rem; font-weight: 500; transition: background-color 0.15s, color 0.15s;
}
.pg-pl-tabs button:hover { color: #fff; }
.pg-pl-tabs button[data-active] { background: #26292d; color: #fff; }
.pg-pl-tabs img { width: 1.125rem; height: 1.125rem; border-radius: 0.25rem; }
.pg-pl-mark { display: grid; place-items: center; width: 1.125rem; height: 1.125rem; border-radius: 0.25rem; background: #33363a; font-size: 0.5625rem; font-weight: 700; }
.pg-pl-preview {
  position: relative; margin-top: 1.5rem; border-radius: 1rem; overflow: hidden;
  border: 1px solid var(--pg-line); background: #0b0c0e; aspect-ratio: 16 / 9;
}
.pg-pl-preview video { width: 100%; height: 100%; object-fit: cover; }
.pg-pl-panel {
  position: absolute; right: 1rem; top: 1rem; bottom: 1rem; width: 19.5rem; overflow: hidden;
  display: flex; flex-direction: column; gap: 0.5rem; padding: 0.75rem; text-align: left;
  border: 1px solid var(--pg-lime); border-radius: 0.75rem; background: #131517;
}
@media (max-width: 1023px) { .pg-pl-panel { display: none; } }
.pg-pl-panel header { display: flex; align-items: center; justify-content: space-between; font-size: 0.75rem; }
.pg-pl-panel-brand { display: inline-flex; align-items: center; gap: 0.375rem; font-weight: 600; }
.pg-pl-panel-tag { padding: 0.0625rem 0.3125rem; border-radius: 0.25rem; background: var(--pg-lime); color: #131517; font-size: 0.5rem; font-weight: 700; text-transform: uppercase; }
.pg-pl-panel-ver { color: var(--pg-secondary); }
.pg-pl-panel-promo { padding: 0.75rem; border-radius: 0.5rem; background: linear-gradient(90deg, #e0489b, #7c3aed); }
.pg-pl-panel-promo-title { font-family: var(--pg-grotesk); font-weight: 700; text-transform: uppercase; font-size: 0.9375rem; }
.pg-pl-panel-promo p { font-size: 0.625rem; opacity: 0.85; margin-top: 0.25rem; }
.pg-pl-panel-btn { display: inline-block; margin-top: 0.5rem; padding: 0.25rem 0.5rem; border-radius: 0.375rem; background: #fff; color: #131517; font-size: 0.625rem; font-weight: 600; }
.pg-pl-panel-h { font-size: 0.6875rem; font-weight: 600; }
.pg-pl-panel-row { display: flex; gap: 0.375rem; }
.pg-pl-panel-add { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 0.375rem; background: #1f2226; color: var(--pg-secondary); }
.pg-pl-panel-thumb { width: 3rem; height: 3rem; border-radius: 0.375rem; background: #24272b; }
.pg-pl-panel-apps { display: grid; gap: 0.375rem; }
.pg-pl-panel-apps > span { position: relative; display: block; padding: 0.5rem; border-radius: 0.375rem; background: #1f2226; font-size: 0.6875rem; font-weight: 600; }
.pg-pl-panel-apps small { display: block; font-weight: 400; color: var(--pg-secondary); font-size: 0.625rem; }
.pg-pl-panel-new { position: absolute; right: 0.375rem; top: 0.375rem; font-style: normal; padding: 0.0625rem 0.25rem; border-radius: 0.25rem; background: var(--pg-lime); color: #131517; font-size: 0.5rem; font-weight: 700; }
.pg-pl-steps { margin-top: 5rem; text-align: left; }
.pg-pl-steps h2 { font-family: var(--pg-grotesk); font-weight: 700; text-transform: uppercase; font-size: 2rem; letter-spacing: -0.03em; text-align: center; }
.pg-pl-steps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-top: 2rem; }
@media (max-width: 1023px) { .pg-pl-steps-grid { grid-template-columns: 1fr; } }
.pg-pl-steps-grid article { padding: 1.5rem; border: 1px solid var(--pg-line); border-radius: 1rem; background: var(--pg-surface); }
.pg-pl-steps-grid h3 { margin-top: 0.875rem; font-size: 1.0625rem; font-weight: 600; }
.pg-pl-steps-grid p { margin-top: 0.375rem; font-size: 0.875rem; line-height: 1.35rem; color: var(--pg-secondary); }

/* ---- Contests ------------------------------------------------------------- */
.pg-contest { padding-top: 0; }
.pg-ct-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.875rem 1.5rem; border-bottom: 1px solid var(--pg-line); }
.pg-ct-crumb { font-size: 0.875rem; color: var(--pg-secondary); }
.pg-ct-crumb span { color: #fff; }
.pg-ct-tabs { display: flex; gap: 1.25rem; }
.pg-ct-tabs button { border: 0; background: none; padding: 0.25rem 0; color: var(--pg-secondary); font-size: 0.9375rem; font-weight: 500; border-bottom: 2px solid transparent; }
.pg-ct-tabs button[data-active] { color: #fff; border-bottom-color: #fff; }
.pg-ct-tabs button[data-accent] { color: var(--pg-lime); }
.pg-ct-panel {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; margin-top: 2rem;
  padding: 2rem; border: 1px solid var(--pg-line); border-radius: 1.25rem;
  background: radial-gradient(90% 120% at 100% 0%, rgba(120, 96, 40, 0.4), transparent 62%), var(--pg-surface);
}
@media (max-width: 1023px) { .pg-ct-panel { grid-template-columns: 1fr; } }
.pg-ct-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pg-ct-badges span { height: 1.5rem; display: inline-flex; align-items: center; padding-inline: 0.625rem; border-radius: 0.375rem; background: #2a2d31; font-size: 0.75rem; }
.pg-ct-copy h1 { margin-top: 1rem; font-family: var(--pg-grotesk); font-weight: 700; text-transform: uppercase; font-size: 2.25rem; letter-spacing: -0.03em; color: #d9c48b; }
.pg-ct-copy p { margin-top: 0.875rem; font-size: 0.9375rem; line-height: 1.5rem; color: var(--pg-secondary); }
.pg-ct-copy .pg-btn { margin-top: 1.25rem; }
.pg-ct-art { position: relative; height: 15rem; }
.pg-ct-frame { position: absolute; top: 3rem; border-radius: 0.375rem; overflow: hidden; border: 2px solid #3f8f8f; }
.pg-ct-frame[data-i="0"] { left: 0; width: 9rem; height: 6rem; }
.pg-ct-frame[data-i="1"] { left: 8rem; width: 13.5rem; height: 7.5rem; top: 2.5rem; z-index: 2; }
.pg-ct-frame[data-i="2"] { left: 22rem; width: 9rem; height: 6rem; }
.pg-ct-frame img { width: 100%; height: 100%; object-fit: cover; }
.pg-ct-viewer { position: absolute; padding: 0.25rem 0.5rem; border-radius: 9999px; background: #4a4d51; font-size: 0.6875rem; }
.pg-ct-viewer[data-i="0"] { left: 8rem; top: 0.5rem; }
.pg-ct-viewer[data-i="1"] { left: 4rem; top: 11rem; }
.pg-ct-viewer[data-i="2"] { left: 24rem; top: 11rem; }
.pg-ct-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; margin-top: 2.5rem; }
@media (max-width: 1023px) { .pg-ct-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pg-ct-film figure { aspect-ratio: 16 / 10; border-radius: 0.5rem; overflow: hidden; background: var(--pg-card); }
.pg-ct-film img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s; }
.pg-ct-film:hover img { transform: scale(1.04); }
.pg-ct-film p { margin-top: 0.625rem; font-size: 0.8125rem; }
.pg-ct-film strong { font-weight: 600; }
.pg-ct-film span { color: var(--pg-secondary); }

/* ---- Cinema Studio shell -------------------------------------------------- */
.cs {
  --cs-page: #0f1113; --cs-rail: #141618; --cs-line: #ffffff14; --cs-lime: #d1fe17; --cs-secondary: #898a8b;
  display: grid; grid-template-columns: 15rem 1fr; min-height: 100vh;
  background: var(--cs-page); color: #fff; font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
}
.cs *, .cs *::before, .cs *::after { box-sizing: border-box; }
.cs p { margin: 0; }
.cs a { color: inherit; text-decoration: none; }
.cs button { font: inherit; color: inherit; cursor: pointer; }
.cs svg { width: 1.125rem; height: 1.125rem; flex: none; }
@media (max-width: 900px) { .cs { grid-template-columns: 1fr; } .cs-rail { display: none; } }
.cs-rail { display: flex; flex-direction: column; gap: 0.75rem; padding: 0.75rem; background: var(--cs-rail); border-right: 1px solid var(--cs-line); }
.cs-switch { display: flex; align-items: center; gap: 0.5rem; }
.cs-product {
  flex: 1; display: inline-flex; align-items: center; gap: 0.5rem; height: 2.5rem; padding-inline: 0.625rem;
  border: 1px solid var(--cs-line); border-radius: 0.75rem; background: #1c1e21; font-size: 0.875rem; font-weight: 600;
}
.cs-product-mark { display: grid; place-items: center; width: 1.375rem; height: 1.375rem; border-radius: 0.375rem; background: var(--cs-lime); color: #131517; font-family: "Space Grotesk", sans-serif; font-size: 0.75rem; font-weight: 700; }
.cs-chev { margin-left: auto; width: 0.875rem; height: 0.875rem; color: var(--cs-secondary); }
.cs-collapse { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border: 0; border-radius: 0.5rem; background: transparent; color: var(--cs-secondary); }
.cs-collapse:hover { background: #ffffff0d; color: #fff; }
.cs-nav { display: flex; flex-direction: column; gap: 0.125rem; }
.cs-nav button {
  display: flex; align-items: center; gap: 0.625rem; width: 100%; height: 2.25rem; padding-inline: 0.5rem;
  border: 0; border-radius: 0.5rem; background: transparent; font-size: 0.875rem; text-align: left;
}
.cs-nav button:hover { background: #ffffff0d; }
.cs-nav button[data-active] { background: #23262a; }
.cs-nav-icon { display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 0.375rem; }
.cs-nav-icon[data-icon="home"] { background: #2a3f2a; color: #8fe08f; }
.cs-nav-icon[data-icon="elements"] { background: #1f3350; color: #7fb2ff; }
.cs-nav-icon[data-icon="heart"] { background: #4a2036; color: #ff8ec0; }
.cs-nav-icon[data-icon="community"] { background: #3a3320; color: #e6c46a; }
.cs-nav-icon[data-icon="academy"] { background: #203f36; color: #6fd8b0; }
.cs-nav-icon svg { width: 0.875rem; height: 0.875rem; }
.cs-section { padding-inline: 0.5rem; font-size: 0.75rem; color: var(--cs-secondary); }
.cs-festival { display: flex; align-items: center; gap: 0.5rem; padding: 0.375rem 0.5rem; border-radius: 0.5rem; }
.cs-festival:hover { background: #ffffff0d; }
.cs-festival-mark { width: 1.5rem; height: 1.5rem; border-radius: 0.375rem; background: linear-gradient(135deg, #d9c48b, #8a6f2e); }
.cs-festival-name { flex: 1; min-width: 0; font-size: 0.8125rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs .cs-join { padding: 0.1875rem 0.5rem; border-radius: 0.375rem; background: #fff; color: #131517; font-size: 0.75rem; font-weight: 600; }
.cs-projects-head { display: flex; align-items: center; justify-content: space-between; }
.cs-projects-tools { display: inline-flex; gap: 0.5rem; color: var(--cs-secondary); }
.cs-projects-tools svg { width: 1rem; height: 1rem; }
.cs-newproject {
  display: flex; align-items: center; gap: 0.5rem; width: 100%; height: 2.25rem; padding-inline: 0.5rem;
  border: 0; border-radius: 0.5rem; background: transparent; color: var(--cs-secondary); font-size: 0.875rem;
}
.cs-newproject:hover { background: #ffffff0d; color: #fff; }
.cs-tip { position: relative; margin-top: auto; padding: 0.875rem; border: 1px solid var(--cs-line); border-radius: 0.75rem; background: #1c1e21; }
.cs-tip-close { position: absolute; right: 0.375rem; top: 0.25rem; border: 0; background: none; color: var(--cs-secondary); font-size: 1rem; line-height: 1; }
.cs-tip-kicker { font-size: 0.6875rem; color: var(--cs-secondary); }
.cs-tip-title { margin-top: 0.25rem; font-size: 0.8125rem; font-weight: 600; line-height: 1.15rem; }
.cs-tip-art { display: block; height: 5.5rem; margin-top: 0.625rem; border-radius: 0.5rem; background: linear-gradient(135deg, #3a2f24, #1a1712); }
.cs .cs-tip-cta { display: block; margin-top: 0.625rem; padding: 0.5rem; border-radius: 0.5rem; background: #fff; color: #131517; font-size: 0.8125rem; font-weight: 600; text-align: center; }
.cs-rail-foot { display: flex; flex-direction: column; gap: 0.125rem; }
.cs-foot-link { display: flex; align-items: center; gap: 0.625rem; height: 2.25rem; padding-inline: 0.5rem; border-radius: 0.5rem; font-size: 0.875rem; }
.cs-foot-link:hover { background: #ffffff0d; }
.cs-foot-badge { margin-left: auto; padding: 0.0625rem 0.375rem; border-radius: 0.25rem; background: #ff005b; font-size: 0.625rem; font-weight: 700; }
.cs-main { padding: 1rem 1.25rem 3rem; overflow-y: auto; }
.cs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 1279px) { .cs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .cs-grid { grid-template-columns: 1fr; } }
.cs-card figure { margin: 0; aspect-ratio: 16 / 10; border-radius: 0.625rem; overflow: hidden; background: #1c1e21; }
.cs-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s; }
.cs-card:hover img { transform: scale(1.03); }
.cs-card-foot { margin-top: 0.625rem; }
.cs-card-title { font-size: 0.875rem; font-weight: 600; }
.cs-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-top: 0.25rem; font-size: 0.75rem; color: var(--cs-secondary); }
.cs-card-author { display: inline-flex; align-items: center; gap: 0.375rem; }
.cs-card-avatar { width: 1rem; height: 1rem; border-radius: 9999px; background: var(--cs-lime); }
.cs-card-stats { display: inline-flex; gap: 0.75rem; }
.cs-card-stats span { display: inline-flex; align-items: center; gap: 0.25rem; }
.cs-card-stats svg { width: 0.875rem; height: 0.875rem; }
.cs-more { display: flex; justify-content: center; margin-top: 2rem; }
.cs .cs-more-btn { display: inline-flex; align-items: center; gap: 0.5rem; height: 2.5rem; padding-inline: 1rem; border-radius: 0.625rem; background: #23262a; font-size: 0.875rem; font-weight: 600; }
.cs .cs-more-btn:hover { background: #2c3034; }

/* ---------------------------------------------------------------------------
   Enterprise (/enterprise)
   --------------------------------------------------------------------------- */
.pg-ent-hero {
  position: relative; min-height: min(46rem, 92vh); display: flex; flex-direction: column;
  align-items: center; justify-content: flex-start; padding: 4.5rem 1rem 3rem; text-align: center; overflow: hidden;
}
.pg-ent-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.pg-ent-hero > *:not(.pg-ent-hero-bg) { position: relative; z-index: 1; }
.pg-ent-crumb { font-size: 0.875rem; color: #ffffffa8; }
.pg-ent-crumb span { color: #fff; }
.pg-ent-hero h1 { margin-top: 1.75rem; max-width: 22ch; font-size: clamp(2.25rem, 5.4vw, 4rem); font-weight: 600; line-height: 1.06; letter-spacing: -0.02em; }
.pg-ent-fortune { margin-top: auto; padding-top: 5rem; display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.pg-ent-fortune img { width: 10rem; height: auto; }
.pg-ent-fortune p { max-width: 18rem; font-size: 0.9375rem; color: #ffffffcc; }

.pg-ent section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.pg-ent h2 { font-size: clamp(1.75rem, 3.4vw, 2.75rem); font-weight: 600; line-height: 1.12; letter-spacing: -0.015em; }
.pg-ent-lead { margin-top: 0.875rem; max-width: 52ch; color: #ffffffb0; line-height: 1.6; }
.pg-ent-kicker { font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.09em; color: #ffffff8c; }

.pg-ent-purpose { max-width: 46rem; }
.pg-ent-purpose p { margin-top: 1rem; color: #ffffffb0; line-height: 1.65; }
.pg-ent-purpose .pg-btn, .pg-ent-workspace .pg-btn, .pg-ent-academy .pg-btn { margin-top: 1.75rem; }

.pg-ent-clients h2 { margin-top: 0.5rem; max-width: 20ch; }
.pg-ent-client-grid { margin-top: 2.5rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: 1rem; }
.pg-ent-client { position: relative; aspect-ratio: 4 / 5; border-radius: 1rem; overflow: hidden; background: #17191b; }
.pg-ent-client-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.pg-ent-client:hover .pg-ent-client-bg { transform: scale(1.04); }
.pg-ent-client-copy { position: absolute; inset: auto 0 0 0; padding: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; background: linear-gradient(transparent, #000000d9 55%); }
.pg-ent-client-logo { width: auto; max-width: 7rem; max-height: 1.75rem; object-fit: contain; object-position: left; margin-bottom: 0.25rem; }
.pg-ent-client h3 { font-size: 0.9375rem; font-weight: 600; line-height: 1.35; }
.pg-ent-client p { font-size: 0.875rem; color: #ffffffbb; line-height: 1.5; }

.pg-ent-tabs { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pg-ent-tabs button { height: 2.375rem; padding: 0 1rem; border: 1px solid #ffffff1f; border-radius: 999px; background: transparent; color: #ffffffb0; font-size: 0.875rem; }
.pg-ent .pg-ent-tabs button[data-active] { background: #fff; color: #101214; border-color: #fff; }
.pg-ent-secure-panel { margin-top: 1.5rem; display: grid; gap: 1rem; padding: 1.5rem; border: 1px solid #ffffff14; border-radius: 1.25rem; background: #131517; }
.pg-ent-secure-art { display: block; width: 100%; aspect-ratio: 16 / 6; max-height: 24rem; object-fit: cover; border-radius: 0.875rem; background: #1d2024; }
.pg-ent-secure-panel p { font-weight: 500; }

.pg-ent-suite-body { margin-top: 2rem; display: grid; grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.pg-ent-suite-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.25rem; }
.pg-ent-suite-list button { display: flex; flex-direction: column; gap: 0.25rem; width: 100%; padding: 0.875rem 1rem; border: 0; border-radius: 0.875rem; background: transparent; text-align: left; }
.pg-ent-suite-list button:hover { background: #ffffff0a; }
.pg-ent .pg-ent-suite-list button[data-active] { background: #ffffff12; }
.pg-ent-suite-list span { font-weight: 600; }
.pg-ent-suite-list small { font-size: 0.8125rem; color: #ffffff9c; line-height: 1.45; }
.pg-ent-suite-art { display: grid; grid-template-columns: 1fr 1fr; gap: 0.625rem; padding: 1rem; border: 1px solid #ffffff14; border-radius: 1.25rem; background: #131517; }
.pg-ent-suite-art img, .pg-ent-suite-art video { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0.75rem; display: block; }
.pg-ent-suite-art > :only-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }

.pg-ent-ws-grid { margin-top: 2.25rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1rem; }
.pg-ent-ws-art { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 0.75rem; margin-bottom: 1.25rem; background: #1d2024; }
.pg-ent-ws { padding: 1.5rem; border: 1px solid #ffffff14; border-radius: 1.25rem; background: #131517; }
.pg-ent-ws h3 { font-size: 1.0625rem; font-weight: 600; }
.pg-ent-ws ul, .pg-ent-contact-copy ul { margin: 1rem 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.pg-ent-ws li, .pg-ent-contact-copy li { display: flex; gap: 0.625rem; font-size: 0.9375rem; color: #ffffffc4; line-height: 1.45; }
.pg-ent li svg { width: 1.125rem; height: 1.125rem; flex: none; margin-top: 0.125rem; color: #d1fe17; }

.pg-ent-academy p { margin-top: 0.875rem; max-width: 46ch; color: #ffffffb0; line-height: 1.6; }
.pg-ent-academy a { text-decoration: underline; }

.pg-ent-contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 2rem; align-items: start; }
.pg-ent-contact-copy .pg-ent-kicker { margin-top: 2rem; }
.pg-ent-form { padding: 1.75rem; border: 1px solid #ffffff14; border-radius: 1.25rem; background: #131517; display: flex; flex-direction: column; gap: 0.875rem; }
.pg-ent-form h3 { font-size: 1.25rem; font-weight: 600; }
.pg-ent-form > p { font-size: 0.9375rem; color: #ffffffa8; }
.pg-ent-form label { display: flex; flex-direction: column; gap: 0.375rem; font-size: 0.8125rem; color: #ffffffa8; }
.pg-ent-form input, .pg-ent-form select {
  height: 2.75rem; padding: 0 0.875rem; border: 1px solid #ffffff1f; border-radius: 0.625rem;
  background: #0f1113; color: #fff; font: inherit; font-size: 0.9375rem;
}
.pg-ent-form input:focus, .pg-ent-form select:focus { outline: none; border-color: #ffffff59; }
.pg-ent-form-foot { display: flex; gap: 0.625rem; margin-top: 0.375rem; }
.pg-ent-form-foot .pg-btn { flex: 1; }

.pg-ent-faq-list { margin-top: 2rem; display: flex; flex-direction: column; }
.pg-ent-faq-item { border-top: 1px solid #ffffff14; }
.pg-ent-faq-item:last-child { border-bottom: 1px solid #ffffff14; }
.pg-ent-faq-item button {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; width: 100%;
  padding: 1.25rem 0; border: 0; background: transparent; text-align: left; font-size: 1.0625rem; font-weight: 500;
}
.pg-ent-faq-item svg { width: 1.25rem; height: 1.25rem; flex: none; color: #ffffff8c; transition: transform 0.2s; }
.pg-ent-faq-item[data-open] svg { transform: rotate(45deg); }
.pg-ent-faq-item > p { padding-bottom: 1.375rem; max-width: 68ch; color: #ffffffab; line-height: 1.65; }

@media (max-width: 860px) {
  .pg-ent-suite-body { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------------------
   Marketing Studio (/marketing-studio)
   --------------------------------------------------------------------------- */
.ms {
  --ms-rail: 15rem;
  position: fixed; inset: 0; display: flex; overflow: hidden;
  background: #0b0d0e; color: #fff;
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
}
.ms[data-collapsed] { --ms-rail: 3.75rem; }
.ms *, .ms *::before, .ms *::after { box-sizing: border-box; }
.ms p, .ms h1, .ms h2, .ms figure { margin: 0; }
.ms a { color: inherit; text-decoration: none; }
.ms :where(button) { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
.ms :where(textarea) { font: inherit; color: inherit; background: none; border: 0; outline: none; resize: none; }
.ms svg { width: 1.125rem; height: 1.125rem; flex: none; }

.ms-rail {
  width: var(--ms-rail); flex: none; display: flex; flex-direction: column; gap: 0.25rem;
  padding: 0.75rem 0.625rem; border-right: 1px solid #ffffff14; background: #0f1113; transition: width 0.18s;
  overflow-y: auto;
}
.ms[data-collapsed] .ms-rail span, .ms[data-collapsed] .ms-section, .ms[data-collapsed] .ms-foot-link em { display: none; }
.ms-rail-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
.ms-logo { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 0.625rem; background: #d1fe17; color: #000; }
.ms-collapse { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 0.5rem; color: #ffffff8c; }
.ms-collapse:hover { background: #ffffff12; color: #fff; }
.ms-section { padding: 0.875rem 0.625rem 0.375rem; font-size: 0.75rem; color: #ffffff70; }
.ms-nav { display: flex; flex-direction: column; gap: 0.125rem; }
.ms-nav button, .ms-newproject, .ms-foot-link {
  display: flex; align-items: center; gap: 0.625rem; width: 100%; height: 2.375rem;
  padding: 0 0.625rem; border-radius: 0.625rem; color: #d5d6d8; font-size: 0.875rem; white-space: nowrap;
}
.ms-nav button:hover, .ms-newproject:hover, .ms-foot-link:hover { background: #ffffff12; color: #fff; }
.ms .ms-nav button[data-active] { background: #ffffff1a; color: #fff; }
.ms-rail-foot { margin-top: auto; padding-top: 0.75rem; display: flex; flex-direction: column; gap: 0.125rem; }
.ms-foot-link em { margin-left: auto; padding: 0.0625rem 0.375rem; border-radius: 999px; background: #ff2d78; color: #fff; font-size: 0.625rem; font-style: normal; font-weight: 700; }

.ms-main { flex: 1; min-width: 0; overflow-y: auto; }
.ms-hero { position: relative; padding: 2.5rem 1.25rem 2rem; overflow: hidden; }
.ms-hero-strip { position: absolute; inset: 0; display: flex; opacity: 0.32; }
.ms-hero-strip img { flex: 1; min-width: 0; height: 100%; object-fit: cover; }
.ms-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(#0b0d0eb3, #0b0d0e); }
.ms-hero-copy { position: relative; z-index: 1; max-width: 44rem; margin: 0 auto; text-align: center; }
.ms-hero-kicker { font-size: 0.8125rem; color: #ffffff9c; }
.ms-hero h1 { margin-top: 0.5rem; font-size: clamp(1.5rem, 3.2vw, 2.25rem); font-weight: 600; letter-spacing: -0.015em; }
.ms-composer { margin-top: 1.5rem; padding: 0.875rem; border: 1px solid #ffffff1f; border-radius: 1.125rem; background: #14171a; text-align: left; }
.ms-mode { display: inline-flex; gap: 0.125rem; padding: 0.1875rem; border-radius: 999px; background: #ffffff0f; }
.ms-mode button { height: 1.75rem; padding: 0 0.875rem; border-radius: 999px; color: #ffffff9c; font-size: 0.8125rem; }
.ms .ms-mode button[data-active] { background: #ffffff24; color: #fff; }
.ms-composer textarea { width: 100%; margin-top: 0.75rem; font-size: 0.9375rem; line-height: 1.5; }
.ms-composer textarea::placeholder { color: #ffffff70; }
.ms-composer-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: 0.75rem; flex-wrap: wrap; }
.ms-chips { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.ms-chip { display: inline-flex; align-items: center; gap: 0.375rem; height: 1.75rem; padding: 0 0.625rem; border-radius: 0.5rem; background: #ffffff12; font-size: 0.75rem; color: #d5d6d8; }
.ms-chip svg { width: 0.875rem; height: 0.875rem; }
.ms .ms-generate { display: inline-flex; align-items: center; gap: 0.375rem; height: 2.25rem; padding: 0 1rem; border-radius: 999px; background: #d1fe17; color: #000; font-weight: 600; font-size: 0.875rem; }
.ms-generate em { font-style: normal; }

.ms-explore { padding: 0 1.25rem 3rem; }
.ms-explore h2 { font-size: 1.25rem; font-weight: 600; }
.ms-tabs { margin: 1rem 0 1.25rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ms-tabs button { display: inline-flex; align-items: center; height: 2.125rem; padding: 0 0.875rem; border: 1px solid #ffffff1f; border-radius: 999px; color: #ffffffa8; font-size: 0.8125rem; }
.ms .ms-tabs button[data-active] { background: #fff; color: #000; border-color: #fff; }
.ms-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); gap: 0.625rem; }
.ms-card { position: relative; border-radius: 0.75rem; overflow: hidden; background: #ffffff0a; aspect-ratio: 3 / 4; }
.ms-card img, .ms-card video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ms-card figcaption { position: absolute; inset: auto 0 0 0; padding: 0.625rem 0.75rem; display: flex; flex-direction: column; gap: 0.125rem; background: linear-gradient(transparent, #000000cc); }
.ms-card-title { font-size: 0.8125rem; font-weight: 500; }
.ms-card-kind { font-size: 0.6875rem; color: #ffffffa0; }
.ms-empty { margin-top: 2rem; color: #ffffff8c; }

@media (max-width: 720px) { .ms { --ms-rail: 3.75rem; } .ms-rail span, .ms-section { display: none; } }

/* ---------------------------------------------------------------------------
   Supercomputer (/supercomputer)
   --------------------------------------------------------------------------- */
.sp {
  position: fixed; inset: 0; display: flex; overflow: hidden;
  background: #0b0d0e; color: #fff; font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
}
.sp *, .sp *::before, .sp *::after { box-sizing: border-box; }
.sp p, .sp h1, .sp figure { margin: 0; }
.sp a { color: inherit; text-decoration: none; }
.sp :where(button) { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
.sp :where(input) { font: inherit; color: inherit; background: none; border: 0; outline: none; }
.sp svg { width: 1.125rem; height: 1.125rem; flex: none; }
.sp kbd { margin-left: auto; padding: 0.0625rem 0.375rem; border-radius: 0.3125rem; background: #ffffff12; font: inherit; font-size: 0.6875rem; color: #ffffff8c; }

.sp-rail { width: 15.5rem; flex: none; display: flex; flex-direction: column; gap: 0.125rem; padding: 0.75rem 0.625rem; border-right: 1px solid #ffffff14; background: #0f1113; overflow-y: auto; }
.sp-switch { display: flex; align-items: center; gap: 0.375rem; margin-bottom: 0.75rem; }
.sp-product { display: flex; align-items: center; gap: 0.5rem; flex: 1; min-width: 0; height: 2.375rem; padding: 0 0.5rem; border: 1px solid #ffffff1f; border-radius: 0.75rem; font-size: 0.875rem; font-weight: 500; }
.sp-product-mark { display: grid; place-items: center; width: 1.625rem; height: 1.625rem; border-radius: 0.5rem; background: #d1fe17; color: #000; }
.sp-product-mark svg { width: 0.9375rem; height: 0.9375rem; }
.sp .sp-chev { width: 0.875rem; height: 0.875rem; margin-left: auto; color: #ffffff8c; }
.sp-collapse { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 0.5rem; color: #ffffff8c; }
.sp-collapse:hover { background: #ffffff12; color: #fff; }
.sp-newchat, .sp-navbtn, .sp-nav button, .sp-foot-link {
  display: flex; align-items: center; gap: 0.625rem; width: 100%; height: 2.375rem;
  padding: 0 0.625rem; border-radius: 0.625rem; color: #d5d6d8; font-size: 0.875rem; white-space: nowrap;
}
.sp-newchat { border: 1px solid #ffffff1f; margin-bottom: 0.375rem; font-weight: 500; color: #fff; }
.sp-newchat:hover, .sp-navbtn:hover, .sp-nav button:hover, .sp-foot-link:hover { background: #ffffff12; color: #fff; }
.sp-section { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 0.875rem 0.625rem 0.375rem; font-size: 0.75rem; color: #ffffff70; }
.sp-section-static { display: block; }
.sp-nav { display: flex; flex-direction: column; gap: 0.125rem; }
.sp-empty { padding: 0.5rem 0.625rem; font-size: 0.8125rem; color: #ffffff70; line-height: 1.5; }
.sp-tip { position: relative; margin-top: 1rem; padding: 0.875rem; border: 1px solid #ffffff14; border-radius: 0.875rem; background: #14171a; }
.sp-tip-close { position: absolute; top: 0.5rem; right: 0.625rem; color: #ffffff8c; font-size: 1rem; line-height: 1; }
.sp-tip-kicker { font-size: 0.75rem; color: #ffffff8c; }
.sp-tip-title { margin-top: 0.25rem; font-size: 0.8125rem; font-weight: 500; line-height: 1.4; }
.sp-tip-art { display: block; margin: 0.75rem 0; height: 4.5rem; border-radius: 0.5rem; background: linear-gradient(135deg, #2a2f36, #444c56); }
.sp .sp-tip-cta { display: block; height: 2rem; line-height: 2rem; border-radius: 0.5rem; background: #ffffff1f; color: #fff; text-align: center; font-size: 0.8125rem; font-weight: 500; }
.sp-rail-foot { margin-top: auto; padding-top: 0.75rem; display: flex; flex-direction: column; gap: 0.125rem; }
.sp-foot-link em { margin-left: auto; padding: 0.0625rem 0.375rem; border-radius: 999px; background: #ff2d78; color: #fff; font-size: 0.625rem; font-style: normal; font-weight: 700; }

.sp-main { flex: 1; min-width: 0; overflow-y: auto; padding: 2.5rem 1.5rem 9rem; }
.sp-heading { max-width: 46rem; margin: 0 auto; text-align: center; font-size: clamp(1.125rem, 2.1vw, 1.5rem); font-weight: 700; text-transform: uppercase; letter-spacing: 0.01em; line-height: 1.3; }
.sp-tabs { margin: 1.5rem auto 1.75rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.sp-tabs button { display: inline-flex; align-items: center; gap: 0.375rem; height: 2.125rem; padding: 0 0.875rem; border: 1px solid #ffffff1f; border-radius: 999px; color: #ffffffa8; font-size: 0.8125rem; }
.sp-tabs button svg { width: 0.9375rem; height: 0.9375rem; }
.sp .sp-tabs button[data-active] { background: #ffffff1f; color: #fff; }
.sp-grid { max-width: 66rem; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); gap: 0.625rem; }
.sp-card-media { aspect-ratio: 432 / 253; border-radius: 0.625rem; overflow: hidden; background: #ffffff0a; }
.sp-card-media img, .sp-card-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.sp-card figcaption { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; height: 1.75rem; margin-top: 0.625rem; }
.sp-card-title { display: inline-flex; align-items: center; gap: 0.5rem; min-width: 0; font-size: 0.875rem; font-weight: 500; }
.sp-card-title > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-card-ico { display: grid; place-items: center; width: 1.75rem; height: 1.75rem; flex: none; border-radius: 0.5rem; background: #ffffff14; }
.sp-card-ico svg { width: 0.875rem; height: 0.875rem; }
.sp-card-kind { display: inline-flex; align-items: center; gap: 0.25rem; flex: none; font-size: 0.75rem; color: #ffffff8c; }
.sp-card-kind svg { width: 0.8125rem; height: 0.8125rem; }
.sp-none { margin-top: 2rem; text-align: center; color: #ffffff8c; }

.sp-ask {
  position: absolute; left: 50%; bottom: 1.25rem; transform: translateX(-50%);
  width: min(46rem, calc(100% - 18.5rem)); display: flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0.5rem 0.5rem 0.625rem; border: 1px solid #ffffff1f; border-radius: 1.125rem;
  background: #1b1f24e6; backdrop-filter: blur(12px); box-shadow: 0 12px 32px #00000066;
}
.sp-ask input { flex: 1; min-width: 0; font-size: 0.9375rem; }
.sp-ask input::placeholder { color: #ffffff70; }
.sp-ask-plus { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 999px; background: #ffffff14; }
.sp-ask-mode { display: inline-flex; align-items: center; gap: 0.375rem; height: 2rem; padding: 0 0.625rem; border-radius: 999px; background: #ffffff0f; font-size: 0.8125rem; color: #d5d6d8; }
.sp-ask-mode em { font-style: normal; color: #d1fe17; font-weight: 600; }
.sp-ask-mode-alt { background: transparent; color: #ffffff9c; }
.sp .sp-ask-send { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 999px; background: #d1fe17; color: #000; }

@media (max-width: 860px) {
  .sp-rail { display: none; }
  .sp-ask { width: calc(100% - 2rem); }
}
