.prompt-hero {
  --chat-font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.68);
  --bg: #070b14;
  --border: rgba(255, 255, 255, 0.1);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  --shadow2: 0 14px 40px rgba(0, 0, 0, 0.45);
  --radius: 22px;
  --ring-stroke: rgba(6, 11, 19, 0.78);
  --taxonomy-active-color: rgba(255, 255, 255, 0.45);

  --zs_role: #79a6ff;
  --zs_style: #53beff;
  --zs_emotion: #ff7ca5;
  --zs_rar: #f3b45f;
  --zs_selfask: #9b89ff;
  --tg_oneprompt: #6bc6ff;
  --tg_cot: #74dfc6;
  --tg_metacot: #c58eff;
  --tg_analog: #5ecfff;
  --fs_exemplar: #4ad7a4;
  --fs_exampleorder: #95f1a8;
  --fs_examplegen: #7de2a4;
  --ens_paraphrase: #a1df95;
  --ens_selfconsistency: #f5a95c;
  --ens_selfrefine: #d8f08f;
  --dec_divide: #97bcff;
  --dec_program: #71bdff;
  --dec_tree: #93b7ff;
  --sc_critique: #f57d9f;
  --sc_iter: #ff9ec4;
  --group-zero-shot: #6f8dff;
  --group-few-shot: #79dcff;
  --group-attention: #7de5ff;
  --group-thought: #68d9ff;
  --group-ensemble: #f6bb70;
  --group-syntax: #d9a6ff;
  --group-decomposition: #9a84ff;

  position: relative;
  padding: clamp(1rem, 2.2vw, 2rem);
  border-radius: 22px;
  background:
    radial-gradient(960px 440px at -8% -8%, rgba(42, 73, 170, 0.2), transparent 62%),
    radial-gradient(780px 420px at 112% 0%, rgba(52, 168, 255, 0.12), transparent 63%),
    linear-gradient(166deg, #090e18 0%, #0a111d 55%, #080e17 100%);
  overflow: hidden;
}

.prompt-hero .prompt-wrap {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.prompt-hero .prompt-copy {
  max-width: min(960px, 100%);
}

.prompt-hero h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(30px, 3.8vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.prompt-hero .prompt-sub {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: clamp(14px, 1.3vw, 17px);
  line-height: 1.42;
  max-width: 74ch;
}

.prompt-hero .prompt-demo {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow);
  padding: 18px;
  overflow: hidden;
}

.prompt-hero .prompt-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.65fr;
  gap: 18px;
  align-items: stretch;
}

.prompt-hero .composer {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.035));
  box-shadow: var(--shadow2);
  overflow: hidden;
  position: relative;
  height: 100%;
}

.prompt-hero .composerTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

.prompt-hero .chrome {
  display: flex;
  gap: 7px;
  align-items: center;
}

.prompt-hero .chrome span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

.prompt-hero .composerTitle {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.74);
  display: flex;
  align-items: center;
  gap: 10px;
}

.prompt-hero .pill {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.18);
  color: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
}

.prompt-hero .composerBody {
  padding: 14px;
  position: relative;
  transition: max-height 900ms cubic-bezier(0.2, 0.9, 0.2, 1);
  max-height: 150px;
}

.prompt-hero .composer.expanded .composerBody {
  max-height: 540px;
}

.prompt-hero .promptArea {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.22);
  border-radius: 16px;
  padding: 14px;
  position: relative;
  overflow: hidden;
}

.prompt-hero .scroll {
  max-height: 512px;
  overflow: auto;
  padding-right: 8px;
  scroll-behavior: smooth;
}

.prompt-hero .composer:not(.expanded) .scroll {
  max-height: 120px;
}

.prompt-hero .maskTop,
.prompt-hero .maskBot {
  pointer-events: none;
  position: absolute;
  left: 0;
  right: 0;
  height: 34px;
  z-index: 2;
}

.prompt-hero .maskTop {
  top: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.42), transparent);
}

.prompt-hero .maskBot {
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.42), transparent);
}

.prompt-hero .layer {
  white-space: pre-wrap;
  line-height: 1.55;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
}

.prompt-hero .seed {
  font-size: 15px;
  line-height: 1.55;
  opacity: 1;
  max-height: 220px;
  overflow: hidden;
  margin: 0;
  transition:
    opacity 420ms ease,
    filter 420ms ease,
    max-height 520ms ease,
    margin 520ms ease,
    text-decoration-color 420ms ease;
}

.prompt-hero .seed.strike {
  text-decoration-line: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(255, 255, 255, 0.7);
}

.prompt-hero .seed.gone {
  opacity: 0;
  max-height: 0;
  margin: 0;
  filter: blur(2px);
}

.prompt-hero .composer.optimizing .seed {
  opacity: 0.92;
  filter: none;
}

.prompt-hero .master {
  position: relative;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 420ms ease, transform 420ms ease;
  margin-top: 0;
}

.prompt-hero .composer.expanded .master {
  opacity: 1;
  transform: translateY(0);
  margin-top: 10px;
}

.prompt-hero .seg {
  --accent: rgba(255, 255, 255, 0.2);
  --group-accent: rgba(255, 255, 255, 0.2);
  position: relative;
  display: block;
  padding: 2px 0;
  border-radius: 12px;
  transition: background 120ms ease, box-shadow 120ms ease, color 120ms ease;
  outline: none;
}

.prompt-hero .seg:hover,
.prompt-hero .seg:focus-visible,
.prompt-hero .seg.auto {
  background:
    linear-gradient(
      90deg,
      color-mix(in srgb, var(--group-accent) 24%, rgba(255, 255, 255, 0.02)) 0%,
      color-mix(in srgb, var(--accent) 18%, rgba(255, 255, 255, 0.02)) 100%
    );
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--accent) 52%, rgba(255, 255, 255, 0.1)),
    inset 0 0 24px color-mix(in srgb, var(--group-accent) 16%, transparent);
}

