:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0c1210;
  color: #f5f7f6;
  --green: #8bcfae;
  --muted: #9aaba4;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0, rgba(75, 143, 110, 0.16), transparent 36rem),
    #0c1210;
}

a {
  color: inherit;
  text-decoration: none;
}

.demo-header {
  display: grid;
  min-height: 72px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 12px clamp(20px, 3vw, 46px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(12, 18, 16, 0.82);
  backdrop-filter: blur(12px);
}

.demo-brand {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.demo-brand img {
  width: 34px;
  height: 34px;
}

.demo-heading {
  text-align: center;
}

.demo-heading strong,
.demo-heading span {
  display: block;
}

.demo-heading strong {
  font-size: 15px;
  font-weight: 650;
}

.demo-heading span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.back-home {
  justify-self: end;
  color: #dfe8e4;
  font-size: 13px;
  font-weight: 650;
}

.back-home span {
  margin-left: 5px;
  color: var(--green);
}

.back-home:hover {
  color: var(--green);
}

.demo-stage {
  display: grid;
  height: calc(100vh - 72px);
  place-items: center;
  padding: clamp(12px, 2.2vh, 24px) clamp(12px, 2vw, 30px) clamp(18px, 3vh, 34px);
}

.video-shell {
  position: relative;
  width: min(calc(100vw - 24px), calc((100vh - 118px) * 16 / 9));
  max-width: 1760px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: #000;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.46);
}

.video-shell video {
  display: block;
  width: 100%;
  max-height: calc(100vh - 118px);
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #000;
}

.start-demo {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  border: 0;
  color: #fff;
  background: rgba(0, 0, 0, 0.54);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.start-demo[hidden] {
  display: none;
}

.play-mark {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  color: #13211c;
  background: var(--green);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.36);
}

.play-mark svg {
  width: 25px;
  height: 25px;
  fill: currentColor;
}

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 4px;
}

@media (max-width: 720px) {
  body {
    overflow: auto;
  }

  .demo-header {
    min-height: 62px;
    grid-template-columns: 1fr auto;
  }

  .demo-heading {
    display: none;
  }

  .demo-stage {
    height: calc(100vh - 62px);
    padding: 10px;
  }

  .video-shell {
    width: 100%;
    border-radius: 8px;
  }

  .video-shell video {
    max-height: calc(100vh - 82px);
  }

  .back-home {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
