:root {
  color-scheme: dark;
}

html,
body.presentation-page {
  min-height: 100%;
}

body.presentation-page {
  background: #07111f;
  margin: 0;
}

.presentation-desktop {
  display: none;
}

.presentation-mobile-fallback {
  align-items: center;
  background:
    radial-gradient(circle at 80% 8%, rgba(108, 226, 210, 0.12), transparent 34%),
    #07111f;
  color: #f8fbfd;
  display: flex;
  min-height: 100vh;
  padding: 32px 22px;
}

.presentation-mobile-fallback__card {
  background: rgba(15, 34, 52, 0.9);
  border: 1px solid rgba(135, 167, 187, 0.24);
  border-radius: 24px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.22);
  margin: 0 auto;
  max-width: 560px;
  padding: 32px;
  text-align: center;
}

.presentation-mobile-fallback img {
  height: 54px;
  margin-bottom: 22px;
  width: 54px;
}

.presentation-mobile-fallback h1 {
  font-size: clamp(1.75rem, 8vw, 2.5rem);
  line-height: 1.08;
  margin: 0 0 18px;
}

.presentation-mobile-fallback p {
  color: #becbd5;
  line-height: 1.6;
  margin: 0 0 26px;
}

.presentation-mobile-fallback .button {
  justify-content: center;
}

@media (min-width: 1024px) {
  html,
  body.presentation-page {
    height: 100%;
    overflow: hidden;
  }

  .presentation-mobile-fallback {
    display: none;
  }

  .presentation-desktop {
    display: block;
    height: 100vh;
    width: 100vw;
  }
}

