/* ============================================================
   Headset Sales Deck — CSS Design System
   ============================================================ */

/* ----------------------------------------------------------
   1. Google Fonts
   ---------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

/* ----------------------------------------------------------
   2. CSS Custom Properties
   ---------------------------------------------------------- */
:root {
  /* Brand colors */
  --navy: #07005B;
  --deep-blue: #232E83;
  --purple: #6862C7;
  --orange: #F15D22;
  --lighter-orange: #F58025;
  --red: #DA1A32;
  --deep-red: #AE132A;
  --dark-red: #A30C33;
  --magenta: #B90E81;
  --dark-magenta: #86005B;
  --wine: #6F1931;
  --green: #3EB280;
  --teal: #1B7A75;

  /* Neutrals */
  --dark-1: #252525;
  --dark-2: #2B2B2B;
  --dark-3: #313131;
  --warm-gray: #51444D;

  /* Light neutrals */
  --light-gray: #CCCCCC;
  --off-white: #F2F2F2;
  --lavender: #F0F0FA;
  --mint: #EEF8F4;
  --frost: #F8FBFB;
  --peach: #FEF3EC;

  /* Semantic tokens */
  --heading-color: var(--navy);
  --section-heading-color: var(--purple);
  --body-color: var(--dark-1);
  --secondary-color: var(--warm-gray);
  --slide-bg: var(--lavender);
  --card-bg: #FFFFFF;
  --badge-bg: var(--purple);
  --badge-color: #FFFFFF;
  --stat-color: var(--deep-blue);

  /* Card borders */
  --card-border-1: var(--purple);
  --card-border-2: var(--teal);
  --card-border-3: var(--orange);
  --card-border-4: var(--magenta);

  /* Slide dimensions */
  --slide-width: 1280px;
  --slide-height: 720px;
}

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

body {
  overflow: hidden;
  background: #000;
  font-family: 'Poppins', sans-serif;
}

/* ----------------------------------------------------------
   4. Deck Container
   ---------------------------------------------------------- */
.deck {
  position: relative;
  width: 100vw;
  height: 100vh;
}

/* ----------------------------------------------------------
   5. Slide Base
   ---------------------------------------------------------- */
.slide {
  position: absolute;
  width: 100vw;
  height: 100vh;
  display: none;
  justify-content: center;
  align-items: center;
  background: var(--slide-bg);
}

.slide.active {
  display: flex;
}

.slide-inner {
  width: var(--slide-width);
  height: var(--slide-height);
  padding: 60px 80px;
  position: relative;
  overflow: hidden;
}

/* ----------------------------------------------------------
   6. Brandmark
   ---------------------------------------------------------- */
.brandmark {
  position: absolute;
  bottom: 24px;
  right: 32px;
  height: 28px;
  width: auto;
  z-index: 10;
}

.title-logos {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.full-logo {
  display: block;
  height: 36px;
  width: auto;
  object-fit: contain;
  object-position: left;
}

.title-logo-divider {
  display: block;
  width: 1px;
  height: 28px;
  background: var(--light-gray);
}

.client-logo {
  display: block;
  height: 36px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  object-position: left;
}

/* ----------------------------------------------------------
   7. Badge Pill
   ---------------------------------------------------------- */
.badge {
  display: inline-block;
  background: var(--badge-bg);
  color: var(--badge-color);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 16px;
}

/* ----------------------------------------------------------
   8. Typography
   ---------------------------------------------------------- */
.slide-headline {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--section-heading-color);
  margin-bottom: 20px;
}

.slide-intro {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--body-color);
  margin-bottom: 28px;
  max-width: 960px;
}

/* ----------------------------------------------------------
   9. Title Slide
   ---------------------------------------------------------- */
.slide--title {
  background: #FFFFFF;
}

.slide--title .slide-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 48px;
}

.title-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 680px;
}

.title-hero {
  flex: 0 0 400px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 16px;
}

.title-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

/* Fallback gradient when no hero image */
.slide--title:not(:has(.title-hero))::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 50%;
  background: linear-gradient(
    135deg,
    transparent 0%,
    rgba(104, 98, 199, 0.15) 25%,
    rgba(104, 98, 199, 0.35) 50%,
    rgba(35, 46, 131, 0.5) 100%
  );
  pointer-events: none;
}

