/* === Design Tokens === */
:root {
  --bg: #16191B;
  --amber: #D4A853;
  --text: #F5F2ED;
  --muted: rgba(245, 242, 237, 0.5);
  --dim: rgba(245, 242, 237, 0.15);
  --font: 'Space Grotesk', system-ui, sans-serif;
  --slide-transition: 400ms ease-out;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Structural grid overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    repeating-linear-gradient(
      to right,
      rgba(245, 242, 237, 0.02) 0px,
      rgba(245, 242, 237, 0.02) 1px,
      transparent 1px,
      transparent 40px
    ),
    repeating-linear-gradient(
      to bottom,
      rgba(245, 242, 237, 0.02) 0px,
      rgba(245, 242, 237, 0.02) 1px,
      transparent 1px,
      transparent 40px
    );
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 0%, rgba(0,0,0,0.15) 60%, rgba(0,0,0,0.05) 100%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 0%, rgba(0,0,0,0.15) 60%, rgba(0,0,0,0.05) 100%);
  pointer-events: none;
  z-index: 0;
}

/* Film grain texture */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  opacity: 0.035;
  pointer-events: none;
  z-index: 0;
}

/* === Slide Container === */
.deck {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3rem 6rem 4rem;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
  overflow-y: auto;
}

.slide--active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

/* --- Transitions --- */
.slide--enter {
  animation: slideEnter var(--slide-transition) forwards;
}

.slide--exit-left {
  animation: slideExitLeft var(--slide-transition) forwards;
  z-index: 0;
}

.slide--exit-right {
  animation: slideExitRight var(--slide-transition) forwards;
  z-index: 0;
}

.slide--enter-right {
  transform: translateX(60px);
  opacity: 0;
}

.slide--enter-left {
  transform: translateX(-60px);
  opacity: 0;
}

@keyframes slideEnter {
  from { opacity: 0; transform: translateX(0); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideExitLeft {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(-60px); }
}

@keyframes slideExitRight {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(60px); }
}

/* === Typography === */
.slide__title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0;
  color: var(--text);
}

.slide__subtitle {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 400;
  color: var(--muted);
  margin-bottom: 2rem;
  max-width: 48rem;
  text-align: center;
}

/* === Title Slide === */
.title-slide {
  text-align: center;
  overflow: hidden;
  justify-content: center;
  gap: 0.75rem;
}

.hero-wordmark svg { width: clamp(220px, 40vw, 420px); height: auto; color: var(--text); }
.tagline-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.title-slide .tagline {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  max-width: 40rem;
}

/* === Chapter Divider Slide === */
.chapter-divider {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6rem;
}

.chapter-divider__ghost {
  display: none;
}

.chapter-divider__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  max-width: 56rem;
}

.chapter-divider__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.chapter-divider__label {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--amber);
  opacity: 0.7;
}

.chapter-divider__title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 44rem;
}

.chapter-divider__subtitle {
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  font-weight: 400;
  color: var(--muted);
  max-width: 34rem;
  text-align: center;
  line-height: 1.5;
}

/* Chapter divider title + subtitle appear instantly — redact-reveal handles text */
.chapter-divider__title.anim,
.chapter-divider__subtitle.anim {
  opacity: 1;
  transform: translateY(0);
  transition: none;
}

/* === Conclusion Slide === */
#conclusion {
  overflow: hidden;
}

#conclusion .scan-field {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
}

#conclusion .scan-field__origin-dot,
#conclusion .scan-field__origin-line {
  display: none;
}

.conclusion {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -40px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

.conclusion__signal {
  margin-bottom: 0.5rem;
}

.conclusion__email {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.conclusion__email:hover {
  text-decoration: underline;
}

.conclusion__links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.conclusion__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--dim);
  border-radius: 8px;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.conclusion__link:hover {
  border-color: var(--amber);
  color: var(--text);
  background: rgba(212, 168, 83, 0.05);
}

.conclusion__link svg {
  color: var(--amber);
}

/* === Chapter Bar === */
.chapter-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  height: 32px;
}

