:root {
  --demo-card-bg: #0f172a;
  --demo-card-bg-2: #1e293b;
  --demo-text: #e2e8f0;
  --demo-button: #22c55e;
  --demo-button-hover: #16a34a;
  --demo-ring: rgba(34, 197, 94, 0.4);
}

.demo-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  width: 100%;
  padding: 8px 0;
  border-radius: 0;
  background: linear-gradient(135deg, var(--demo-card-bg) 0%, var(--demo-card-bg-2) 100%);
  border-bottom: 1px solid #334155;
  box-shadow: 0 10px 28px rgba(2, 6, 23, 0.35);
}

.header-inner {
  width: calc(100% - 20px);
  margin: 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.legend-wrap {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--demo-text);
  text-decoration: none;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.25;
}

.brand-link:hover {
  color: var(--demo-text);
  text-decoration: none;
  opacity: 0.94;
}

.brand-icon {
  width: 28px;
  height: 28px;
  color: #f97316;
}

.brand-text,
.brand-dot-dev {
  display: inline;
}

.brand-dot-dev {
  color: #f97316;
}

.demo-marquee {
  flex: 1 1 auto;
  min-width: 0;
  height: 34px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.32);
  position: relative;
}

.demo-marquee::before,
.demo-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 34px;
  z-index: 1;
  pointer-events: none;
}

.demo-marquee::before {
  left: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.75) 0%, rgba(15, 23, 42, 0) 100%);
}

.demo-marquee::after {
  right: 0;
  background: linear-gradient(270deg, rgba(15, 23, 42, 0.75) 0%, rgba(15, 23, 42, 0) 100%);
}

.demo-marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  color: rgba(226, 232, 240, 0.92);
  font-size: 13px;
  white-space: nowrap;
  will-change: transform;
  animation: demo-marquee-scroll 24s linear infinite;
}

.demo-marquee-group {
  display: inline-flex;
  align-items: center;
  gap: 42px;
  padding: 0 18px;
  flex-shrink: 0;
}

.demo-marquee-group span {
  position: relative;
}

.demo-marquee-group span:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -22px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(250, 204, 21, 0.95);
  transform: translateY(-50%);
}

.cta-wrap {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.buy-button {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.2px;
  color: #052e16;
  background: var(--demo-button);
  padding: 10px 18px;
  min-height: 40px;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 0 var(--demo-ring);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  animation: demo-pulse 1.6s infinite;
  line-height: 1;
  white-space: nowrap;
}

.buy-button:hover {
  background: var(--demo-button-hover);
  color: #ecfdf5;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(22, 163, 74, 0.24);
}

.buy-button:focus {
  outline: none;
  box-shadow: 0 0 0 6px rgba(187, 247, 208, 0.35);
}

@keyframes demo-marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes demo-pulse {
  0% { box-shadow: 0 0 0 0 var(--demo-ring); }
  70% { box-shadow: 0 0 0 18px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

@media (max-width: 860px) {
  .header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .legend-wrap {
    justify-content: center;
  }

  .brand-link {
    justify-content: center;
    font-size: 18px;
  }

  .cta-wrap {
    align-items: stretch;
  }

  .buy-button {
    width: 100%;
    min-height: 44px;
  }
}
