:root {
  color-scheme: dark;
  --bg: #0d0f14;
  --ink: #f6f4ee;
  --muted: #a7adb8;
  --line: rgba(246, 244, 238, 0.16);
  --panel: rgba(255, 255, 255, 0.055);
  --accent: #d7ff64;
  --accent-soft: rgba(215, 255, 100, 0.14);
  --warm: #ffb36b;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #000;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #000;
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.72) 0 1px, transparent 1.4px),
    radial-gradient(circle, rgba(255, 255, 255, 0.42) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(215, 255, 100, 0.28) 0 1px, transparent 1.5px);
  background-position: 12px 28px, 76px 114px, 145px 66px;
  background-size: 190px 190px, 270px 270px, 340px 340px;
  opacity: 0.62;
  mask-image: radial-gradient(circle at 50% 45%, #000 0%, transparent 78%);
  animation: star-drift 42s linear infinite;
}

body::after {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.34) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(255, 255, 255, 0.22) 0 1px, transparent 1.5px);
  background-position: 44px 82px, 132px 18px;
  background-size: 150px 150px, 230px 230px;
  opacity: 0.42;
  animation: pixel-float 18s linear infinite;
}

a {
  color: inherit;
  text-decoration: none;
}

.launch {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 32px;
}

.shell {
  width: min(100%, 1040px);
}

.hero {
  width: 100%;
  max-width: none;
  padding-top: clamp(48px, 10vh, 108px);
}

h1 {
  max-width: 100%;
  margin: 0;
  font-size: clamp(3.8rem, 9vw, 8.5rem);
  line-height: 0.9;
  letter-spacing: 0;
}

h1 span {
  position: relative;
  display: table;
  min-height: 0.9em;
}

.is-typing::after {
  position: absolute;
  right: -0.13em;
  bottom: 0.06em;
  width: 0.08em;
  height: 0.84em;
  background: var(--accent);
  content: "";
}

.countdown {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  max-width: 950px;
  margin-top: clamp(42px, 8vh, 84px);
  align-items: end;
  perspective: 900px;
}

.time-box {
  display: grid;
  height: 132px;
  align-content: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  backdrop-filter: blur(18px);
  transform-origin: bottom center;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
  will-change: transform;
}

.countdown.is-resetting .time-box {
  transition:
    transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.countdown .time-box:hover {
  border-color: rgba(215, 255, 100, 0.5);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.28);
}

.time-box strong {
  font-size: clamp(2.1rem, 5vw, 4.1rem);
  line-height: 1;
}

.time-box span {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mail-link {
  display: grid;
  height: 132px;
  place-items: center;
  align-content: center;
  justify-content: center;
  padding: 24px;
  color: var(--muted);
  transition:
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.mail-link:hover {
  color: var(--ink);
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.075);
}

.mail-link svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
}

@keyframes star-drift {
  to {
    background-position: 202px 218px, 346px 384px, 485px 406px;
  }
}

@keyframes pixel-float {
  50% {
    opacity: 0.72;
  }

  to {
    background-position: 194px 232px, 362px 248px;
  }
}

@media (max-width: 760px) {
  .launch {
    place-items: start;
    padding: 24px 18px;
  }

  h1 {
    font-size: clamp(3.05rem, 15vw, 5.7rem);
  }

  .countdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mail-link {
    grid-column: span 2;
  }

  .time-box {
    height: 116px;
    padding: 20px;
  }

  .mail-link {
    height: 116px;
  }
}

@media (max-width: 420px) {
  .countdown {
    gap: 10px;
  }

  .time-box {
    height: 104px;
    padding: 16px;
  }

  .mail-link {
    height: 104px;
  }

  .time-box span {
    font-size: 0.68rem;
  }
}

@media (hover: none), (pointer: coarse), (max-width: 760px) {
  .countdown .time-box:hover {
    border-color: var(--line);
    background: var(--panel);
    box-shadow: none;
  }

  .mail-link:hover {
    color: var(--muted);
  }
}

@media (prefers-reduced-motion: reduce) {
  .is-typing::after {
    content: none;
  }

  .time-box,
  .countdown .time-box:hover {
    transform: none;
    transition: none;
  }

  body::before,
  body::after {
    animation: none;
  }
}
