:root {
  --bg-color: #030305;
  --surface-color: rgba(255, 255, 255, 0.02);
  --surface-color-hover: rgba(255, 255, 255, 0.05);
  --border-color: rgba(255, 255, 255, 0.08);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent-color: #6366f1;
  --accent-gradient: linear-gradient(135deg, #818cf8 0%, #c084fc 100%);
  --glow-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* All clickable controls: skip the 300ms tap delay on touch devices and
   suppress the gray tap highlight that makes buttons "stick" visually. */
button,
a,
[role="button"] {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* On touch-only devices, :hover state stays "stuck" on the last-tapped
   element until the user taps elsewhere. Disable hover-induced transforms
   so buttons don't look frozen mid-animation after a tap. */
@media (hover: none) {
  .primary-btn:hover,
  .carousel-arrow:hover,
  .carousel-arrow--prev:hover,
  .carousel-arrow--next:hover,
  .carousel-dot:hover,
  .copy-btn:hover,
  .zoom-btn:hover,
  .meta-prompt-btn:hover,
  .scroll-top-btn:hover,
  .premium-back-btn:hover,
  .nav-link:hover,
  .theme-btn:hover,
  .carousel-prompt-btn:hover {
    transform: none !important;
  }
  /* Cancel the lift on the meta-prompt icon and the carousel-info hover too */
  .meta-prompt-btn:hover .meta-prompt-btn__icon { transform: none !important; }
}

body {
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Dynamic animated background */
body::before {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.06) 0%, rgba(0,0,0,0) 40%),
              radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.04) 0%, rgba(0,0,0,0) 40%);
  z-index: -1;
  pointer-events: none;
  animation: bgPulse 15s ease-in-out infinite alternate;
}

@keyframes bgPulse {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.1) translate(-2%, 2%); }
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: var(--accent-gradient);
  width: 0%;
  z-index: 9999;
  transition: width 0.1s ease-out;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

.app-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
  padding-top: 6rem;
  min-height: 100vh;
}

/* ============================================================
   SITE HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(3, 3, 5, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

body.light-theme .site-header {
  background: rgba(248, 250, 252, 0.7);
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

.site-header__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.85rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.3px;
  color: var(--text-main);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.site-brand:hover { opacity: 0.85; }

.site-brand i { color: #c084fc; }

.site-nav {
  display: flex;
  gap: 0.25rem;
  padding: 0.3rem;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

body.light-theme .site-nav {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.06);
}

.nav-link {
  border: none;
  background: transparent;
  color: var(--text-muted);
  padding: 0.55rem 1.1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: color 0.25s ease, background 0.4s ease, box-shadow 0.4s ease, transform 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
}

.nav-link:hover { color: var(--text-main); }

.nav-link.is-active {
  background: var(--accent-gradient);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.35);
}

.nav-link.is-active:hover { color: #ffffff; transform: translateY(-1px); }

.site-actions {
  display: flex;
  gap: 0.25rem;
  padding: 0.3rem;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

body.light-theme .site-actions {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.06);
}

.site-actions .theme-btn {
  width: 36px;
  height: 36px;
}

/* Views Management */
.view {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.view.active-view {
  display: block;
  opacity: 1;
}

@keyframes slideExitLeft {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(-100px); }
}
@keyframes slideEnterRight {
  from { opacity: 0; transform: translateX(100px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideExitRight {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(100px); }
}
@keyframes slideEnterLeft {
  from { opacity: 0; transform: translateX(-100px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Ultra premium glass panel */
.glass-panel {
  background: var(--surface-color);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  position: relative;
}

.title-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  line-height: 1.2;
}

/* Dashboard */
.dashboard-header {
  text-align: center;
  margin: 3rem 0 4rem;
}

.dashboard-header h1 {
  font-size: 4.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -2px;
}

.dashboard-header p {
  color: var(--text-muted);
  font-size: 1.3rem;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Tutorial Section */
.tutorial-section {
  padding: 3rem;
  margin-bottom: 4rem;
  background: rgba(99, 102, 241, 0.05);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-left: 4px solid var(--accent-color);
  box-shadow: inset 0 0 40px rgba(99, 102, 241, 0.05);
}

.tutorial-header {
  text-align: center;
  margin-bottom: 3rem;
}

.tutorial-header h2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.tutorial-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.tutorial-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.tutorial-step {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.step-icon {
  width: 56px;
  height: 56px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 20px rgba(99, 102, 241, 0.05);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tutorial-step:hover .step-icon {
  transform: translateY(-5px) scale(1.05);
  box-shadow: inset 0 0 20px rgba(99, 102, 241, 0.2), 0 10px 20px rgba(99, 102, 241, 0.1);
}

.step-content h3 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  color: #fff;
}

.step-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.5rem;
}

/* Animated Cards */
.app-card {
  padding: 2.5rem;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

/* Animated Border Gradient trick */
.app-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 2px;
  background: var(--accent-gradient);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.app-card:hover {
  transform: translateY(-8px) scale(1.02);
  background: var(--surface-color-hover);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), var(--glow-shadow);
}

.app-card:hover::before {
  opacity: 1;
}

.app-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 20px rgba(255,255,255,0.02);
  transition: all 0.5s ease;
}

.app-card:hover .app-card-icon {
  transform: scale(1.15) rotate(10deg);
  box-shadow: inset 0 0 20px rgba(255,255,255,0.1);
}

.app-card h3 {
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.app-card p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.app-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #818cf8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* App Details Premium Button */
.premium-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--text-main);
  background: var(--surface-color);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 0.6rem 1.5rem;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.premium-back-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: all 0.5s ease;
}

.premium-back-btn:hover {
  transform: translateX(-5px);
  border-color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 10px 25px rgba(168, 85, 247, 0.2);
}

.premium-back-btn:hover i {
  transform: translateX(-4px);
}

.premium-back-btn:hover::before {
  left: 200%;
}

.premium-back-btn i {
  transition: transform 0.3s ease;
}

.details-header {
  margin-bottom: 4rem;
  padding: 3rem;
}

.details-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.details-title-row h1 {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 0.5rem;
}

.details-title-row p {
  color: var(--text-muted);
  font-size: 1.2rem;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--accent-gradient);
  color: white;
  padding: 1rem 2rem;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(129, 140, 248, 0.3);
  /* Eliminate the 300ms click delay on touch devices and prevent the
     browser from interpreting taps as anything other than a click. */
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* Hover effect only on devices that actually support hover. On touch
   devices the :hover state otherwise stays "stuck" after a tap, making
   the button look frozen until you tap somewhere else. */
@media (hover: hover) {
  .primary-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 20px 40px rgba(129, 140, 248, 0.5);
  }
}

/* Elegant Timeline / Prompts Section */
.section-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: white;
}

.prompts-container {
  position: relative;
  padding-left: 3.5rem;
  padding-bottom: 2rem;
}

/* The Glowing Timeline Line perfectly aligned */
.prompts-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
  transform: translateX(-50%);
}

