/* =========================================================
   std-mcp Presentation — readme.css
   Light modern theme, fullscreen slide deck
   ========================================================= */

:root {
  /* Light theme — ncaco std-mcp */
  --bg-deep:       #f6f8fc;
  --bg-card:       #ffffff;
  --bg-card-hover: #f1f5fb;
  --bg-glass:      rgba(15,23,42,0.04);
  --border:        rgba(15,23,42,0.08);
  --border-accent: rgba(59,130,246,0.35);

  --primary:   #3b82f6;
  --secondary: #14b8a6;
  --accent:    #f59e0b;
  --danger:    #ef4444;
  --muted:     #94a3b8;

  --text-white:  #0f172a;
  --text-light:  #1e293b;
  --text-muted:  #64748b;
  --text-faint:  #cbd5e1;

  --font-sans: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;

  --slide-w: 100vw;
  --slide-h: 100vh;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  28px;

  --shadow-glow: 0 12px 40px rgba(59,130,246,0.12);
  --shadow-card: 0 4px 20px rgba(15,23,42,0.06), 0 1px 2px rgba(15,23,42,0.04);
}

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

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  background: var(--bg-deep);
  color: var(--text-light);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

/* =========================================================
   Deck Container
   ========================================================= */
#deck {
  position: fixed;
  inset: 0;
  overflow: hidden;
}

/* =========================================================
   Slides Track
   ========================================================= */
#slides-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.55s cubic-bezier(0.77, 0, 0.175, 1);
  will-change: transform;
}

/* =========================================================
   Individual Slide
   ========================================================= */
.slide {
  min-width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(40px, 6vh, 72px) clamp(40px, 6vw, 96px);
  position: relative;
  overflow: hidden;
}

.slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59,130,246,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* =========================================================
   Progress Bar
   ========================================================= */
#progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width 0.55s cubic-bezier(0.77, 0, 0.175, 1);
  z-index: 100;
  box-shadow: 0 0 12px rgba(59,130,246,0.6);
}

/* =========================================================
   Slide Counter
   ========================================================= */
#slide-counter {
  position: fixed;
  bottom: 28px; right: 36px;
  font-size: 13px;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
  z-index: 100;
  letter-spacing: 0.05em;
}
#slide-counter .current { color: var(--primary); font-weight: 600; }

/* =========================================================
   Navigation Arrows
   ========================================================= */
.nav-btn {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  color: var(--text-muted);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 100;
  transition: all 0.2s;
}
.nav-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(59,130,246,0.1);
}
.nav-btn:disabled { opacity: 0.2; cursor: default; }
#btn-prev { left: 20px; }
#btn-next { right: 20px; }

/* =========================================================
   Dot Navigation
   ========================================================= */
#dot-nav {
  position: fixed;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 8px;
  z-index: 100;
}
.dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text-faint);
  cursor: pointer;
  transition: all 0.3s;
}
.dot.active {
  background: var(--primary);
  width: 20px;
  border-radius: 3px;
}

/* =========================================================
   Keyboard hint
   ========================================================= */
#key-hint {
  position: fixed;
  bottom: 28px; left: 36px;
  font-size: 11px;
  color: var(--text-faint);
  display: flex; gap: 6px; align-items: center;
  z-index: 100;
}
#key-hint kbd {
  border: 1px solid var(--text-faint);
  border-radius: 3px;
  padding: 1px 5px;
  font-size: 10px;
  font-family: var(--font-sans);
}

/* =========================================================
   Slide inner content wrapper
   ========================================================= */
.slide-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1100px;
  gap: 40px;
}

.slide-header {
  text-align: center;
  width: 100%;
}

/* =========================================================
   SLIDE 1 — Title
   ========================================================= */
