:root {
  color-scheme: dark;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  --text: #fff;
  --muted: #9e99b0;
  --surface: #3b364c;
  --accent: #6e54b5;
  --accent-hover: #7d63c4;
  --ease-out-expo: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(ellipse at 50% 46%, rgba(119, 105, 149, .26), transparent 58%),
    linear-gradient(135deg, #646172, #514e60 55%, #4e4b5c);
}

button,
input {
  font: inherit;
}

.page-shell {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 5vw, 72px);
}

.card {
  display: grid;
  width: min(1120px, 100%);
  min-height: 620px;
  grid-template-columns: 45% 55%;
  overflow: hidden;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 20px;
  background: #2b2738;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
  animation: card-enter 0.8s var(--ease-out-expo) both;
}

.showcase {
  position: relative;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: space-between;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px 14px 14px 14px;
  background: linear-gradient(155deg, #3b2d71, #171421 88%);
}

.showcase::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 17, 34, .12), transparent 42%, rgba(20, 17, 34, .35));
  content: "";
}

.showcase-top {
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px;
}

.wordmark {
  color: var(--text);
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -.09em;
  text-decoration: none;
}

.domain-pill {
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, .9);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
}

.dune-art {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
}

.showcase-caption {
  z-index: 1;
  padding: 28px;
  text-align: center;
}

.showcase-caption p {
  margin: 0 0 24px;
  font-size: clamp(18px, 2vw, 23px);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.45;
}

.showcase-caption .tagline {
  transition: opacity 0.45s var(--ease-out-expo), transform 0.45s var(--ease-out-expo);
}

.showcase-caption .tagline.is-changing {
  transform: translateY(6px);
  opacity: 0;
}

.carousel-bars {
  position: relative;
  display: grid;
  width: max-content;
  grid-template-columns: repeat(3, 38px);
  gap: 8px;
  margin: 0 auto;
}

.carousel-bars::before {
  position: absolute;
  z-index: 1;
  top: 10px;
  left: 0;
  width: 38px;
  height: 3px;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 0 12px rgba(255, 255, 255, .35);
  content: "";
  pointer-events: none;
  transform: translate3d(var(--indicator-offset, 0px), 0, 0);
  transition: transform 0.75s cubic-bezier(.65, 0, .35, 1);
  will-change: transform;
}

.carousel-bars button {
  position: relative;
  display: grid;
  width: 38px;
  height: 23px;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  opacity: .58;
  transition: opacity 0.25s ease, transform 0.2s ease;
}

.carousel-bars button::after {
  width: 22px;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .48);
  content: "";
  transition: width 0.35s var(--ease-out-expo), opacity 0.25s ease;
}

.carousel-bars button.is-active {
  opacity: 1;
}

.carousel-bars button.is-active::after {
  opacity: 0;
}

.carousel-bars button:hover {
  opacity: 1;
}

.carousel-bars button:active {
  transform: scale(.88);
}

.carousel-bars button:focus-visible {
  outline: 2px solid #d5c9ff;
  outline-offset: 2px;
}

.content-panel {
  display: flex;
  align-items: center;
  padding: clamp(40px, 6vw, 72px);
}

.content-inner {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.content-inner > .status-pill,
.content-inner > h1,
.content-inner > .intro,
.content-inner > .countdown,
.content-inner > .notify-form,
.content-inner > .footer-note {
  animation: fadeUp 0.65s var(--ease-out-expo) both;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 23px;
  color: #c3b9e5;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .075em;
  animation-delay: 0.1s;
}

.status-pill span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #b19cf0;
  box-shadow: 0 0 12px rgba(177, 156, 240, .7);
}

h1 {
  max-width: 480px;
  margin: 0;
  font-size: clamp(36px, 4vw, 44px);
  font-weight: 600;
  letter-spacing: -.055em;
  line-height: 1.14;
  animation-delay: 0.18s;
}

.intro {
  max-width: 460px;
  margin: 18px 0 30px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  animation-delay: 0.26s;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 25px;
  animation-delay: 0.34s;
}