.prompts-line-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: var(--accent-gradient);
  border-radius: 4px;
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.6);
  transition: height 0.4s ease-out;
}

.prompt-item {
  position: relative;
  margin-bottom: 4rem;
  /* Starting state for Scroll Reveal */
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform-origin: left center;
}

.prompt-item.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.prompt-item:last-child {
  margin-bottom: 0;
}

.prompt-number {
  position: absolute;
  left: -3.5rem;
  top: 10px;
  width: 44px;
  height: 44px;
  background: var(--bg-color);
  border: 4px solid var(--surface-color-hover);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-muted);
  box-shadow: 0 0 0 0 rgba(168, 85, 247, 0);
  transition: all 0.5s ease;
  z-index: 2;
  transform: translateX(-50%);
}

.prompt-item.is-active .prompt-number {
  border-color: #c084fc;
  color: #c084fc;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
  transform: translateX(-50%) scale(1.1);
}

.prompt-content {
  padding: 2.5rem;
}

/* Hover effect on individual prompts */
.prompt-content:hover {
  transform: translateX(10px);
  border-color: rgba(168, 85, 247, 0.3);
}

.prompt-content h4 {
  color: #c084fc;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
  font-weight: 800;
}

.prompt-text-block {
  background: rgba(0, 0, 0, 0.3);
  padding: 1.5rem 2rem;
  border-radius: 16px;
  border-left: 4px solid #818cf8;
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #cbd5e1;
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.2);
}

/* Optional prompt metadata: section title, date/screenshot chips,
   resulting commit and session notes (used by chains that include them) */
.prompt-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.prompt-topline h4 {
  margin-bottom: 0;
}

.prompt-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.prompt-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.prompt-chip i,
.prompt-chip svg {
  width: 13px;
  height: 13px;
}

.prompt-chip--shot {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.08);
  border-color: rgba(251, 191, 36, 0.35);
}

.prompt-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1.25rem;
  line-height: 1.35;
}

.prompt-commit {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.25rem;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.07);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #34d399;
}

.prompt-commit i,
.prompt-commit svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.prompt-commit code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}

.prompt-note {
  margin-top: 1rem;
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.92rem;
  line-height: 1.6;
}

.session-break {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 4rem;
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.9rem;
}

.session-break i,
.session-break svg {
  flex-shrink: 0;
  opacity: 0.7;
}

.session-break::after {
  content: '';
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, var(--border-color), transparent);
}

.empty-state {
  text-align: center;
  padding: 5rem 2rem;
  color: var(--text-muted);
  font-size: 1.2rem;
}

/* ============================================================
   INFOGRAFÍAS — CTA Banner (dashboard)
   ============================================================ */
.infografias-cta {
  position: relative;
  margin-top: 5rem;
  padding: 3.5rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  overflow: hidden;
  background: rgba(99, 102, 241, 0.04);
  border: 1px solid rgba(168, 85, 247, 0.2);
  cursor: default;
}

body.light-theme .infografias-cta {
  background: rgba(99, 102, 241, 0.04);
  border-color: rgba(168, 85, 247, 0.18);
}