#slide-1 {
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(59,130,246,0.08) 0%, transparent 70%),
              var(--bg-deep);
  flex-direction: column;
  text-align: center;
  gap: 32px;
}
#slide-1 .slide-eyebrow {
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 500;
}
#slide-1 .slide-title {
  font-size: clamp(44px, 6vw, 80px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-white);
}
#slide-1 .slide-title .highlight {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
#slide-1 .slide-subtitle {
  font-size: clamp(16px, 2vw, 22px);
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 640px;
}
#slide-1 .slide-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}
#slide-1 .slide-meta-tags {
  display: grid;
  grid-template-rows: repeat(2, auto);
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  gap: 10px 14px;
  justify-content: center;
}
#slide-1 .slide-meta .tag {
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid var(--border-accent);
  font-size: 13px;
  color: var(--primary);
  background: rgba(59,130,246,0.06);
}
.title-actions {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px 14px 16px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(59,130,246,0.12) 0%, rgba(20,184,166,0.08) 100%);
  border: 1px solid rgba(59,130,246,0.3);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.18s, box-shadow 0.2s;
  box-shadow: 0 0 0 0 rgba(59,130,246,0);
}
.btn-download::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59,130,246,0.15), rgba(20,184,166,0.1));
  opacity: 0;
  transition: opacity 0.2s;
}
.btn-download:hover {
  border-color: rgba(59,130,246,0.55);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(59,130,246,0.18);
}
.btn-download:hover::before { opacity: 1; }
.btn-download:active { transform: translateY(-1px); }

.btn-download-icon {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: rgba(59,130,246,0.15);
  border: 1px solid rgba(59,130,246,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
  transition: background 0.2s;
}
.btn-download:hover .btn-download-icon {
  background: rgba(59,130,246,0.25);
}

.btn-download-body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
}
.btn-download-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: -0.2px;
}
.btn-download-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 400;
}

#slide-1 .slide-meta .tag-version {
  border-color: var(--secondary);
  color: var(--secondary);
  background: rgba(20,184,166,0.08);
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: -0.2px;
}
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
#slide-1 .orb-1 {
  width: 400px; height: 400px;
  background: rgba(59,130,246,0.06);
  top: -100px; left: -100px;
}
#slide-1 .orb-2 {
  width: 300px; height: 300px;
  background: rgba(20,184,166,0.05);
  bottom: -80px; right: -80px;
}

/* =========================================================
   SLIDE 2 — Problem
   ========================================================= */
#slide-2 { flex-direction: column; gap: 48px; }
.slide-section-label {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--secondary);
  font-weight: 600;
  margin-bottom: 12px;
}
.slide-heading {
  font-size: clamp(28px, 3.5vw, 52px);
  font-weight: 800;
  color: var(--text-white);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.slide-heading .em { color: var(--primary); }

.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
  max-width: 1000px;
}
.pain-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.pain-card:hover { border-color: var(--border-accent); }
.pain-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.pain-number {
  font-size: 52px;
  font-weight: 900;
  color: rgba(245,158,11,0.18);
  font-family: var(--font-mono);
  line-height: 1;
  margin-bottom: 16px;
}
.pain-quote {
  font-size: 17px;
  color: var(--text-light);
  line-height: 1.7;
  font-style: italic;
}
.pain-quote::before { content: '"'; color: var(--accent); font-size: 28px; line-height: 0; vertical-align: -10px; margin-right: 4px; }
.pain-quote::after  { content: '"'; color: var(--accent); font-size: 28px; line-height: 0; vertical-align: -10px; margin-left: 4px; }

/* =========================================================
   SLIDE 3 — Solution
   ========================================================= */
#slide-3 { flex-direction: column; gap: 48px; align-items: center; }

.arch-diagram {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  max-width: 900px;
}
.arch-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex: 1;
}
.arch-icon-box {
  width: 96px; height: 96px;
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
}
.arch-icon-box.ai    { background: rgba(59,130,246,0.12); border: 2px solid rgba(59,130,246,0.3); color: var(--primary); }
.arch-icon-box.mcp   { background: rgba(20,184,166,0.12); border: 2px solid rgba(20,184,166,0.3); color: var(--secondary); }
.arch-icon-box.srv   { background: rgba(245,158,11,0.12); border: 2px solid rgba(245,158,11,0.3); color: var(--accent); }
.arch-icon-box.db    { background: rgba(239,68,68,0.12); border: 2px solid rgba(239,68,68,0.3); color: var(--danger); }
.arch-label { font-size: 13px; color: var(--text-muted); font-weight: 600; text-align: center; }
.arch-sublabel { font-size: 11px; color: var(--text-faint); text-align: center; }

.arch-arrow {
  flex: 0 0 60px;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  gap: 4px;
}
.arch-arrow .arrow-line {
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  position: relative;
}
.arch-arrow .arrow-line::after {
  content: '▶';
  position: absolute; right: -8px; top: 50%;
  transform: translateY(-50%);
  font-size: 10px; color: var(--secondary);
}
.arch-arrow .arrow-label {
  font-size: 10px; color: var(--text-faint);
  white-space: nowrap; letter-spacing: 0.06em;
}

