:root {
  --photo-size: 112px;
  --row-gap: 10px;
  --photo-gap: 8px;

  --bg-1: #f5f3ff;
  --bg-2: #ffffff;
  --bg-3: #eff6ff;

  --text-1: #111827;
  --text-2: #4b5563;
  --border: rgba(17, 24, 39, 0.12);
  --dot: #0f172a;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: var(--text-1);
}

.page {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 45%, var(--bg-3) 100%);
}

.content {
  position: relative;
  width: 100%;
  max-width: 560px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.photos {
  position: absolute;
  inset: 0;
  top: -128px;
  bottom: -128px;
  opacity: 0.15;
  overflow: hidden;
}

.mask {
  position: absolute;
  pointer-events: none;
  z-index: 3;
}

.mask-left {
  left: 0;
  top: 0;
  bottom: 0;
  width: 25%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0.95) 22%,
    rgba(255, 255, 255, 0.65) 55%,
    rgba(255, 255, 255, 0) 100%
  );
}
.mask-right {
  right: 0;
  top: 0;
  bottom: 0;
  width: 25%;
  background: linear-gradient(
    to left,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0.95) 22%,
    rgba(255, 255, 255, 0.65) 55%,
    rgba(255, 255, 255, 0) 100%
  );
}
.mask-top {
  left: 0;
  right: 0;
  top: 0;
  height: 160px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0.95) 22%,
    rgba(255, 255, 255, 0.65) 55%,
    rgba(255, 255, 255, 0) 100%
  );
}
.mask-bottom {
  left: 0;
  right: 0;
  bottom: 0;
  height: 160px;
  background: linear-gradient(
    to top,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0.95) 22%,
    rgba(255, 255, 255, 0.65) 55%,
    rgba(255, 255, 255, 0) 100%
  );
}

@keyframes scroll-left {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}
@keyframes scroll-right {
  from { transform: translate3d(-50%, 0, 0); }
  to { transform: translate3d(0, 0, 0); }
}

.row {
  position: absolute;
  left: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: var(--photo-gap);
  will-change: transform;
}

.row.scroll-left { animation: scroll-left 80s linear infinite; }
.row.scroll-right { animation: scroll-right 40s linear infinite; }
.row.fast-left { animation-duration: 40s; }
.row.slow-right { animation-duration: 80s; }

.tile {
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 10px;
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.logo-icon { position: relative; }
.logo-glow {
  position: absolute;
  inset: 0;
  transform: scale(1.4);
  filter: blur(28px);
  background: rgba(15, 23, 42, 0.12);
  z-index: -1;
}

.message h1 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.02em;
}

.message p {
  margin: 10px 0 0 0;
  font-size: 18px;
  color: var(--text-2);
}

.dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--dot);
  opacity: 0.85;
  animation: bounce 1.2s infinite;
}

.d1 { animation-delay: -0.3s; }
.d2 { animation-delay: -0.15s; }

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.footer {
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.footer p {
  margin: 0;
  font-size: 13px;
  color: var(--text-2);
}

@media (prefers-reduced-motion: reduce) {
  .row { animation: none !important; }
  .dot { animation: none !important; }
}