.chapter-segment {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  cursor: pointer;
}

.chapter-segment__label {
  font-family: 'Space Mono', monospace;
  font-size: 0.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.3s ease;
}

.chapter-segment--future .chapter-segment__label { color: rgba(245, 242, 237, 0.15); }
.chapter-segment--past .chapter-segment__label { color: rgba(212, 168, 83, 0.4); }
.chapter-segment--active .chapter-segment__label { color: var(--amber); }

.chapter-segment__track {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(245, 242, 237, 0.06);
}

.chapter-segment__fill {
  height: 100%;
  width: 0%;
  border-radius: 0 1px 1px 0;
  transition: width 0.4s ease-out, background 0.3s ease;
}

.chapter-segment--past .chapter-segment__fill {
  width: 100%;
  background: rgba(212, 168, 83, 0.3);
}

.chapter-segment--active .chapter-segment__fill {
  background: var(--amber);
  box-shadow: 0 0 8px rgba(212, 168, 83, 0.5);
}

.chapter-segment--future .chapter-segment__fill {
  width: 0%;
  background: transparent;
}

/* ===========================
   CLI-Specific Components
   =========================== */

/* --- Card Grid --- */
.card-grid {
  display: grid;
  gap: 1.2rem;
  max-width: 56rem;
  width: 100%;
}

.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--center { justify-content: center; }

/* --- Generic Content Card --- */
.content-card {
  padding: 1.4rem;
  border: 1px solid var(--dim);
  border-radius: 12px;
  background: rgba(245, 242, 237, 0.03);
}

.content-card__icon {
  color: var(--amber);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(212, 168, 83, 0.08);
}

.content-card__title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.content-card__desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.45;
}

/* --- Tool Card (prerequisites) --- */
.tool-card {
  padding: 1.8rem 1.4rem;
  border: 1px solid var(--dim);
  border-radius: 12px;
  background: rgba(245, 242, 237, 0.03);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.tool-card:hover {
  border-color: var(--amber);
  background: rgba(212, 168, 83, 0.05);
  transform: translateY(-2px);
}

.tool-card__logo {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tool-card__logo svg {
  width: 48px;
  height: 48px;
}

.tool-card__name {
  font-weight: 700;
  font-size: 1.1rem;
}

.tool-card__badge {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--amber);
  padding: 0.25rem 0.6rem;
  border: 1px solid rgba(212, 168, 83, 0.3);
  border-radius: 6px;
}

/* --- Command Table --- */
.cmd-table {
  width: 100%;
  max-width: 48rem;
  border-collapse: collapse;
}

.cmd-table tr {
  border-bottom: 1px solid rgba(245, 242, 237, 0.06);
}

.cmd-table tr:last-child {
  border-bottom: none;
}

.cmd-table td {
  padding: 0.6rem 0.75rem;
  vertical-align: top;
}

.cmd-table__cmd {
  font-family: 'Space Mono', monospace;
  font-size: 0.9rem;
  color: var(--amber);
  white-space: nowrap;
  width: 1%;
}

.cmd-table__desc {
  font-size: 0.9rem;
  color: var(--muted);
}

/* --- Code Block --- */
.code-block {
  font-family: 'Space Mono', monospace;
  font-size: 0.8rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(245, 242, 237, 0.08);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--amber);
  max-width: 48rem;
  width: 100%;
  line-height: 1.6;
  margin-top: 0.75rem;
}

.code-block__comment {
  color: rgba(245, 242, 237, 0.35);
}

.code-block__prompt {
  color: rgba(245, 242, 237, 0.5);
  user-select: none;
}

/* --- QR Container --- */
.qr-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.qr-container svg {
  border-radius: 12px;
}