.solution-desc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 32px;
  font-size: 16px;
  color: var(--text-muted);
  text-align: center;
  max-width: 700px;
  line-height: 1.7;
}
.solution-desc strong { color: var(--primary); }

/* =========================================================
   SLIDE 4 — Data 3 Types
   ========================================================= */
#slide-4 { flex-direction: column; gap: 40px; }

.data-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;
  max-width: 1100px;
}
.data-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  min-height: 320px;
}
.data-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}
.data-card.word   { --card-accent: var(--primary); }
.data-card.domain { --card-accent: var(--secondary); }
.data-card.term   { --card-accent: var(--accent); }
.data-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--card-accent);
  opacity: 0.6;
}
.data-card-icon { color: var(--card-accent); }
.data-card-title { font-size: 22px; font-weight: 700; color: var(--text-white); }
.data-card-title span { color: var(--card-accent); }
.data-card-example {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
  background: rgba(15,23,42,0.04);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  line-height: 1.8;
}
.data-card-count {
  margin-top: auto;
  display: flex; align-items: baseline; gap: 6px;
}
.data-card-count .num {
  font-size: 42px;
  font-weight: 800;
  color: var(--card-accent);
  font-family: var(--font-mono);
  line-height: 1;
}
.data-card-count .unit { font-size: 14px; color: var(--text-faint); }
.data-badge-row {
  display: flex; gap: 6px; flex-wrap: wrap;
}
.data-badge {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 100px;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.badge-c001 { background: rgba(59,130,246,0.15); color: var(--primary); }
.badge-c002 { background: rgba(20,184,166,0.15); color: var(--secondary); }

/* =========================================================
   SLIDE 5 — MCP Tools
   ========================================================= */
#slide-5 { flex-direction: column; gap: 18px; }

.tools-section { width: 100%; }
.tools-section-label {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 10px;
}
.tools-section-label.read-label { color: var(--primary); }
.tools-section-label.write-label { color: var(--danger); }
.tools-section-label .case-keep { text-transform: none; letter-spacing: 0; font-family: var(--font-mono); }
.tools-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.2;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
/* slide 5 v2.7: 26 chips → compact 5-col grid (deprecated flex/min-width 제거) */
.tool-chip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 9px 11px;
  display: flex; flex-direction: column; gap: 2px;
  transition: border-color 0.2s;
  position: relative;
  min-height: 52px;
}
.tool-chip:hover { border-color: var(--border-accent); }
.tool-chip.read  { border-left: 3px solid var(--primary); }
.tool-chip.write { border-left: 3px solid var(--danger); background: rgba(239,68,68,0.04); }
.tool-chip-name {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-light);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tool-chip.write .tool-chip-name { color: var(--danger); }
.tool-chip-desc { font-size: 10px; color: var(--text-faint); line-height: 1.35; }

.write-tools-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.write-badge {
  position: absolute;
  top: 8px; right: 8px;
  font-size: 9px;
  padding: 2px 6px;
  background: rgba(239,68,68,0.2);
  color: var(--danger);
  border-radius: 100px;
  letter-spacing: 0.06em;
  font-weight: 700;
}

/* =========================================================
   SLIDE: AI Write Capability
   ========================================================= */
#slide-write { flex-direction: column; gap: clamp(24px, 3vh, 40px); }

.write-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  width: 100%;
  max-width: 1000px;
}
.write-left, .write-right { display: flex; flex-direction: column; gap: 12px; }

.write-enable {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(239,68,68,0.06);
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text-muted);
}
.write-enable svg { color: var(--danger); flex-shrink: 0; }
.write-enable code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--danger);
  font-weight: 700;
  background: rgba(239,68,68,0.1);
  padding: 1px 6px;
  border-radius: 4px;
}

.write-upsert-list { display: flex; flex-direction: column; gap: 10px; }
.write-upsert-item {
  display: flex;
  gap: 14px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--danger);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  transition: border-color 0.2s;
}
.write-upsert-item:hover { border-color: var(--danger); }
.wi-icon { color: var(--danger); flex-shrink: 0; }
.write-upsert-name {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--danger);
}
.write-upsert-desc { font-size: 11px; color: var(--text-faint); margin-top: 2px; }

