:root {
  --sale-gate-ink: #242149;
  --sale-gate-violet: #7065d8;
  --sale-gate-mint: #72d3a0;
  --sale-gate-paper: #fff;
}

.sale-gate-root,
.sale-gate-root * {
  box-sizing: border-box;
}

html.sale-gate-pending body {
  visibility: hidden;
}

html.sale-gate-active,
html.sale-gate-active body {
  min-height: 100%;
  margin: 0;
}

html.sale-gate-active body {
  overflow: auto;
}

html.sale-gate-active body > :not([data-sale-gate-root]) {
  display: none !important;
}

.sale-gate-root[hidden] {
  display: none !important;
}

.sale-gate-root {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  padding: clamp(18px, 3vw, 38px);
  color: var(--sale-gate-ink);
  font-family: 'Manrope', Arial, sans-serif;
  background:
    radial-gradient(circle at 8% 12%, rgba(125, 222, 168, .65), transparent 30%),
    radial-gradient(circle at 88% 86%, rgba(141, 128, 237, .55), transparent 34%),
    linear-gradient(140deg, #f8f7ff 0%, #fff 47%, #effbf4 100%);
}

.sale-gate-root::before,
.sale-gate-root::after {
  content: '';
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(112, 101, 216, .16);
  border-radius: 50%;
}

.sale-gate-root::before {
  width: min(58vw, 760px);
  aspect-ratio: 1;
  top: -32%;
  right: -16%;
}

.sale-gate-root::after {
  width: min(42vw, 540px);
  aspect-ratio: 1;
  bottom: -30%;
  left: -10%;
}

.sale-gate-shell {
  width: min(1180px, 100%);
  min-height: calc(100svh - clamp(36px, 6vw, 76px));
  margin: auto;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(26px, 5vh, 58px);
  padding: clamp(22px, 4vw, 52px);
  border: 1px solid rgba(112, 101, 216, .18);
  border-radius: clamp(28px, 4vw, 48px);
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 30px 90px rgba(57, 51, 120, .16);
  backdrop-filter: blur(18px);
}

.sale-gate-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.sale-gate-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.sale-gate-brand-mark {
  display: grid;
  width: 45px;
  height: 45px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(140deg, #6f65d8, #4d469b);
  box-shadow: 0 10px 26px rgba(63, 56, 135, .22);
}

.sale-gate-brand-mark img {
  width: 22px;
  height: 32px;
  object-fit: contain;
}

.sale-gate-wordmark {
  width: 138px;
  height: auto;
}

.sale-gate-date {
  margin: 0;
  color: #6259ba;
  font: 800 .78rem/1.2 'Space Grotesk', sans-serif;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.sale-gate-content {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, .88fr);
  gap: clamp(40px, 6vw, 84px);
  align-items: center;
  min-width: 0;
}

.sale-gate-copy {
  width: 100%;
  min-width: 0;
  max-width: 680px;
}

.sale-gate-kicker {
  display: inline-flex;
  margin: 0 0 18px;
  padding: 8px 13px;
  border-radius: 999px;
  color: #51499e;
  background: #eeebff;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.sale-gate-title {
  max-width: 760px;
  margin: 0;
  font: 800 clamp(3rem, 7.5vw, 7.4rem)/.93 'Space Grotesk', sans-serif;
  letter-spacing: -.065em;
}

.sale-gate-title span {
  display: block;
  color: var(--sale-gate-violet);
}

.sale-gate-upcoming .sale-gate-title {
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: .98;
}

.sale-gate-lead {
  max-width: 620px;
  margin: clamp(22px, 3vw, 34px) 0 0;
  color: #555a78;
  font-size: clamp(1.125rem, 1.45vw, 1.4375rem);
  line-height: 1.45;
}

.sale-gate-ended .sale-gate-copy {
  max-width: 680px;
}

.sale-gate-ended .sale-gate-title {
  max-width: 680px;
  font-size: clamp(40px, 5.2vw, 84px);
  line-height: 1.04;
}

.sale-gate-countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: clamp(26px, 4vw, 42px);
}

.sale-gate-time {
  min-width: 0;
  padding: clamp(16px, 2.5vw, 24px) 12px;
  border: 1px solid rgba(112, 101, 216, .2);
  border-radius: 20px;
  background: rgba(255, 255, 255, .82);
  text-align: center;
  box-shadow: 0 12px 32px rgba(57, 51, 120, .07);
}

.sale-gate-time strong {
  display: block;
  font: 800 clamp(2rem, 4.3vw, 4.1rem)/1 'Space Grotesk', sans-serif;
  letter-spacing: -.05em;
}

.sale-gate-time span {
  display: block;
  margin-top: 7px;
  color: #71758e;
  font-size: clamp(.68rem, 1vw, .82rem);
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.sale-gate-seconds {
  border-color: rgba(109, 203, 149, .42);
  background: linear-gradient(145deg, rgba(255, 255, 255, .9), rgba(226, 248, 235, .9));
}

.sale-gate-seconds strong {
  color: #4eaa76;
}

.sale-gate-tick {
  animation: sale-gate-tick .32s ease-out;
}

@keyframes sale-gate-tick {
  0% { opacity: .35; transform: translateY(-5px) scale(.94); }
  65% { transform: translateY(1px) scale(1.03); }
  100% { opacity: 1; transform: none; }
}

.sale-gate-art {
  position: relative;
  width: min(100%, 510px);
  margin-inline: auto;
}

.sale-gate-art::before {
  content: '';
  position: absolute;
  inset: 10%;
  z-index: -1;
  border-radius: 50%;
  background: rgba(108, 209, 151, .4);
  filter: blur(45px);
}

.sale-gate-art img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 28px 45px rgba(61, 54, 131, .2));
}

