/* -----------------------------------------------------------
   SLIDE 7 — CLOSING (Premium Design)
   ═══════════════════════════════════════════════════════════ */
.closing-slide-new {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 60px 40px 40px;
  text-align: center;
  position: relative;
}

/* Vision Header */
.closing-header-centered {
  margin-bottom: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.closing-header-centered h2 {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -1.5px;
  color: var(--ink);
  margin-bottom: 20px;
}
.closing-header-centered .lead {
  font-size: 24px;
  line-height: 1.4;
  color: var(--ink-light);
  white-space: nowrap;
  margin: 0;
}

/* Horizontal Timeline - Minimalist & Crisp */
.horizontal-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.timeline-line {
  position: absolute;
  top: 10px; /* Align with center of 24px dot (10px + 2px center = 12px) */
  left: 2%;
  right: 2%;
  height: 4px;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.05) 0%, rgba(37, 99, 235, 0.85) 100%);
  z-index: 0;
  border-radius: 4px;
}

.timeline-line::after {
  content: "";
  position: absolute;
  right: -14px; /* Arrow extends past the horizontal line */
  top: -7px; /* Line is 4px, Arrow is 18px. (18-4)/2 = 7px offset */
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 16px solid rgba(37, 99, 235, 0.85); /* Seamlessly matches the gradient tip */
}

.timeline-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px;
}

.step-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #dbeafe; /* Light blue fill */
  border: 2px solid #93c5fd; /* Light blue border */
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
  box-shadow: none; /* Removed the white cutout gap */
}

.timeline-step.active .step-dot {
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15); /* Blue glow, no gap */
}

.timeline-step span {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--blue);
  margin-bottom: 12px;
}

.timeline-step strong {
  display: block;
  font-size: 20px;
  line-height: 1.35;
  color: var(--ink);
  font-weight: 600;
  text-wrap: balance; /* Prevents awkward single-word wrapping */
}

/* Slogan Box - Grand Vision Pill */
.closing-slogan-box {
  margin: 30px auto 40px;
  padding: 24px 52px;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  border-radius: 100px;
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.25);
  display: inline-block;
  align-self: center;
}

.closing-slogan-box h2 {
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -1.2px;
  color: white;
  margin: 0;
}

/* Footer & QR */
.closing-footer {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 170px;
  margin-top: auto;
}

.closing-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 200px;
  right: 200px; /* Symmetrical: stops before hitting QR code on right, and leaves equal space on left */
  height: 1px;
  background: rgba(15, 35, 80, 0.12);
}

.footer-team {
  text-align: center;
  font-size: 20px;
  color: var(--ink-soft);
  font-weight: 700;
  line-height: 1.6;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.footer-team a {
  display: block;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--blue-deep);
  text-decoration: none;
  margin-top: 8px;
  text-transform: none;
  letter-spacing: 0;
}

.qr-code {
  position: absolute;
  right: -10px;
  bottom: 20px;
  width: 170px;
  height: 170px;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15, 35, 80, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: white;
  padding: 8px;
}

/* ═══════════════════════════════════════════════════════════
   SLIDE ENTRY ANIMATION (IntersectionObserver via JS)
   ═══════════════════════════════════════════════════════════ */
.reveal .slides section.present .anim-fade-up {
  animation: fadeUp 0.65s cubic-bezier(0.32, 0.72, 0, 1) both;
}

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

/* Staggered delays for child elements */
.anim-fade-up:nth-child(1) { animation-delay: 0.05s; }
.anim-fade-up:nth-child(2) { animation-delay: 0.13s; }
.anim-fade-up:nth-child(3) { animation-delay: 0.21s; }
.anim-fade-up:nth-child(4) { animation-delay: 0.29s; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE COLLAPSE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .reveal .slide {
    padding: 28px;
  }

  .reveal h1 { font-size: 54px; letter-spacing: -1.5px; }
  .reveal h2 { font-size: 36px; }

  .cover-grid,
  .problem-layout,
  .flow-canvas,
  .proof-grid,
  .closing-grid,
  .use-bento {
    grid-template-columns: 1fr;
  }

  .flow-lane,
  .built-stack {
    grid-template-columns: 1fr 1fr;
  }

  .hero-visual { min-height: 300px; }
  .use-card.large { grid-row: span 1; }
}

/* -----------------------------------------------------------