.write-scenario-title {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--secondary);
  font-weight: 700;
  margin-bottom: 4px;
}
.write-chat { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.wc-user {
  background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: var(--radius-md);
  border-bottom-right-radius: 4px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.5;
  font-style: italic;
  align-self: flex-end;
  max-width: 90%;
}
.wc-tool {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--secondary);
  background: rgba(20,184,166,0.07);
  border: 1px solid rgba(20,184,166,0.2);
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  line-height: 1.4;
}
.wc-tool svg { flex-shrink: 0; }
.wc-result {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--secondary);
  padding: 9px 14px;
  background: rgba(20,184,166,0.06);
  border: 1px solid rgba(20,184,166,0.2);
  border-radius: var(--radius-md);
}
.wc-result svg { flex-shrink: 0; }

.write-bottom-note {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 24px;
  font-size: 13px;
  color: var(--text-muted);
  max-width: 700px;
}
.write-bottom-note svg { color: var(--secondary); flex-shrink: 0; }

/* =========================================================
   SLIDE 7 — Search Modes
   ========================================================= */
#slide-7 { flex-direction: column; gap: 44px; }

.search-modes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
  max-width: 1000px;
}
.mode-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
  min-height: 260px;
}
.mode-card.default-mode {
  border-color: var(--secondary);
  box-shadow: 0 0 0 1px rgba(20,184,166,0.2), var(--shadow-glow);
}
.mode-badge {
  position: absolute;
  top: 16px; right: 16px;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 100px;
  background: rgba(20,184,166,0.2);
  color: var(--secondary);
  font-weight: 700;
  letter-spacing: 0.06em;
}
.mode-icon { display: flex; }
.search-modes .mode-card:nth-child(1) .mode-icon { color: var(--primary); }
.search-modes .mode-card:nth-child(2) .mode-icon { color: var(--secondary); }
.search-modes .mode-card:nth-child(3) .mode-icon { color: var(--accent); }
.mode-name {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-white);
}
.mode-desc { font-size: 14px; color: var(--text-muted); line-height: 1.65; }
.mode-tag {
  font-size: 12px;
  color: var(--text-faint);
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.flow-diagram {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 24px;
  max-width: 700px;
  font-size: 13px;
}
.flow-step {
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  color: var(--primary);
  font-weight: 600;
  white-space: nowrap;
}
.flow-arrow { color: var(--text-faint); font-size: 16px; }

/* =========================================================
   SLIDE 8 — Dual Interface
   ========================================================= */
#slide-8 { flex-direction: column; gap: 40px; }

.dual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  width: 100%;
  max-width: 960px;
}
.interface-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.interface-card.mcp-card  { border-top: 3px solid var(--primary); }
.interface-card.rest-card { border-top: 3px solid var(--secondary); }
.if-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-white);
  display: flex; align-items: center; gap: 12px;
}
.mcp-card  .if-title svg { color: var(--primary); }
.rest-card .if-title svg { color: var(--secondary); }
.if-badge {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 100px;
  font-weight: 700;
}
.mcp-card  .if-badge { background: rgba(59,130,246,0.15); color: var(--primary); }
.rest-card .if-badge { background: rgba(20,184,166,0.15); color: var(--secondary); }
.if-desc { font-size: 14px; color: var(--text-muted); line-height: 1.65; }
.if-targets {
  display: flex; flex-direction: column; gap: 8px;
}
.if-target {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--text-light);
}
.if-target::before {
  content: '→';
  color: var(--primary);
  font-weight: 700;
}
.rest-card .if-target::before { color: var(--secondary); }