.infografias-cta__bg {
  --accent-1: #818cf8;
  --accent-2: #c084fc;
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, color-mix(in srgb, var(--accent-1) 25%, transparent) 0%, transparent 35%),
    radial-gradient(circle at 82% 80%, color-mix(in srgb, var(--accent-2) 22%, transparent) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

.infografias-cta__content,
.infografias-cta__preview {
  position: relative;
  z-index: 1;
}

.infografias-cta__content h2 {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -1.2px;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.infografias-cta__content p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 480px;
}

.infografias-cta__content .primary-btn i {
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.infografias-cta__content .primary-btn:hover i {
  transform: translateX(4px);
}

/* Stacked tilted preview cards */
.infografias-cta__preview {
  position: relative;
  height: 320px;
  perspective: 1200px;
}

.cta-preview-card {
  --idx: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 180px;
  aspect-ratio: 9/16;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow:
    0 25px 60px rgba(0,0,0,0.45),
    0 0 0 1px rgba(255,255,255,0.05) inset,
    0 0 40px color-mix(in srgb, var(--slide-accent, #818cf8) 25%, transparent);
  transform-origin: center center;
  transform:
    translate(-50%, -50%)
    translateX(calc((var(--idx) - 1) * 60px))
    translateY(calc((var(--idx) - 1) * 8px))
    rotate(calc((var(--idx) - 1) * 8deg));
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.6s ease;
  z-index: 1;
}

.cta-preview-card:nth-child(2) { z-index: 3; }
.cta-preview-card:nth-child(1),
.cta-preview-card:nth-child(3) { z-index: 2; }

body.light-theme .cta-preview-card {
  border-color: rgba(0,0,0,0.08);
  box-shadow:
    0 25px 50px rgba(0,0,0,0.18),
    0 0 0 1px rgba(255,255,255,0.6) inset,
    0 0 40px color-mix(in srgb, var(--slide-accent, #818cf8) 22%, transparent);
}

.infografias-cta:hover .cta-preview-card {
  transform:
    translate(-50%, -50%)
    translateX(calc((var(--idx) - 1) * 80px))
    translateY(calc((var(--idx) - 1) * 12px))
    rotate(calc((var(--idx) - 1) * 11deg));
}

.cta-preview-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cta-preview-card__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, transparent 40%, transparent 60%, rgba(255,255,255,0.05) 100%);
  pointer-events: none;
}

/* ============================================================
   INFOGRAFÍAS — Coverflow Carousel (own view)
   ============================================================ */
.infografias-header {
  text-align: center;
  margin-bottom: 4rem;
}

.infografias-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #c084fc;
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.25);
  margin-bottom: 1.5rem;
}

body.light-theme .infografias-eyebrow {
  background: rgba(168, 85, 247, 0.08);
  color: #7c3aed;
}

.infografias-title {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.infografias-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

/* The Stage */
.carousel-stage {
  position: relative;
  /* Stage height computed to fit a 9:16 slide of fixed width plus breathing room for shadow/glow */
  height: calc(320px * 16 / 9 + 100px);
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1800px;
  overflow: visible;
  margin-bottom: 2.5rem;
}

.carousel-track {
  position: relative;
  width: 320px;
  /* Lock to 9:16 ratio so images render with no top/bottom cropping */
  height: calc(320px * 16 / 9);
  transform-style: preserve-3d;
  cursor: grab;
  /* Allow vertical scrolling while still capturing horizontal swipes */
  touch-action: pan-y;
}

.carousel-track.is-dragging {
  cursor: grabbing;
}

/* Slides positioned via --offset variable */
.carousel-slide {
  --offset: 0;
  --abs-offset: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 320px;
  height: 100%;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.6s ease,
              filter 0.6s ease;
  transform-style: preserve-3d;
  transform-origin: center center;
  transform:
    translateX(calc(var(--offset) * 88%))
    translateZ(calc(var(--abs-offset) * -200px))
    rotateY(calc(var(--offset) * -28deg))
    scale(calc(1 - var(--abs-offset) * 0.06));
  opacity: calc(1 - var(--abs-offset) * 0.32);
  filter: blur(calc(var(--abs-offset) * 1.4px)) brightness(calc(1 - var(--abs-offset) * 0.18));
  z-index: calc(100 - var(--abs-offset));
  pointer-events: auto;
}

.carousel-slide.is-far {
  pointer-events: none;
}

.carousel-slide__inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 20px 60px rgba(0,0,0,0.5),
    0 0 0 1px rgba(255,255,255,0.04) inset;
  transition: box-shadow 0.5s ease, border-color 0.5s ease;
}

body.light-theme .carousel-slide__inner {
  background: rgba(255,255,255,0.7);
  border-color: rgba(0,0,0,0.06);
  box-shadow:
    0 20px 50px rgba(0,0,0,0.12),
    0 0 0 1px rgba(255,255,255,0.5) inset;
}

.carousel-slide.is-active .carousel-slide__inner {
  border-color: rgba(255,255,255,0.18);
  box-shadow:
    0 30px 80px rgba(0,0,0,0.6),
    0 0 0 1px rgba(255,255,255,0.06) inset,
    0 0 60px var(--slide-accent, rgba(168, 85, 247, 0.25));
}

body.light-theme .carousel-slide.is-active .carousel-slide__inner {
  box-shadow:
    0 30px 70px rgba(0,0,0,0.18),
    0 0 0 1px rgba(255,255,255,0.6) inset,
    0 0 60px color-mix(in srgb, var(--slide-accent, #818cf8) 40%, transparent);
}

.carousel-slide__inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.carousel-slide.is-active .carousel-slide__inner img {
  transform: scale(1.02);
}

.carousel-slide__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg,
    transparent 0%,
    transparent 40%,
    rgba(255,255,255,0.18) 50%,
    transparent 60%,
    transparent 100%);
  background-size: 200% 100%;
  background-position: 200% 0;
  pointer-events: none;
  mix-blend-mode: overlay;
  transition: background-position 0.9s ease;
}

.carousel-slide.is-active .carousel-slide__inner:hover .carousel-slide__shine {
  background-position: -50% 0;
}

.carousel-slide__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.7rem;
  border-radius: 30px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: rgba(0,0,0,0.55);
  color: #fff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.18);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.carousel-slide.is-active .carousel-slide__badge {
  opacity: 1;
  transform: translateY(0);
}

.carousel-slide__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 1.2rem 1.2rem;
  background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0));
  color: #fff;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}

.carousel-slide.is-active .carousel-slide__overlay {
  opacity: 1;
  transform: translateY(0);
}

.carousel-slide__title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  display: block;
}

/* Arrows */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.carousel-arrow:hover {
  background: rgba(99, 102, 241, 0.25);
  border-color: rgba(168, 85, 247, 0.45);
  box-shadow: 0 14px 36px rgba(0,0,0,0.5), 0 0 26px rgba(168, 85, 247, 0.35);
  color: #fff;
}

.carousel-arrow--prev {
  left: 1.5rem;
}

.carousel-arrow--prev:hover { transform: translateY(-50%) translateX(-4px); }

.carousel-arrow--next {
  right: 1.5rem;
}

.carousel-arrow--next:hover { transform: translateY(-50%) translateX(4px); }

body.light-theme .carousel-arrow {
  background: rgba(255,255,255,0.85);
  border-color: rgba(0,0,0,0.08);
  color: #1f2937;
  box-shadow: 0 10px 28px rgba(0,0,0,0.12);
}

body.light-theme .carousel-arrow:hover {
  background: #fff;
  border-color: rgba(99, 102, 241, 0.4);
  color: #6366f1;
}

/* Meta info area below carousel */
.carousel-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 0 1rem;
  margin-bottom: 2rem;
}

.carousel-info {
  flex: 1;
  min-width: 280px;
}

.carousel-info.is-animating h3,
.carousel-info.is-animating p,
.carousel-info.is-animating .carousel-chip {
  animation: infoSlideIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.carousel-info.is-animating p { animation-delay: 0.05s; }
.carousel-info.is-animating .carousel-chip { animation-delay: 0.1s; }

@keyframes infoSlideIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.carousel-info h3 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 0.4rem;
  line-height: 1.15;
}

.carousel-info p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.5;
  margin-bottom: 0.9rem;
}

