/*
  HESO — splash page styles
  Nowocześniejsza estetyka: ciemny ink + świeże akcenty, bardzo subtelne animacje.
*/

:root {
  --bg: #0b1220;      /* ink navy */
  --fg: #eef3f8;      /* near-white */
  --muted: #9fb3c8;   /* cool muted */
  --accent1: #7bdcf7; /* cyan */
  --accent2: #b6ff8b; /* lime */
  --accent3: #7aa2ff; /* cornflower */
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica Neue, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Background layers */
.bg { position: fixed; inset: 0; overflow: hidden; }
.grain {
  position: absolute; inset: -50%; pointer-events: none; opacity: .03; mix-blend-mode: soft-light;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="140" height="140" viewBox="0 0 140 140"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="2" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23n)" opacity="1"/></svg>');
  animation: drift 26s linear infinite alternate;
}
.blob {
  position: absolute;
  width: 90vmax; height: 90vmax;
  left: 50%; top: 50%; transform: translate(-50%, -60%);
  /* Aurora-like layered radial gradients */
  background:
    radial-gradient(60% 60% at 35% 40%, color-mix(in oklab, var(--accent1) 28%, transparent) 0%, transparent 60%),
    radial-gradient(50% 50% at 70% 60%, color-mix(in oklab, var(--accent2) 24%, transparent) 0%, transparent 65%),
    radial-gradient(40% 40% at 40% 70%, color-mix(in oklab, var(--accent3) 22%, transparent) 0%, transparent 70%);
  filter: blur(70px) saturate(120%);
  opacity: .20;
  animation: pan 32s ease-in-out infinite alternate;
}

@keyframes pan {
  0%   { transform: translate(-52%, -58%) scale(1.0); }
  50%  { transform: translate(-48%, -62%) scale(1.03); }
  100% { transform: translate(-50%, -60%) scale(1.06); }
}
@keyframes drift { 0% { transform: translate(0,0) scale(1); } 100% { transform: translate(4%, -3%) scale(1.06); } }

/* Layout */
.wrap {
  position: relative;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 8vh 6vw;
}

.hero { text-align: center; margin-bottom: 1.5rem; }
.logo {
  margin: 0;
  font-weight: 800;
  letter-spacing: .12em;
  font-size: clamp(2.8rem, 7vw, 6rem);
  /* subtle animated gradient fill */
  background: linear-gradient(90deg, var(--fg) 0%, color-mix(in oklab, var(--accent1) 35%, var(--fg)) 40%, color-mix(in oklab, var(--accent3) 35%, var(--fg)) 60%, var(--fg) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% 100%;
  animation: sheen 22s ease-in-out infinite alternate;
}
@keyframes sheen {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}
.tag {
  margin-top: .5rem;
  color: var(--muted);
  font-size: clamp(1rem, 2.6vw, 1.25rem);
}

.intro { max-width: 60ch; text-align: center; margin: 1rem auto 2rem; }
.intro p { margin: 0; }

.notice { text-align: center; margin-top: 1.5rem; }
.badge {
  display: inline-block;
  border: 1px solid color-mix(in oklab, var(--fg) 30%, transparent);
  padding: .35rem .7rem;
  border-radius: 999px;
  font-size: .9rem;
  letter-spacing: .03em;
  color: var(--fg);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(4px);
}
.notice p { color: var(--muted); margin-top: .75rem; }
.notice a {
  color: var(--fg);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) no-repeat;
  background-size: 0% 1px;
  background-position: 0 100%;
  text-underline-offset: 3px;
  transition: background-size .3s ease, color .3s ease;
}
.notice a:hover {
  color: color-mix(in oklab, var(--accent2) 70%, var(--fg));
  background-size: 100% 1px;
}

.foot { position: fixed; bottom: 1rem; left: 0; right: 0; display: grid; place-items: center; }
.foot small { color: #8aa0b7; letter-spacing: .02em; }

/* Accessibility & reductions */
@media (prefers-reduced-motion: reduce) {
  .blob, .grain, .logo { animation: none; }
}
