:root {
  --bg: #05060a;
  --fg: #e8e6f0;
  --muted: #6b6880;
  --accent: #ff5a1f;      /* ciepły pomarańcz - subtelne mrugnięcie w stronę e-commerce */
  --accent-2: #7b5cff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

#field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 45% at 50% 50%, rgba(123, 92, 255, .10), transparent 70%),
    radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, .85) 100%);
}

.grain {
  position: fixed;
  inset: -50%;
  pointer-events: none;
  opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}

@keyframes grain {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-3%, 2%); }
  40%  { transform: translate(2%, -3%); }
  60%  { transform: translate(-2%, -1%); }
  80%  { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

main {
  position: relative;
  z-index: 2;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 16px;
  pointer-events: none;
}

.eyebrow {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .72rem;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fade 1.2s ease .3s forwards;
}

.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: .6em;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  vertical-align: middle;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .2; }
}

h1 {
  position: relative;
  font-size: clamp(3rem, 13vw, 9rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
  background: linear-gradient(100deg, #fff 0%, #cfc9ff 40%, var(--accent) 75%, #fff 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 9s ease-in-out infinite;
  filter: drop-shadow(0 0 30px rgba(123, 92, 255, .25));
}

@keyframes shine {
  0%, 100% { background-position: 100% 0; }
  50% { background-position: 0 0; }
}

/* krótki glitch co jakiś czas (klasa dodawana z JS) */
h1.glitch::before,
h1.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  -webkit-background-clip: text;
  background-clip: text;
}
h1.glitch::before {
  color: var(--accent);
  transform: translate(-3px, 1px);
  clip-path: inset(10% 0 55% 0);
  opacity: .8;
}
h1.glitch::after {
  color: var(--accent-2);
  transform: translate(3px, -1px);
  clip-path: inset(60% 0 8% 0);
  opacity: .8;
}

.line {
  margin-top: 1.8rem;
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  color: #b9b5cc;
  letter-spacing: .02em;
  min-height: 1.5em;
}

.soon {
  margin-top: 3rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .72rem;
  letter-spacing: .6em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  animation: fade 1.5s ease 3.2s forwards;
}

footer {
  position: fixed;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 20px;
  display: flex;
  justify-content: center;
  gap: .8em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .7rem;
  letter-spacing: .15em;
  color: #3f3d4f;
  pointer-events: none;
}

@keyframes fade { to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .grain, h1, .dot { animation: none; }
}