.carousel-chip {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--chip-accent, #c084fc);
  background: color-mix(in srgb, var(--chip-accent, #c084fc) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--chip-accent, #c084fc) 35%, transparent);
}

.carousel-prompt-btn {
  position: relative;
  overflow: hidden;
}

.carousel-prompt-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: translateX(-100%);
  transition: transform 0.7s ease;
}

.carousel-prompt-btn:hover::after {
  transform: translateX(100%);
}

/* Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.18);
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

body.light-theme .carousel-dot {
  background: rgba(0,0,0,0.18);
}

.carousel-dot:hover {
  background: rgba(255,255,255,0.4);
  transform: scale(1.3);
}

.carousel-dot.is-active {
  background: var(--accent-gradient);
  width: 28px;
  border-radius: 6px;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.5);
}

/* ============================================================
   PROMPT MODAL
   ============================================================ */
.prompt-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.prompt-modal.is-open {
  display: flex;
  animation: modalFadeIn 0.3s ease forwards;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.prompt-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 3, 5, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

body.light-theme .prompt-modal__backdrop {
  background: rgba(15, 23, 42, 0.45);
}

.prompt-modal__panel {
  position: relative;
  width: min(1320px, 100%);
  max-height: 90vh;
  border-radius: 28px;
  overflow: hidden;
  background: rgba(15, 17, 25, 0.92);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 40px 100px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04) inset;
  transform: scale(0.92) translateY(30px);
  opacity: 0;
  animation: modalPanelIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.05s forwards;
}

body.light-theme .prompt-modal__panel {
  background: rgba(255,255,255,0.95);
  border-color: rgba(0,0,0,0.08);
}

@keyframes modalPanelIn {
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.prompt-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: all 0.3s ease;
}

.prompt-modal__close:hover {
  transform: rotate(90deg) scale(1.05);
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

body.light-theme .prompt-modal__close {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.08);
}

.prompt-modal__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-height: 90vh;
}

.prompt-modal__figure {
  position: relative;
  margin: 0;
  background: #000;
  overflow: hidden;
  min-height: 300px;
}

.prompt-modal__figure::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(99,102,241,0.15), transparent 60%);
  pointer-events: none;
  z-index: 2;
}

.prompt-modal__image-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  cursor: grab;
  /* Disable native gestures so JS can handle pinch-to-zoom and drag-to-pan
     directly. Body scroll lives in a separate area, so blocking gestures
     here doesn't trap the user. */
  touch-action: none;
  user-select: none;
}

.prompt-modal__image-wrap[data-zoom="1"] {
  cursor: zoom-in;
}

.prompt-modal__image-wrap.is-panning {
  cursor: grabbing;
}

.prompt-modal__image-wrap img {
  display: block;
  width: 100%;
  height: auto;
  transform-origin: 0 0;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  -webkit-user-drag: none;
  pointer-events: none;
}

.prompt-modal__image-wrap.is-panning img {
  transition: none;
}

/* Zoom Controls */
.prompt-modal__zoom-controls {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.55rem;
  border-radius: 40px;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
  z-index: 3;
  opacity: 0;
  transform: translateX(-50%) translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.prompt-modal.is-open .prompt-modal__zoom-controls {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  transition-delay: 0.3s;
}

.zoom-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: rgba(255,255,255,0.06);
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.zoom-btn:hover:not(:disabled) {
  background: rgba(168, 85, 247, 0.18);
  border-color: rgba(168, 85, 247, 0.45);
  color: #fff;
  transform: scale(1.05);
}

.zoom-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.zoom-btn--reset {
  border-left: 1px solid rgba(255,255,255,0.1);
  margin-left: 0.2rem;
  padding-left: 0;
  border-radius: 50%;
}

/* Visual divider between fullscreen button and zoom controls */
.zoom-divider {
  width: 1px;
  height: 22px;
  background: rgba(255,255,255,0.12);
  margin: 0 0.15rem;
}

body.light-theme .zoom-divider {
  background: rgba(0,0,0,0.1);
}

.zoom-level {
  font-size: 0.78rem;
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: var(--text-main);
  min-width: 48px;
  text-align: center;
  letter-spacing: 0.5px;
}

body.light-theme .prompt-modal__zoom-controls {
  background: rgba(255,255,255,0.85);
  border-color: rgba(0,0,0,0.08);
}

body.light-theme .zoom-btn {
  background: rgba(0,0,0,0.04);
  color: #1f2937;
}

body.light-theme .zoom-btn:hover:not(:disabled) {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.4);
  color: #6366f1;
}

.prompt-modal__zoom-hint {
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  border-radius: 30px;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: rgba(255,255,255,0.85);
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.prompt-modal.is-open .prompt-modal__zoom-hint {
  opacity: 1;
  transition-delay: 0.5s;
}

.prompt-modal__image-wrap[data-zoom="zoomed"] ~ .prompt-modal__zoom-hint {
  opacity: 0;
  transition-delay: 0s;
}

body.light-theme .prompt-modal__zoom-hint {
  background: rgba(255,255,255,0.85);
  border-color: rgba(0,0,0,0.08);
  color: #1f2937;
}

.prompt-modal__body {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
  max-height: 90vh;
}

.prompt-modal__body h2 {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  margin: 0.4rem 0 0.2rem;
}

.prompt-modal__subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.prompt-modal__prompt-wrapper {
  margin-top: 0.8rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.prompt-modal__prompt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #c084fc;
  margin-bottom: 0.7rem;
}

.prompt-modal__prompt-header > span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

body.light-theme .prompt-modal__prompt-header {
  color: #6366f1;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 30px;
  border: 1px solid rgba(168, 85, 247, 0.3);
  background: rgba(168, 85, 247, 0.08);
  color: #c084fc;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.copy-btn:hover {
  background: rgba(168, 85, 247, 0.18);
  border-color: rgba(168, 85, 247, 0.5);
  transform: translateY(-1px);
}

.copy-btn.is-success {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.5);
  color: #6ee7b7;
}

body.light-theme .copy-btn {
  color: #6366f1;
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.25);
}

.prompt-modal__text {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255,255,255,0.06);
  border-left: 4px solid #818cf8;
  border-radius: 16px;
  padding: 1.4rem 1.6rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.92rem;
  line-height: 1.7;
  color: #cbd5e1;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-y: auto;
  flex: 1;
  margin: 0;
  min-height: 0;
}

body.light-theme .prompt-modal__text {
  background: rgba(241, 245, 249, 0.7);
  color: #334155;
  border-color: rgba(0,0,0,0.04);
  border-left-color: #6366f1;
}

body.modal-open {
  overflow: hidden;
}

/* ============================================================
   PROMPT MODAL — Fullscreen image mode
   ============================================================ */
.prompt-modal.is-fullscreen {
  padding: 0;
}

.prompt-modal.is-fullscreen .prompt-modal__panel {
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  border-radius: 0;
  border: none;
}