.sale-gate-ended .sale-gate-art {
  transform: rotate(-3deg);
}

.sale-gate-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  margin-top: 30px;
  padding: 14px 24px;
  border-radius: 999px;
  color: #222044;
  background: linear-gradient(110deg, #c7c2ff, #91dfb1);
  box-shadow: 0 14px 32px rgba(75, 67, 154, .15);
  font-weight: 800;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}

.sale-gate-action:hover,
.sale-gate-action:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(75, 67, 154, .22);
}

.sale-gate-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #6c7089;
  font-size: .84rem;
}

.sale-gate-footer p {
  margin: 0;
}

.sale-gate-footer strong {
  color: var(--sale-gate-ink);
}

@media (max-width: 820px) {
  .sale-gate-shell {
    min-height: calc(100svh - 30px);
  }

  .sale-gate-topbar {
    gap: 8px;
  }

  .sale-gate-brand {
    flex: 0 0 auto;
  }

  .sale-gate-content {
    grid-template-columns: 1fr;
  }

  .sale-gate-copy {
    text-align: center;
    margin-inline: auto;
  }

  .sale-gate-title,
  .sale-gate-lead {
    margin-inline: auto;
  }

  .sale-gate-title {
    font-size: clamp(3.2rem, 14vw, 6.2rem);
  }

  .sale-gate-upcoming .sale-gate-title {
    font-size: clamp(3rem, 13vw, 5.3rem);
  }

  .sale-gate-art {
    order: -1;
    width: min(64vw, 340px);
  }
}

@media (max-width: 560px) {
  .sale-gate-root {
    padding: 10px;
  }

  .sale-gate-shell {
    min-height: calc(100svh - 20px);
    gap: 26px;
    padding: 20px 17px 24px;
    border-radius: 26px;
  }

  .sale-gate-wordmark {
    width: 105px;
  }

  .sale-gate-date {
    flex: 0 1 112px;
    min-width: 0;
    max-width: 120px;
    text-align: right;
    font-size: .66rem;
  }

  .sale-gate-content {
    gap: 24px;
    min-width: 0;
  }

  .sale-gate-art {
    width: min(72vw, 300px);
  }

  .sale-gate-ended .sale-gate-art {
    transform: none;
  }

  .sale-gate-title {
    font-size: clamp(2.8rem, 15vw, 4.9rem);
  }

  .sale-gate-lead {
    width: 100%;
    font-size: 1rem;
    overflow-wrap: anywhere;
  }

  .sale-gate-countdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .sale-gate-time {
    padding: 15px 5px;
    border-radius: 15px;
  }

  .sale-gate-time strong {
    font-size: clamp(1.75rem, 10vw, 2.7rem);
  }

  .sale-gate-time span {
    font-size: .58rem;
  }

  .sale-gate-footer {
    display: block;
    text-align: center;
  }

  .sale-gate-footer p + p {
    margin-top: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sale-gate-action {
    transition: none;
  }

  .sale-gate-tick {
    animation: none;
  }
}
