/* "Vibe your own": the exchange between a person and their agent, and the
 * instructions for it. */

:root {
  --bg: #06010d;
  --text: #f4f0ff;
  --muted: #a79fc4;
  --line: rgba(255, 255, 255, 0.10);
  --pink: #ff2bd6;
  --cyan: #2bf3ff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
  line-height: 1.55;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px 40px;
}

a { color: var(--pink); }
a:hover { color: var(--text); }

.eyebrow {
  margin: 0 0 10px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--pink);
}

.vibe-head {
  padding: 26px 0 34px;
}

.vibe-head h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 5.6vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.015em;
}

.lede {
  margin: 0;
  color: var(--muted);
  max-width: 64ch;
  font-size: 17px;
}

/* The exchange: the prompt on one side, the world on the other. */
.exchange {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 22px;
  align-items: start;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
  padding: 18px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.panel-label {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.panel-label.dim { color: rgba(167, 159, 196, 0.6); }

.panel-note {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--muted);
}

textarea {
  width: 100%;
  resize: vertical;
  background: #0b0518;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 14px;
  line-height: 1.5;
}

textarea:focus-visible {
  outline: none;
  border-color: rgba(255, 43, 214, 0.6);
}

button.copy {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  cursor: pointer;
}

button.copy:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.25); }
button.copy[data-done] { color: var(--pink); border-color: rgba(255, 43, 214, 0.5); }

.shot {
  border-radius: 12px;
  overflow: hidden;
  background: #0b0518;
  border: 1px solid var(--line);
  aspect-ratio: 1200 / 630;
}

.shot canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* The example prompts. */
.examples {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 0;
}

.examples-label {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

button.example {
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 16px;
  cursor: pointer;
}

button.example:hover {
  border-color: rgba(43, 243, 255, 0.5);
  color: var(--cyan);
}

/* The instructions. */
.how {
  margin-top: 54px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.how h2 {
  margin: 0 0 22px;
  font-size: 26px;
  letter-spacing: -0.01em;
}

.steps {
  margin: 0;
  padding-left: 22px;
  display: grid;
  gap: 26px;
}

.steps h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.steps p {
  margin: 0 0 10px;
  color: var(--muted);
  max-width: 66ch;
}

.cmd {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #0b0518;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  margin: 0 0 10px;
}

.cmd code {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 13px;
  color: var(--cyan);
  overflow-wrap: anywhere;
}

.cmd button {
  margin-left: auto;
  white-space: nowrap;
}

.small {
  font-size: 13px;
}

.note {
  margin-top: 30px;
  border: 1px solid rgba(43, 243, 255, 0.25);
  background: rgba(43, 243, 255, 0.05);
  border-radius: 16px;
  padding: 18px 20px;
}

.note h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--cyan);
}

.note p {
  margin: 0;
  color: var(--muted);
  max-width: 70ch;
}

@media (max-width: 860px) {
  .exchange { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 16px 32px; }
}
