@import url('https://fonts.googleapis.com/css2?family=Anton&family=Share+Tech+Mono&display=swap');

:root {
  --red: #d51b13;
  --red-dark: #5d0906;
  --bone: #ddd8ce;
  --muted: #8f8980;
  --black: #030303;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

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

body {
  background: var(--black);
  color: var(--bone);
  overflow: hidden;
  font-family: 'Share Tech Mono', monospace;
}

.page {
  min-height: 100%;
  position: relative;
  display: grid;
  place-items: center;
  padding: 32px;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 20%, rgba(155, 35, 22, 0.22), transparent 28%),
    radial-gradient(circle at 50% 80%, rgba(190, 15, 9, 0.16), transparent 26%),
    linear-gradient(180deg, rgba(0,0,0,0.25), rgba(0,0,0,0.94)),
    url('assets/dangerrust-bg.svg') center / cover no-repeat;
}

.page::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, transparent 38%, rgba(0,0,0,0.92) 100%);
  z-index: -1;
}

.noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background-image:
    repeating-radial-gradient(circle at 17% 32%, rgba(255,255,255,.14) 0 1px, transparent 1px 4px);
  mix-blend-mode: screen;
}

.hero {
  width: min(1100px, 100%);
  text-align: center;
  transform: translateY(-2vh);
  position: relative;
}

.classified {
  margin: 0 0 18px;
  color: var(--red);
  letter-spacing: 0.32em;
  font-size: clamp(12px, 1.4vw, 16px);
  text-shadow: 0 0 18px rgba(213, 27, 19, .75);
  transition: opacity .25s ease;
}

.logo {
  margin: 0;
  font-family: 'Anton', Impact, sans-serif;
  font-size: clamp(56px, 13vw, 172px);
  line-height: 0.92;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  text-shadow:
    0 0 2px #000,
    0 12px 42px rgba(0,0,0,.95);
}

.logo span {
  color: var(--bone);
  filter: contrast(1.35);
}

.logo strong {
  color: var(--red);
  font-weight: inherit;
  text-shadow: 0 0 24px rgba(213,27,19,.38), 0 12px 42px rgba(0,0,0,.95);
}

.tagline {
  margin: 22px 0 56px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.65em;
  font-size: clamp(13px, 1.5vw, 18px);
  transition: opacity .25s ease;
}

.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2vw, 28px);
  transition: opacity 1.2s ease, transform 1.2s ease, filter 1.2s ease;
}

.time-box {
  min-width: clamp(74px, 13vw, 155px);
}

.time-box span {
  display: block;
  font-family: 'Anton', Impact, sans-serif;
  font-size: clamp(48px, 10vw, 136px);
  line-height: 0.88;
  color: var(--red);
  text-shadow:
    0 0 8px rgba(213,27,19,.85),
    0 0 30px rgba(213,27,19,.48),
    0 0 70px rgba(213,27,19,.28);
}

.time-box small {
  display: block;
  margin-top: 18px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.38em;
  font-size: clamp(10px, 1.3vw, 15px);
}

.divider {
  transform: translateY(-18px);
  font-family: 'Anton', Impact, sans-serif;
  font-size: clamp(38px, 7vw, 92px);
  color: var(--red-dark);
  text-shadow: 0 0 22px rgba(213,27,19,.32);
}

.launch-message {
  margin-top: 44px;
  color: rgba(221,216,206,.62);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: opacity 1s ease, transform 1s ease;
}

.guarantee { margin-top: 16px; }

.launch-reveal {
  position: absolute;
  left: 50%;
  bottom: 8%;
  z-index: 2;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 28px) scale(.92);
  transition:
    opacity 1.6s .45s ease,
    transform 1.6s .45s cubic-bezier(.2, .8, .2, 1),
    visibility 0s 2s;
}

.reveal-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 360px;
  height: 150px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(213,27,19,.34), transparent 68%);
  animation: breathe 3.5s ease-in-out infinite;
}

.enter-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: 18px 40px;
  border: 1px solid rgba(213,27,19,.75);
  background: rgba(9,3,3,.86);
  color: var(--bone);
  font-family: 'Share Tech Mono', monospace;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .52em;
  text-indent: .52em;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: inset 0 0 24px rgba(213,27,19,.12), 0 0 34px rgba(213,27,19,.18);
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}

.enter-button:hover,
.enter-button:focus-visible {
  background: var(--red);
  border-color: #ff625a;
  box-shadow: 0 0 42px rgba(213,27,19,.58);
  outline: none;
  transform: translateY(-2px);
}

body.is-live .countdown {
  opacity: 0;
  transform: translateY(-20px) scale(.96);
  filter: blur(8px);
  pointer-events: none;
}

body.is-live .launch-message {
  opacity: 0;
  transform: translateY(-10px);
}

body.is-live .launch-reveal {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0) scale(1);
  transition-delay: .45s, .45s, 0s;
}

.embers::before,
.embers::after {
  content: '';
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--red);
  box-shadow:
    14vw 24vh 0 rgba(213,27,19,.8),
    24vw 64vh 0 rgba(213,27,19,.45),
    78vw 31vh 0 rgba(213,27,19,.6),
    88vw 67vh 0 rgba(213,27,19,.42),
    55vw 75vh 0 rgba(213,27,19,.55);
  animation: drift 9s infinite ease-in-out alternate;
}

.embers::after {
  animation-duration: 13s;
  filter: blur(1px);
}

@keyframes drift {
  from { transform: translateY(12px); opacity: .3; }
  to { transform: translateY(-24px); opacity: .85; }
}

@keyframes breathe {
  50% { opacity: .45; transform: translate(-50%, -50%) scale(1.24); }
}

@media (max-width: 700px) {
  body { overflow: auto; }
  .page { min-height: 100svh; padding: 24px 16px; }
  .tagline { letter-spacing: 0.32em; margin-bottom: 38px; }
  .countdown { gap: 7px; }
  .time-box { min-width: 62px; }
  .time-box small { letter-spacing: 0.18em; }
  .divider { transform: translateY(-14px); }
  .launch-reveal { bottom: 4%; }
  .enter-button { min-width: 190px; padding: 16px 32px; }
}

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