.prompt-modal.is-fullscreen .prompt-modal__layout {
  grid-template-columns: 1fr;
  max-height: 100vh;
  height: 100vh;
}

.prompt-modal.is-fullscreen .prompt-modal__body {
  display: none;
}

.prompt-modal.is-fullscreen .prompt-modal__figure {
  height: 100vh;
  min-height: 100vh;
}

/* Make zoom controls float above the image more prominently in fullscreen */
.prompt-modal.is-fullscreen .prompt-modal__zoom-controls {
  bottom: 1.5rem;
}

.prompt-modal.is-fullscreen .prompt-modal__close {
  top: 1.25rem;
  right: 1.25rem;
}

/* Minimalist scrollbars: hide native scroll UI inside modals while keeping scroll behavior */
.prompt-modal__body,
.prompt-modal__text,
.info-modal__panel {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE / old Edge */
}

.prompt-modal__body::-webkit-scrollbar,
.prompt-modal__text::-webkit-scrollbar,
.info-modal__panel::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

/* ============================================================
   META-PROMPT BUTTON (in infografias header)
   ============================================================ */
.meta-prompt-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.75rem;
  padding: 0.65rem 1.1rem 0.65rem 0.65rem;
  border-radius: 50px;
  border: 1px solid rgba(168, 85, 247, 0.28);
  background: rgba(168, 85, 247, 0.06);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.1px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275),
              border-color 0.3s ease,
              background 0.3s ease,
              box-shadow 0.4s ease;
}

.meta-prompt-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.16), transparent);
  transform: translateX(-100%);
  transition: transform 0.7s ease;
  pointer-events: none;
}

.meta-prompt-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(168, 85, 247, 0.55);
  background: rgba(168, 85, 247, 0.12);
  box-shadow: 0 12px 30px rgba(168, 85, 247, 0.18), 0 0 0 1px rgba(168, 85, 247, 0.18) inset;
}

.meta-prompt-btn:hover::after {
  transform: translateX(100%);
}

.meta-prompt-btn:hover .meta-prompt-btn__icon {
  transform: rotate(-12deg) scale(1.05);
}

.meta-prompt-btn__icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #818cf8 0%, #c084fc 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.35);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.meta-prompt-btn__label {
  white-space: nowrap;
}

body.light-theme .meta-prompt-btn {
  background: rgba(168, 85, 247, 0.04);
  border-color: rgba(168, 85, 247, 0.22);
}

body.light-theme .meta-prompt-btn:hover {
  background: rgba(168, 85, 247, 0.08);
  border-color: rgba(168, 85, 247, 0.45);
}

/* ============================================================
   INFO MODAL (Meta-prompt explanation)
   ============================================================ */
.info-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
}

.info-modal.is-open {
  display: flex;
  animation: modalFadeIn 0.3s ease forwards;
}

.info-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 3, 5, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

body.light-theme .info-modal__backdrop {
  background: rgba(15, 23, 42, 0.45);
}

.info-modal__panel {
  position: relative;
  width: min(720px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 28px;
  padding: 3rem;
  background: rgba(15, 17, 25, 0.95);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 40px 100px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04) inset;
  transform: scale(0.92) translateY(30px);
  opacity: 0;
  animation: modalPanelIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.05s forwards;
}

body.light-theme .info-modal__panel {
  background: rgba(255,255,255,0.97);
  border-color: rgba(0,0,0,0.08);
}

.info-modal__hero {
  text-align: center;
  margin-bottom: 2.5rem;
}

.info-modal__hero-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.5rem;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(129, 140, 248, 0.2) 0%, rgba(192, 132, 252, 0.2) 100%);
  border: 1px solid rgba(168, 85, 247, 0.28);
  color: #c084fc;
  position: relative;
  box-shadow: 0 0 40px rgba(168, 85, 247, 0.2);
}

.info-modal__hero-icon::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 28px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.25) 0%, transparent 60%);
  opacity: 0.7;
  pointer-events: none;
  z-index: -1;
}

.info-modal__eyebrow {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #c084fc;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.25);
  margin-bottom: 1rem;
}

.info-modal__panel h2 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  margin: 0.4rem 0 1rem;
}

.info-modal__lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 540px;
  margin: 0 auto;
}

.info-modal__lead strong {
  color: var(--text-main);
  font-weight: 700;
  background: linear-gradient(135deg, #818cf8 0%, #c084fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.info-modal__steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.info-step {
  display: flex;
  gap: 1.2rem;
  padding: 1.3rem 1.5rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease, background 0.3s ease;
}

.info-step:hover {
  transform: translateX(4px);
  border-color: rgba(168, 85, 247, 0.25);
  background: rgba(168, 85, 247, 0.04);
}

body.light-theme .info-step {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.05);
}

body.light-theme .info-step:hover {
  background: rgba(168, 85, 247, 0.05);
  border-color: rgba(168, 85, 247, 0.2);
}

.info-step__num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  background: linear-gradient(135deg, #818cf8 0%, #c084fc 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
}

.info-step__body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  letter-spacing: -0.2px;
  color: var(--text-main);
}

.info-step__body p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
}

.info-modal__example {
  margin-bottom: 1.5rem;
}

.info-modal__example-header {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #c084fc;
  margin-bottom: 0.7rem;
}

body.light-theme .info-modal__example-header {
  color: #6366f1;
}

.info-modal__example-text {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255,255,255,0.06);
  border-left: 4px solid #818cf8;
  border-radius: 14px;
  padding: 1.2rem 1.4rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.85rem;
  line-height: 1.65;
  color: #cbd5e1;
  white-space: pre-wrap;
  word-wrap: break-word;
  margin: 0;
}

body.light-theme .info-modal__example-text {
  background: rgba(241, 245, 249, 0.7);
  color: #334155;
  border-color: rgba(0, 0, 0, 0.04);
  border-left-color: #6366f1;
}

/* "And even simpler" tip callout — different accent (cyan/emerald) to differentiate from the main example */
.info-modal__tip {
  position: relative;
  margin-bottom: 1.5rem;
  padding: 1.4rem 1.5rem 1.3rem;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.06) 0%, rgba(34, 211, 238, 0.05) 100%);
  border: 1px solid rgba(34, 211, 238, 0.22);
  overflow: hidden;
}

.info-modal__tip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 0%, rgba(34, 211, 238, 0.12) 0%, transparent 45%);
  pointer-events: none;
}

