:root {
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.72);
  --glass: rgba(0, 0, 0, 0.34);
  --border: rgba(255, 255, 255, 0.14);
}

html, body {
  height: 100%;
  margin: 0;
  background: #000;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}

.wrap {
  position: relative;
  height: 100%;
  overflow: hidden;
}

/* Video background */
video.bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  filter: saturate(1.05) contrast(1.05);
  z-index: 0;
}

/* Dots overlay canvas */
canvas.dots {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  opacity: 0.85;
  mix-blend-mode: screen;
}

/* Darken for readability */
.scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(1200px 600px at 20% 30%, rgba(0,0,0,0.10), rgba(0,0,0,0.65)),
    linear-gradient(to bottom, rgba(0,0,0,0.30), rgba(0,0,0,0.70));
}

/* Fade from black */
.fade-from-black {
  position: absolute;
  inset: 0;
  background: #000;
  z-index: 4;
  opacity: 1;
  pointer-events: none;
  animation: fadeBlack 1.3s ease-out forwards;
}

@keyframes fadeBlack {
  to { opacity: 0; }
}

/* Centered content */
.content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 28px;
}

.card {
  max-width: 760px;
  width: 100%;
  padding: 26px 24px;
  border: 1px solid var(--border);
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;

  opacity: 0;
  transform: translateY(10px);
  animation: fadeCard 0.9s ease-out forwards;
  animation-delay: 0.9s;
}

@keyframes fadeCard {
  to { opacity: 1; transform: translateY(0); }
}

.brand {
  letter-spacing: 0.18em;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 10px;
}

h1 {
  margin: 0 0 10px 0;
  font-size: clamp(28px, 4.3vw, 44px);
  line-height: 1.06;
  color: var(--text);
}

p {
  margin: 0;
  font-size: clamp(14px, 2vw, 18px);
  line-height: 1.5;
  color: var(--muted);
}

/* Copy crossfade */
.copy {
  transition: opacity 420ms ease, transform 420ms ease;
}

.copy.is-fading {
  opacity: 0;
  transform: translateY(6px);
}

/* Footer (delayed appearance) */
.site-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  z-index: 3;

  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;

  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.06em;
  text-align: center;

  opacity: 0;
  transform: translateY(6px);
  animation: fadeFooter 0.8s ease-out forwards;
  animation-delay: 2.4s;
}

@keyframes fadeFooter {
  to { opacity: 1; transform: translateY(0); }
}

.site-footer .actions {
  display: flex;
  justify-content: center;
}

.site-footer a.btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--text);
  text-decoration: none;
  background: rgba(255,255,255,0.06);
  font-weight: 500;
}

.site-footer a.btn:hover {
  background: rgba(255,255,255,0.10);
}

.site-footer .trademark {
  white-space: nowrap;
  line-height: 1.2;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .fade-from-black { animation: none; opacity: 0; }
  .card { animation: none; opacity: 1; transform: none; }
  .copy { transition: none; }
  .site-footer { animation: none; opacity: 1; transform: none; }
  canvas.dots { display: none; }
}

