/* The launch belongs to the hero, alongside the product — not above the navigation. */
.launch-countdown {
  position: relative;
  isolation: isolate;
  /* No overflow clipping: the bar's tip glow and the drifting particles must not be cut off. */
  width: 100%;
  max-width: 520px;
  margin: 28px 0;
  padding: 22px 0 20px;
  color: #f4f6fa;
  border-top: 1px solid #ffffff26;
  border-bottom: 1px solid #ffffff18;
}
.launch-countdown::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 76px;
  height: 1px;
  background: #adc9ec;
  pointer-events: none;
}
/* The light pass travels inside the full-width line, so nothing sticks out at rest. */
.launch-countdown::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #d7e8ff, transparent) no-repeat;
  background-size: 30% 100%;
  background-position: -43% 0;
  animation: launch-light-pass 2.8s .6s ease-in-out 1;
  pointer-events: none;
}
.launch-countdown-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.launch-countdown-eyebrow {
  margin: 0;
  color: #b7cbe5;
  font-size: .75rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .16em;
}
.launch-countdown-clock {
  display: grid;
  /* Four columns normally; wrap naturally when readers enlarge their text. */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 4rem), 1fr));
  row-gap: 18px;
  position: relative;
  width: 100%;
}
/* Particle layer: behind the digits, a little taller than the clock so particles can rise. */
.launch-countdown-burst {
  position: absolute;
  z-index: -1;
  top: -32px;
  left: 0;
  display: block;
  width: 100%;
  height: calc(100% + 32px);
  pointer-events: none;
}
.launch-countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  min-width: 0;
  border-left: 1px solid #ffffff1a;
}
.launch-countdown-unit:first-child { border-left: 0; }
.launch-countdown-value {
  display: block;
  min-width: 2ch;
  color: #f4f6fa;
  font-size: clamp(2.375rem, 5.1vw, 4.5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.055em;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.launch-countdown-label { color: #aeb8c8; font-size: .875rem; line-height: 1.5; }
.launch-countdown-date { margin: 0; color: #d3dae5; font-size: .9375rem; line-height: 1.6; }
.launch-countdown-date time { text-wrap: balance; }
.launch-progress-block { width: 100%; }
.launch-progress {
  position: relative;
  height: 4px;
  border-radius: 2px;
  background: #ffffff1f;
}
.launch-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: calc(var(--launch-progress, 0) * 100%);
  border-radius: inherit;
  background: var(--neon, #3dff94);
}
/* Soft glow on the tip only; the track has no overflow clipping. */
.launch-progress-fill::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -2px;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--neon, #3dff94);
  box-shadow: 0 0 10px 2px #3dff9473, 0 0 22px 4px #3dff9426;
}
.launch-progress-labels {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0 0;
  color: #aeb8c8;
  font-size: .75rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
}
.launch-countdown[data-state="arrived"] .launch-progress-labels span:last-child { color: var(--neon, #3dff94); }
.launch-countdown-arrived { color: #e0ebfa; font-size: 1.75rem; letter-spacing: -.025em; margin: 0; }
/* Don't let the grid override the hidden attribute at expiry or without JS. */
.launch-countdown [hidden] { display: none !important; }
.marketing-page.has-launch-countdown .hero {
  min-height: min(900px, 100svh);
  padding-top: clamp(112px, 12vh, 156px);
  padding-bottom: 96px;
  overflow-x: clip;
}
.has-launch-countdown .menu nav { max-height: calc(100dvh - 110px); overflow-y: auto; }
@keyframes launch-light-pass { to { background-position: 143% 0; } }
@media (max-width: 1000px) and (min-width: 701px) {
  .marketing-page.has-launch-countdown .hero { gap: 28px; }
  .launch-countdown-value { font-size: clamp(2.375rem, 5.2vw, 3.25rem); }
}
@media (max-width: 700px) {
  .marketing-page.has-launch-countdown .hero { min-height: 0; padding: 102px var(--gutter) 78px; }
  .marketing-page.has-launch-countdown .brand-signature { width: 128px; margin: 0 0 28px; }
  .has-launch-countdown .brand-wordmark-crop { margin-top: 10px; }
  .has-launch-countdown .brand-interaction-hint { display: none; }
  .marketing-page.has-launch-countdown .hero-copy .eyebrow { margin-bottom: 14px; }
  .marketing-page.has-launch-countdown .hero-tagline { font-size: clamp(2rem, 8vw, 3rem); }
  .has-launch-countdown .hero-description { margin: 18px auto 0; font-size: 1rem; }
  .launch-countdown { margin: 26px auto; padding: 20px 0; }
  .launch-countdown-inner { align-items: center; gap: 17px; }
  .launch-countdown-value { font-size: clamp(2.75rem, 12vw, 3.75rem); }
  .launch-countdown-unit { gap: 8px; }
  .launch-countdown-date { font-size: .875rem; }
  .launch-progress-labels { font-size: .6875rem; }
}
@media (prefers-reduced-motion: reduce) {
  .launch-countdown::after { animation: none; }
  .launch-countdown-burst { display: none; }
}
@media (prefers-contrast: more) {
  .launch-countdown, .launch-countdown-unit { border-color: #aeb8c8; }
  .launch-countdown-label, .launch-countdown-date, .launch-countdown-eyebrow, .launch-progress-labels { color: #f4f6fa; }
  .launch-progress { outline: 1px solid #aeb8c8; }
}
@media (forced-colors: active) {
  .launch-countdown, .launch-countdown-unit { border-color: CanvasText; }
  .launch-countdown::before, .launch-countdown::after, .launch-countdown-burst { display: none; }
  .launch-progress { outline: 1px solid CanvasText; }
  .launch-progress-fill, .launch-progress-fill::after { background: Highlight; box-shadow: none; }
}
