/* === Design Tokens === */
:root {
  --bg: #1C1E1F;
  --mint: #7CFFC4;
  --white: #FFFFFF;
  --muted: rgba(255, 255, 255, 0.7);
  --dim: rgba(255, 255, 255, 0.2);
  --font: 'Space Grotesk', system-ui, sans-serif;
  --slide-transition: 400ms ease-out;
}

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

html, body {
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--white);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* === Lucide Icons === */
[data-lucide] { display: inline-block; vertical-align: middle; }

/* === Slide Container === */
.deck {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3rem 6rem 4rem;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}

.slide--active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

/* --- Transitions --- */
.slide--enter {
  animation: slideEnter var(--slide-transition) forwards;
}

.slide--exit-left {
  animation: slideExitLeft var(--slide-transition) forwards;
  z-index: 0;
}

.slide--exit-right {
  animation: slideExitRight var(--slide-transition) forwards;
  z-index: 0;
}

.slide--enter-right {
  transform: translateX(60px);
  opacity: 0;
}

.slide--enter-left {
  transform: translateX(-60px);
  opacity: 0;
}

@keyframes slideEnter {
  from { opacity: 0; transform: translateX(0); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideExitLeft {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(-60px); }
}

@keyframes slideExitRight {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(60px); }
}

/* === Typography === */
.slide__title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.slide__title::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124, 255, 196, 0.5), transparent);
  margin: 0.75rem auto 0;
}

.slide__subtitle {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 400;
  color: var(--muted);
  margin-bottom: 2rem;
  max-width: 48rem;
  text-align: center;
}

/* === Entrance Animations === */
.anim {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.anim--visible {
  opacity: 1;
  transform: translateY(0);
}

/* === Title Slide === */
.title-slide {
  text-align: center;
  overflow: hidden;
}

/* Ambient glow behind logo */
.title-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 255, 196, 0.07) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  pointer-events: none;
  animation: glowPulse 6s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 1; transform: translate(-50%, -55%) scale(1); }
  50%      { opacity: 0.6; transform: translate(-50%, -55%) scale(1.08); }
}

/* Accent rule between logo and tagline */
.title-rule {
  width: 64px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--mint), transparent);
  margin: 0 auto 1.5rem;
}

.tagline-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.title-slide .tagline {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.4;
  max-width: 40rem;
}

/* === Pipeline Diagram === */
.slide--pipeline {
  justify-content: center;
  gap: 0.5rem;
}

.slide--pipeline .slide__title { margin-bottom: 0.75rem; }

.pipeline-caption {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  max-width: 48rem;
  margin-top: 0.75rem;
  opacity: 0.7;
}

.pipeline-section {
  width: 100%;
  max-width: 56rem;
  padding: 1.2rem 1.5rem;
  border: 1px solid var(--dim);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.pipeline-section__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--mint);
  margin-bottom: 0.75rem;
}

.pipeline {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  width: 100%;
  padding: 0.5rem 0;
}

.pipeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 88px;
  flex-shrink: 0;
  text-align: center;
}

.pipeline-step__box {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid var(--dim);
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  line-height: 1.2;
  padding: 0.4rem;
}

.pipeline-step--human .pipeline-step__box {
  border-color: var(--mint);
  background: rgba(124, 255, 196, 0.1);
  color: var(--mint);
  box-shadow: 0 0 20px rgba(124, 255, 196, 0.15);
}

.pipeline-step__actor {
  color: var(--muted);
  margin-bottom: 0.3rem;
  line-height: 1;
}

.pipeline-step--human .pipeline-step__actor {
  color: var(--mint);
}

.pipeline-step__label {
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 0.5rem;
  max-width: 80px;
}

.pipeline-arrow {
  width: 24px;
  height: 2px;
  background: var(--dim);
  flex-shrink: 0;
  position: relative;
  align-self: center;
  margin-bottom: 1.5rem;
}

.pipeline-arrow::after {
  content: '';
  position: absolute;
  right: 0;
  top: -3px;
  border: 4px solid transparent;
  border-left-color: var(--dim);
}

/* === Collaboration Model === */
.collab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  max-width: 52rem;
  width: 100%;
}

.collab__row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0 1.5rem;
  align-items: start;
}

.collab__column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.collab__vline {
  width: 2px;
  flex: 1;
  min-height: 20px;
  align-self: center;
}

.collab__vline line {
  stroke: var(--dim);
  stroke-width: 1.5;
}

.collab__card {
  padding: 1.6rem;
  border: 1px solid var(--dim);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.collab__card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.collab__card > span {
  font-size: 0.85rem;
  color: var(--muted);
  display: block;
  margin-bottom: 0.6rem;
}

.collab__card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.collab__card ul li {
  font-size: 0.9rem;
  color: var(--muted);
  padding-left: 0.8rem;
  position: relative;
}

.collab__card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--dim);
}

