/* Mixloom: charcoal ground, teal and violet threads. */
@font-face { font-family: "Space Grotesk"; font-weight: 700; font-display: swap; src: url("/fonts/space-grotesk-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 500; font-display: swap; src: url("/fonts/space-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("/fonts/inter-latin-400-normal.woff2") format("woff2"); }

:root {
  --bg: #141518;
  --charcoal: #1c1d20;
  --teal: #00bfa5;
  --violet: #7c32e8;
  --violet-light: #9b63f2;
  --text: #f2f3f5;
  --muted: #a3a8b3;
  color-scheme: dark;
}

* { box-sizing: border-box; }
/* Paint the whole canvas dark, so no browser shows white at the edges. */
html { height: 100%; background: var(--bg); }
body { height: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(120% 90% at 50% 40%, var(--charcoal), var(--bg) 70%);
  color: var(--text);
  font: 400 16px/1.5 Inter, system-ui, sans-serif;
  overflow-x: hidden;
}

/* The sky: a wide wash of teal and violet that slowly sways, turns and
   shifts hue, so the whole background is always gently moving. */
.sky {
  position: fixed;
  inset: -25%;
  pointer-events: none;
  background:
    radial-gradient(38% 48% at 22% 30%, rgba(0, 191, 165, .30), transparent 62%),
    radial-gradient(42% 52% at 78% 72%, rgba(124, 50, 232, .34), transparent 62%),
    radial-gradient(30% 36% at 62% 18%, rgba(61, 127, 216, .18), transparent 62%),
    radial-gradient(34% 40% at 30% 82%, rgba(155, 99, 242, .16), transparent 62%);
  animation: sway 26s ease-in-out infinite alternate, hue 34s ease-in-out infinite alternate;
}
@keyframes sway {
  0% { transform: translate(-8%, -5%) rotate(-10deg) scale(1); }
  35% { transform: translate(5%, 6%) rotate(4deg) scale(1.12); }
  70% { transform: translate(9%, -4%) rotate(12deg) scale(1.04); }
  100% { transform: translate(-3%, 8%) rotate(-3deg) scale(1.14); }
}
@keyframes hue {
  0% { filter: hue-rotate(0deg) saturate(1); }
  50% { filter: hue-rotate(-22deg) saturate(1.2); }
  100% { filter: hue-rotate(18deg) saturate(1.1); }
}

/* Soft colour light drifting behind everything. */
.glow { position: fixed; inset: 0; overflow: hidden; pointer-events: none; }
.orb { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(90px); opacity: .32; mix-blend-mode: screen; }
.orb.teal { background: var(--teal); left: -18vmax; top: -22vmax; animation: drift-a 18s ease-in-out infinite alternate; }
.orb.violet { background: var(--violet); right: -20vmax; bottom: -26vmax; animation: drift-b 22s ease-in-out infinite alternate; }
.orb.blue { background: #3d7fd8; width: 38vmax; height: 38vmax; left: 35%; top: 55%; opacity: .16; animation: drift-c 27s ease-in-out infinite alternate; }
@keyframes drift-a { to { transform: translate(22vmax, 16vmax) scale(1.15); } }
@keyframes drift-b { to { transform: translate(-24vmax, -14vmax) scale(1.1); } }
@keyframes drift-c { to { transform: translate(-30vmax, -30vmax) scale(.85); } }

/* The threads: each wave slides sideways and breathes, so they weave past
   each other. */
.threads { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.t { stroke-width: 2.2; animation: slide 22s linear infinite, breathe 9s ease-in-out infinite alternate; transform-box: view-box; }
.t1 { stroke: var(--teal); opacity: .55; animation-duration: 24s, 8s; }
.t2 { stroke: var(--violet-light); opacity: .5; animation-duration: 30s, 11s; animation-direction: reverse, alternate; }
.t3 { stroke: var(--teal); opacity: .3; stroke-width: 1.4; animation-duration: 36s, 13s; }
.t4 { stroke: var(--violet-light); opacity: .32; stroke-width: 1.4; animation-duration: 28s, 10s; animation-direction: reverse, alternate; }
.t5 { stroke: var(--teal); opacity: .18; stroke-width: 1; animation-duration: 44s, 15s; }
.t6 { stroke: var(--violet-light); opacity: .18; stroke-width: 1; animation-duration: 40s, 12s; }
@keyframes slide { from { translate: 0 0; } to { translate: 1200px 0; } }
@keyframes breathe { from { scale: 1 .55; } to { scale: 1 1.25; } }

main {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 48px 20px;
  text-align: center;
}
.logo { margin: 0 0 18px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.symbol { width: min(228px, 50vw); height: auto; filter: drop-shadow(0 0 30px rgba(0, 191, 165, .35)); animation: float 6s ease-in-out infinite alternate; }
.wordmark { width: min(456px, 80vw); height: auto; }
@keyframes float { to { transform: translateY(-8px); } }

.slogan {
  margin: 0;
  font: 700 clamp(30px, 5vw, 56px)/1.08 "Space Grotesk", Inter, sans-serif;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--text) 0%, #bfeee6 40%, #d9c4ff 70%, var(--text) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheen 10s linear infinite;
}
@keyframes sheen { to { background-position: -200% 0; } }
.sub { margin: 0; font: 500 clamp(17px, 2.2vw, 22px)/1.4 "Space Grotesk", Inter, sans-serif; color: var(--muted); }

footer { position: relative; padding: 20px; text-align: center; font-size: 13px; color: var(--muted); }

/* The colour background always drifts (it's slow and large). With
   "reduce motion" on, the sliding threads, floating logo and text sheen stop. */
@media (prefers-reduced-motion: reduce) {
  .t, .symbol, .slogan { animation: none; }
}