.prompt-hero .seg:hover::after,
.prompt-hero .seg:focus-visible::after,
.prompt-hero .seg.auto::after {
  content: "";
  position: absolute;
  left: -10px;
  top: 6px;
  bottom: 6px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--group-accent), var(--accent));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, rgba(255, 255, 255, 0.05));
}

.prompt-hero .seg.heading {
  font-weight: 800;
  letter-spacing: 0.2px;
  margin-top: 10px;
}

.prompt-hero .seg.bullet {
  padding-left: 16px;
}

.prompt-hero .seg.bullet::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 2px;
  color: rgba(255, 255, 255, 0.55);
}

.prompt-hero .seg.sub {
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.84);
}

.prompt-hero .seg.spacer {
  height: 10px;
}

.prompt-hero .seg.hidden {
  opacity: 0;
  transform: translateY(8px);
  filter: blur(0.2px);
}

.prompt-hero .seg.shown {
  opacity: 1;
  transform: none;
  filter: none;
  transition: opacity 240ms ease, transform 240ms ease;
}

.prompt-hero .statusLine {
  margin-top: 10px;
  min-height: 18px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
}

.prompt-hero .exampleSwitch {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0.9;
  transition: opacity 160ms ease;
}

.prompt-hero .exampleSwitch:hover,
.prompt-hero .exampleSwitch:focus-within {
  opacity: 0.92;
}

.prompt-hero .exampleBtn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(226, 238, 255, 0.76);
  font-size: 10px;
  line-height: 1;
  padding: 5px 9px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.prompt-hero .exampleBtn.is-active {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.36);
  color: #fff;
}

.prompt-hero .exampleBtn:hover,
.prompt-hero .exampleBtn:focus-visible {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.92);
}

.prompt-hero .spinner {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-top-color: rgba(255, 255, 255, 0.7);
  animation: prompt-spin 1s linear 8;
  opacity: 0;
  transition: opacity 200ms ease;
}

.prompt-hero .composer.optimizing .spinner {
  opacity: 1;
}

.prompt-hero .caret {
  display: inline-block;
  width: 10px;
  height: 18px;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 3px;
  vertical-align: -3px;
  margin-left: 3px;
  animation: prompt-blink 1s steps(2, end) 8;
}

.prompt-hero .taxonomy {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03));
  box-shadow: var(--shadow2);
  overflow: hidden;
  opacity: 0;
  transform: translateX(18px);
  transition: opacity 650ms ease, transform 650ms ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.prompt-hero .taxonomy.show {
  opacity: 1;
  transform: translateX(0);
}

.prompt-hero .taxonomy-shell {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  height: 100%;
}

.prompt-hero .taxonomy-head {
  margin: 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
}

.prompt-hero .sunburst-float {
  flex: 1;
  min-height: 0;
}

.prompt-hero .sunburst-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  height: 100%;
}

.prompt-hero .sunburst-svg {
  width: min(var(--sunburst-size, 320px), 100%);
  min-width: 180px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  filter: drop-shadow(0 14px 34px rgba(3, 6, 14, 0.42));
}

.prompt-hero .sunburst-group,
.prompt-hero .sunburst-seg {
  stroke: var(--ring-stroke);
  stroke-width: 1.2;
  cursor: pointer;
  transition: opacity 180ms ease, fill-opacity 180ms ease, stroke-width 180ms ease, filter 180ms ease;
}

.prompt-hero .sunburst-group.is-inactive,
.prompt-hero .sunburst-seg.is-inactive {
  opacity: 0.25;
  filter: saturate(0.5) brightness(0.6);
}

.prompt-hero .sunburst-group.is-active,
.prompt-hero .sunburst-seg.is-active,
.prompt-hero .sunburst-seg:hover {
  opacity: 1;
  stroke-width: 2.2;
  filter: saturate(1.35);
}

.prompt-hero .sunburst-label {
  fill: rgba(244, 248, 255, 0.96);
  font-size: 9.4px;
  font-weight: 700;
  paint-order: stroke;
  stroke: rgba(8, 11, 18, 0.35);
  stroke-width: 0.5;
}

.prompt-hero .sunburst-legend {
  min-height: 40px;
  border: 1px solid rgba(137, 164, 206, 0.2);
  border-radius: 14px;
  padding: 11px;
  background: linear-gradient(180deg, rgba(14, 18, 28, 0.82), rgba(11, 14, 22, 0.9));
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.prompt-hero .sunburst-level1 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: color-mix(in srgb, var(--taxonomy-active-color) 70%, rgba(200, 214, 244, 0.85));
}

.prompt-hero .sunburst-level2 {
  font-size: 13px;
  font-weight: 650;
  min-height: 1.7em;
  color: color-mix(in srgb, var(--taxonomy-active-color) 84%, rgba(255, 255, 255, 0.96));
}

.prompt-hero .sunburst-level3 {
  font-size: 12px;
  line-height: 1.25;
  color: rgba(206, 220, 244, 0.84);
}

@keyframes prompt-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes prompt-blink {
  50% {
    opacity: 0.15;
  }
}

@media (max-width: 980px) {
  .prompt-hero .prompt-grid {
    grid-template-columns: 1fr;
  }

  .prompt-hero .taxonomy {
    transform: translateY(10px);
  }

  .prompt-hero .sunburst-svg {
    max-width: 260px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .prompt-hero * {
    animation: none !important;
    transition: none !important;
  }
}
