*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: clamp(14px, 1.2vw + 12px, 22px);
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: #fff;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

@media (prefers-color-scheme: dark) {
  body {
    background-color: #242424;
  }
}

.center {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  width: 100%;
  max-width: 100vw;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  width: 100%;
  max-width: 100%;
}

.logo-wrap {
  position: relative;
  display: inline-block;
  max-width: min(100%, 1000px);
  overflow: hidden;
}

.logo {
  display: block;
  width: 100%;
  height: auto;
}

/* Sliding light: full 30° parallelogram, solid white + transparency (no mask so shape stays regular) */
.logo-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -15%;
  width: 14%;
  height: 150%;
  transform: translateY(-50%) skewX(-30deg);
  pointer-events: none;
  background: rgba(255, 255, 255, 0.75);
  animation: logo-light 2s linear infinite;
}

@keyframes logo-light {
  0% {
    left: -15%;
  }
  62% {
    left: 115%;
  }
  100% {
    left: 115%;
  }
}

/* Dark mode: diagonal band via gradient (no skew), then mask by logo = clean shape */
@keyframes logo-light-dark {
  0% {
    background-position: 100% 50%;
  }
  62% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@media (min-width: 640px) {
  .hero {
    gap: 1.25rem;
  }
}

.team-links {
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
  color: #666;
}

.team-links a {
  color: #555;
  text-decoration: none;
}

.team-links a:hover {
  text-decoration: underline;
  color: #111;
}

.team-links .separator {
  margin: 0 0.4em;
}

@media (prefers-color-scheme: dark) {
  .team-links {
    color: #999;
  }

  .team-links a {
    color: #bbb;
  }

  .team-links a:hover {
    color: #fff;
  }
}

.disclaimer {
  padding: 0.75rem 1.5rem;
  font-size: 0.7rem;
  color: #888;
  text-align: center;
}

@media (prefers-color-scheme: dark) {
  .disclaimer {
    color: #9a9a9a;
  }

  /* Dark mode: 30° band from gradient (no skew) + logo mask = clean diagonal only on logo */
  .logo-wrap::after {
    inset: 0;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    transform: none;
    background: linear-gradient(
      120deg,
      transparent 0%,
      transparent 47.5%,
      rgba(255, 255, 255, 0.35) 48.5%,
      rgba(255, 255, 255, 0.35) 51.5%,
      transparent 52.5%,
      transparent 100%
    );
    background-size: 300% 100%;
    background-repeat: no-repeat;
    background-position: 100% 50%;
    animation: logo-light-dark 2s linear infinite;
    /* Match mask to logo: same sizing as img (contain + center so aspect ratio and position align) */
    mask-image: url("logo.png");
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    mask-origin: border-box;
    -webkit-mask-image: url("logo.png");
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-origin: border-box;
  }
}