.time-card {
  display: flex;
  min-height: 82px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  background: var(--surface);
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.time-card:hover {
  transform: translateY(-2px);
  border-color: rgba(190, 172, 245, .3);
  background: #403a53;
}

.time-value {
  font-family: "JetBrains Mono", monospace;
  font-size: 24px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.06em;
}

.time-label {
  color: #a9a3b8;
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  letter-spacing: .13em;
}

.notify-form {
  display: flex;
  gap: 9px;
}

.notify-form input {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  outline: none;
  background: var(--surface);
  color: var(--text);
  font-size: 12px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.notify-form input::placeholder {
  color: #aaa4b9;
  opacity: 1;
}

.notify-form input:focus {
  border-color: rgba(177, 156, 240, .8);
  box-shadow: 0 0 0 3px rgba(110, 84, 181, .2);
}

.notify-form button {
  flex: 0 0 auto;
  min-height: 48px;
  padding: 0 19px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.notify-form button:hover,
.btn-notify:hover {
  transform: translateY(-1px);
  background: var(--accent-hover);
}

.notify-form button:active,
.btn-notify:active {
  transform: scale(.97);
}

.notify-form button:disabled {
  cursor: wait;
  opacity: .75;
}

.notify-form {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.notify-form.is-success {
  animation: none;
  transform: translateY(-6px);
  opacity: 0;
  pointer-events: none;
}

.form-feedback {
  transform: translateY(6px);
  opacity: 0;
  transition: opacity 0.45s var(--ease-out-expo), transform 0.45s var(--ease-out-expo);
}

.form-feedback.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.form-feedback.is-error {
  color: #f0a8b3;
}

.time-value.tick-pop {
  animation: tick-pop 0.28s var(--ease-out-expo);
}

.notify-form button:focus-visible,
.wordmark:focus-visible {
  outline: 2px solid #d5c9ff;
  outline-offset: 3px;
}

.form-feedback {
  margin: 11px 0 0;
  color: #c6b8f5;
  font-size: 12px;
}

.footer-note {
  margin: 27px 0 0;
  color: #817c91;
  font-size: 11px;
  animation-delay: 0.5s;
}

.footer-note span {
  color: #aaa4b9;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

@keyframes card-enter {
  from {
    transform: scale(.98) translateY(12px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

@keyframes fadeUp {
  from {
    transform: translateY(16px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes artwork-float {
  from {
    transform: translateY(0) scale(1);
  }
  to {
    transform: translateY(-6px) scale(1.025);
  }
}

@keyframes tick-pop {
  0% {
    transform: translateY(4px) scale(.96);
    opacity: .55;
  }
  60% {
    transform: translateY(-1px) scale(1.04);
    opacity: 1;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.dune-art circle {
  transform-box: fill-box;
  transform-origin: center;
  animation: artwork-float 14s ease-in-out infinite alternate;
}

.dune-art circle:nth-of-type(2) {
  animation-delay: -7s;
}

.dune-art path {
  transform-box: fill-box;
  transform-origin: center;
  animation: artwork-float 14s ease-in-out infinite alternate;
}

.dune-art path:nth-of-type(2) {
  animation-delay: -3.5s;
}

.dune-art path:nth-of-type(3) {
  animation-delay: -7s;
}

.dune-art path:nth-of-type(4) {
  animation-delay: -10.5s;
}

@media (max-width: 860px) {
  .page-shell {
    padding: clamp(18px, 5vw, 42px);
  }

  .card {
    width: min(620px, 100%);
    grid-template-columns: 1fr;
  }

  .showcase {
    min-height: 260px;
  }

  .showcase-top,
  .showcase-caption {
    padding: 22px;
  }

  .content-panel {
    padding: clamp(30px, 7vw, 56px);
  }

  .content-inner {
    max-width: none;
  }
}

@media (max-width: 480px) {
  .page-shell {
    padding: 14px;
  }

  .card {
    border-radius: 16px;
  }

  .showcase {
    min-height: 230px;
  }

  .showcase-top {
    padding: 18px;
  }

  .showcase-caption {
    padding: 18px;
  }

  .content-panel {
    padding: 28px 20px 30px;
  }

  .status-pill {
    font-size: 9px;
  }

  h1 {
    font-size: clamp(34px, 10vw, 40px);
  }

  .intro {
    font-size: 13px;
  }

  .countdown {
    gap: 7px;
  }

  .time-card {
    min-height: 72px;
  }

  .time-value {
    font-size: 21px;
  }

  .notify-form {
    flex-direction: column;
  }

  .notify-form button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .carousel-bars::before {
    transition-duration: 0.75s !important;
  }
}
