/* Belocate coming-soon — brand-aligned motion & background */

@keyframes cs-fade-up {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes cs-title-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes cs-title-shimmer {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes cs-shimmer {
  0% {
    background-position: 200% center;
  }
  100% {
    background-position: -200% center;
  }
}

@keyframes cs-orb-float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(24px, -18px) scale(1.05);
  }
  66% {
    transform: translate(-16px, 12px) scale(0.96);
  }
}

@keyframes cs-countdown-in {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.88);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes cs-digit-pop {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.06);
    box-shadow: 0 12px 32px rgba(255, 205, 60, 0.25);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes cs-digit-flip {
  0% {
    transform: rotateX(0deg);
  }
  50% {
    transform: rotateX(-90deg);
  }
  100% {
    transform: rotateX(0deg);
  }
}

@keyframes cs-label-pulse {
  0%,
  100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}

@keyframes cs-bg-gradient-shift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes cs-bg-mesh-spin {
  from {
    transform: rotate(0deg) scale(1);
  }
  to {
    transform: rotate(360deg) scale(1.08);
  }
}

@keyframes cs-bg-ring-pulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.18;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.12);
    opacity: 0.32;
  }
}

@keyframes cs-bg-particle-float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.25;
  }
  50% {
    transform: translate(var(--dx, 12px), var(--dy, -20px)) scale(1.35);
    opacity: 0.7;
  }
}

.cs-bg {
  background-color: #fff8f1;
}

.cs-bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.cs-bg-gradient {
  position: absolute;
  inset: -20%;
  background: linear-gradient(
    125deg,
    #fff8f1 0%,
    #fffdf8 20%,
    #fcf2e3 40%,
    #ffcd3c33 55%,
    #f6eddd 70%,
    #fff8f1 100%
  );
  background-size: 300% 300%;
  animation: cs-bg-gradient-shift 18s ease-in-out infinite;
}

.cs-bg-mesh {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(140vmax, 1200px);
  height: min(140vmax, 1200px);
  transform: translate(-50%, -50%);
  background:
    conic-gradient(from 0deg at 50% 50%, transparent 0deg, rgba(255, 205, 60, 0.07) 60deg, transparent 120deg, rgba(118, 91, 0, 0.05) 200deg, transparent 280deg),
    radial-gradient(circle at 50% 50%, rgba(255, 205, 60, 0.12), transparent 55%);
  animation: cs-bg-mesh-spin 40s linear infinite;
}

.cs-bg-orb {
  position: absolute;
  border-radius: 9999px;
  filter: blur(70px);
  animation: cs-orb-float 14s ease-in-out infinite;
}

.cs-bg-orb-1 {
  top: 8%;
  left: 12%;
  width: 340px;
  height: 340px;
  background: rgba(255, 205, 60, 0.28);
}

.cs-bg-orb-2 {
  bottom: 6%;
  right: 8%;
  width: 380px;
  height: 380px;
  background: rgba(241, 192, 47, 0.2);
  animation-delay: -5s;
  animation-duration: 20s;
}

.cs-bg-orb-3 {
  top: 42%;
  left: 55%;
  width: 280px;
  height: 280px;
  background: rgba(118, 91, 0, 0.12);
  animation-delay: -9s;
  animation-duration: 16s;
}

.cs-bg-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 9999px;
  border: 1px solid rgba(255, 205, 60, 0.22);
  animation: cs-bg-ring-pulse 8s ease-in-out infinite;
}

.cs-bg-ring-1 {
  width: 680px;
  height: 680px;
}

.cs-bg-ring-2 {
  width: 520px;
  height: 520px;
  animation-delay: -2.5s;
  border-color: rgba(118, 91, 0, 0.14);
}

.cs-bg-particle {
  position: absolute;
  border-radius: 9999px;
  background: #ffcd3c;
  animation: cs-bg-particle-float 7s ease-in-out infinite;
}

