/* Hive Research Institute · AI Practicum · Deck 3 */
:root {
  --bg: #FFFDF7;
  --bg-elev: #F7F3E8;
  --bg-card: #FFFFFF;
  --ink: #17150F;
  --muted: #5C5648;
  --dim: #8A8270;
  --gold: #C9A227;
  --gold-soft: #A67C1B;
  --amber: #C9A227;
  --cyan: #3D6B6E;
  --flash: #A67C1B;
  --frontier: #8B4513;
  --danger: #9B3B2E;
  --ok: #3F6B4A;
  --line: rgba(166, 124, 27, 0.28);
  --shadow: 0 18px 48px rgba(23, 21, 15, 0.12);
  --radius: 14px;
  --font-display: "Newsreader", Georgia, serif;
  --font-sans: "Archivo", system-ui, sans-serif;
  --slide-pad: clamp(1.5rem, 4vw, 3.5rem);
}

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

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.45;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

body {
  background:
    radial-gradient(1200px 700px at 10% -10%, rgba(201, 162, 39, 0.14), transparent 55%),
    radial-gradient(900px 600px at 100% 0%, rgba(166, 124, 27, 0.08), transparent 50%),
    var(--bg);
}

.deck {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: var(--slide-pad);
  padding-bottom: calc(var(--slide-pad) + 6.5rem);
  opacity: 0;
  visibility: hidden;
  transform: translateX(40px) scale(0.985);
  transition: opacity 0.45s ease, transform 0.45s ease, visibility 0.45s;
  pointer-events: none;
  overflow: auto;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0) scale(1);
  pointer-events: auto;
  z-index: 2;
}

.slide.exit-left {
  opacity: 0;
  transform: translateX(-36px) scale(0.985);
}

.kicker {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 18ch;
}

h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-bottom: 0.35rem;
}

h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--amber);
  margin-bottom: 0.5rem;
}

.lede {
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  max-width: 52ch;
  margin-top: 1rem;
}

.sub {
  color: var(--dim);
  font-size: 0.92rem;
  margin-top: 0.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(201, 162, 39, 0.08);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
  align-items: stretch;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.4rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
  margin-top: 1.4rem;
}

.card {
  background: linear-gradient(165deg, #FFFFFF, #F7F3E8);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow);
}

.card.accent {
  border-color: rgba(166, 124, 27, 0.45);
  background:
    linear-gradient(165deg, rgba(201, 162, 39, 0.16), transparent 40%),
    linear-gradient(165deg, #FFFFFF, #F7F3E8);
}

.card.warn {
  border-color: rgba(155, 59, 46, 0.35);
  background:
    linear-gradient(165deg, rgba(155, 59, 46, 0.08), transparent 45%),
    linear-gradient(165deg, #FFFFFF, #F7F3E8);
}

.card.flash {
  border-color: rgba(166, 124, 27, 0.4);
}

.card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.card ul li {
  padding-left: 1rem;
  position: relative;
}

.card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.price-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.4rem;
}

.price-card {
  flex: 1 1 240px;
  padding: 1.4rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: var(--bg-card);
}

.price-card.intro {
  border-color: rgba(79, 209, 197, 0.4);
  box-shadow: 0 0 0 1px rgba(79, 209, 197, 0.1), var(--shadow);
}

.price-card.standard {
  border-color: rgba(224, 122, 95, 0.35);
}

.price-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 0.6rem;
}

.price-main {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--ink);
}

.price-main span {
  color: var(--flash);
  font-weight: 600;
}

.price-card.standard .price-main span { color: var(--danger); }

.price-unit {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.35rem;
}

.note-pill {
  display: inline-block;
  margin-top: 0.9rem;
  padding: 0.35rem 0.7rem;
  border-radius: 8px;
  background: rgba(224, 122, 95, 0.12);
  color: #f0b5a4;
  font-size: 0.82rem;
}

.levels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-top: 1.2rem;
}

.level {
  text-align: center;
  padding: 1rem 0.8rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: var(--bg-elev);
}

.level.mid {
  border-color: rgba(201, 162, 39, 0.4);
  background: rgba(201, 162, 39, 0.08);
}

.level strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
  color: var(--amber);
}

.level span { color: var(--muted); font-size: 0.85rem; }

.matrix {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.2rem;
  font-size: 0.92rem;
}

.matrix th, .matrix td {
  text-align: left;
  padding: 0.85rem 0.9rem;
  border-bottom: 1px solid rgba(166, 124, 27, 0.18);
  vertical-align: top;
}

.matrix th {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.02);
}

.matrix td:first-child { color: var(--ink); font-weight: 600; width: 22%; }
.matrix td { color: var(--muted); }
.matrix tr:hover td { background: rgba(201, 162, 39, 0.04); }

.framework-tag {
  display: inline-block;
  margin-top: 0.8rem;
  font-size: 0.78rem;
  color: var(--dim);
  border-left: 2px solid var(--gold-soft);
  padding-left: 0.65rem;
}

.arch {
  display: grid;
  grid-template-columns: 1.2fr 0.15fr 1fr 0.15fr 1fr;
  gap: 0.5rem;
  align-items: center;
  margin-top: 1.5rem;
}

.arch-box {
  padding: 1.1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(166, 124, 27, 0.2);
  background: var(--bg-card);
  min-height: 140px;
}

