:root {
  --ink: #f7fbff;
  --muted: #b8c7d8;
  --cyan: #34b7f1;
  --mint: #40e6a9;
  --coral: #ff715b;
  --night: #07111c;
  --line: rgba(255, 255, 255, 0.22);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--night);
}

.landing {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: clamp(28px, 6vw, 72px);
}

.hero-image,
.scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
  transform: scale(1.01);
}

.scrim {
  background:
    linear-gradient(90deg, rgba(3, 10, 18, 0.96) 0%, rgba(5, 18, 30, 0.85) 38%, rgba(7, 17, 28, 0.2) 76%),
    linear-gradient(180deg, rgba(3, 10, 18, 0.25), rgba(3, 10, 18, 0.82));
}

.content {
  position: relative;
  z-index: 1;
  width: min(650px, 100%);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--mint);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 10ch;
  font-size: clamp(4rem, 10vw, 8.5rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.lead {
  max-width: 550px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.6;
}

.timer-wrap {
  display: grid;
  grid-template-columns: auto auto auto;
  align-items: end;
  gap: 12px;
  width: fit-content;
  margin-top: 38px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(4, 14, 24, 0.56);
  backdrop-filter: blur(14px);
}

.timer-label,
.timer-unit {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.4;
  white-space: nowrap;
}

.timer {
  min-width: 3ch;
  color: var(--ink);
  font-size: clamp(3rem, 8vw, 5.6rem);
  font-weight: 900;
  line-height: 0.82;
  font-variant-numeric: tabular-nums;
  text-align: center;
  text-shadow: 0 0 24px rgba(52, 183, 241, 0.42);
}

.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 22px;
  margin-top: 30px;
}

.join-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: #03101a;
  background: var(--cyan);
  box-shadow: 0 16px 36px rgba(21, 155, 216, 0.36);
  font-weight: 850;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, opacity 160ms ease;
}

.join-button:hover {
  transform: translateY(-2px);
  background: var(--mint);
}

.join-button.disabled {
  pointer-events: none;
  opacity: 0.52;
  filter: grayscale(0.3);
}

.redirect-note {
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.45;
  opacity: 0.76;
}

.footer {
  position: absolute;
  left: clamp(28px, 6vw, 72px);
  right: clamp(28px, 6vw, 72px);
  bottom: 22px;
  z-index: 1;
  color: rgba(247, 251, 255, 0.7);
  font-size: 0.92rem;
}

@media (max-width: 720px) {
  .landing {
    align-items: end;
    padding: 34px 22px 64px;
  }

  .hero-image {
    object-position: 58% center;
  }

  .scrim {
    background:
      linear-gradient(180deg, rgba(3, 10, 18, 0.12) 0%, rgba(3, 10, 18, 0.78) 42%, rgba(3, 10, 18, 0.98) 100%),
      linear-gradient(90deg, rgba(3, 10, 18, 0.74), rgba(3, 10, 18, 0.16));
  }

  h1 {
    max-width: 9ch;
    font-size: clamp(3.2rem, 17vw, 5.5rem);
  }

  .lead {
    font-size: 1rem;
  }

  .timer-wrap {
    grid-template-columns: 1fr auto;
    width: 100%;
    gap: 8px 12px;
  }

  .timer-label {
    grid-column: 1;
  }

  .timer {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .timer-unit {
    grid-column: 1;
  }

  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .join-button {
    width: 100%;
  }

  .footer {
    left: 22px;
    right: 22px;
    bottom: 18px;
    overflow-wrap: anywhere;
  }
}

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