.shared-logic {
  background: var(--bg-glass);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  max-width: 960px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.shared-logic svg { color: var(--accent); flex-shrink: 0; }
.shared-logic strong { color: var(--primary); }

/* =========================================================
   SLIDE — Security & Quality
   ========================================================= */
.security-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}
/* slide-admin v2.7: 6 cards → 3 column compact */
#slide-admin .security-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
#slide-admin .security-card { padding: 14px 16px; gap: 12px; }
#slide-admin .security-icon { width: 36px; height: 36px; }
#slide-admin .security-icon svg { width: 18px; height: 18px; }
#slide-admin .security-title { font-size: 14px; }
#slide-admin .security-detail { font-size: 12px; line-height: 1.45; }
#slide-admin .security-sub { font-size: 11px; }
.security-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  transition: border-color 0.2s, transform 0.2s;
}
.security-card:hover { border-color: var(--border-accent); transform: translateY(-2px); }
.security-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--bg-glass);
  border: 1px solid currentColor;
}
.security-icon svg { width: 22px; height: 22px; }
.security-card.s-rate .security-icon { color: var(--secondary); background: rgba(20,184,166,0.08); }
.security-card.s-header .security-icon { color: var(--accent); background: rgba(245,158,11,0.08); }
.security-card.s-audit .security-icon { color: var(--primary); background: rgba(59,130,246,0.08); }
.security-card.s-test .security-icon { color: var(--danger); background: rgba(239,68,68,0.08); }
.security-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.security-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-white);
  letter-spacing: -0.2px;
}
.security-detail {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.55;
}
.security-sub {
  font-size: 12.5px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: -0.2px;
}
@media (max-width: 900px) {
  .security-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   SLIDE 9 — Demo
   ========================================================= */
#slide-9 { flex-direction: column; gap: 36px; }

.chat-container {
  width: 100%;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 70vh;
  overflow: hidden;
}
.chat-msg {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.chat-msg.user { justify-content: flex-end; }
.chat-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.chat-msg.user   .chat-avatar { background: rgba(245,158,11,0.2); order: 2; color: var(--accent); }
.chat-msg.claude .chat-avatar { background: rgba(59,130,246,0.15); color: var(--primary); }
.chat-bubble {
  max-width: 80%;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.65;
}
.chat-msg.user   .chat-bubble {
  background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.2);
  color: var(--text-light);
  border-bottom-right-radius: 4px;
}
.chat-msg.claude .chat-bubble {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-light);
  border-bottom-left-radius: 4px;
}
.chat-tool-call {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--secondary);
  background: rgba(20,184,166,0.08);
  border: 1px solid rgba(20,184,166,0.2);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  margin: 6px 0;
}
.chat-tool-call svg { flex-shrink: 0; }
.chat-result {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  background: rgba(245,158,11,0.06);
  border: 1px solid rgba(245,158,11,0.15);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin: 4px 0;
}

/* =========================================================
   SLIDE 10 — Connection
   ========================================================= */
#slide-10 { flex-direction: column; gap: 40px; }