.title-headline {
  font-size: 54px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--navy);
  max-width: 640px;
  margin-bottom: 24px;
}

.title-subpoints {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: var(--secondary-color);
  line-height: 1.4;
}

.title-subpoints span::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple);
  margin-right: 10px;
  vertical-align: middle;
  opacity: 0.5;
}

/* ----------------------------------------------------------
   10. Card Grid (2x2)
   ---------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 28px 32px;
  border: 1px solid var(--light-gray);
  border-left: 4px solid var(--card-border-1);
}

.card:nth-child(1) { border-left-color: var(--card-border-1); }
.card:nth-child(2) { border-left-color: var(--card-border-2); }
.card:nth-child(3) { border-left-color: var(--card-border-3); }
.card:nth-child(4) { border-left-color: var(--card-border-4); }

.card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.card-body {
  font-size: 14px;
  color: var(--warm-gray);
  line-height: 1.5;
}

/* ----------------------------------------------------------
   11. Two-Column List
   ---------------------------------------------------------- */
.two-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
}

.column-heading {
  font-size: 22px;
  font-weight: 600;
  color: var(--purple);
  margin-bottom: 20px;
}

.slide-divider {
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--magenta), var(--purple));
  border: none;
  margin-bottom: 24px;
}

.list-item {
  border-left: 3px solid var(--purple);
  padding: 12px 0 12px 16px;
  margin-bottom: 12px;
}

.list-item-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
}

.list-item-body {
  font-size: 13px;
  color: var(--warm-gray);
}

/* ----------------------------------------------------------
   12. Three Cards with Icons
   ---------------------------------------------------------- */
.three-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.icon-card {
  background: var(--off-white);
  border-radius: 12px;
  text-align: center;
  padding: 32px 24px;
  border-top: 3px solid var(--purple);
}

.icon-card:nth-child(1) { border-top-color: var(--purple); }
.icon-card:nth-child(2) { border-top-color: var(--teal); }
.icon-card:nth-child(3) { border-top-color: var(--magenta); }

.icon-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  background: rgba(104, 98, 199, 0.15);
}

.icon-card:nth-child(1) .icon-card-icon { background: rgba(104, 98, 199, 0.15); }
.icon-card:nth-child(2) .icon-card-icon { background: rgba(27, 122, 117, 0.15); }
.icon-card:nth-child(3) .icon-card-icon { background: rgba(185, 14, 129, 0.15); }

.icon-card-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 12px;
}

.icon-card-body {
  font-size: 13px;
  color: var(--warm-gray);
  line-height: 1.55;
}

/* ----------------------------------------------------------
   13. Stats Row
   ---------------------------------------------------------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
}

.stat-arrow {
  font-size: 28px;
  color: var(--purple);
  opacity: 0.5;
}

.stat-value {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 4px;
  line-height: 1.1;
}

.stats-row > *:nth-child(1) .stat-value { color: var(--purple); }
.stats-row > *:nth-child(2) .stat-value { color: var(--deep-blue); }
.stats-row > *:nth-child(3) .stat-value { color: var(--teal); }
.stats-row > *:nth-child(4) .stat-value { color: var(--magenta); }

.stat-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.stat-desc {
  font-size: 12px;
  color: var(--warm-gray);
  line-height: 1.5;
}

/* ----------------------------------------------------------
   14. Numbered Steps
   ---------------------------------------------------------- */
