:root {
  /* JAMK-inspired brand colors */
  --primary: #00004d;
  --primary-light: #1a1a6e;
  --primary-dark: #000033;
  --accent: #FFD100;
  --accent-secondary: #E6007E;
  --accent-cyan: #00B4D8;
  --accent-glow: rgba(255, 209, 0, 0.12);

  /* Light mode */
  --bg: #f5f5f7;
  --bg-card: #ffffff;
  --bg-nav: #ffffff;
  --text: #00004d;
  --text-secondary: #333366;
  --text-muted: #666699;
  --border: #d8d8e8;
  --shadow: 0 2px 16px rgba(0, 0, 77, 0.06);
  --shadow-lg: 0 8px 32px rgba(0, 0, 77, 0.10);
  --tab-inactive-bg: transparent;
  --tab-active-bg: var(--primary);
  --tab-active-text: #fff;
  --timeline-line: #c8c8d8;
  --tag-bg: rgba(0, 0, 77, 0.08);
  --tag-text: var(--primary);
  --table-header-bg: var(--primary);
  --table-header-text: #fff;
  --table-row-alt: #f8f8fc;
  --risk-low: #22c55e;
  --risk-med: #f59e0b;
  --risk-high: #ef4444;
}

[data-theme="dark"] {
  --bg: #0a0a1a;
  --bg-card: #12122e;
  --bg-nav: #0e0e24;
  --text: #e8e8f0;
  --text-secondary: #a0a0c0;
  --text-muted: #7070a0;
  --border: #1e1e44;
  --shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --timeline-line: #2a2a50;
  --tag-bg: rgba(255, 209, 0, 0.1);
  --tag-text: var(--accent);
  --table-header-bg: var(--primary-dark);
  --table-row-alt: #16163a;
}

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

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
}

/* ─── HEADER ─── */
.site-header {
  background: var(--primary);
  color: #fff;
  padding: 3rem 1.5rem 1.25rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.site-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 20% 80%, rgba(255, 209, 0, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(230, 0, 126, 0.06) 0%, transparent 40%);
  pointer-events: none;
}

.site-header h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  position: relative;
}

.site-header .subtitle {
  font-size: 1rem;
  opacity: 0.9;
  margin-top: 0.5rem;
  font-weight: 400;
  position: relative;
}

.header-meta {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
  position: relative;
}

.header-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  opacity: 0.9;
}

.theme-toggle {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}

/* ─── TAB NAVIGATION ─── */
.tab-nav {
  display: flex;
  justify-content: flex-start;
  gap: 0.5rem;
  padding: 1rem 1rem 0;
  padding-left: calc((100% - 960px) / 2 + 1rem);
  background: var(--bg-nav);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 0.3s;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 0.7rem 1.5rem;
  border: none;
  background: var(--tab-inactive-bg);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px 8px 0 0;
  transition: all 0.25s ease;
  position: relative;
}

.tab-btn::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  border-radius: 3px 3px 0 0;
  transition: background 0.25s;
}

.tab-btn:hover {
  color: var(--primary);
  background: rgba(255, 209, 0, 0.1);
}

.tab-btn.active {
  color: var(--primary);
  background: var(--accent);
  font-weight: 700;
}

.tab-btn.active::after {
  background: var(--accent-secondary);
}

/* ─── MAIN CONTENT ─── */
main {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.tab-content {
  display: none;
  animation: fadeIn 0.4s ease;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── CARDS ─── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1rem 0 0.5rem;
  color: var(--text);
}

.card p,
.card li {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.card ul,
.card ol {
  padding-left: 1.25rem;
  margin: 0.5rem 0;
}

.card li {
  margin-bottom: 0.35rem;
}

/* ─── TABLES ─── */
.table-wrap {
  overflow-x: auto;
  margin: 1rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

thead th {
  background: var(--table-header-bg);
  color: var(--table-header-text);
  padding: 0.7rem 1rem;
  text-align: left;
  font-weight: 600;
}

tbody td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

tbody tr:nth-child(even) {
  background: var(--table-row-alt);
}

tbody tr:hover {
  background: var(--accent-glow);
}

/* ─── TIMELINE ─── */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0.6rem;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--timeline-line);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 1.5rem;
  padding-left: 1rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.65rem;
  top: 0.45rem;
  width: 12px;
  height: 12px;
  background: var(--primary);
  border-radius: 50%;
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--primary);
}