.arch-box.volume {
  border-color: rgba(79, 209, 197, 0.4);
}

.arch-box.edge {
  border-color: rgba(240, 160, 96, 0.4);
}

.arch-box.orch {
  border-color: rgba(201, 162, 39, 0.4);
}

.arch-arrow {
  text-align: center;
  color: var(--gold);
  font-size: 1.4rem;
  opacity: 0.7;
}

.checklist {
  list-style: none;
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem 1.2rem;
}

.checklist li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid rgba(166, 124, 27, 0.18);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.checklist .num {
  flex-shrink: 0;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: rgba(201, 162, 39, 0.15);
  color: var(--gold);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.title-slide {
  justify-content: center;
}

.title-slide .brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  display: grid;
  place-items: center;
  color: #17150F;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1.4rem;
  box-shadow: 0 8px 30px rgba(201, 162, 39, 0.35);
}

.title-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.6rem;
}

.agenda-list {
  list-style: none;
  margin-top: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: 640px;
}

.agenda-list li {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: 0.8rem;
  align-items: baseline;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.agenda-list .n {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.metric-big {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  color: var(--flash);
  line-height: 1;
}

.metric-label {
  color: var(--muted);
  margin-top: 0.4rem;
  font-size: 0.95rem;
}

.fleet-stage {
  position: relative;
  flex: 1;
  min-height: 360px;
  margin-top: 0.8rem;
  border-radius: var(--radius);
  border: 1px solid rgba(166, 124, 27, 0.2);
  background: #17150F;
  overflow: hidden;
}

#fleet-canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.fleet-ui {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
  z-index: 5;
  pointer-events: none;
}

.fleet-ui > * { pointer-events: auto; }

.control-panel {
  background: rgba(11, 18, 32, 0.88);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  min-width: 220px;
}

.control-panel label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 0.4rem;
}

.control-panel input[type="range"] {
  width: 100%;
  accent-color: var(--gold);
}

.seg {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.2rem;
}

.seg button {
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: var(--muted);
  border-radius: 8px;
  padding: 0.4rem 0.5rem;
  font-family: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  transition: 0.15s ease;
}

.seg button.active {
  background: rgba(201, 162, 39, 0.2);
  border-color: var(--gold);
  color: var(--amber);
}

.ticker {
  background: rgba(11, 18, 32, 0.9);
  border: 1px solid rgba(79, 209, 197, 0.3);
  border-radius: 12px;
  padding: 0.85rem 1.1rem;
  margin-left: auto;
  min-width: 200px;
}

.ticker .t-label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}

.ticker .t-value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--flash);
  margin-top: 0.15rem;
}

.ticker .t-sub {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.legend-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.6rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.legend-row i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 0.35rem;
  vertical-align: middle;
}

.legend-row .flash-dot { background: var(--flash); box-shadow: 0 0 8px var(--flash); }
.legend-row .front-dot { background: var(--frontier); box-shadow: 0 0 8px var(--frontier); }

.dont-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.3rem;
}

.close-quote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  max-width: 28ch;
  line-height: 1.3;
  margin-top: 1.2rem;
  color: var(--ink);
}

.footer-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem var(--slide-pad);
  background: #17150F;
  z-index: 20;
  font-size: 0.8rem;
  font-weight: 500;
  color: #F6F1E4;
  letter-spacing: 0.03em;
  pointer-events: none;
}

.nav {
  position: fixed;
  right: var(--slide-pad);
  bottom: 3.2rem;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav button {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  border: 1px solid #C9A227;
  background: #17150F;
  color: #F6F1E4;
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
  transition: 0.15s ease;
}

.nav button:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.dots {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

.dots button {
  width: 10px;
  height: 10px;
  flex: none;
  border-radius: 50%;
  border: none;
  background: rgba(23, 21, 15, 0.35);
  cursor: pointer;
  padding: 0;
}

.dots button.active {
  background: var(--gold);
  box-shadow: 0 0 8px rgba(201, 162, 39, 0.6);
  width: 18px;
  border-radius: 4px;
}

.hint {
  position: fixed;
  left: var(--slide-pad);
  bottom: 3.2rem;
  z-index: 30;
  font-size: 0.75rem;
  color: var(--dim);
  opacity: 0.85;
}

.hint kbd {
  display: inline-block;
  padding: 0.1rem 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.7rem;
  margin: 0 0.1rem;
}

@media (max-width: 720px) {
  .hint { display: none; }
  .slide { padding-bottom: 8rem; }
  .nav {
    left: 12px;
    right: 12px;
    bottom: 3.15rem;
    justify-content: space-between;
    gap: 0.35rem;
  }
  .dots {
    flex: 1;
    min-width: 0;
    justify-content: center;
    overflow-x: auto;
  }
  .footer-bar {
    padding-left: 12px;
    padding-right: 12px;
    font-size: 0.78rem;
  }
}

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4, .dont-grid, .checklist, .levels, .arch {
    grid-template-columns: 1fr;
  }
  .arch-arrow { transform: rotate(90deg); }
  .matrix { font-size: 0.82rem; }
  .matrix th, .matrix td { padding: 0.6rem; }
  h1 { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  .slide { transition: opacity 0.2s ease; transform: none !important; }
}
