/* Nowoczesny layout — ciemny motyw, szkło, subtelna głębia */
:root {
  --bg: #07080d;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-hover: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f4f4f5;
  --text-muted: rgba(244, 244, 245, 0.62);
  --accent: #22d3ee;
  --accent-dim: rgba(34, 211, 238, 0.15);
  --accent-glow: rgba(34, 211, 238, 0.35);
  --discord: #5865f2;
  --radius-lg: 20px;
  --radius-btn: 14px;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-display: 'Outfit', system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.bg__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 20%, transparent 70%);
}

.bg__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: orbFloat 22s ease-in-out infinite;
}

.bg__orb--a {
  width: min(55vw, 420px);
  height: min(55vw, 420px);
  background: #1e3a5f;
  top: -8%;
  right: -5%;
  animation-delay: -4s;
}

.bg__orb--b {
  width: min(50vw, 380px);
  height: min(50vw, 380px);
  background: #0d5c6e;
  bottom: -5%;
  left: -8%;
  animation-delay: -10s;
}

@keyframes orbFloat {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(-4%, 3%) scale(1.05);
  }
  66% {
    transform: translate(3%, -2%) scale(0.98);
  }
}

.header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
  padding: 1.25rem clamp(1.25rem, 4vw, 2.5rem);
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.header__badge {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem clamp(1.25rem, 4vw, 2.5rem) 3rem;
}

.card {
  width: 100%;
  max-width: 560px;
  padding: clamp(2rem, 5vw, 2.75rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  backdrop-filter: blur(20px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 24px 80px rgba(0, 0, 0, 0.45);
}

.hero__content {
  text-align: center;
}

.eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.title {
  margin: 0 0 1rem;
}

.title__main {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 8vw, 3.35rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
  background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.82) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.title__sub {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1rem, 3vw, 1.15rem);
  letter-spacing: -0.01em;
  color: var(--text-muted);
}

.tagline {
  margin: 0 0 1.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 165%;
  color: var(--text-muted);
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

.cta-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: stretch;
}

@media (min-width: 520px) {
  .cta-group {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .btn {
    flex: 1 1 200px;
    max-width: 280px;
  }
}

.btn {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1.15rem;
  min-height: 3.5rem;
  text-decoration: none;
  color: var(--text);
  border-radius: var(--radius-btn);
  border: 1px solid var(--border);
  background: var(--surface);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  background: var(--surface-hover);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  border-color: rgba(34, 211, 238, 0.35);
  background: linear-gradient(135deg, var(--accent-dim), var(--surface));
}

.btn--primary:hover {
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--accent-glow);
}

.btn--secondary:hover {
  border-color: rgba(88, 101, 242, 0.45);
}

.btn__icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  color: var(--accent);
  flex-shrink: 0;
}

.btn--primary .btn__icon {
  color: var(--accent);
}

.btn__icon--discord {
  background-color: var(--discord);
  color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M20.317 4.37a19.791 19.791 0 0 0-4.885-1.515.074.074 0 0 0-.079.037c-.21.375-.444.864-.608 1.25a18.27 18.27 0 0 0-5.487 0 12.64 12.64 0 0 0-.617-1.25.077.077 0 0 0-.079-.037A19.736 19.736 0 0 0 3.677 4.37a.07.07 0 0 0-.032.027C.533 9.046-.32 13.58.099 18.057a.082.082 0 0 0 .031.057 19.9 19.9 0 0 0 5.993 3.03.078.078 0 0 0 .084-.028 14.09 14.09 0 0 0 1.226-1.994.076.076 0 0 0-.041-.106 13.107 13.107 0 0 1-1.872-.892.077.077 0 0 1-.008-.128 10.2 10.2 0 0 0 .372-.292.074.074 0 0 1 .077-.01c3.928 1.793 8.18 1.793 12.062 0a.074.074 0 0 1 .078.01c.12.098.246.198.373.292a.077.077 0 0 1-.006.127 12.299 12.299 0 0 1-1.873.892.077.077 0 0 0-.041.107c.36.698.772 1.362 1.225 1.993a.076.076 0 0 0 .084.028 19.839 19.839 0 0 0 6.002-3.03.077.077 0 0 0 .032-.054c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 0 0-.031-.03zM8.02 15.33c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.956-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.956 2.418-2.157 2.418zm7.975 0c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.955-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.946 2.418-2.157 2.418z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 58%;
}

.btn__text {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.btn__text strong {
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.btn__text small {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
}

.hint {
  margin: 1.5rem 0 0;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.hint a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.hint a:hover {
  border-bottom-color: var(--accent);
}

.footer {
  padding: 1.25rem clamp(1.25rem, 4vw, 2.5rem) 1.75rem;
  text-align: center;
}

.footer p {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(244, 244, 245, 0.38);
}

.animate-fade {
  opacity: 0;
  animation: fadeUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--d, 0ms);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .bg__orb {
    animation: none;
  }
}
