@font-face {
  font-family: "Robit Trial";
  src: url("fonts/robittrial-regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Robit Trial";
  src: url("fonts/robittrial-bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #050608;
  --text: #f4f6f8;
  --text-soft: rgba(244, 246, 248, 0.72);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Robit Trial", "Avenir Next", "Segoe UI", sans-serif;
}

#stars {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.center {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.2rem;
}

h1 {
  margin: 0;
  font-weight: 700;
  font-size: clamp(2.7rem, 9.2vw, 7.2rem);
  line-height: 0.95;
  letter-spacing: 0.6px;
  text-transform: none;
}

p {
  margin: 0.9rem 0 0;
  font-weight: 400;
  font-size: clamp(0.82rem, 2.3vw, 1.05rem);
  letter-spacing: 0.7px;
  color: var(--text-soft);
}

#cursorStar {
  position: fixed;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-100px, -100px, 0);
}

#cursorStar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #ffffff;
  clip-path: polygon(50% 0%, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0% 50%, 39% 39%);
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.75));
  animation: cursor-twinkle 2.4s ease-in-out infinite;
}

#cursorStar::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.26), transparent 72%);
}

@keyframes cursor-twinkle {
  0%,
  100% {
    transform: scale(0.92);
    opacity: 0.84;
  }

  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@media (hover: hover) and (pointer: fine) {
  body {
    cursor: none;
  }

  #cursorStar {
    opacity: 1;
  }
}