.timeline-item.break::before {
  background: var(--accent);
  box-shadow: 0 0 0 2px var(--accent);
}

.timeline-time {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.9rem;
}

.timeline-title {
  font-weight: 600;
  font-size: 1rem;
  margin: 0.15rem 0 0.25rem;
}

.timeline-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ─── TAGS ─── */
.tag {
  display: inline-block;
  background: var(--tag-bg);
  color: var(--tag-text);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  margin: 0.15rem 0.25rem 0.15rem 0;
}

/* ─── RISK BADGES ─── */
.risk-low {
  color: var(--risk-low);
  font-weight: 600;
}

.risk-med {
  color: var(--risk-med);
  font-weight: 600;
}

.risk-high {
  color: var(--risk-high);
  font-weight: 600;
}

/* ─── CHECKLIST ─── */
.checklist {
  list-style: none;
  padding: 0;
}

.checklist li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.checklist li::before {
  content: '☐';
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ─── KOLB CYCLE ─── */
.kolb-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1rem 0;
}

.kolb-step {
  background: var(--accent-glow);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  transition: transform 0.2s;
}

.kolb-step:hover {
  transform: scale(1.03);
}

.kolb-step .kolb-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
}

.kolb-step .kolb-label {
  font-weight: 700;
  margin: 0.3rem 0 0.2rem;
  font-size: 0.95rem;
}

.kolb-step .kolb-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ─── TEAM ─── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.team-card {
  background: var(--accent-glow);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.2rem;
  text-align: center;
}

.team-card .team-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 auto 0.5rem;
}

.team-card .team-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.team-card .team-role {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ─── FOOTER ─── */
.site-footer {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 640px) {
  .site-header h1 {
    font-size: 1.4rem;
  }

  .header-meta {
    flex-direction: column;
    gap: 0.5rem;
  }

  .tab-nav {
    gap: 0.25rem;
    padding: 0.5rem 0.5rem 0;
  }

  .tab-btn {
    padding: 0.5rem 0.8rem;
    font-size: 0.85rem;
  }

  main {
    padding: 1rem 1rem 3rem;
  }

  .card {
    padding: 1rem;
  }

  .kolb-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ─── PROMPT BLOCKS ─── */
.prompt-block {
  position: relative;
  background: #1e1e2e;
  color: #cdd6f4;
  border-radius: 10px;
  padding: 1.25rem 1rem;
  margin: 0.75rem 0;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.88rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  border: 1px solid #313244;
}

[data-theme="dark"] .prompt-block {
  background: #11111b;
  border-color: #45475a;
}

.prompt-block .prompt-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #89b4fa;
  margin-bottom: 0.5rem;
}

.copy-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cdd6f4;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.copy-btn.copied {
  background: #22c55e;
  color: #fff;
  border-color: #22c55e;
}

/* ─── DOWNLOAD LINKS ─── */
.download-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0;
}

.download-list li {
  margin-bottom: 0.5rem;
}

.download-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--accent-glow);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.download-link:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateX(4px);
}

.download-link .dl-icon {
  font-size: 1.1rem;
}

.download-link .dl-desc {
  font-weight: 400;
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-left: 0.25rem;
}

.download-link:hover .dl-desc {
  color: rgba(255, 255, 255, 0.8);
}

/* ─── PROMPT SECTION HEADING ─── */
.prompt-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin: 1.25rem 0 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ─── CHATBOT FLOATING WIDGET ─── */
.chatbot-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 77, 0.4);
  z-index: 1000;
  transition: transform 0.2s, box-shadow 0.2s;
}

.chatbot-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(0, 0, 77, 0.5);
}