.slide--steps {
  background: linear-gradient(180deg, var(--lavender) 0%, #E8E8F5 100%);
}

.slide--steps .slide-headline {
  color: var(--heading-color);
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.step {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: flex-start;
}

.step-number {
  width: 56px;
  height: 56px;
  min-width: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 24px;
  font-weight: 800;
  border-radius: 8px;
  transform: skewX(-6deg);
}

.step:nth-child(1) .step-number {
  background: linear-gradient(135deg, var(--purple), var(--deep-blue));
}

.step:nth-child(2) .step-number {
  background: linear-gradient(135deg, var(--teal), var(--green));
}

.step:nth-child(3) .step-number {
  background: linear-gradient(135deg, var(--magenta), var(--purple));
}

.step-content {
  padding-top: 4px;
}

.step-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.step-desc {
  font-size: 14px;
  color: var(--warm-gray);
  line-height: 1.5;
}

/* ----------------------------------------------------------
   15. Statement Slide
   ---------------------------------------------------------- */
.slide--statement {
  background: #FFFFFF;
}

.slide--statement::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 50%;
  background: linear-gradient(
    135deg,
    transparent 0%,
    rgba(104, 98, 199, 0.15) 25%,
    rgba(104, 98, 199, 0.35) 50%,
    rgba(35, 46, 131, 0.5) 100%
  );
  pointer-events: none;
}

.statement-text {
  font-size: 42px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  max-width: 720px;
}

/* ----------------------------------------------------------
   15b. Prospect Spotlight
   ---------------------------------------------------------- */
.slide--spotlight {
  background: #FFFFFF;
}

.spotlight-layout {
  display: flex;
  gap: 48px;
  align-items: center;
}

.spotlight-content {
  flex: 1;
}

.spotlight-logo-area {
  flex: 0 0 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spotlight-client-logo {
  max-width: 180px;
  max-height: 120px;
  object-fit: contain;
}

.spotlight-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 8px;
}

.spotlight-fact {
  padding: 16px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.spotlight-fact-value {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: var(--purple);
  margin-bottom: 4px;
}

.spotlight-fact-label {
  font-size: 13px;
  color: var(--secondary-color);
  line-height: 1.4;
}

/* Animation support */
.slide .spotlight-client-logo,
.slide .spotlight-fact {
  opacity: 0;
}

.slide.active .spotlight-client-logo {
  animation: fadeIn 0.5s ease-out 0.2s forwards;
}

.slide.active .spotlight-fact:nth-child(1) { animation: fadeUp 0.35s ease-out 0.25s forwards; }
.slide.active .spotlight-fact:nth-child(2) { animation: fadeUp 0.35s ease-out 0.35s forwards; }
.slide.active .spotlight-fact:nth-child(3) { animation: fadeUp 0.35s ease-out 0.45s forwards; }
.slide.active .spotlight-fact:nth-child(4) { animation: fadeUp 0.35s ease-out 0.55s forwards; }

/* ----------------------------------------------------------
   16. Callout Box
   ---------------------------------------------------------- */
.callout-box {
  background: rgba(104, 98, 199, 0.08);
  border-radius: 12px;
  padding: 16px 24px;
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.callout-text {
  font-size: 13px;
  color: var(--warm-gray);
}

/* ----------------------------------------------------------
   16b. Case Study Template
   ---------------------------------------------------------- */
.case-study-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.case-quote {
  border-left: 4px solid var(--purple);
  padding: 20px 24px;
  background: rgba(104, 98, 199, 0.04);
  border-radius: 0 12px 12px 0;
}

.case-quote-text {
  font-size: 16px;
  font-weight: 500;
  font-style: italic;
  color: var(--heading-color);
  line-height: 1.55;
  margin-bottom: 12px;
}

.case-quote-cite {
  font-size: 13px;
  font-weight: 600;
  color: var(--purple);
  font-style: normal;
}

.case-outcomes {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.case-outcome {
  padding: 14px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.case-outcome:last-child {
  border-bottom: none;
}

.case-outcome-metric {
  font-size: 22px;
  font-weight: 800;
  color: var(--purple);
  margin-bottom: 4px;
}

.case-outcome-label {
  font-size: 13px;
  color: var(--secondary-color);
  display: block;
  line-height: 1.4;
}

/* Animation support for case study elements */
.slide .case-quote,
.slide .case-outcome {
  opacity: 0;
}

.slide.active .case-quote {
  animation: fadeUp 0.5s ease-out 0.3s forwards;
}

.slide.active .case-outcome:nth-child(1) { animation: fadeUp 0.35s ease-out 0.3s forwards; }
.slide.active .case-outcome:nth-child(2) { animation: fadeUp 0.35s ease-out 0.4s forwards; }
.slide.active .case-outcome:nth-child(3) { animation: fadeUp 0.35s ease-out 0.5s forwards; }
.slide.active .case-outcome:nth-child(4) { animation: fadeUp 0.35s ease-out 0.6s forwards; }

/* ----------------------------------------------------------
   17. Progress Bar
   ---------------------------------------------------------- */
.progress-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(0, 0, 0, 0.08);
  z-index: 100;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--purple), var(--magenta), var(--orange));
  transition: width 0.3s ease;
}

/* ----------------------------------------------------------
   18. Slide Counter
   ---------------------------------------------------------- */
.slide-counter {
  position: fixed;
  bottom: 20px;
  right: 28px;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.3);
  font-weight: 500;
  z-index: 100;
}

/* ----------------------------------------------------------
   19. Slide Entry Animations
   ---------------------------------------------------------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

/* Base: hide all animated children until slide is active */
.slide .badge,
.slide .slide-headline,
.slide .slide-intro,
.slide .slide-divider,
.slide .card,
.slide .icon-card,
.slide .stat,
.slide .list-item,
.slide .step,
.slide .callout-box,
.slide .statement-text,
.slide .column-heading,
.slide .title-headline,
.slide .title-subpoints,
.slide .full-logo,
.slide .client-logo,
.slide .title-logo-divider,
.slide .title-hero {
  opacity: 0;
}

/* Animate when slide is active */
.slide.active .badge {
  animation: fadeUp 0.4s ease-out 0.05s forwards;
}

.slide.active .slide-headline,
.slide.active .title-headline {
  animation: fadeUp 0.5s ease-out 0.15s forwards;
}

.slide.active .slide-intro,
.slide.active .slide-divider {
  animation: fadeUp 0.5s ease-out 0.25s forwards;
}

.slide.active .full-logo,
.slide.active .client-logo,
.slide.active .title-logo-divider {
  animation: fadeIn 0.4s ease-out 0.05s forwards;
}

.slide.active .title-subpoints {
  animation: fadeUp 0.5s ease-out 0.35s forwards;
}

.slide.active .title-hero {
  animation: fadeIn 0.6s ease-out 0.2s forwards;
}

.slide.active .statement-text {
  animation: fadeUp 0.6s ease-out 0.2s forwards;
}

/* Cards stagger in */
.slide.active .card:nth-child(1),
.slide.active .icon-card:nth-child(1) { animation: scaleIn 0.4s ease-out 0.2s forwards; }
.slide.active .card:nth-child(2),
.slide.active .icon-card:nth-child(2) { animation: scaleIn 0.4s ease-out 0.3s forwards; }
.slide.active .card:nth-child(3),
.slide.active .icon-card:nth-child(3) { animation: scaleIn 0.4s ease-out 0.4s forwards; }
.slide.active .card:nth-child(4) { animation: scaleIn 0.4s ease-out 0.5s forwards; }

/* Stats stagger in */
.slide.active .stat:nth-child(1) { animation: fadeUp 0.4s ease-out 0.2s forwards; }
.slide.active .stat:nth-child(2) { animation: fadeUp 0.4s ease-out 0.3s forwards; }
.slide.active .stat:nth-child(3) { animation: fadeUp 0.4s ease-out 0.4s forwards; }
.slide.active .stat:nth-child(4) { animation: fadeUp 0.4s ease-out 0.5s forwards; }

/* List items stagger in */
.slide.active .column-heading { animation: fadeUp 0.4s ease-out 0.25s forwards; }
.slide.active .list-item:nth-child(1) { animation: fadeUp 0.35s ease-out 0.3s forwards; }
.slide.active .list-item:nth-child(2) { animation: fadeUp 0.35s ease-out 0.38s forwards; }
.slide.active .list-item:nth-child(3) { animation: fadeUp 0.35s ease-out 0.46s forwards; }
.slide.active .list-item:nth-child(4) { animation: fadeUp 0.35s ease-out 0.54s forwards; }

/* Steps stagger in */
.slide.active .step:nth-child(1) { animation: fadeUp 0.4s ease-out 0.25s forwards; }
.slide.active .step:nth-child(2) { animation: fadeUp 0.4s ease-out 0.4s forwards; }
.slide.active .step:nth-child(3) { animation: fadeUp 0.4s ease-out 0.55s forwards; }

.slide.active .callout-box { animation: fadeIn 0.4s ease-out 0.65s forwards; }

/* ----------------------------------------------------------
   20. Responsive Scaling
   ---------------------------------------------------------- */
@media (max-aspect-ratio: 16/9) {
  .slide-inner {
    transform: scale(calc(100vw / 1280));
    transform-origin: center center;
  }
}

@media (min-aspect-ratio: 16/9) {
  .slide-inner {
    transform: scale(calc(100vh / 720));
    transform-origin: center center;
  }
}