body.light-theme .info-modal__tip {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(34, 211, 238, 0.04) 100%);
  border-color: rgba(34, 211, 238, 0.25);
}

.info-modal__tip-header {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #22d3ee;
  margin-bottom: 0.85rem;
  padding: 0.3rem 0.75rem;
  border-radius: 30px;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.25);
}

body.light-theme .info-modal__tip-header {
  color: #0891b2;
  background: rgba(34, 211, 238, 0.08);
}

.info-modal__tip-text {
  position: relative;
  color: var(--text-main);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 0.85rem;
}

.info-modal__tip-text--muted {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0.85rem 0 0;
}

.info-modal__tip-example {
  position: relative;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-left: 4px solid #22d3ee;
  border-radius: 12px;
  padding: 1rem 1.2rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #e2f2f7;
  white-space: pre-wrap;
  word-wrap: break-word;
  margin: 0;
}

body.light-theme .info-modal__tip-example {
  background: rgba(236, 254, 255, 0.7);
  color: #0f4c5c;
  border-color: rgba(34, 211, 238, 0.18);
  border-left-color: #0891b2;
}

.info-modal__footer {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border-radius: 50px;
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.2);
  color: #c084fc;
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

body.light-theme .info-modal__footer {
  color: #6366f1;
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.2);
}

