:root {
  color-scheme: dark;
  --bg: #030303;
  --ink: #f6f4ee;
  --muted: rgba(246, 244, 238, 0.58);
  --line: rgba(246, 244, 238, 0.16);
}

* {
  box-sizing: border-box;
}

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

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

#starfield {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
}

.home {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  isolation: isolate;
}

.home::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at center, transparent 0 34%, rgba(0, 0, 0, 0.34) 72%),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03), transparent 24%);
}

.hero {
  width: min(100%, 720px);
  display: grid;
  justify-items: center;
  text-align: center;
}

.logo-mark {
  position: relative;
  z-index: 0;
  width: min(46vw, 220px);
  aspect-ratio: 1;
  margin-bottom: 30px;
  background:
    linear-gradient(116deg, #d9dde2 0%, #8a9098 14%, #f0f2f3 28%, #aeb4bb 43%, #666d76 58%, #d4d8dc 73%, #8f969f 100%);
  filter:
    drop-shadow(0 0 10px rgba(230, 237, 246, 0.62))
    drop-shadow(0 0 28px rgba(181, 205, 255, 0.38))
    drop-shadow(0 0 54px rgba(255, 255, 255, 0.1))
    drop-shadow(0 18px 48px rgba(255, 255, 255, 0.09));
  animation: logoGlow 5.8s ease-in-out infinite;
  mask: url("/assets/acosmio-icon.svg") center / contain no-repeat;
  -webkit-mask: url("/assets/acosmio-icon.svg") center / contain no-repeat;
}

.logo-mark::before,
.logo-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  mask: url("/assets/acosmio-icon.svg") center / contain no-repeat;
  -webkit-mask: url("/assets/acosmio-icon.svg") center / contain no-repeat;
}

.logo-mark::before {
  background:
    radial-gradient(circle at 35% 24%, rgba(255, 255, 255, 0.72), transparent 18%),
    linear-gradient(115deg, transparent 16%, rgba(255, 255, 255, 0.08) 28%, rgba(255, 255, 255, 0.92) 42%, rgba(151, 166, 184, 0.28) 52%, transparent 66%);
  background-size: 220% 220%;
  mix-blend-mode: screen;
  opacity: 0.56;
  animation: metalSweep 7.4s ease-in-out infinite;
}

.logo-mark::after {
  inset: -8%;
  background: rgba(216, 229, 255, 0.55);
  filter: blur(18px);
  opacity: 0.7;
  z-index: -1;
  animation: logoHalo 5.8s ease-in-out infinite;
}

.wordmark {
  display: none;
  margin: 0 0 30px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

h1 {
  margin: 0;
  font-size: clamp(30px, 7vw, 76px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.18em;
}

.line {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(15px, 2vw, 20px);
  line-height: 1.5;
}

.line::after {
  content: "";
  display: block;
  width: 72px;
  height: 1px;
  margin: 32px auto 0;
  background: var(--line);
}

@keyframes logoGlow {
  0%,
  100% {
    filter:
      drop-shadow(0 0 8px rgba(226, 236, 246, 0.46))
      drop-shadow(0 0 24px rgba(181, 205, 255, 0.26))
      drop-shadow(0 0 44px rgba(255, 255, 255, 0.08))
      drop-shadow(0 18px 48px rgba(255, 255, 255, 0.08));
  }

  50% {
    filter:
      drop-shadow(0 0 14px rgba(230, 240, 250, 0.72))
      drop-shadow(0 0 36px rgba(181, 205, 255, 0.48))
      drop-shadow(0 0 68px rgba(255, 255, 255, 0.14))
      drop-shadow(0 18px 52px rgba(255, 255, 255, 0.1));
  }
}

@keyframes metalSweep {
  0%,
  100% {
    background-position: 16% 22%;
    opacity: 0.42;
  }

  45% {
    background-position: 82% 78%;
    opacity: 0.72;
  }

  70% {
    background-position: 62% 44%;
    opacity: 0.5;
  }
}

@keyframes logoHalo {
  0%,
  100% {
    opacity: 0.46;
    transform: scale(0.98);
  }

  50% {
    opacity: 0.82;
    transform: scale(1.03);
  }
}

@media (prefers-reduced-motion: reduce) {
  #starfield {
    opacity: 0.72;
  }

  .logo-mark,
  .logo-mark::after {
    animation: none;
  }
}

@media (max-width: 560px) {
  .home {
    padding: 20px;
  }

  .logo-mark {
    width: min(58vw, 180px);
    margin-bottom: 26px;
  }

  .line {
    margin-top: 22px;
  }
}