.collab__card--accent {
  border-color: var(--mint);
  background: rgba(124, 255, 196, 0.05);
}

.collab__card--accent ul li::before {
  background: var(--mint);
  opacity: 0.5;
}

/* Bridge arrows (center column) */
.collab__bridge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 1.5rem;
  min-width: 200px;
}

.collab__bridge svg {
  width: 200px;
  overflow: visible;
}

.collab__bridge svg text {
  fill: var(--muted);
  font-family: var(--font);
  font-size: 10px;
}

.collab__bridge svg line,
.collab__bridge svg path {
  stroke: var(--dim);
  stroke-width: 1.5;
}

.collab__bridge svg marker path {
  fill: var(--dim);
  stroke: none;
}

/* Output boxes */
.collab__output {
  padding: 1rem 1.4rem;
  border: 1px solid var(--dim);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.95rem;
  font-weight: 600;
  position: relative;
}

.collab__output ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 0.5rem;
}

.collab__output ul li {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--muted);
  padding-left: 0.8rem;
  position: relative;
}

.collab__output ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--dim);
}

.collab__icons {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.4rem;
  color: var(--muted);
}

.collab__tiktok-icon {
  display: block;
  flex-shrink: 0;
}

.collab__output--owned {
  border-color: var(--mint);
}

.collab__output .collab__icons {
  margin-bottom: 0.25rem;
}

/* Auto-publish arrow at bottom */
.collab__auto-publish {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 0.5rem;
}

.collab__auto-publish svg {
  width: 100%;
  max-width: 48rem;
  height: 50px;
  overflow: visible;
}

.collab__auto-publish svg text {
  fill: var(--muted);
  font-family: var(--font);
  font-size: 10px;
}

.collab__auto-publish svg path {
  stroke: var(--dim);
  stroke-width: 1;
  stroke-dasharray: 6 4;
  fill: none;
}

.collab__auto-publish svg marker path {
  fill: var(--dim);
  stroke: none;
  stroke-dasharray: none;
}

/* === Ad Package (Sponsorship Slide) === */
.ad-package {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 54rem;
  width: 100%;
  align-items: start;
}

.ad-package__deliverables ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ad-package__deliverables li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  padding: 0.45rem 0;
}

.ad-package__deliverables li i,
.ad-package__deliverables li svg {
  color: var(--mint);
  flex-shrink: 0;
  opacity: 0.7;
}

.ad-package__pricing {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ad-package__year {
  padding: 1.5rem;
  border: 1px solid var(--dim);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
}

.ad-package__year--featured {
  border-color: var(--mint);
  background: rgba(124, 255, 196, 0.04);
}

.ad-package__year-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mint);
  margin-bottom: 0.5rem;
}

.ad-package__price {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
}

.ad-package__price span {
  font-size: 0.5em;
  font-weight: 600;
  color: var(--muted);
}

.ad-package__basis {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

/* === Conclusion Slide === */
.conclusion {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.5rem;
}

.conclusion__signal {
  margin-bottom: 0.5rem;
}

.conclusion__highlight {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--muted);
  max-width: 36rem;
  line-height: 1.5;
  font-style: italic;
}

.conclusion__email {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
}

.conclusion__email:hover {
  text-decoration: underline;
}

.conclusion__links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.conclusion__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--dim);
  border-radius: 8px;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.conclusion__link:hover {
  border-color: var(--mint);
  color: var(--white);
  background: rgba(124, 255, 196, 0.05);
}

.conclusion__link svg,
.conclusion__link i {
  color: var(--mint);
}

/* === Chapter Bar === */
.chapter-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  height: 32px;
}

.chapter-segment {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  cursor: pointer;
}

.chapter-segment__label {
  font-family: 'Space Mono', monospace;
  font-size: 0.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.3s ease;
}

.chapter-segment--future .chapter-segment__label {
  color: rgba(255, 255, 255, 0.15);
}

.chapter-segment--past .chapter-segment__label {
  color: rgba(124, 255, 196, 0.4);
}

.chapter-segment--active .chapter-segment__label {
  color: var(--mint);
}

.chapter-segment__track {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.06);
}

.chapter-segment__fill {
  height: 100%;
  width: 0%;
  border-radius: 0 1px 1px 0;
  transition: width 0.4s ease-out, background 0.3s ease;
}

.chapter-segment--past .chapter-segment__fill {
  width: 100%;
  background: rgba(124, 255, 196, 0.3);
}

.chapter-segment--active .chapter-segment__fill {
  background: var(--mint);
  box-shadow: 0 0 8px rgba(124, 255, 196, 0.5);
}

