/* ==========================================================================
   BT Dopamine-Hit Design System
   Tło: #0D061A | Akcenty: #E3FF00 (Neon Yellow), #00F5FF (Neon Cyan)
   ========================================================================== */

:root {
  --bg-dark: #0D061A;
  --bg-card: rgba(24, 13, 46, 0.75);
  --bg-card-border: rgba(0, 245, 255, 0.2);
  --neon-yellow: #E3FF00;
  --neon-yellow-glow: rgba(227, 255, 0, 0.45);
  --neon-cyan: #00F5FF;
  --neon-cyan-glow: rgba(0, 245, 255, 0.4);
  --text-main: #FFFFFF;
  --text-muted: #A39AC2;
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   TŁO RADAROWE I SIATKA (Radar Glow & Grid Animation)
   ========================================================================== */

.radar-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(0, 245, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 245, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at 50% 30%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, black 30%, transparent 80%);
}

.radar-center {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
}

.radar-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(0, 245, 255, 0.15);
  box-shadow: 0 0 25px rgba(0, 245, 255, 0.05);
}

.ring-1 { width: 200px; height: 200px; }
.ring-2 { width: 380px; height: 380px; }
.ring-3 { width: 560px; height: 560px; border-color: rgba(227, 255, 0, 0.12); }

.radar-sweep {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 280deg,
    rgba(0, 245, 255, 0.18) 360deg
  );
  animation: radarRotate 6s linear infinite;
}

@keyframes radarRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.radar-ping {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--neon-cyan);
  box-shadow: 0 0 12px var(--neon-cyan);
}

.ping-1 { top: 38%; left: 32%; animation: pingPulse 3s ease-out infinite; }
.ping-2 { top: 62%; left: 68%; animation: pingPulse 3.5s ease-out infinite 1s; background: var(--neon-yellow); box-shadow: 0 0 12px var(--neon-yellow); }
.ping-3 { top: 25%; left: 70%; animation: pingPulse 4s ease-out infinite 2s; }

@keyframes pingPulse {
  0% { transform: scale(0.8); opacity: 0.2; }
  50% { transform: scale(1.4); opacity: 1; }
  100% { transform: scale(0.8); opacity: 0.2; }
}

/* ==========================================================================
   UKŁAD STRONY (Page Wrapper & Navbar)
   ========================================================================== */

.page-wrapper {
  position: relative;
  z-index: 1;
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -1px;
  background: linear-gradient(135deg, #FFFFFF 30%, var(--neon-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  background: rgba(0, 245, 255, 0.15);
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 245, 255, 0.3);
  padding: 3px 8px;
  border-radius: 9999px;
}

.nav-apk-btn {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  background: rgba(24, 13, 46, 0.85);
  color: var(--neon-yellow);
  padding: 8px 18px;
  border-radius: 9999px;
  border: 1px solid rgba(227, 255, 0, 0.4);
  transition: all 0.25s ease;
}

.nav-apk-btn:hover {
  background: var(--neon-yellow);
  color: var(--bg-dark);
  box-shadow: 0 0 16px var(--neon-yellow-glow);
}

/* ==========================================================================
   BANER ZAPROSZENIA (Deep Linking Welcome Card)
   ========================================================================== */

.invite-banner {
  background: linear-gradient(135deg, rgba(35, 18, 68, 0.85), rgba(13, 6, 26, 0.95));
  border: 2px solid var(--neon-cyan);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 10px 40px rgba(0, 245, 255, 0.2);
  animation: slideDown 0.5s ease-out;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.invite-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 245, 255, 0.15);
  padding: 4px 12px;
  border-radius: 9999px;
  border: 1px solid rgba(0, 245, 255, 0.35);
  margin-bottom: 12px;
}

.invite-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--neon-cyan);
}

.invite-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 6px;
}

.invite-text {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.code-box {
  display: flex;
  align-items: center;
  background: rgba(13, 6, 26, 0.8);
  border: 1px dashed rgba(227, 255, 0, 0.45);
  border-radius: 12px;
  padding: 10px 16px;
  gap: 12px;
  flex-wrap: wrap;
}

.code-label {
  font-size: 12px;
  color: var(--text-muted);
}

.code-value {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  color: var(--neon-yellow);
  letter-spacing: 1.5px;
}

.copy-btn {
  margin-left: auto;
  background: rgba(227, 255, 0, 0.15);
  border: 1px solid var(--neon-yellow);
  color: var(--neon-yellow);
  font-weight: 700;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.copy-btn:hover {
  background: var(--neon-yellow);
  color: var(--bg-dark);
}

/* ==========================================================================
   SEKCJA HERO (Hero Section)
   ========================================================================== */

.hero-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px 0 60px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(24, 13, 46, 0.8);
  border: 1px solid rgba(0, 245, 255, 0.3);
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--neon-cyan);
  margin-bottom: 24px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon-cyan);
  box-shadow: 0 0 8px var(--neon-cyan);
  animation: liveBlink 1.5s infinite;
}

