@font-face {
  font-family: "Tentava Display";
  src: url("/assets/fonts/MomoTrustDisplay-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/PlusJakartaSans-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Outfit";
  src: url("/assets/fonts/Outfit-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background-top: #465155;
  --background-bottom: #10191e;
  --brand-warm: #ffe5d2;
  --brand-violet: #e0cdff;
  --brand-shadow: 4px 4px 4px rgba(0, 0, 0, 0.25);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-width: 0;
  min-height: 100%;
  margin: 0;
}

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  min-height: -webkit-fill-available;
  min-height: 100svh;
  overflow-x: hidden;
  background: linear-gradient(
    180deg,
    var(--background-top) 0%,
    var(--background-top) 34%,
    var(--background-bottom) 100%
  );
  font-family: "Outfit", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: 0;
  inset: 0;
  content: "";
  background-image: url("/assets/pilatus_silhouette.png");
  background-position: right center;
  background-repeat: no-repeat;
  background-size: auto 100%;
  opacity: 0.1;
  pointer-events: none;
}

body::after {
  position: fixed;
  z-index: 0;
  inset: 0;
  content: "";
  background: radial-gradient(circle at 50% 42%, rgba(224, 205, 255, 0.09), transparent 35rem);
  pointer-events: none;
}

.coming-soon {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 100vh;
  min-height: -webkit-fill-available;
  min-height: 100svh;
  min-height: 100dvh;
  padding:
    max(1.25rem, env(safe-area-inset-top))
    max(1rem, env(safe-area-inset-right))
    max(1.25rem, env(safe-area-inset-bottom))
    max(1rem, env(safe-area-inset-left));
  place-items: center;
}

.coming-soon__content {
  display: flex;
  width: min(100%, 58rem);
  min-width: 0;
  flex-direction: column;
  align-items: center;
}

.brand-lockup {
  display: flex;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  gap: clamp(1.25rem, 4vw, 3.25rem);
}

.brand-lockup__logo {
  width: clamp(8rem, 18vw, 12rem);
  height: auto;
  flex: 0 0 auto;
  filter: drop-shadow(0 1.5rem 2rem rgba(0, 0, 0, 0.3));
}

.brand-lockup__copy {
  flex: 0 1 auto;
  min-width: 0;
  text-align: left;
}

.brand-lockup h1 {
  margin: 0;
  color: var(--brand-warm);
  font-family: "Tentava Display", sans-serif;
  font-size: clamp(3.5rem, 9vw, 6.5rem);
  font-weight: 400;
  font-synthesis: none;
  letter-spacing: -0.02em;
  line-height: 0.72;
  text-shadow: var(--brand-shadow);
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-lockup p {
  margin: clamp(0.75rem, 2vw, 1.25rem) 0 0;
  color: var(--brand-violet);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: clamp(0.82rem, 2vw, 1.2rem);
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.2;
}

.countdown {
  display: grid;
  width: min(100%, 32rem);
  margin-top: clamp(2rem, 6vh, 4.5rem);
  place-items: center;
}

.countdown__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.4rem, 1.7vw, 0.75rem);
  width: 100%;
}

.countdown__unit {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.countdown__value {
  position: relative;
  display: grid;
  width: 100%;
  min-width: 0;
  aspect-ratio: 1.08 / 1;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 0.45rem;
  color: #10191e;
  background: linear-gradient(180deg, #f3f3f1 0%, #e4e5e3 49.5%, #d7d9d7 50.5%, #ededeb 100%);
  box-shadow:
    0 0.7rem 1.6rem rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
  font-size: clamp(2rem, 7vw, 3.6rem);
  font-variant-numeric: tabular-nums;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1;
  place-items: center;
  text-indent: 0.04em;
}

.countdown__value::after {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
  content: "";
  background: rgba(16, 25, 30, 0.22);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.38);
}

.countdown__value.is-changing {
  animation: countdown-tick 180ms ease-out;
}

.countdown__label {
  color: var(--brand-warm);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
  font-size: clamp(0.68rem, 2vw, 0.9rem);
  letter-spacing: 0.015em;
  line-height: 1;
  white-space: nowrap;
}

@keyframes countdown-tick {
  0% {
    transform: perspective(18rem) rotateX(-7deg);
    filter: brightness(0.9);
  }

  100% {
    transform: perspective(18rem) rotateX(0);
    filter: brightness(1);
  }
}

@media (max-width: 40rem) {
  .coming-soon {
    padding-right: max(0.75rem, env(safe-area-inset-right));
    padding-left: max(0.75rem, env(safe-area-inset-left));
  }

  .brand-lockup {
    width: min(100%, 26rem);
    gap: clamp(0.75rem, 3.5vw, 1.25rem);
  }

  .brand-lockup__logo {
    width: clamp(5.5rem, 24vw, 7rem);
  }

  .brand-lockup h1 {
    font-size: clamp(2.35rem, 12vw, 3.75rem);
  }

  .brand-lockup p {
    margin-top: clamp(0.55rem, 2vw, 0.8rem);
    font-size: clamp(0.66rem, 3vw, 0.85rem);
  }

  .countdown {
    width: min(100%, 26rem);
    margin-top: clamp(1.5rem, 5vh, 2.75rem);
  }

  .countdown__grid {
    gap: clamp(0.3rem, 2vw, 0.55rem);
  }

  .countdown__unit {
    gap: 0.5rem;
  }

  .countdown__value {
    border-radius: 0.35rem;
    font-size: clamp(1.65rem, 10vw, 2.8rem);
  }

  .countdown__label {
    font-size: clamp(0.56rem, 2.8vw, 0.72rem);
  }
}

@media (max-width: 23rem) {
  .brand-lockup {
    gap: 0.65rem;
  }

  .brand-lockup__logo {
    width: clamp(4.75rem, 24vw, 5.5rem);
  }

  .brand-lockup h1 {
    font-size: clamp(2rem, 11.5vw, 2.5rem);
  }

  .brand-lockup p {
    font-size: clamp(0.58rem, 3vw, 0.68rem);
  }

  .countdown {
    margin-top: 1.5rem;
  }

  .countdown__grid {
    gap: 0.25rem;
  }

  .countdown__label {
    font-size: clamp(0.5rem, 2.7vw, 0.6rem);
  }
}

@media (max-height: 38rem) and (orientation: landscape) {
  .coming-soon {
    padding-top: max(0.6rem, env(safe-area-inset-top));
    padding-bottom: max(0.6rem, env(safe-area-inset-bottom));
  }

  .brand-lockup__logo {
    width: clamp(4.5rem, 14vh, 6rem);
  }

  .brand-lockup h1 {
    font-size: clamp(2.5rem, 9vh, 3.25rem);
  }

  .brand-lockup p {
    margin-top: 0.45rem;
    font-size: 0.68rem;
  }

  .countdown {
    width: min(72vw, 24rem);
    margin-top: clamp(0.65rem, 3vh, 1rem);
  }

  .countdown__unit {
    gap: 0.35rem;
  }

  .countdown__value {
    font-size: clamp(1.5rem, 7vh, 2.4rem);
  }

  .countdown__label {
    font-size: 0.58rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .countdown__value.is-changing {
    animation: none;
  }
}