.chapter-segment--future .chapter-segment__fill {
  width: 0%;
  background: transparent;
}

/* === Progress Dots === */
.progress {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 100;
  align-items: center;
}

.progress__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dim);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.progress__dot:hover {
  background: var(--muted);
  transform: scale(1.3);
}

.progress__dot--active {
  background: var(--mint);
  transform: scale(1.3);
  box-shadow: 0 0 8px rgba(124, 255, 196, 0.5);
}

.slide-counter {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  font-size: 0.8rem;
  color: var(--muted);
  z-index: 100;
  font-variant-numeric: tabular-nums;
}

/* ===========================
   Chapter Divider Slide
   =========================== */
.chapter-divider {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  width: 100%;
  height: 100%;
  padding: 0 6rem 6rem;
}

/* Giant ghost numeral */
.chapter-divider__ghost {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(14rem, 30vw, 24rem);
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px rgba(124, 255, 196, 0.12);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

/* Content anchored bottom-left */
.chapter-divider__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.chapter-divider__label {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--mint);
  opacity: 0.7;
}

.chapter-divider__rule {
  width: 48px;
  height: 2px;
  background: var(--mint);
  opacity: 0.5;
}

.chapter-divider__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.chapter-divider__subtitle {
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 400;
  color: var(--muted);
  max-width: 30rem;
}

/* Slower animation cascade for chapter dividers */
.chapter-divider .anim {
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* ===========================
   Proposal Lockup
   =========================== */
.proposal-lockup {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
  margin-bottom: 2rem;
  width: 100%;
  max-width: 52rem;
}

.proposal-lockup__bs {
  justify-self: end;
  color: var(--white);
  height: clamp(28px, 4.5vw, 48px);
  width: auto;
}

.proposal-lockup__x {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 300;
  color: var(--dim);
  user-select: none;
  justify-self: center;
}

.proposal-lockup__partner {
  justify-self: start;
  color: var(--white);
  display: flex;
  align-items: center;
}

.proposal-lockup__partner img {
  height: clamp(28px, 4.5vw, 48px);
  width: auto;
  display: block;
}

/* Fallback text when no logo provided */
.proposal-lockup__partner-name {
  font-size: clamp(1.6rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  white-space: nowrap;
  line-height: 1;
}

/* ===========================
   Content Strategy
   =========================== */
.content-formats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  max-width: 56rem;
  width: 100%;
  margin-bottom: 1.5rem;
}

.content-format {
  padding: 1.2rem;
  border: 1px solid var(--dim);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.content-format__icon {
  color: var(--mint);
  margin-bottom: 0.5rem;
}

.content-format__title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.content-format__desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.4;
}

.content-format__list {
  list-style: none;
  margin-top: 0.2rem;
}

.content-format__list li {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
  padding-left: 0.8rem;
  position: relative;
}

.content-format__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--dim);
}

.content-platforms {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  color: var(--muted);
}

.content-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 56rem;
  width: 100%;
}

.content-section {
  padding: 1.2rem;
  border: 1px solid var(--dim);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.content-section__label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mint);
  margin-bottom: 0.75rem;
}

.content-section__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.partner-tag {
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  border: 1px solid var(--dim);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
}

.content-section__note {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.4;
}

.sponsor-row {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.sponsor {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.sponsor__logo {
  color: var(--white);
  flex-shrink: 0;
}

.sponsor__name {
  font-size: 0.9rem;
  font-weight: 600;
}

.content-connectors {
  width: 100%;
  max-width: 56rem;
  height: 32px;
  margin: -0.25rem 0;
}

.content-connectors__svg {
  width: 100%;
  height: 100%;
}

/* === Utility === */
.mt-1 { margin-top: 0.5rem; }

/* === Responsive === */
@media (max-width: 768px) {
  .slide { padding: 2rem 1.5rem; }
  .pipeline { flex-wrap: wrap; justify-content: center; }
  .collab__row { grid-template-columns: 1fr; gap: 1.5rem 0; }
  .collab__bridge { min-width: unset; }
  .collab__bridge svg { width: 160px; }
  .ad-package { grid-template-columns: 1fr; }
  .conclusion__links { flex-direction: column; align-items: center; }
  .chapter-divider { padding: 0 2rem 3rem; }
  .chapter-divider__ghost { font-size: clamp(8rem, 20vw, 14rem); }
  .proposal-lockup { gap: 0.75rem; }
  .proposal-lockup__bs { height: clamp(22px, 4vw, 32px); }
  .content-formats { grid-template-columns: 1fr; }
  .content-bottom { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .slide { padding: 1.5rem 1rem; }
  .chapter-divider { padding: 0 1.5rem 2.5rem; }
}
