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

:root {
  --bg: #05080f;
  --gold: #ffba35;
  --cyan: #00ccff;
  --green: #20d49c;
  --orange: #ff6a2a;
  --purple: #a86cf5;
  --text: #b4c8de;
  --dim: #3a516a;
  --b: rgba(255, 255, 255, .055);
  --mono: 'JetBrains Mono', monospace;
  --serif: 'Cormorant Garamond', Georgia, serif;
}

html, body {
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  font-family: var(--serif);
  color: var(--text);
}

#deck {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 44px 72px 60px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s;
}

.slide.active {
  opacity: 1;
  pointer-events: all;
}

.slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, .045) .7px, transparent .7px);
  background-size: 18px 18px;
  pointer-events: none;
  z-index: 0;
}

.slide > * {
  position: relative;
  z-index: 1;
}

/* ========== Navigation ========== */
#nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border-top: 1px solid var(--b);
  background: rgba(5, 8, 15, .94);
  z-index: 99;
}

.btn {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .09);
  color: var(--text);
  padding: 7px 22px;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 11.5px;
  cursor: pointer;
  transition: background .18s, border-color .18s;
}

.btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, .09);
  border-color: rgba(255, 255, 255, .18);
}

.btn:disabled {
  opacity: .28;
  cursor: not-allowed;
}

.dots {
  display: flex;
  gap: 5px;
  align-items: center;
}

.dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--dim);
  cursor: pointer;
  transition: background .2s, transform .2s;
  flex-shrink: 0;
}

.dot.on {
  background: var(--gold);
  transform: scale(1.5);
}

#ctr {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--dim);
  letter-spacing: .12em;
  min-width: 52px;
  text-align: right;
}

/* ========== Shared Components ========== */
.section-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 14px;
  text-align: center;
}

.slide-title {
  font-size: 30px;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
  text-align: center;
  margin-bottom: 22px;
}

.slide-title-large {
  font-size: 42px;
}

.slide-title-medium {
  font-size: 28px;
}

.slide-title-small {
  font-size: 26px;
}

/* ========== Boxes ========== */
.fbox {
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 9px;
  padding: 13px 20px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 2;
  color: var(--gold);
  text-align: center;
}

.fbox.cyan {
  color: var(--cyan);
  border-color: rgba(0, 204, 255, .15);
  background: rgba(0, 204, 255, .04);
}

.fbox.orange {
  color: var(--orange);
  border-color: rgba(255, 106, 42, .15);
  background: rgba(255, 106, 42, .04);
}

.fbox.sm {
  font-size: 11px;
  line-height: 1.85;
}

/* ========== Cards ========== */
.card {
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 9px;
  padding: 13px 17px;
}

.card-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .27);
  margin-bottom: 8px;
}

/* ========== Subtitle/Caption Text ========== */
.subtitle {
  font-size: 18px;
  font-style: italic;
  color: rgba(255, 255, 255, .32);
  text-align: center;
  margin-bottom: 36px;
}

.caption-italic {
  font-family: var(--serif);
  font-size: 15px;
  font-style: italic;
  color: rgba(255, 255, 255, .28);
  text-align: center;
}

.caption-italic-small {
  font-family: var(--serif);
  font-size: 13px;
  font-style: italic;
  color: rgba(255, 255, 255, .28);
  margin-top: 6px;
}

.small-text {
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(255, 255, 255, .2);
  text-align: center;
  letter-spacing: .05em;
}

.dim-text {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--dim);
  letter-spacing: .08em;
  text-align: center;
}

/* ========== Color-themed Containers ========== */
.container-cyan {
  background: rgba(0, 204, 255, .05);
  border: 1px solid rgba(0, 204, 255, .18);
  border-radius: 8px;
  padding: 14px;
  text-align: center;
}

.container-orange {
  background: rgba(255, 106, 42, .05);
  border: 1px solid rgba(255, 106, 42, .18);
  border-radius: 8px;
  padding: 14px;
  text-align: center;
}

.container-purple {
  background: rgba(168, 108, 245, .05);
  border: 1px solid rgba(168, 108, 245, .18);
  border-radius: 8px;
  padding: 14px;
  text-align: center;
}

.container-green {
  background: rgba(32, 212, 156, .05);
  border: 1px solid rgba(32, 212, 156, .18);
  border-radius: 8px;
  padding: 14px;
  text-align: center;
}

.container-gold {
  background: rgba(255, 186, 53, .05);
  border: 1px solid rgba(255, 186, 53, .18);
  border-radius: 8px;
  padding: 14px;
  text-align: center;
}

.container-gold-larger {
  background: rgba(255, 186, 53, .06);
  border: 1px solid rgba(255, 186, 53, .22);
  border-radius: 9px;
  padding: 14px;
  text-align: center;
}

/* ========== Color Labels ========== */
.label-cyan {
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(0, 204, 255, .5);
  margin-bottom: 8px;
}

.label-gold {
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255, 186, 53, .55);
  margin-bottom: 8px;
}

.label-orange {
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255, 106, 42, .55);
  margin-bottom: 8px;
}

/* ========== Flex Layouts ========== */
.flex-row {
  display: flex;
  gap: 14px;
}

.flex-column {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.flex-center {
  display: flex;
  align-items: center;
  gap: 20px;
}

.flex-space-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ========== SVG Containers ========== */
.svg-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 22px;
}

.svg-wrapper-large {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

/* ========== Divider ========== */
.divider-vertical {
  width: 1px;
  background: rgba(255, 255, 255, .07);
}

.divider-vertical-thick {
  width: 1.5px;
  background: rgba(255, 255, 255, .15);
}

/* ========== Utility Classes ========== */
.monospace {
  font-family: var(--mono);
}

.serif {
  font-family: var(--serif);
}

.text-cyan {
  color: var(--cyan);
}

.text-gold {
  color: var(--gold);
}

.text-orange {
  color: var(--orange);
}

.text-green {
  color: var(--green);
}

.text-purple {
  color: var(--purple);
}

.text-dim {
  color: var(--dim);
}

.fs-11 { font-size: 11px; }
.fs-12 { font-size: 12px; }
.fs-13 { font-size: 13px; }
.fs-14 { font-size: 14px; }
.fs-15 { font-size: 15px; }
.fs-18 { font-size: 18px; }

.fw-600 { font-weight: 600; }

.lh-1-5 { line-height: 1.5; }
.lh-1-6 { line-height: 1.6; }
.lh-1-7 { line-height: 1.7; }
.lh-1-85 { line-height: 1.85; }
.lh-1-9 { line-height: 1.9; }
.lh-1-95 { line-height: 1.95; }
.lh-2 { line-height: 2; }
.lh-2-1 { line-height: 2.1; }
.lh-2-2 { line-height: 2.2; }

.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

.italic { font-style: italic; }

.opacity-5 { opacity: 0.5; }
.opacity-7 { opacity: 0.7; }

.mb-6 { margin-bottom: 6px; }
.mb-8 { margin-bottom: 8px; }
.mb-14 { margin-bottom: 14px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-22 { margin-bottom: 22px; }
.mb-28 { margin-bottom: 28px; }

.mt-4 { margin-top: 4px; }
.mt-5 { margin-top: 5px; }
.mt-6 { margin-top: 6px; }
.mt-10 { margin-top: 10px; }

.px-15 { padding: 0 15px; }
.px-18 { padding: 0 18px; }
.px-20 { padding: 0 20px; }
.px-22 { padding: 0 22px; }