/* --- Exercise Card --- */
.exercise-card {
  padding: 1.6rem;
  border: 1px solid var(--dim);
  border-radius: 12px;
  background: rgba(245, 242, 237, 0.03);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.exercise-card__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.exercise-card__badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--bg);
  background: var(--amber);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  white-space: nowrap;
}

.exercise-card__title {
  font-weight: 700;
  font-size: 1.1rem;
}

.exercise-card__desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

.exercise-card__tasks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: 0.25rem;
}

.exercise-card__tasks li {
  font-size: 0.85rem;
  color: var(--muted);
  padding-left: 1rem;
  position: relative;
}

.exercise-card__tasks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber);
  opacity: 0.5;
}

/* --- Concept Cards (GitHub basics) --- */
.concept-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  max-width: 52rem;
  width: 100%;
}

.concept-card {
  padding: 1.5rem;
  border: 1px solid var(--dim);
  border-radius: 12px;
  background: rgba(245, 242, 237, 0.03);
  text-align: center;
}

.concept-card__icon {
  color: var(--amber);
  margin-bottom: 0.75rem;
}

.concept-card__title {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.concept-card__desc {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
}

/* --- Agent Toggle --- */
.agent-toggle {
  max-width: 48rem;
  width: 100%;
}

.agent-toggle__tabs {
  display: flex;
  border-bottom: 1px solid var(--dim);
  margin-bottom: 1.5rem;
}

.agent-toggle__tab {
  flex: 1;
  padding: 0.75rem 1rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.agent-toggle__tab:hover {
  color: var(--text);
}

.agent-toggle__tab--active {
  color: var(--amber);
  border-bottom-color: var(--amber);
}

.agent-toggle__panel {
  border: 1px solid var(--dim);
  border-radius: 12px;
  background: rgba(245, 242, 237, 0.03);
  padding: 1.5rem;
}

.agent-toggle__badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--amber);
  margin-bottom: 1rem;
}

.agent-toggle__cmd {
  font-family: 'Space Mono', monospace;
  font-size: 0.8rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(245, 242, 237, 0.08);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--amber);
  line-height: 1.6;
}

/* --- Exercise QR --- */
.exercise-qr {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

.exercise-qr svg {
  border-radius: 8px;
  flex-shrink: 0;
}

.exercise-download {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.6rem 1.4rem;
  background: var(--amber);
  color: var(--bg);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.exercise-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(212, 168, 83, 0.3);
}

/* --- Prompt List (GitHub deploy) --- */
.prompt-list {
  max-width: 44rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.prompt-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 1.2rem;
  border: 1px solid var(--dim);
  border-radius: 10px;
  background: rgba(245, 242, 237, 0.02);
}

.prompt-item__number {
  font-family: 'Space Mono', monospace;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--amber);
  background: rgba(212, 168, 83, 0.1);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.prompt-item__code {
  font-family: 'Space Mono', monospace;
  font-size: 0.8rem;
  color: var(--amber);
  line-height: 1.5;
  padding-top: 0.2rem;
}

/* --- Steps Callout (auth, pages setup) --- */
.steps-callout {
  max-width: 44rem;
  width: 100%;
  margin-top: 1.5rem;
  padding: 1.2rem 1.5rem;
  border: 1px solid var(--dim);
  border-radius: 12px;
  background: rgba(245, 242, 237, 0.03);
}

.steps-callout__title {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--amber);
  margin-bottom: 0.75rem;
}

.steps-callout__list {
  list-style: none;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0;
}

.steps-callout__list li {
  counter-increment: step;
  font-size: 0.85rem;
  color: var(--muted);
  padding-left: 2rem;
  position: relative;
  line-height: 1.5;
}

.steps-callout__list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--amber);
  background: rgba(212, 168, 83, 0.1);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 0.1em;
}

.steps-callout__list li strong {
  color: var(--text);
  font-weight: 600;
}