.connection-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  align-items: start;
  gap: 24px;
  width: 100%;
  max-width: 1000px;
}
.code-block {
  background: #0d1117;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.code-block-header {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: rgba(15,23,42,0.03);
  border-bottom: 1px solid var(--border);
  gap: 8px;
}
.dot-red   { width: 12px; height: 12px; border-radius: 50%; background: #ff5f56; }
.dot-yellow{ width: 12px; height: 12px; border-radius: 50%; background: #ffbd2e; }
.dot-green { width: 12px; height: 12px; border-radius: 50%; background: #27c93f; }
.code-block-title { font-size: 12px; color: var(--text-faint); margin-left: 8px; font-family: var(--font-mono); }
.code-block pre {
  padding: 24px 28px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-light);
  overflow-x: auto;
}
.token-key    { color: #7ec8e3; }
.token-str    { color: #a8d89a; }
.token-punc   { color: var(--text-faint); }

.connect-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.connect-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.connect-item-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.connect-item-value {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--primary);
  word-break: break-all;
}
.connect-item-value a {
  color: var(--secondary);
  text-decoration: none;
}
.connect-item-value a:hover { text-decoration: underline; }
.connect-item code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  background: rgba(245,158,11,0.08);
  padding: 1px 5px;
  border-radius: 3px;
}

.connect-step-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.connect-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--text-muted);
}
.connect-step-num {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(59,130,246,0.15);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* =========================================================
   Skill Detail Slides (12~16)
   ========================================================= */
.skill-tag-inline {
  font-family: var(--font-mono);
  font-size: 0.72em;
  background: rgba(59,130,246,0.12);
  border: 1px solid rgba(59,130,246,0.3);
  color: var(--primary);
  padding: 3px 10px;
  border-radius: 6px;
  vertical-align: middle;
  margin-right: 6px;
  letter-spacing: -0.3px;
}
.sd-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  flex: 1;
  min-height: 0;
}
.sd-phases {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sd-phase {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.sd-phase-num {
  min-width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(59,130,246,0.15);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.sd-phase-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 3px;
}
.sd-phase-desc {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.55;
}
.sd-phase-desc code {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--secondary);
  background: rgba(20,184,166,0.08);
  padding: 1px 5px;
  border-radius: 3px;
}
.sd-example {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sd-example-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Search result table */
.sd-result-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.sd-result-row {
  display: grid;
  grid-template-columns: 56px 1fr 100px 56px;
  padding: 8px 14px;
  font-size: 12px;
  border-bottom: 1px solid var(--border);
  gap: 8px;
  align-items: center;
}
.sd-result-row:last-child { border-bottom: none; }
.sd-result-header { font-size: 10.5px; color: var(--text-faint); text-transform: uppercase; }
.sd-result-best { background: rgba(59,130,246,0.06); }
.sd-score { font-family: var(--font-mono); font-weight: 700; color: var(--primary); }
.sd-abbr { font-family: var(--font-mono); font-size: 11px; color: var(--secondary); }

/* Code block mini */
.sd-code-mini {
  background: #0d1117;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--text-light);
  white-space: pre;
  overflow: hidden;
}
.token-kw { color: #79c0ff; }
.token-ty { color: #56d364; }
.token-str { color: #a5d6ff; }
.token-cm { color: var(--text-faint); font-style: italic; }

/* Depth tags */
.sd-depth-box {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  padding: 8px 0;
}
.sd-depth-tag {
  padding: 3px 10px;
  border-radius: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 11.5px;
  color: var(--text-muted);
}
.sd-depth-tag.active {
  background: rgba(59,130,246,0.15);
  border-color: rgba(59,130,246,0.4);
  color: var(--primary);
  font-weight: 700;
}

/* ERD block */
.sd-erd-block {
  background: #0d1117;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.8;
  color: var(--secondary);
  white-space: pre;
}

/* Grade list */
.sd-grade-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sd-grade {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text-light);
}
.sd-grade-badge {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}
.sd-grade-a { background: rgba(16,185,129,0.07); border-color: rgba(16,185,129,0.25); }
.sd-grade-a .sd-grade-badge { background: rgba(16,185,129,0.2); color: #68d391; }
.sd-grade-b { background: rgba(59,130,246,0.07); border-color: rgba(59,130,246,0.2); }
.sd-grade-b .sd-grade-badge { background: rgba(59,130,246,0.2); color: var(--primary); }
.sd-grade-c { background: rgba(245,158,11,0.07); border-color: rgba(245,158,11,0.2); }
.sd-grade-c .sd-grade-badge { background: rgba(245,158,11,0.2); color: var(--accent); }
.sd-grade-d { background: rgba(239,68,68,0.07); border-color: rgba(239,68,68,0.2); }
.sd-grade-d .sd-grade-badge { background: rgba(239,68,68,0.2); color: var(--danger); }

/* Domain naming table */
.sd-domain-table {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.sdt-row {
  display: grid;
  grid-template-columns: 90px 1fr 80px 50px;
  padding: 8px 14px;
  font-size: 12px;
  border-bottom: 1px solid var(--border);
  gap: 8px;
  align-items: center;
}
.sdt-row:last-child { border-bottom: none; }
.sdt-header { font-size: 10.5px; color: var(--text-faint); text-transform: uppercase; }
.sdt-name { font-family: var(--font-mono); font-weight: 700; color: var(--primary); font-size: 13px; }

/* Register order */
.sd-register-order {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: rgba(59,130,246,0.06);
  border: 1px solid rgba(59,130,246,0.15);
  border-radius: var(--radius-md);
  margin-top: 4px;
}
.sro-step {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-white);
  line-height: 1.5;
}
.sro-step span { font-family: var(--font-mono); font-size: 10px; color: var(--secondary); display: block; }
.sro-arrow { color: var(--text-faint); font-size: 18px; }

/* Shared note/trigger boxes */
.sd-note-box {
  padding: 10px 14px;
  background: rgba(15,23,42,0.03);
  border-left: 3px solid rgba(59,130,246,0.4);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.6;
}
.sd-note-box code {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--danger);
  background: rgba(239,68,68,0.08);
  padding: 1px 5px;
  border-radius: 3px;
}
.sd-trigger-box {
  padding: 10px 14px;
  background: rgba(20,184,166,0.05);
  border: 1px solid rgba(20,184,166,0.15);
  border-radius: var(--radius-sm);
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.6;
}
.sd-trigger-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

/* =========================================================
   SLIDE 18 — Finale
   ========================================================= */
#slide-18 {
  background: radial-gradient(ellipse 70% 50% at 50% 50%, rgba(59,130,246,0.1) 0%, transparent 70%),
              var(--bg-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: clamp(20px, 3vh, 40px);
}
#slide-18 .finale-title {
  font-size: clamp(32px, 4.5vw, 60px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-white);
}
#slide-18 .finale-title .grad {
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stats-row {
  display: flex;
  gap: clamp(16px, 2.5vw, 40px);
  justify-content: center;
  align-items: center;
}
.stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.stat-num {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 900;
  font-family: var(--font-mono);
  line-height: 1;
}
.stat-box:nth-child(1) .stat-num { color: var(--primary); }
.stat-box:nth-child(2) .stat-num { color: var(--secondary); }
.stat-box:nth-child(3) .stat-num { color: var(--accent); }
.stat-label { font-size: 14px; color: var(--text-muted); letter-spacing: 0.02em; }
.stat-divider { width: 1px; height: 56px; background: var(--border-accent); opacity: 0.6; }

.finale-cta {
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 700;
  color: var(--text-muted);
}
.finale-cta .highlight { color: var(--secondary); font-weight: 800; }

.contact-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 100px;
  border: 1px solid var(--border-accent);
  background: rgba(59,130,246,0.06);
  font-size: 15px;
  color: var(--text-muted);
}
.contact-badge svg { color: var(--primary); }
.contact-badge a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

/* =========================================================
   Slide transition states
   ========================================================= */
.slide { opacity: 0.3; transition: opacity 0.55s ease; }
.slide.active { opacity: 1; }

/* =========================================================
   Animations
   ========================================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.slide.active .slide-header,
.slide.active .pain-grid,
.slide.active .data-grid,
.slide.active .search-modes,
.slide.active .dual-grid,
.slide.active .chat-container,
.slide.active .connection-grid,
.slide.active .stats-row,
.slide.active .arch-diagram,
.slide.active .write-layout {
  animation: fadeUp 0.6s ease both;
}

/* =========================================================
   Skill Commands — Slide 11
   ========================================================= */
.skill-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}
.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s;
}
.skill-card:hover { border-color: var(--border-accent); }
.skill-cmd {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: -0.3px;
  word-break: break-all;
}
.skill-desc {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.55;
}
.skill-trigger {
  font-size: 12.5px;
  color: var(--text-muted);
  font-style: italic;
}
.skill-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: rgba(59,130,246,0.06);
  border: 1px solid rgba(59,130,246,0.15);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.6;
}
.skill-note svg { flex-shrink: 0; margin-top: 2px; color: var(--primary); }

