:root {
  --bg0: #06060a;
  --bg1: #0b1020;
  --card: rgba(255, 255, 255, 0.06);
  --card2: rgba(255, 255, 255, 0.1);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.72);
  --accent: #7c5cff;
  --accent2: #4dd9ff;
  --shadow: rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica,
    Arial, "Apple Color Emoji", "Segoe UI Emoji";

  background:
    radial-gradient(900px 650px at 15% 10%, rgba(124, 92, 255, 0.22), transparent 55%),
    radial-gradient(900px 650px at 85% 15%, rgba(77, 217, 255, 0.18), transparent 55%),
    radial-gradient(1100px 800px at 50% 110%, rgba(255, 255, 255, 0.08), transparent 60%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  overflow: hidden;
}

.wrap {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 44px);
  position: relative;
  isolation: isolate;
}

/* Subtelny "film grain" bez obrazków */
.wrap::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.06), transparent 32%),
    radial-gradient(circle at 80% 35%, rgba(255, 255, 255, 0.05), transparent 38%),
    radial-gradient(circle at 45% 85%, rgba(255, 255, 255, 0.05), transparent 36%);
  filter: blur(22px);
  opacity: 0.7;
  transform: translate3d(0, 0, 0);
  animation: drift 12s ease-in-out infinite alternate;
  z-index: -2;
}

/* Poruszająca się poświata */
.wrap::after {
  content: "";
  position: absolute;
  inset: -35%;
  background: conic-gradient(
    from 180deg,
    rgba(124, 92, 255, 0.0),
    rgba(124, 92, 255, 0.18),
    rgba(77, 217, 255, 0.16),
    rgba(124, 92, 255, 0.0)
  );
  filter: blur(40px);
  opacity: 0.55;
  animation: spin 18s linear infinite;
  z-index: -3;
}

.card {
  width: min(720px, 100%);
  padding: clamp(22px, 4vw, 40px);
  border-radius: 24px;
  background: linear-gradient(180deg, var(--card), rgba(255, 255, 255, 0.03));
  box-shadow:
    0 30px 90px var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  text-align: center;

  transform: translateY(10px);
  opacity: 0;
  animation: enter 900ms cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
}

.logo {
  width: clamp(118px, 18vw, 170px);
  aspect-ratio: 1 / 1;
  margin: 0 auto 18px;
  position: relative;
  display: grid;
  place-items: center;

  animation: float 5.4s ease-in-out infinite;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.45));
  transform: translateZ(0);
}

.brand {
  margin: 6px 0 10px;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.02;
  letter-spacing: 0.02em;
  font-weight: 800;
  position: relative;
  display: inline-block;

  background: linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.76));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transform-origin: left;
  transform: scaleX(0);
  opacity: 0.95;
  animation: underline 900ms 350ms cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
}

.status {
  margin: 18px 0 0;
  font-size: clamp(16px, 2.2vw, 18px);
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  .wrap::before,
  .wrap::after,
  .card,
  .logo,
  .brand::after {
    animation: none !important;
  }

  .card {
    opacity: 1;
    transform: none;
  }

  .brand::after {
    transform: scaleX(1);
  }
}

@keyframes enter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes underline {
  to {
    transform: scaleX(1);
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
  100% {
    transform: translateY(0px);
  }
}

@keyframes drift {
  0% {
    transform: translate3d(-2%, -1%, 0) rotate(-1deg);
  }
  100% {
    transform: translate3d(2%, 1%, 0) rotate(1deg);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