/* --- Warning Callout --- */
.warning-callout {
  max-width: 44rem;
  width: 100%;
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(212, 168, 83, 0.25);
  border-radius: 10px;
  background: rgba(212, 168, 83, 0.04);
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.warning-callout svg {
  flex-shrink: 0;
  color: var(--amber);
  margin-top: 0.1rem;
}

.warning-callout div {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

.warning-callout strong {
  color: var(--text);
  font-weight: 600;
}

.warning-callout code {
  font-family: 'Space Mono', monospace;
  font-size: 0.8rem;
  color: var(--amber);
  background: rgba(0, 0, 0, 0.3);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}

/* --- Prompt Block (copyable prompt) --- */
.prompt-block {
  max-width: 44rem;
  width: 100%;
  margin-top: 0.75rem;
}

.prompt-block__code {
  position: relative;
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(245, 242, 237, 0.08);
  border-radius: 10px;
  padding: 1rem 2.75rem 1rem 1.25rem;
  color: var(--amber);
  line-height: 1.65;
}

.prompt-block__copy {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  background: rgba(245, 242, 237, 0.06);
  border: 1px solid rgba(245, 242, 237, 0.1);
  border-radius: 6px;
  padding: 0.35rem;
  cursor: pointer;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.prompt-block__copy:hover {
  color: var(--amber);
  border-color: rgba(212, 168, 83, 0.3);
  background: rgba(212, 168, 83, 0.08);
}

.prompt-block__copy--done {
  color: #6fcf97;
  border-color: rgba(111, 207, 151, 0.3);
}

/* --- Exercise Card (consistent width) --- */
.exercise-card {
  max-width: 44rem;
  width: 100%;
}

/* --- GIF Background Slide --- */
.qa-slide__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0.45;
}

/* --- Vibe Journalist Slide --- */
.vibe-journalist-slide {
  text-align: center;
  overflow: hidden;
}

.vibe-journalist__title {
  position: relative;
  z-index: 1;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.2;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.9), 0 0 60px rgba(0, 0, 0, 0.6);
}

.vibe-journalist__subtitle {
  position: relative;
  z-index: 1;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 400;
  color: var(--muted);
  margin-top: 1rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
}

/* --- Stat Row (demo slides) --- */
.stat-row {
  display: flex;
  gap: 3rem;
  justify-content: center;
  max-width: 48rem;
  width: 100%;
}

.stat-item {
  text-align: center;
}

.stat-item__number {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--amber);
  line-height: 1;
}

.stat-item__label {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.5rem;
  max-width: 10rem;
}

/* --- Database Link --- */
.database-link {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--amber);
  text-decoration: none;
  border: 1px solid rgba(212, 168, 83, 0.3);
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  transition: border-color 200ms, background 200ms;
}

.database-link:hover {
  border-color: var(--amber);
  background: rgba(212, 168, 83, 0.08);
}

/* --- Prompt Excerpt (methodology slide) --- */
.prompt-excerpt {
  max-width: 48rem;
  width: 100%;
}

.prompt-excerpt__label {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--amber);
  margin-bottom: 0.5rem;
}

.prompt-excerpt__code {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(245, 242, 237, 0.08);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  color: var(--text);
  line-height: 1.7;
  white-space: pre-wrap;
}

.prompt-excerpt__code strong {
  color: var(--amber);
  font-weight: 700;
}

/* === Responsive === */
@media (max-width: 768px) {
  .slide { padding: 2rem 1.5rem; }
  .card-grid--3 { grid-template-columns: 1fr; }
  .concept-grid { grid-template-columns: 1fr; }
  .conclusion__links { flex-direction: column; align-items: center; }
  .chapter-divider { padding: 0 2rem; }
  .exercise-qr { flex-direction: column; align-items: center; text-align: center; }
  .agent-toggle__tabs { flex-direction: column; }
  .stat-row { flex-direction: column; gap: 1.5rem; }
}

@media (max-width: 480px) {
  .slide { padding: 1.5rem 1rem; }
  .chapter-divider { padding: 0 1.5rem 2.5rem; }
}