.chatbot-fab-icon {
  font-size: 1.6rem;
}

.chatbot-fab-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg);
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.15);
  }
}

.chatbot-fab.hidden {
  display: none;
}

/* ─── ARTIST CHATBOT (LEFT SIDE) ─── */
.artist-fab {
  right: 5.5rem;
  left: auto;
  background: linear-gradient(135deg, #6a1b9a, #8e24aa);
  box-shadow: 0 4px 20px rgba(106, 27, 154, 0.5);
}

.artist-fab:hover {
  box-shadow: 0 6px 28px rgba(106, 27, 154, 0.6);
}

.artist-badge {
  background: #ffab40;
  color: #4a148c;
}

.artist-panel {
  right: 1.5rem;
  left: auto;
}

.artist-header {
  background: linear-gradient(135deg, #6a1b9a, #8e24aa);
}

.artist-send {
  background: #8e24aa !important;
}

.artist-send:hover {
  background: #6a1b9a !important;
}

/* ─── CHATBOT PANEL ─── */
.chatbot-panel {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 400px;
  max-height: 520px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.2);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.chatbot-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.chatbot-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
}

.chatbot-panel-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.chatbot-panel-close:hover {
  background: rgba(255, 255, 255, 0.35);
}

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-height: 340px;
  min-height: 200px;
}

.chatbot-message {
  display: flex;
  gap: 0.4rem;
  align-items: flex-start;
  max-width: 90%;
  animation: fadeIn 0.3s ease;
}

.chatbot-message.bot {
  align-self: flex-start;
}

.chatbot-message.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chatbot-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  background: var(--accent-glow);
  border: 1px solid var(--border);
}

.chatbot-message.user .chatbot-avatar {
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

.chatbot-bubble {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.6rem 0.8rem;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

.chatbot-message.user .chatbot-bubble {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.chatbot-message.bot .chatbot-bubble strong {
  color: var(--text);
}

.chatbot-input-area {
  display: flex;
  gap: 0.4rem;
  padding: 0.6rem;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}

.chatbot-input {
  flex: 1;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}

.chatbot-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.chatbot-send-btn {
  padding: 0.6rem 0.9rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.chatbot-send-btn:hover {
  background: var(--primary-light);
}

.chatbot-send-btn:active {
  transform: scale(0.95);
}

.chatbot-send-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.chatbot-typing {
  display: flex;
  gap: 4px;
  padding: 0.4rem 0;
}

.chatbot-typing span {
  width: 7px;
  height: 7px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: typingDot 1.2s infinite;
}

.chatbot-typing span:nth-child(2) {
  animation-delay: 0.2s;
}

.chatbot-typing span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingDot {

  0%,
  60%,
  100% {
    opacity: 0.3;
    transform: scale(0.8);
  }

  30% {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 640px) {
  .chatbot-panel {
    width: calc(100vw - 1.5rem);
    right: 0.75rem;
    bottom: 0.75rem;
    max-height: 70vh;
  }

  .chatbot-fab {
    bottom: 1rem;
    right: 1rem;
    width: 52px;
    height: 52px;
  }

  .chatbot-fab-icon {
    font-size: 1.3rem;
  }
}

/* ─── SCREENSHOTS ─── */
.screenshot-container {
  margin-top: 1.25rem;
  text-align: center;
}

.screenshot {
  max-width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.screenshot-caption {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  font-style: italic;
}

/* ─── CHECKLISTS ─── */
.checklist {
  list-style: none;
  padding: 0;
}

.checklist li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 0.5rem;
}

.checklist li::before {
  content: '✅';
  position: absolute;
  left: 0;
  top: 0;
}

/* ─── DOWNLOAD LIST ─── */
.download-list {
  list-style: none;
  padding: 0;
}

.download-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  margin-bottom: 0.4rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.download-link:hover {
  background: var(--accent-glow);
  border-color: var(--primary);
}

.dl-icon {
  font-size: 1.2rem;
}

.dl-desc {
  color: var(--text-muted);
  font-size: 0.85rem;
}