@media (max-width: 768px) {
  .app-container { padding: 1rem; }
  
  .dashboard-header { margin: 2rem 0; }
  .dashboard-header h1 { font-size: 2.5rem; }
  .dashboard-header p { font-size: 1rem; }
  
  .cards-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .app-card { padding: 1.5rem; }
  
  .details-header { padding: 1.5rem; margin-bottom: 2rem; }
  .details-title-row h1 { font-size: 2rem; }
  .primary-btn { padding: 0.8rem 1.2rem; font-size: 1rem; width: 100%; justify-content: center; }
  
  .section-title { font-size: 1.5rem; margin-bottom: 2rem; }
  
  .prompts-container { padding-left: 2.5rem; }
  .prompt-number { left: -2.5rem; width: 32px; height: 32px; font-size: 0.9rem; border-width: 3px; }
  
  .prompt-content { padding: 1.2rem; }
  .prompt-content h4 { font-size: 0.8rem; margin-bottom: 1rem; }
  .prompt-topline { margin-bottom: 0.8rem; }
  .prompt-topline h4 { margin-bottom: 0; }
  .prompt-title { font-size: 1.05rem; margin-bottom: 1rem; }
  .prompt-chip { font-size: 0.7rem; padding: 0.25rem 0.6rem; }
  .prompt-commit { padding: 0.6rem 0.8rem; }
  .prompt-commit code { font-size: 0.72rem; }
  .session-break { margin-bottom: 2.5rem; font-size: 0.8rem; }
  .prompt-text-block { 
     padding: 1rem; 
     font-size: 0.85rem; 
     overflow-wrap: break-word;
     word-wrap: break-word;
  }
  
  .theme-toggle-panel {
     bottom: auto;
     top: 1rem;
     right: 1rem;
     transform: scale(0.9);
  }

  .scroll-top-btn {
     bottom: 1rem;
     right: 1rem;
     transform: scale(0.9) translateY(20px);
  }

  .scroll-top-btn.visible {
     transform: scale(0.9) translateY(0);
  }

  /* CTA banner responsive */
  .infografias-cta {
    grid-template-columns: 1fr;
    padding: 2rem;
    gap: 2rem;
    margin-top: 3rem;
  }
  .infografias-cta__content h2 { font-size: 1.8rem; }
  .infografias-cta__content p { font-size: 0.95rem; }
  .infografias-cta__preview { height: 240px; }
  .cta-preview-card { width: 130px; }

  /* ============================================================
     CAROUSEL — Mobile rewrite
     Drop the 3D coverflow entirely. Show a single flat card at a
     time with a smooth fade. All other slides hidden. Arrows live
     below the card so they never overlap the image.
     ============================================================ */
  .infografias-header {
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
    text-align: center;
  }
  .infografias-title { font-size: 1.85rem; line-height: 1.15; }
  .infografias-subtitle { font-size: 0.92rem; }

  /* Stage uses grid: track on top, arrows side-by-side below */
  .carousel-stage {
    height: auto;
    perspective: none;
    width: 100%;
    margin: 0 auto 1.25rem;
    padding: 0;
    overflow: visible;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "track track"
      "prev  next";
    column-gap: 1rem;
    row-gap: 0.85rem;
    align-items: center;
    justify-items: center;
  }
  .carousel-track {
    grid-area: track;
    width: min(78vw, 300px);
    max-width: 300px;
    height: auto;
    aspect-ratio: 9 / 16;
    margin: 0 auto;
    transform-style: flat;
    cursor: default;
    touch-action: pan-y;
  }
  /* Stack every slide at the same spot; only the active one is visible */
  .carousel-slide {
    width: 100%;
    height: 100%;
    transform: scale(0.96);
    opacity: 0;
    filter: none;
    pointer-events: none;
    transition: opacity 0.32s ease, transform 0.32s ease;
  }
  .carousel-slide.is-active {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
    z-index: 5;
  }
  .carousel-slide.is-far { display: block; }
  .carousel-slide__inner { border-radius: 20px; }
  /* Always show the title overlay on mobile so users know what they're looking at */
  .carousel-slide__overlay { opacity: 1; transform: none; padding: 1.2rem 1rem 1rem; }
  .carousel-slide__title { font-size: 1rem; }
  .carousel-slide__badge { opacity: 1; transform: none; top: 12px; left: 12px; }

  /* Arrows: laid out by grid areas, no absolute positioning */
  .carousel-arrow {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    width: 46px;
    height: 46px;
    transform: none;
  }
  .carousel-arrow--prev { grid-area: prev; justify-self: end; }
  .carousel-arrow--next { grid-area: next; justify-self: start; }
  .carousel-arrow--prev:hover,
  .carousel-arrow--next:hover { transform: scale(1.05); }

  /* ===== Meta info (title, subtitle, chip + CTA) ===== */
  .carousel-meta {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 0.85rem;
    padding: 0 1rem;
    margin-bottom: 1.25rem;
  }
  .carousel-info { min-width: 0; }
  .carousel-info h3 { font-size: 1.35rem; line-height: 1.2; margin-bottom: 0.3rem; }
  .carousel-info p { font-size: 0.9rem; line-height: 1.5; margin-bottom: 0.7rem; }
  .carousel-chip { font-size: 0.65rem; padding: 0.3rem 0.75rem; letter-spacing: 1.2px; }
  .carousel-actions { display: flex; justify-content: center; }
  .carousel-prompt-btn { width: 100%; max-width: 320px; }

  .carousel-dots { margin-bottom: 2rem; gap: 0.4rem; }
  .carousel-dot { width: 8px; height: 8px; }
  .carousel-dot.is-active { width: 22px; }

  /* Site header responsive */
  .site-header__inner { padding: 0.6rem 0.8rem; gap: 0.5rem; }
  .site-brand span { display: none; }
  .nav-link { padding: 0.5rem 0.85rem; font-size: 0.78rem; }
  .nav-link span { display: inline; }
  .site-actions .theme-btn { width: 32px; height: 32px; }
  .app-container { padding-top: 5rem; }

  /* ============================================================
     PROMPT MODAL — Mobile rewrite
     Edge-to-edge sheet. Image takes full viewport width preserving
     its 9:16 aspect (no letterboxing). Title + prompt below scroll
     naturally. Floating close button stays in place.
     ============================================================ */
  .prompt-modal { padding: 0; align-items: stretch; }
  .prompt-modal__panel {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
    border: none;
    overflow: hidden;
  }
  /* Split the viewport 50/50: image on top, prompt body on the bottom.
     Neither the panel nor the layout scroll — only the body, internally,
     so the prompt text is always reachable while the image stays put. */
  .prompt-modal__layout {
    display: flex;
    flex-direction: column;
    grid-template-columns: 1fr;
    max-height: none;
    height: 100%;
    overflow: hidden;
  }

  /* Image — top half */
  .prompt-modal__figure {
    flex: 0 0 50%;
    width: 100%;
    height: 50%;
    min-height: 0;
    max-height: none;
    margin: 0;
    background: #0a0a14;
  }
  .prompt-modal__figure::after { display: none; }
  .prompt-modal__image-wrap {
    position: absolute;
    inset: 0;
  }
  .prompt-modal__image-wrap img {
    width: 100%;
    height: 100%;
    /* contain: full infographic visible with letterbox at the sides
       (the image is portrait 9:16 inside a wider-than-tall container) */
    object-fit: contain;
  }

  /* Body — bottom half. Internal scroll handles long prompts. */
  .prompt-modal__body {
    flex: 0 0 50%;
    height: 50%;
    padding: 1.25rem 1.1rem 1.5rem;
    max-height: none;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    gap: 0.7rem;
  }
  .prompt-modal__body h2 {
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    margin: 0.2rem 0 0.1rem;
  }
  .prompt-modal__subtitle { font-size: 0.93rem; line-height: 1.55; }
  .prompt-modal__prompt-wrapper { margin-top: 0.5rem; }
  .prompt-modal__prompt-header {
    font-size: 0.68rem;
    letter-spacing: 1px;
    margin-bottom: 0.55rem;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .copy-btn { padding: 0.45rem 0.85rem; font-size: 0.72rem; }
  .prompt-modal__text {
    font-size: 0.82rem;
    padding: 1rem 1.1rem;
    line-height: 1.6;
    border-radius: 14px;
    overflow: visible;
    flex: none;
    max-height: none;
  }

  /* Close button — sibling of the scrolling layout, pinned to panel.
     Sits over the image area which is dark, so it's always visible. */
  .prompt-modal__close {
    position: absolute;
    width: 40px;
    height: 40px;
    top: max(0.6rem, env(safe-area-inset-top, 0.6rem));
    right: 0.6rem;
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    z-index: 100;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  }

  /* Zoom controls visible on mobile so users can amplify the image.
     Made larger and more tappable. */
  .prompt-modal__zoom-hint { display: none; }
  .prompt-modal__zoom-controls {
    bottom: 0.6rem;
    padding: 0.35rem 0.5rem;
    gap: 0.3rem;
  }
  .prompt-modal__zoom-controls .zoom-btn {
    width: 36px;
    height: 36px;
  }
  .prompt-modal__zoom-controls .zoom-level {
    font-size: 0.72rem;
    min-width: 44px;
  }
  /* Hide the fullscreen button on mobile (full-bleed already) */
  .prompt-modal__zoom-controls #fullscreenBtn,
  .prompt-modal__zoom-controls .zoom-divider:first-of-type { display: none; }

  /* Fullscreen mode is irrelevant on mobile (modal already fills) */
  .prompt-modal.is-fullscreen .prompt-modal__figure {
    aspect-ratio: 9 / 16;
    width: 100%;
    height: auto;
    min-height: 0;
  }
}

@media (max-width: 480px) {
  .site-brand { display: none; }
  .nav-link { padding: 0.45rem 0.7rem; font-size: 0.72rem; gap: 0.3rem; }

  /* Carousel — slightly tighter on narrow phones */
  .infografias-title { font-size: 1.55rem; }
  .infografias-subtitle { font-size: 0.85rem; }
  .carousel-track { width: min(82vw, 260px); }
  .carousel-arrow { width: 40px; height: 40px; }
  .carousel-info h3 { font-size: 1.2rem; }
  .carousel-info p { font-size: 0.85rem; }

  /* Modal — slightly tighter on narrow phones (image still full width) */
  .prompt-modal__body { padding: 1.3rem 0.95rem 1.6rem; }
  .prompt-modal__body h2 { font-size: 1.35rem; }
  .prompt-modal__subtitle { font-size: 0.88rem; }
  .prompt-modal__text { font-size: 0.78rem; padding: 0.9rem 0.95rem; }
}

@media (max-width: 768px) {
  /* Meta-prompt button responsive */
  .meta-prompt-btn { font-size: 0.78rem; padding: 0.5rem 0.9rem 0.5rem 0.5rem; gap: 0.5rem; }
  .meta-prompt-btn__icon { width: 28px; height: 28px; flex-shrink: 0; }
  .meta-prompt-btn__label { white-space: normal; text-align: left; line-height: 1.25; }

  /* Info modal — outer becomes the scroll container. We strip the
     scale-up animation on the panel (only fade) so it doesn't create a
     containing block for the position:fixed close button: that way the
     close stays anchored to the viewport regardless of scroll. */
  .info-modal {
    padding: 0;
    align-items: flex-start;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }
  .info-modal__panel {
    padding: 3.5rem 1.25rem 2.5rem;
    height: auto;
    max-height: none;
    min-height: 100%;
    width: 100%;
    border-radius: 0;
    overflow: visible;
    transform: none;
    animation: modalFadeIn 0.35s ease forwards;
    opacity: 1;
  }
  .info-modal__panel h2 { font-size: 1.35rem; line-height: 1.2; }
  .info-modal__lead { font-size: 0.92rem; line-height: 1.6; }
  .info-modal__hero { margin-bottom: 1.8rem; }
  .info-modal__hero-icon { width: 60px; height: 60px; margin-bottom: 1.2rem; }
  .info-modal__eyebrow { font-size: 0.62rem; padding: 0.3rem 0.7rem; letter-spacing: 1.2px; }
  .info-step { padding: 1rem 1.1rem; gap: 0.9rem; }
  .info-step__num { width: 30px; height: 30px; font-size: 0.85rem; }
  .info-step__body h3 { font-size: 0.95rem; }
  .info-step__body p { font-size: 0.85rem; line-height: 1.5; }
  .info-modal__example-text {
    font-size: 0.74rem;
    padding: 0.95rem 1rem;
    line-height: 1.55;
    border-radius: 12px;
    word-break: break-word;
  }
  .info-modal__tip { padding: 1.1rem 1.1rem 1rem; }
  .info-modal__tip-text { font-size: 0.88rem; }
  .info-modal__tip-text--muted { font-size: 0.8rem; }
  .info-modal__tip-example {
    font-size: 0.78rem;
    padding: 0.85rem 0.95rem;
    word-break: break-word;
  }
  .info-modal__footer { font-size: 0.78rem; padding: 0.55rem 0.9rem; }
  .info-modal .prompt-modal__close {
    position: fixed;
    width: 40px;
    height: 40px;
    top: max(0.6rem, env(safe-area-inset-top, 0.6rem));
    right: 0.6rem;
    background: rgba(15, 23, 42, 0.7);
    border-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--text-main);
    z-index: 100;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  }
  body.light-theme .info-modal .prompt-modal__close {
    background: rgba(255, 255, 255, 0.85);
    color: #1f2937;
    border-color: rgba(0, 0, 0, 0.06);
  }
}