.cs-bg-particle-1 { top: 14%; left: 18%; width: 6px; height: 6px; --dx: 14px; --dy: -24px; }
.cs-bg-particle-2 { top: 22%; right: 20%; width: 8px; height: 8px; --dx: -16px; --dy: -18px; animation-delay: -1.2s; background: #f1c02f; }
.cs-bg-particle-3 { bottom: 28%; left: 12%; width: 5px; height: 5px; --dx: 20px; --dy: -14px; animation-delay: -2.4s; }
.cs-bg-particle-4 { bottom: 18%; right: 16%; width: 7px; height: 7px; --dx: -12px; --dy: -22px; animation-delay: -3.6s; background: #765b00; opacity: 0.4; }
.cs-bg-particle-5 { top: 48%; left: 8%; width: 4px; height: 4px; --dx: 10px; --dy: -16px; animation-delay: -4.8s; }
.cs-bg-particle-6 { top: 38%; right: 10%; width: 5px; height: 5px; --dx: -18px; --dy: -12px; animation-delay: -6s; background: #f1c02f; }

.cs-main {
  width: 100%;
  max-width: 64rem;
  padding: 2.5rem 1.5rem;
}

.cs-fade-up {
  animation: cs-fade-up 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.cs-fade-up-delay-2 {
  animation-delay: 0.35s;
}

/* ---- Custom paper sheet ---- */
.cs-paper {
  position: relative;
  overflow: hidden;
  max-width: 56rem;
  margin: 0 auto;
  padding: 3.5rem 3rem;
  border-radius: 1.75rem;
  text-transform: uppercase;
  background:
    linear-gradient(165deg, #fffdf8 0%, #fff8f1 38%, #f6eddd 100%);
  border: 1px solid rgba(210, 197, 173, 0.85);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 2px 0 rgba(255, 255, 255, 0.55) inset,
    0 24px 60px rgba(118, 91, 0, 0.14),
    0 8px 20px rgba(31, 27, 18, 0.06);
}

.cs-paper::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px dashed rgba(128, 118, 97, 0.22);
  border-radius: 1.25rem;
  pointer-events: none;
}

.cs-paper-texture {
  position: absolute;
  inset: 0;
  opacity: 0.45;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 205, 60, 0.08), transparent 35%),
    radial-gradient(circle at 80% 70%, rgba(118, 91, 0, 0.06), transparent 40%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 3px,
      rgba(128, 118, 97, 0.025) 3px,
      rgba(128, 118, 97, 0.025) 4px
    );
  pointer-events: none;
}

.cs-paper-fold {
  position: absolute;
  top: 0;
  right: 0;
  width: 72px;
  height: 72px;
  background: linear-gradient(225deg, #ebe1d2 0%, #f6eddd 48%, transparent 48%);
  border-bottom-left-radius: 0.5rem;
  box-shadow: -2px 2px 6px rgba(118, 91, 0, 0.08);
  pointer-events: none;
}

.cs-paper-divider {
  height: 2px;
  width: 320px;
  max-width: 100%;
  margin: 2.25rem auto;
  opacity: 0.85;
}

.cs-title {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.12em;
  font-size: 4.75rem;
  line-height: 1.05;
  animation: cs-title-float 5s ease-in-out infinite;
  animation-delay: 0.9s;
}

.cs-title-text {
  background: linear-gradient(
    90deg,
    #1f1b12 0%,
    #765b00 25%,
    #ffcd3c 50%,
    #765b00 75%,
    #1f1b12 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: cs-title-shimmer 5s ease-in-out infinite;
  letter-spacing: 0.04em;
}

/* ---- Countdown paper tickets ---- */
.cs-countdown-panel {
  position: relative;
  z-index: 1;
}

.cs-countdown-label {
  margin-bottom: 1.75rem;
  text-align: center;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #765b00;
}

.cs-countdown-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: center;
  gap: 0.85rem;
}

.cs-countdown-sep {
  align-self: center;
  margin-top: -1.75rem;
  font-family: Montserrat, sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  color: #f1c02f;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.8);
  animation: cs-sep-pulse 1s ease-in-out infinite;
}

@keyframes cs-sep-pulse {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}

.cs-paper-ticket {
  position: relative;
  min-width: 7.5rem;
  padding: 1.35rem 1.25rem;
  border-radius: 1rem;
  background:
    linear-gradient(180deg, #ffffff 0%, #fcf2e3 100%);
  border: 1px solid rgba(210, 197, 173, 0.9);
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.95) inset,
    0 10px 24px rgba(118, 91, 0, 0.1),
    0 2px 6px rgba(31, 27, 18, 0.05);
  transform: rotate(var(--ticket-tilt, 0deg));
}

.cs-paper-ticket::before,
.cs-paper-ticket::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background: #fff8f1;
  border: 1px solid rgba(210, 197, 173, 0.7);
  transform: translateY(-50%);
}

.cs-paper-ticket::before {
  left: -6px;
}

.cs-paper-ticket::after {
  right: -6px;
}

.cs-countdown-item:nth-child(1) .cs-paper-ticket { --ticket-tilt: -1.5deg; }
.cs-countdown-item:nth-child(3) .cs-paper-ticket { --ticket-tilt: 1deg; }
.cs-countdown-item:nth-child(5) .cs-paper-ticket { --ticket-tilt: -0.75deg; }
.cs-countdown-item:nth-child(7) .cs-paper-ticket { --ticket-tilt: 1.25deg; }

.cs-countdown-digit {
  display: block;
  font-family: Montserrat, sans-serif;
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: #1f1b12;
  transform-style: preserve-3d;
  perspective: 400px;
}

.cs-countdown-unit {
  margin-top: 0.75rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #4e4634;
  animation: cs-label-pulse 3s ease-in-out infinite;
}

.cs-launch-message {
  margin-top: 1.75rem;
  text-align: center;
  font-family: Montserrat, sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #ffcd3c;
  animation: cs-fade-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.cs-countdown-digit.is-ticking {
  animation: cs-digit-pop 0.4s ease-out;
}

.cs-countdown-digit.is-flipping {
  animation: cs-digit-flip 0.45s ease-in-out;
}

.cs-countdown-item {
  flex: 0 1 auto;
  min-width: 0;
  text-align: center;
  animation: cs-countdown-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.cs-countdown-item:nth-child(1) { animation-delay: 0.45s; }
.cs-countdown-item:nth-child(3) { animation-delay: 0.58s; }
.cs-countdown-item:nth-child(5) { animation-delay: 0.71s; }
.cs-countdown-item:nth-child(7) { animation-delay: 0.84s; }

.cs-shimmer-line {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 205, 60, 0.55) 50%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: cs-shimmer 3s linear infinite;
}

@media (max-width: 850px) {
  .cs-main {
    padding: 1.5rem 1rem;
  }

  .cs-paper {
    padding: 2rem 1.25rem;
    border-radius: 1.25rem;
  }

  .cs-paper-fold {
    width: 52px;
    height: 52px;
  }

  .cs-title {
    font-size: 2.5rem;
  }

  .cs-paper-divider {
    margin: 1.5rem auto;
  }

  .cs-countdown-label {
    margin-bottom: 1rem;
    font-size: 0.875rem;
    letter-spacing: 0.16em;
  }

  .cs-countdown-sep {
    display: none;
  }

  .cs-countdown-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 0.75rem;
    max-width: 22rem;
    margin: 0 auto;
  }

  .cs-countdown-item {
    width: 100%;
  }

  .cs-paper-ticket {
    min-width: 0;
    width: 100%;
    padding: 1rem 0.75rem;
  }

  .cs-countdown-digit {
    font-size: 2.75rem;
  }

  .cs-countdown-unit {
    margin-top: 0.5rem;
    font-size: 0.75rem;
  }

  .cs-launch-message {
    font-size: 1.25rem;
  }

  .cs-bg-orb-1 {
    width: 220px;
    height: 220px;
  }

  .cs-bg-orb-2 {
    width: 260px;
    height: 260px;
  }

  .cs-bg-orb-3 {
    width: 180px;
    height: 180px;
  }

  .cs-bg-ring-1 {
    width: min(92vw, 420px);
    height: min(92vw, 420px);
  }

  .cs-bg-ring-2 {
    width: min(72vw, 320px);
    height: min(72vw, 320px);
  }

  .cs-bg-mesh {
    width: 120vmax;
    height: 120vmax;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cs-fade-up,
  .cs-title,
  .cs-title-text,
  .cs-shimmer-line,
  .cs-bg-gradient,
  .cs-bg-mesh,
  .cs-bg-orb,
  .cs-bg-ring,
  .cs-bg-particle,
  .cs-countdown-item,
  .cs-countdown-unit,
  .cs-countdown-sep,
  .cs-countdown-digit.is-ticking,
  .cs-countdown-digit.is-flipping,
  .cs-launch-message {
    animation: none !important;
  }

  .cs-title-text {
    color: #1f1b12;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
  }
}
