:root {
  --next-update-accent: #00c5ab;
  --next-update-bg: #080d0c;
  --next-update-line: rgba(255, 255, 255, .18);
  --next-update-text: #f4f7f6;
  --next-update-muted: rgba(244, 247, 246, .66);
}

.language-toggle.is-coming-soon {
  position: relative;
  width: 54px;
  min-width: 54px;
  height: 50px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-color: rgba(0, 197, 171, .46);
  cursor: pointer;
}

.language-toggle.is-coming-soon::after {
  content: '';
  position: absolute;
  top: 7px;
  right: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--next-update-accent);
  box-shadow: 0 0 10px rgba(0, 197, 171, .8);
}

.language-toggle.is-coming-soon .feature-preview-code {
  color: var(--next-update-text);
  font: 800 11px/1 var(--body, Arial, sans-serif);
  letter-spacing: .08em;
}

.language-toggle.is-coming-soon .feature-preview-soon {
  color: var(--next-update-accent);
  font: 700 7px/1 var(--mono, monospace);
  letter-spacing: .13em;
}

.feature-preview {
  position: fixed;
  top: 82px;
  right: max(18px, calc((100vw - 1400px) / 2));
  z-index: 90000;
  width: min(360px, calc(100vw - 32px));
  padding: 24px;
  border: 1px solid var(--next-update-line);
  background:
    radial-gradient(circle at 100% 0, rgba(0, 197, 171, .15), transparent 42%),
    rgba(8, 13, 12, .98);
  color: var(--next-update-text);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .62);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}

.feature-preview.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}

.feature-preview__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--next-update-line);
  background: transparent;
  color: var(--next-update-text);
  cursor: pointer;
  font: 400 24px/1 Arial, sans-serif;
}

.feature-preview__close:hover,
.feature-preview__close:focus-visible {
  border-color: var(--next-update-accent);
  background: var(--next-update-accent);
  color: #04100e;
}

.feature-preview__close:focus-visible,
.language-toggle.is-coming-soon:focus-visible {
  outline: 2px solid var(--next-update-accent);
  outline-offset: 3px;
}

.feature-preview__kicker {
  display: block;
  margin: 0 48px 13px 0;
  color: var(--next-update-accent);
  font: 700 10px/1.2 var(--mono, monospace);
  letter-spacing: .18em;
  text-transform: uppercase;
}

.feature-preview h2 {
  max-width: 280px;
  margin: 0 0 12px;
  color: var(--next-update-text);
  font: 700 clamp(20px, 3vw, 27px)/1.05 var(--head, Arial, sans-serif);
  letter-spacing: -.025em;
  text-transform: uppercase;
}

.feature-preview p {
  margin: 0;
  color: var(--next-update-muted);
  font: 400 14px/1.55 var(--body, Arial, sans-serif);
}

.feature-preview__features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.feature-preview__feature {
  padding: 8px 10px;
  border: 1px solid rgba(0, 197, 171, .3);
  color: var(--next-update-text);
  font: 700 9px/1 var(--mono, monospace);
  letter-spacing: .1em;
  text-transform: uppercase;
}

@media (max-width: 720px) {
  .language-toggle.is-coming-soon {
    width: 54px;
    min-width: 54px;
    height: 54px;
  }

  .feature-preview {
    top: 72px;
    right: 12px;
    width: calc(100vw - 24px);
    padding: 22px;
  }
}

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