@keyframes liveBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.8); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 8vw, 62px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

.neon-cyan {
  color: var(--neon-cyan);
  text-shadow: 0 0 25px var(--neon-cyan-glow);
}

.neon-yellow {
  color: var(--neon-yellow);
  text-shadow: 0 0 25px var(--neon-yellow-glow);
}

.hero-description {
  max-width: 580px;
  font-size: clamp(15px, 3.5vw, 18px);
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 36px;
}

/* ==========================================================================
   PRZYCISKI CALL TO ACTION (CTA Group)
   ========================================================================== */

.cta-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 380px;
  margin-bottom: 40px;
}

.btn-primary-yellow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--neon-yellow);
  color: #0D061A;
  text-decoration: none;
  padding: 16px 24px;
  border-radius: 16px;
  font-family: var(--font-display);
  box-shadow: 0 6px 30px var(--neon-yellow-glow);
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}

.btn-primary-yellow:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(227, 255, 0, 0.65);
}

.btn-primary-yellow:active {
  transform: translateY(1px);
}

.btn-icon {
  font-size: 24px;
}

.btn-text-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.btn-main-text {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.3px;
}

.btn-sub-text {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.85;
}

.btn-secondary-cyan {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(0, 245, 255, 0.12);
  color: var(--neon-cyan);
  border: 1px solid var(--neon-cyan);
  padding: 14px 24px;
  border-radius: 16px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary-cyan:hover {
  background: var(--neon-cyan);
  color: var(--bg-dark);
  box-shadow: 0 0 25px var(--neon-cyan-glow);
}

/* ==========================================================================
   PIGUŁKI ZAUFANIA (Trust Pills)
   ========================================================================== */

.trust-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 50px;
}

.trust-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(24, 13, 46, 0.6);
  border: 1px solid rgba(0, 245, 255, 0.15);
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 13px;
  color: var(--text-muted);
}

.trust-icon {
  font-size: 14px;
}

/* ==========================================================================
   MAKIETA RADARU / MAPY (Preview Card)
   ========================================================================== */

.preview-card-wrapper {
  width: 100%;
  max-width: 520px;
  perspective: 1000px;
}

.preview-card {
  background: linear-gradient(180deg, rgba(35, 18, 68, 0.8) 0%, rgba(13, 6, 26, 0.95) 100%);
  border: 1px solid rgba(0, 245, 255, 0.3);
  border-radius: 24px;
  padding: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 245, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.preview-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 16px;
}

.preview-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.preview-dot.red { background: #FF5F56; }
.preview-dot.yellow { background: #FFBD2E; }
.preview-dot.green { background: #27C93F; }

.preview-title {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.preview-body {
  position: relative;
  height: 240px;
  background: radial-gradient(circle at center, rgba(35, 18, 68, 0.4) 0%, rgba(13, 6, 26, 0.9) 100%);
  border-radius: 16px;
  border: 1px solid rgba(0, 245, 255, 0.1);
  overflow: hidden;
}

.mock-pin {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(24, 13, 46, 0.85);
  border: 1px solid var(--neon-cyan);
  padding: 6px 12px;
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(0, 245, 255, 0.25);
  animation: float 4s ease-in-out infinite alternate;
}

.mock-pin.pin-1 { top: 20%; left: 15%; animation-delay: 0s; }
.mock-pin.pin-2 { top: 58%; right: 12%; border-color: var(--neon-yellow); box-shadow: 0 4px 16px var(--neon-yellow-glow); animation-delay: 1.5s; }
.mock-pin.pin-3 { bottom: 18%; left: 24%; animation-delay: 2.5s; }

@keyframes float {
  from { transform: translateY(0); }
  to { transform: translateY(-6px); }
}

.pin-avatar { font-size: 16px; }
.pin-label { font-size: 12px; font-weight: 700; color: #FFFFFF; }

.mock-user {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mock-user-pulse {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--neon-cyan);
  animation: userPing 2s infinite ease-out;
}

@keyframes userPing {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

.mock-user-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--neon-cyan);
  box-shadow: 0 0 14px var(--neon-cyan);
  border: 2px solid #FFFFFF;
}

.mock-user-label {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 800;
  color: var(--neon-cyan);
  background: rgba(13, 6, 26, 0.9);
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgba(0, 245, 255, 0.4);
}

/* ==========================================================================
   STOPKA (Footer)
   ========================================================================== */

.footer {
  padding: 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: auto;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 12px;
  align-items: center;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--neon-cyan);
}

/* ==========================================================================
   RESPONSYWNOŚĆ & MOBILE-FIRST
   ========================================================================== */

@media (min-width: 640px) {
  .cta-group {
    flex-direction: row;
    max-width: 480px;
  }

  .btn-primary-yellow {
    flex: 1;
  }

  .footer-content {
    flex-direction: row;
    justify-content: space-between;
  }
}

.hidden {
  display: none !important;
}
