:root {
  --bg: #060b22;
  --bg-2: #0d1a4a;
  --accent: #4f8cff;
  --accent-2: #8a5cff;
  --text: #e8ecff;
  --muted: #9aa6d6;
}

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

html, body { height: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 800px at 50% -10%, var(--bg-2), var(--bg) 70%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 24px 16px;
  overflow-x: hidden;
}

/* tło */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
#particles { position: absolute; inset: 0; width: 100%; height: 100%; }

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .45;
  animation: float 18s ease-in-out infinite;
}
.orb-1 { width: 480px; height: 480px; background: var(--accent); top: -120px; left: -100px; }
.orb-2 { width: 420px; height: 420px; background: var(--accent-2); bottom: -140px; right: -80px; animation-delay: -6s; }
.orb-3 { width: 300px; height: 300px; background: #1fb6ff; top: 45%; left: 55%; opacity: .25; animation-delay: -12s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, 30px) scale(1.1); }
  66% { transform: translate(-30px, 50px) scale(.95); }
}

/* karta */
.card {
  flex-shrink: 0;
  width: min(640px, 100%);
  text-align: center;
  padding: 48px 32px;
  border-radius: 28px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
  animation: rise .9s cubic-bezier(.2, .8, .2, 1) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

.logo {
  display: block;
  width: min(220px, 60%);
  height: auto;
  margin: 0 auto 28px;
  animation: glow 3.5s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(79, 140, 255, .25)); }
  50% { filter: drop-shadow(0 0 28px rgba(79, 140, 255, .65)); }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(79, 140, 255, .1);
  border: 1px solid rgba(79, 140, 255, .3);
  margin-bottom: 22px;
}

.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #35e08a;
  animation: pulse 1.6s ease-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(53, 224, 138, .7); }
  100% { box-shadow: 0 0 0 12px rgba(53, 224, 138, 0); }
}

h1 {
  min-height: 2.4em;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 16px;
}

.typed-wrap {
  display: block;
  min-height: 1.2em;
  white-space: nowrap;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.caret {
  display: inline-block;
  width: 3px;
  height: 1em;
  margin-left: 4px;
  vertical-align: -.1em;
  background: var(--accent);
  animation: blink 1s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.lead {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 32px;
}
.lead strong { color: var(--text); }

/* pasek postępu */
.progress {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  overflow: hidden;
}

.bar {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent));
  background-size: 200% 100%;
  animation: shimmer 2.5s linear infinite;
  transition: width 2.2s cubic-bezier(.2, .8, .2, 1);
}

@keyframes shimmer { to { background-position: -200% 0; } }

.progress-label {
  margin-top: 12px;
  font-size: .85rem;
  color: var(--muted);
}

/* stopka */
.footer {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: .85rem;
  color: var(--muted);
  animation: rise .9s .3s cubic-bezier(.2, .8, .2, 1) both;
}

.footer a {
  display: inline-flex;
  opacity: .8;
  transition: opacity .25s, transform .25s;
}
.footer a:hover, .footer a:focus-visible { opacity: 1; transform: translateY(-2px); }
.footer img { height: 28px; width: auto; display: block; }

@media (max-width: 480px) {
  .card { padding: 36px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