@media (max-width: 480px) {
  .info-modal__panel { padding: 1.75rem 1rem 2.25rem; }
  .info-modal__panel h2 { font-size: 1.2rem; }
  .info-modal__lead { font-size: 0.88rem; }
  .info-step { padding: 0.85rem 0.95rem; gap: 0.75rem; }
  .info-modal__example-text { font-size: 0.7rem; padding: 0.85rem 0.9rem; }
  .info-modal__tip-example { font-size: 0.72rem; padding: 0.75rem 0.85rem; }
}

/* --- LIGHT THEME --- */
body.light-theme {
  --bg-color: #f8fafc;
  --surface-color: rgba(255, 255, 255, 0.6);
  --surface-color-hover: rgba(255, 255, 255, 0.9);
  --border-color: rgba(0, 0, 0, 0.08);
  --text-main: #0f172a;
  --text-muted: #475569;
  --glow-shadow: 0 0 20px rgba(99, 102, 241, 0.15);
}

body.light-theme::before {
  background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.08) 0%, rgba(255,255,255,0) 40%),
              radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.06) 0%, rgba(255,255,255,0) 40%);
}

body.light-theme .glass-panel {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

body.light-theme .section-title {
  color: var(--text-main);
}

body.light-theme .prompt-text-block {
    background: rgba(255, 255, 255, 0.6);
    color: #334155;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.03);
    border-left: 4px solid #6366f1;
}

body.light-theme .prompt-content h4 {
    color: #6366f1;
}

body.light-theme .prompt-chip {
    background: rgba(0, 0, 0, 0.04);
}

body.light-theme .prompt-chip--shot {
    color: #b45309;
    background: rgba(180, 83, 9, 0.07);
    border-color: rgba(180, 83, 9, 0.3);
}

body.light-theme .prompt-commit {
    color: #059669;
    background: rgba(5, 150, 105, 0.06);
    border-color: rgba(5, 150, 105, 0.25);
}

body.light-theme .app-card-icon {
    background: rgba(0, 0, 0, 0.03);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.02);
}

body.light-theme .tutorial-section {
    background: rgba(99, 102, 241, 0.03);
}

body.light-theme .step-content h3 {
    color: var(--text-main);
}

body.light-theme .prompts-line {
    background: rgba(0,0,0,0.1);
}

body.light-theme .premium-back-btn {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(0,0,0,0.1);
  color: #0f172a;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

body.light-theme .premium-back-btn:hover {
  border-color: rgba(99, 102, 241, 0.5);
  background: rgba(255, 255, 255, 1);
}

/* Theme buttons (live inside .site-actions in the header) */
.theme-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.theme-btn:hover {
    color: var(--text-main);
}

.theme-btn.active {
    background: var(--accent-gradient);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
}

/* Scroll To Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.scroll-top-btn.visible {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: var(--surface-color-hover);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3), var(--glow-shadow);
    transform: translateY(-5px);
}

body.light-theme .scroll-top-btn:hover {
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1), var(--glow-shadow);
}

/* Floating Prompt Navigator */
.prompt-navigator {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px) scale(0.9);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    border-radius: 40px;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.1);
}

body.light-theme .prompt-navigator {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1), 0 0 0 1px rgba(0,0,0,0.05);
}

.prompt-navigator.visible {
    transform: translateX(-50%) translateY(0) scale(1);
    opacity: 1;
    pointer-events: all;
}

.nav-indicator {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
    min-width: 70px;
    text-align: center;
    letter-spacing: 1px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.nav-btn:hover:not(:disabled) {
    background: rgba(255,255,255,0.1);
    color: var(--accent-color);
}

body.light-theme .nav-btn:hover:not(:disabled) {
    background: rgba(0,0,0,0.05);
}

.nav-btn:disabled {
    opacity: 0.2;
    cursor: default;
}

@media (max-width: 768px) {
    .prompt-navigator {
        bottom: 1rem;
    }
}
