body.cc-demo {
  --cc-demo-banner-h: 68px;
}

.cc-demo-banner {
  display: none;
}

body.cc-demo:not([data-route="landing"]) .cc-demo-banner {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  width: 100%;
  height: var(--cc-demo-banner-h);
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--primary-color);
  font-family: "Outfit", system-ui, sans-serif;
}

body.cc-demo:not([data-route="landing"]) {
  padding-top: calc(var(--cc-demo-banner-h) + 3.5rem + 1px);
}
body.cc-demo:not([data-route="landing"]) .navbar {
  top: var(--cc-demo-banner-h);
}

body.cc-demo .navbar-home-btn {
  display: none;
}

.cc-demo-banner-inner {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
}

.cc-demo-banner-tag {
  align-self: stretch;
  display: flex;
  align-items: center;
  gap: 11px;
  flex: none;
  padding: 0 32px 0 40px;
  margin-right: -10px;
  background: #0a0f1a;
  color: var(--primary-color);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  clip-path: polygon(0 0, 100% 0, calc(100% - 18px) 100%, 0 100%);
}

.cc-demo-banner-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  position: relative;
  flex: none;
  background: var(--primary-color);
  color: var(--primary-color);
  box-shadow: 0 0 8px var(--primary-color);
}
.cc-demo-banner-dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  opacity: 0.5;
  animation: cc-demo-ping 1.8s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}
@keyframes cc-demo-ping {
  0% {
    transform: scale(0.6);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cc-demo-banner-dot::after {
    animation: none;
  }
}

.cc-demo-banner-main {
  display: flex;
  align-items: center;
  gap: 22px;
  flex: 1;
  min-width: 0;
  padding: 0 40px 0 30px;
}

.cc-demo-banner-text {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: #0a2e12;
}
.cc-demo-banner-text b {
  color: #062013;
  font-weight: 700;
}

.cc-demo-banner-spacer {
  flex: 1;
}

.cc-demo-banner-cta {
  display: inline-flex;
  align-items: center;
  flex: none;
  padding: 11px 22px;
  border: none;
  border-radius: 9999px;
  background: #0b1f15;
  color: #fff;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s;
}
.cc-demo-banner-cta:hover {
  transform: translateY(-1px);
  background: #13311f;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

.cc-demo-banner-link {
  flex: none;
  display: inline-flex;
  align-items: center;
  padding: 11px 4px;
  border: none;
  background: transparent;
  color: #0b1f15;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
  opacity: 0.82;
  transition: opacity 0.2s ease;
}
.cc-demo-banner-link:hover {
  opacity: 1;
}

@media (max-width: 1023px) {
  body.cc-demo {
    --cc-demo-banner-h: 56px;
  }
  .cc-demo-banner-tag {
    padding: 0 24px 0 28px;
    font-size: 12px;
    letter-spacing: 0.14em;
  }
  .cc-demo-banner-main {
    padding: 0 22px 0 22px;
    gap: 16px;
  }
  .cc-demo-banner-text {
    display: none;
  }
}