/* =========================================================
   Actor Injection — Slide 12
   ========================================================= */
.actor-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.actor-flow {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.actor-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.actor-arrow {
  text-align: center;
  color: var(--text-faint);
  font-size: 20px;
  padding: 6px 0;
}
.actor-step-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.actor-step-icon.cfg { background: rgba(59,130,246,0.12); color: var(--primary); }
.actor-step-icon.sse { background: rgba(20,184,166,0.12); color: var(--secondary); }
.actor-step-icon.db  { background: rgba(245,158,11,0.12);  color: var(--accent); }
.actor-step-title { font-size: 13.5px; font-weight: 600; color: var(--text-white); margin-bottom: 4px; }
.actor-step-desc  { font-size: 12px; color: var(--text-muted); }
.actor-result-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.actor-result-table {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 14px;
}
.art-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 10px 14px;
  font-size: 12.5px;
  border-bottom: 1px solid var(--border);
  gap: 8px;
}
.art-row:last-child { border-bottom: none; }
.art-row.art-header { font-size: 11px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.06em; }
.art-field { font-family: var(--font-mono); color: var(--primary); font-size: 12px; }
.art-val   { color: var(--text-light); }
.art-src   { color: var(--text-muted); font-size: 11px; }
.actor-note {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
  padding: 10px 14px;
  background: rgba(15,23,42,0.03);
  border-radius: var(--radius-sm);
}

/* =========================================================
   Responsive (720p 발표 화면 대응)
   ========================================================= */
@media (max-width: 1200px) {
  .slide { padding: 40px 50px; }
  .pain-grid, .data-grid, .search-modes { gap: 14px; }
  .tools-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .pain-grid, .data-grid, .search-modes, .dual-grid, .write-layout { grid-template-columns: 1fr 1fr; }
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .connection-grid { grid-template-columns: 1fr; }
  .stats-row { gap: 16px; }
  .stat-num { font-size: 40px; }
}