.presentation-stage {
  background: #050d18;
  color: #f8fbfd;
  height: 100%;
  isolation: isolate;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.presentation-stage:fullscreen {
  height: 100vh;
  width: 100vw;
}

.presentation-start,
.presentation-finish {
  align-items: center;
  background:
    radial-gradient(circle at 83% 18%, rgba(103, 227, 210, 0.14), transparent 27%),
    radial-gradient(circle at 16% 88%, rgba(91, 114, 255, 0.13), transparent 30%),
    #071321;
  inset: 0;
  justify-content: center;
  position: absolute;
  z-index: 20;
}

.presentation-start {
  display: flex;
  padding: clamp(40px, 6vw, 92px);
}

.presentation-start[hidden],
.presentation-finish[hidden],
.presentation-slide-view[hidden] {
  display: none;
}

.presentation-start__content {
  max-width: 980px;
  text-align: center;
}

.presentation-start__brand {
  align-items: center;
  display: inline-flex;
  font-size: 1.15rem;
  font-weight: 750;
  gap: 12px;
  margin-bottom: clamp(30px, 5vh, 58px);
}

.presentation-start__brand img {
  height: 46px;
  width: 46px;
}

.presentation-kicker {
  color: #6ce2d2;
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.presentation-start h1 {
  font-size: clamp(3.4rem, 6.2vw, 7.1rem);
  letter-spacing: -0.055em;
  line-height: 0.92;
  margin: 0 auto 28px;
  max-width: 1100px;
}

.presentation-start__lead {
  color: #bbc9d5;
  font-size: clamp(1.1rem, 1.6vw, 1.45rem);
  line-height: 1.55;
  margin: 0 auto 36px;
  max-width: 740px;
}

.presentation-start__button {
  align-items: center;
  background: #6ce2d2;
  border: 0;
  border-radius: 999px;
  color: #071321;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  gap: 12px;
  justify-content: center;
  min-height: 56px;
  padding: 0 30px;
}

.presentation-start__hint {
  color: #7890a2;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  margin: 18px 0 0;
  text-transform: uppercase;
}

.presentation-slide-view {
  height: 100%;
  position: relative;
  width: 100%;
}

.presentation-canvas {
  align-items: center;
  display: flex;
  height: 100%;
  justify-content: center;
  width: 100%;
}

.presentation-frame {
  align-items: center;
  aspect-ratio: 16 / 9;
  background: #fff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
  display: flex;
  height: min(100vh, 56.25vw);
  justify-content: center;
  max-height: 100vh;
  max-width: 100vw;
  width: min(100vw, 177.7778vh);
}

.presentation-frame picture,
.presentation-frame img {
  display: block;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.presentation-control {
  opacity: 0.2;
  transition: opacity 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.presentation-stage.controls-visible .presentation-control,
.presentation-control:focus-visible,
.presentation-control:hover {
  opacity: 1;
}

.presentation-topbar {
  align-items: center;
  display: flex;
  inset: 20px 24px auto;
  justify-content: space-between;
  pointer-events: none;
  position: absolute;
  z-index: 8;
}

.presentation-topbar__brand {
  align-items: center;
  background: rgba(4, 13, 24, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.75rem;
  font-weight: 750;
  gap: 8px;
  padding: 7px 12px 7px 8px;
  pointer-events: auto;
}

.presentation-topbar__brand img {
  height: 24px;
  width: 24px;
}

.presentation-topbar button,
.presentation-arrow {
  background: rgba(4, 13, 24, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  cursor: pointer;
  font: inherit;
  pointer-events: auto;
}

.presentation-topbar button {
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 750;
  min-height: 40px;
  padding: 0 17px;
}

.presentation-arrow {
  align-items: center;
  border-radius: 50%;
  display: flex;
  font-size: 1.55rem;
  height: 52px;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  z-index: 8;
}

.presentation-arrow--previous {
  left: 24px;
}

.presentation-arrow--next {
  right: 24px;
}

.presentation-arrow:disabled {
  cursor: default;
  opacity: 0.06;
}

.presentation-bottom {
  align-items: center;
  background: rgba(4, 13, 24, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  bottom: 20px;
  display: grid;
  gap: 14px;
  grid-template-columns: auto minmax(160px, 28vw);
  left: 50%;
  padding: 10px 18px;
  position: absolute;
  transform: translateX(-50%);
  z-index: 8;
}

.presentation-counter {
  color: #fff;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  min-width: 48px;
}

.presentation-progress {
  appearance: none;
  background: rgba(255, 255, 255, 0.16);
  border: 0;
  border-radius: 999px;
  height: 4px;
  overflow: hidden;
  width: 100%;
}

.presentation-progress::-webkit-progress-bar {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}

.presentation-progress::-webkit-progress-value {
  background: #6ce2d2;
  border-radius: 999px;
}

.presentation-progress::-moz-progress-bar {
  background: #6ce2d2;
  border-radius: 999px;
}

.presentation-announcement {
  height: 1px;
  overflow: hidden;
  position: absolute;
  width: 1px;
  clip-path: inset(50%);
}

.presentation-finish {
  display: flex;
  padding: clamp(26px, 3.5vw, 52px);
}

.presentation-finish__content {
  display: grid;
  gap: clamp(18px, 2.2vh, 28px);
  grid-template-rows: auto minmax(0, 1fr);
  height: 100%;
  max-height: 920px;
  max-width: 1660px;
  width: 100%;
}

.presentation-finish__header {
  align-items: end;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) minmax(520px, 0.9fr);
}

.presentation-finish h2 {
  font-size: clamp(2.4rem, 4vw, 5.2rem);
  letter-spacing: -0.045em;
  line-height: 0.95;
  margin: 0;
}

.presentation-finish__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: flex-end;
}

.presentation-finish__actions a,
.presentation-finish__actions button {
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #f8fbfd;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 750;
  justify-content: center;
  min-height: 40px;
  padding: 0 15px;
  text-decoration: none;
}

.presentation-finish__actions .primary {
  background: #6ce2d2;
  border-color: #6ce2d2;
  color: #071321;
}

.presentation-demo-overview {
  display: grid;
  gap: clamp(10px, 1.4vw, 18px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  min-height: 0;
}

.presentation-demo-card {
  align-items: center;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  color: #f8fbfd;
  display: grid;
  gap: clamp(12px, 1.3vw, 20px);
  grid-template-columns: clamp(92px, 10vw, 168px) minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
  padding: 10px;
  text-decoration: none;
}

.presentation-demo-card:hover,
.presentation-demo-card:focus-visible,
.presentation-finish__actions a:hover,
.presentation-finish__actions a:focus-visible,
.presentation-finish__actions button:hover,
.presentation-finish__actions button:focus-visible {
  border-color: rgba(108, 226, 210, 0.74);
}

.presentation-demo-card img {
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  display: block;
  grid-column: 1;
  grid-row: 1 / 3;
  height: 100%;
  max-height: 92px;
  object-fit: cover;
  object-position: top;
  width: 100%;
}

.presentation-demo-card span {
  align-self: end;
  color: #8fa5b5;
  display: block;
  font-size: clamp(0.6rem, 0.72vw, 0.74rem);
  grid-column: 2;
  grid-row: 1;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.presentation-demo-card strong {
  align-self: start;
  display: block;
  font-size: clamp(0.88rem, 1vw, 1.12rem);
  grid-column: 2;
  grid-row: 2;
  line-height: 1.15;
}

@media (max-height: 780px) and (min-width: 1024px) {
  .presentation-finish {
    padding: 20px 28px;
  }

  .presentation-finish__content {
    gap: 15px;
  }

  .presentation-finish__header {
    gap: 18px;
  }

  .presentation-finish h2 {
    font-size: clamp(2.2rem, 3.5vw, 4.2rem);
  }

  .presentation-demo-overview {
    gap: 9px;
  }

  .presentation-demo-card {
    padding: 7px;
  }

  .presentation-demo-card img {
    max-height: 68px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .presentation-control {
    transition: none;
  }
}
